limits

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 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 limits API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new limits API client.

func (*Client) DeleteLimitsID

func (a *Client) DeleteLimitsID(params *DeleteLimitsIDParams) (*DeleteLimitsIDNoContent, error)

DeleteLimitsID deletes limit

func (*Client) GetLimits

func (a *Client) GetLimits(params *GetLimitsParams) (*GetLimitsOK, error)

GetLimits lists limits

func (*Client) GetLimitsID

func (a *Client) GetLimitsID(params *GetLimitsIDParams) (*GetLimitsIDOK, error)

GetLimitsID fetches limit

func (*Client) PatchLimitsID

func (a *Client) PatchLimitsID(params *PatchLimitsIDParams) (*PatchLimitsIDOK, error)

PatchLimitsID amends limit

func (*Client) PostLimits

func (a *Client) PostLimits(params *PostLimitsParams) (*PostLimitsCreated, error)

PostLimits creates a limit

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type DeleteLimitsIDNoContent

type DeleteLimitsIDNoContent struct {
}

DeleteLimitsIDNoContent handles this case with default header values.

Limit deleted

func NewDeleteLimitsIDNoContent

func NewDeleteLimitsIDNoContent() *DeleteLimitsIDNoContent

NewDeleteLimitsIDNoContent creates a DeleteLimitsIDNoContent with default headers values

func (*DeleteLimitsIDNoContent) Error

func (o *DeleteLimitsIDNoContent) Error() string

type DeleteLimitsIDParams

type DeleteLimitsIDParams struct {

	/*ID
	  Limit Id

	*/
	ID strfmt.UUID
	/*Version
	  Version

	*/
	Version int64

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

DeleteLimitsIDParams contains all the parameters to send to the API endpoint for the delete limits ID operation typically these are written to a http.Request

func NewDeleteLimitsIDParams

func NewDeleteLimitsIDParams() *DeleteLimitsIDParams

NewDeleteLimitsIDParams creates a new DeleteLimitsIDParams object with the default values initialized.

func NewDeleteLimitsIDParamsWithContext

func NewDeleteLimitsIDParamsWithContext(ctx context.Context) *DeleteLimitsIDParams

NewDeleteLimitsIDParamsWithContext creates a new DeleteLimitsIDParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteLimitsIDParamsWithHTTPClient

func NewDeleteLimitsIDParamsWithHTTPClient(client *http.Client) *DeleteLimitsIDParams

NewDeleteLimitsIDParamsWithHTTPClient creates a new DeleteLimitsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteLimitsIDParamsWithTimeout

func NewDeleteLimitsIDParamsWithTimeout(timeout time.Duration) *DeleteLimitsIDParams

NewDeleteLimitsIDParamsWithTimeout creates a new DeleteLimitsIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteLimitsIDParams) SetContext

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

SetContext adds the context to the delete limits ID params

func (*DeleteLimitsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete limits ID params

func (*DeleteLimitsIDParams) SetID

func (o *DeleteLimitsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the delete limits ID params

func (*DeleteLimitsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete limits ID params

func (*DeleteLimitsIDParams) SetVersion

func (o *DeleteLimitsIDParams) SetVersion(version int64)

SetVersion adds the version to the delete limits ID params

func (*DeleteLimitsIDParams) WithContext

WithContext adds the context to the delete limits ID params

func (*DeleteLimitsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete limits ID params

func (*DeleteLimitsIDParams) WithID

WithID adds the id to the delete limits ID params

func (*DeleteLimitsIDParams) WithTimeout

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

WithTimeout adds the timeout to the delete limits ID params

func (*DeleteLimitsIDParams) WithVersion

func (o *DeleteLimitsIDParams) WithVersion(version int64) *DeleteLimitsIDParams

WithVersion adds the version to the delete limits ID params

func (*DeleteLimitsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteLimitsIDReader

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

DeleteLimitsIDReader is a Reader for the DeleteLimitsID structure.

func (*DeleteLimitsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLimitsIDOK

type GetLimitsIDOK struct {
	Payload *models.LimitDetailsResponse
}

GetLimitsIDOK handles this case with default header values.

Limit details

func NewGetLimitsIDOK

func NewGetLimitsIDOK() *GetLimitsIDOK

NewGetLimitsIDOK creates a GetLimitsIDOK with default headers values

func (*GetLimitsIDOK) Error

func (o *GetLimitsIDOK) Error() string

type GetLimitsIDParams

type GetLimitsIDParams struct {

	/*ID
	  limit Id

	*/
	ID strfmt.UUID

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

GetLimitsIDParams contains all the parameters to send to the API endpoint for the get limits ID operation typically these are written to a http.Request

func NewGetLimitsIDParams

func NewGetLimitsIDParams() *GetLimitsIDParams

NewGetLimitsIDParams creates a new GetLimitsIDParams object with the default values initialized.

func NewGetLimitsIDParamsWithContext

func NewGetLimitsIDParamsWithContext(ctx context.Context) *GetLimitsIDParams

NewGetLimitsIDParamsWithContext creates a new GetLimitsIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetLimitsIDParamsWithHTTPClient

func NewGetLimitsIDParamsWithHTTPClient(client *http.Client) *GetLimitsIDParams

NewGetLimitsIDParamsWithHTTPClient creates a new GetLimitsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetLimitsIDParamsWithTimeout

func NewGetLimitsIDParamsWithTimeout(timeout time.Duration) *GetLimitsIDParams

NewGetLimitsIDParamsWithTimeout creates a new GetLimitsIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetLimitsIDParams) SetContext

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

SetContext adds the context to the get limits ID params

func (*GetLimitsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get limits ID params

func (*GetLimitsIDParams) SetID

func (o *GetLimitsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the get limits ID params

func (*GetLimitsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get limits ID params

func (*GetLimitsIDParams) WithContext

func (o *GetLimitsIDParams) WithContext(ctx context.Context) *GetLimitsIDParams

WithContext adds the context to the get limits ID params

func (*GetLimitsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get limits ID params

func (*GetLimitsIDParams) WithID

WithID adds the id to the get limits ID params

func (*GetLimitsIDParams) WithTimeout

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

WithTimeout adds the timeout to the get limits ID params

func (*GetLimitsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLimitsIDReader

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

GetLimitsIDReader is a Reader for the GetLimitsID structure.

func (*GetLimitsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLimitsOK

type GetLimitsOK struct {
	Payload *models.LimitDetailsListResponse
}

GetLimitsOK handles this case with default header values.

List of limit details

func NewGetLimitsOK

func NewGetLimitsOK() *GetLimitsOK

NewGetLimitsOK creates a GetLimitsOK with default headers values

func (*GetLimitsOK) Error

func (o *GetLimitsOK) Error() string

type GetLimitsParams

type GetLimitsParams struct {

	/*FilterOrganisationID
	  Filter by organisation id

	*/
	FilterOrganisationID []strfmt.UUID
	/*PageNumber
	  Which page to select

	*/
	PageNumber *string
	/*PageSize
	  Number of items to select

	*/
	PageSize *int64

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

GetLimitsParams contains all the parameters to send to the API endpoint for the get limits operation typically these are written to a http.Request

func NewGetLimitsParams

func NewGetLimitsParams() *GetLimitsParams

NewGetLimitsParams creates a new GetLimitsParams object with the default values initialized.

func NewGetLimitsParamsWithContext

func NewGetLimitsParamsWithContext(ctx context.Context) *GetLimitsParams

NewGetLimitsParamsWithContext creates a new GetLimitsParams object with the default values initialized, and the ability to set a context for a request

func NewGetLimitsParamsWithHTTPClient

func NewGetLimitsParamsWithHTTPClient(client *http.Client) *GetLimitsParams

NewGetLimitsParamsWithHTTPClient creates a new GetLimitsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetLimitsParamsWithTimeout

func NewGetLimitsParamsWithTimeout(timeout time.Duration) *GetLimitsParams

NewGetLimitsParamsWithTimeout creates a new GetLimitsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetLimitsParams) SetContext

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

SetContext adds the context to the get limits params

func (*GetLimitsParams) SetFilterOrganisationID

func (o *GetLimitsParams) SetFilterOrganisationID(filterOrganisationID []strfmt.UUID)

SetFilterOrganisationID adds the filterOrganisationId to the get limits params

func (*GetLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get limits params

func (*GetLimitsParams) SetPageNumber

func (o *GetLimitsParams) SetPageNumber(pageNumber *string)

SetPageNumber adds the pageNumber to the get limits params

func (*GetLimitsParams) SetPageSize

func (o *GetLimitsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get limits params

func (*GetLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the get limits params

func (*GetLimitsParams) WithContext

func (o *GetLimitsParams) WithContext(ctx context.Context) *GetLimitsParams

WithContext adds the context to the get limits params

func (*GetLimitsParams) WithFilterOrganisationID

func (o *GetLimitsParams) WithFilterOrganisationID(filterOrganisationID []strfmt.UUID) *GetLimitsParams

WithFilterOrganisationID adds the filterOrganisationID to the get limits params

func (*GetLimitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get limits params

func (*GetLimitsParams) WithPageNumber

func (o *GetLimitsParams) WithPageNumber(pageNumber *string) *GetLimitsParams

WithPageNumber adds the pageNumber to the get limits params

func (*GetLimitsParams) WithPageSize

func (o *GetLimitsParams) WithPageSize(pageSize *int64) *GetLimitsParams

WithPageSize adds the pageSize to the get limits params

func (*GetLimitsParams) WithTimeout

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

WithTimeout adds the timeout to the get limits params

func (*GetLimitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLimitsReader

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

GetLimitsReader is a Reader for the GetLimits structure.

func (*GetLimitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchLimitsIDOK

type PatchLimitsIDOK struct {
	Payload *models.LimitDetailsResponse
}

PatchLimitsIDOK handles this case with default header values.

Limit updated

func NewPatchLimitsIDOK

func NewPatchLimitsIDOK() *PatchLimitsIDOK

NewPatchLimitsIDOK creates a PatchLimitsIDOK with default headers values

func (*PatchLimitsIDOK) Error

func (o *PatchLimitsIDOK) Error() string

type PatchLimitsIDParams

type PatchLimitsIDParams struct {

	/*LimitAmendRequest*/
	LimitAmendRequest *models.LimitAmendment
	/*ID
	  Limit Id

	*/
	ID strfmt.UUID

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

PatchLimitsIDParams contains all the parameters to send to the API endpoint for the patch limits ID operation typically these are written to a http.Request

func NewPatchLimitsIDParams

func NewPatchLimitsIDParams() *PatchLimitsIDParams

NewPatchLimitsIDParams creates a new PatchLimitsIDParams object with the default values initialized.

func NewPatchLimitsIDParamsWithContext

func NewPatchLimitsIDParamsWithContext(ctx context.Context) *PatchLimitsIDParams

NewPatchLimitsIDParamsWithContext creates a new PatchLimitsIDParams object with the default values initialized, and the ability to set a context for a request

func NewPatchLimitsIDParamsWithHTTPClient

func NewPatchLimitsIDParamsWithHTTPClient(client *http.Client) *PatchLimitsIDParams

NewPatchLimitsIDParamsWithHTTPClient creates a new PatchLimitsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchLimitsIDParamsWithTimeout

func NewPatchLimitsIDParamsWithTimeout(timeout time.Duration) *PatchLimitsIDParams

NewPatchLimitsIDParamsWithTimeout creates a new PatchLimitsIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchLimitsIDParams) SetContext

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

SetContext adds the context to the patch limits ID params

func (*PatchLimitsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch limits ID params

func (*PatchLimitsIDParams) SetID

func (o *PatchLimitsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the patch limits ID params

func (*PatchLimitsIDParams) SetLimitAmendRequest

func (o *PatchLimitsIDParams) SetLimitAmendRequest(limitAmendRequest *models.LimitAmendment)

SetLimitAmendRequest adds the limitAmendRequest to the patch limits ID params

func (*PatchLimitsIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch limits ID params

func (*PatchLimitsIDParams) WithContext

WithContext adds the context to the patch limits ID params

func (*PatchLimitsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch limits ID params

func (*PatchLimitsIDParams) WithID

WithID adds the id to the patch limits ID params

func (*PatchLimitsIDParams) WithLimitAmendRequest

func (o *PatchLimitsIDParams) WithLimitAmendRequest(limitAmendRequest *models.LimitAmendment) *PatchLimitsIDParams

WithLimitAmendRequest adds the limitAmendRequest to the patch limits ID params

func (*PatchLimitsIDParams) WithTimeout

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

WithTimeout adds the timeout to the patch limits ID params

func (*PatchLimitsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchLimitsIDReader

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

PatchLimitsIDReader is a Reader for the PatchLimitsID structure.

func (*PatchLimitsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostLimitsBadRequest

type PostLimitsBadRequest struct {
	Payload *models.APIError
}

PostLimitsBadRequest handles this case with default header values.

Limit creation error

func NewPostLimitsBadRequest

func NewPostLimitsBadRequest() *PostLimitsBadRequest

NewPostLimitsBadRequest creates a PostLimitsBadRequest with default headers values

func (*PostLimitsBadRequest) Error

func (o *PostLimitsBadRequest) Error() string

type PostLimitsCreated

type PostLimitsCreated struct {
	Payload *models.LimitCreationResponse
}

PostLimitsCreated handles this case with default header values.

Limit creation response

func NewPostLimitsCreated

func NewPostLimitsCreated() *PostLimitsCreated

NewPostLimitsCreated creates a PostLimitsCreated with default headers values

func (*PostLimitsCreated) Error

func (o *PostLimitsCreated) Error() string

type PostLimitsParams

type PostLimitsParams struct {

	/*LimitCreationRequest*/
	LimitCreationRequest *models.LimitCreation

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

PostLimitsParams contains all the parameters to send to the API endpoint for the post limits operation typically these are written to a http.Request

func NewPostLimitsParams

func NewPostLimitsParams() *PostLimitsParams

NewPostLimitsParams creates a new PostLimitsParams object with the default values initialized.

func NewPostLimitsParamsWithContext

func NewPostLimitsParamsWithContext(ctx context.Context) *PostLimitsParams

NewPostLimitsParamsWithContext creates a new PostLimitsParams object with the default values initialized, and the ability to set a context for a request

func NewPostLimitsParamsWithHTTPClient

func NewPostLimitsParamsWithHTTPClient(client *http.Client) *PostLimitsParams

NewPostLimitsParamsWithHTTPClient creates a new PostLimitsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostLimitsParamsWithTimeout

func NewPostLimitsParamsWithTimeout(timeout time.Duration) *PostLimitsParams

NewPostLimitsParamsWithTimeout creates a new PostLimitsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostLimitsParams) SetContext

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

SetContext adds the context to the post limits params

func (*PostLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post limits params

func (*PostLimitsParams) SetLimitCreationRequest

func (o *PostLimitsParams) SetLimitCreationRequest(limitCreationRequest *models.LimitCreation)

SetLimitCreationRequest adds the limitCreationRequest to the post limits params

func (*PostLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the post limits params

func (*PostLimitsParams) WithContext

func (o *PostLimitsParams) WithContext(ctx context.Context) *PostLimitsParams

WithContext adds the context to the post limits params

func (*PostLimitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post limits params

func (*PostLimitsParams) WithLimitCreationRequest

func (o *PostLimitsParams) WithLimitCreationRequest(limitCreationRequest *models.LimitCreation) *PostLimitsParams

WithLimitCreationRequest adds the limitCreationRequest to the post limits params

func (*PostLimitsParams) WithTimeout

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

WithTimeout adds the timeout to the post limits params

func (*PostLimitsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostLimitsReader

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

PostLimitsReader is a Reader for the PostLimits structure.

func (*PostLimitsReader) ReadResponse

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