Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateBudgetAlert(params *CreateBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateBudgetAlertCreated, error)
- func (a *Client) DeleteBudgetAlert(params *DeleteBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteBudgetAlertNoContent, error)
- func (a *Client) GetBudgetAlert(params *GetBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetBudgetAlertOK, error)
- func (a *Client) GetBudgetAlerts(params *GetBudgetAlertsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetBudgetAlertsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateBudgetAlert(params *UpdateBudgetAlertParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateBudgetAlertCreated, error)
- type ClientOption
- type ClientService
- type CreateBudgetAlertBadRequest
- func (o *CreateBudgetAlertBadRequest) Code() int
- func (o *CreateBudgetAlertBadRequest) Error() string
- func (o *CreateBudgetAlertBadRequest) GetPayload() *models.Errors
- func (o *CreateBudgetAlertBadRequest) IsClientError() bool
- func (o *CreateBudgetAlertBadRequest) IsCode(code int) bool
- func (o *CreateBudgetAlertBadRequest) IsRedirect() bool
- func (o *CreateBudgetAlertBadRequest) IsServerError() bool
- func (o *CreateBudgetAlertBadRequest) IsSuccess() bool
- func (o *CreateBudgetAlertBadRequest) String() string
- type CreateBudgetAlertCreated
- func (o *CreateBudgetAlertCreated) Code() int
- func (o *CreateBudgetAlertCreated) Error() string
- func (o *CreateBudgetAlertCreated) GetPayload() *models.BudgetAlert
- func (o *CreateBudgetAlertCreated) IsClientError() bool
- func (o *CreateBudgetAlertCreated) IsCode(code int) bool
- func (o *CreateBudgetAlertCreated) IsRedirect() bool
- func (o *CreateBudgetAlertCreated) IsServerError() bool
- func (o *CreateBudgetAlertCreated) IsSuccess() bool
- func (o *CreateBudgetAlertCreated) String() string
- type CreateBudgetAlertParams
- func NewCreateBudgetAlertParams() *CreateBudgetAlertParams
- func NewCreateBudgetAlertParamsWithContext(ctx context.Context) *CreateBudgetAlertParams
- func NewCreateBudgetAlertParamsWithHTTPClient(client *http.Client) *CreateBudgetAlertParams
- func NewCreateBudgetAlertParamsWithTimeout(timeout time.Duration) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) SetBudgetTokens(budgetTokens []string)
- func (o *CreateBudgetAlertParams) SetContext(ctx context.Context)
- func (o *CreateBudgetAlertParams) SetDefaults()
- func (o *CreateBudgetAlertParams) SetDurationInDays(durationInDays int32)
- func (o *CreateBudgetAlertParams) SetHTTPClient(client *http.Client)
- func (o *CreateBudgetAlertParams) SetPeriodToTrack(periodToTrack *string)
- func (o *CreateBudgetAlertParams) SetRecipientChannels(recipientChannels []string)
- func (o *CreateBudgetAlertParams) SetThreshold(threshold int32)
- func (o *CreateBudgetAlertParams) SetTimeout(timeout time.Duration)
- func (o *CreateBudgetAlertParams) SetUserTokens(userTokens []string)
- func (o *CreateBudgetAlertParams) WithBudgetTokens(budgetTokens []string) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithContext(ctx context.Context) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithDefaults() *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithDurationInDays(durationInDays int32) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithHTTPClient(client *http.Client) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithPeriodToTrack(periodToTrack *string) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithRecipientChannels(recipientChannels []string) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithThreshold(threshold int32) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithTimeout(timeout time.Duration) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WithUserTokens(userTokens []string) *CreateBudgetAlertParams
- func (o *CreateBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateBudgetAlertReader
- type DeleteBudgetAlertNoContent
- func (o *DeleteBudgetAlertNoContent) Code() int
- func (o *DeleteBudgetAlertNoContent) Error() string
- func (o *DeleteBudgetAlertNoContent) GetPayload() *models.BudgetAlert
- func (o *DeleteBudgetAlertNoContent) IsClientError() bool
- func (o *DeleteBudgetAlertNoContent) IsCode(code int) bool
- func (o *DeleteBudgetAlertNoContent) IsRedirect() bool
- func (o *DeleteBudgetAlertNoContent) IsServerError() bool
- func (o *DeleteBudgetAlertNoContent) IsSuccess() bool
- func (o *DeleteBudgetAlertNoContent) String() string
- type DeleteBudgetAlertNotFound
- func (o *DeleteBudgetAlertNotFound) Code() int
- func (o *DeleteBudgetAlertNotFound) Error() string
- func (o *DeleteBudgetAlertNotFound) GetPayload() *models.Errors
- func (o *DeleteBudgetAlertNotFound) IsClientError() bool
- func (o *DeleteBudgetAlertNotFound) IsCode(code int) bool
- func (o *DeleteBudgetAlertNotFound) IsRedirect() bool
- func (o *DeleteBudgetAlertNotFound) IsServerError() bool
- func (o *DeleteBudgetAlertNotFound) IsSuccess() bool
- func (o *DeleteBudgetAlertNotFound) String() string
- type DeleteBudgetAlertParams
- func NewDeleteBudgetAlertParams() *DeleteBudgetAlertParams
- func NewDeleteBudgetAlertParamsWithContext(ctx context.Context) *DeleteBudgetAlertParams
- func NewDeleteBudgetAlertParamsWithHTTPClient(client *http.Client) *DeleteBudgetAlertParams
- func NewDeleteBudgetAlertParamsWithTimeout(timeout time.Duration) *DeleteBudgetAlertParams
- func (o *DeleteBudgetAlertParams) SetBudgetAlertToken(budgetAlertToken string)
- func (o *DeleteBudgetAlertParams) SetContext(ctx context.Context)
- func (o *DeleteBudgetAlertParams) SetDefaults()
- func (o *DeleteBudgetAlertParams) SetHTTPClient(client *http.Client)
- func (o *DeleteBudgetAlertParams) SetTimeout(timeout time.Duration)
- func (o *DeleteBudgetAlertParams) WithBudgetAlertToken(budgetAlertToken string) *DeleteBudgetAlertParams
- func (o *DeleteBudgetAlertParams) WithContext(ctx context.Context) *DeleteBudgetAlertParams
- func (o *DeleteBudgetAlertParams) WithDefaults() *DeleteBudgetAlertParams
- func (o *DeleteBudgetAlertParams) WithHTTPClient(client *http.Client) *DeleteBudgetAlertParams
- func (o *DeleteBudgetAlertParams) WithTimeout(timeout time.Duration) *DeleteBudgetAlertParams
- func (o *DeleteBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteBudgetAlertReader
- type GetBudgetAlertNotFound
- func (o *GetBudgetAlertNotFound) Code() int
- func (o *GetBudgetAlertNotFound) Error() string
- func (o *GetBudgetAlertNotFound) GetPayload() *models.Errors
- func (o *GetBudgetAlertNotFound) IsClientError() bool
- func (o *GetBudgetAlertNotFound) IsCode(code int) bool
- func (o *GetBudgetAlertNotFound) IsRedirect() bool
- func (o *GetBudgetAlertNotFound) IsServerError() bool
- func (o *GetBudgetAlertNotFound) IsSuccess() bool
- func (o *GetBudgetAlertNotFound) String() string
- type GetBudgetAlertOK
- func (o *GetBudgetAlertOK) Code() int
- func (o *GetBudgetAlertOK) Error() string
- func (o *GetBudgetAlertOK) GetPayload() *models.BudgetAlert
- func (o *GetBudgetAlertOK) IsClientError() bool
- func (o *GetBudgetAlertOK) IsCode(code int) bool
- func (o *GetBudgetAlertOK) IsRedirect() bool
- func (o *GetBudgetAlertOK) IsServerError() bool
- func (o *GetBudgetAlertOK) IsSuccess() bool
- func (o *GetBudgetAlertOK) String() string
- type GetBudgetAlertParams
- func NewGetBudgetAlertParams() *GetBudgetAlertParams
- func NewGetBudgetAlertParamsWithContext(ctx context.Context) *GetBudgetAlertParams
- func NewGetBudgetAlertParamsWithHTTPClient(client *http.Client) *GetBudgetAlertParams
- func NewGetBudgetAlertParamsWithTimeout(timeout time.Duration) *GetBudgetAlertParams
- func (o *GetBudgetAlertParams) SetBudgetAlertToken(budgetAlertToken string)
- func (o *GetBudgetAlertParams) SetContext(ctx context.Context)
- func (o *GetBudgetAlertParams) SetDefaults()
- func (o *GetBudgetAlertParams) SetHTTPClient(client *http.Client)
- func (o *GetBudgetAlertParams) SetTimeout(timeout time.Duration)
- func (o *GetBudgetAlertParams) WithBudgetAlertToken(budgetAlertToken string) *GetBudgetAlertParams
- func (o *GetBudgetAlertParams) WithContext(ctx context.Context) *GetBudgetAlertParams
- func (o *GetBudgetAlertParams) WithDefaults() *GetBudgetAlertParams
- func (o *GetBudgetAlertParams) WithHTTPClient(client *http.Client) *GetBudgetAlertParams
- func (o *GetBudgetAlertParams) WithTimeout(timeout time.Duration) *GetBudgetAlertParams
- func (o *GetBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBudgetAlertReader
- type GetBudgetAlertsOK
- func (o *GetBudgetAlertsOK) Code() int
- func (o *GetBudgetAlertsOK) Error() string
- func (o *GetBudgetAlertsOK) GetPayload() *models.BudgetAlerts
- func (o *GetBudgetAlertsOK) IsClientError() bool
- func (o *GetBudgetAlertsOK) IsCode(code int) bool
- func (o *GetBudgetAlertsOK) IsRedirect() bool
- func (o *GetBudgetAlertsOK) IsServerError() bool
- func (o *GetBudgetAlertsOK) IsSuccess() bool
- func (o *GetBudgetAlertsOK) String() string
- type GetBudgetAlertsParams
- func NewGetBudgetAlertsParams() *GetBudgetAlertsParams
- func NewGetBudgetAlertsParamsWithContext(ctx context.Context) *GetBudgetAlertsParams
- func NewGetBudgetAlertsParamsWithHTTPClient(client *http.Client) *GetBudgetAlertsParams
- func NewGetBudgetAlertsParamsWithTimeout(timeout time.Duration) *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) SetContext(ctx context.Context)
- func (o *GetBudgetAlertsParams) SetDefaults()
- func (o *GetBudgetAlertsParams) SetHTTPClient(client *http.Client)
- func (o *GetBudgetAlertsParams) SetLimit(limit *int32)
- func (o *GetBudgetAlertsParams) SetPage(page *int32)
- func (o *GetBudgetAlertsParams) SetTimeout(timeout time.Duration)
- func (o *GetBudgetAlertsParams) WithContext(ctx context.Context) *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) WithDefaults() *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) WithHTTPClient(client *http.Client) *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) WithLimit(limit *int32) *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) WithPage(page *int32) *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) WithTimeout(timeout time.Duration) *GetBudgetAlertsParams
- func (o *GetBudgetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBudgetAlertsReader
- type UpdateBudgetAlertCreated
- func (o *UpdateBudgetAlertCreated) Code() int
- func (o *UpdateBudgetAlertCreated) Error() string
- func (o *UpdateBudgetAlertCreated) GetPayload() *models.BudgetAlert
- func (o *UpdateBudgetAlertCreated) IsClientError() bool
- func (o *UpdateBudgetAlertCreated) IsCode(code int) bool
- func (o *UpdateBudgetAlertCreated) IsRedirect() bool
- func (o *UpdateBudgetAlertCreated) IsServerError() bool
- func (o *UpdateBudgetAlertCreated) IsSuccess() bool
- func (o *UpdateBudgetAlertCreated) String() string
- type UpdateBudgetAlertNotFound
- func (o *UpdateBudgetAlertNotFound) Code() int
- func (o *UpdateBudgetAlertNotFound) Error() string
- func (o *UpdateBudgetAlertNotFound) GetPayload() *models.Errors
- func (o *UpdateBudgetAlertNotFound) IsClientError() bool
- func (o *UpdateBudgetAlertNotFound) IsCode(code int) bool
- func (o *UpdateBudgetAlertNotFound) IsRedirect() bool
- func (o *UpdateBudgetAlertNotFound) IsServerError() bool
- func (o *UpdateBudgetAlertNotFound) IsSuccess() bool
- func (o *UpdateBudgetAlertNotFound) String() string
- type UpdateBudgetAlertParams
- func NewUpdateBudgetAlertParams() *UpdateBudgetAlertParams
- func NewUpdateBudgetAlertParamsWithContext(ctx context.Context) *UpdateBudgetAlertParams
- func NewUpdateBudgetAlertParamsWithHTTPClient(client *http.Client) *UpdateBudgetAlertParams
- func NewUpdateBudgetAlertParamsWithTimeout(timeout time.Duration) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) SetBudgetAlertToken(budgetAlertToken string)
- func (o *UpdateBudgetAlertParams) SetBudgetTokens(budgetTokens []string)
- func (o *UpdateBudgetAlertParams) SetContext(ctx context.Context)
- func (o *UpdateBudgetAlertParams) SetDefaults()
- func (o *UpdateBudgetAlertParams) SetDurationInDays(durationInDays *int32)
- func (o *UpdateBudgetAlertParams) SetHTTPClient(client *http.Client)
- func (o *UpdateBudgetAlertParams) SetPeriodToTrack(periodToTrack *string)
- func (o *UpdateBudgetAlertParams) SetRecipientChannels(recipientChannels []string)
- func (o *UpdateBudgetAlertParams) SetThreshold(threshold *int32)
- func (o *UpdateBudgetAlertParams) SetTimeout(timeout time.Duration)
- func (o *UpdateBudgetAlertParams) SetUserTokens(userTokens []string)
- func (o *UpdateBudgetAlertParams) WithBudgetAlertToken(budgetAlertToken string) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithBudgetTokens(budgetTokens []string) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithContext(ctx context.Context) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithDefaults() *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithDurationInDays(durationInDays *int32) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithHTTPClient(client *http.Client) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithPeriodToTrack(periodToTrack *string) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithRecipientChannels(recipientChannels []string) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithThreshold(threshold *int32) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithTimeout(timeout time.Duration) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WithUserTokens(userTokens []string) *UpdateBudgetAlertParams
- func (o *UpdateBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateBudgetAlertReader
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 ¶
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 (o *CreateBudgetAlertBadRequest) Error() string
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 ¶
func (o *CreateBudgetAlertParams) WithContext(ctx context.Context) *CreateBudgetAlertParams
WithContext adds the context to the create budget alert params
func (*CreateBudgetAlertParams) WithDefaults ¶
func (o *CreateBudgetAlertParams) WithDefaults() *CreateBudgetAlertParams
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 ¶
func (o *CreateBudgetAlertParams) WithTimeout(timeout time.Duration) *CreateBudgetAlertParams
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 ¶
func (o *CreateBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DeleteBudgetAlertNoContent) Error() string
func (*DeleteBudgetAlertNoContent) GetPayload ¶
func (o *DeleteBudgetAlertNoContent) GetPayload() *models.BudgetAlert
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 ¶
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 ¶
func (o *DeleteBudgetAlertParams) WithContext(ctx context.Context) *DeleteBudgetAlertParams
WithContext adds the context to the delete budget alert params
func (*DeleteBudgetAlertParams) WithDefaults ¶
func (o *DeleteBudgetAlertParams) WithDefaults() *DeleteBudgetAlertParams
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 ¶
func (o *DeleteBudgetAlertParams) WithTimeout(timeout time.Duration) *DeleteBudgetAlertParams
WithTimeout adds the timeout to the delete budget alert params
func (*DeleteBudgetAlertParams) WriteToRequest ¶
func (o *DeleteBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *GetBudgetAlertParams) WithContext(ctx context.Context) *GetBudgetAlertParams
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 ¶
func (o *GetBudgetAlertsParams) WithContext(ctx context.Context) *GetBudgetAlertsParams
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 ¶
func (o *GetBudgetAlertsParams) WithPage(page *int32) *GetBudgetAlertsParams
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 ¶
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 ¶
func (o *UpdateBudgetAlertParams) WithContext(ctx context.Context) *UpdateBudgetAlertParams
WithContext adds the context to the update budget alert params
func (*UpdateBudgetAlertParams) WithDefaults ¶
func (o *UpdateBudgetAlertParams) WithDefaults() *UpdateBudgetAlertParams
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 ¶
func (o *UpdateBudgetAlertParams) WithTimeout(timeout time.Duration) *UpdateBudgetAlertParams
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 ¶
func (o *UpdateBudgetAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- budget_alerts_client.go
- create_budget_alert_parameters.go
- create_budget_alert_responses.go
- delete_budget_alert_parameters.go
- delete_budget_alert_responses.go
- get_budget_alert_parameters.go
- get_budget_alert_responses.go
- get_budget_alerts_parameters.go
- get_budget_alerts_responses.go
- update_budget_alert_parameters.go
- update_budget_alert_responses.go