incident_tags

package
v0.0.0-...-c0d51b7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 10 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 tags API

func (*Client) GetV1IncidentTags

func (a *Client) GetV1IncidentTags(params *GetV1IncidentTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentTagsOK, error)

GetV1IncidentTags lists all incident tags

List all of the incident tags in the organization

func (*Client) PostV1IncidentTagsValidate

func (a *Client) PostV1IncidentTagsValidate(params *PostV1IncidentTagsValidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1IncidentTagsValidateCreated, error)

PostV1IncidentTagsValidate validates a list of tags

Validate the format of a list of tags

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 {
	GetV1IncidentTags(params *GetV1IncidentTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1IncidentTagsOK, error)

	PostV1IncidentTagsValidate(params *PostV1IncidentTagsValidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1IncidentTagsValidateCreated, 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 tags API client.

type GetV1IncidentTagsOK

type GetV1IncidentTagsOK struct {
	Payload *models.TagEntityPaginated
}

GetV1IncidentTagsOK describes a response with status code 200, with default header values.

List all of the incident tags in the organization

func NewGetV1IncidentTagsOK

func NewGetV1IncidentTagsOK() *GetV1IncidentTagsOK

NewGetV1IncidentTagsOK creates a GetV1IncidentTagsOK with default headers values

func (*GetV1IncidentTagsOK) Error

func (o *GetV1IncidentTagsOK) Error() string

func (*GetV1IncidentTagsOK) GetPayload

func (*GetV1IncidentTagsOK) IsClientError

func (o *GetV1IncidentTagsOK) IsClientError() bool

IsClientError returns true when this get v1 incident tags o k response has a 4xx status code

func (*GetV1IncidentTagsOK) IsCode

func (o *GetV1IncidentTagsOK) IsCode(code int) bool

IsCode returns true when this get v1 incident tags o k response a status code equal to that given

func (*GetV1IncidentTagsOK) IsRedirect

func (o *GetV1IncidentTagsOK) IsRedirect() bool

IsRedirect returns true when this get v1 incident tags o k response has a 3xx status code

func (*GetV1IncidentTagsOK) IsServerError

func (o *GetV1IncidentTagsOK) IsServerError() bool

IsServerError returns true when this get v1 incident tags o k response has a 5xx status code

func (*GetV1IncidentTagsOK) IsSuccess

func (o *GetV1IncidentTagsOK) IsSuccess() bool

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

func (*GetV1IncidentTagsOK) String

func (o *GetV1IncidentTagsOK) String() string

type GetV1IncidentTagsParams

type GetV1IncidentTagsParams struct {

	// Prefix.
	Prefix *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetV1IncidentTagsParams contains all the parameters to send to the API endpoint

for the get v1 incident tags operation.

Typically these are written to a http.Request.

func NewGetV1IncidentTagsParams

func NewGetV1IncidentTagsParams() *GetV1IncidentTagsParams

NewGetV1IncidentTagsParams creates a new GetV1IncidentTagsParams 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 NewGetV1IncidentTagsParamsWithContext

func NewGetV1IncidentTagsParamsWithContext(ctx context.Context) *GetV1IncidentTagsParams

NewGetV1IncidentTagsParamsWithContext creates a new GetV1IncidentTagsParams object with the ability to set a context for a request.

func NewGetV1IncidentTagsParamsWithHTTPClient

func NewGetV1IncidentTagsParamsWithHTTPClient(client *http.Client) *GetV1IncidentTagsParams

NewGetV1IncidentTagsParamsWithHTTPClient creates a new GetV1IncidentTagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1IncidentTagsParamsWithTimeout

func NewGetV1IncidentTagsParamsWithTimeout(timeout time.Duration) *GetV1IncidentTagsParams

NewGetV1IncidentTagsParamsWithTimeout creates a new GetV1IncidentTagsParams object with the ability to set a timeout on a request.

func (*GetV1IncidentTagsParams) SetContext

func (o *GetV1IncidentTagsParams) SetContext(ctx context.Context)

SetContext adds the context to the get v1 incident tags params

func (*GetV1IncidentTagsParams) SetDefaults

func (o *GetV1IncidentTagsParams) SetDefaults()

SetDefaults hydrates default values in the get v1 incident tags params (not the query body).

All values with no default are reset to their zero value.

func (*GetV1IncidentTagsParams) SetHTTPClient

func (o *GetV1IncidentTagsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get v1 incident tags params

func (*GetV1IncidentTagsParams) SetPrefix

func (o *GetV1IncidentTagsParams) SetPrefix(prefix *string)

SetPrefix adds the prefix to the get v1 incident tags params

func (*GetV1IncidentTagsParams) SetTimeout

func (o *GetV1IncidentTagsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get v1 incident tags params

func (*GetV1IncidentTagsParams) WithContext

WithContext adds the context to the get v1 incident tags params

func (*GetV1IncidentTagsParams) WithDefaults

WithDefaults hydrates default values in the get v1 incident tags params (not the query body).

All values with no default are reset to their zero value.

func (*GetV1IncidentTagsParams) WithHTTPClient

func (o *GetV1IncidentTagsParams) WithHTTPClient(client *http.Client) *GetV1IncidentTagsParams

WithHTTPClient adds the HTTPClient to the get v1 incident tags params

func (*GetV1IncidentTagsParams) WithPrefix

func (o *GetV1IncidentTagsParams) WithPrefix(prefix *string) *GetV1IncidentTagsParams

WithPrefix adds the prefix to the get v1 incident tags params

func (*GetV1IncidentTagsParams) WithTimeout

WithTimeout adds the timeout to the get v1 incident tags params

func (*GetV1IncidentTagsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1IncidentTagsReader

type GetV1IncidentTagsReader struct {
	// contains filtered or unexported fields
}

GetV1IncidentTagsReader is a Reader for the GetV1IncidentTags structure.

func (*GetV1IncidentTagsReader) ReadResponse

func (o *GetV1IncidentTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostV1IncidentTagsValidateCreated

type PostV1IncidentTagsValidateCreated struct {
	Payload *models.TagEntity
}

PostV1IncidentTagsValidateCreated describes a response with status code 201, with default header values.

Validate the format of a list of tags

func NewPostV1IncidentTagsValidateCreated

func NewPostV1IncidentTagsValidateCreated() *PostV1IncidentTagsValidateCreated

NewPostV1IncidentTagsValidateCreated creates a PostV1IncidentTagsValidateCreated with default headers values

func (*PostV1IncidentTagsValidateCreated) Error

func (*PostV1IncidentTagsValidateCreated) GetPayload

func (*PostV1IncidentTagsValidateCreated) IsClientError

func (o *PostV1IncidentTagsValidateCreated) IsClientError() bool

IsClientError returns true when this post v1 incident tags validate created response has a 4xx status code

func (*PostV1IncidentTagsValidateCreated) IsCode

func (o *PostV1IncidentTagsValidateCreated) IsCode(code int) bool

IsCode returns true when this post v1 incident tags validate created response a status code equal to that given

func (*PostV1IncidentTagsValidateCreated) IsRedirect

func (o *PostV1IncidentTagsValidateCreated) IsRedirect() bool

IsRedirect returns true when this post v1 incident tags validate created response has a 3xx status code

func (*PostV1IncidentTagsValidateCreated) IsServerError

func (o *PostV1IncidentTagsValidateCreated) IsServerError() bool

IsServerError returns true when this post v1 incident tags validate created response has a 5xx status code

func (*PostV1IncidentTagsValidateCreated) IsSuccess

func (o *PostV1IncidentTagsValidateCreated) IsSuccess() bool

IsSuccess returns true when this post v1 incident tags validate created response has a 2xx status code

func (*PostV1IncidentTagsValidateCreated) String

type PostV1IncidentTagsValidateParams

type PostV1IncidentTagsValidateParams struct {

	/* Tags.

	   A list of tags to validate
	*/
	Tags []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostV1IncidentTagsValidateParams contains all the parameters to send to the API endpoint

for the post v1 incident tags validate operation.

Typically these are written to a http.Request.

func NewPostV1IncidentTagsValidateParams

func NewPostV1IncidentTagsValidateParams() *PostV1IncidentTagsValidateParams

NewPostV1IncidentTagsValidateParams creates a new PostV1IncidentTagsValidateParams 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 NewPostV1IncidentTagsValidateParamsWithContext

func NewPostV1IncidentTagsValidateParamsWithContext(ctx context.Context) *PostV1IncidentTagsValidateParams

NewPostV1IncidentTagsValidateParamsWithContext creates a new PostV1IncidentTagsValidateParams object with the ability to set a context for a request.

func NewPostV1IncidentTagsValidateParamsWithHTTPClient

func NewPostV1IncidentTagsValidateParamsWithHTTPClient(client *http.Client) *PostV1IncidentTagsValidateParams

NewPostV1IncidentTagsValidateParamsWithHTTPClient creates a new PostV1IncidentTagsValidateParams object with the ability to set a custom HTTPClient for a request.

func NewPostV1IncidentTagsValidateParamsWithTimeout

func NewPostV1IncidentTagsValidateParamsWithTimeout(timeout time.Duration) *PostV1IncidentTagsValidateParams

NewPostV1IncidentTagsValidateParamsWithTimeout creates a new PostV1IncidentTagsValidateParams object with the ability to set a timeout on a request.

func (*PostV1IncidentTagsValidateParams) SetContext

SetContext adds the context to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) SetDefaults

func (o *PostV1IncidentTagsValidateParams) SetDefaults()

SetDefaults hydrates default values in the post v1 incident tags validate params (not the query body).

All values with no default are reset to their zero value.

func (*PostV1IncidentTagsValidateParams) SetHTTPClient

func (o *PostV1IncidentTagsValidateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) SetTags

func (o *PostV1IncidentTagsValidateParams) SetTags(tags []string)

SetTags adds the tags to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) SetTimeout

func (o *PostV1IncidentTagsValidateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) WithContext

WithContext adds the context to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) WithDefaults

WithDefaults hydrates default values in the post v1 incident tags validate params (not the query body).

All values with no default are reset to their zero value.

func (*PostV1IncidentTagsValidateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) WithTags

WithTags adds the tags to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) WithTimeout

WithTimeout adds the timeout to the post v1 incident tags validate params

func (*PostV1IncidentTagsValidateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1IncidentTagsValidateReader

type PostV1IncidentTagsValidateReader struct {
	// contains filtered or unexported fields
}

PostV1IncidentTagsValidateReader is a Reader for the PostV1IncidentTagsValidate structure.

func (*PostV1IncidentTagsValidateReader) ReadResponse

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