incident_types

package
v0.0.0-...-2bc0d39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (*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

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

WithContext adds the context to the delete v1 incident types Id params

func (*DeleteV1IncidentTypesIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the delete v1 incident types Id params

func (*DeleteV1IncidentTypesIDParams) WithID

WithID adds the id to the delete v1 incident types Id params

func (*DeleteV1IncidentTypesIDParams) WithTimeout

WithTimeout adds the timeout to the delete v1 incident types Id params

func (*DeleteV1IncidentTypesIDParams) WriteToRequest

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 (*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

WithContext adds the context to the get v1 incident types Id params

func (*GetV1IncidentTypesIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get v1 incident types Id params

func (*GetV1IncidentTypesIDParams) WithID

WithID adds the id to the get v1 incident types Id params

func (*GetV1IncidentTypesIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 incident types Id params

func (*GetV1IncidentTypesIDParams) WriteToRequest

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 (*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

WithContext adds the context to the get v1 incident types params

func (*GetV1IncidentTypesParams) WithDefaults

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

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

WithQuery adds the query to the get v1 incident types params

func (*GetV1IncidentTypesParams) WithTimeout

WithTimeout adds the timeout to the get v1 incident types params

func (*GetV1IncidentTypesParams) WriteToRequest

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 (*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

WithContext adds the context to the patch v1 incident types Id params

func (*PatchV1IncidentTypesIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the patch v1 incident types Id params

func (*PatchV1IncidentTypesIDParams) WithID

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

WithTimeout adds the timeout to the patch v1 incident types Id params

func (*PatchV1IncidentTypesIDParams) WriteToRequest

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 (*PostV1IncidentTypesCreated) GetPayload

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

WithContext adds the context to the post v1 incident types params

func (*PostV1IncidentTypesParams) WithDefaults

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

WithTimeout adds the timeout to the post v1 incident types params

func (*PostV1IncidentTypesParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL