budgets

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 1

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 budgets API

func (*Client) CreateBudget added in v0.0.21

func (a *Client) CreateBudget(params *CreateBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBudgetCreated, error)

CreateBudget Create a Budget.

func (*Client) DeleteBudget

func (a *Client) DeleteBudget(params *DeleteBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBudgetNoContent, error)

DeleteBudget Delete a Budget.

func (*Client) GetBudget

func (a *Client) GetBudget(params *GetBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetOK, error)

GetBudget Return a Budget.

func (*Client) GetBudgets

func (a *Client) GetBudgets(params *GetBudgetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetsOK, error)

GetBudgets Return all Budgets.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateBudget added in v0.0.21

func (a *Client) UpdateBudget(params *UpdateBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBudgetOK, error)

UpdateBudget Update a Budget.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateBudget(params *CreateBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBudgetCreated, error)

	DeleteBudget(params *DeleteBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBudgetNoContent, error)

	GetBudget(params *GetBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetOK, error)

	GetBudgets(params *GetBudgetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetsOK, error)

	UpdateBudget(params *UpdateBudgetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBudgetOK, 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 budgets API client.

type CreateBudgetBadRequest added in v0.0.21

type CreateBudgetBadRequest struct {
	Payload *models.Errors
}

CreateBudgetBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewCreateBudgetBadRequest added in v0.0.21

func NewCreateBudgetBadRequest() *CreateBudgetBadRequest

NewCreateBudgetBadRequest creates a CreateBudgetBadRequest with default headers values

func (*CreateBudgetBadRequest) Code added in v0.0.21

func (o *CreateBudgetBadRequest) Code() int

Code gets the status code for the create budget bad request response

func (*CreateBudgetBadRequest) Error added in v0.0.21

func (o *CreateBudgetBadRequest) Error() string

func (*CreateBudgetBadRequest) GetPayload added in v0.0.21

func (o *CreateBudgetBadRequest) GetPayload() *models.Errors

func (*CreateBudgetBadRequest) IsClientError added in v0.0.21

func (o *CreateBudgetBadRequest) IsClientError() bool

IsClientError returns true when this create budget bad request response has a 4xx status code

func (*CreateBudgetBadRequest) IsCode added in v0.0.21

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

IsCode returns true when this create budget bad request response a status code equal to that given

func (*CreateBudgetBadRequest) IsRedirect added in v0.0.21

func (o *CreateBudgetBadRequest) IsRedirect() bool

IsRedirect returns true when this create budget bad request response has a 3xx status code

func (*CreateBudgetBadRequest) IsServerError added in v0.0.21

func (o *CreateBudgetBadRequest) IsServerError() bool

IsServerError returns true when this create budget bad request response has a 5xx status code

func (*CreateBudgetBadRequest) IsSuccess added in v0.0.21

func (o *CreateBudgetBadRequest) IsSuccess() bool

IsSuccess returns true when this create budget bad request response has a 2xx status code

func (*CreateBudgetBadRequest) String added in v0.0.21

func (o *CreateBudgetBadRequest) String() string

type CreateBudgetCreated added in v0.0.21

type CreateBudgetCreated struct {
	Payload *models.Budget
}

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

CreateBudgetCreated create budget created

func NewCreateBudgetCreated added in v0.0.21

func NewCreateBudgetCreated() *CreateBudgetCreated

NewCreateBudgetCreated creates a CreateBudgetCreated with default headers values

func (*CreateBudgetCreated) Code added in v0.0.21

func (o *CreateBudgetCreated) Code() int

Code gets the status code for the create budget created response

func (*CreateBudgetCreated) Error added in v0.0.21

func (o *CreateBudgetCreated) Error() string

func (*CreateBudgetCreated) GetPayload added in v0.0.21

func (o *CreateBudgetCreated) GetPayload() *models.Budget

func (*CreateBudgetCreated) IsClientError added in v0.0.21

func (o *CreateBudgetCreated) IsClientError() bool

IsClientError returns true when this create budget created response has a 4xx status code

func (*CreateBudgetCreated) IsCode added in v0.0.21

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

IsCode returns true when this create budget created response a status code equal to that given

func (*CreateBudgetCreated) IsRedirect added in v0.0.21

func (o *CreateBudgetCreated) IsRedirect() bool

IsRedirect returns true when this create budget created response has a 3xx status code

func (*CreateBudgetCreated) IsServerError added in v0.0.21

func (o *CreateBudgetCreated) IsServerError() bool

IsServerError returns true when this create budget created response has a 5xx status code

func (*CreateBudgetCreated) IsSuccess added in v0.0.21

func (o *CreateBudgetCreated) IsSuccess() bool

IsSuccess returns true when this create budget created response has a 2xx status code

func (*CreateBudgetCreated) String added in v0.0.21

func (o *CreateBudgetCreated) String() string

type CreateBudgetParams added in v0.0.21

type CreateBudgetParams struct {

	// CreateBudget.
	CreateBudget *models.CreateBudget

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

CreateBudgetParams contains all the parameters to send to the API endpoint

for the create budget operation.

Typically these are written to a http.Request.

func NewCreateBudgetParams added in v0.0.21

func NewCreateBudgetParams() *CreateBudgetParams

NewCreateBudgetParams creates a new CreateBudgetParams 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 NewCreateBudgetParamsWithContext added in v0.0.21

func NewCreateBudgetParamsWithContext(ctx context.Context) *CreateBudgetParams

NewCreateBudgetParamsWithContext creates a new CreateBudgetParams object with the ability to set a context for a request.

func NewCreateBudgetParamsWithHTTPClient added in v0.0.21

func NewCreateBudgetParamsWithHTTPClient(client *http.Client) *CreateBudgetParams

NewCreateBudgetParamsWithHTTPClient creates a new CreateBudgetParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBudgetParamsWithTimeout added in v0.0.21

func NewCreateBudgetParamsWithTimeout(timeout time.Duration) *CreateBudgetParams

NewCreateBudgetParamsWithTimeout creates a new CreateBudgetParams object with the ability to set a timeout on a request.

func (*CreateBudgetParams) SetContext added in v0.0.21

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

SetContext adds the context to the create budget params

func (*CreateBudgetParams) SetCreateBudget added in v0.0.21

func (o *CreateBudgetParams) SetCreateBudget(createBudget *models.CreateBudget)

SetCreateBudget adds the createBudget to the create budget params

func (*CreateBudgetParams) SetDefaults added in v0.0.21

func (o *CreateBudgetParams) SetDefaults()

SetDefaults hydrates default values in the create budget params (not the query body).

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

func (*CreateBudgetParams) SetHTTPClient added in v0.0.21

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

SetHTTPClient adds the HTTPClient to the create budget params

func (*CreateBudgetParams) SetTimeout added in v0.0.21

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

SetTimeout adds the timeout to the create budget params

func (*CreateBudgetParams) WithContext added in v0.0.21

WithContext adds the context to the create budget params

func (*CreateBudgetParams) WithCreateBudget added in v0.0.21

func (o *CreateBudgetParams) WithCreateBudget(createBudget *models.CreateBudget) *CreateBudgetParams

WithCreateBudget adds the createBudget to the create budget params

func (*CreateBudgetParams) WithDefaults added in v0.0.21

func (o *CreateBudgetParams) WithDefaults() *CreateBudgetParams

WithDefaults hydrates default values in the create budget params (not the query body).

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

func (*CreateBudgetParams) WithHTTPClient added in v0.0.21

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

WithHTTPClient adds the HTTPClient to the create budget params

func (*CreateBudgetParams) WithTimeout added in v0.0.21

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

WithTimeout adds the timeout to the create budget params

func (*CreateBudgetParams) WriteToRequest added in v0.0.21

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

WriteToRequest writes these params to a swagger request

type CreateBudgetReader added in v0.0.21

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

CreateBudgetReader is a Reader for the CreateBudget structure.

func (*CreateBudgetReader) ReadResponse added in v0.0.21

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

ReadResponse reads a server response into the received o.

type CreateBudgetUnprocessableEntity added in v0.0.21

type CreateBudgetUnprocessableEntity struct {
	Payload *models.Errors
}

CreateBudgetUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewCreateBudgetUnprocessableEntity added in v0.0.21

func NewCreateBudgetUnprocessableEntity() *CreateBudgetUnprocessableEntity

NewCreateBudgetUnprocessableEntity creates a CreateBudgetUnprocessableEntity with default headers values

func (*CreateBudgetUnprocessableEntity) Code added in v0.0.21

Code gets the status code for the create budget unprocessable entity response

func (*CreateBudgetUnprocessableEntity) Error added in v0.0.21

func (*CreateBudgetUnprocessableEntity) GetPayload added in v0.0.21

func (*CreateBudgetUnprocessableEntity) IsClientError added in v0.0.21

func (o *CreateBudgetUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create budget unprocessable entity response has a 4xx status code

func (*CreateBudgetUnprocessableEntity) IsCode added in v0.0.21

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

IsCode returns true when this create budget unprocessable entity response a status code equal to that given

func (*CreateBudgetUnprocessableEntity) IsRedirect added in v0.0.21

func (o *CreateBudgetUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this create budget unprocessable entity response has a 3xx status code

func (*CreateBudgetUnprocessableEntity) IsServerError added in v0.0.21

func (o *CreateBudgetUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create budget unprocessable entity response has a 5xx status code

func (*CreateBudgetUnprocessableEntity) IsSuccess added in v0.0.21

func (o *CreateBudgetUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this create budget unprocessable entity response has a 2xx status code

func (*CreateBudgetUnprocessableEntity) String added in v0.0.21

type DeleteBudgetNoContent

type DeleteBudgetNoContent struct {
	Payload *models.Budget
}

DeleteBudgetNoContent describes a response with status code 204, with default header values.

DeleteBudgetNoContent delete budget no content

func NewDeleteBudgetNoContent

func NewDeleteBudgetNoContent() *DeleteBudgetNoContent

NewDeleteBudgetNoContent creates a DeleteBudgetNoContent with default headers values

func (*DeleteBudgetNoContent) Code

func (o *DeleteBudgetNoContent) Code() int

Code gets the status code for the delete budget no content response

func (*DeleteBudgetNoContent) Error

func (o *DeleteBudgetNoContent) Error() string

func (*DeleteBudgetNoContent) GetPayload

func (o *DeleteBudgetNoContent) GetPayload() *models.Budget

func (*DeleteBudgetNoContent) IsClientError

func (o *DeleteBudgetNoContent) IsClientError() bool

IsClientError returns true when this delete budget no content response has a 4xx status code

func (*DeleteBudgetNoContent) IsCode

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

IsCode returns true when this delete budget no content response a status code equal to that given

func (*DeleteBudgetNoContent) IsRedirect

func (o *DeleteBudgetNoContent) IsRedirect() bool

IsRedirect returns true when this delete budget no content response has a 3xx status code

func (*DeleteBudgetNoContent) IsServerError

func (o *DeleteBudgetNoContent) IsServerError() bool

IsServerError returns true when this delete budget no content response has a 5xx status code

func (*DeleteBudgetNoContent) IsSuccess

func (o *DeleteBudgetNoContent) IsSuccess() bool

IsSuccess returns true when this delete budget no content response has a 2xx status code

func (*DeleteBudgetNoContent) String

func (o *DeleteBudgetNoContent) String() string

type DeleteBudgetNotFound

type DeleteBudgetNotFound struct {
	Payload *models.Errors
}

DeleteBudgetNotFound describes a response with status code 404, with default header values.

NotFound

func NewDeleteBudgetNotFound

func NewDeleteBudgetNotFound() *DeleteBudgetNotFound

NewDeleteBudgetNotFound creates a DeleteBudgetNotFound with default headers values

func (*DeleteBudgetNotFound) Code

func (o *DeleteBudgetNotFound) Code() int

Code gets the status code for the delete budget not found response

func (*DeleteBudgetNotFound) Error

func (o *DeleteBudgetNotFound) Error() string

func (*DeleteBudgetNotFound) GetPayload

func (o *DeleteBudgetNotFound) GetPayload() *models.Errors

func (*DeleteBudgetNotFound) IsClientError

func (o *DeleteBudgetNotFound) IsClientError() bool

IsClientError returns true when this delete budget not found response has a 4xx status code

func (*DeleteBudgetNotFound) IsCode

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

IsCode returns true when this delete budget not found response a status code equal to that given

func (*DeleteBudgetNotFound) IsRedirect

func (o *DeleteBudgetNotFound) IsRedirect() bool

IsRedirect returns true when this delete budget not found response has a 3xx status code

func (*DeleteBudgetNotFound) IsServerError

func (o *DeleteBudgetNotFound) IsServerError() bool

IsServerError returns true when this delete budget not found response has a 5xx status code

func (*DeleteBudgetNotFound) IsSuccess

func (o *DeleteBudgetNotFound) IsSuccess() bool

IsSuccess returns true when this delete budget not found response has a 2xx status code

func (*DeleteBudgetNotFound) String

func (o *DeleteBudgetNotFound) String() string

type DeleteBudgetParams

type DeleteBudgetParams struct {

	// BudgetToken.
	BudgetToken string

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

DeleteBudgetParams contains all the parameters to send to the API endpoint

for the delete budget operation.

Typically these are written to a http.Request.

func NewDeleteBudgetParams

func NewDeleteBudgetParams() *DeleteBudgetParams

NewDeleteBudgetParams creates a new DeleteBudgetParams 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 NewDeleteBudgetParamsWithContext

func NewDeleteBudgetParamsWithContext(ctx context.Context) *DeleteBudgetParams

NewDeleteBudgetParamsWithContext creates a new DeleteBudgetParams object with the ability to set a context for a request.

func NewDeleteBudgetParamsWithHTTPClient

func NewDeleteBudgetParamsWithHTTPClient(client *http.Client) *DeleteBudgetParams

NewDeleteBudgetParamsWithHTTPClient creates a new DeleteBudgetParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBudgetParamsWithTimeout

func NewDeleteBudgetParamsWithTimeout(timeout time.Duration) *DeleteBudgetParams

NewDeleteBudgetParamsWithTimeout creates a new DeleteBudgetParams object with the ability to set a timeout on a request.

func (*DeleteBudgetParams) SetBudgetToken

func (o *DeleteBudgetParams) SetBudgetToken(budgetToken string)

SetBudgetToken adds the budgetToken to the delete budget params

func (*DeleteBudgetParams) SetContext

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

SetContext adds the context to the delete budget params

func (*DeleteBudgetParams) SetDefaults

func (o *DeleteBudgetParams) SetDefaults()

SetDefaults hydrates default values in the delete budget params (not the query body).

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

func (*DeleteBudgetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete budget params

func (*DeleteBudgetParams) SetTimeout

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

SetTimeout adds the timeout to the delete budget params

func (*DeleteBudgetParams) WithBudgetToken

func (o *DeleteBudgetParams) WithBudgetToken(budgetToken string) *DeleteBudgetParams

WithBudgetToken adds the budgetToken to the delete budget params

func (*DeleteBudgetParams) WithContext

WithContext adds the context to the delete budget params

func (*DeleteBudgetParams) WithDefaults

func (o *DeleteBudgetParams) WithDefaults() *DeleteBudgetParams

WithDefaults hydrates default values in the delete budget params (not the query body).

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

func (*DeleteBudgetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete budget params

func (*DeleteBudgetParams) WithTimeout

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

WithTimeout adds the timeout to the delete budget params

func (*DeleteBudgetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteBudgetReader

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

DeleteBudgetReader is a Reader for the DeleteBudget structure.

func (*DeleteBudgetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBudgetNotFound

type GetBudgetNotFound struct {
	Payload *models.Errors
}

GetBudgetNotFound describes a response with status code 404, with default header values.

NotFound

func NewGetBudgetNotFound

func NewGetBudgetNotFound() *GetBudgetNotFound

NewGetBudgetNotFound creates a GetBudgetNotFound with default headers values

func (*GetBudgetNotFound) Code

func (o *GetBudgetNotFound) Code() int

Code gets the status code for the get budget not found response

func (*GetBudgetNotFound) Error

func (o *GetBudgetNotFound) Error() string

func (*GetBudgetNotFound) GetPayload

func (o *GetBudgetNotFound) GetPayload() *models.Errors

func (*GetBudgetNotFound) IsClientError

func (o *GetBudgetNotFound) IsClientError() bool

IsClientError returns true when this get budget not found response has a 4xx status code

func (*GetBudgetNotFound) IsCode

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

IsCode returns true when this get budget not found response a status code equal to that given

func (*GetBudgetNotFound) IsRedirect

func (o *GetBudgetNotFound) IsRedirect() bool

IsRedirect returns true when this get budget not found response has a 3xx status code

func (*GetBudgetNotFound) IsServerError

func (o *GetBudgetNotFound) IsServerError() bool

IsServerError returns true when this get budget not found response has a 5xx status code

func (*GetBudgetNotFound) IsSuccess

func (o *GetBudgetNotFound) IsSuccess() bool

IsSuccess returns true when this get budget not found response has a 2xx status code

func (*GetBudgetNotFound) String

func (o *GetBudgetNotFound) String() string

type GetBudgetOK

type GetBudgetOK struct {
	Payload *models.Budget
}

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

GetBudgetOK get budget o k

func NewGetBudgetOK

func NewGetBudgetOK() *GetBudgetOK

NewGetBudgetOK creates a GetBudgetOK with default headers values

func (*GetBudgetOK) Code

func (o *GetBudgetOK) Code() int

Code gets the status code for the get budget o k response

func (*GetBudgetOK) Error

func (o *GetBudgetOK) Error() string

func (*GetBudgetOK) GetPayload

func (o *GetBudgetOK) GetPayload() *models.Budget

func (*GetBudgetOK) IsClientError

func (o *GetBudgetOK) IsClientError() bool

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

func (*GetBudgetOK) IsCode

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

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

func (*GetBudgetOK) IsRedirect

func (o *GetBudgetOK) IsRedirect() bool

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

func (*GetBudgetOK) IsServerError

func (o *GetBudgetOK) IsServerError() bool

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

func (*GetBudgetOK) IsSuccess

func (o *GetBudgetOK) IsSuccess() bool

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

func (*GetBudgetOK) String

func (o *GetBudgetOK) String() string

type GetBudgetParams

type GetBudgetParams struct {

	// BudgetToken.
	BudgetToken string

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

GetBudgetParams contains all the parameters to send to the API endpoint

for the get budget operation.

Typically these are written to a http.Request.

func NewGetBudgetParams

func NewGetBudgetParams() *GetBudgetParams

NewGetBudgetParams creates a new GetBudgetParams 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 NewGetBudgetParamsWithContext

func NewGetBudgetParamsWithContext(ctx context.Context) *GetBudgetParams

NewGetBudgetParamsWithContext creates a new GetBudgetParams object with the ability to set a context for a request.

func NewGetBudgetParamsWithHTTPClient

func NewGetBudgetParamsWithHTTPClient(client *http.Client) *GetBudgetParams

NewGetBudgetParamsWithHTTPClient creates a new GetBudgetParams object with the ability to set a custom HTTPClient for a request.

func NewGetBudgetParamsWithTimeout

func NewGetBudgetParamsWithTimeout(timeout time.Duration) *GetBudgetParams

NewGetBudgetParamsWithTimeout creates a new GetBudgetParams object with the ability to set a timeout on a request.

func (*GetBudgetParams) SetBudgetToken

func (o *GetBudgetParams) SetBudgetToken(budgetToken string)

SetBudgetToken adds the budgetToken to the get budget params

func (*GetBudgetParams) SetContext

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

SetContext adds the context to the get budget params

func (*GetBudgetParams) SetDefaults

func (o *GetBudgetParams) SetDefaults()

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

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

func (*GetBudgetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get budget params

func (*GetBudgetParams) SetTimeout

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

SetTimeout adds the timeout to the get budget params

func (*GetBudgetParams) WithBudgetToken

func (o *GetBudgetParams) WithBudgetToken(budgetToken string) *GetBudgetParams

WithBudgetToken adds the budgetToken to the get budget params

func (*GetBudgetParams) WithContext

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

WithContext adds the context to the get budget params

func (*GetBudgetParams) WithDefaults

func (o *GetBudgetParams) WithDefaults() *GetBudgetParams

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

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

func (*GetBudgetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get budget params

func (*GetBudgetParams) WithTimeout

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

WithTimeout adds the timeout to the get budget params

func (*GetBudgetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBudgetReader

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

GetBudgetReader is a Reader for the GetBudget structure.

func (*GetBudgetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBudgetsOK

type GetBudgetsOK struct {
	Payload *models.Budgets
}

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

GetBudgetsOK get budgets o k

func NewGetBudgetsOK

func NewGetBudgetsOK() *GetBudgetsOK

NewGetBudgetsOK creates a GetBudgetsOK with default headers values

func (*GetBudgetsOK) Code

func (o *GetBudgetsOK) Code() int

Code gets the status code for the get budgets o k response

func (*GetBudgetsOK) Error

func (o *GetBudgetsOK) Error() string

func (*GetBudgetsOK) GetPayload

func (o *GetBudgetsOK) GetPayload() *models.Budgets

func (*GetBudgetsOK) IsClientError

func (o *GetBudgetsOK) IsClientError() bool

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

func (*GetBudgetsOK) IsCode

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

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

func (*GetBudgetsOK) IsRedirect

func (o *GetBudgetsOK) IsRedirect() bool

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

func (*GetBudgetsOK) IsServerError

func (o *GetBudgetsOK) IsServerError() bool

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

func (*GetBudgetsOK) IsSuccess

func (o *GetBudgetsOK) IsSuccess() bool

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

func (*GetBudgetsOK) String

func (o *GetBudgetsOK) String() string

type GetBudgetsParams

type GetBudgetsParams struct {

	/* Limit.

	   The number of results to return. The maximum is 1000.

	   Format: int32
	*/
	Limit *int32

	/* Page.

	   The page of results to return.

	   Format: int32
	*/
	Page *int32

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

GetBudgetsParams contains all the parameters to send to the API endpoint

for the get budgets operation.

Typically these are written to a http.Request.

func NewGetBudgetsParams

func NewGetBudgetsParams() *GetBudgetsParams

NewGetBudgetsParams creates a new GetBudgetsParams 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 NewGetBudgetsParamsWithContext

func NewGetBudgetsParamsWithContext(ctx context.Context) *GetBudgetsParams

NewGetBudgetsParamsWithContext creates a new GetBudgetsParams object with the ability to set a context for a request.

func NewGetBudgetsParamsWithHTTPClient

func NewGetBudgetsParamsWithHTTPClient(client *http.Client) *GetBudgetsParams

NewGetBudgetsParamsWithHTTPClient creates a new GetBudgetsParams object with the ability to set a custom HTTPClient for a request.

func NewGetBudgetsParamsWithTimeout

func NewGetBudgetsParamsWithTimeout(timeout time.Duration) *GetBudgetsParams

NewGetBudgetsParamsWithTimeout creates a new GetBudgetsParams object with the ability to set a timeout on a request.

func (*GetBudgetsParams) SetContext

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

SetContext adds the context to the get budgets params

func (*GetBudgetsParams) SetDefaults

func (o *GetBudgetsParams) SetDefaults()

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

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

func (*GetBudgetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get budgets params

func (*GetBudgetsParams) SetLimit

func (o *GetBudgetsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get budgets params

func (*GetBudgetsParams) SetPage

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

SetPage adds the page to the get budgets params

func (*GetBudgetsParams) SetTimeout

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

SetTimeout adds the timeout to the get budgets params

func (*GetBudgetsParams) WithContext

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

WithContext adds the context to the get budgets params

func (*GetBudgetsParams) WithDefaults

func (o *GetBudgetsParams) WithDefaults() *GetBudgetsParams

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

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

func (*GetBudgetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get budgets params

func (*GetBudgetsParams) WithLimit

func (o *GetBudgetsParams) WithLimit(limit *int32) *GetBudgetsParams

WithLimit adds the limit to the get budgets params

func (*GetBudgetsParams) WithPage

func (o *GetBudgetsParams) WithPage(page *int32) *GetBudgetsParams

WithPage adds the page to the get budgets params

func (*GetBudgetsParams) WithTimeout

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

WithTimeout adds the timeout to the get budgets params

func (*GetBudgetsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBudgetsReader

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

GetBudgetsReader is a Reader for the GetBudgets structure.

func (*GetBudgetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateBudgetBadRequest added in v0.0.21

type UpdateBudgetBadRequest struct {
	Payload *models.Errors
}

UpdateBudgetBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewUpdateBudgetBadRequest added in v0.0.21

func NewUpdateBudgetBadRequest() *UpdateBudgetBadRequest

NewUpdateBudgetBadRequest creates a UpdateBudgetBadRequest with default headers values

func (*UpdateBudgetBadRequest) Code added in v0.0.21

func (o *UpdateBudgetBadRequest) Code() int

Code gets the status code for the update budget bad request response

func (*UpdateBudgetBadRequest) Error added in v0.0.21

func (o *UpdateBudgetBadRequest) Error() string

func (*UpdateBudgetBadRequest) GetPayload added in v0.0.21

func (o *UpdateBudgetBadRequest) GetPayload() *models.Errors

func (*UpdateBudgetBadRequest) IsClientError added in v0.0.21

func (o *UpdateBudgetBadRequest) IsClientError() bool

IsClientError returns true when this update budget bad request response has a 4xx status code

func (*UpdateBudgetBadRequest) IsCode added in v0.0.21

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

IsCode returns true when this update budget bad request response a status code equal to that given

func (*UpdateBudgetBadRequest) IsRedirect added in v0.0.21

func (o *UpdateBudgetBadRequest) IsRedirect() bool

IsRedirect returns true when this update budget bad request response has a 3xx status code

func (*UpdateBudgetBadRequest) IsServerError added in v0.0.21

func (o *UpdateBudgetBadRequest) IsServerError() bool

IsServerError returns true when this update budget bad request response has a 5xx status code

func (*UpdateBudgetBadRequest) IsSuccess added in v0.0.21

func (o *UpdateBudgetBadRequest) IsSuccess() bool

IsSuccess returns true when this update budget bad request response has a 2xx status code

func (*UpdateBudgetBadRequest) String added in v0.0.21

func (o *UpdateBudgetBadRequest) String() string

type UpdateBudgetNotFound added in v0.0.21

type UpdateBudgetNotFound struct {
	Payload *models.Errors
}

UpdateBudgetNotFound describes a response with status code 404, with default header values.

NotFound

func NewUpdateBudgetNotFound added in v0.0.21

func NewUpdateBudgetNotFound() *UpdateBudgetNotFound

NewUpdateBudgetNotFound creates a UpdateBudgetNotFound with default headers values

func (*UpdateBudgetNotFound) Code added in v0.0.21

func (o *UpdateBudgetNotFound) Code() int

Code gets the status code for the update budget not found response

func (*UpdateBudgetNotFound) Error added in v0.0.21

func (o *UpdateBudgetNotFound) Error() string

func (*UpdateBudgetNotFound) GetPayload added in v0.0.21

func (o *UpdateBudgetNotFound) GetPayload() *models.Errors

func (*UpdateBudgetNotFound) IsClientError added in v0.0.21

func (o *UpdateBudgetNotFound) IsClientError() bool

IsClientError returns true when this update budget not found response has a 4xx status code

func (*UpdateBudgetNotFound) IsCode added in v0.0.21

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

IsCode returns true when this update budget not found response a status code equal to that given

func (*UpdateBudgetNotFound) IsRedirect added in v0.0.21

func (o *UpdateBudgetNotFound) IsRedirect() bool

IsRedirect returns true when this update budget not found response has a 3xx status code

func (*UpdateBudgetNotFound) IsServerError added in v0.0.21

func (o *UpdateBudgetNotFound) IsServerError() bool

IsServerError returns true when this update budget not found response has a 5xx status code

func (*UpdateBudgetNotFound) IsSuccess added in v0.0.21

func (o *UpdateBudgetNotFound) IsSuccess() bool

IsSuccess returns true when this update budget not found response has a 2xx status code

func (*UpdateBudgetNotFound) String added in v0.0.21

func (o *UpdateBudgetNotFound) String() string

type UpdateBudgetOK added in v0.0.21

type UpdateBudgetOK struct {
	Payload *models.Budget
}

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

UpdateBudgetOK update budget o k

func NewUpdateBudgetOK added in v0.0.21

func NewUpdateBudgetOK() *UpdateBudgetOK

NewUpdateBudgetOK creates a UpdateBudgetOK with default headers values

func (*UpdateBudgetOK) Code added in v0.0.21

func (o *UpdateBudgetOK) Code() int

Code gets the status code for the update budget o k response

func (*UpdateBudgetOK) Error added in v0.0.21

func (o *UpdateBudgetOK) Error() string

func (*UpdateBudgetOK) GetPayload added in v0.0.21

func (o *UpdateBudgetOK) GetPayload() *models.Budget

func (*UpdateBudgetOK) IsClientError added in v0.0.21

func (o *UpdateBudgetOK) IsClientError() bool

IsClientError returns true when this update budget o k response has a 4xx status code

func (*UpdateBudgetOK) IsCode added in v0.0.21

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

IsCode returns true when this update budget o k response a status code equal to that given

func (*UpdateBudgetOK) IsRedirect added in v0.0.21

func (o *UpdateBudgetOK) IsRedirect() bool

IsRedirect returns true when this update budget o k response has a 3xx status code

func (*UpdateBudgetOK) IsServerError added in v0.0.21

func (o *UpdateBudgetOK) IsServerError() bool

IsServerError returns true when this update budget o k response has a 5xx status code

func (*UpdateBudgetOK) IsSuccess added in v0.0.21

func (o *UpdateBudgetOK) IsSuccess() bool

IsSuccess returns true when this update budget o k response has a 2xx status code

func (*UpdateBudgetOK) String added in v0.0.21

func (o *UpdateBudgetOK) String() string

type UpdateBudgetParams added in v0.0.21

type UpdateBudgetParams struct {

	// BudgetToken.
	BudgetToken string

	// UpdateBudget.
	UpdateBudget *models.UpdateBudget

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

UpdateBudgetParams contains all the parameters to send to the API endpoint

for the update budget operation.

Typically these are written to a http.Request.

func NewUpdateBudgetParams added in v0.0.21

func NewUpdateBudgetParams() *UpdateBudgetParams

NewUpdateBudgetParams creates a new UpdateBudgetParams 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 NewUpdateBudgetParamsWithContext added in v0.0.21

func NewUpdateBudgetParamsWithContext(ctx context.Context) *UpdateBudgetParams

NewUpdateBudgetParamsWithContext creates a new UpdateBudgetParams object with the ability to set a context for a request.

func NewUpdateBudgetParamsWithHTTPClient added in v0.0.21

func NewUpdateBudgetParamsWithHTTPClient(client *http.Client) *UpdateBudgetParams

NewUpdateBudgetParamsWithHTTPClient creates a new UpdateBudgetParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBudgetParamsWithTimeout added in v0.0.21

func NewUpdateBudgetParamsWithTimeout(timeout time.Duration) *UpdateBudgetParams

NewUpdateBudgetParamsWithTimeout creates a new UpdateBudgetParams object with the ability to set a timeout on a request.

func (*UpdateBudgetParams) SetBudgetToken added in v0.0.21

func (o *UpdateBudgetParams) SetBudgetToken(budgetToken string)

SetBudgetToken adds the budgetToken to the update budget params

func (*UpdateBudgetParams) SetContext added in v0.0.21

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

SetContext adds the context to the update budget params

func (*UpdateBudgetParams) SetDefaults added in v0.0.21

func (o *UpdateBudgetParams) SetDefaults()

SetDefaults hydrates default values in the update budget params (not the query body).

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

func (*UpdateBudgetParams) SetHTTPClient added in v0.0.21

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

SetHTTPClient adds the HTTPClient to the update budget params

func (*UpdateBudgetParams) SetTimeout added in v0.0.21

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

SetTimeout adds the timeout to the update budget params

func (*UpdateBudgetParams) SetUpdateBudget added in v0.0.21

func (o *UpdateBudgetParams) SetUpdateBudget(updateBudget *models.UpdateBudget)

SetUpdateBudget adds the updateBudget to the update budget params

func (*UpdateBudgetParams) WithBudgetToken added in v0.0.21

func (o *UpdateBudgetParams) WithBudgetToken(budgetToken string) *UpdateBudgetParams

WithBudgetToken adds the budgetToken to the update budget params

func (*UpdateBudgetParams) WithContext added in v0.0.21

WithContext adds the context to the update budget params

func (*UpdateBudgetParams) WithDefaults added in v0.0.21

func (o *UpdateBudgetParams) WithDefaults() *UpdateBudgetParams

WithDefaults hydrates default values in the update budget params (not the query body).

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

func (*UpdateBudgetParams) WithHTTPClient added in v0.0.21

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

WithHTTPClient adds the HTTPClient to the update budget params

func (*UpdateBudgetParams) WithTimeout added in v0.0.21

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

WithTimeout adds the timeout to the update budget params

func (*UpdateBudgetParams) WithUpdateBudget added in v0.0.21

func (o *UpdateBudgetParams) WithUpdateBudget(updateBudget *models.UpdateBudget) *UpdateBudgetParams

WithUpdateBudget adds the updateBudget to the update budget params

func (*UpdateBudgetParams) WriteToRequest added in v0.0.21

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

WriteToRequest writes these params to a swagger request

type UpdateBudgetReader added in v0.0.21

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

UpdateBudgetReader is a Reader for the UpdateBudget structure.

func (*UpdateBudgetReader) ReadResponse added in v0.0.21

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