Documentation
¶
Index ¶
- type API
- type Client
- type V2ListEventsForbidden
- func (o *V2ListEventsForbidden) Error() string
- func (o *V2ListEventsForbidden) GetPayload() *models.InfraError
- func (o *V2ListEventsForbidden) IsClientError() bool
- func (o *V2ListEventsForbidden) IsCode(code int) bool
- func (o *V2ListEventsForbidden) IsRedirect() bool
- func (o *V2ListEventsForbidden) IsServerError() bool
- func (o *V2ListEventsForbidden) IsSuccess() bool
- func (o *V2ListEventsForbidden) String() string
- type V2ListEventsInternalServerError
- func (o *V2ListEventsInternalServerError) Error() string
- func (o *V2ListEventsInternalServerError) GetPayload() *models.Error
- func (o *V2ListEventsInternalServerError) IsClientError() bool
- func (o *V2ListEventsInternalServerError) IsCode(code int) bool
- func (o *V2ListEventsInternalServerError) IsRedirect() bool
- func (o *V2ListEventsInternalServerError) IsServerError() bool
- func (o *V2ListEventsInternalServerError) IsSuccess() bool
- func (o *V2ListEventsInternalServerError) String() string
- type V2ListEventsMethodNotAllowed
- func (o *V2ListEventsMethodNotAllowed) Error() string
- func (o *V2ListEventsMethodNotAllowed) GetPayload() *models.Error
- func (o *V2ListEventsMethodNotAllowed) IsClientError() bool
- func (o *V2ListEventsMethodNotAllowed) IsCode(code int) bool
- func (o *V2ListEventsMethodNotAllowed) IsRedirect() bool
- func (o *V2ListEventsMethodNotAllowed) IsServerError() bool
- func (o *V2ListEventsMethodNotAllowed) IsSuccess() bool
- func (o *V2ListEventsMethodNotAllowed) String() string
- type V2ListEventsNotFound
- func (o *V2ListEventsNotFound) Error() string
- func (o *V2ListEventsNotFound) GetPayload() *models.Error
- func (o *V2ListEventsNotFound) IsClientError() bool
- func (o *V2ListEventsNotFound) IsCode(code int) bool
- func (o *V2ListEventsNotFound) IsRedirect() bool
- func (o *V2ListEventsNotFound) IsServerError() bool
- func (o *V2ListEventsNotFound) IsSuccess() bool
- func (o *V2ListEventsNotFound) String() string
- type V2ListEventsOK
- func (o *V2ListEventsOK) Error() string
- func (o *V2ListEventsOK) GetPayload() models.EventList
- func (o *V2ListEventsOK) IsClientError() bool
- func (o *V2ListEventsOK) IsCode(code int) bool
- func (o *V2ListEventsOK) IsRedirect() bool
- func (o *V2ListEventsOK) IsServerError() bool
- func (o *V2ListEventsOK) IsSuccess() bool
- func (o *V2ListEventsOK) String() string
- type V2ListEventsParams
- func (o *V2ListEventsParams) SetCategories(categories []string)
- func (o *V2ListEventsParams) SetClusterID(clusterID *strfmt.UUID)
- func (o *V2ListEventsParams) SetClusterLevel(clusterLevel *bool)
- func (o *V2ListEventsParams) SetContext(ctx context.Context)
- func (o *V2ListEventsParams) SetDefaults()
- func (o *V2ListEventsParams) SetDeletedHosts(deletedHosts *bool)
- func (o *V2ListEventsParams) SetHTTPClient(client *http.Client)
- func (o *V2ListEventsParams) SetHostID(hostID *strfmt.UUID)
- func (o *V2ListEventsParams) SetHostIds(hostIds []strfmt.UUID)
- func (o *V2ListEventsParams) SetInfraEnvID(infraEnvID *strfmt.UUID)
- func (o *V2ListEventsParams) SetLimit(limit *int64)
- func (o *V2ListEventsParams) SetMessage(message *string)
- func (o *V2ListEventsParams) SetOffset(offset *int64)
- func (o *V2ListEventsParams) SetOrder(order *string)
- func (o *V2ListEventsParams) SetSeverities(severities []string)
- func (o *V2ListEventsParams) SetTimeout(timeout time.Duration)
- func (o *V2ListEventsParams) WithCategories(categories []string) *V2ListEventsParams
- func (o *V2ListEventsParams) WithClusterID(clusterID *strfmt.UUID) *V2ListEventsParams
- func (o *V2ListEventsParams) WithClusterLevel(clusterLevel *bool) *V2ListEventsParams
- func (o *V2ListEventsParams) WithContext(ctx context.Context) *V2ListEventsParams
- func (o *V2ListEventsParams) WithDefaults() *V2ListEventsParams
- func (o *V2ListEventsParams) WithDeletedHosts(deletedHosts *bool) *V2ListEventsParams
- func (o *V2ListEventsParams) WithHTTPClient(client *http.Client) *V2ListEventsParams
- func (o *V2ListEventsParams) WithHostID(hostID *strfmt.UUID) *V2ListEventsParams
- func (o *V2ListEventsParams) WithHostIds(hostIds []strfmt.UUID) *V2ListEventsParams
- func (o *V2ListEventsParams) WithInfraEnvID(infraEnvID *strfmt.UUID) *V2ListEventsParams
- func (o *V2ListEventsParams) WithLimit(limit *int64) *V2ListEventsParams
- func (o *V2ListEventsParams) WithMessage(message *string) *V2ListEventsParams
- func (o *V2ListEventsParams) WithOffset(offset *int64) *V2ListEventsParams
- func (o *V2ListEventsParams) WithOrder(order *string) *V2ListEventsParams
- func (o *V2ListEventsParams) WithSeverities(severities []string) *V2ListEventsParams
- func (o *V2ListEventsParams) WithTimeout(timeout time.Duration) *V2ListEventsParams
- func (o *V2ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V2ListEventsReader
- type V2ListEventsUnauthorized
- func (o *V2ListEventsUnauthorized) Error() string
- func (o *V2ListEventsUnauthorized) GetPayload() *models.InfraError
- func (o *V2ListEventsUnauthorized) IsClientError() bool
- func (o *V2ListEventsUnauthorized) IsCode(code int) bool
- func (o *V2ListEventsUnauthorized) IsRedirect() bool
- func (o *V2ListEventsUnauthorized) IsServerError() bool
- func (o *V2ListEventsUnauthorized) IsSuccess() bool
- func (o *V2ListEventsUnauthorized) String() string
- type V2TriggerEventBadRequest
- func (o *V2TriggerEventBadRequest) Error() string
- func (o *V2TriggerEventBadRequest) GetPayload() *models.Error
- func (o *V2TriggerEventBadRequest) IsClientError() bool
- func (o *V2TriggerEventBadRequest) IsCode(code int) bool
- func (o *V2TriggerEventBadRequest) IsRedirect() bool
- func (o *V2TriggerEventBadRequest) IsServerError() bool
- func (o *V2TriggerEventBadRequest) IsSuccess() bool
- func (o *V2TriggerEventBadRequest) String() string
- type V2TriggerEventConflict
- func (o *V2TriggerEventConflict) Error() string
- func (o *V2TriggerEventConflict) GetPayload() *models.Error
- func (o *V2TriggerEventConflict) IsClientError() bool
- func (o *V2TriggerEventConflict) IsCode(code int) bool
- func (o *V2TriggerEventConflict) IsRedirect() bool
- func (o *V2TriggerEventConflict) IsServerError() bool
- func (o *V2TriggerEventConflict) IsSuccess() bool
- func (o *V2TriggerEventConflict) String() string
- type V2TriggerEventCreated
- func (o *V2TriggerEventCreated) Error() string
- func (o *V2TriggerEventCreated) IsClientError() bool
- func (o *V2TriggerEventCreated) IsCode(code int) bool
- func (o *V2TriggerEventCreated) IsRedirect() bool
- func (o *V2TriggerEventCreated) IsServerError() bool
- func (o *V2TriggerEventCreated) IsSuccess() bool
- func (o *V2TriggerEventCreated) String() string
- type V2TriggerEventForbidden
- func (o *V2TriggerEventForbidden) Error() string
- func (o *V2TriggerEventForbidden) GetPayload() *models.InfraError
- func (o *V2TriggerEventForbidden) IsClientError() bool
- func (o *V2TriggerEventForbidden) IsCode(code int) bool
- func (o *V2TriggerEventForbidden) IsRedirect() bool
- func (o *V2TriggerEventForbidden) IsServerError() bool
- func (o *V2TriggerEventForbidden) IsSuccess() bool
- func (o *V2TriggerEventForbidden) String() string
- type V2TriggerEventInternalServerError
- func (o *V2TriggerEventInternalServerError) Error() string
- func (o *V2TriggerEventInternalServerError) GetPayload() *models.Error
- func (o *V2TriggerEventInternalServerError) IsClientError() bool
- func (o *V2TriggerEventInternalServerError) IsCode(code int) bool
- func (o *V2TriggerEventInternalServerError) IsRedirect() bool
- func (o *V2TriggerEventInternalServerError) IsServerError() bool
- func (o *V2TriggerEventInternalServerError) IsSuccess() bool
- func (o *V2TriggerEventInternalServerError) String() string
- type V2TriggerEventMethodNotAllowed
- func (o *V2TriggerEventMethodNotAllowed) Error() string
- func (o *V2TriggerEventMethodNotAllowed) GetPayload() *models.Error
- func (o *V2TriggerEventMethodNotAllowed) IsClientError() bool
- func (o *V2TriggerEventMethodNotAllowed) IsCode(code int) bool
- func (o *V2TriggerEventMethodNotAllowed) IsRedirect() bool
- func (o *V2TriggerEventMethodNotAllowed) IsServerError() bool
- func (o *V2TriggerEventMethodNotAllowed) IsSuccess() bool
- func (o *V2TriggerEventMethodNotAllowed) String() string
- type V2TriggerEventNotFound
- func (o *V2TriggerEventNotFound) Error() string
- func (o *V2TriggerEventNotFound) GetPayload() *models.Error
- func (o *V2TriggerEventNotFound) IsClientError() bool
- func (o *V2TriggerEventNotFound) IsCode(code int) bool
- func (o *V2TriggerEventNotFound) IsRedirect() bool
- func (o *V2TriggerEventNotFound) IsServerError() bool
- func (o *V2TriggerEventNotFound) IsSuccess() bool
- func (o *V2TriggerEventNotFound) String() string
- type V2TriggerEventNotImplemented
- func (o *V2TriggerEventNotImplemented) Error() string
- func (o *V2TriggerEventNotImplemented) GetPayload() *models.Error
- func (o *V2TriggerEventNotImplemented) IsClientError() bool
- func (o *V2TriggerEventNotImplemented) IsCode(code int) bool
- func (o *V2TriggerEventNotImplemented) IsRedirect() bool
- func (o *V2TriggerEventNotImplemented) IsServerError() bool
- func (o *V2TriggerEventNotImplemented) IsSuccess() bool
- func (o *V2TriggerEventNotImplemented) String() string
- type V2TriggerEventParams
- func NewV2TriggerEventParams() *V2TriggerEventParams
- func NewV2TriggerEventParamsWithContext(ctx context.Context) *V2TriggerEventParams
- func NewV2TriggerEventParamsWithHTTPClient(client *http.Client) *V2TriggerEventParams
- func NewV2TriggerEventParamsWithTimeout(timeout time.Duration) *V2TriggerEventParams
- func (o *V2TriggerEventParams) SetContext(ctx context.Context)
- func (o *V2TriggerEventParams) SetDefaults()
- func (o *V2TriggerEventParams) SetHTTPClient(client *http.Client)
- func (o *V2TriggerEventParams) SetTimeout(timeout time.Duration)
- func (o *V2TriggerEventParams) SetTriggerEventParams(triggerEventParams *models.Event)
- func (o *V2TriggerEventParams) WithContext(ctx context.Context) *V2TriggerEventParams
- func (o *V2TriggerEventParams) WithDefaults() *V2TriggerEventParams
- func (o *V2TriggerEventParams) WithHTTPClient(client *http.Client) *V2TriggerEventParams
- func (o *V2TriggerEventParams) WithTimeout(timeout time.Duration) *V2TriggerEventParams
- func (o *V2TriggerEventParams) WithTriggerEventParams(triggerEventParams *models.Event) *V2TriggerEventParams
- func (o *V2TriggerEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V2TriggerEventReader
- type V2TriggerEventServiceUnavailable
- func (o *V2TriggerEventServiceUnavailable) Error() string
- func (o *V2TriggerEventServiceUnavailable) GetPayload() *models.Error
- func (o *V2TriggerEventServiceUnavailable) IsClientError() bool
- func (o *V2TriggerEventServiceUnavailable) IsCode(code int) bool
- func (o *V2TriggerEventServiceUnavailable) IsRedirect() bool
- func (o *V2TriggerEventServiceUnavailable) IsServerError() bool
- func (o *V2TriggerEventServiceUnavailable) IsSuccess() bool
- func (o *V2TriggerEventServiceUnavailable) String() string
- type V2TriggerEventUnauthorized
- func (o *V2TriggerEventUnauthorized) Error() string
- func (o *V2TriggerEventUnauthorized) GetPayload() *models.InfraError
- func (o *V2TriggerEventUnauthorized) IsClientError() bool
- func (o *V2TriggerEventUnauthorized) IsCode(code int) bool
- func (o *V2TriggerEventUnauthorized) IsRedirect() bool
- func (o *V2TriggerEventUnauthorized) IsServerError() bool
- func (o *V2TriggerEventUnauthorized) IsSuccess() bool
- func (o *V2TriggerEventUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* V2ListEvents Lists events for a cluster.*/ V2ListEvents(ctx context.Context, params *V2ListEventsParams) (*V2ListEventsOK, error) /* V2TriggerEvent Add new assisted installer event.*/ V2TriggerEvent(ctx context.Context, params *V2TriggerEventParams) (*V2TriggerEventCreated, error) }
API is the interface of the events client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for events API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new events API client.
func (*Client) V2ListEvents ¶
func (a *Client) V2ListEvents(ctx context.Context, params *V2ListEventsParams) (*V2ListEventsOK, error)
V2ListEvents Lists events for a cluster.
func (*Client) V2TriggerEvent ¶
func (a *Client) V2TriggerEvent(ctx context.Context, params *V2TriggerEventParams) (*V2TriggerEventCreated, error)
V2TriggerEvent Add new assisted installer event.
type V2ListEventsForbidden ¶
type V2ListEventsForbidden struct {
Payload *models.InfraError
}
V2ListEventsForbidden describes a response with status code 403, with default header values.
Forbidden.
func NewV2ListEventsForbidden ¶
func NewV2ListEventsForbidden() *V2ListEventsForbidden
NewV2ListEventsForbidden creates a V2ListEventsForbidden with default headers values
func (*V2ListEventsForbidden) Error ¶
func (o *V2ListEventsForbidden) Error() string
func (*V2ListEventsForbidden) GetPayload ¶
func (o *V2ListEventsForbidden) GetPayload() *models.InfraError
func (*V2ListEventsForbidden) IsClientError ¶
func (o *V2ListEventsForbidden) IsClientError() bool
IsClientError returns true when this v2 list events forbidden response has a 4xx status code
func (*V2ListEventsForbidden) IsCode ¶
func (o *V2ListEventsForbidden) IsCode(code int) bool
IsCode returns true when this v2 list events forbidden response a status code equal to that given
func (*V2ListEventsForbidden) IsRedirect ¶
func (o *V2ListEventsForbidden) IsRedirect() bool
IsRedirect returns true when this v2 list events forbidden response has a 3xx status code
func (*V2ListEventsForbidden) IsServerError ¶
func (o *V2ListEventsForbidden) IsServerError() bool
IsServerError returns true when this v2 list events forbidden response has a 5xx status code
func (*V2ListEventsForbidden) IsSuccess ¶
func (o *V2ListEventsForbidden) IsSuccess() bool
IsSuccess returns true when this v2 list events forbidden response has a 2xx status code
func (*V2ListEventsForbidden) String ¶
func (o *V2ListEventsForbidden) String() string
type V2ListEventsInternalServerError ¶
V2ListEventsInternalServerError describes a response with status code 500, with default header values.
Error.
func NewV2ListEventsInternalServerError ¶
func NewV2ListEventsInternalServerError() *V2ListEventsInternalServerError
NewV2ListEventsInternalServerError creates a V2ListEventsInternalServerError with default headers values
func (*V2ListEventsInternalServerError) Error ¶
func (o *V2ListEventsInternalServerError) Error() string
func (*V2ListEventsInternalServerError) GetPayload ¶
func (o *V2ListEventsInternalServerError) GetPayload() *models.Error
func (*V2ListEventsInternalServerError) IsClientError ¶
func (o *V2ListEventsInternalServerError) IsClientError() bool
IsClientError returns true when this v2 list events internal server error response has a 4xx status code
func (*V2ListEventsInternalServerError) IsCode ¶
func (o *V2ListEventsInternalServerError) IsCode(code int) bool
IsCode returns true when this v2 list events internal server error response a status code equal to that given
func (*V2ListEventsInternalServerError) IsRedirect ¶
func (o *V2ListEventsInternalServerError) IsRedirect() bool
IsRedirect returns true when this v2 list events internal server error response has a 3xx status code
func (*V2ListEventsInternalServerError) IsServerError ¶
func (o *V2ListEventsInternalServerError) IsServerError() bool
IsServerError returns true when this v2 list events internal server error response has a 5xx status code
func (*V2ListEventsInternalServerError) IsSuccess ¶
func (o *V2ListEventsInternalServerError) IsSuccess() bool
IsSuccess returns true when this v2 list events internal server error response has a 2xx status code
func (*V2ListEventsInternalServerError) String ¶
func (o *V2ListEventsInternalServerError) String() string
type V2ListEventsMethodNotAllowed ¶
V2ListEventsMethodNotAllowed describes a response with status code 405, with default header values.
Method Not Allowed.
func NewV2ListEventsMethodNotAllowed ¶
func NewV2ListEventsMethodNotAllowed() *V2ListEventsMethodNotAllowed
NewV2ListEventsMethodNotAllowed creates a V2ListEventsMethodNotAllowed with default headers values
func (*V2ListEventsMethodNotAllowed) Error ¶
func (o *V2ListEventsMethodNotAllowed) Error() string
func (*V2ListEventsMethodNotAllowed) GetPayload ¶
func (o *V2ListEventsMethodNotAllowed) GetPayload() *models.Error
func (*V2ListEventsMethodNotAllowed) IsClientError ¶
func (o *V2ListEventsMethodNotAllowed) IsClientError() bool
IsClientError returns true when this v2 list events method not allowed response has a 4xx status code
func (*V2ListEventsMethodNotAllowed) IsCode ¶
func (o *V2ListEventsMethodNotAllowed) IsCode(code int) bool
IsCode returns true when this v2 list events method not allowed response a status code equal to that given
func (*V2ListEventsMethodNotAllowed) IsRedirect ¶
func (o *V2ListEventsMethodNotAllowed) IsRedirect() bool
IsRedirect returns true when this v2 list events method not allowed response has a 3xx status code
func (*V2ListEventsMethodNotAllowed) IsServerError ¶
func (o *V2ListEventsMethodNotAllowed) IsServerError() bool
IsServerError returns true when this v2 list events method not allowed response has a 5xx status code
func (*V2ListEventsMethodNotAllowed) IsSuccess ¶
func (o *V2ListEventsMethodNotAllowed) IsSuccess() bool
IsSuccess returns true when this v2 list events method not allowed response has a 2xx status code
func (*V2ListEventsMethodNotAllowed) String ¶
func (o *V2ListEventsMethodNotAllowed) String() string
type V2ListEventsNotFound ¶
V2ListEventsNotFound describes a response with status code 404, with default header values.
Error.
func NewV2ListEventsNotFound ¶
func NewV2ListEventsNotFound() *V2ListEventsNotFound
NewV2ListEventsNotFound creates a V2ListEventsNotFound with default headers values
func (*V2ListEventsNotFound) Error ¶
func (o *V2ListEventsNotFound) Error() string
func (*V2ListEventsNotFound) GetPayload ¶
func (o *V2ListEventsNotFound) GetPayload() *models.Error
func (*V2ListEventsNotFound) IsClientError ¶
func (o *V2ListEventsNotFound) IsClientError() bool
IsClientError returns true when this v2 list events not found response has a 4xx status code
func (*V2ListEventsNotFound) IsCode ¶
func (o *V2ListEventsNotFound) IsCode(code int) bool
IsCode returns true when this v2 list events not found response a status code equal to that given
func (*V2ListEventsNotFound) IsRedirect ¶
func (o *V2ListEventsNotFound) IsRedirect() bool
IsRedirect returns true when this v2 list events not found response has a 3xx status code
func (*V2ListEventsNotFound) IsServerError ¶
func (o *V2ListEventsNotFound) IsServerError() bool
IsServerError returns true when this v2 list events not found response has a 5xx status code
func (*V2ListEventsNotFound) IsSuccess ¶
func (o *V2ListEventsNotFound) IsSuccess() bool
IsSuccess returns true when this v2 list events not found response has a 2xx status code
func (*V2ListEventsNotFound) String ¶
func (o *V2ListEventsNotFound) String() string
type V2ListEventsOK ¶
type V2ListEventsOK struct { /* Count of events retrieved. */ EventCount int64 /* Count of events with severity 'critical'. */ SeverityCountCritical int64 /* Count of events with severity 'error'. */ SeverityCountError int64 /* Count of events with severity 'info'. */ SeverityCountInfo int64 /* Count of events with severity 'warning'. */ SeverityCountWarning int64 Payload models.EventList }
V2ListEventsOK describes a response with status code 200, with default header values.
Success.
func NewV2ListEventsOK ¶
func NewV2ListEventsOK() *V2ListEventsOK
NewV2ListEventsOK creates a V2ListEventsOK with default headers values
func (*V2ListEventsOK) Error ¶
func (o *V2ListEventsOK) Error() string
func (*V2ListEventsOK) GetPayload ¶
func (o *V2ListEventsOK) GetPayload() models.EventList
func (*V2ListEventsOK) IsClientError ¶
func (o *V2ListEventsOK) IsClientError() bool
IsClientError returns true when this v2 list events o k response has a 4xx status code
func (*V2ListEventsOK) IsCode ¶
func (o *V2ListEventsOK) IsCode(code int) bool
IsCode returns true when this v2 list events o k response a status code equal to that given
func (*V2ListEventsOK) IsRedirect ¶
func (o *V2ListEventsOK) IsRedirect() bool
IsRedirect returns true when this v2 list events o k response has a 3xx status code
func (*V2ListEventsOK) IsServerError ¶
func (o *V2ListEventsOK) IsServerError() bool
IsServerError returns true when this v2 list events o k response has a 5xx status code
func (*V2ListEventsOK) IsSuccess ¶
func (o *V2ListEventsOK) IsSuccess() bool
IsSuccess returns true when this v2 list events o k response has a 2xx status code
func (*V2ListEventsOK) String ¶
func (o *V2ListEventsOK) String() string
type V2ListEventsParams ¶
type V2ListEventsParams struct { /* Categories. A comma-separated list of event categories. */ Categories []string /* ClusterID. The cluster to return events for. Format: uuid */ ClusterID *strfmt.UUID /* ClusterLevel. Cluster level events flag. */ ClusterLevel *bool /* DeletedHosts. Deleted hosts flag. */ DeletedHosts *bool /* HostID. A host in the specified cluster to return events for (DEPRECATED. Use `host_ids` instead). Format: uuid */ HostID *strfmt.UUID /* HostIds. Hosts in the specified cluster to return events for. */ HostIds []strfmt.UUID /* InfraEnvID. The infra-env to return events for. Format: uuid */ InfraEnvID *strfmt.UUID /* Limit. The maximum number of records to retrieve. */ Limit *int64 /* Message. Retrieved events message pattern. */ Message *string /* Offset. Number of records to skip before starting to return the records. */ Offset *int64 /* Order. Order by event_time of events retrieved. Default: "ascending" */ Order *string /* Severities. Retrieved events severities. */ Severities []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
V2ListEventsParams contains all the parameters to send to the API endpoint
for the v2 list events operation. Typically these are written to a http.Request.
func NewV2ListEventsParams ¶
func NewV2ListEventsParams() *V2ListEventsParams
NewV2ListEventsParams creates a new V2ListEventsParams 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 NewV2ListEventsParamsWithContext ¶
func NewV2ListEventsParamsWithContext(ctx context.Context) *V2ListEventsParams
NewV2ListEventsParamsWithContext creates a new V2ListEventsParams object with the ability to set a context for a request.
func NewV2ListEventsParamsWithHTTPClient ¶
func NewV2ListEventsParamsWithHTTPClient(client *http.Client) *V2ListEventsParams
NewV2ListEventsParamsWithHTTPClient creates a new V2ListEventsParams object with the ability to set a custom HTTPClient for a request.
func NewV2ListEventsParamsWithTimeout ¶
func NewV2ListEventsParamsWithTimeout(timeout time.Duration) *V2ListEventsParams
NewV2ListEventsParamsWithTimeout creates a new V2ListEventsParams object with the ability to set a timeout on a request.
func (*V2ListEventsParams) SetCategories ¶
func (o *V2ListEventsParams) SetCategories(categories []string)
SetCategories adds the categories to the v2 list events params
func (*V2ListEventsParams) SetClusterID ¶
func (o *V2ListEventsParams) SetClusterID(clusterID *strfmt.UUID)
SetClusterID adds the clusterId to the v2 list events params
func (*V2ListEventsParams) SetClusterLevel ¶
func (o *V2ListEventsParams) SetClusterLevel(clusterLevel *bool)
SetClusterLevel adds the clusterLevel to the v2 list events params
func (*V2ListEventsParams) SetContext ¶
func (o *V2ListEventsParams) SetContext(ctx context.Context)
SetContext adds the context to the v2 list events params
func (*V2ListEventsParams) SetDefaults ¶
func (o *V2ListEventsParams) SetDefaults()
SetDefaults hydrates default values in the v2 list events params (not the query body).
All values with no default are reset to their zero value.
func (*V2ListEventsParams) SetDeletedHosts ¶
func (o *V2ListEventsParams) SetDeletedHosts(deletedHosts *bool)
SetDeletedHosts adds the deletedHosts to the v2 list events params
func (*V2ListEventsParams) SetHTTPClient ¶
func (o *V2ListEventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the v2 list events params
func (*V2ListEventsParams) SetHostID ¶
func (o *V2ListEventsParams) SetHostID(hostID *strfmt.UUID)
SetHostID adds the hostId to the v2 list events params
func (*V2ListEventsParams) SetHostIds ¶
func (o *V2ListEventsParams) SetHostIds(hostIds []strfmt.UUID)
SetHostIds adds the hostIds to the v2 list events params
func (*V2ListEventsParams) SetInfraEnvID ¶
func (o *V2ListEventsParams) SetInfraEnvID(infraEnvID *strfmt.UUID)
SetInfraEnvID adds the infraEnvId to the v2 list events params
func (*V2ListEventsParams) SetLimit ¶
func (o *V2ListEventsParams) SetLimit(limit *int64)
SetLimit adds the limit to the v2 list events params
func (*V2ListEventsParams) SetMessage ¶
func (o *V2ListEventsParams) SetMessage(message *string)
SetMessage adds the message to the v2 list events params
func (*V2ListEventsParams) SetOffset ¶
func (o *V2ListEventsParams) SetOffset(offset *int64)
SetOffset adds the offset to the v2 list events params
func (*V2ListEventsParams) SetOrder ¶
func (o *V2ListEventsParams) SetOrder(order *string)
SetOrder adds the order to the v2 list events params
func (*V2ListEventsParams) SetSeverities ¶
func (o *V2ListEventsParams) SetSeverities(severities []string)
SetSeverities adds the severities to the v2 list events params
func (*V2ListEventsParams) SetTimeout ¶
func (o *V2ListEventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the v2 list events params
func (*V2ListEventsParams) WithCategories ¶
func (o *V2ListEventsParams) WithCategories(categories []string) *V2ListEventsParams
WithCategories adds the categories to the v2 list events params
func (*V2ListEventsParams) WithClusterID ¶
func (o *V2ListEventsParams) WithClusterID(clusterID *strfmt.UUID) *V2ListEventsParams
WithClusterID adds the clusterID to the v2 list events params
func (*V2ListEventsParams) WithClusterLevel ¶
func (o *V2ListEventsParams) WithClusterLevel(clusterLevel *bool) *V2ListEventsParams
WithClusterLevel adds the clusterLevel to the v2 list events params
func (*V2ListEventsParams) WithContext ¶
func (o *V2ListEventsParams) WithContext(ctx context.Context) *V2ListEventsParams
WithContext adds the context to the v2 list events params
func (*V2ListEventsParams) WithDefaults ¶
func (o *V2ListEventsParams) WithDefaults() *V2ListEventsParams
WithDefaults hydrates default values in the v2 list events params (not the query body).
All values with no default are reset to their zero value.
func (*V2ListEventsParams) WithDeletedHosts ¶
func (o *V2ListEventsParams) WithDeletedHosts(deletedHosts *bool) *V2ListEventsParams
WithDeletedHosts adds the deletedHosts to the v2 list events params
func (*V2ListEventsParams) WithHTTPClient ¶
func (o *V2ListEventsParams) WithHTTPClient(client *http.Client) *V2ListEventsParams
WithHTTPClient adds the HTTPClient to the v2 list events params
func (*V2ListEventsParams) WithHostID ¶
func (o *V2ListEventsParams) WithHostID(hostID *strfmt.UUID) *V2ListEventsParams
WithHostID adds the hostID to the v2 list events params
func (*V2ListEventsParams) WithHostIds ¶
func (o *V2ListEventsParams) WithHostIds(hostIds []strfmt.UUID) *V2ListEventsParams
WithHostIds adds the hostIds to the v2 list events params
func (*V2ListEventsParams) WithInfraEnvID ¶
func (o *V2ListEventsParams) WithInfraEnvID(infraEnvID *strfmt.UUID) *V2ListEventsParams
WithInfraEnvID adds the infraEnvID to the v2 list events params
func (*V2ListEventsParams) WithLimit ¶
func (o *V2ListEventsParams) WithLimit(limit *int64) *V2ListEventsParams
WithLimit adds the limit to the v2 list events params
func (*V2ListEventsParams) WithMessage ¶
func (o *V2ListEventsParams) WithMessage(message *string) *V2ListEventsParams
WithMessage adds the message to the v2 list events params
func (*V2ListEventsParams) WithOffset ¶
func (o *V2ListEventsParams) WithOffset(offset *int64) *V2ListEventsParams
WithOffset adds the offset to the v2 list events params
func (*V2ListEventsParams) WithOrder ¶
func (o *V2ListEventsParams) WithOrder(order *string) *V2ListEventsParams
WithOrder adds the order to the v2 list events params
func (*V2ListEventsParams) WithSeverities ¶
func (o *V2ListEventsParams) WithSeverities(severities []string) *V2ListEventsParams
WithSeverities adds the severities to the v2 list events params
func (*V2ListEventsParams) WithTimeout ¶
func (o *V2ListEventsParams) WithTimeout(timeout time.Duration) *V2ListEventsParams
WithTimeout adds the timeout to the v2 list events params
func (*V2ListEventsParams) WriteToRequest ¶
func (o *V2ListEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type V2ListEventsReader ¶
type V2ListEventsReader struct {
// contains filtered or unexported fields
}
V2ListEventsReader is a Reader for the V2ListEvents structure.
func (*V2ListEventsReader) ReadResponse ¶
func (o *V2ListEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type V2ListEventsUnauthorized ¶
type V2ListEventsUnauthorized struct {
}V2ListEventsUnauthorized describes a response with status code 401, with default header values.
Unauthorized.
func NewV2ListEventsUnauthorized ¶
func NewV2ListEventsUnauthorized() *V2ListEventsUnauthorized
NewV2ListEventsUnauthorized creates a V2ListEventsUnauthorized with default headers values
func (*V2ListEventsUnauthorized) Error ¶
func (o *V2ListEventsUnauthorized) Error() string
func (*V2ListEventsUnauthorized) GetPayload ¶
func (o *V2ListEventsUnauthorized) GetPayload() *models.InfraError
func (*V2ListEventsUnauthorized) IsClientError ¶
func (o *V2ListEventsUnauthorized) IsClientError() bool
IsClientError returns true when this v2 list events unauthorized response has a 4xx status code
func (*V2ListEventsUnauthorized) IsCode ¶
func (o *V2ListEventsUnauthorized) IsCode(code int) bool
IsCode returns true when this v2 list events unauthorized response a status code equal to that given
func (*V2ListEventsUnauthorized) IsRedirect ¶
func (o *V2ListEventsUnauthorized) IsRedirect() bool
IsRedirect returns true when this v2 list events unauthorized response has a 3xx status code
func (*V2ListEventsUnauthorized) IsServerError ¶
func (o *V2ListEventsUnauthorized) IsServerError() bool
IsServerError returns true when this v2 list events unauthorized response has a 5xx status code
func (*V2ListEventsUnauthorized) IsSuccess ¶
func (o *V2ListEventsUnauthorized) IsSuccess() bool
IsSuccess returns true when this v2 list events unauthorized response has a 2xx status code
func (*V2ListEventsUnauthorized) String ¶
func (o *V2ListEventsUnauthorized) String() string
type V2TriggerEventBadRequest ¶
V2TriggerEventBadRequest describes a response with status code 400, with default header values.
Error.
func NewV2TriggerEventBadRequest ¶
func NewV2TriggerEventBadRequest() *V2TriggerEventBadRequest
NewV2TriggerEventBadRequest creates a V2TriggerEventBadRequest with default headers values
func (*V2TriggerEventBadRequest) Error ¶
func (o *V2TriggerEventBadRequest) Error() string
func (*V2TriggerEventBadRequest) GetPayload ¶
func (o *V2TriggerEventBadRequest) GetPayload() *models.Error
func (*V2TriggerEventBadRequest) IsClientError ¶
func (o *V2TriggerEventBadRequest) IsClientError() bool
IsClientError returns true when this v2 trigger event bad request response has a 4xx status code
func (*V2TriggerEventBadRequest) IsCode ¶
func (o *V2TriggerEventBadRequest) IsCode(code int) bool
IsCode returns true when this v2 trigger event bad request response a status code equal to that given
func (*V2TriggerEventBadRequest) IsRedirect ¶
func (o *V2TriggerEventBadRequest) IsRedirect() bool
IsRedirect returns true when this v2 trigger event bad request response has a 3xx status code
func (*V2TriggerEventBadRequest) IsServerError ¶
func (o *V2TriggerEventBadRequest) IsServerError() bool
IsServerError returns true when this v2 trigger event bad request response has a 5xx status code
func (*V2TriggerEventBadRequest) IsSuccess ¶
func (o *V2TriggerEventBadRequest) IsSuccess() bool
IsSuccess returns true when this v2 trigger event bad request response has a 2xx status code
func (*V2TriggerEventBadRequest) String ¶
func (o *V2TriggerEventBadRequest) String() string
type V2TriggerEventConflict ¶
V2TriggerEventConflict describes a response with status code 409, with default header values.
Cluster cannot accept new agents due to its current state.
func NewV2TriggerEventConflict ¶
func NewV2TriggerEventConflict() *V2TriggerEventConflict
NewV2TriggerEventConflict creates a V2TriggerEventConflict with default headers values
func (*V2TriggerEventConflict) Error ¶
func (o *V2TriggerEventConflict) Error() string
func (*V2TriggerEventConflict) GetPayload ¶
func (o *V2TriggerEventConflict) GetPayload() *models.Error
func (*V2TriggerEventConflict) IsClientError ¶
func (o *V2TriggerEventConflict) IsClientError() bool
IsClientError returns true when this v2 trigger event conflict response has a 4xx status code
func (*V2TriggerEventConflict) IsCode ¶
func (o *V2TriggerEventConflict) IsCode(code int) bool
IsCode returns true when this v2 trigger event conflict response a status code equal to that given
func (*V2TriggerEventConflict) IsRedirect ¶
func (o *V2TriggerEventConflict) IsRedirect() bool
IsRedirect returns true when this v2 trigger event conflict response has a 3xx status code
func (*V2TriggerEventConflict) IsServerError ¶
func (o *V2TriggerEventConflict) IsServerError() bool
IsServerError returns true when this v2 trigger event conflict response has a 5xx status code
func (*V2TriggerEventConflict) IsSuccess ¶
func (o *V2TriggerEventConflict) IsSuccess() bool
IsSuccess returns true when this v2 trigger event conflict response has a 2xx status code
func (*V2TriggerEventConflict) String ¶
func (o *V2TriggerEventConflict) String() string
type V2TriggerEventCreated ¶
type V2TriggerEventCreated struct { }
V2TriggerEventCreated describes a response with status code 201, with default header values.
Success.
func NewV2TriggerEventCreated ¶
func NewV2TriggerEventCreated() *V2TriggerEventCreated
NewV2TriggerEventCreated creates a V2TriggerEventCreated with default headers values
func (*V2TriggerEventCreated) Error ¶
func (o *V2TriggerEventCreated) Error() string
func (*V2TriggerEventCreated) IsClientError ¶
func (o *V2TriggerEventCreated) IsClientError() bool
IsClientError returns true when this v2 trigger event created response has a 4xx status code
func (*V2TriggerEventCreated) IsCode ¶
func (o *V2TriggerEventCreated) IsCode(code int) bool
IsCode returns true when this v2 trigger event created response a status code equal to that given
func (*V2TriggerEventCreated) IsRedirect ¶
func (o *V2TriggerEventCreated) IsRedirect() bool
IsRedirect returns true when this v2 trigger event created response has a 3xx status code
func (*V2TriggerEventCreated) IsServerError ¶
func (o *V2TriggerEventCreated) IsServerError() bool
IsServerError returns true when this v2 trigger event created response has a 5xx status code
func (*V2TriggerEventCreated) IsSuccess ¶
func (o *V2TriggerEventCreated) IsSuccess() bool
IsSuccess returns true when this v2 trigger event created response has a 2xx status code
func (*V2TriggerEventCreated) String ¶
func (o *V2TriggerEventCreated) String() string
type V2TriggerEventForbidden ¶
type V2TriggerEventForbidden struct {
Payload *models.InfraError
}
V2TriggerEventForbidden describes a response with status code 403, with default header values.
Forbidden.
func NewV2TriggerEventForbidden ¶
func NewV2TriggerEventForbidden() *V2TriggerEventForbidden
NewV2TriggerEventForbidden creates a V2TriggerEventForbidden with default headers values
func (*V2TriggerEventForbidden) Error ¶
func (o *V2TriggerEventForbidden) Error() string
func (*V2TriggerEventForbidden) GetPayload ¶
func (o *V2TriggerEventForbidden) GetPayload() *models.InfraError
func (*V2TriggerEventForbidden) IsClientError ¶
func (o *V2TriggerEventForbidden) IsClientError() bool
IsClientError returns true when this v2 trigger event forbidden response has a 4xx status code
func (*V2TriggerEventForbidden) IsCode ¶
func (o *V2TriggerEventForbidden) IsCode(code int) bool
IsCode returns true when this v2 trigger event forbidden response a status code equal to that given
func (*V2TriggerEventForbidden) IsRedirect ¶
func (o *V2TriggerEventForbidden) IsRedirect() bool
IsRedirect returns true when this v2 trigger event forbidden response has a 3xx status code
func (*V2TriggerEventForbidden) IsServerError ¶
func (o *V2TriggerEventForbidden) IsServerError() bool
IsServerError returns true when this v2 trigger event forbidden response has a 5xx status code
func (*V2TriggerEventForbidden) IsSuccess ¶
func (o *V2TriggerEventForbidden) IsSuccess() bool
IsSuccess returns true when this v2 trigger event forbidden response has a 2xx status code
func (*V2TriggerEventForbidden) String ¶
func (o *V2TriggerEventForbidden) String() string
type V2TriggerEventInternalServerError ¶
V2TriggerEventInternalServerError describes a response with status code 500, with default header values.
Error.
func NewV2TriggerEventInternalServerError ¶
func NewV2TriggerEventInternalServerError() *V2TriggerEventInternalServerError
NewV2TriggerEventInternalServerError creates a V2TriggerEventInternalServerError with default headers values
func (*V2TriggerEventInternalServerError) Error ¶
func (o *V2TriggerEventInternalServerError) Error() string
func (*V2TriggerEventInternalServerError) GetPayload ¶
func (o *V2TriggerEventInternalServerError) GetPayload() *models.Error
func (*V2TriggerEventInternalServerError) IsClientError ¶
func (o *V2TriggerEventInternalServerError) IsClientError() bool
IsClientError returns true when this v2 trigger event internal server error response has a 4xx status code
func (*V2TriggerEventInternalServerError) IsCode ¶
func (o *V2TriggerEventInternalServerError) IsCode(code int) bool
IsCode returns true when this v2 trigger event internal server error response a status code equal to that given
func (*V2TriggerEventInternalServerError) IsRedirect ¶
func (o *V2TriggerEventInternalServerError) IsRedirect() bool
IsRedirect returns true when this v2 trigger event internal server error response has a 3xx status code
func (*V2TriggerEventInternalServerError) IsServerError ¶
func (o *V2TriggerEventInternalServerError) IsServerError() bool
IsServerError returns true when this v2 trigger event internal server error response has a 5xx status code
func (*V2TriggerEventInternalServerError) IsSuccess ¶
func (o *V2TriggerEventInternalServerError) IsSuccess() bool
IsSuccess returns true when this v2 trigger event internal server error response has a 2xx status code
func (*V2TriggerEventInternalServerError) String ¶
func (o *V2TriggerEventInternalServerError) String() string
type V2TriggerEventMethodNotAllowed ¶
V2TriggerEventMethodNotAllowed describes a response with status code 405, with default header values.
Method Not Allowed.
func NewV2TriggerEventMethodNotAllowed ¶
func NewV2TriggerEventMethodNotAllowed() *V2TriggerEventMethodNotAllowed
NewV2TriggerEventMethodNotAllowed creates a V2TriggerEventMethodNotAllowed with default headers values
func (*V2TriggerEventMethodNotAllowed) Error ¶
func (o *V2TriggerEventMethodNotAllowed) Error() string
func (*V2TriggerEventMethodNotAllowed) GetPayload ¶
func (o *V2TriggerEventMethodNotAllowed) GetPayload() *models.Error
func (*V2TriggerEventMethodNotAllowed) IsClientError ¶
func (o *V2TriggerEventMethodNotAllowed) IsClientError() bool
IsClientError returns true when this v2 trigger event method not allowed response has a 4xx status code
func (*V2TriggerEventMethodNotAllowed) IsCode ¶
func (o *V2TriggerEventMethodNotAllowed) IsCode(code int) bool
IsCode returns true when this v2 trigger event method not allowed response a status code equal to that given
func (*V2TriggerEventMethodNotAllowed) IsRedirect ¶
func (o *V2TriggerEventMethodNotAllowed) IsRedirect() bool
IsRedirect returns true when this v2 trigger event method not allowed response has a 3xx status code
func (*V2TriggerEventMethodNotAllowed) IsServerError ¶
func (o *V2TriggerEventMethodNotAllowed) IsServerError() bool
IsServerError returns true when this v2 trigger event method not allowed response has a 5xx status code
func (*V2TriggerEventMethodNotAllowed) IsSuccess ¶
func (o *V2TriggerEventMethodNotAllowed) IsSuccess() bool
IsSuccess returns true when this v2 trigger event method not allowed response has a 2xx status code
func (*V2TriggerEventMethodNotAllowed) String ¶
func (o *V2TriggerEventMethodNotAllowed) String() string
type V2TriggerEventNotFound ¶
V2TriggerEventNotFound describes a response with status code 404, with default header values.
Error.
func NewV2TriggerEventNotFound ¶
func NewV2TriggerEventNotFound() *V2TriggerEventNotFound
NewV2TriggerEventNotFound creates a V2TriggerEventNotFound with default headers values
func (*V2TriggerEventNotFound) Error ¶
func (o *V2TriggerEventNotFound) Error() string
func (*V2TriggerEventNotFound) GetPayload ¶
func (o *V2TriggerEventNotFound) GetPayload() *models.Error
func (*V2TriggerEventNotFound) IsClientError ¶
func (o *V2TriggerEventNotFound) IsClientError() bool
IsClientError returns true when this v2 trigger event not found response has a 4xx status code
func (*V2TriggerEventNotFound) IsCode ¶
func (o *V2TriggerEventNotFound) IsCode(code int) bool
IsCode returns true when this v2 trigger event not found response a status code equal to that given
func (*V2TriggerEventNotFound) IsRedirect ¶
func (o *V2TriggerEventNotFound) IsRedirect() bool
IsRedirect returns true when this v2 trigger event not found response has a 3xx status code
func (*V2TriggerEventNotFound) IsServerError ¶
func (o *V2TriggerEventNotFound) IsServerError() bool
IsServerError returns true when this v2 trigger event not found response has a 5xx status code
func (*V2TriggerEventNotFound) IsSuccess ¶
func (o *V2TriggerEventNotFound) IsSuccess() bool
IsSuccess returns true when this v2 trigger event not found response has a 2xx status code
func (*V2TriggerEventNotFound) String ¶
func (o *V2TriggerEventNotFound) String() string
type V2TriggerEventNotImplemented ¶
V2TriggerEventNotImplemented describes a response with status code 501, with default header values.
Not implemented.
func NewV2TriggerEventNotImplemented ¶
func NewV2TriggerEventNotImplemented() *V2TriggerEventNotImplemented
NewV2TriggerEventNotImplemented creates a V2TriggerEventNotImplemented with default headers values
func (*V2TriggerEventNotImplemented) Error ¶
func (o *V2TriggerEventNotImplemented) Error() string
func (*V2TriggerEventNotImplemented) GetPayload ¶
func (o *V2TriggerEventNotImplemented) GetPayload() *models.Error
func (*V2TriggerEventNotImplemented) IsClientError ¶
func (o *V2TriggerEventNotImplemented) IsClientError() bool
IsClientError returns true when this v2 trigger event not implemented response has a 4xx status code
func (*V2TriggerEventNotImplemented) IsCode ¶
func (o *V2TriggerEventNotImplemented) IsCode(code int) bool
IsCode returns true when this v2 trigger event not implemented response a status code equal to that given
func (*V2TriggerEventNotImplemented) IsRedirect ¶
func (o *V2TriggerEventNotImplemented) IsRedirect() bool
IsRedirect returns true when this v2 trigger event not implemented response has a 3xx status code
func (*V2TriggerEventNotImplemented) IsServerError ¶
func (o *V2TriggerEventNotImplemented) IsServerError() bool
IsServerError returns true when this v2 trigger event not implemented response has a 5xx status code
func (*V2TriggerEventNotImplemented) IsSuccess ¶
func (o *V2TriggerEventNotImplemented) IsSuccess() bool
IsSuccess returns true when this v2 trigger event not implemented response has a 2xx status code
func (*V2TriggerEventNotImplemented) String ¶
func (o *V2TriggerEventNotImplemented) String() string
type V2TriggerEventParams ¶
type V2TriggerEventParams struct { /* TriggerEventParams. The event to be created. */ TriggerEventParams *models.Event Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
V2TriggerEventParams contains all the parameters to send to the API endpoint
for the v2 trigger event operation. Typically these are written to a http.Request.
func NewV2TriggerEventParams ¶
func NewV2TriggerEventParams() *V2TriggerEventParams
NewV2TriggerEventParams creates a new V2TriggerEventParams 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 NewV2TriggerEventParamsWithContext ¶
func NewV2TriggerEventParamsWithContext(ctx context.Context) *V2TriggerEventParams
NewV2TriggerEventParamsWithContext creates a new V2TriggerEventParams object with the ability to set a context for a request.
func NewV2TriggerEventParamsWithHTTPClient ¶
func NewV2TriggerEventParamsWithHTTPClient(client *http.Client) *V2TriggerEventParams
NewV2TriggerEventParamsWithHTTPClient creates a new V2TriggerEventParams object with the ability to set a custom HTTPClient for a request.
func NewV2TriggerEventParamsWithTimeout ¶
func NewV2TriggerEventParamsWithTimeout(timeout time.Duration) *V2TriggerEventParams
NewV2TriggerEventParamsWithTimeout creates a new V2TriggerEventParams object with the ability to set a timeout on a request.
func (*V2TriggerEventParams) SetContext ¶
func (o *V2TriggerEventParams) SetContext(ctx context.Context)
SetContext adds the context to the v2 trigger event params
func (*V2TriggerEventParams) SetDefaults ¶
func (o *V2TriggerEventParams) SetDefaults()
SetDefaults hydrates default values in the v2 trigger event params (not the query body).
All values with no default are reset to their zero value.
func (*V2TriggerEventParams) SetHTTPClient ¶
func (o *V2TriggerEventParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the v2 trigger event params
func (*V2TriggerEventParams) SetTimeout ¶
func (o *V2TriggerEventParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the v2 trigger event params
func (*V2TriggerEventParams) SetTriggerEventParams ¶
func (o *V2TriggerEventParams) SetTriggerEventParams(triggerEventParams *models.Event)
SetTriggerEventParams adds the triggerEventParams to the v2 trigger event params
func (*V2TriggerEventParams) WithContext ¶
func (o *V2TriggerEventParams) WithContext(ctx context.Context) *V2TriggerEventParams
WithContext adds the context to the v2 trigger event params
func (*V2TriggerEventParams) WithDefaults ¶
func (o *V2TriggerEventParams) WithDefaults() *V2TriggerEventParams
WithDefaults hydrates default values in the v2 trigger event params (not the query body).
All values with no default are reset to their zero value.
func (*V2TriggerEventParams) WithHTTPClient ¶
func (o *V2TriggerEventParams) WithHTTPClient(client *http.Client) *V2TriggerEventParams
WithHTTPClient adds the HTTPClient to the v2 trigger event params
func (*V2TriggerEventParams) WithTimeout ¶
func (o *V2TriggerEventParams) WithTimeout(timeout time.Duration) *V2TriggerEventParams
WithTimeout adds the timeout to the v2 trigger event params
func (*V2TriggerEventParams) WithTriggerEventParams ¶
func (o *V2TriggerEventParams) WithTriggerEventParams(triggerEventParams *models.Event) *V2TriggerEventParams
WithTriggerEventParams adds the triggerEventParams to the v2 trigger event params
func (*V2TriggerEventParams) WriteToRequest ¶
func (o *V2TriggerEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type V2TriggerEventReader ¶
type V2TriggerEventReader struct {
// contains filtered or unexported fields
}
V2TriggerEventReader is a Reader for the V2TriggerEvent structure.
func (*V2TriggerEventReader) ReadResponse ¶
func (o *V2TriggerEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type V2TriggerEventServiceUnavailable ¶
type V2TriggerEventServiceUnavailable struct {
}V2TriggerEventServiceUnavailable describes a response with status code 503, with default header values.
Unavailable.
func NewV2TriggerEventServiceUnavailable ¶
func NewV2TriggerEventServiceUnavailable() *V2TriggerEventServiceUnavailable
NewV2TriggerEventServiceUnavailable creates a V2TriggerEventServiceUnavailable with default headers values
func (*V2TriggerEventServiceUnavailable) Error ¶
func (o *V2TriggerEventServiceUnavailable) Error() string
func (*V2TriggerEventServiceUnavailable) GetPayload ¶
func (o *V2TriggerEventServiceUnavailable) GetPayload() *models.Error
func (*V2TriggerEventServiceUnavailable) IsClientError ¶
func (o *V2TriggerEventServiceUnavailable) IsClientError() bool
IsClientError returns true when this v2 trigger event service unavailable response has a 4xx status code
func (*V2TriggerEventServiceUnavailable) IsCode ¶
func (o *V2TriggerEventServiceUnavailable) IsCode(code int) bool
IsCode returns true when this v2 trigger event service unavailable response a status code equal to that given
func (*V2TriggerEventServiceUnavailable) IsRedirect ¶
func (o *V2TriggerEventServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this v2 trigger event service unavailable response has a 3xx status code
func (*V2TriggerEventServiceUnavailable) IsServerError ¶
func (o *V2TriggerEventServiceUnavailable) IsServerError() bool
IsServerError returns true when this v2 trigger event service unavailable response has a 5xx status code
func (*V2TriggerEventServiceUnavailable) IsSuccess ¶
func (o *V2TriggerEventServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this v2 trigger event service unavailable response has a 2xx status code
func (*V2TriggerEventServiceUnavailable) String ¶
func (o *V2TriggerEventServiceUnavailable) String() string
type V2TriggerEventUnauthorized ¶
type V2TriggerEventUnauthorized struct {
}V2TriggerEventUnauthorized describes a response with status code 401, with default header values.
Unauthorized.
func NewV2TriggerEventUnauthorized ¶
func NewV2TriggerEventUnauthorized() *V2TriggerEventUnauthorized
NewV2TriggerEventUnauthorized creates a V2TriggerEventUnauthorized with default headers values
func (*V2TriggerEventUnauthorized) Error ¶
func (o *V2TriggerEventUnauthorized) Error() string
func (*V2TriggerEventUnauthorized) GetPayload ¶
func (o *V2TriggerEventUnauthorized) GetPayload() *models.InfraError
func (*V2TriggerEventUnauthorized) IsClientError ¶
func (o *V2TriggerEventUnauthorized) IsClientError() bool
IsClientError returns true when this v2 trigger event unauthorized response has a 4xx status code
func (*V2TriggerEventUnauthorized) IsCode ¶
func (o *V2TriggerEventUnauthorized) IsCode(code int) bool
IsCode returns true when this v2 trigger event unauthorized response a status code equal to that given
func (*V2TriggerEventUnauthorized) IsRedirect ¶
func (o *V2TriggerEventUnauthorized) IsRedirect() bool
IsRedirect returns true when this v2 trigger event unauthorized response has a 3xx status code
func (*V2TriggerEventUnauthorized) IsServerError ¶
func (o *V2TriggerEventUnauthorized) IsServerError() bool
IsServerError returns true when this v2 trigger event unauthorized response has a 5xx status code
func (*V2TriggerEventUnauthorized) IsSuccess ¶
func (o *V2TriggerEventUnauthorized) IsSuccess() bool
IsSuccess returns true when this v2 trigger event unauthorized response has a 2xx status code
func (*V2TriggerEventUnauthorized) String ¶
func (o *V2TriggerEventUnauthorized) String() string