Documentation ¶
Index ¶
- type Client
- func (a *Client) GetGlobalAlertRules(params *GetGlobalAlertRulesParams, opts ...ClientOption) (*GetGlobalAlertRulesOK, error)
- func (a *Client) GetGlobalAlertRulesConnection(params *GetGlobalAlertRulesConnectionParams, opts ...ClientOption) (*GetGlobalAlertRulesConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCustomizeAlertRule(params *UpdateCustomizeAlertRuleParams, opts ...ClientOption) (*UpdateCustomizeAlertRuleOK, error)
- func (a *Client) UpdateGlobalAlertRule(params *UpdateGlobalAlertRuleParams, opts ...ClientOption) (*UpdateGlobalAlertRuleOK, error)
- type ClientOption
- type ClientService
- type GetGlobalAlertRulesBadRequest
- type GetGlobalAlertRulesConnectionBadRequest
- type GetGlobalAlertRulesConnectionOK
- type GetGlobalAlertRulesConnectionParams
- func NewGetGlobalAlertRulesConnectionParams() *GetGlobalAlertRulesConnectionParams
- func NewGetGlobalAlertRulesConnectionParamsWithContext(ctx context.Context) *GetGlobalAlertRulesConnectionParams
- func NewGetGlobalAlertRulesConnectionParamsWithHTTPClient(client *http.Client) *GetGlobalAlertRulesConnectionParams
- func NewGetGlobalAlertRulesConnectionParamsWithTimeout(timeout time.Duration) *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetGlobalAlertRulesConnectionParams) SetContext(ctx context.Context)
- func (o *GetGlobalAlertRulesConnectionParams) SetDefaults()
- func (o *GetGlobalAlertRulesConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetGlobalAlertRulesConnectionParams) SetRequestBody(requestBody *models.GetGlobalAlertRulesConnectionRequestBody)
- func (o *GetGlobalAlertRulesConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetGlobalAlertRulesConnectionParams) WithContentLanguage(contentLanguage *string) *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) WithContext(ctx context.Context) *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) WithDefaults() *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) WithHTTPClient(client *http.Client) *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) WithRequestBody(requestBody *models.GetGlobalAlertRulesConnectionRequestBody) *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) WithTimeout(timeout time.Duration) *GetGlobalAlertRulesConnectionParams
- func (o *GetGlobalAlertRulesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGlobalAlertRulesConnectionReader
- type GetGlobalAlertRulesOK
- type GetGlobalAlertRulesParams
- func NewGetGlobalAlertRulesParams() *GetGlobalAlertRulesParams
- func NewGetGlobalAlertRulesParamsWithContext(ctx context.Context) *GetGlobalAlertRulesParams
- func NewGetGlobalAlertRulesParamsWithHTTPClient(client *http.Client) *GetGlobalAlertRulesParams
- func NewGetGlobalAlertRulesParamsWithTimeout(timeout time.Duration) *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) SetContentLanguage(contentLanguage *string)
- func (o *GetGlobalAlertRulesParams) SetContext(ctx context.Context)
- func (o *GetGlobalAlertRulesParams) SetDefaults()
- func (o *GetGlobalAlertRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetGlobalAlertRulesParams) SetRequestBody(requestBody *models.GetGlobalAlertRulesRequestBody)
- func (o *GetGlobalAlertRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetGlobalAlertRulesParams) WithContentLanguage(contentLanguage *string) *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) WithContext(ctx context.Context) *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) WithDefaults() *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) WithHTTPClient(client *http.Client) *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) WithRequestBody(requestBody *models.GetGlobalAlertRulesRequestBody) *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) WithTimeout(timeout time.Duration) *GetGlobalAlertRulesParams
- func (o *GetGlobalAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGlobalAlertRulesReader
- type UpdateCustomizeAlertRuleBadRequest
- type UpdateCustomizeAlertRuleOK
- type UpdateCustomizeAlertRuleParams
- func NewUpdateCustomizeAlertRuleParams() *UpdateCustomizeAlertRuleParams
- func NewUpdateCustomizeAlertRuleParamsWithContext(ctx context.Context) *UpdateCustomizeAlertRuleParams
- func NewUpdateCustomizeAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateCustomizeAlertRuleParams
- func NewUpdateCustomizeAlertRuleParamsWithTimeout(timeout time.Duration) *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) SetContentLanguage(contentLanguage *string)
- func (o *UpdateCustomizeAlertRuleParams) SetContext(ctx context.Context)
- func (o *UpdateCustomizeAlertRuleParams) SetDefaults()
- func (o *UpdateCustomizeAlertRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCustomizeAlertRuleParams) SetRequestBody(requestBody *models.CustomizeAlertRuleUpdationParams)
- func (o *UpdateCustomizeAlertRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCustomizeAlertRuleParams) WithContentLanguage(contentLanguage *string) *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) WithContext(ctx context.Context) *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) WithDefaults() *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) WithHTTPClient(client *http.Client) *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) WithRequestBody(requestBody *models.CustomizeAlertRuleUpdationParams) *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) WithTimeout(timeout time.Duration) *UpdateCustomizeAlertRuleParams
- func (o *UpdateCustomizeAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCustomizeAlertRuleReader
- type UpdateGlobalAlertRuleBadRequest
- type UpdateGlobalAlertRuleOK
- type UpdateGlobalAlertRuleParams
- func NewUpdateGlobalAlertRuleParams() *UpdateGlobalAlertRuleParams
- func NewUpdateGlobalAlertRuleParamsWithContext(ctx context.Context) *UpdateGlobalAlertRuleParams
- func NewUpdateGlobalAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateGlobalAlertRuleParams
- func NewUpdateGlobalAlertRuleParamsWithTimeout(timeout time.Duration) *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) SetContentLanguage(contentLanguage *string)
- func (o *UpdateGlobalAlertRuleParams) SetContext(ctx context.Context)
- func (o *UpdateGlobalAlertRuleParams) SetDefaults()
- func (o *UpdateGlobalAlertRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateGlobalAlertRuleParams) SetRequestBody(requestBody *models.GlobalAlertRuleUpdationParams)
- func (o *UpdateGlobalAlertRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateGlobalAlertRuleParams) WithContentLanguage(contentLanguage *string) *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) WithContext(ctx context.Context) *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) WithDefaults() *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) WithHTTPClient(client *http.Client) *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) WithRequestBody(requestBody *models.GlobalAlertRuleUpdationParams) *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) WithTimeout(timeout time.Duration) *UpdateGlobalAlertRuleParams
- func (o *UpdateGlobalAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateGlobalAlertRuleReader
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 global alert rule API
func (*Client) GetGlobalAlertRules ¶
func (a *Client) GetGlobalAlertRules(params *GetGlobalAlertRulesParams, opts ...ClientOption) (*GetGlobalAlertRulesOK, error)
GetGlobalAlertRules get global alert rules API
func (*Client) GetGlobalAlertRulesConnection ¶
func (a *Client) GetGlobalAlertRulesConnection(params *GetGlobalAlertRulesConnectionParams, opts ...ClientOption) (*GetGlobalAlertRulesConnectionOK, error)
GetGlobalAlertRulesConnection get global alert rules connection API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCustomizeAlertRule ¶
func (a *Client) UpdateCustomizeAlertRule(params *UpdateCustomizeAlertRuleParams, opts ...ClientOption) (*UpdateCustomizeAlertRuleOK, error)
UpdateCustomizeAlertRule update customize alert rule API
func (*Client) UpdateGlobalAlertRule ¶
func (a *Client) UpdateGlobalAlertRule(params *UpdateGlobalAlertRuleParams, opts ...ClientOption) (*UpdateGlobalAlertRuleOK, error)
UpdateGlobalAlertRule update global alert rule API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetGlobalAlertRules(params *GetGlobalAlertRulesParams, opts ...ClientOption) (*GetGlobalAlertRulesOK, error) GetGlobalAlertRulesConnection(params *GetGlobalAlertRulesConnectionParams, opts ...ClientOption) (*GetGlobalAlertRulesConnectionOK, error) UpdateCustomizeAlertRule(params *UpdateCustomizeAlertRuleParams, opts ...ClientOption) (*UpdateCustomizeAlertRuleOK, error) UpdateGlobalAlertRule(params *UpdateGlobalAlertRuleParams, opts ...ClientOption) (*UpdateGlobalAlertRuleOK, 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 global alert rule API client.
type GetGlobalAlertRulesBadRequest ¶
type GetGlobalAlertRulesBadRequest struct {
Payload string
}
GetGlobalAlertRulesBadRequest describes a response with status code 400, with default header values.
GetGlobalAlertRulesBadRequest get global alert rules bad request
func NewGetGlobalAlertRulesBadRequest ¶
func NewGetGlobalAlertRulesBadRequest() *GetGlobalAlertRulesBadRequest
NewGetGlobalAlertRulesBadRequest creates a GetGlobalAlertRulesBadRequest with default headers values
func (*GetGlobalAlertRulesBadRequest) Error ¶
func (o *GetGlobalAlertRulesBadRequest) Error() string
func (*GetGlobalAlertRulesBadRequest) GetPayload ¶
func (o *GetGlobalAlertRulesBadRequest) GetPayload() string
type GetGlobalAlertRulesConnectionBadRequest ¶
type GetGlobalAlertRulesConnectionBadRequest struct {
Payload string
}
GetGlobalAlertRulesConnectionBadRequest describes a response with status code 400, with default header values.
GetGlobalAlertRulesConnectionBadRequest get global alert rules connection bad request
func NewGetGlobalAlertRulesConnectionBadRequest ¶
func NewGetGlobalAlertRulesConnectionBadRequest() *GetGlobalAlertRulesConnectionBadRequest
NewGetGlobalAlertRulesConnectionBadRequest creates a GetGlobalAlertRulesConnectionBadRequest with default headers values
func (*GetGlobalAlertRulesConnectionBadRequest) Error ¶
func (o *GetGlobalAlertRulesConnectionBadRequest) Error() string
func (*GetGlobalAlertRulesConnectionBadRequest) GetPayload ¶
func (o *GetGlobalAlertRulesConnectionBadRequest) GetPayload() string
type GetGlobalAlertRulesConnectionOK ¶
type GetGlobalAlertRulesConnectionOK struct {
Payload *models.GlobalAlertRuleConnection
}
GetGlobalAlertRulesConnectionOK describes a response with status code 200, with default header values.
Ok
func NewGetGlobalAlertRulesConnectionOK ¶
func NewGetGlobalAlertRulesConnectionOK() *GetGlobalAlertRulesConnectionOK
NewGetGlobalAlertRulesConnectionOK creates a GetGlobalAlertRulesConnectionOK with default headers values
func (*GetGlobalAlertRulesConnectionOK) Error ¶
func (o *GetGlobalAlertRulesConnectionOK) Error() string
func (*GetGlobalAlertRulesConnectionOK) GetPayload ¶
func (o *GetGlobalAlertRulesConnectionOK) GetPayload() *models.GlobalAlertRuleConnection
type GetGlobalAlertRulesConnectionParams ¶
type GetGlobalAlertRulesConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetGlobalAlertRulesConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGlobalAlertRulesConnectionParams contains all the parameters to send to the API endpoint
for the get global alert rules connection operation. Typically these are written to a http.Request.
func NewGetGlobalAlertRulesConnectionParams ¶
func NewGetGlobalAlertRulesConnectionParams() *GetGlobalAlertRulesConnectionParams
NewGetGlobalAlertRulesConnectionParams creates a new GetGlobalAlertRulesConnectionParams 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 NewGetGlobalAlertRulesConnectionParamsWithContext ¶
func NewGetGlobalAlertRulesConnectionParamsWithContext(ctx context.Context) *GetGlobalAlertRulesConnectionParams
NewGetGlobalAlertRulesConnectionParamsWithContext creates a new GetGlobalAlertRulesConnectionParams object with the ability to set a context for a request.
func NewGetGlobalAlertRulesConnectionParamsWithHTTPClient ¶
func NewGetGlobalAlertRulesConnectionParamsWithHTTPClient(client *http.Client) *GetGlobalAlertRulesConnectionParams
NewGetGlobalAlertRulesConnectionParamsWithHTTPClient creates a new GetGlobalAlertRulesConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetGlobalAlertRulesConnectionParamsWithTimeout ¶
func NewGetGlobalAlertRulesConnectionParamsWithTimeout(timeout time.Duration) *GetGlobalAlertRulesConnectionParams
NewGetGlobalAlertRulesConnectionParamsWithTimeout creates a new GetGlobalAlertRulesConnectionParams object with the ability to set a timeout on a request.
func (*GetGlobalAlertRulesConnectionParams) SetContentLanguage ¶
func (o *GetGlobalAlertRulesConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) SetContext ¶
func (o *GetGlobalAlertRulesConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) SetDefaults ¶
func (o *GetGlobalAlertRulesConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get global alert rules connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetGlobalAlertRulesConnectionParams) SetHTTPClient ¶
func (o *GetGlobalAlertRulesConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) SetRequestBody ¶
func (o *GetGlobalAlertRulesConnectionParams) SetRequestBody(requestBody *models.GetGlobalAlertRulesConnectionRequestBody)
SetRequestBody adds the requestBody to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) SetTimeout ¶
func (o *GetGlobalAlertRulesConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) WithContentLanguage ¶
func (o *GetGlobalAlertRulesConnectionParams) WithContentLanguage(contentLanguage *string) *GetGlobalAlertRulesConnectionParams
WithContentLanguage adds the contentLanguage to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) WithContext ¶
func (o *GetGlobalAlertRulesConnectionParams) WithContext(ctx context.Context) *GetGlobalAlertRulesConnectionParams
WithContext adds the context to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) WithDefaults ¶
func (o *GetGlobalAlertRulesConnectionParams) WithDefaults() *GetGlobalAlertRulesConnectionParams
WithDefaults hydrates default values in the get global alert rules connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetGlobalAlertRulesConnectionParams) WithHTTPClient ¶
func (o *GetGlobalAlertRulesConnectionParams) WithHTTPClient(client *http.Client) *GetGlobalAlertRulesConnectionParams
WithHTTPClient adds the HTTPClient to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) WithRequestBody ¶
func (o *GetGlobalAlertRulesConnectionParams) WithRequestBody(requestBody *models.GetGlobalAlertRulesConnectionRequestBody) *GetGlobalAlertRulesConnectionParams
WithRequestBody adds the requestBody to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) WithTimeout ¶
func (o *GetGlobalAlertRulesConnectionParams) WithTimeout(timeout time.Duration) *GetGlobalAlertRulesConnectionParams
WithTimeout adds the timeout to the get global alert rules connection params
func (*GetGlobalAlertRulesConnectionParams) WriteToRequest ¶
func (o *GetGlobalAlertRulesConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGlobalAlertRulesConnectionReader ¶
type GetGlobalAlertRulesConnectionReader struct {
// contains filtered or unexported fields
}
GetGlobalAlertRulesConnectionReader is a Reader for the GetGlobalAlertRulesConnection structure.
func (*GetGlobalAlertRulesConnectionReader) ReadResponse ¶
func (o *GetGlobalAlertRulesConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetGlobalAlertRulesOK ¶
type GetGlobalAlertRulesOK struct {
Payload []*models.GlobalAlertRule
}
GetGlobalAlertRulesOK describes a response with status code 200, with default header values.
Ok
func NewGetGlobalAlertRulesOK ¶
func NewGetGlobalAlertRulesOK() *GetGlobalAlertRulesOK
NewGetGlobalAlertRulesOK creates a GetGlobalAlertRulesOK with default headers values
func (*GetGlobalAlertRulesOK) Error ¶
func (o *GetGlobalAlertRulesOK) Error() string
func (*GetGlobalAlertRulesOK) GetPayload ¶
func (o *GetGlobalAlertRulesOK) GetPayload() []*models.GlobalAlertRule
type GetGlobalAlertRulesParams ¶
type GetGlobalAlertRulesParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetGlobalAlertRulesRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGlobalAlertRulesParams contains all the parameters to send to the API endpoint
for the get global alert rules operation. Typically these are written to a http.Request.
func NewGetGlobalAlertRulesParams ¶
func NewGetGlobalAlertRulesParams() *GetGlobalAlertRulesParams
NewGetGlobalAlertRulesParams creates a new GetGlobalAlertRulesParams 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 NewGetGlobalAlertRulesParamsWithContext ¶
func NewGetGlobalAlertRulesParamsWithContext(ctx context.Context) *GetGlobalAlertRulesParams
NewGetGlobalAlertRulesParamsWithContext creates a new GetGlobalAlertRulesParams object with the ability to set a context for a request.
func NewGetGlobalAlertRulesParamsWithHTTPClient ¶
func NewGetGlobalAlertRulesParamsWithHTTPClient(client *http.Client) *GetGlobalAlertRulesParams
NewGetGlobalAlertRulesParamsWithHTTPClient creates a new GetGlobalAlertRulesParams object with the ability to set a custom HTTPClient for a request.
func NewGetGlobalAlertRulesParamsWithTimeout ¶
func NewGetGlobalAlertRulesParamsWithTimeout(timeout time.Duration) *GetGlobalAlertRulesParams
NewGetGlobalAlertRulesParamsWithTimeout creates a new GetGlobalAlertRulesParams object with the ability to set a timeout on a request.
func (*GetGlobalAlertRulesParams) SetContentLanguage ¶
func (o *GetGlobalAlertRulesParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get global alert rules params
func (*GetGlobalAlertRulesParams) SetContext ¶
func (o *GetGlobalAlertRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get global alert rules params
func (*GetGlobalAlertRulesParams) SetDefaults ¶
func (o *GetGlobalAlertRulesParams) SetDefaults()
SetDefaults hydrates default values in the get global alert rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetGlobalAlertRulesParams) SetHTTPClient ¶
func (o *GetGlobalAlertRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get global alert rules params
func (*GetGlobalAlertRulesParams) SetRequestBody ¶
func (o *GetGlobalAlertRulesParams) SetRequestBody(requestBody *models.GetGlobalAlertRulesRequestBody)
SetRequestBody adds the requestBody to the get global alert rules params
func (*GetGlobalAlertRulesParams) SetTimeout ¶
func (o *GetGlobalAlertRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get global alert rules params
func (*GetGlobalAlertRulesParams) WithContentLanguage ¶
func (o *GetGlobalAlertRulesParams) WithContentLanguage(contentLanguage *string) *GetGlobalAlertRulesParams
WithContentLanguage adds the contentLanguage to the get global alert rules params
func (*GetGlobalAlertRulesParams) WithContext ¶
func (o *GetGlobalAlertRulesParams) WithContext(ctx context.Context) *GetGlobalAlertRulesParams
WithContext adds the context to the get global alert rules params
func (*GetGlobalAlertRulesParams) WithDefaults ¶
func (o *GetGlobalAlertRulesParams) WithDefaults() *GetGlobalAlertRulesParams
WithDefaults hydrates default values in the get global alert rules params (not the query body).
All values with no default are reset to their zero value.
func (*GetGlobalAlertRulesParams) WithHTTPClient ¶
func (o *GetGlobalAlertRulesParams) WithHTTPClient(client *http.Client) *GetGlobalAlertRulesParams
WithHTTPClient adds the HTTPClient to the get global alert rules params
func (*GetGlobalAlertRulesParams) WithRequestBody ¶
func (o *GetGlobalAlertRulesParams) WithRequestBody(requestBody *models.GetGlobalAlertRulesRequestBody) *GetGlobalAlertRulesParams
WithRequestBody adds the requestBody to the get global alert rules params
func (*GetGlobalAlertRulesParams) WithTimeout ¶
func (o *GetGlobalAlertRulesParams) WithTimeout(timeout time.Duration) *GetGlobalAlertRulesParams
WithTimeout adds the timeout to the get global alert rules params
func (*GetGlobalAlertRulesParams) WriteToRequest ¶
func (o *GetGlobalAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGlobalAlertRulesReader ¶
type GetGlobalAlertRulesReader struct {
// contains filtered or unexported fields
}
GetGlobalAlertRulesReader is a Reader for the GetGlobalAlertRules structure.
func (*GetGlobalAlertRulesReader) ReadResponse ¶
func (o *GetGlobalAlertRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCustomizeAlertRuleBadRequest ¶
type UpdateCustomizeAlertRuleBadRequest struct {
Payload string
}
UpdateCustomizeAlertRuleBadRequest describes a response with status code 400, with default header values.
UpdateCustomizeAlertRuleBadRequest update customize alert rule bad request
func NewUpdateCustomizeAlertRuleBadRequest ¶
func NewUpdateCustomizeAlertRuleBadRequest() *UpdateCustomizeAlertRuleBadRequest
NewUpdateCustomizeAlertRuleBadRequest creates a UpdateCustomizeAlertRuleBadRequest with default headers values
func (*UpdateCustomizeAlertRuleBadRequest) Error ¶
func (o *UpdateCustomizeAlertRuleBadRequest) Error() string
func (*UpdateCustomizeAlertRuleBadRequest) GetPayload ¶
func (o *UpdateCustomizeAlertRuleBadRequest) GetPayload() string
type UpdateCustomizeAlertRuleOK ¶
type UpdateCustomizeAlertRuleOK struct {
Payload []*models.WithTaskGlobalAlertRule
}
UpdateCustomizeAlertRuleOK describes a response with status code 200, with default header values.
Ok
func NewUpdateCustomizeAlertRuleOK ¶
func NewUpdateCustomizeAlertRuleOK() *UpdateCustomizeAlertRuleOK
NewUpdateCustomizeAlertRuleOK creates a UpdateCustomizeAlertRuleOK with default headers values
func (*UpdateCustomizeAlertRuleOK) Error ¶
func (o *UpdateCustomizeAlertRuleOK) Error() string
func (*UpdateCustomizeAlertRuleOK) GetPayload ¶
func (o *UpdateCustomizeAlertRuleOK) GetPayload() []*models.WithTaskGlobalAlertRule
type UpdateCustomizeAlertRuleParams ¶
type UpdateCustomizeAlertRuleParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.CustomizeAlertRuleUpdationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCustomizeAlertRuleParams contains all the parameters to send to the API endpoint
for the update customize alert rule operation. Typically these are written to a http.Request.
func NewUpdateCustomizeAlertRuleParams ¶
func NewUpdateCustomizeAlertRuleParams() *UpdateCustomizeAlertRuleParams
NewUpdateCustomizeAlertRuleParams creates a new UpdateCustomizeAlertRuleParams 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 NewUpdateCustomizeAlertRuleParamsWithContext ¶
func NewUpdateCustomizeAlertRuleParamsWithContext(ctx context.Context) *UpdateCustomizeAlertRuleParams
NewUpdateCustomizeAlertRuleParamsWithContext creates a new UpdateCustomizeAlertRuleParams object with the ability to set a context for a request.
func NewUpdateCustomizeAlertRuleParamsWithHTTPClient ¶
func NewUpdateCustomizeAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateCustomizeAlertRuleParams
NewUpdateCustomizeAlertRuleParamsWithHTTPClient creates a new UpdateCustomizeAlertRuleParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCustomizeAlertRuleParamsWithTimeout ¶
func NewUpdateCustomizeAlertRuleParamsWithTimeout(timeout time.Duration) *UpdateCustomizeAlertRuleParams
NewUpdateCustomizeAlertRuleParamsWithTimeout creates a new UpdateCustomizeAlertRuleParams object with the ability to set a timeout on a request.
func (*UpdateCustomizeAlertRuleParams) SetContentLanguage ¶
func (o *UpdateCustomizeAlertRuleParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) SetContext ¶
func (o *UpdateCustomizeAlertRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) SetDefaults ¶
func (o *UpdateCustomizeAlertRuleParams) SetDefaults()
SetDefaults hydrates default values in the update customize alert rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomizeAlertRuleParams) SetHTTPClient ¶
func (o *UpdateCustomizeAlertRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) SetRequestBody ¶
func (o *UpdateCustomizeAlertRuleParams) SetRequestBody(requestBody *models.CustomizeAlertRuleUpdationParams)
SetRequestBody adds the requestBody to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) SetTimeout ¶
func (o *UpdateCustomizeAlertRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) WithContentLanguage ¶
func (o *UpdateCustomizeAlertRuleParams) WithContentLanguage(contentLanguage *string) *UpdateCustomizeAlertRuleParams
WithContentLanguage adds the contentLanguage to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) WithContext ¶
func (o *UpdateCustomizeAlertRuleParams) WithContext(ctx context.Context) *UpdateCustomizeAlertRuleParams
WithContext adds the context to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) WithDefaults ¶
func (o *UpdateCustomizeAlertRuleParams) WithDefaults() *UpdateCustomizeAlertRuleParams
WithDefaults hydrates default values in the update customize alert rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomizeAlertRuleParams) WithHTTPClient ¶
func (o *UpdateCustomizeAlertRuleParams) WithHTTPClient(client *http.Client) *UpdateCustomizeAlertRuleParams
WithHTTPClient adds the HTTPClient to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) WithRequestBody ¶
func (o *UpdateCustomizeAlertRuleParams) WithRequestBody(requestBody *models.CustomizeAlertRuleUpdationParams) *UpdateCustomizeAlertRuleParams
WithRequestBody adds the requestBody to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) WithTimeout ¶
func (o *UpdateCustomizeAlertRuleParams) WithTimeout(timeout time.Duration) *UpdateCustomizeAlertRuleParams
WithTimeout adds the timeout to the update customize alert rule params
func (*UpdateCustomizeAlertRuleParams) WriteToRequest ¶
func (o *UpdateCustomizeAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCustomizeAlertRuleReader ¶
type UpdateCustomizeAlertRuleReader struct {
// contains filtered or unexported fields
}
UpdateCustomizeAlertRuleReader is a Reader for the UpdateCustomizeAlertRule structure.
func (*UpdateCustomizeAlertRuleReader) ReadResponse ¶
func (o *UpdateCustomizeAlertRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateGlobalAlertRuleBadRequest ¶
type UpdateGlobalAlertRuleBadRequest struct {
Payload string
}
UpdateGlobalAlertRuleBadRequest describes a response with status code 400, with default header values.
UpdateGlobalAlertRuleBadRequest update global alert rule bad request
func NewUpdateGlobalAlertRuleBadRequest ¶
func NewUpdateGlobalAlertRuleBadRequest() *UpdateGlobalAlertRuleBadRequest
NewUpdateGlobalAlertRuleBadRequest creates a UpdateGlobalAlertRuleBadRequest with default headers values
func (*UpdateGlobalAlertRuleBadRequest) Error ¶
func (o *UpdateGlobalAlertRuleBadRequest) Error() string
func (*UpdateGlobalAlertRuleBadRequest) GetPayload ¶
func (o *UpdateGlobalAlertRuleBadRequest) GetPayload() string
type UpdateGlobalAlertRuleOK ¶
type UpdateGlobalAlertRuleOK struct {
Payload []*models.WithTaskGlobalAlertRule
}
UpdateGlobalAlertRuleOK describes a response with status code 200, with default header values.
Ok
func NewUpdateGlobalAlertRuleOK ¶
func NewUpdateGlobalAlertRuleOK() *UpdateGlobalAlertRuleOK
NewUpdateGlobalAlertRuleOK creates a UpdateGlobalAlertRuleOK with default headers values
func (*UpdateGlobalAlertRuleOK) Error ¶
func (o *UpdateGlobalAlertRuleOK) Error() string
func (*UpdateGlobalAlertRuleOK) GetPayload ¶
func (o *UpdateGlobalAlertRuleOK) GetPayload() []*models.WithTaskGlobalAlertRule
type UpdateGlobalAlertRuleParams ¶
type UpdateGlobalAlertRuleParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GlobalAlertRuleUpdationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateGlobalAlertRuleParams contains all the parameters to send to the API endpoint
for the update global alert rule operation. Typically these are written to a http.Request.
func NewUpdateGlobalAlertRuleParams ¶
func NewUpdateGlobalAlertRuleParams() *UpdateGlobalAlertRuleParams
NewUpdateGlobalAlertRuleParams creates a new UpdateGlobalAlertRuleParams 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 NewUpdateGlobalAlertRuleParamsWithContext ¶
func NewUpdateGlobalAlertRuleParamsWithContext(ctx context.Context) *UpdateGlobalAlertRuleParams
NewUpdateGlobalAlertRuleParamsWithContext creates a new UpdateGlobalAlertRuleParams object with the ability to set a context for a request.
func NewUpdateGlobalAlertRuleParamsWithHTTPClient ¶
func NewUpdateGlobalAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateGlobalAlertRuleParams
NewUpdateGlobalAlertRuleParamsWithHTTPClient creates a new UpdateGlobalAlertRuleParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateGlobalAlertRuleParamsWithTimeout ¶
func NewUpdateGlobalAlertRuleParamsWithTimeout(timeout time.Duration) *UpdateGlobalAlertRuleParams
NewUpdateGlobalAlertRuleParamsWithTimeout creates a new UpdateGlobalAlertRuleParams object with the ability to set a timeout on a request.
func (*UpdateGlobalAlertRuleParams) SetContentLanguage ¶
func (o *UpdateGlobalAlertRuleParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) SetContext ¶
func (o *UpdateGlobalAlertRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) SetDefaults ¶
func (o *UpdateGlobalAlertRuleParams) SetDefaults()
SetDefaults hydrates default values in the update global alert rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateGlobalAlertRuleParams) SetHTTPClient ¶
func (o *UpdateGlobalAlertRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) SetRequestBody ¶
func (o *UpdateGlobalAlertRuleParams) SetRequestBody(requestBody *models.GlobalAlertRuleUpdationParams)
SetRequestBody adds the requestBody to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) SetTimeout ¶
func (o *UpdateGlobalAlertRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) WithContentLanguage ¶
func (o *UpdateGlobalAlertRuleParams) WithContentLanguage(contentLanguage *string) *UpdateGlobalAlertRuleParams
WithContentLanguage adds the contentLanguage to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) WithContext ¶
func (o *UpdateGlobalAlertRuleParams) WithContext(ctx context.Context) *UpdateGlobalAlertRuleParams
WithContext adds the context to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) WithDefaults ¶
func (o *UpdateGlobalAlertRuleParams) WithDefaults() *UpdateGlobalAlertRuleParams
WithDefaults hydrates default values in the update global alert rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateGlobalAlertRuleParams) WithHTTPClient ¶
func (o *UpdateGlobalAlertRuleParams) WithHTTPClient(client *http.Client) *UpdateGlobalAlertRuleParams
WithHTTPClient adds the HTTPClient to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) WithRequestBody ¶
func (o *UpdateGlobalAlertRuleParams) WithRequestBody(requestBody *models.GlobalAlertRuleUpdationParams) *UpdateGlobalAlertRuleParams
WithRequestBody adds the requestBody to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) WithTimeout ¶
func (o *UpdateGlobalAlertRuleParams) WithTimeout(timeout time.Duration) *UpdateGlobalAlertRuleParams
WithTimeout adds the timeout to the update global alert rule params
func (*UpdateGlobalAlertRuleParams) WriteToRequest ¶
func (o *UpdateGlobalAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateGlobalAlertRuleReader ¶
type UpdateGlobalAlertRuleReader struct {
// contains filtered or unexported fields
}
UpdateGlobalAlertRuleReader is a Reader for the UpdateGlobalAlertRule structure.
func (*UpdateGlobalAlertRuleReader) ReadResponse ¶
func (o *UpdateGlobalAlertRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_global_alert_rules_connection_parameters.go
- get_global_alert_rules_connection_responses.go
- get_global_alert_rules_parameters.go
- get_global_alert_rules_responses.go
- global_alert_rule_client.go
- update_customize_alert_rule_parameters.go
- update_customize_alert_rule_responses.go
- update_global_alert_rule_parameters.go
- update_global_alert_rule_responses.go