budget_alerts

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: 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 budget alerts API

func (*Client) CreateBudgetAlert

func (a *Client) CreateBudgetAlert(params *CreateBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBudgetAlertCreated, error)

CreateBudgetAlert Create a Budget Alert.

func (*Client) DeleteBudgetAlert

func (a *Client) DeleteBudgetAlert(params *DeleteBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBudgetAlertNoContent, error)

DeleteBudgetAlert Delete a BudgetAlert.

func (*Client) GetBudgetAlert

func (a *Client) GetBudgetAlert(params *GetBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetAlertOK, error)

GetBudgetAlert Return a BudgetAlert.

func (*Client) GetBudgetAlerts

func (a *Client) GetBudgetAlerts(params *GetBudgetAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetAlertsOK, error)

GetBudgetAlerts Return all BudgetAlerts.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateBudgetAlert

func (a *Client) UpdateBudgetAlert(params *UpdateBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBudgetAlertCreated, error)

UpdateBudgetAlert Updates an existing BudgetAlert.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateBudgetAlert(params *CreateBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateBudgetAlertCreated, error)

	DeleteBudgetAlert(params *DeleteBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBudgetAlertNoContent, error)

	GetBudgetAlert(params *GetBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetAlertOK, error)

	GetBudgetAlerts(params *GetBudgetAlertsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBudgetAlertsOK, error)

	UpdateBudgetAlert(params *UpdateBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateBudgetAlertCreated, 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 budget alerts API client.

type CreateBudgetAlertBadRequest

type CreateBudgetAlertBadRequest struct {
	Payload *models.Errors
}

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

BadRequest

func NewCreateBudgetAlertBadRequest

func NewCreateBudgetAlertBadRequest() *CreateBudgetAlertBadRequest

NewCreateBudgetAlertBadRequest creates a CreateBudgetAlertBadRequest with default headers values

func (*CreateBudgetAlertBadRequest) Code

func (o *CreateBudgetAlertBadRequest) Code() int

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

func (*CreateBudgetAlertBadRequest) Error

func (*CreateBudgetAlertBadRequest) GetPayload

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

func (*CreateBudgetAlertBadRequest) IsClientError

func (o *CreateBudgetAlertBadRequest) IsClientError() bool

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

func (*CreateBudgetAlertBadRequest) IsCode

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

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

func (*CreateBudgetAlertBadRequest) IsRedirect

func (o *CreateBudgetAlertBadRequest) IsRedirect() bool

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

func (*CreateBudgetAlertBadRequest) IsServerError

func (o *CreateBudgetAlertBadRequest) IsServerError() bool

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

func (*CreateBudgetAlertBadRequest) IsSuccess

func (o *CreateBudgetAlertBadRequest) IsSuccess() bool

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

func (*CreateBudgetAlertBadRequest) String

func (o *CreateBudgetAlertBadRequest) String() string

type CreateBudgetAlertCreated

type CreateBudgetAlertCreated struct {
	Payload *models.BudgetAlert
}

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

CreateBudgetAlertCreated create budget alert created

func NewCreateBudgetAlertCreated

func NewCreateBudgetAlertCreated() *CreateBudgetAlertCreated

NewCreateBudgetAlertCreated creates a CreateBudgetAlertCreated with default headers values

func (*CreateBudgetAlertCreated) Code

func (o *CreateBudgetAlertCreated) Code() int

Code gets the status code for the create budget alert created response

func (*CreateBudgetAlertCreated) Error

func (o *CreateBudgetAlertCreated) Error() string

func (*CreateBudgetAlertCreated) GetPayload

func (o *CreateBudgetAlertCreated) GetPayload() *models.BudgetAlert

func (*CreateBudgetAlertCreated) IsClientError

func (o *CreateBudgetAlertCreated) IsClientError() bool

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

func (*CreateBudgetAlertCreated) IsCode

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

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

func (*CreateBudgetAlertCreated) IsRedirect

func (o *CreateBudgetAlertCreated) IsRedirect() bool

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

func (*CreateBudgetAlertCreated) IsServerError

func (o *CreateBudgetAlertCreated) IsServerError() bool

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

func (*CreateBudgetAlertCreated) IsSuccess

func (o *CreateBudgetAlertCreated) IsSuccess() bool

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

func (*CreateBudgetAlertCreated) String

func (o *CreateBudgetAlertCreated) String() string

type CreateBudgetAlertParams

type CreateBudgetAlertParams struct {

	/* BudgetTokens.

	   The tokens of the Budget that has the alert.
	*/
	BudgetTokens []string

	/* DurationInDays.

	   The number of days from the start or end of the month to trigger the alert if the threshold is reached.  For the full month, pass an empty value.

	   Format: int32
	*/
	DurationInDays int32

	/* PeriodToTrack.

	   The period tracked on the alert. Used with duration_in_days to determine the time window of the alert. Defaults to start_of_the_month if not passed. Possible values: start_of_the_month, end_of_the_month.
	*/
	PeriodToTrack *string

	/* RecipientChannels.

	   The channels receiving the alerts. Requires an integration provider to be connected.
	*/
	RecipientChannels []string

	/* Threshold.

	   The threshold amount that must be met for the alert to fire.

	   Format: int32
	*/
	Threshold int32

	/* UserTokens.

	   The tokens of the users that receive the alert.
	*/
	UserTokens []string

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

CreateBudgetAlertParams contains all the parameters to send to the API endpoint

for the create budget alert operation.

Typically these are written to a http.Request.

func NewCreateBudgetAlertParams

func NewCreateBudgetAlertParams() *CreateBudgetAlertParams

NewCreateBudgetAlertParams creates a new CreateBudgetAlertParams 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 NewCreateBudgetAlertParamsWithContext

func NewCreateBudgetAlertParamsWithContext(ctx context.Context) *CreateBudgetAlertParams

NewCreateBudgetAlertParamsWithContext creates a new CreateBudgetAlertParams object with the ability to set a context for a request.

func NewCreateBudgetAlertParamsWithHTTPClient

func NewCreateBudgetAlertParamsWithHTTPClient(client *http.Client) *CreateBudgetAlertParams

NewCreateBudgetAlertParamsWithHTTPClient creates a new CreateBudgetAlertParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBudgetAlertParamsWithTimeout

func NewCreateBudgetAlertParamsWithTimeout(timeout time.Duration) *CreateBudgetAlertParams

NewCreateBudgetAlertParamsWithTimeout creates a new CreateBudgetAlertParams object with the ability to set a timeout on a request.

func (*CreateBudgetAlertParams) SetBudgetTokens

func (o *CreateBudgetAlertParams) SetBudgetTokens(budgetTokens []string)

SetBudgetTokens adds the budgetTokens to the create budget alert params

func (*CreateBudgetAlertParams) SetContext

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

SetContext adds the context to the create budget alert params

func (*CreateBudgetAlertParams) SetDefaults

func (o *CreateBudgetAlertParams) SetDefaults()

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

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

func (*CreateBudgetAlertParams) SetDurationInDays

func (o *CreateBudgetAlertParams) SetDurationInDays(durationInDays int32)

SetDurationInDays adds the durationInDays to the create budget alert params

func (*CreateBudgetAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create budget alert params

func (*CreateBudgetAlertParams) SetPeriodToTrack

func (o *CreateBudgetAlertParams) SetPeriodToTrack(periodToTrack *string)

SetPeriodToTrack adds the periodToTrack to the create budget alert params

func (*CreateBudgetAlertParams) SetRecipientChannels

func (o *CreateBudgetAlertParams) SetRecipientChannels(recipientChannels []string)

SetRecipientChannels adds the recipientChannels to the create budget alert params

func (*CreateBudgetAlertParams) SetThreshold

func (o *CreateBudgetAlertParams) SetThreshold(threshold int32)

SetThreshold adds the threshold to the create budget alert params

func (*CreateBudgetAlertParams) SetTimeout

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

SetTimeout adds the timeout to the create budget alert params

func (*CreateBudgetAlertParams) SetUserTokens

func (o *CreateBudgetAlertParams) SetUserTokens(userTokens []string)

SetUserTokens adds the userTokens to the create budget alert params

func (*CreateBudgetAlertParams) WithBudgetTokens

func (o *CreateBudgetAlertParams) WithBudgetTokens(budgetTokens []string) *CreateBudgetAlertParams

WithBudgetTokens adds the budgetTokens to the create budget alert params

func (*CreateBudgetAlertParams) WithContext

WithContext adds the context to the create budget alert params

func (*CreateBudgetAlertParams) WithDefaults

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

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

func (*CreateBudgetAlertParams) WithDurationInDays

func (o *CreateBudgetAlertParams) WithDurationInDays(durationInDays int32) *CreateBudgetAlertParams

WithDurationInDays adds the durationInDays to the create budget alert params

func (*CreateBudgetAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create budget alert params

func (*CreateBudgetAlertParams) WithPeriodToTrack

func (o *CreateBudgetAlertParams) WithPeriodToTrack(periodToTrack *string) *CreateBudgetAlertParams

WithPeriodToTrack adds the periodToTrack to the create budget alert params

func (*CreateBudgetAlertParams) WithRecipientChannels

func (o *CreateBudgetAlertParams) WithRecipientChannels(recipientChannels []string) *CreateBudgetAlertParams

WithRecipientChannels adds the recipientChannels to the create budget alert params

func (*CreateBudgetAlertParams) WithThreshold

func (o *CreateBudgetAlertParams) WithThreshold(threshold int32) *CreateBudgetAlertParams

WithThreshold adds the threshold to the create budget alert params

func (*CreateBudgetAlertParams) WithTimeout

WithTimeout adds the timeout to the create budget alert params

func (*CreateBudgetAlertParams) WithUserTokens

func (o *CreateBudgetAlertParams) WithUserTokens(userTokens []string) *CreateBudgetAlertParams

WithUserTokens adds the userTokens to the create budget alert params

func (*CreateBudgetAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateBudgetAlertReader

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

CreateBudgetAlertReader is a Reader for the CreateBudgetAlert structure.

func (*CreateBudgetAlertReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBudgetAlertNoContent

type DeleteBudgetAlertNoContent struct {
	Payload *models.BudgetAlert
}

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

DeleteBudgetAlertNoContent delete budget alert no content

func NewDeleteBudgetAlertNoContent

func NewDeleteBudgetAlertNoContent() *DeleteBudgetAlertNoContent

NewDeleteBudgetAlertNoContent creates a DeleteBudgetAlertNoContent with default headers values

func (*DeleteBudgetAlertNoContent) Code

func (o *DeleteBudgetAlertNoContent) Code() int

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

func (*DeleteBudgetAlertNoContent) Error

func (*DeleteBudgetAlertNoContent) GetPayload

func (*DeleteBudgetAlertNoContent) IsClientError

func (o *DeleteBudgetAlertNoContent) IsClientError() bool

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

func (*DeleteBudgetAlertNoContent) IsCode

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

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

func (*DeleteBudgetAlertNoContent) IsRedirect

func (o *DeleteBudgetAlertNoContent) IsRedirect() bool

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

func (*DeleteBudgetAlertNoContent) IsServerError

func (o *DeleteBudgetAlertNoContent) IsServerError() bool

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

func (*DeleteBudgetAlertNoContent) IsSuccess

func (o *DeleteBudgetAlertNoContent) IsSuccess() bool

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

func (*DeleteBudgetAlertNoContent) String

func (o *DeleteBudgetAlertNoContent) String() string

type DeleteBudgetAlertNotFound

type DeleteBudgetAlertNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewDeleteBudgetAlertNotFound

func NewDeleteBudgetAlertNotFound() *DeleteBudgetAlertNotFound

NewDeleteBudgetAlertNotFound creates a DeleteBudgetAlertNotFound with default headers values

func (*DeleteBudgetAlertNotFound) Code

func (o *DeleteBudgetAlertNotFound) Code() int

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

func (*DeleteBudgetAlertNotFound) Error

func (o *DeleteBudgetAlertNotFound) Error() string

func (*DeleteBudgetAlertNotFound) GetPayload

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

func (*DeleteBudgetAlertNotFound) IsClientError

func (o *DeleteBudgetAlertNotFound) IsClientError() bool

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

func (*DeleteBudgetAlertNotFound) IsCode

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

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

func (*DeleteBudgetAlertNotFound) IsRedirect

func (o *DeleteBudgetAlertNotFound) IsRedirect() bool

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

func (*DeleteBudgetAlertNotFound) IsServerError

func (o *DeleteBudgetAlertNotFound) IsServerError() bool

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

func (*DeleteBudgetAlertNotFound) IsSuccess

func (o *DeleteBudgetAlertNotFound) IsSuccess() bool

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

func (*DeleteBudgetAlertNotFound) String

func (o *DeleteBudgetAlertNotFound) String() string

type DeleteBudgetAlertParams

type DeleteBudgetAlertParams struct {

	// BudgetAlertToken.
	BudgetAlertToken string

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

DeleteBudgetAlertParams contains all the parameters to send to the API endpoint

for the delete budget alert operation.

Typically these are written to a http.Request.

func NewDeleteBudgetAlertParams

func NewDeleteBudgetAlertParams() *DeleteBudgetAlertParams

NewDeleteBudgetAlertParams creates a new DeleteBudgetAlertParams 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 NewDeleteBudgetAlertParamsWithContext

func NewDeleteBudgetAlertParamsWithContext(ctx context.Context) *DeleteBudgetAlertParams

NewDeleteBudgetAlertParamsWithContext creates a new DeleteBudgetAlertParams object with the ability to set a context for a request.

func NewDeleteBudgetAlertParamsWithHTTPClient

func NewDeleteBudgetAlertParamsWithHTTPClient(client *http.Client) *DeleteBudgetAlertParams

NewDeleteBudgetAlertParamsWithHTTPClient creates a new DeleteBudgetAlertParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBudgetAlertParamsWithTimeout

func NewDeleteBudgetAlertParamsWithTimeout(timeout time.Duration) *DeleteBudgetAlertParams

NewDeleteBudgetAlertParamsWithTimeout creates a new DeleteBudgetAlertParams object with the ability to set a timeout on a request.

func (*DeleteBudgetAlertParams) SetBudgetAlertToken

func (o *DeleteBudgetAlertParams) SetBudgetAlertToken(budgetAlertToken string)

SetBudgetAlertToken adds the budgetAlertToken to the delete budget alert params

func (*DeleteBudgetAlertParams) SetContext

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

SetContext adds the context to the delete budget alert params

func (*DeleteBudgetAlertParams) SetDefaults

func (o *DeleteBudgetAlertParams) SetDefaults()

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

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

func (*DeleteBudgetAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete budget alert params

func (*DeleteBudgetAlertParams) SetTimeout

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

SetTimeout adds the timeout to the delete budget alert params

func (*DeleteBudgetAlertParams) WithBudgetAlertToken

func (o *DeleteBudgetAlertParams) WithBudgetAlertToken(budgetAlertToken string) *DeleteBudgetAlertParams

WithBudgetAlertToken adds the budgetAlertToken to the delete budget alert params

func (*DeleteBudgetAlertParams) WithContext

WithContext adds the context to the delete budget alert params

func (*DeleteBudgetAlertParams) WithDefaults

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

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

func (*DeleteBudgetAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete budget alert params

func (*DeleteBudgetAlertParams) WithTimeout

WithTimeout adds the timeout to the delete budget alert params

func (*DeleteBudgetAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteBudgetAlertReader

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

DeleteBudgetAlertReader is a Reader for the DeleteBudgetAlert structure.

func (*DeleteBudgetAlertReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBudgetAlertNotFound

type GetBudgetAlertNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewGetBudgetAlertNotFound

func NewGetBudgetAlertNotFound() *GetBudgetAlertNotFound

NewGetBudgetAlertNotFound creates a GetBudgetAlertNotFound with default headers values

func (*GetBudgetAlertNotFound) Code

func (o *GetBudgetAlertNotFound) Code() int

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

func (*GetBudgetAlertNotFound) Error

func (o *GetBudgetAlertNotFound) Error() string

func (*GetBudgetAlertNotFound) GetPayload

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

func (*GetBudgetAlertNotFound) IsClientError

func (o *GetBudgetAlertNotFound) IsClientError() bool

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

func (*GetBudgetAlertNotFound) IsCode

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

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

func (*GetBudgetAlertNotFound) IsRedirect

func (o *GetBudgetAlertNotFound) IsRedirect() bool

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

func (*GetBudgetAlertNotFound) IsServerError

func (o *GetBudgetAlertNotFound) IsServerError() bool

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

func (*GetBudgetAlertNotFound) IsSuccess

func (o *GetBudgetAlertNotFound) IsSuccess() bool

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

func (*GetBudgetAlertNotFound) String

func (o *GetBudgetAlertNotFound) String() string

type GetBudgetAlertOK

type GetBudgetAlertOK struct {
	Payload *models.BudgetAlert
}

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

GetBudgetAlertOK get budget alert o k

func NewGetBudgetAlertOK

func NewGetBudgetAlertOK() *GetBudgetAlertOK

NewGetBudgetAlertOK creates a GetBudgetAlertOK with default headers values

func (*GetBudgetAlertOK) Code

func (o *GetBudgetAlertOK) Code() int

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

func (*GetBudgetAlertOK) Error

func (o *GetBudgetAlertOK) Error() string

func (*GetBudgetAlertOK) GetPayload

func (o *GetBudgetAlertOK) GetPayload() *models.BudgetAlert

func (*GetBudgetAlertOK) IsClientError

func (o *GetBudgetAlertOK) IsClientError() bool

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

func (*GetBudgetAlertOK) IsCode

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

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

func (*GetBudgetAlertOK) IsRedirect

func (o *GetBudgetAlertOK) IsRedirect() bool

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

func (*GetBudgetAlertOK) IsServerError

func (o *GetBudgetAlertOK) IsServerError() bool

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

func (*GetBudgetAlertOK) IsSuccess

func (o *GetBudgetAlertOK) IsSuccess() bool

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

func (*GetBudgetAlertOK) String

func (o *GetBudgetAlertOK) String() string

type GetBudgetAlertParams

type GetBudgetAlertParams struct {

	// BudgetAlertToken.
	BudgetAlertToken string

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

GetBudgetAlertParams contains all the parameters to send to the API endpoint

for the get budget alert operation.

Typically these are written to a http.Request.

func NewGetBudgetAlertParams

func NewGetBudgetAlertParams() *GetBudgetAlertParams

NewGetBudgetAlertParams creates a new GetBudgetAlertParams 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 NewGetBudgetAlertParamsWithContext

func NewGetBudgetAlertParamsWithContext(ctx context.Context) *GetBudgetAlertParams

NewGetBudgetAlertParamsWithContext creates a new GetBudgetAlertParams object with the ability to set a context for a request.

func NewGetBudgetAlertParamsWithHTTPClient

func NewGetBudgetAlertParamsWithHTTPClient(client *http.Client) *GetBudgetAlertParams

NewGetBudgetAlertParamsWithHTTPClient creates a new GetBudgetAlertParams object with the ability to set a custom HTTPClient for a request.

func NewGetBudgetAlertParamsWithTimeout

func NewGetBudgetAlertParamsWithTimeout(timeout time.Duration) *GetBudgetAlertParams

NewGetBudgetAlertParamsWithTimeout creates a new GetBudgetAlertParams object with the ability to set a timeout on a request.

func (*GetBudgetAlertParams) SetBudgetAlertToken

func (o *GetBudgetAlertParams) SetBudgetAlertToken(budgetAlertToken string)

SetBudgetAlertToken adds the budgetAlertToken to the get budget alert params

func (*GetBudgetAlertParams) SetContext

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

SetContext adds the context to the get budget alert params

func (*GetBudgetAlertParams) SetDefaults

func (o *GetBudgetAlertParams) SetDefaults()

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

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

func (*GetBudgetAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get budget alert params

func (*GetBudgetAlertParams) SetTimeout

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

SetTimeout adds the timeout to the get budget alert params

func (*GetBudgetAlertParams) WithBudgetAlertToken

func (o *GetBudgetAlertParams) WithBudgetAlertToken(budgetAlertToken string) *GetBudgetAlertParams

WithBudgetAlertToken adds the budgetAlertToken to the get budget alert params

func (*GetBudgetAlertParams) WithContext

WithContext adds the context to the get budget alert params

func (*GetBudgetAlertParams) WithDefaults

func (o *GetBudgetAlertParams) WithDefaults() *GetBudgetAlertParams

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

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

func (*GetBudgetAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get budget alert params

func (*GetBudgetAlertParams) WithTimeout

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

WithTimeout adds the timeout to the get budget alert params

func (*GetBudgetAlertParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBudgetAlertReader

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

GetBudgetAlertReader is a Reader for the GetBudgetAlert structure.

func (*GetBudgetAlertReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBudgetAlertsOK

type GetBudgetAlertsOK struct {
	Payload *models.BudgetAlerts
}

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

GetBudgetAlertsOK get budget alerts o k

func NewGetBudgetAlertsOK

func NewGetBudgetAlertsOK() *GetBudgetAlertsOK

NewGetBudgetAlertsOK creates a GetBudgetAlertsOK with default headers values

func (*GetBudgetAlertsOK) Code

func (o *GetBudgetAlertsOK) Code() int

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

func (*GetBudgetAlertsOK) Error

func (o *GetBudgetAlertsOK) Error() string

func (*GetBudgetAlertsOK) GetPayload

func (o *GetBudgetAlertsOK) GetPayload() *models.BudgetAlerts

func (*GetBudgetAlertsOK) IsClientError

func (o *GetBudgetAlertsOK) IsClientError() bool

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

func (*GetBudgetAlertsOK) IsCode

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

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

func (*GetBudgetAlertsOK) IsRedirect

func (o *GetBudgetAlertsOK) IsRedirect() bool

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

func (*GetBudgetAlertsOK) IsServerError

func (o *GetBudgetAlertsOK) IsServerError() bool

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

func (*GetBudgetAlertsOK) IsSuccess

func (o *GetBudgetAlertsOK) IsSuccess() bool

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

func (*GetBudgetAlertsOK) String

func (o *GetBudgetAlertsOK) String() string

type GetBudgetAlertsParams

type GetBudgetAlertsParams 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
}

GetBudgetAlertsParams contains all the parameters to send to the API endpoint

for the get budget alerts operation.

Typically these are written to a http.Request.

func NewGetBudgetAlertsParams

func NewGetBudgetAlertsParams() *GetBudgetAlertsParams

NewGetBudgetAlertsParams creates a new GetBudgetAlertsParams 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 NewGetBudgetAlertsParamsWithContext

func NewGetBudgetAlertsParamsWithContext(ctx context.Context) *GetBudgetAlertsParams

NewGetBudgetAlertsParamsWithContext creates a new GetBudgetAlertsParams object with the ability to set a context for a request.

func NewGetBudgetAlertsParamsWithHTTPClient

func NewGetBudgetAlertsParamsWithHTTPClient(client *http.Client) *GetBudgetAlertsParams

NewGetBudgetAlertsParamsWithHTTPClient creates a new GetBudgetAlertsParams object with the ability to set a custom HTTPClient for a request.

func NewGetBudgetAlertsParamsWithTimeout

func NewGetBudgetAlertsParamsWithTimeout(timeout time.Duration) *GetBudgetAlertsParams

NewGetBudgetAlertsParamsWithTimeout creates a new GetBudgetAlertsParams object with the ability to set a timeout on a request.

func (*GetBudgetAlertsParams) SetContext

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

SetContext adds the context to the get budget alerts params

func (*GetBudgetAlertsParams) SetDefaults

func (o *GetBudgetAlertsParams) SetDefaults()

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

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

func (*GetBudgetAlertsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get budget alerts params

func (*GetBudgetAlertsParams) SetLimit

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

SetLimit adds the limit to the get budget alerts params

func (*GetBudgetAlertsParams) SetPage

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

SetPage adds the page to the get budget alerts params

func (*GetBudgetAlertsParams) SetTimeout

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

SetTimeout adds the timeout to the get budget alerts params

func (*GetBudgetAlertsParams) WithContext

WithContext adds the context to the get budget alerts params

func (*GetBudgetAlertsParams) WithDefaults

func (o *GetBudgetAlertsParams) WithDefaults() *GetBudgetAlertsParams

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

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

func (*GetBudgetAlertsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get budget alerts params

func (*GetBudgetAlertsParams) WithLimit

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

WithLimit adds the limit to the get budget alerts params

func (*GetBudgetAlertsParams) WithPage

WithPage adds the page to the get budget alerts params

func (*GetBudgetAlertsParams) WithTimeout

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

WithTimeout adds the timeout to the get budget alerts params

func (*GetBudgetAlertsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBudgetAlertsReader

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

GetBudgetAlertsReader is a Reader for the GetBudgetAlerts structure.

func (*GetBudgetAlertsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateBudgetAlertCreated

type UpdateBudgetAlertCreated struct {
	Payload *models.BudgetAlert
}

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

UpdateBudgetAlertCreated update budget alert created

func NewUpdateBudgetAlertCreated

func NewUpdateBudgetAlertCreated() *UpdateBudgetAlertCreated

NewUpdateBudgetAlertCreated creates a UpdateBudgetAlertCreated with default headers values

func (*UpdateBudgetAlertCreated) Code

func (o *UpdateBudgetAlertCreated) Code() int

Code gets the status code for the update budget alert created response

func (*UpdateBudgetAlertCreated) Error

func (o *UpdateBudgetAlertCreated) Error() string

func (*UpdateBudgetAlertCreated) GetPayload

func (o *UpdateBudgetAlertCreated) GetPayload() *models.BudgetAlert

func (*UpdateBudgetAlertCreated) IsClientError

func (o *UpdateBudgetAlertCreated) IsClientError() bool

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

func (*UpdateBudgetAlertCreated) IsCode

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

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

func (*UpdateBudgetAlertCreated) IsRedirect

func (o *UpdateBudgetAlertCreated) IsRedirect() bool

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

func (*UpdateBudgetAlertCreated) IsServerError

func (o *UpdateBudgetAlertCreated) IsServerError() bool

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

func (*UpdateBudgetAlertCreated) IsSuccess

func (o *UpdateBudgetAlertCreated) IsSuccess() bool

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

func (*UpdateBudgetAlertCreated) String

func (o *UpdateBudgetAlertCreated) String() string

type UpdateBudgetAlertNotFound

type UpdateBudgetAlertNotFound struct {
	Payload *models.Errors
}

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

NotFound

func NewUpdateBudgetAlertNotFound

func NewUpdateBudgetAlertNotFound() *UpdateBudgetAlertNotFound

NewUpdateBudgetAlertNotFound creates a UpdateBudgetAlertNotFound with default headers values

func (*UpdateBudgetAlertNotFound) Code

func (o *UpdateBudgetAlertNotFound) Code() int

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

func (*UpdateBudgetAlertNotFound) Error

func (o *UpdateBudgetAlertNotFound) Error() string

func (*UpdateBudgetAlertNotFound) GetPayload

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

func (*UpdateBudgetAlertNotFound) IsClientError

func (o *UpdateBudgetAlertNotFound) IsClientError() bool

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

func (*UpdateBudgetAlertNotFound) IsCode

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

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

func (*UpdateBudgetAlertNotFound) IsRedirect

func (o *UpdateBudgetAlertNotFound) IsRedirect() bool

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

func (*UpdateBudgetAlertNotFound) IsServerError

func (o *UpdateBudgetAlertNotFound) IsServerError() bool

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

func (*UpdateBudgetAlertNotFound) IsSuccess

func (o *UpdateBudgetAlertNotFound) IsSuccess() bool

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

func (*UpdateBudgetAlertNotFound) String

func (o *UpdateBudgetAlertNotFound) String() string

type UpdateBudgetAlertParams

type UpdateBudgetAlertParams struct {

	// BudgetAlertToken.
	BudgetAlertToken string

	/* BudgetTokens.

	   The tokens of the Budget that has the alert.
	*/
	BudgetTokens []string

	/* DurationInDays.

	   The number of days from the start or end of the month to trigger the alert if the threshold is reached. For the full month, pass an empty value.

	   Format: int32
	*/
	DurationInDays *int32

	/* PeriodToTrack.

	   The period tracked on the alert. Used with duration_in_days to determine the time window of the alert. Defaults to start_of_the_month if not passed. Possible values: start_of_the_month, end_of_the_month.
	*/
	PeriodToTrack *string

	/* RecipientChannels.

	   The channels receiving the alerts. Requires an integration provider to be connected.
	*/
	RecipientChannels []string

	/* Threshold.

	   The threshold amount that must be met for the alert to fire.

	   Format: int32
	*/
	Threshold *int32

	/* UserTokens.

	   The tokens of the users that receive the alert.
	*/
	UserTokens []string

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

UpdateBudgetAlertParams contains all the parameters to send to the API endpoint

for the update budget alert operation.

Typically these are written to a http.Request.

func NewUpdateBudgetAlertParams

func NewUpdateBudgetAlertParams() *UpdateBudgetAlertParams

NewUpdateBudgetAlertParams creates a new UpdateBudgetAlertParams 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 NewUpdateBudgetAlertParamsWithContext

func NewUpdateBudgetAlertParamsWithContext(ctx context.Context) *UpdateBudgetAlertParams

NewUpdateBudgetAlertParamsWithContext creates a new UpdateBudgetAlertParams object with the ability to set a context for a request.

func NewUpdateBudgetAlertParamsWithHTTPClient

func NewUpdateBudgetAlertParamsWithHTTPClient(client *http.Client) *UpdateBudgetAlertParams

NewUpdateBudgetAlertParamsWithHTTPClient creates a new UpdateBudgetAlertParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBudgetAlertParamsWithTimeout

func NewUpdateBudgetAlertParamsWithTimeout(timeout time.Duration) *UpdateBudgetAlertParams

NewUpdateBudgetAlertParamsWithTimeout creates a new UpdateBudgetAlertParams object with the ability to set a timeout on a request.

func (*UpdateBudgetAlertParams) SetBudgetAlertToken

func (o *UpdateBudgetAlertParams) SetBudgetAlertToken(budgetAlertToken string)

SetBudgetAlertToken adds the budgetAlertToken to the update budget alert params

func (*UpdateBudgetAlertParams) SetBudgetTokens

func (o *UpdateBudgetAlertParams) SetBudgetTokens(budgetTokens []string)

SetBudgetTokens adds the budgetTokens to the update budget alert params

func (*UpdateBudgetAlertParams) SetContext

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

SetContext adds the context to the update budget alert params

func (*UpdateBudgetAlertParams) SetDefaults

func (o *UpdateBudgetAlertParams) SetDefaults()

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

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

func (*UpdateBudgetAlertParams) SetDurationInDays

func (o *UpdateBudgetAlertParams) SetDurationInDays(durationInDays *int32)

SetDurationInDays adds the durationInDays to the update budget alert params

func (*UpdateBudgetAlertParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update budget alert params

func (*UpdateBudgetAlertParams) SetPeriodToTrack

func (o *UpdateBudgetAlertParams) SetPeriodToTrack(periodToTrack *string)

SetPeriodToTrack adds the periodToTrack to the update budget alert params

func (*UpdateBudgetAlertParams) SetRecipientChannels

func (o *UpdateBudgetAlertParams) SetRecipientChannels(recipientChannels []string)

SetRecipientChannels adds the recipientChannels to the update budget alert params

func (*UpdateBudgetAlertParams) SetThreshold

func (o *UpdateBudgetAlertParams) SetThreshold(threshold *int32)

SetThreshold adds the threshold to the update budget alert params

func (*UpdateBudgetAlertParams) SetTimeout

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

SetTimeout adds the timeout to the update budget alert params

func (*UpdateBudgetAlertParams) SetUserTokens

func (o *UpdateBudgetAlertParams) SetUserTokens(userTokens []string)

SetUserTokens adds the userTokens to the update budget alert params

func (*UpdateBudgetAlertParams) WithBudgetAlertToken

func (o *UpdateBudgetAlertParams) WithBudgetAlertToken(budgetAlertToken string) *UpdateBudgetAlertParams

WithBudgetAlertToken adds the budgetAlertToken to the update budget alert params

func (*UpdateBudgetAlertParams) WithBudgetTokens

func (o *UpdateBudgetAlertParams) WithBudgetTokens(budgetTokens []string) *UpdateBudgetAlertParams

WithBudgetTokens adds the budgetTokens to the update budget alert params

func (*UpdateBudgetAlertParams) WithContext

WithContext adds the context to the update budget alert params

func (*UpdateBudgetAlertParams) WithDefaults

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

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

func (*UpdateBudgetAlertParams) WithDurationInDays

func (o *UpdateBudgetAlertParams) WithDurationInDays(durationInDays *int32) *UpdateBudgetAlertParams

WithDurationInDays adds the durationInDays to the update budget alert params

func (*UpdateBudgetAlertParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update budget alert params

func (*UpdateBudgetAlertParams) WithPeriodToTrack

func (o *UpdateBudgetAlertParams) WithPeriodToTrack(periodToTrack *string) *UpdateBudgetAlertParams

WithPeriodToTrack adds the periodToTrack to the update budget alert params

func (*UpdateBudgetAlertParams) WithRecipientChannels

func (o *UpdateBudgetAlertParams) WithRecipientChannels(recipientChannels []string) *UpdateBudgetAlertParams

WithRecipientChannels adds the recipientChannels to the update budget alert params

func (*UpdateBudgetAlertParams) WithThreshold

func (o *UpdateBudgetAlertParams) WithThreshold(threshold *int32) *UpdateBudgetAlertParams

WithThreshold adds the threshold to the update budget alert params

func (*UpdateBudgetAlertParams) WithTimeout

WithTimeout adds the timeout to the update budget alert params

func (*UpdateBudgetAlertParams) WithUserTokens

func (o *UpdateBudgetAlertParams) WithUserTokens(userTokens []string) *UpdateBudgetAlertParams

WithUserTokens adds the userTokens to the update budget alert params

func (*UpdateBudgetAlertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateBudgetAlertReader

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

UpdateBudgetAlertReader is a Reader for the UpdateBudgetAlert structure.

func (*UpdateBudgetAlertReader) ReadResponse

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