Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetAlertsBadRequest
- type GetAlertsConnectionBadRequest
- type GetAlertsConnectionInternalServerError
- type GetAlertsConnectionNotFound
- type GetAlertsConnectionOK
- type GetAlertsConnectionParams
- func NewGetAlertsConnectionParams() *GetAlertsConnectionParams
- func NewGetAlertsConnectionParamsWithContext(ctx context.Context) *GetAlertsConnectionParams
- func NewGetAlertsConnectionParamsWithHTTPClient(client *http.Client) *GetAlertsConnectionParams
- func NewGetAlertsConnectionParamsWithTimeout(timeout time.Duration) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetAlertsConnectionParams) SetContext(ctx context.Context)
- func (o *GetAlertsConnectionParams) SetDefaults()
- func (o *GetAlertsConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertsConnectionParams) SetRequestBody(requestBody *models.GetAlertsConnectionRequestBody)
- func (o *GetAlertsConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertsConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithContext(ctx context.Context) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithDefaults() *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithHTTPClient(client *http.Client) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithRequestBody(requestBody *models.GetAlertsConnectionRequestBody) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WithTimeout(timeout time.Duration) *GetAlertsConnectionParams
- func (o *GetAlertsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertsConnectionReader
- type GetAlertsInternalServerError
- type GetAlertsNotFound
- type GetAlertsOK
- type GetAlertsParams
- func (o *GetAlertsParams) SetContentLanguage(contentLanguage *string)
- func (o *GetAlertsParams) SetContext(ctx context.Context)
- func (o *GetAlertsParams) SetDefaults()
- func (o *GetAlertsParams) SetHTTPClient(client *http.Client)
- func (o *GetAlertsParams) SetRequestBody(requestBody *models.GetAlertsRequestBody)
- func (o *GetAlertsParams) SetTimeout(timeout time.Duration)
- func (o *GetAlertsParams) WithContentLanguage(contentLanguage *string) *GetAlertsParams
- func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams
- func (o *GetAlertsParams) WithDefaults() *GetAlertsParams
- func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams
- func (o *GetAlertsParams) WithRequestBody(requestBody *models.GetAlertsRequestBody) *GetAlertsParams
- func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams
- func (o *GetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAlertsReader
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 alert API
func (*Client) GetAlerts ¶
func (a *Client) GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error)
GetAlerts get alerts API
func (*Client) GetAlertsConnection ¶
func (a *Client) GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, error)
GetAlertsConnection get alerts connection API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
GetAlerts(params *GetAlertsParams, opts ...ClientOption) (*GetAlertsOK, error)
GetAlertsConnection(params *GetAlertsConnectionParams, opts ...ClientOption) (*GetAlertsConnectionOK, 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 alert API client.
type GetAlertsBadRequest ¶
GetAlertsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAlertsBadRequest ¶
func NewGetAlertsBadRequest() *GetAlertsBadRequest
NewGetAlertsBadRequest creates a GetAlertsBadRequest with default headers values
func (*GetAlertsBadRequest) Error ¶
func (o *GetAlertsBadRequest) Error() string
func (*GetAlertsBadRequest) GetPayload ¶
func (o *GetAlertsBadRequest) GetPayload() *models.ErrorBody
type GetAlertsConnectionBadRequest ¶
GetAlertsConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAlertsConnectionBadRequest ¶
func NewGetAlertsConnectionBadRequest() *GetAlertsConnectionBadRequest
NewGetAlertsConnectionBadRequest creates a GetAlertsConnectionBadRequest with default headers values
func (*GetAlertsConnectionBadRequest) Error ¶
func (o *GetAlertsConnectionBadRequest) Error() string
func (*GetAlertsConnectionBadRequest) GetPayload ¶
func (o *GetAlertsConnectionBadRequest) GetPayload() *models.ErrorBody
type GetAlertsConnectionInternalServerError ¶
type GetAlertsConnectionInternalServerError struct {
XAocRequestID string
Payload *models.ErrorBody
}
GetAlertsConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetAlertsConnectionInternalServerError ¶
func NewGetAlertsConnectionInternalServerError() *GetAlertsConnectionInternalServerError
NewGetAlertsConnectionInternalServerError creates a GetAlertsConnectionInternalServerError with default headers values
func (*GetAlertsConnectionInternalServerError) Error ¶
func (o *GetAlertsConnectionInternalServerError) Error() string
func (*GetAlertsConnectionInternalServerError) GetPayload ¶
func (o *GetAlertsConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetAlertsConnectionNotFound ¶
GetAlertsConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAlertsConnectionNotFound ¶
func NewGetAlertsConnectionNotFound() *GetAlertsConnectionNotFound
NewGetAlertsConnectionNotFound creates a GetAlertsConnectionNotFound with default headers values
func (*GetAlertsConnectionNotFound) Error ¶
func (o *GetAlertsConnectionNotFound) Error() string
func (*GetAlertsConnectionNotFound) GetPayload ¶
func (o *GetAlertsConnectionNotFound) GetPayload() *models.ErrorBody
type GetAlertsConnectionOK ¶
type GetAlertsConnectionOK struct {
XAocRequestID string
Payload *models.AlertConnection
}
GetAlertsConnectionOK describes a response with status code 200, with default header values.
GetAlertsConnectionOK get alerts connection o k
func NewGetAlertsConnectionOK ¶
func NewGetAlertsConnectionOK() *GetAlertsConnectionOK
NewGetAlertsConnectionOK creates a GetAlertsConnectionOK with default headers values
func (*GetAlertsConnectionOK) Error ¶
func (o *GetAlertsConnectionOK) Error() string
func (*GetAlertsConnectionOK) GetPayload ¶
func (o *GetAlertsConnectionOK) GetPayload() *models.AlertConnection
type GetAlertsConnectionParams ¶
type GetAlertsConnectionParams struct {
// ContentLanguage.
//
// Default: "en-US"
ContentLanguage *string
// RequestBody.
RequestBody *models.GetAlertsConnectionRequestBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAlertsConnectionParams contains all the parameters to send to the API endpoint
for the get alerts connection operation. Typically these are written to a http.Request.
func NewGetAlertsConnectionParams ¶
func NewGetAlertsConnectionParams() *GetAlertsConnectionParams
NewGetAlertsConnectionParams creates a new GetAlertsConnectionParams 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 NewGetAlertsConnectionParamsWithContext ¶
func NewGetAlertsConnectionParamsWithContext(ctx context.Context) *GetAlertsConnectionParams
NewGetAlertsConnectionParamsWithContext creates a new GetAlertsConnectionParams object with the ability to set a context for a request.
func NewGetAlertsConnectionParamsWithHTTPClient ¶
func NewGetAlertsConnectionParamsWithHTTPClient(client *http.Client) *GetAlertsConnectionParams
NewGetAlertsConnectionParamsWithHTTPClient creates a new GetAlertsConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetAlertsConnectionParamsWithTimeout ¶
func NewGetAlertsConnectionParamsWithTimeout(timeout time.Duration) *GetAlertsConnectionParams
NewGetAlertsConnectionParamsWithTimeout creates a new GetAlertsConnectionParams object with the ability to set a timeout on a request.
func (*GetAlertsConnectionParams) SetContentLanguage ¶
func (o *GetAlertsConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get alerts connection params
func (*GetAlertsConnectionParams) SetContext ¶
func (o *GetAlertsConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get alerts connection params
func (*GetAlertsConnectionParams) SetDefaults ¶
func (o *GetAlertsConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get alerts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsConnectionParams) SetHTTPClient ¶
func (o *GetAlertsConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alerts connection params
func (*GetAlertsConnectionParams) SetRequestBody ¶
func (o *GetAlertsConnectionParams) SetRequestBody(requestBody *models.GetAlertsConnectionRequestBody)
SetRequestBody adds the requestBody to the get alerts connection params
func (*GetAlertsConnectionParams) SetTimeout ¶
func (o *GetAlertsConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get alerts connection params
func (*GetAlertsConnectionParams) WithContentLanguage ¶
func (o *GetAlertsConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertsConnectionParams
WithContentLanguage adds the contentLanguage to the get alerts connection params
func (*GetAlertsConnectionParams) WithContext ¶
func (o *GetAlertsConnectionParams) WithContext(ctx context.Context) *GetAlertsConnectionParams
WithContext adds the context to the get alerts connection params
func (*GetAlertsConnectionParams) WithDefaults ¶
func (o *GetAlertsConnectionParams) WithDefaults() *GetAlertsConnectionParams
WithDefaults hydrates default values in the get alerts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsConnectionParams) WithHTTPClient ¶
func (o *GetAlertsConnectionParams) WithHTTPClient(client *http.Client) *GetAlertsConnectionParams
WithHTTPClient adds the HTTPClient to the get alerts connection params
func (*GetAlertsConnectionParams) WithRequestBody ¶
func (o *GetAlertsConnectionParams) WithRequestBody(requestBody *models.GetAlertsConnectionRequestBody) *GetAlertsConnectionParams
WithRequestBody adds the requestBody to the get alerts connection params
func (*GetAlertsConnectionParams) WithTimeout ¶
func (o *GetAlertsConnectionParams) WithTimeout(timeout time.Duration) *GetAlertsConnectionParams
WithTimeout adds the timeout to the get alerts connection params
func (*GetAlertsConnectionParams) WriteToRequest ¶
func (o *GetAlertsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAlertsConnectionReader ¶
type GetAlertsConnectionReader struct {
// contains filtered or unexported fields
}
GetAlertsConnectionReader is a Reader for the GetAlertsConnection structure.
func (*GetAlertsConnectionReader) ReadResponse ¶
func (o *GetAlertsConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAlertsInternalServerError ¶
GetAlertsInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetAlertsInternalServerError ¶
func NewGetAlertsInternalServerError() *GetAlertsInternalServerError
NewGetAlertsInternalServerError creates a GetAlertsInternalServerError with default headers values
func (*GetAlertsInternalServerError) Error ¶
func (o *GetAlertsInternalServerError) Error() string
func (*GetAlertsInternalServerError) GetPayload ¶
func (o *GetAlertsInternalServerError) GetPayload() *models.ErrorBody
type GetAlertsNotFound ¶
GetAlertsNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAlertsNotFound ¶
func NewGetAlertsNotFound() *GetAlertsNotFound
NewGetAlertsNotFound creates a GetAlertsNotFound with default headers values
func (*GetAlertsNotFound) Error ¶
func (o *GetAlertsNotFound) Error() string
func (*GetAlertsNotFound) GetPayload ¶
func (o *GetAlertsNotFound) GetPayload() *models.ErrorBody
type GetAlertsOK ¶
GetAlertsOK describes a response with status code 200, with default header values.
GetAlertsOK get alerts o k
func NewGetAlertsOK ¶
func NewGetAlertsOK() *GetAlertsOK
NewGetAlertsOK creates a GetAlertsOK with default headers values
func (*GetAlertsOK) Error ¶
func (o *GetAlertsOK) Error() string
func (*GetAlertsOK) GetPayload ¶
func (o *GetAlertsOK) GetPayload() []*models.Alert
type GetAlertsParams ¶
type GetAlertsParams struct {
// ContentLanguage.
//
// Default: "en-US"
ContentLanguage *string
// RequestBody.
RequestBody *models.GetAlertsRequestBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAlertsParams contains all the parameters to send to the API endpoint
for the get alerts operation. Typically these are written to a http.Request.
func NewGetAlertsParams ¶
func NewGetAlertsParams() *GetAlertsParams
NewGetAlertsParams creates a new GetAlertsParams 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 NewGetAlertsParamsWithContext ¶
func NewGetAlertsParamsWithContext(ctx context.Context) *GetAlertsParams
NewGetAlertsParamsWithContext creates a new GetAlertsParams object with the ability to set a context for a request.
func NewGetAlertsParamsWithHTTPClient ¶
func NewGetAlertsParamsWithHTTPClient(client *http.Client) *GetAlertsParams
NewGetAlertsParamsWithHTTPClient creates a new GetAlertsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAlertsParamsWithTimeout ¶
func NewGetAlertsParamsWithTimeout(timeout time.Duration) *GetAlertsParams
NewGetAlertsParamsWithTimeout creates a new GetAlertsParams object with the ability to set a timeout on a request.
func (*GetAlertsParams) SetContentLanguage ¶
func (o *GetAlertsParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get alerts params
func (*GetAlertsParams) SetContext ¶
func (o *GetAlertsParams) SetContext(ctx context.Context)
SetContext adds the context to the get alerts params
func (*GetAlertsParams) SetDefaults ¶
func (o *GetAlertsParams) SetDefaults()
SetDefaults hydrates default values in the get alerts params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsParams) SetHTTPClient ¶
func (o *GetAlertsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get alerts params
func (*GetAlertsParams) SetRequestBody ¶
func (o *GetAlertsParams) SetRequestBody(requestBody *models.GetAlertsRequestBody)
SetRequestBody adds the requestBody to the get alerts params
func (*GetAlertsParams) SetTimeout ¶
func (o *GetAlertsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get alerts params
func (*GetAlertsParams) WithContentLanguage ¶
func (o *GetAlertsParams) WithContentLanguage(contentLanguage *string) *GetAlertsParams
WithContentLanguage adds the contentLanguage to the get alerts params
func (*GetAlertsParams) WithContext ¶
func (o *GetAlertsParams) WithContext(ctx context.Context) *GetAlertsParams
WithContext adds the context to the get alerts params
func (*GetAlertsParams) WithDefaults ¶
func (o *GetAlertsParams) WithDefaults() *GetAlertsParams
WithDefaults hydrates default values in the get alerts params (not the query body).
All values with no default are reset to their zero value.
func (*GetAlertsParams) WithHTTPClient ¶
func (o *GetAlertsParams) WithHTTPClient(client *http.Client) *GetAlertsParams
WithHTTPClient adds the HTTPClient to the get alerts params
func (*GetAlertsParams) WithRequestBody ¶
func (o *GetAlertsParams) WithRequestBody(requestBody *models.GetAlertsRequestBody) *GetAlertsParams
WithRequestBody adds the requestBody to the get alerts params
func (*GetAlertsParams) WithTimeout ¶
func (o *GetAlertsParams) WithTimeout(timeout time.Duration) *GetAlertsParams
WithTimeout adds the timeout to the get alerts params
func (*GetAlertsParams) WriteToRequest ¶
func (o *GetAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAlertsReader ¶
type GetAlertsReader struct {
// contains filtered or unexported fields
}
GetAlertsReader is a Reader for the GetAlerts structure.
func (*GetAlertsReader) ReadResponse ¶
func (o *GetAlertsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.