incident_roles

package
v0.0.0-...-d3fc958 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 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 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 (*DeleteV1IncidentRolesIncidentRoleIDOK) GetPayload

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

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

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

IsSuccess returns true when this delete v1 incident roles incident role Id o k response has a 2xx status code

func (*DeleteV1IncidentRolesIncidentRoleIDOK) 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

SetContext adds the context to the delete v1 incident roles incident role Id params

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

SetTimeout adds the timeout to the delete v1 incident roles incident role Id params

func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithContext

WithContext adds the context to the delete v1 incident roles incident role Id params

func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the delete v1 incident roles incident role Id params

func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID

WithIncidentRoleID adds the incidentRoleID to the delete v1 incident roles incident role Id params

func (*DeleteV1IncidentRolesIncidentRoleIDParams) WithTimeout

WithTimeout adds the timeout to the delete v1 incident roles incident role Id params

func (*DeleteV1IncidentRolesIncidentRoleIDParams) WriteToRequest

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

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

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

IsSuccess returns true when this get v1 incident roles incident role Id o k response has a 2xx status code

func (*GetV1IncidentRolesIncidentRoleIDOK) 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

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

WithContext adds the context to the get v1 incident roles incident role Id params

func (*GetV1IncidentRolesIncidentRoleIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get v1 incident roles incident role Id params

func (*GetV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID

WithIncidentRoleID adds the incidentRoleID to the get v1 incident roles incident role Id params

func (*GetV1IncidentRolesIncidentRoleIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 incident roles incident role Id params

func (*GetV1IncidentRolesIncidentRoleIDParams) WriteToRequest

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

WithContext adds the context to the get v1 incident roles params

func (*GetV1IncidentRolesParams) WithDefaults

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

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

WithTimeout adds the timeout to the get v1 incident roles params

func (*GetV1IncidentRolesParams) WriteToRequest

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

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

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

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

IsSuccess returns true when this patch v1 incident roles incident role Id o k response has a 2xx status code

func (*PatchV1IncidentRolesIncidentRoleIDOK) 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

SetContext adds the context to the patch v1 incident roles incident role Id params

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

SetTimeout adds the timeout to the patch v1 incident roles incident role Id params

func (*PatchV1IncidentRolesIncidentRoleIDParams) WithContext

WithContext adds the context to the patch v1 incident roles incident role Id params

func (*PatchV1IncidentRolesIncidentRoleIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the patch v1 incident roles incident role Id params

func (*PatchV1IncidentRolesIncidentRoleIDParams) WithIncidentRoleID

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

WithTimeout adds the timeout to the patch v1 incident roles incident role Id params

func (*PatchV1IncidentRolesIncidentRoleIDParams) WriteToRequest

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

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

WithContext adds the context to the post v1 incident roles params

func (*PostV1IncidentRolesParams) WithDefaults

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

WithTimeout adds the timeout to the post v1 incident roles params

func (*PostV1IncidentRolesParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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