Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteV1IncidentRolesIncidentRoleID(params *DeleteV1IncidentRolesIncidentRoleIDParams, ...) (*DeleteV1IncidentRolesIncidentRoleIDOK, error)
- func (a *Client) GetV1IncidentRoles(params *GetV1IncidentRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1IncidentRolesOK, error)
- func (a *Client) GetV1IncidentRolesIncidentRoleID(params *GetV1IncidentRolesIncidentRoleIDParams, ...) (*GetV1IncidentRolesIncidentRoleIDOK, error)
- func (a *Client) PatchV1IncidentRolesIncidentRoleID(params *PatchV1IncidentRolesIncidentRoleIDParams, ...) (*PatchV1IncidentRolesIncidentRoleIDOK, error)
- func (a *Client) PostV1IncidentRoles(params *PostV1IncidentRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostV1IncidentRolesCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteV1IncidentRolesIncidentRoleIDOK
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) Error() string
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) GetPayload() *models.IncidentRoleEntity
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsClientError() bool
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsCode(code int) bool
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsRedirect() bool
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsServerError() bool
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsSuccess() bool
- func (o *DeleteV1IncidentRolesIncidentRoleIDOK) String() string
- type DeleteV1IncidentRolesIncidentRoleIDParams
- func NewDeleteV1IncidentRolesIncidentRoleIDParams() *DeleteV1IncidentRolesIncidentRoleIDParams
- func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithContext(ctx context.Context) *DeleteV1IncidentRolesIncidentRoleIDParams
- func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithHTTPClient(client *http.Client) *DeleteV1IncidentRolesIncidentRoleIDParams
- func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithTimeout(timeout time.Duration) *DeleteV1IncidentRolesIncidentRoleIDParams
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetContext(ctx context.Context)
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetDefaults()
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID(incidentRoleID int32)
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithContext(ctx context.Context) *DeleteV1IncidentRolesIncidentRoleIDParams
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithDefaults() *DeleteV1IncidentRolesIncidentRoleIDParams
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithHTTPClient(client *http.Client) *DeleteV1IncidentRolesIncidentRoleIDParams
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID(incidentRoleID int32) *DeleteV1IncidentRolesIncidentRoleIDParams
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithTimeout(timeout time.Duration) *DeleteV1IncidentRolesIncidentRoleIDParams
- func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteV1IncidentRolesIncidentRoleIDReader
- type GetV1IncidentRolesIncidentRoleIDOK
- func (o *GetV1IncidentRolesIncidentRoleIDOK) Error() string
- func (o *GetV1IncidentRolesIncidentRoleIDOK) GetPayload() *models.IncidentRoleEntity
- func (o *GetV1IncidentRolesIncidentRoleIDOK) IsClientError() bool
- func (o *GetV1IncidentRolesIncidentRoleIDOK) IsCode(code int) bool
- func (o *GetV1IncidentRolesIncidentRoleIDOK) IsRedirect() bool
- func (o *GetV1IncidentRolesIncidentRoleIDOK) IsServerError() bool
- func (o *GetV1IncidentRolesIncidentRoleIDOK) IsSuccess() bool
- func (o *GetV1IncidentRolesIncidentRoleIDOK) String() string
- type GetV1IncidentRolesIncidentRoleIDParams
- func NewGetV1IncidentRolesIncidentRoleIDParams() *GetV1IncidentRolesIncidentRoleIDParams
- func NewGetV1IncidentRolesIncidentRoleIDParamsWithContext(ctx context.Context) *GetV1IncidentRolesIncidentRoleIDParams
- func NewGetV1IncidentRolesIncidentRoleIDParamsWithHTTPClient(client *http.Client) *GetV1IncidentRolesIncidentRoleIDParams
- func NewGetV1IncidentRolesIncidentRoleIDParamsWithTimeout(timeout time.Duration) *GetV1IncidentRolesIncidentRoleIDParams
- func (o *GetV1IncidentRolesIncidentRoleIDParams) SetContext(ctx context.Context)
- func (o *GetV1IncidentRolesIncidentRoleIDParams) SetDefaults()
- func (o *GetV1IncidentRolesIncidentRoleIDParams) SetHTTPClient(client *http.Client)
- func (o *GetV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID(incidentRoleID string)
- func (o *GetV1IncidentRolesIncidentRoleIDParams) SetTimeout(timeout time.Duration)
- func (o *GetV1IncidentRolesIncidentRoleIDParams) WithContext(ctx context.Context) *GetV1IncidentRolesIncidentRoleIDParams
- func (o *GetV1IncidentRolesIncidentRoleIDParams) WithDefaults() *GetV1IncidentRolesIncidentRoleIDParams
- func (o *GetV1IncidentRolesIncidentRoleIDParams) WithHTTPClient(client *http.Client) *GetV1IncidentRolesIncidentRoleIDParams
- func (o *GetV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID(incidentRoleID string) *GetV1IncidentRolesIncidentRoleIDParams
- func (o *GetV1IncidentRolesIncidentRoleIDParams) WithTimeout(timeout time.Duration) *GetV1IncidentRolesIncidentRoleIDParams
- func (o *GetV1IncidentRolesIncidentRoleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1IncidentRolesIncidentRoleIDReader
- type GetV1IncidentRolesOK
- func (o *GetV1IncidentRolesOK) Error() string
- func (o *GetV1IncidentRolesOK) GetPayload() *models.IncidentRoleEntityPaginated
- func (o *GetV1IncidentRolesOK) IsClientError() bool
- func (o *GetV1IncidentRolesOK) IsCode(code int) bool
- func (o *GetV1IncidentRolesOK) IsRedirect() bool
- func (o *GetV1IncidentRolesOK) IsServerError() bool
- func (o *GetV1IncidentRolesOK) IsSuccess() bool
- func (o *GetV1IncidentRolesOK) String() string
- type GetV1IncidentRolesParams
- func NewGetV1IncidentRolesParams() *GetV1IncidentRolesParams
- func NewGetV1IncidentRolesParamsWithContext(ctx context.Context) *GetV1IncidentRolesParams
- func NewGetV1IncidentRolesParamsWithHTTPClient(client *http.Client) *GetV1IncidentRolesParams
- func NewGetV1IncidentRolesParamsWithTimeout(timeout time.Duration) *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) SetContext(ctx context.Context)
- func (o *GetV1IncidentRolesParams) SetDefaults()
- func (o *GetV1IncidentRolesParams) SetHTTPClient(client *http.Client)
- func (o *GetV1IncidentRolesParams) SetPage(page *int32)
- func (o *GetV1IncidentRolesParams) SetPerPage(perPage *int32)
- func (o *GetV1IncidentRolesParams) SetTimeout(timeout time.Duration)
- func (o *GetV1IncidentRolesParams) WithContext(ctx context.Context) *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) WithDefaults() *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) WithHTTPClient(client *http.Client) *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) WithPage(page *int32) *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) WithPerPage(perPage *int32) *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) WithTimeout(timeout time.Duration) *GetV1IncidentRolesParams
- func (o *GetV1IncidentRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1IncidentRolesReader
- type PatchV1IncidentRolesIncidentRoleIDOK
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) Error() string
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) GetPayload() *models.IncidentRoleEntity
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsClientError() bool
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsCode(code int) bool
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsRedirect() bool
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsServerError() bool
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsSuccess() bool
- func (o *PatchV1IncidentRolesIncidentRoleIDOK) String() string
- type PatchV1IncidentRolesIncidentRoleIDParams
- func NewPatchV1IncidentRolesIncidentRoleIDParams() *PatchV1IncidentRolesIncidentRoleIDParams
- func NewPatchV1IncidentRolesIncidentRoleIDParamsWithContext(ctx context.Context) *PatchV1IncidentRolesIncidentRoleIDParams
- func NewPatchV1IncidentRolesIncidentRoleIDParamsWithHTTPClient(client *http.Client) *PatchV1IncidentRolesIncidentRoleIDParams
- func NewPatchV1IncidentRolesIncidentRoleIDParamsWithTimeout(timeout time.Duration) *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetContext(ctx context.Context)
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetDefaults()
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID(incidentRoleID int32)
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetPatchV1IncidentRolesIncidentRoleID(patchV1IncidentRolesIncidentRoleID *models.PatchV1IncidentRolesIncidentRoleID)
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithContext(ctx context.Context) *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithDefaults() *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithHTTPClient(client *http.Client) *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID(incidentRoleID int32) *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithPatchV1IncidentRolesIncidentRoleID(patchV1IncidentRolesIncidentRoleID *models.PatchV1IncidentRolesIncidentRoleID) *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithTimeout(timeout time.Duration) *PatchV1IncidentRolesIncidentRoleIDParams
- func (o *PatchV1IncidentRolesIncidentRoleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchV1IncidentRolesIncidentRoleIDReader
- type PostV1IncidentRolesCreated
- func (o *PostV1IncidentRolesCreated) Error() string
- func (o *PostV1IncidentRolesCreated) GetPayload() *models.IncidentRoleEntity
- func (o *PostV1IncidentRolesCreated) IsClientError() bool
- func (o *PostV1IncidentRolesCreated) IsCode(code int) bool
- func (o *PostV1IncidentRolesCreated) IsRedirect() bool
- func (o *PostV1IncidentRolesCreated) IsServerError() bool
- func (o *PostV1IncidentRolesCreated) IsSuccess() bool
- func (o *PostV1IncidentRolesCreated) String() string
- type PostV1IncidentRolesParams
- func NewPostV1IncidentRolesParams() *PostV1IncidentRolesParams
- func NewPostV1IncidentRolesParamsWithContext(ctx context.Context) *PostV1IncidentRolesParams
- func NewPostV1IncidentRolesParamsWithHTTPClient(client *http.Client) *PostV1IncidentRolesParams
- func NewPostV1IncidentRolesParamsWithTimeout(timeout time.Duration) *PostV1IncidentRolesParams
- func (o *PostV1IncidentRolesParams) SetContext(ctx context.Context)
- func (o *PostV1IncidentRolesParams) SetDefaults()
- func (o *PostV1IncidentRolesParams) SetHTTPClient(client *http.Client)
- func (o *PostV1IncidentRolesParams) SetPostV1IncidentRoles(postV1IncidentRoles *models.PostV1IncidentRoles)
- func (o *PostV1IncidentRolesParams) SetTimeout(timeout time.Duration)
- func (o *PostV1IncidentRolesParams) WithContext(ctx context.Context) *PostV1IncidentRolesParams
- func (o *PostV1IncidentRolesParams) WithDefaults() *PostV1IncidentRolesParams
- func (o *PostV1IncidentRolesParams) WithHTTPClient(client *http.Client) *PostV1IncidentRolesParams
- func (o *PostV1IncidentRolesParams) WithPostV1IncidentRoles(postV1IncidentRoles *models.PostV1IncidentRoles) *PostV1IncidentRolesParams
- func (o *PostV1IncidentRolesParams) WithTimeout(timeout time.Duration) *PostV1IncidentRolesParams
- func (o *PostV1IncidentRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostV1IncidentRolesReader
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 roles API
func (*Client) DeleteV1IncidentRolesIncidentRoleID ¶
func (a *Client) DeleteV1IncidentRolesIncidentRoleID(params *DeleteV1IncidentRolesIncidentRoleIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1IncidentRolesIncidentRoleIDOK, error)
DeleteV1IncidentRolesIncidentRoleID archives an incident role
Archives an incident role which will hide it from lists and metrics
func (*Client) GetV1IncidentRoles ¶
func (a *Client) GetV1IncidentRoles(params *GetV1IncidentRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentRolesOK, error)
GetV1IncidentRoles lists all incident roles
List all of the incident roles in the organization
func (*Client) GetV1IncidentRolesIncidentRoleID ¶
func (a *Client) GetV1IncidentRolesIncidentRoleID(params *GetV1IncidentRolesIncidentRoleIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentRolesIncidentRoleIDOK, error)
GetV1IncidentRolesIncidentRoleID retrieves an incident role
Retrieve a single incident role from its ID
func (*Client) PatchV1IncidentRolesIncidentRoleID ¶
func (a *Client) PatchV1IncidentRolesIncidentRoleID(params *PatchV1IncidentRolesIncidentRoleIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1IncidentRolesIncidentRoleIDOK, error)
PatchV1IncidentRolesIncidentRoleID updates an incident role
Update a single incident role from its ID
func (*Client) PostV1IncidentRoles ¶
func (a *Client) PostV1IncidentRoles(params *PostV1IncidentRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1IncidentRolesCreated, error)
PostV1IncidentRoles creates an incident role
Create a new incident role
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 { DeleteV1IncidentRolesIncidentRoleID(params *DeleteV1IncidentRolesIncidentRoleIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1IncidentRolesIncidentRoleIDOK, error) GetV1IncidentRoles(params *GetV1IncidentRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentRolesOK, error) GetV1IncidentRolesIncidentRoleID(params *GetV1IncidentRolesIncidentRoleIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentRolesIncidentRoleIDOK, error) PatchV1IncidentRolesIncidentRoleID(params *PatchV1IncidentRolesIncidentRoleIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1IncidentRolesIncidentRoleIDOK, error) PostV1IncidentRoles(params *PostV1IncidentRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1IncidentRolesCreated, 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 roles API client.
type DeleteV1IncidentRolesIncidentRoleIDOK ¶
type DeleteV1IncidentRolesIncidentRoleIDOK struct {
Payload *models.IncidentRoleEntity
}
DeleteV1IncidentRolesIncidentRoleIDOK describes a response with status code 200, with default header values.
Archives an incident role which will hide it from lists and metrics
func NewDeleteV1IncidentRolesIncidentRoleIDOK ¶
func NewDeleteV1IncidentRolesIncidentRoleIDOK() *DeleteV1IncidentRolesIncidentRoleIDOK
NewDeleteV1IncidentRolesIncidentRoleIDOK creates a DeleteV1IncidentRolesIncidentRoleIDOK with default headers values
func (*DeleteV1IncidentRolesIncidentRoleIDOK) Error ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) Error() string
func (*DeleteV1IncidentRolesIncidentRoleIDOK) GetPayload ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) GetPayload() *models.IncidentRoleEntity
func (*DeleteV1IncidentRolesIncidentRoleIDOK) IsClientError ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsClientError() bool
IsClientError returns true when this delete v1 incident roles incident role Id o k response has a 4xx status code
func (*DeleteV1IncidentRolesIncidentRoleIDOK) IsCode ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsCode(code int) bool
IsCode returns true when this delete v1 incident roles incident role Id o k response a status code equal to that given
func (*DeleteV1IncidentRolesIncidentRoleIDOK) IsRedirect ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsRedirect() bool
IsRedirect returns true when this delete v1 incident roles incident role Id o k response has a 3xx status code
func (*DeleteV1IncidentRolesIncidentRoleIDOK) IsServerError ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsServerError() bool
IsServerError returns true when this delete v1 incident roles incident role Id o k response has a 5xx status code
func (*DeleteV1IncidentRolesIncidentRoleIDOK) IsSuccess ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) IsSuccess() bool
IsSuccess returns true when this delete v1 incident roles incident role Id o k response has a 2xx status code
func (*DeleteV1IncidentRolesIncidentRoleIDOK) String ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDOK) String() string
type DeleteV1IncidentRolesIncidentRoleIDParams ¶
type DeleteV1IncidentRolesIncidentRoleIDParams struct { // IncidentRoleID. // // Format: int32 IncidentRoleID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteV1IncidentRolesIncidentRoleIDParams contains all the parameters to send to the API endpoint
for the delete v1 incident roles incident role Id operation. Typically these are written to a http.Request.
func NewDeleteV1IncidentRolesIncidentRoleIDParams ¶
func NewDeleteV1IncidentRolesIncidentRoleIDParams() *DeleteV1IncidentRolesIncidentRoleIDParams
NewDeleteV1IncidentRolesIncidentRoleIDParams creates a new DeleteV1IncidentRolesIncidentRoleIDParams 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 NewDeleteV1IncidentRolesIncidentRoleIDParamsWithContext ¶
func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithContext(ctx context.Context) *DeleteV1IncidentRolesIncidentRoleIDParams
NewDeleteV1IncidentRolesIncidentRoleIDParamsWithContext creates a new DeleteV1IncidentRolesIncidentRoleIDParams object with the ability to set a context for a request.
func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithHTTPClient ¶
func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithHTTPClient(client *http.Client) *DeleteV1IncidentRolesIncidentRoleIDParams
NewDeleteV1IncidentRolesIncidentRoleIDParamsWithHTTPClient creates a new DeleteV1IncidentRolesIncidentRoleIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithTimeout ¶
func NewDeleteV1IncidentRolesIncidentRoleIDParamsWithTimeout(timeout time.Duration) *DeleteV1IncidentRolesIncidentRoleIDParams
NewDeleteV1IncidentRolesIncidentRoleIDParamsWithTimeout creates a new DeleteV1IncidentRolesIncidentRoleIDParams object with the ability to set a timeout on a request.
func (*DeleteV1IncidentRolesIncidentRoleIDParams) SetContext ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) SetDefaults ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetDefaults()
SetDefaults hydrates default values in the delete v1 incident roles incident role Id params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteV1IncidentRolesIncidentRoleIDParams) SetHTTPClient ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID(incidentRoleID int32)
SetIncidentRoleID adds the incidentRoleId to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) SetTimeout ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithContext ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithContext(ctx context.Context) *DeleteV1IncidentRolesIncidentRoleIDParams
WithContext adds the context to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithDefaults ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithDefaults() *DeleteV1IncidentRolesIncidentRoleIDParams
WithDefaults hydrates default values in the delete v1 incident roles incident role Id params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithHTTPClient ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithHTTPClient(client *http.Client) *DeleteV1IncidentRolesIncidentRoleIDParams
WithHTTPClient adds the HTTPClient to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID(incidentRoleID int32) *DeleteV1IncidentRolesIncidentRoleIDParams
WithIncidentRoleID adds the incidentRoleID to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithTimeout ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WithTimeout(timeout time.Duration) *DeleteV1IncidentRolesIncidentRoleIDParams
WithTimeout adds the timeout to the delete v1 incident roles incident role Id params
func (*DeleteV1IncidentRolesIncidentRoleIDParams) WriteToRequest ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteV1IncidentRolesIncidentRoleIDReader ¶
type DeleteV1IncidentRolesIncidentRoleIDReader struct {
// contains filtered or unexported fields
}
DeleteV1IncidentRolesIncidentRoleIDReader is a Reader for the DeleteV1IncidentRolesIncidentRoleID structure.
func (*DeleteV1IncidentRolesIncidentRoleIDReader) ReadResponse ¶
func (o *DeleteV1IncidentRolesIncidentRoleIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1IncidentRolesIncidentRoleIDOK ¶
type GetV1IncidentRolesIncidentRoleIDOK struct {
Payload *models.IncidentRoleEntity
}
GetV1IncidentRolesIncidentRoleIDOK describes a response with status code 200, with default header values.
Retrieve a single incident role from its ID
func NewGetV1IncidentRolesIncidentRoleIDOK ¶
func NewGetV1IncidentRolesIncidentRoleIDOK() *GetV1IncidentRolesIncidentRoleIDOK
NewGetV1IncidentRolesIncidentRoleIDOK creates a GetV1IncidentRolesIncidentRoleIDOK with default headers values
func (*GetV1IncidentRolesIncidentRoleIDOK) Error ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) Error() string
func (*GetV1IncidentRolesIncidentRoleIDOK) GetPayload ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) GetPayload() *models.IncidentRoleEntity
func (*GetV1IncidentRolesIncidentRoleIDOK) IsClientError ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) IsClientError() bool
IsClientError returns true when this get v1 incident roles incident role Id o k response has a 4xx status code
func (*GetV1IncidentRolesIncidentRoleIDOK) IsCode ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) IsCode(code int) bool
IsCode returns true when this get v1 incident roles incident role Id o k response a status code equal to that given
func (*GetV1IncidentRolesIncidentRoleIDOK) IsRedirect ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) IsRedirect() bool
IsRedirect returns true when this get v1 incident roles incident role Id o k response has a 3xx status code
func (*GetV1IncidentRolesIncidentRoleIDOK) IsServerError ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) IsServerError() bool
IsServerError returns true when this get v1 incident roles incident role Id o k response has a 5xx status code
func (*GetV1IncidentRolesIncidentRoleIDOK) IsSuccess ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) IsSuccess() bool
IsSuccess returns true when this get v1 incident roles incident role Id o k response has a 2xx status code
func (*GetV1IncidentRolesIncidentRoleIDOK) String ¶
func (o *GetV1IncidentRolesIncidentRoleIDOK) String() string
type GetV1IncidentRolesIncidentRoleIDParams ¶
type GetV1IncidentRolesIncidentRoleIDParams struct { // IncidentRoleID. IncidentRoleID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1IncidentRolesIncidentRoleIDParams contains all the parameters to send to the API endpoint
for the get v1 incident roles incident role Id operation. Typically these are written to a http.Request.
func NewGetV1IncidentRolesIncidentRoleIDParams ¶
func NewGetV1IncidentRolesIncidentRoleIDParams() *GetV1IncidentRolesIncidentRoleIDParams
NewGetV1IncidentRolesIncidentRoleIDParams creates a new GetV1IncidentRolesIncidentRoleIDParams 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 NewGetV1IncidentRolesIncidentRoleIDParamsWithContext ¶
func NewGetV1IncidentRolesIncidentRoleIDParamsWithContext(ctx context.Context) *GetV1IncidentRolesIncidentRoleIDParams
NewGetV1IncidentRolesIncidentRoleIDParamsWithContext creates a new GetV1IncidentRolesIncidentRoleIDParams object with the ability to set a context for a request.
func NewGetV1IncidentRolesIncidentRoleIDParamsWithHTTPClient ¶
func NewGetV1IncidentRolesIncidentRoleIDParamsWithHTTPClient(client *http.Client) *GetV1IncidentRolesIncidentRoleIDParams
NewGetV1IncidentRolesIncidentRoleIDParamsWithHTTPClient creates a new GetV1IncidentRolesIncidentRoleIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1IncidentRolesIncidentRoleIDParamsWithTimeout ¶
func NewGetV1IncidentRolesIncidentRoleIDParamsWithTimeout(timeout time.Duration) *GetV1IncidentRolesIncidentRoleIDParams
NewGetV1IncidentRolesIncidentRoleIDParamsWithTimeout creates a new GetV1IncidentRolesIncidentRoleIDParams object with the ability to set a timeout on a request.
func (*GetV1IncidentRolesIncidentRoleIDParams) SetContext ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) SetDefaults ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) SetDefaults()
SetDefaults hydrates default values in the get v1 incident roles incident role Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentRolesIncidentRoleIDParams) SetHTTPClient ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID(incidentRoleID string)
SetIncidentRoleID adds the incidentRoleId to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) SetTimeout ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) WithContext ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) WithContext(ctx context.Context) *GetV1IncidentRolesIncidentRoleIDParams
WithContext adds the context to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) WithDefaults ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) WithDefaults() *GetV1IncidentRolesIncidentRoleIDParams
WithDefaults hydrates default values in the get v1 incident roles incident role Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentRolesIncidentRoleIDParams) WithHTTPClient ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) WithHTTPClient(client *http.Client) *GetV1IncidentRolesIncidentRoleIDParams
WithHTTPClient adds the HTTPClient to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID(incidentRoleID string) *GetV1IncidentRolesIncidentRoleIDParams
WithIncidentRoleID adds the incidentRoleID to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) WithTimeout ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) WithTimeout(timeout time.Duration) *GetV1IncidentRolesIncidentRoleIDParams
WithTimeout adds the timeout to the get v1 incident roles incident role Id params
func (*GetV1IncidentRolesIncidentRoleIDParams) WriteToRequest ¶
func (o *GetV1IncidentRolesIncidentRoleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1IncidentRolesIncidentRoleIDReader ¶
type GetV1IncidentRolesIncidentRoleIDReader struct {
// contains filtered or unexported fields
}
GetV1IncidentRolesIncidentRoleIDReader is a Reader for the GetV1IncidentRolesIncidentRoleID structure.
func (*GetV1IncidentRolesIncidentRoleIDReader) ReadResponse ¶
func (o *GetV1IncidentRolesIncidentRoleIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1IncidentRolesOK ¶
type GetV1IncidentRolesOK struct {
Payload *models.IncidentRoleEntityPaginated
}
GetV1IncidentRolesOK describes a response with status code 200, with default header values.
List all of the incident roles in the organization
func NewGetV1IncidentRolesOK ¶
func NewGetV1IncidentRolesOK() *GetV1IncidentRolesOK
NewGetV1IncidentRolesOK creates a GetV1IncidentRolesOK with default headers values
func (*GetV1IncidentRolesOK) Error ¶
func (o *GetV1IncidentRolesOK) Error() string
func (*GetV1IncidentRolesOK) GetPayload ¶
func (o *GetV1IncidentRolesOK) GetPayload() *models.IncidentRoleEntityPaginated
func (*GetV1IncidentRolesOK) IsClientError ¶
func (o *GetV1IncidentRolesOK) IsClientError() bool
IsClientError returns true when this get v1 incident roles o k response has a 4xx status code
func (*GetV1IncidentRolesOK) IsCode ¶
func (o *GetV1IncidentRolesOK) IsCode(code int) bool
IsCode returns true when this get v1 incident roles o k response a status code equal to that given
func (*GetV1IncidentRolesOK) IsRedirect ¶
func (o *GetV1IncidentRolesOK) IsRedirect() bool
IsRedirect returns true when this get v1 incident roles o k response has a 3xx status code
func (*GetV1IncidentRolesOK) IsServerError ¶
func (o *GetV1IncidentRolesOK) IsServerError() bool
IsServerError returns true when this get v1 incident roles o k response has a 5xx status code
func (*GetV1IncidentRolesOK) IsSuccess ¶
func (o *GetV1IncidentRolesOK) IsSuccess() bool
IsSuccess returns true when this get v1 incident roles o k response has a 2xx status code
func (*GetV1IncidentRolesOK) String ¶
func (o *GetV1IncidentRolesOK) String() string
type GetV1IncidentRolesParams ¶
type GetV1IncidentRolesParams struct { // Page. // // Format: int32 Page *int32 // PerPage. // // Format: int32 PerPage *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1IncidentRolesParams contains all the parameters to send to the API endpoint
for the get v1 incident roles operation. Typically these are written to a http.Request.
func NewGetV1IncidentRolesParams ¶
func NewGetV1IncidentRolesParams() *GetV1IncidentRolesParams
NewGetV1IncidentRolesParams creates a new GetV1IncidentRolesParams 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 NewGetV1IncidentRolesParamsWithContext ¶
func NewGetV1IncidentRolesParamsWithContext(ctx context.Context) *GetV1IncidentRolesParams
NewGetV1IncidentRolesParamsWithContext creates a new GetV1IncidentRolesParams object with the ability to set a context for a request.
func NewGetV1IncidentRolesParamsWithHTTPClient ¶
func NewGetV1IncidentRolesParamsWithHTTPClient(client *http.Client) *GetV1IncidentRolesParams
NewGetV1IncidentRolesParamsWithHTTPClient creates a new GetV1IncidentRolesParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1IncidentRolesParamsWithTimeout ¶
func NewGetV1IncidentRolesParamsWithTimeout(timeout time.Duration) *GetV1IncidentRolesParams
NewGetV1IncidentRolesParamsWithTimeout creates a new GetV1IncidentRolesParams object with the ability to set a timeout on a request.
func (*GetV1IncidentRolesParams) SetContext ¶
func (o *GetV1IncidentRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 incident roles params
func (*GetV1IncidentRolesParams) SetDefaults ¶
func (o *GetV1IncidentRolesParams) SetDefaults()
SetDefaults hydrates default values in the get v1 incident roles params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentRolesParams) SetHTTPClient ¶
func (o *GetV1IncidentRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 incident roles params
func (*GetV1IncidentRolesParams) SetPage ¶
func (o *GetV1IncidentRolesParams) SetPage(page *int32)
SetPage adds the page to the get v1 incident roles params
func (*GetV1IncidentRolesParams) SetPerPage ¶
func (o *GetV1IncidentRolesParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the get v1 incident roles params
func (*GetV1IncidentRolesParams) SetTimeout ¶
func (o *GetV1IncidentRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 incident roles params
func (*GetV1IncidentRolesParams) WithContext ¶
func (o *GetV1IncidentRolesParams) WithContext(ctx context.Context) *GetV1IncidentRolesParams
WithContext adds the context to the get v1 incident roles params
func (*GetV1IncidentRolesParams) WithDefaults ¶
func (o *GetV1IncidentRolesParams) WithDefaults() *GetV1IncidentRolesParams
WithDefaults hydrates default values in the get v1 incident roles params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1IncidentRolesParams) WithHTTPClient ¶
func (o *GetV1IncidentRolesParams) WithHTTPClient(client *http.Client) *GetV1IncidentRolesParams
WithHTTPClient adds the HTTPClient to the get v1 incident roles params
func (*GetV1IncidentRolesParams) WithPage ¶
func (o *GetV1IncidentRolesParams) WithPage(page *int32) *GetV1IncidentRolesParams
WithPage adds the page to the get v1 incident roles params
func (*GetV1IncidentRolesParams) WithPerPage ¶
func (o *GetV1IncidentRolesParams) WithPerPage(perPage *int32) *GetV1IncidentRolesParams
WithPerPage adds the perPage to the get v1 incident roles params
func (*GetV1IncidentRolesParams) WithTimeout ¶
func (o *GetV1IncidentRolesParams) WithTimeout(timeout time.Duration) *GetV1IncidentRolesParams
WithTimeout adds the timeout to the get v1 incident roles params
func (*GetV1IncidentRolesParams) WriteToRequest ¶
func (o *GetV1IncidentRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1IncidentRolesReader ¶
type GetV1IncidentRolesReader struct {
// contains filtered or unexported fields
}
GetV1IncidentRolesReader is a Reader for the GetV1IncidentRoles structure.
func (*GetV1IncidentRolesReader) ReadResponse ¶
func (o *GetV1IncidentRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchV1IncidentRolesIncidentRoleIDOK ¶
type PatchV1IncidentRolesIncidentRoleIDOK struct {
Payload *models.IncidentRoleEntity
}
PatchV1IncidentRolesIncidentRoleIDOK describes a response with status code 200, with default header values.
Update a single incident role from its ID
func NewPatchV1IncidentRolesIncidentRoleIDOK ¶
func NewPatchV1IncidentRolesIncidentRoleIDOK() *PatchV1IncidentRolesIncidentRoleIDOK
NewPatchV1IncidentRolesIncidentRoleIDOK creates a PatchV1IncidentRolesIncidentRoleIDOK with default headers values
func (*PatchV1IncidentRolesIncidentRoleIDOK) Error ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) Error() string
func (*PatchV1IncidentRolesIncidentRoleIDOK) GetPayload ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) GetPayload() *models.IncidentRoleEntity
func (*PatchV1IncidentRolesIncidentRoleIDOK) IsClientError ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsClientError() bool
IsClientError returns true when this patch v1 incident roles incident role Id o k response has a 4xx status code
func (*PatchV1IncidentRolesIncidentRoleIDOK) IsCode ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsCode(code int) bool
IsCode returns true when this patch v1 incident roles incident role Id o k response a status code equal to that given
func (*PatchV1IncidentRolesIncidentRoleIDOK) IsRedirect ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsRedirect() bool
IsRedirect returns true when this patch v1 incident roles incident role Id o k response has a 3xx status code
func (*PatchV1IncidentRolesIncidentRoleIDOK) IsServerError ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsServerError() bool
IsServerError returns true when this patch v1 incident roles incident role Id o k response has a 5xx status code
func (*PatchV1IncidentRolesIncidentRoleIDOK) IsSuccess ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) IsSuccess() bool
IsSuccess returns true when this patch v1 incident roles incident role Id o k response has a 2xx status code
func (*PatchV1IncidentRolesIncidentRoleIDOK) String ¶
func (o *PatchV1IncidentRolesIncidentRoleIDOK) String() string
type PatchV1IncidentRolesIncidentRoleIDParams ¶
type PatchV1IncidentRolesIncidentRoleIDParams struct { // IncidentRoleID. // // Format: int32 IncidentRoleID int32 // PatchV1IncidentRolesIncidentRoleID. PatchV1IncidentRolesIncidentRoleID *models.PatchV1IncidentRolesIncidentRoleID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchV1IncidentRolesIncidentRoleIDParams contains all the parameters to send to the API endpoint
for the patch v1 incident roles incident role Id operation. Typically these are written to a http.Request.
func NewPatchV1IncidentRolesIncidentRoleIDParams ¶
func NewPatchV1IncidentRolesIncidentRoleIDParams() *PatchV1IncidentRolesIncidentRoleIDParams
NewPatchV1IncidentRolesIncidentRoleIDParams creates a new PatchV1IncidentRolesIncidentRoleIDParams 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 NewPatchV1IncidentRolesIncidentRoleIDParamsWithContext ¶
func NewPatchV1IncidentRolesIncidentRoleIDParamsWithContext(ctx context.Context) *PatchV1IncidentRolesIncidentRoleIDParams
NewPatchV1IncidentRolesIncidentRoleIDParamsWithContext creates a new PatchV1IncidentRolesIncidentRoleIDParams object with the ability to set a context for a request.
func NewPatchV1IncidentRolesIncidentRoleIDParamsWithHTTPClient ¶
func NewPatchV1IncidentRolesIncidentRoleIDParamsWithHTTPClient(client *http.Client) *PatchV1IncidentRolesIncidentRoleIDParams
NewPatchV1IncidentRolesIncidentRoleIDParamsWithHTTPClient creates a new PatchV1IncidentRolesIncidentRoleIDParams object with the ability to set a custom HTTPClient for a request.
func NewPatchV1IncidentRolesIncidentRoleIDParamsWithTimeout ¶
func NewPatchV1IncidentRolesIncidentRoleIDParamsWithTimeout(timeout time.Duration) *PatchV1IncidentRolesIncidentRoleIDParams
NewPatchV1IncidentRolesIncidentRoleIDParamsWithTimeout creates a new PatchV1IncidentRolesIncidentRoleIDParams object with the ability to set a timeout on a request.
func (*PatchV1IncidentRolesIncidentRoleIDParams) SetContext ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetContext(ctx context.Context)
SetContext adds the context to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) SetDefaults ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetDefaults()
SetDefaults hydrates default values in the patch v1 incident roles incident role Id params (not the query body).
All values with no default are reset to their zero value.
func (*PatchV1IncidentRolesIncidentRoleIDParams) SetHTTPClient ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetIncidentRoleID(incidentRoleID int32)
SetIncidentRoleID adds the incidentRoleId to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) SetPatchV1IncidentRolesIncidentRoleID ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetPatchV1IncidentRolesIncidentRoleID(patchV1IncidentRolesIncidentRoleID *models.PatchV1IncidentRolesIncidentRoleID)
SetPatchV1IncidentRolesIncidentRoleID adds the patchV1IncidentRolesIncidentRoleId to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) SetTimeout ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) WithContext ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithContext(ctx context.Context) *PatchV1IncidentRolesIncidentRoleIDParams
WithContext adds the context to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) WithDefaults ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithDefaults() *PatchV1IncidentRolesIncidentRoleIDParams
WithDefaults hydrates default values in the patch v1 incident roles incident role Id params (not the query body).
All values with no default are reset to their zero value.
func (*PatchV1IncidentRolesIncidentRoleIDParams) WithHTTPClient ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithHTTPClient(client *http.Client) *PatchV1IncidentRolesIncidentRoleIDParams
WithHTTPClient adds the HTTPClient to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID(incidentRoleID int32) *PatchV1IncidentRolesIncidentRoleIDParams
WithIncidentRoleID adds the incidentRoleID to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) WithPatchV1IncidentRolesIncidentRoleID ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithPatchV1IncidentRolesIncidentRoleID(patchV1IncidentRolesIncidentRoleID *models.PatchV1IncidentRolesIncidentRoleID) *PatchV1IncidentRolesIncidentRoleIDParams
WithPatchV1IncidentRolesIncidentRoleID adds the patchV1IncidentRolesIncidentRoleID to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) WithTimeout ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WithTimeout(timeout time.Duration) *PatchV1IncidentRolesIncidentRoleIDParams
WithTimeout adds the timeout to the patch v1 incident roles incident role Id params
func (*PatchV1IncidentRolesIncidentRoleIDParams) WriteToRequest ¶
func (o *PatchV1IncidentRolesIncidentRoleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchV1IncidentRolesIncidentRoleIDReader ¶
type PatchV1IncidentRolesIncidentRoleIDReader struct {
// contains filtered or unexported fields
}
PatchV1IncidentRolesIncidentRoleIDReader is a Reader for the PatchV1IncidentRolesIncidentRoleID structure.
func (*PatchV1IncidentRolesIncidentRoleIDReader) ReadResponse ¶
func (o *PatchV1IncidentRolesIncidentRoleIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostV1IncidentRolesCreated ¶
type PostV1IncidentRolesCreated struct {
Payload *models.IncidentRoleEntity
}
PostV1IncidentRolesCreated describes a response with status code 201, with default header values.
Create a new incident role
func NewPostV1IncidentRolesCreated ¶
func NewPostV1IncidentRolesCreated() *PostV1IncidentRolesCreated
NewPostV1IncidentRolesCreated creates a PostV1IncidentRolesCreated with default headers values
func (*PostV1IncidentRolesCreated) Error ¶
func (o *PostV1IncidentRolesCreated) Error() string
func (*PostV1IncidentRolesCreated) GetPayload ¶
func (o *PostV1IncidentRolesCreated) GetPayload() *models.IncidentRoleEntity
func (*PostV1IncidentRolesCreated) IsClientError ¶
func (o *PostV1IncidentRolesCreated) IsClientError() bool
IsClientError returns true when this post v1 incident roles created response has a 4xx status code
func (*PostV1IncidentRolesCreated) IsCode ¶
func (o *PostV1IncidentRolesCreated) IsCode(code int) bool
IsCode returns true when this post v1 incident roles created response a status code equal to that given
func (*PostV1IncidentRolesCreated) IsRedirect ¶
func (o *PostV1IncidentRolesCreated) IsRedirect() bool
IsRedirect returns true when this post v1 incident roles created response has a 3xx status code
func (*PostV1IncidentRolesCreated) IsServerError ¶
func (o *PostV1IncidentRolesCreated) IsServerError() bool
IsServerError returns true when this post v1 incident roles created response has a 5xx status code
func (*PostV1IncidentRolesCreated) IsSuccess ¶
func (o *PostV1IncidentRolesCreated) IsSuccess() bool
IsSuccess returns true when this post v1 incident roles created response has a 2xx status code
func (*PostV1IncidentRolesCreated) String ¶
func (o *PostV1IncidentRolesCreated) String() string
type PostV1IncidentRolesParams ¶
type PostV1IncidentRolesParams struct { // PostV1IncidentRoles. PostV1IncidentRoles *models.PostV1IncidentRoles Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostV1IncidentRolesParams contains all the parameters to send to the API endpoint
for the post v1 incident roles operation. Typically these are written to a http.Request.
func NewPostV1IncidentRolesParams ¶
func NewPostV1IncidentRolesParams() *PostV1IncidentRolesParams
NewPostV1IncidentRolesParams creates a new PostV1IncidentRolesParams 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 NewPostV1IncidentRolesParamsWithContext ¶
func NewPostV1IncidentRolesParamsWithContext(ctx context.Context) *PostV1IncidentRolesParams
NewPostV1IncidentRolesParamsWithContext creates a new PostV1IncidentRolesParams object with the ability to set a context for a request.
func NewPostV1IncidentRolesParamsWithHTTPClient ¶
func NewPostV1IncidentRolesParamsWithHTTPClient(client *http.Client) *PostV1IncidentRolesParams
NewPostV1IncidentRolesParamsWithHTTPClient creates a new PostV1IncidentRolesParams object with the ability to set a custom HTTPClient for a request.
func NewPostV1IncidentRolesParamsWithTimeout ¶
func NewPostV1IncidentRolesParamsWithTimeout(timeout time.Duration) *PostV1IncidentRolesParams
NewPostV1IncidentRolesParamsWithTimeout creates a new PostV1IncidentRolesParams object with the ability to set a timeout on a request.
func (*PostV1IncidentRolesParams) SetContext ¶
func (o *PostV1IncidentRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the post v1 incident roles params
func (*PostV1IncidentRolesParams) SetDefaults ¶
func (o *PostV1IncidentRolesParams) SetDefaults()
SetDefaults hydrates default values in the post v1 incident roles params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1IncidentRolesParams) SetHTTPClient ¶
func (o *PostV1IncidentRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post v1 incident roles params
func (*PostV1IncidentRolesParams) SetPostV1IncidentRoles ¶
func (o *PostV1IncidentRolesParams) SetPostV1IncidentRoles(postV1IncidentRoles *models.PostV1IncidentRoles)
SetPostV1IncidentRoles adds the postV1IncidentRoles to the post v1 incident roles params
func (*PostV1IncidentRolesParams) SetTimeout ¶
func (o *PostV1IncidentRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post v1 incident roles params
func (*PostV1IncidentRolesParams) WithContext ¶
func (o *PostV1IncidentRolesParams) WithContext(ctx context.Context) *PostV1IncidentRolesParams
WithContext adds the context to the post v1 incident roles params
func (*PostV1IncidentRolesParams) WithDefaults ¶
func (o *PostV1IncidentRolesParams) WithDefaults() *PostV1IncidentRolesParams
WithDefaults hydrates default values in the post v1 incident roles params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1IncidentRolesParams) WithHTTPClient ¶
func (o *PostV1IncidentRolesParams) WithHTTPClient(client *http.Client) *PostV1IncidentRolesParams
WithHTTPClient adds the HTTPClient to the post v1 incident roles params
func (*PostV1IncidentRolesParams) WithPostV1IncidentRoles ¶
func (o *PostV1IncidentRolesParams) WithPostV1IncidentRoles(postV1IncidentRoles *models.PostV1IncidentRoles) *PostV1IncidentRolesParams
WithPostV1IncidentRoles adds the postV1IncidentRoles to the post v1 incident roles params
func (*PostV1IncidentRolesParams) WithTimeout ¶
func (o *PostV1IncidentRolesParams) WithTimeout(timeout time.Duration) *PostV1IncidentRolesParams
WithTimeout adds the timeout to the post v1 incident roles params
func (*PostV1IncidentRolesParams) WriteToRequest ¶
func (o *PostV1IncidentRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostV1IncidentRolesReader ¶
type PostV1IncidentRolesReader struct {
// contains filtered or unexported fields
}
PostV1IncidentRolesReader is a Reader for the PostV1IncidentRoles structure.
func (*PostV1IncidentRolesReader) ReadResponse ¶
func (o *PostV1IncidentRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- delete_v1_incident_roles_incident_role_id_parameters.go
- delete_v1_incident_roles_incident_role_id_responses.go
- get_v1_incident_roles_incident_role_id_parameters.go
- get_v1_incident_roles_incident_role_id_responses.go
- get_v1_incident_roles_parameters.go
- get_v1_incident_roles_responses.go
- incident_roles_client.go
- patch_v1_incident_roles_incident_role_id_parameters.go
- patch_v1_incident_roles_incident_role_id_responses.go
- post_v1_incident_roles_parameters.go
- post_v1_incident_roles_responses.go