Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteV1IncidentTypesID(params *DeleteV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteV1IncidentTypesIDOK, error)
- func (a *Client) GetV1IncidentTypes(params *GetV1IncidentTypesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1IncidentTypesOK, error)
- func (a *Client) GetV1IncidentTypesID(params *GetV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1IncidentTypesIDOK, error)
- func (a *Client) PatchV1IncidentTypesID(params *PatchV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchV1IncidentTypesIDOK, error)
- func (a *Client) PostV1IncidentTypes(params *PostV1IncidentTypesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostV1IncidentTypesCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteV1IncidentTypesIDOK
- func (o *DeleteV1IncidentTypesIDOK) Error() string
- func (o *DeleteV1IncidentTypesIDOK) GetPayload() *models.IncidentTypeEntity
- func (o *DeleteV1IncidentTypesIDOK) IsClientError() bool
- func (o *DeleteV1IncidentTypesIDOK) IsCode(code int) bool
- func (o *DeleteV1IncidentTypesIDOK) IsRedirect() bool
- func (o *DeleteV1IncidentTypesIDOK) IsServerError() bool
- func (o *DeleteV1IncidentTypesIDOK) IsSuccess() bool
- func (o *DeleteV1IncidentTypesIDOK) String() string
- type DeleteV1IncidentTypesIDParams
- func NewDeleteV1IncidentTypesIDParams() *DeleteV1IncidentTypesIDParams
- func NewDeleteV1IncidentTypesIDParamsWithContext(ctx context.Context) *DeleteV1IncidentTypesIDParams
- func NewDeleteV1IncidentTypesIDParamsWithHTTPClient(client *http.Client) *DeleteV1IncidentTypesIDParams
- func NewDeleteV1IncidentTypesIDParamsWithTimeout(timeout time.Duration) *DeleteV1IncidentTypesIDParams
- func (o *DeleteV1IncidentTypesIDParams) SetContext(ctx context.Context)
- func (o *DeleteV1IncidentTypesIDParams) SetDefaults()
- func (o *DeleteV1IncidentTypesIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteV1IncidentTypesIDParams) SetID(id string)
- func (o *DeleteV1IncidentTypesIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteV1IncidentTypesIDParams) WithContext(ctx context.Context) *DeleteV1IncidentTypesIDParams
- func (o *DeleteV1IncidentTypesIDParams) WithDefaults() *DeleteV1IncidentTypesIDParams
- func (o *DeleteV1IncidentTypesIDParams) WithHTTPClient(client *http.Client) *DeleteV1IncidentTypesIDParams
- func (o *DeleteV1IncidentTypesIDParams) WithID(id string) *DeleteV1IncidentTypesIDParams
- func (o *DeleteV1IncidentTypesIDParams) WithTimeout(timeout time.Duration) *DeleteV1IncidentTypesIDParams
- func (o *DeleteV1IncidentTypesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteV1IncidentTypesIDReader
- type GetV1IncidentTypesIDOK
- func (o *GetV1IncidentTypesIDOK) Error() string
- func (o *GetV1IncidentTypesIDOK) GetPayload() *models.IncidentTypeEntity
- func (o *GetV1IncidentTypesIDOK) IsClientError() bool
- func (o *GetV1IncidentTypesIDOK) IsCode(code int) bool
- func (o *GetV1IncidentTypesIDOK) IsRedirect() bool
- func (o *GetV1IncidentTypesIDOK) IsServerError() bool
- func (o *GetV1IncidentTypesIDOK) IsSuccess() bool
- func (o *GetV1IncidentTypesIDOK) String() string
- type GetV1IncidentTypesIDParams
- func NewGetV1IncidentTypesIDParams() *GetV1IncidentTypesIDParams
- func NewGetV1IncidentTypesIDParamsWithContext(ctx context.Context) *GetV1IncidentTypesIDParams
- func NewGetV1IncidentTypesIDParamsWithHTTPClient(client *http.Client) *GetV1IncidentTypesIDParams
- func NewGetV1IncidentTypesIDParamsWithTimeout(timeout time.Duration) *GetV1IncidentTypesIDParams
- func (o *GetV1IncidentTypesIDParams) SetContext(ctx context.Context)
- func (o *GetV1IncidentTypesIDParams) SetDefaults()
- func (o *GetV1IncidentTypesIDParams) SetHTTPClient(client *http.Client)
- func (o *GetV1IncidentTypesIDParams) SetID(id string)
- func (o *GetV1IncidentTypesIDParams) SetTimeout(timeout time.Duration)
- func (o *GetV1IncidentTypesIDParams) WithContext(ctx context.Context) *GetV1IncidentTypesIDParams
- func (o *GetV1IncidentTypesIDParams) WithDefaults() *GetV1IncidentTypesIDParams
- func (o *GetV1IncidentTypesIDParams) WithHTTPClient(client *http.Client) *GetV1IncidentTypesIDParams
- func (o *GetV1IncidentTypesIDParams) WithID(id string) *GetV1IncidentTypesIDParams
- func (o *GetV1IncidentTypesIDParams) WithTimeout(timeout time.Duration) *GetV1IncidentTypesIDParams
- func (o *GetV1IncidentTypesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1IncidentTypesIDReader
- type GetV1IncidentTypesOK
- func (o *GetV1IncidentTypesOK) Error() string
- func (o *GetV1IncidentTypesOK) GetPayload() *models.IncidentTypeEntityPaginated
- func (o *GetV1IncidentTypesOK) IsClientError() bool
- func (o *GetV1IncidentTypesOK) IsCode(code int) bool
- func (o *GetV1IncidentTypesOK) IsRedirect() bool
- func (o *GetV1IncidentTypesOK) IsServerError() bool
- func (o *GetV1IncidentTypesOK) IsSuccess() bool
- func (o *GetV1IncidentTypesOK) String() string
- type GetV1IncidentTypesParams
- func NewGetV1IncidentTypesParams() *GetV1IncidentTypesParams
- func NewGetV1IncidentTypesParamsWithContext(ctx context.Context) *GetV1IncidentTypesParams
- func NewGetV1IncidentTypesParamsWithHTTPClient(client *http.Client) *GetV1IncidentTypesParams
- func NewGetV1IncidentTypesParamsWithTimeout(timeout time.Duration) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) SetContext(ctx context.Context)
- func (o *GetV1IncidentTypesParams) SetDefaults()
- func (o *GetV1IncidentTypesParams) SetHTTPClient(client *http.Client)
- func (o *GetV1IncidentTypesParams) SetPage(page *int32)
- func (o *GetV1IncidentTypesParams) SetPerPage(perPage *int32)
- func (o *GetV1IncidentTypesParams) SetQuery(query *string)
- func (o *GetV1IncidentTypesParams) SetTimeout(timeout time.Duration)
- func (o *GetV1IncidentTypesParams) WithContext(ctx context.Context) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WithDefaults() *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WithHTTPClient(client *http.Client) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WithPage(page *int32) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WithPerPage(perPage *int32) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WithQuery(query *string) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WithTimeout(timeout time.Duration) *GetV1IncidentTypesParams
- func (o *GetV1IncidentTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1IncidentTypesReader
- type PatchV1IncidentTypesIDOK
- func (o *PatchV1IncidentTypesIDOK) Error() string
- func (o *PatchV1IncidentTypesIDOK) GetPayload() *models.IncidentTypeEntity
- func (o *PatchV1IncidentTypesIDOK) IsClientError() bool
- func (o *PatchV1IncidentTypesIDOK) IsCode(code int) bool
- func (o *PatchV1IncidentTypesIDOK) IsRedirect() bool
- func (o *PatchV1IncidentTypesIDOK) IsServerError() bool
- func (o *PatchV1IncidentTypesIDOK) IsSuccess() bool
- func (o *PatchV1IncidentTypesIDOK) String() string
- type PatchV1IncidentTypesIDParams
- func NewPatchV1IncidentTypesIDParams() *PatchV1IncidentTypesIDParams
- func NewPatchV1IncidentTypesIDParamsWithContext(ctx context.Context) *PatchV1IncidentTypesIDParams
- func NewPatchV1IncidentTypesIDParamsWithHTTPClient(client *http.Client) *PatchV1IncidentTypesIDParams
- func NewPatchV1IncidentTypesIDParamsWithTimeout(timeout time.Duration) *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) SetContext(ctx context.Context)
- func (o *PatchV1IncidentTypesIDParams) SetDefaults()
- func (o *PatchV1IncidentTypesIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchV1IncidentTypesIDParams) SetID(id string)
- func (o *PatchV1IncidentTypesIDParams) SetPatchV1IncidentTypesID(patchV1IncidentTypesID *models.PatchV1IncidentTypesID)
- func (o *PatchV1IncidentTypesIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchV1IncidentTypesIDParams) WithContext(ctx context.Context) *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) WithDefaults() *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) WithHTTPClient(client *http.Client) *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) WithID(id string) *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) WithPatchV1IncidentTypesID(patchV1IncidentTypesID *models.PatchV1IncidentTypesID) *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) WithTimeout(timeout time.Duration) *PatchV1IncidentTypesIDParams
- func (o *PatchV1IncidentTypesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchV1IncidentTypesIDReader
- type PostV1IncidentTypesCreated
- func (o *PostV1IncidentTypesCreated) Error() string
- func (o *PostV1IncidentTypesCreated) GetPayload() *models.IncidentTypeEntity
- func (o *PostV1IncidentTypesCreated) IsClientError() bool
- func (o *PostV1IncidentTypesCreated) IsCode(code int) bool
- func (o *PostV1IncidentTypesCreated) IsRedirect() bool
- func (o *PostV1IncidentTypesCreated) IsServerError() bool
- func (o *PostV1IncidentTypesCreated) IsSuccess() bool
- func (o *PostV1IncidentTypesCreated) String() string
- type PostV1IncidentTypesParams
- func NewPostV1IncidentTypesParams() *PostV1IncidentTypesParams
- func NewPostV1IncidentTypesParamsWithContext(ctx context.Context) *PostV1IncidentTypesParams
- func NewPostV1IncidentTypesParamsWithHTTPClient(client *http.Client) *PostV1IncidentTypesParams
- func NewPostV1IncidentTypesParamsWithTimeout(timeout time.Duration) *PostV1IncidentTypesParams
- func (o *PostV1IncidentTypesParams) SetContext(ctx context.Context)
- func (o *PostV1IncidentTypesParams) SetDefaults()
- func (o *PostV1IncidentTypesParams) SetHTTPClient(client *http.Client)
- func (o *PostV1IncidentTypesParams) SetPostV1IncidentTypes(postV1IncidentTypes *models.PostV1IncidentTypes)
- func (o *PostV1IncidentTypesParams) SetTimeout(timeout time.Duration)
- func (o *PostV1IncidentTypesParams) WithContext(ctx context.Context) *PostV1IncidentTypesParams
- func (o *PostV1IncidentTypesParams) WithDefaults() *PostV1IncidentTypesParams
- func (o *PostV1IncidentTypesParams) WithHTTPClient(client *http.Client) *PostV1IncidentTypesParams
- func (o *PostV1IncidentTypesParams) WithPostV1IncidentTypes(postV1IncidentTypes *models.PostV1IncidentTypes) *PostV1IncidentTypesParams
- func (o *PostV1IncidentTypesParams) WithTimeout(timeout time.Duration) *PostV1IncidentTypesParams
- func (o *PostV1IncidentTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostV1IncidentTypesReader
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 incident types API
func (*Client) DeleteV1IncidentTypesID ¶
func (a *Client) DeleteV1IncidentTypesID(params *DeleteV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1IncidentTypesIDOK, error)
DeleteV1IncidentTypesID archives an incident type
Archives an incident type which will hide it from lists and metrics
func (*Client) GetV1IncidentTypes ¶
func (a *Client) GetV1IncidentTypes(params *GetV1IncidentTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentTypesOK, error)
GetV1IncidentTypes lists all incident types
List all of the incident types in the organization
func (*Client) GetV1IncidentTypesID ¶
func (a *Client) GetV1IncidentTypesID(params *GetV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentTypesIDOK, error)
GetV1IncidentTypesID retrieves an incident type
Retrieve a single incident type from its ID
func (*Client) PatchV1IncidentTypesID ¶
func (a *Client) PatchV1IncidentTypesID(params *PatchV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1IncidentTypesIDOK, error)
PatchV1IncidentTypesID updates an incident type
Update a single incident type from its ID
func (*Client) PostV1IncidentTypes ¶
func (a *Client) PostV1IncidentTypes(params *PostV1IncidentTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1IncidentTypesCreated, error)
PostV1IncidentTypes creates an incident type
Create a new incident type
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 { DeleteV1IncidentTypesID(params *DeleteV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1IncidentTypesIDOK, error) GetV1IncidentTypes(params *GetV1IncidentTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentTypesOK, error) GetV1IncidentTypesID(params *GetV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentTypesIDOK, error) PatchV1IncidentTypesID(params *PatchV1IncidentTypesIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1IncidentTypesIDOK, error) PostV1IncidentTypes(params *PostV1IncidentTypesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1IncidentTypesCreated, 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 incident types API client.
type DeleteV1IncidentTypesIDOK ¶
type DeleteV1IncidentTypesIDOK struct {
Payload *models.IncidentTypeEntity
}
DeleteV1IncidentTypesIDOK describes a response with status code 200, with default header values.
Archives an incident type which will hide it from lists and metrics
func NewDeleteV1IncidentTypesIDOK ¶
func NewDeleteV1IncidentTypesIDOK() *DeleteV1IncidentTypesIDOK
NewDeleteV1IncidentTypesIDOK creates a DeleteV1IncidentTypesIDOK with default headers values
func (*DeleteV1IncidentTypesIDOK) Error ¶
func (o *DeleteV1IncidentTypesIDOK) Error() string
func (*DeleteV1IncidentTypesIDOK) GetPayload ¶
func (o *DeleteV1IncidentTypesIDOK) GetPayload() *models.IncidentTypeEntity
func (*DeleteV1IncidentTypesIDOK) IsClientError ¶
func (o *DeleteV1IncidentTypesIDOK) IsClientError() bool
IsClientError returns true when this delete v1 incident types Id o k response has a 4xx status code
func (*DeleteV1IncidentTypesIDOK) IsCode ¶
func (o *DeleteV1IncidentTypesIDOK) IsCode(code int) bool
IsCode returns true when this delete v1 incident types Id o k response a status code equal to that given
func (*DeleteV1IncidentTypesIDOK) IsRedirect ¶
func (o *DeleteV1IncidentTypesIDOK) IsRedirect() bool
IsRedirect returns true when this delete v1 incident types Id o k response has a 3xx status code
func (*DeleteV1IncidentTypesIDOK) IsServerError ¶
func (o *DeleteV1IncidentTypesIDOK) IsServerError() bool
IsServerError returns true when this delete v1 incident types Id o k response has a 5xx status code
func (*DeleteV1IncidentTypesIDOK) IsSuccess ¶
func (o *DeleteV1IncidentTypesIDOK) IsSuccess() bool
IsSuccess returns true when this delete v1 incident types Id o k response has a 2xx status code
func (*DeleteV1IncidentTypesIDOK) String ¶
func (o *DeleteV1IncidentTypesIDOK) String() string
type DeleteV1IncidentTypesIDParams ¶
type DeleteV1IncidentTypesIDParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteV1IncidentTypesIDParams contains all the parameters to send to the API endpoint
for the delete v1 incident types Id operation. Typically these are written to a http.Request.
func NewDeleteV1IncidentTypesIDParams ¶
func NewDeleteV1IncidentTypesIDParams() *DeleteV1IncidentTypesIDParams
NewDeleteV1IncidentTypesIDParams creates a new DeleteV1IncidentTypesIDParams 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 NewDeleteV1IncidentTypesIDParamsWithContext ¶
func NewDeleteV1IncidentTypesIDParamsWithContext(ctx context.Context) *DeleteV1IncidentTypesIDParams
NewDeleteV1IncidentTypesIDParamsWithContext creates a new DeleteV1IncidentTypesIDParams object with the ability to set a context for a request.
func NewDeleteV1IncidentTypesIDParamsWithHTTPClient ¶
func NewDeleteV1IncidentTypesIDParamsWithHTTPClient(client *http.Client) *DeleteV1IncidentTypesIDParams
NewDeleteV1IncidentTypesIDParamsWithHTTPClient creates a new DeleteV1IncidentTypesIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteV1IncidentTypesIDParamsWithTimeout ¶
func NewDeleteV1IncidentTypesIDParamsWithTimeout(timeout time.Duration) *DeleteV1IncidentTypesIDParams
NewDeleteV1IncidentTypesIDParamsWithTimeout creates a new DeleteV1IncidentTypesIDParams object with the ability to set a timeout on a request.
func (*DeleteV1IncidentTypesIDParams) SetContext ¶
func (o *DeleteV1IncidentTypesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) SetDefaults ¶
func (o *DeleteV1IncidentTypesIDParams) SetDefaults()
SetDefaults hydrates default values in the delete v1 incident types Id params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteV1IncidentTypesIDParams) SetHTTPClient ¶
func (o *DeleteV1IncidentTypesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) SetID ¶
func (o *DeleteV1IncidentTypesIDParams) SetID(id string)
SetID adds the id to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) SetTimeout ¶
func (o *DeleteV1IncidentTypesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) WithContext ¶
func (o *DeleteV1IncidentTypesIDParams) WithContext(ctx context.Context) *DeleteV1IncidentTypesIDParams
WithContext adds the context to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) WithDefaults ¶
func (o *DeleteV1IncidentTypesIDParams) WithDefaults() *DeleteV1IncidentTypesIDParams
WithDefaults hydrates default values in the delete v1 incident types Id params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteV1IncidentTypesIDParams) WithHTTPClient ¶
func (o *DeleteV1IncidentTypesIDParams) WithHTTPClient(client *http.Client) *DeleteV1IncidentTypesIDParams
WithHTTPClient adds the HTTPClient to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) WithID ¶
func (o *DeleteV1IncidentTypesIDParams) WithID(id string) *DeleteV1IncidentTypesIDParams
WithID adds the id to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) WithTimeout ¶
func (o *DeleteV1IncidentTypesIDParams) WithTimeout(timeout time.Duration) *DeleteV1IncidentTypesIDParams
WithTimeout adds the timeout to the delete v1 incident types Id params
func (*DeleteV1IncidentTypesIDParams) WriteToRequest ¶
func (o *DeleteV1IncidentTypesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteV1IncidentTypesIDReader ¶
type DeleteV1IncidentTypesIDReader struct {
// contains filtered or unexported fields
}
DeleteV1IncidentTypesIDReader is a Reader for the DeleteV1IncidentTypesID structure.
func (*DeleteV1IncidentTypesIDReader) ReadResponse ¶
func (o *DeleteV1IncidentTypesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1IncidentTypesIDOK ¶
type GetV1IncidentTypesIDOK struct {
Payload *models.IncidentTypeEntity
}
GetV1IncidentTypesIDOK describes a response with status code 200, with default header values.
Retrieve a single incident type from its ID
func NewGetV1IncidentTypesIDOK ¶
func NewGetV1IncidentTypesIDOK() *GetV1IncidentTypesIDOK
NewGetV1IncidentTypesIDOK creates a GetV1IncidentTypesIDOK with default headers values
func (*GetV1IncidentTypesIDOK) Error ¶
func (o *GetV1IncidentTypesIDOK) Error() string
func (*GetV1IncidentTypesIDOK) GetPayload ¶
func (o *GetV1IncidentTypesIDOK) GetPayload() *models.IncidentTypeEntity
func (*GetV1IncidentTypesIDOK) IsClientError ¶
func (o *GetV1IncidentTypesIDOK) IsClientError() bool
IsClientError returns true when this get v1 incident types Id o k response has a 4xx status code
func (*GetV1IncidentTypesIDOK) IsCode ¶
func (o *GetV1IncidentTypesIDOK) IsCode(code int) bool
IsCode returns true when this get v1 incident types Id o k response a status code equal to that given
func (*GetV1IncidentTypesIDOK) IsRedirect ¶
func (o *GetV1IncidentTypesIDOK) IsRedirect() bool
IsRedirect returns true when this get v1 incident types Id o k response has a 3xx status code
func (*GetV1IncidentTypesIDOK) IsServerError ¶
func (o *GetV1IncidentTypesIDOK) IsServerError() bool
IsServerError returns true when this get v1 incident types Id o k response has a 5xx status code
func (*GetV1IncidentTypesIDOK) IsSuccess ¶
func (o *GetV1IncidentTypesIDOK) IsSuccess() bool
IsSuccess returns true when this get v1 incident types Id o k response has a 2xx status code
func (*GetV1IncidentTypesIDOK) String ¶
func (o *GetV1IncidentTypesIDOK) String() string
type GetV1IncidentTypesIDParams ¶
type GetV1IncidentTypesIDParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1IncidentTypesIDParams contains all the parameters to send to the API endpoint
for the get v1 incident types Id operation. Typically these are written to a http.Request.
func NewGetV1IncidentTypesIDParams ¶
func NewGetV1IncidentTypesIDParams() *GetV1IncidentTypesIDParams
NewGetV1IncidentTypesIDParams creates a new GetV1IncidentTypesIDParams 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 NewGetV1IncidentTypesIDParamsWithContext ¶
func NewGetV1IncidentTypesIDParamsWithContext(ctx context.Context) *GetV1IncidentTypesIDParams
NewGetV1IncidentTypesIDParamsWithContext creates a new GetV1IncidentTypesIDParams object with the ability to set a context for a request.
func NewGetV1IncidentTypesIDParamsWithHTTPClient ¶
func NewGetV1IncidentTypesIDParamsWithHTTPClient(client *http.Client) *GetV1IncidentTypesIDParams
NewGetV1IncidentTypesIDParamsWithHTTPClient creates a new GetV1IncidentTypesIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1IncidentTypesIDParamsWithTimeout ¶
func NewGetV1IncidentTypesIDParamsWithTimeout(timeout time.Duration) *GetV1IncidentTypesIDParams
NewGetV1IncidentTypesIDParamsWithTimeout creates a new GetV1IncidentTypesIDParams object with the ability to set a timeout on a request.
func (*GetV1IncidentTypesIDParams) SetContext ¶
func (o *GetV1IncidentTypesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) SetDefaults ¶
func (o *GetV1IncidentTypesIDParams) SetDefaults()
SetDefaults hydrates default values in the get v1 incident types Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentTypesIDParams) SetHTTPClient ¶
func (o *GetV1IncidentTypesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) SetID ¶
func (o *GetV1IncidentTypesIDParams) SetID(id string)
SetID adds the id to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) SetTimeout ¶
func (o *GetV1IncidentTypesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) WithContext ¶
func (o *GetV1IncidentTypesIDParams) WithContext(ctx context.Context) *GetV1IncidentTypesIDParams
WithContext adds the context to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) WithDefaults ¶
func (o *GetV1IncidentTypesIDParams) WithDefaults() *GetV1IncidentTypesIDParams
WithDefaults hydrates default values in the get v1 incident types Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentTypesIDParams) WithHTTPClient ¶
func (o *GetV1IncidentTypesIDParams) WithHTTPClient(client *http.Client) *GetV1IncidentTypesIDParams
WithHTTPClient adds the HTTPClient to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) WithID ¶
func (o *GetV1IncidentTypesIDParams) WithID(id string) *GetV1IncidentTypesIDParams
WithID adds the id to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) WithTimeout ¶
func (o *GetV1IncidentTypesIDParams) WithTimeout(timeout time.Duration) *GetV1IncidentTypesIDParams
WithTimeout adds the timeout to the get v1 incident types Id params
func (*GetV1IncidentTypesIDParams) WriteToRequest ¶
func (o *GetV1IncidentTypesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1IncidentTypesIDReader ¶
type GetV1IncidentTypesIDReader struct {
// contains filtered or unexported fields
}
GetV1IncidentTypesIDReader is a Reader for the GetV1IncidentTypesID structure.
func (*GetV1IncidentTypesIDReader) ReadResponse ¶
func (o *GetV1IncidentTypesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1IncidentTypesOK ¶
type GetV1IncidentTypesOK struct {
Payload *models.IncidentTypeEntityPaginated
}
GetV1IncidentTypesOK describes a response with status code 200, with default header values.
List all of the incident types in the organization
func NewGetV1IncidentTypesOK ¶
func NewGetV1IncidentTypesOK() *GetV1IncidentTypesOK
NewGetV1IncidentTypesOK creates a GetV1IncidentTypesOK with default headers values
func (*GetV1IncidentTypesOK) Error ¶
func (o *GetV1IncidentTypesOK) Error() string
func (*GetV1IncidentTypesOK) GetPayload ¶
func (o *GetV1IncidentTypesOK) GetPayload() *models.IncidentTypeEntityPaginated
func (*GetV1IncidentTypesOK) IsClientError ¶
func (o *GetV1IncidentTypesOK) IsClientError() bool
IsClientError returns true when this get v1 incident types o k response has a 4xx status code
func (*GetV1IncidentTypesOK) IsCode ¶
func (o *GetV1IncidentTypesOK) IsCode(code int) bool
IsCode returns true when this get v1 incident types o k response a status code equal to that given
func (*GetV1IncidentTypesOK) IsRedirect ¶
func (o *GetV1IncidentTypesOK) IsRedirect() bool
IsRedirect returns true when this get v1 incident types o k response has a 3xx status code
func (*GetV1IncidentTypesOK) IsServerError ¶
func (o *GetV1IncidentTypesOK) IsServerError() bool
IsServerError returns true when this get v1 incident types o k response has a 5xx status code
func (*GetV1IncidentTypesOK) IsSuccess ¶
func (o *GetV1IncidentTypesOK) IsSuccess() bool
IsSuccess returns true when this get v1 incident types o k response has a 2xx status code
func (*GetV1IncidentTypesOK) String ¶
func (o *GetV1IncidentTypesOK) String() string
type GetV1IncidentTypesParams ¶
type GetV1IncidentTypesParams struct { // Page. // // Format: int32 Page *int32 // PerPage. // // Format: int32 PerPage *int32 /* Query. A query to search incident types by their name */ Query *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1IncidentTypesParams contains all the parameters to send to the API endpoint
for the get v1 incident types operation. Typically these are written to a http.Request.
func NewGetV1IncidentTypesParams ¶
func NewGetV1IncidentTypesParams() *GetV1IncidentTypesParams
NewGetV1IncidentTypesParams creates a new GetV1IncidentTypesParams 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 NewGetV1IncidentTypesParamsWithContext ¶
func NewGetV1IncidentTypesParamsWithContext(ctx context.Context) *GetV1IncidentTypesParams
NewGetV1IncidentTypesParamsWithContext creates a new GetV1IncidentTypesParams object with the ability to set a context for a request.
func NewGetV1IncidentTypesParamsWithHTTPClient ¶
func NewGetV1IncidentTypesParamsWithHTTPClient(client *http.Client) *GetV1IncidentTypesParams
NewGetV1IncidentTypesParamsWithHTTPClient creates a new GetV1IncidentTypesParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1IncidentTypesParamsWithTimeout ¶
func NewGetV1IncidentTypesParamsWithTimeout(timeout time.Duration) *GetV1IncidentTypesParams
NewGetV1IncidentTypesParamsWithTimeout creates a new GetV1IncidentTypesParams object with the ability to set a timeout on a request.
func (*GetV1IncidentTypesParams) SetContext ¶
func (o *GetV1IncidentTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 incident types params
func (*GetV1IncidentTypesParams) SetDefaults ¶
func (o *GetV1IncidentTypesParams) SetDefaults()
SetDefaults hydrates default values in the get v1 incident types params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentTypesParams) SetHTTPClient ¶
func (o *GetV1IncidentTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 incident types params
func (*GetV1IncidentTypesParams) SetPage ¶
func (o *GetV1IncidentTypesParams) SetPage(page *int32)
SetPage adds the page to the get v1 incident types params
func (*GetV1IncidentTypesParams) SetPerPage ¶
func (o *GetV1IncidentTypesParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the get v1 incident types params
func (*GetV1IncidentTypesParams) SetQuery ¶
func (o *GetV1IncidentTypesParams) SetQuery(query *string)
SetQuery adds the query to the get v1 incident types params
func (*GetV1IncidentTypesParams) SetTimeout ¶
func (o *GetV1IncidentTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 incident types params
func (*GetV1IncidentTypesParams) WithContext ¶
func (o *GetV1IncidentTypesParams) WithContext(ctx context.Context) *GetV1IncidentTypesParams
WithContext adds the context to the get v1 incident types params
func (*GetV1IncidentTypesParams) WithDefaults ¶
func (o *GetV1IncidentTypesParams) WithDefaults() *GetV1IncidentTypesParams
WithDefaults hydrates default values in the get v1 incident types params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentTypesParams) WithHTTPClient ¶
func (o *GetV1IncidentTypesParams) WithHTTPClient(client *http.Client) *GetV1IncidentTypesParams
WithHTTPClient adds the HTTPClient to the get v1 incident types params
func (*GetV1IncidentTypesParams) WithPage ¶
func (o *GetV1IncidentTypesParams) WithPage(page *int32) *GetV1IncidentTypesParams
WithPage adds the page to the get v1 incident types params
func (*GetV1IncidentTypesParams) WithPerPage ¶
func (o *GetV1IncidentTypesParams) WithPerPage(perPage *int32) *GetV1IncidentTypesParams
WithPerPage adds the perPage to the get v1 incident types params
func (*GetV1IncidentTypesParams) WithQuery ¶
func (o *GetV1IncidentTypesParams) WithQuery(query *string) *GetV1IncidentTypesParams
WithQuery adds the query to the get v1 incident types params
func (*GetV1IncidentTypesParams) WithTimeout ¶
func (o *GetV1IncidentTypesParams) WithTimeout(timeout time.Duration) *GetV1IncidentTypesParams
WithTimeout adds the timeout to the get v1 incident types params
func (*GetV1IncidentTypesParams) WriteToRequest ¶
func (o *GetV1IncidentTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1IncidentTypesReader ¶
type GetV1IncidentTypesReader struct {
// contains filtered or unexported fields
}
GetV1IncidentTypesReader is a Reader for the GetV1IncidentTypes structure.
func (*GetV1IncidentTypesReader) ReadResponse ¶
func (o *GetV1IncidentTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchV1IncidentTypesIDOK ¶
type PatchV1IncidentTypesIDOK struct {
Payload *models.IncidentTypeEntity
}
PatchV1IncidentTypesIDOK describes a response with status code 200, with default header values.
Update a single incident type from its ID
func NewPatchV1IncidentTypesIDOK ¶
func NewPatchV1IncidentTypesIDOK() *PatchV1IncidentTypesIDOK
NewPatchV1IncidentTypesIDOK creates a PatchV1IncidentTypesIDOK with default headers values
func (*PatchV1IncidentTypesIDOK) Error ¶
func (o *PatchV1IncidentTypesIDOK) Error() string
func (*PatchV1IncidentTypesIDOK) GetPayload ¶
func (o *PatchV1IncidentTypesIDOK) GetPayload() *models.IncidentTypeEntity
func (*PatchV1IncidentTypesIDOK) IsClientError ¶
func (o *PatchV1IncidentTypesIDOK) IsClientError() bool
IsClientError returns true when this patch v1 incident types Id o k response has a 4xx status code
func (*PatchV1IncidentTypesIDOK) IsCode ¶
func (o *PatchV1IncidentTypesIDOK) IsCode(code int) bool
IsCode returns true when this patch v1 incident types Id o k response a status code equal to that given
func (*PatchV1IncidentTypesIDOK) IsRedirect ¶
func (o *PatchV1IncidentTypesIDOK) IsRedirect() bool
IsRedirect returns true when this patch v1 incident types Id o k response has a 3xx status code
func (*PatchV1IncidentTypesIDOK) IsServerError ¶
func (o *PatchV1IncidentTypesIDOK) IsServerError() bool
IsServerError returns true when this patch v1 incident types Id o k response has a 5xx status code
func (*PatchV1IncidentTypesIDOK) IsSuccess ¶
func (o *PatchV1IncidentTypesIDOK) IsSuccess() bool
IsSuccess returns true when this patch v1 incident types Id o k response has a 2xx status code
func (*PatchV1IncidentTypesIDOK) String ¶
func (o *PatchV1IncidentTypesIDOK) String() string
type PatchV1IncidentTypesIDParams ¶
type PatchV1IncidentTypesIDParams struct { // ID. ID string // PatchV1IncidentTypesID. PatchV1IncidentTypesID *models.PatchV1IncidentTypesID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchV1IncidentTypesIDParams contains all the parameters to send to the API endpoint
for the patch v1 incident types Id operation. Typically these are written to a http.Request.
func NewPatchV1IncidentTypesIDParams ¶
func NewPatchV1IncidentTypesIDParams() *PatchV1IncidentTypesIDParams
NewPatchV1IncidentTypesIDParams creates a new PatchV1IncidentTypesIDParams 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 NewPatchV1IncidentTypesIDParamsWithContext ¶
func NewPatchV1IncidentTypesIDParamsWithContext(ctx context.Context) *PatchV1IncidentTypesIDParams
NewPatchV1IncidentTypesIDParamsWithContext creates a new PatchV1IncidentTypesIDParams object with the ability to set a context for a request.
func NewPatchV1IncidentTypesIDParamsWithHTTPClient ¶
func NewPatchV1IncidentTypesIDParamsWithHTTPClient(client *http.Client) *PatchV1IncidentTypesIDParams
NewPatchV1IncidentTypesIDParamsWithHTTPClient creates a new PatchV1IncidentTypesIDParams object with the ability to set a custom HTTPClient for a request.
func NewPatchV1IncidentTypesIDParamsWithTimeout ¶
func NewPatchV1IncidentTypesIDParamsWithTimeout(timeout time.Duration) *PatchV1IncidentTypesIDParams
NewPatchV1IncidentTypesIDParamsWithTimeout creates a new PatchV1IncidentTypesIDParams object with the ability to set a timeout on a request.
func (*PatchV1IncidentTypesIDParams) SetContext ¶
func (o *PatchV1IncidentTypesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) SetDefaults ¶
func (o *PatchV1IncidentTypesIDParams) SetDefaults()
SetDefaults hydrates default values in the patch v1 incident types Id params (not the query body).
All values with no default are reset to their zero value.
func (*PatchV1IncidentTypesIDParams) SetHTTPClient ¶
func (o *PatchV1IncidentTypesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) SetID ¶
func (o *PatchV1IncidentTypesIDParams) SetID(id string)
SetID adds the id to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) SetPatchV1IncidentTypesID ¶
func (o *PatchV1IncidentTypesIDParams) SetPatchV1IncidentTypesID(patchV1IncidentTypesID *models.PatchV1IncidentTypesID)
SetPatchV1IncidentTypesID adds the patchV1IncidentTypesId to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) SetTimeout ¶
func (o *PatchV1IncidentTypesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) WithContext ¶
func (o *PatchV1IncidentTypesIDParams) WithContext(ctx context.Context) *PatchV1IncidentTypesIDParams
WithContext adds the context to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) WithDefaults ¶
func (o *PatchV1IncidentTypesIDParams) WithDefaults() *PatchV1IncidentTypesIDParams
WithDefaults hydrates default values in the patch v1 incident types Id params (not the query body).
All values with no default are reset to their zero value.
func (*PatchV1IncidentTypesIDParams) WithHTTPClient ¶
func (o *PatchV1IncidentTypesIDParams) WithHTTPClient(client *http.Client) *PatchV1IncidentTypesIDParams
WithHTTPClient adds the HTTPClient to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) WithID ¶
func (o *PatchV1IncidentTypesIDParams) WithID(id string) *PatchV1IncidentTypesIDParams
WithID adds the id to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) WithPatchV1IncidentTypesID ¶
func (o *PatchV1IncidentTypesIDParams) WithPatchV1IncidentTypesID(patchV1IncidentTypesID *models.PatchV1IncidentTypesID) *PatchV1IncidentTypesIDParams
WithPatchV1IncidentTypesID adds the patchV1IncidentTypesID to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) WithTimeout ¶
func (o *PatchV1IncidentTypesIDParams) WithTimeout(timeout time.Duration) *PatchV1IncidentTypesIDParams
WithTimeout adds the timeout to the patch v1 incident types Id params
func (*PatchV1IncidentTypesIDParams) WriteToRequest ¶
func (o *PatchV1IncidentTypesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchV1IncidentTypesIDReader ¶
type PatchV1IncidentTypesIDReader struct {
// contains filtered or unexported fields
}
PatchV1IncidentTypesIDReader is a Reader for the PatchV1IncidentTypesID structure.
func (*PatchV1IncidentTypesIDReader) ReadResponse ¶
func (o *PatchV1IncidentTypesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostV1IncidentTypesCreated ¶
type PostV1IncidentTypesCreated struct {
Payload *models.IncidentTypeEntity
}
PostV1IncidentTypesCreated describes a response with status code 201, with default header values.
Create a new incident type
func NewPostV1IncidentTypesCreated ¶
func NewPostV1IncidentTypesCreated() *PostV1IncidentTypesCreated
NewPostV1IncidentTypesCreated creates a PostV1IncidentTypesCreated with default headers values
func (*PostV1IncidentTypesCreated) Error ¶
func (o *PostV1IncidentTypesCreated) Error() string
func (*PostV1IncidentTypesCreated) GetPayload ¶
func (o *PostV1IncidentTypesCreated) GetPayload() *models.IncidentTypeEntity
func (*PostV1IncidentTypesCreated) IsClientError ¶
func (o *PostV1IncidentTypesCreated) IsClientError() bool
IsClientError returns true when this post v1 incident types created response has a 4xx status code
func (*PostV1IncidentTypesCreated) IsCode ¶
func (o *PostV1IncidentTypesCreated) IsCode(code int) bool
IsCode returns true when this post v1 incident types created response a status code equal to that given
func (*PostV1IncidentTypesCreated) IsRedirect ¶
func (o *PostV1IncidentTypesCreated) IsRedirect() bool
IsRedirect returns true when this post v1 incident types created response has a 3xx status code
func (*PostV1IncidentTypesCreated) IsServerError ¶
func (o *PostV1IncidentTypesCreated) IsServerError() bool
IsServerError returns true when this post v1 incident types created response has a 5xx status code
func (*PostV1IncidentTypesCreated) IsSuccess ¶
func (o *PostV1IncidentTypesCreated) IsSuccess() bool
IsSuccess returns true when this post v1 incident types created response has a 2xx status code
func (*PostV1IncidentTypesCreated) String ¶
func (o *PostV1IncidentTypesCreated) String() string
type PostV1IncidentTypesParams ¶
type PostV1IncidentTypesParams struct { // PostV1IncidentTypes. PostV1IncidentTypes *models.PostV1IncidentTypes Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostV1IncidentTypesParams contains all the parameters to send to the API endpoint
for the post v1 incident types operation. Typically these are written to a http.Request.
func NewPostV1IncidentTypesParams ¶
func NewPostV1IncidentTypesParams() *PostV1IncidentTypesParams
NewPostV1IncidentTypesParams creates a new PostV1IncidentTypesParams 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 NewPostV1IncidentTypesParamsWithContext ¶
func NewPostV1IncidentTypesParamsWithContext(ctx context.Context) *PostV1IncidentTypesParams
NewPostV1IncidentTypesParamsWithContext creates a new PostV1IncidentTypesParams object with the ability to set a context for a request.
func NewPostV1IncidentTypesParamsWithHTTPClient ¶
func NewPostV1IncidentTypesParamsWithHTTPClient(client *http.Client) *PostV1IncidentTypesParams
NewPostV1IncidentTypesParamsWithHTTPClient creates a new PostV1IncidentTypesParams object with the ability to set a custom HTTPClient for a request.
func NewPostV1IncidentTypesParamsWithTimeout ¶
func NewPostV1IncidentTypesParamsWithTimeout(timeout time.Duration) *PostV1IncidentTypesParams
NewPostV1IncidentTypesParamsWithTimeout creates a new PostV1IncidentTypesParams object with the ability to set a timeout on a request.
func (*PostV1IncidentTypesParams) SetContext ¶
func (o *PostV1IncidentTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the post v1 incident types params
func (*PostV1IncidentTypesParams) SetDefaults ¶
func (o *PostV1IncidentTypesParams) SetDefaults()
SetDefaults hydrates default values in the post v1 incident types params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1IncidentTypesParams) SetHTTPClient ¶
func (o *PostV1IncidentTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post v1 incident types params
func (*PostV1IncidentTypesParams) SetPostV1IncidentTypes ¶
func (o *PostV1IncidentTypesParams) SetPostV1IncidentTypes(postV1IncidentTypes *models.PostV1IncidentTypes)
SetPostV1IncidentTypes adds the postV1IncidentTypes to the post v1 incident types params
func (*PostV1IncidentTypesParams) SetTimeout ¶
func (o *PostV1IncidentTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post v1 incident types params
func (*PostV1IncidentTypesParams) WithContext ¶
func (o *PostV1IncidentTypesParams) WithContext(ctx context.Context) *PostV1IncidentTypesParams
WithContext adds the context to the post v1 incident types params
func (*PostV1IncidentTypesParams) WithDefaults ¶
func (o *PostV1IncidentTypesParams) WithDefaults() *PostV1IncidentTypesParams
WithDefaults hydrates default values in the post v1 incident types params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1IncidentTypesParams) WithHTTPClient ¶
func (o *PostV1IncidentTypesParams) WithHTTPClient(client *http.Client) *PostV1IncidentTypesParams
WithHTTPClient adds the HTTPClient to the post v1 incident types params
func (*PostV1IncidentTypesParams) WithPostV1IncidentTypes ¶
func (o *PostV1IncidentTypesParams) WithPostV1IncidentTypes(postV1IncidentTypes *models.PostV1IncidentTypes) *PostV1IncidentTypesParams
WithPostV1IncidentTypes adds the postV1IncidentTypes to the post v1 incident types params
func (*PostV1IncidentTypesParams) WithTimeout ¶
func (o *PostV1IncidentTypesParams) WithTimeout(timeout time.Duration) *PostV1IncidentTypesParams
WithTimeout adds the timeout to the post v1 incident types params
func (*PostV1IncidentTypesParams) WriteToRequest ¶
func (o *PostV1IncidentTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostV1IncidentTypesReader ¶
type PostV1IncidentTypesReader struct {
// contains filtered or unexported fields
}
PostV1IncidentTypesReader is a Reader for the PostV1IncidentTypes structure.
func (*PostV1IncidentTypesReader) ReadResponse ¶
func (o *PostV1IncidentTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- delete_v1_incident_types_id_parameters.go
- delete_v1_incident_types_id_responses.go
- get_v1_incident_types_id_parameters.go
- get_v1_incident_types_id_responses.go
- get_v1_incident_types_parameters.go
- get_v1_incident_types_responses.go
- incident_types_client.go
- patch_v1_incident_types_id_parameters.go
- patch_v1_incident_types_id_responses.go
- post_v1_incident_types_parameters.go
- post_v1_incident_types_responses.go