priorities

package
v0.0.0-...-4387d94 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 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 priorities API

func (*Client) DeleteV1PrioritiesPrioritySlug

func (a *Client) DeleteV1PrioritiesPrioritySlug(params *DeleteV1PrioritiesPrioritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1PrioritiesPrioritySlugOK, error)

DeleteV1PrioritiesPrioritySlug deletes a specific priority

Delete a specific priority

func (*Client) GetV1Priorities

func (a *Client) GetV1Priorities(params *GetV1PrioritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1PrioritiesOK, error)

GetV1Priorities lists priorities

Lists priorities

func (*Client) GetV1PrioritiesPrioritySlug

func (a *Client) GetV1PrioritiesPrioritySlug(params *GetV1PrioritiesPrioritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1PrioritiesPrioritySlugOK, error)

GetV1PrioritiesPrioritySlug retrieves a specific priority

Retrieve a specific priority

func (*Client) PatchV1PrioritiesPrioritySlug

func (a *Client) PatchV1PrioritiesPrioritySlug(params *PatchV1PrioritiesPrioritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1PrioritiesPrioritySlugOK, error)

PatchV1PrioritiesPrioritySlug updates a specific priority

Update a specific priority

func (*Client) PostV1Priorities

func (a *Client) PostV1Priorities(params *PostV1PrioritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1PrioritiesCreated, error)

PostV1Priorities creates priority

Create a new priority

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 {
	DeleteV1PrioritiesPrioritySlug(params *DeleteV1PrioritiesPrioritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1PrioritiesPrioritySlugOK, error)

	GetV1Priorities(params *GetV1PrioritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1PrioritiesOK, error)

	GetV1PrioritiesPrioritySlug(params *GetV1PrioritiesPrioritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1PrioritiesPrioritySlugOK, error)

	PatchV1PrioritiesPrioritySlug(params *PatchV1PrioritiesPrioritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1PrioritiesPrioritySlugOK, error)

	PostV1Priorities(params *PostV1PrioritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1PrioritiesCreated, 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 priorities API client.

type DeleteV1PrioritiesPrioritySlugOK

type DeleteV1PrioritiesPrioritySlugOK struct {
	Payload *models.PriorityEntity
}

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

Delete a specific priority

func NewDeleteV1PrioritiesPrioritySlugOK

func NewDeleteV1PrioritiesPrioritySlugOK() *DeleteV1PrioritiesPrioritySlugOK

NewDeleteV1PrioritiesPrioritySlugOK creates a DeleteV1PrioritiesPrioritySlugOK with default headers values

func (*DeleteV1PrioritiesPrioritySlugOK) Error

func (*DeleteV1PrioritiesPrioritySlugOK) GetPayload

func (*DeleteV1PrioritiesPrioritySlugOK) IsClientError

func (o *DeleteV1PrioritiesPrioritySlugOK) IsClientError() bool

IsClientError returns true when this delete v1 priorities priority slug o k response has a 4xx status code

func (*DeleteV1PrioritiesPrioritySlugOK) IsCode

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

IsCode returns true when this delete v1 priorities priority slug o k response a status code equal to that given

func (*DeleteV1PrioritiesPrioritySlugOK) IsRedirect

func (o *DeleteV1PrioritiesPrioritySlugOK) IsRedirect() bool

IsRedirect returns true when this delete v1 priorities priority slug o k response has a 3xx status code

func (*DeleteV1PrioritiesPrioritySlugOK) IsServerError

func (o *DeleteV1PrioritiesPrioritySlugOK) IsServerError() bool

IsServerError returns true when this delete v1 priorities priority slug o k response has a 5xx status code

func (*DeleteV1PrioritiesPrioritySlugOK) IsSuccess

func (o *DeleteV1PrioritiesPrioritySlugOK) IsSuccess() bool

IsSuccess returns true when this delete v1 priorities priority slug o k response has a 2xx status code

func (*DeleteV1PrioritiesPrioritySlugOK) String

type DeleteV1PrioritiesPrioritySlugParams

type DeleteV1PrioritiesPrioritySlugParams struct {

	// PrioritySlug.
	PrioritySlug string

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

DeleteV1PrioritiesPrioritySlugParams contains all the parameters to send to the API endpoint

for the delete v1 priorities priority slug operation.

Typically these are written to a http.Request.

func NewDeleteV1PrioritiesPrioritySlugParams

func NewDeleteV1PrioritiesPrioritySlugParams() *DeleteV1PrioritiesPrioritySlugParams

NewDeleteV1PrioritiesPrioritySlugParams creates a new DeleteV1PrioritiesPrioritySlugParams 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 NewDeleteV1PrioritiesPrioritySlugParamsWithContext

func NewDeleteV1PrioritiesPrioritySlugParamsWithContext(ctx context.Context) *DeleteV1PrioritiesPrioritySlugParams

NewDeleteV1PrioritiesPrioritySlugParamsWithContext creates a new DeleteV1PrioritiesPrioritySlugParams object with the ability to set a context for a request.

func NewDeleteV1PrioritiesPrioritySlugParamsWithHTTPClient

func NewDeleteV1PrioritiesPrioritySlugParamsWithHTTPClient(client *http.Client) *DeleteV1PrioritiesPrioritySlugParams

NewDeleteV1PrioritiesPrioritySlugParamsWithHTTPClient creates a new DeleteV1PrioritiesPrioritySlugParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteV1PrioritiesPrioritySlugParamsWithTimeout

func NewDeleteV1PrioritiesPrioritySlugParamsWithTimeout(timeout time.Duration) *DeleteV1PrioritiesPrioritySlugParams

NewDeleteV1PrioritiesPrioritySlugParamsWithTimeout creates a new DeleteV1PrioritiesPrioritySlugParams object with the ability to set a timeout on a request.

func (*DeleteV1PrioritiesPrioritySlugParams) SetContext

SetContext adds the context to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) SetDefaults

func (o *DeleteV1PrioritiesPrioritySlugParams) SetDefaults()

SetDefaults hydrates default values in the delete v1 priorities priority slug params (not the query body).

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

func (*DeleteV1PrioritiesPrioritySlugParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) SetPrioritySlug

func (o *DeleteV1PrioritiesPrioritySlugParams) SetPrioritySlug(prioritySlug string)

SetPrioritySlug adds the prioritySlug to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) SetTimeout

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

SetTimeout adds the timeout to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) WithContext

WithContext adds the context to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) WithDefaults

WithDefaults hydrates default values in the delete v1 priorities priority slug params (not the query body).

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

func (*DeleteV1PrioritiesPrioritySlugParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) WithPrioritySlug

WithPrioritySlug adds the prioritySlug to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) WithTimeout

WithTimeout adds the timeout to the delete v1 priorities priority slug params

func (*DeleteV1PrioritiesPrioritySlugParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteV1PrioritiesPrioritySlugReader

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

DeleteV1PrioritiesPrioritySlugReader is a Reader for the DeleteV1PrioritiesPrioritySlug structure.

func (*DeleteV1PrioritiesPrioritySlugReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1PrioritiesOK

type GetV1PrioritiesOK struct {
	Payload *models.PriorityEntity
}

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

Lists priorities

func NewGetV1PrioritiesOK

func NewGetV1PrioritiesOK() *GetV1PrioritiesOK

NewGetV1PrioritiesOK creates a GetV1PrioritiesOK with default headers values

func (*GetV1PrioritiesOK) Error

func (o *GetV1PrioritiesOK) Error() string

func (*GetV1PrioritiesOK) GetPayload

func (o *GetV1PrioritiesOK) GetPayload() *models.PriorityEntity

func (*GetV1PrioritiesOK) IsClientError

func (o *GetV1PrioritiesOK) IsClientError() bool

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

func (*GetV1PrioritiesOK) IsCode

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

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

func (*GetV1PrioritiesOK) IsRedirect

func (o *GetV1PrioritiesOK) IsRedirect() bool

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

func (*GetV1PrioritiesOK) IsServerError

func (o *GetV1PrioritiesOK) IsServerError() bool

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

func (*GetV1PrioritiesOK) IsSuccess

func (o *GetV1PrioritiesOK) IsSuccess() bool

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

func (*GetV1PrioritiesOK) String

func (o *GetV1PrioritiesOK) String() string

type GetV1PrioritiesParams

type GetV1PrioritiesParams struct {

	// Page.
	//
	// Format: int32
	Page *int32

	// PerPage.
	//
	// Format: int32
	PerPage *int32

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

GetV1PrioritiesParams contains all the parameters to send to the API endpoint

for the get v1 priorities operation.

Typically these are written to a http.Request.

func NewGetV1PrioritiesParams

func NewGetV1PrioritiesParams() *GetV1PrioritiesParams

NewGetV1PrioritiesParams creates a new GetV1PrioritiesParams 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 NewGetV1PrioritiesParamsWithContext

func NewGetV1PrioritiesParamsWithContext(ctx context.Context) *GetV1PrioritiesParams

NewGetV1PrioritiesParamsWithContext creates a new GetV1PrioritiesParams object with the ability to set a context for a request.

func NewGetV1PrioritiesParamsWithHTTPClient

func NewGetV1PrioritiesParamsWithHTTPClient(client *http.Client) *GetV1PrioritiesParams

NewGetV1PrioritiesParamsWithHTTPClient creates a new GetV1PrioritiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1PrioritiesParamsWithTimeout

func NewGetV1PrioritiesParamsWithTimeout(timeout time.Duration) *GetV1PrioritiesParams

NewGetV1PrioritiesParamsWithTimeout creates a new GetV1PrioritiesParams object with the ability to set a timeout on a request.

func (*GetV1PrioritiesParams) SetContext

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

SetContext adds the context to the get v1 priorities params

func (*GetV1PrioritiesParams) SetDefaults

func (o *GetV1PrioritiesParams) SetDefaults()

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

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

func (*GetV1PrioritiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 priorities params

func (*GetV1PrioritiesParams) SetPage

func (o *GetV1PrioritiesParams) SetPage(page *int32)

SetPage adds the page to the get v1 priorities params

func (*GetV1PrioritiesParams) SetPerPage

func (o *GetV1PrioritiesParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v1 priorities params

func (*GetV1PrioritiesParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 priorities params

func (*GetV1PrioritiesParams) WithContext

WithContext adds the context to the get v1 priorities params

func (*GetV1PrioritiesParams) WithDefaults

func (o *GetV1PrioritiesParams) WithDefaults() *GetV1PrioritiesParams

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

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

func (*GetV1PrioritiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 priorities params

func (*GetV1PrioritiesParams) WithPage

WithPage adds the page to the get v1 priorities params

func (*GetV1PrioritiesParams) WithPerPage

func (o *GetV1PrioritiesParams) WithPerPage(perPage *int32) *GetV1PrioritiesParams

WithPerPage adds the perPage to the get v1 priorities params

func (*GetV1PrioritiesParams) WithTimeout

func (o *GetV1PrioritiesParams) WithTimeout(timeout time.Duration) *GetV1PrioritiesParams

WithTimeout adds the timeout to the get v1 priorities params

func (*GetV1PrioritiesParams) WriteToRequest

func (o *GetV1PrioritiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetV1PrioritiesPrioritySlugOK

type GetV1PrioritiesPrioritySlugOK struct {
	Payload *models.PriorityEntity
}

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

Retrieve a specific priority

func NewGetV1PrioritiesPrioritySlugOK

func NewGetV1PrioritiesPrioritySlugOK() *GetV1PrioritiesPrioritySlugOK

NewGetV1PrioritiesPrioritySlugOK creates a GetV1PrioritiesPrioritySlugOK with default headers values

func (*GetV1PrioritiesPrioritySlugOK) Error

func (*GetV1PrioritiesPrioritySlugOK) GetPayload

func (*GetV1PrioritiesPrioritySlugOK) IsClientError

func (o *GetV1PrioritiesPrioritySlugOK) IsClientError() bool

IsClientError returns true when this get v1 priorities priority slug o k response has a 4xx status code

func (*GetV1PrioritiesPrioritySlugOK) IsCode

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

IsCode returns true when this get v1 priorities priority slug o k response a status code equal to that given

func (*GetV1PrioritiesPrioritySlugOK) IsRedirect

func (o *GetV1PrioritiesPrioritySlugOK) IsRedirect() bool

IsRedirect returns true when this get v1 priorities priority slug o k response has a 3xx status code

func (*GetV1PrioritiesPrioritySlugOK) IsServerError

func (o *GetV1PrioritiesPrioritySlugOK) IsServerError() bool

IsServerError returns true when this get v1 priorities priority slug o k response has a 5xx status code

func (*GetV1PrioritiesPrioritySlugOK) IsSuccess

func (o *GetV1PrioritiesPrioritySlugOK) IsSuccess() bool

IsSuccess returns true when this get v1 priorities priority slug o k response has a 2xx status code

func (*GetV1PrioritiesPrioritySlugOK) String

type GetV1PrioritiesPrioritySlugParams

type GetV1PrioritiesPrioritySlugParams struct {

	// PrioritySlug.
	PrioritySlug string

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

GetV1PrioritiesPrioritySlugParams contains all the parameters to send to the API endpoint

for the get v1 priorities priority slug operation.

Typically these are written to a http.Request.

func NewGetV1PrioritiesPrioritySlugParams

func NewGetV1PrioritiesPrioritySlugParams() *GetV1PrioritiesPrioritySlugParams

NewGetV1PrioritiesPrioritySlugParams creates a new GetV1PrioritiesPrioritySlugParams 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 NewGetV1PrioritiesPrioritySlugParamsWithContext

func NewGetV1PrioritiesPrioritySlugParamsWithContext(ctx context.Context) *GetV1PrioritiesPrioritySlugParams

NewGetV1PrioritiesPrioritySlugParamsWithContext creates a new GetV1PrioritiesPrioritySlugParams object with the ability to set a context for a request.

func NewGetV1PrioritiesPrioritySlugParamsWithHTTPClient

func NewGetV1PrioritiesPrioritySlugParamsWithHTTPClient(client *http.Client) *GetV1PrioritiesPrioritySlugParams

NewGetV1PrioritiesPrioritySlugParamsWithHTTPClient creates a new GetV1PrioritiesPrioritySlugParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1PrioritiesPrioritySlugParamsWithTimeout

func NewGetV1PrioritiesPrioritySlugParamsWithTimeout(timeout time.Duration) *GetV1PrioritiesPrioritySlugParams

NewGetV1PrioritiesPrioritySlugParamsWithTimeout creates a new GetV1PrioritiesPrioritySlugParams object with the ability to set a timeout on a request.

func (*GetV1PrioritiesPrioritySlugParams) SetContext

SetContext adds the context to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) SetDefaults

func (o *GetV1PrioritiesPrioritySlugParams) SetDefaults()

SetDefaults hydrates default values in the get v1 priorities priority slug params (not the query body).

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

func (*GetV1PrioritiesPrioritySlugParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) SetPrioritySlug

func (o *GetV1PrioritiesPrioritySlugParams) SetPrioritySlug(prioritySlug string)

SetPrioritySlug adds the prioritySlug to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) WithContext

WithContext adds the context to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) WithDefaults

WithDefaults hydrates default values in the get v1 priorities priority slug params (not the query body).

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

func (*GetV1PrioritiesPrioritySlugParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) WithPrioritySlug

WithPrioritySlug adds the prioritySlug to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) WithTimeout

WithTimeout adds the timeout to the get v1 priorities priority slug params

func (*GetV1PrioritiesPrioritySlugParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1PrioritiesPrioritySlugReader

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

GetV1PrioritiesPrioritySlugReader is a Reader for the GetV1PrioritiesPrioritySlug structure.

func (*GetV1PrioritiesPrioritySlugReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1PrioritiesReader

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

GetV1PrioritiesReader is a Reader for the GetV1Priorities structure.

func (*GetV1PrioritiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchV1PrioritiesPrioritySlugOK

type PatchV1PrioritiesPrioritySlugOK struct {
	Payload *models.PriorityEntity
}

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

Update a specific priority

func NewPatchV1PrioritiesPrioritySlugOK

func NewPatchV1PrioritiesPrioritySlugOK() *PatchV1PrioritiesPrioritySlugOK

NewPatchV1PrioritiesPrioritySlugOK creates a PatchV1PrioritiesPrioritySlugOK with default headers values

func (*PatchV1PrioritiesPrioritySlugOK) Error

func (*PatchV1PrioritiesPrioritySlugOK) GetPayload

func (*PatchV1PrioritiesPrioritySlugOK) IsClientError

func (o *PatchV1PrioritiesPrioritySlugOK) IsClientError() bool

IsClientError returns true when this patch v1 priorities priority slug o k response has a 4xx status code

func (*PatchV1PrioritiesPrioritySlugOK) IsCode

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

IsCode returns true when this patch v1 priorities priority slug o k response a status code equal to that given

func (*PatchV1PrioritiesPrioritySlugOK) IsRedirect

func (o *PatchV1PrioritiesPrioritySlugOK) IsRedirect() bool

IsRedirect returns true when this patch v1 priorities priority slug o k response has a 3xx status code

func (*PatchV1PrioritiesPrioritySlugOK) IsServerError

func (o *PatchV1PrioritiesPrioritySlugOK) IsServerError() bool

IsServerError returns true when this patch v1 priorities priority slug o k response has a 5xx status code

func (*PatchV1PrioritiesPrioritySlugOK) IsSuccess

func (o *PatchV1PrioritiesPrioritySlugOK) IsSuccess() bool

IsSuccess returns true when this patch v1 priorities priority slug o k response has a 2xx status code

func (*PatchV1PrioritiesPrioritySlugOK) String

type PatchV1PrioritiesPrioritySlugParams

type PatchV1PrioritiesPrioritySlugParams struct {

	// PatchV1PrioritiesPrioritySlug.
	PatchV1PrioritiesPrioritySlug *models.PatchV1PrioritiesPrioritySlug

	// PrioritySlug.
	PrioritySlug string

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

PatchV1PrioritiesPrioritySlugParams contains all the parameters to send to the API endpoint

for the patch v1 priorities priority slug operation.

Typically these are written to a http.Request.

func NewPatchV1PrioritiesPrioritySlugParams

func NewPatchV1PrioritiesPrioritySlugParams() *PatchV1PrioritiesPrioritySlugParams

NewPatchV1PrioritiesPrioritySlugParams creates a new PatchV1PrioritiesPrioritySlugParams 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 NewPatchV1PrioritiesPrioritySlugParamsWithContext

func NewPatchV1PrioritiesPrioritySlugParamsWithContext(ctx context.Context) *PatchV1PrioritiesPrioritySlugParams

NewPatchV1PrioritiesPrioritySlugParamsWithContext creates a new PatchV1PrioritiesPrioritySlugParams object with the ability to set a context for a request.

func NewPatchV1PrioritiesPrioritySlugParamsWithHTTPClient

func NewPatchV1PrioritiesPrioritySlugParamsWithHTTPClient(client *http.Client) *PatchV1PrioritiesPrioritySlugParams

NewPatchV1PrioritiesPrioritySlugParamsWithHTTPClient creates a new PatchV1PrioritiesPrioritySlugParams object with the ability to set a custom HTTPClient for a request.

func NewPatchV1PrioritiesPrioritySlugParamsWithTimeout

func NewPatchV1PrioritiesPrioritySlugParamsWithTimeout(timeout time.Duration) *PatchV1PrioritiesPrioritySlugParams

NewPatchV1PrioritiesPrioritySlugParamsWithTimeout creates a new PatchV1PrioritiesPrioritySlugParams object with the ability to set a timeout on a request.

func (*PatchV1PrioritiesPrioritySlugParams) SetContext

SetContext adds the context to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) SetDefaults

func (o *PatchV1PrioritiesPrioritySlugParams) SetDefaults()

SetDefaults hydrates default values in the patch v1 priorities priority slug params (not the query body).

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

func (*PatchV1PrioritiesPrioritySlugParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) SetPatchV1PrioritiesPrioritySlug

func (o *PatchV1PrioritiesPrioritySlugParams) SetPatchV1PrioritiesPrioritySlug(patchV1PrioritiesPrioritySlug *models.PatchV1PrioritiesPrioritySlug)

SetPatchV1PrioritiesPrioritySlug adds the patchV1PrioritiesPrioritySlug to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) SetPrioritySlug

func (o *PatchV1PrioritiesPrioritySlugParams) SetPrioritySlug(prioritySlug string)

SetPrioritySlug adds the prioritySlug to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) SetTimeout

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

SetTimeout adds the timeout to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) WithContext

WithContext adds the context to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) WithDefaults

WithDefaults hydrates default values in the patch v1 priorities priority slug params (not the query body).

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

func (*PatchV1PrioritiesPrioritySlugParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) WithPatchV1PrioritiesPrioritySlug

func (o *PatchV1PrioritiesPrioritySlugParams) WithPatchV1PrioritiesPrioritySlug(patchV1PrioritiesPrioritySlug *models.PatchV1PrioritiesPrioritySlug) *PatchV1PrioritiesPrioritySlugParams

WithPatchV1PrioritiesPrioritySlug adds the patchV1PrioritiesPrioritySlug to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) WithPrioritySlug

WithPrioritySlug adds the prioritySlug to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) WithTimeout

WithTimeout adds the timeout to the patch v1 priorities priority slug params

func (*PatchV1PrioritiesPrioritySlugParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchV1PrioritiesPrioritySlugReader

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

PatchV1PrioritiesPrioritySlugReader is a Reader for the PatchV1PrioritiesPrioritySlug structure.

func (*PatchV1PrioritiesPrioritySlugReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostV1PrioritiesCreated

type PostV1PrioritiesCreated struct {
	Payload *models.PriorityEntity
}

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

Create a new priority

func NewPostV1PrioritiesCreated

func NewPostV1PrioritiesCreated() *PostV1PrioritiesCreated

NewPostV1PrioritiesCreated creates a PostV1PrioritiesCreated with default headers values

func (*PostV1PrioritiesCreated) Error

func (o *PostV1PrioritiesCreated) Error() string

func (*PostV1PrioritiesCreated) GetPayload

func (*PostV1PrioritiesCreated) IsClientError

func (o *PostV1PrioritiesCreated) IsClientError() bool

IsClientError returns true when this post v1 priorities created response has a 4xx status code

func (*PostV1PrioritiesCreated) IsCode

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

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

func (*PostV1PrioritiesCreated) IsRedirect

func (o *PostV1PrioritiesCreated) IsRedirect() bool

IsRedirect returns true when this post v1 priorities created response has a 3xx status code

func (*PostV1PrioritiesCreated) IsServerError

func (o *PostV1PrioritiesCreated) IsServerError() bool

IsServerError returns true when this post v1 priorities created response has a 5xx status code

func (*PostV1PrioritiesCreated) IsSuccess

func (o *PostV1PrioritiesCreated) IsSuccess() bool

IsSuccess returns true when this post v1 priorities created response has a 2xx status code

func (*PostV1PrioritiesCreated) String

func (o *PostV1PrioritiesCreated) String() string

type PostV1PrioritiesParams

type PostV1PrioritiesParams struct {

	// PostV1Priorities.
	PostV1Priorities *models.PostV1Priorities

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

PostV1PrioritiesParams contains all the parameters to send to the API endpoint

for the post v1 priorities operation.

Typically these are written to a http.Request.

func NewPostV1PrioritiesParams

func NewPostV1PrioritiesParams() *PostV1PrioritiesParams

NewPostV1PrioritiesParams creates a new PostV1PrioritiesParams 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 NewPostV1PrioritiesParamsWithContext

func NewPostV1PrioritiesParamsWithContext(ctx context.Context) *PostV1PrioritiesParams

NewPostV1PrioritiesParamsWithContext creates a new PostV1PrioritiesParams object with the ability to set a context for a request.

func NewPostV1PrioritiesParamsWithHTTPClient

func NewPostV1PrioritiesParamsWithHTTPClient(client *http.Client) *PostV1PrioritiesParams

NewPostV1PrioritiesParamsWithHTTPClient creates a new PostV1PrioritiesParams object with the ability to set a custom HTTPClient for a request.

func NewPostV1PrioritiesParamsWithTimeout

func NewPostV1PrioritiesParamsWithTimeout(timeout time.Duration) *PostV1PrioritiesParams

NewPostV1PrioritiesParamsWithTimeout creates a new PostV1PrioritiesParams object with the ability to set a timeout on a request.

func (*PostV1PrioritiesParams) SetContext

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

SetContext adds the context to the post v1 priorities params

func (*PostV1PrioritiesParams) SetDefaults

func (o *PostV1PrioritiesParams) SetDefaults()

SetDefaults hydrates default values in the post v1 priorities params (not the query body).

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

func (*PostV1PrioritiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post v1 priorities params

func (*PostV1PrioritiesParams) SetPostV1Priorities

func (o *PostV1PrioritiesParams) SetPostV1Priorities(postV1Priorities *models.PostV1Priorities)

SetPostV1Priorities adds the postV1Priorities to the post v1 priorities params

func (*PostV1PrioritiesParams) SetTimeout

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

SetTimeout adds the timeout to the post v1 priorities params

func (*PostV1PrioritiesParams) WithContext

WithContext adds the context to the post v1 priorities params

func (*PostV1PrioritiesParams) WithDefaults

WithDefaults hydrates default values in the post v1 priorities params (not the query body).

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

func (*PostV1PrioritiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post v1 priorities params

func (*PostV1PrioritiesParams) WithPostV1Priorities

func (o *PostV1PrioritiesParams) WithPostV1Priorities(postV1Priorities *models.PostV1Priorities) *PostV1PrioritiesParams

WithPostV1Priorities adds the postV1Priorities to the post v1 priorities params

func (*PostV1PrioritiesParams) WithTimeout

WithTimeout adds the timeout to the post v1 priorities params

func (*PostV1PrioritiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1PrioritiesReader

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

PostV1PrioritiesReader is a Reader for the PostV1Priorities structure.

func (*PostV1PrioritiesReader) ReadResponse

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