Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteWebhooksID(params *DeleteWebhooksIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteWebhooksIDAccepted, error)
- func (a *Client) GetWebhooks(params *GetWebhooksParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWebhooksOK, error)
- func (a *Client) PostWebhooks(params *PostWebhooksParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostWebhooksOK, error)
- func (a *Client) PostWebhooksID(params *PostWebhooksIDParams, opts ...ClientOption) (*PostWebhooksIDAccepted, error)
- func (a *Client) PutWebhooksID(params *PutWebhooksIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutWebhooksIDOK, error)
- func (a *Client) PutWebhooksIDReassign(params *PutWebhooksIDReassignParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutWebhooksIDReassignOK, *PutWebhooksIDReassignNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteWebhooksIDAccepted
- func (o *DeleteWebhooksIDAccepted) Code() int
- func (o *DeleteWebhooksIDAccepted) Error() string
- func (o *DeleteWebhooksIDAccepted) IsClientError() bool
- func (o *DeleteWebhooksIDAccepted) IsCode(code int) bool
- func (o *DeleteWebhooksIDAccepted) IsRedirect() bool
- func (o *DeleteWebhooksIDAccepted) IsServerError() bool
- func (o *DeleteWebhooksIDAccepted) IsSuccess() bool
- func (o *DeleteWebhooksIDAccepted) String() string
- type DeleteWebhooksIDBadRequest
- func (o *DeleteWebhooksIDBadRequest) Code() int
- func (o *DeleteWebhooksIDBadRequest) Error() string
- func (o *DeleteWebhooksIDBadRequest) IsClientError() bool
- func (o *DeleteWebhooksIDBadRequest) IsCode(code int) bool
- func (o *DeleteWebhooksIDBadRequest) IsRedirect() bool
- func (o *DeleteWebhooksIDBadRequest) IsServerError() bool
- func (o *DeleteWebhooksIDBadRequest) IsSuccess() bool
- func (o *DeleteWebhooksIDBadRequest) String() string
- type DeleteWebhooksIDInternalServerError
- func (o *DeleteWebhooksIDInternalServerError) Code() int
- func (o *DeleteWebhooksIDInternalServerError) Error() string
- func (o *DeleteWebhooksIDInternalServerError) IsClientError() bool
- func (o *DeleteWebhooksIDInternalServerError) IsCode(code int) bool
- func (o *DeleteWebhooksIDInternalServerError) IsRedirect() bool
- func (o *DeleteWebhooksIDInternalServerError) IsServerError() bool
- func (o *DeleteWebhooksIDInternalServerError) IsSuccess() bool
- func (o *DeleteWebhooksIDInternalServerError) String() string
- type DeleteWebhooksIDParams
- func NewDeleteWebhooksIDParams() *DeleteWebhooksIDParams
- func NewDeleteWebhooksIDParamsWithContext(ctx context.Context) *DeleteWebhooksIDParams
- func NewDeleteWebhooksIDParamsWithHTTPClient(client *http.Client) *DeleteWebhooksIDParams
- func NewDeleteWebhooksIDParamsWithTimeout(timeout time.Duration) *DeleteWebhooksIDParams
- func (o *DeleteWebhooksIDParams) SetContext(ctx context.Context)
- func (o *DeleteWebhooksIDParams) SetDefaults()
- func (o *DeleteWebhooksIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWebhooksIDParams) SetID(id int64)
- func (o *DeleteWebhooksIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWebhooksIDParams) WithContext(ctx context.Context) *DeleteWebhooksIDParams
- func (o *DeleteWebhooksIDParams) WithDefaults() *DeleteWebhooksIDParams
- func (o *DeleteWebhooksIDParams) WithHTTPClient(client *http.Client) *DeleteWebhooksIDParams
- func (o *DeleteWebhooksIDParams) WithID(id int64) *DeleteWebhooksIDParams
- func (o *DeleteWebhooksIDParams) WithTimeout(timeout time.Duration) *DeleteWebhooksIDParams
- func (o *DeleteWebhooksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWebhooksIDReader
- type GetWebhooksBadRequest
- func (o *GetWebhooksBadRequest) Code() int
- func (o *GetWebhooksBadRequest) Error() string
- func (o *GetWebhooksBadRequest) IsClientError() bool
- func (o *GetWebhooksBadRequest) IsCode(code int) bool
- func (o *GetWebhooksBadRequest) IsRedirect() bool
- func (o *GetWebhooksBadRequest) IsServerError() bool
- func (o *GetWebhooksBadRequest) IsSuccess() bool
- func (o *GetWebhooksBadRequest) String() string
- type GetWebhooksInternalServerError
- func (o *GetWebhooksInternalServerError) Code() int
- func (o *GetWebhooksInternalServerError) Error() string
- func (o *GetWebhooksInternalServerError) IsClientError() bool
- func (o *GetWebhooksInternalServerError) IsCode(code int) bool
- func (o *GetWebhooksInternalServerError) IsRedirect() bool
- func (o *GetWebhooksInternalServerError) IsServerError() bool
- func (o *GetWebhooksInternalServerError) IsSuccess() bool
- func (o *GetWebhooksInternalServerError) String() string
- type GetWebhooksOK
- func (o *GetWebhooksOK) Code() int
- func (o *GetWebhooksOK) Error() string
- func (o *GetWebhooksOK) GetPayload() []*models.PortainerWebhook
- func (o *GetWebhooksOK) IsClientError() bool
- func (o *GetWebhooksOK) IsCode(code int) bool
- func (o *GetWebhooksOK) IsRedirect() bool
- func (o *GetWebhooksOK) IsServerError() bool
- func (o *GetWebhooksOK) IsSuccess() bool
- func (o *GetWebhooksOK) String() string
- type GetWebhooksParams
- func (o *GetWebhooksParams) SetContext(ctx context.Context)
- func (o *GetWebhooksParams) SetDefaults()
- func (o *GetWebhooksParams) SetFilters(filters *string)
- func (o *GetWebhooksParams) SetHTTPClient(client *http.Client)
- func (o *GetWebhooksParams) SetTimeout(timeout time.Duration)
- func (o *GetWebhooksParams) WithContext(ctx context.Context) *GetWebhooksParams
- func (o *GetWebhooksParams) WithDefaults() *GetWebhooksParams
- func (o *GetWebhooksParams) WithFilters(filters *string) *GetWebhooksParams
- func (o *GetWebhooksParams) WithHTTPClient(client *http.Client) *GetWebhooksParams
- func (o *GetWebhooksParams) WithTimeout(timeout time.Duration) *GetWebhooksParams
- func (o *GetWebhooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWebhooksReader
- type PostWebhooksBadRequest
- func (o *PostWebhooksBadRequest) Code() int
- func (o *PostWebhooksBadRequest) Error() string
- func (o *PostWebhooksBadRequest) IsClientError() bool
- func (o *PostWebhooksBadRequest) IsCode(code int) bool
- func (o *PostWebhooksBadRequest) IsRedirect() bool
- func (o *PostWebhooksBadRequest) IsServerError() bool
- func (o *PostWebhooksBadRequest) IsSuccess() bool
- func (o *PostWebhooksBadRequest) String() string
- type PostWebhooksConflict
- func (o *PostWebhooksConflict) Code() int
- func (o *PostWebhooksConflict) Error() string
- func (o *PostWebhooksConflict) IsClientError() bool
- func (o *PostWebhooksConflict) IsCode(code int) bool
- func (o *PostWebhooksConflict) IsRedirect() bool
- func (o *PostWebhooksConflict) IsServerError() bool
- func (o *PostWebhooksConflict) IsSuccess() bool
- func (o *PostWebhooksConflict) String() string
- type PostWebhooksIDAccepted
- func (o *PostWebhooksIDAccepted) Code() int
- func (o *PostWebhooksIDAccepted) Error() string
- func (o *PostWebhooksIDAccepted) IsClientError() bool
- func (o *PostWebhooksIDAccepted) IsCode(code int) bool
- func (o *PostWebhooksIDAccepted) IsRedirect() bool
- func (o *PostWebhooksIDAccepted) IsServerError() bool
- func (o *PostWebhooksIDAccepted) IsSuccess() bool
- func (o *PostWebhooksIDAccepted) String() string
- type PostWebhooksIDBadRequest
- func (o *PostWebhooksIDBadRequest) Code() int
- func (o *PostWebhooksIDBadRequest) Error() string
- func (o *PostWebhooksIDBadRequest) IsClientError() bool
- func (o *PostWebhooksIDBadRequest) IsCode(code int) bool
- func (o *PostWebhooksIDBadRequest) IsRedirect() bool
- func (o *PostWebhooksIDBadRequest) IsServerError() bool
- func (o *PostWebhooksIDBadRequest) IsSuccess() bool
- func (o *PostWebhooksIDBadRequest) String() string
- type PostWebhooksIDInternalServerError
- func (o *PostWebhooksIDInternalServerError) Code() int
- func (o *PostWebhooksIDInternalServerError) Error() string
- func (o *PostWebhooksIDInternalServerError) IsClientError() bool
- func (o *PostWebhooksIDInternalServerError) IsCode(code int) bool
- func (o *PostWebhooksIDInternalServerError) IsRedirect() bool
- func (o *PostWebhooksIDInternalServerError) IsServerError() bool
- func (o *PostWebhooksIDInternalServerError) IsSuccess() bool
- func (o *PostWebhooksIDInternalServerError) String() string
- type PostWebhooksIDParams
- func NewPostWebhooksIDParams() *PostWebhooksIDParams
- func NewPostWebhooksIDParamsWithContext(ctx context.Context) *PostWebhooksIDParams
- func NewPostWebhooksIDParamsWithHTTPClient(client *http.Client) *PostWebhooksIDParams
- func NewPostWebhooksIDParamsWithTimeout(timeout time.Duration) *PostWebhooksIDParams
- func (o *PostWebhooksIDParams) SetContext(ctx context.Context)
- func (o *PostWebhooksIDParams) SetDefaults()
- func (o *PostWebhooksIDParams) SetHTTPClient(client *http.Client)
- func (o *PostWebhooksIDParams) SetID(id string)
- func (o *PostWebhooksIDParams) SetTimeout(timeout time.Duration)
- func (o *PostWebhooksIDParams) WithContext(ctx context.Context) *PostWebhooksIDParams
- func (o *PostWebhooksIDParams) WithDefaults() *PostWebhooksIDParams
- func (o *PostWebhooksIDParams) WithHTTPClient(client *http.Client) *PostWebhooksIDParams
- func (o *PostWebhooksIDParams) WithID(id string) *PostWebhooksIDParams
- func (o *PostWebhooksIDParams) WithTimeout(timeout time.Duration) *PostWebhooksIDParams
- func (o *PostWebhooksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWebhooksIDReader
- type PostWebhooksInternalServerError
- func (o *PostWebhooksInternalServerError) Code() int
- func (o *PostWebhooksInternalServerError) Error() string
- func (o *PostWebhooksInternalServerError) IsClientError() bool
- func (o *PostWebhooksInternalServerError) IsCode(code int) bool
- func (o *PostWebhooksInternalServerError) IsRedirect() bool
- func (o *PostWebhooksInternalServerError) IsServerError() bool
- func (o *PostWebhooksInternalServerError) IsSuccess() bool
- func (o *PostWebhooksInternalServerError) String() string
- type PostWebhooksOK
- func (o *PostWebhooksOK) Code() int
- func (o *PostWebhooksOK) Error() string
- func (o *PostWebhooksOK) GetPayload() *models.PortainerWebhook
- func (o *PostWebhooksOK) IsClientError() bool
- func (o *PostWebhooksOK) IsCode(code int) bool
- func (o *PostWebhooksOK) IsRedirect() bool
- func (o *PostWebhooksOK) IsServerError() bool
- func (o *PostWebhooksOK) IsSuccess() bool
- func (o *PostWebhooksOK) String() string
- type PostWebhooksParams
- func (o *PostWebhooksParams) SetBody(body *models.WebhooksWebhookCreatePayload)
- func (o *PostWebhooksParams) SetContext(ctx context.Context)
- func (o *PostWebhooksParams) SetDefaults()
- func (o *PostWebhooksParams) SetHTTPClient(client *http.Client)
- func (o *PostWebhooksParams) SetTimeout(timeout time.Duration)
- func (o *PostWebhooksParams) WithBody(body *models.WebhooksWebhookCreatePayload) *PostWebhooksParams
- func (o *PostWebhooksParams) WithContext(ctx context.Context) *PostWebhooksParams
- func (o *PostWebhooksParams) WithDefaults() *PostWebhooksParams
- func (o *PostWebhooksParams) WithHTTPClient(client *http.Client) *PostWebhooksParams
- func (o *PostWebhooksParams) WithTimeout(timeout time.Duration) *PostWebhooksParams
- func (o *PostWebhooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostWebhooksReader
- type PutWebhooksIDBadRequest
- func (o *PutWebhooksIDBadRequest) Code() int
- func (o *PutWebhooksIDBadRequest) Error() string
- func (o *PutWebhooksIDBadRequest) IsClientError() bool
- func (o *PutWebhooksIDBadRequest) IsCode(code int) bool
- func (o *PutWebhooksIDBadRequest) IsRedirect() bool
- func (o *PutWebhooksIDBadRequest) IsServerError() bool
- func (o *PutWebhooksIDBadRequest) IsSuccess() bool
- func (o *PutWebhooksIDBadRequest) String() string
- type PutWebhooksIDConflict
- func (o *PutWebhooksIDConflict) Code() int
- func (o *PutWebhooksIDConflict) Error() string
- func (o *PutWebhooksIDConflict) IsClientError() bool
- func (o *PutWebhooksIDConflict) IsCode(code int) bool
- func (o *PutWebhooksIDConflict) IsRedirect() bool
- func (o *PutWebhooksIDConflict) IsServerError() bool
- func (o *PutWebhooksIDConflict) IsSuccess() bool
- func (o *PutWebhooksIDConflict) String() string
- type PutWebhooksIDInternalServerError
- func (o *PutWebhooksIDInternalServerError) Code() int
- func (o *PutWebhooksIDInternalServerError) Error() string
- func (o *PutWebhooksIDInternalServerError) IsClientError() bool
- func (o *PutWebhooksIDInternalServerError) IsCode(code int) bool
- func (o *PutWebhooksIDInternalServerError) IsRedirect() bool
- func (o *PutWebhooksIDInternalServerError) IsServerError() bool
- func (o *PutWebhooksIDInternalServerError) IsSuccess() bool
- func (o *PutWebhooksIDInternalServerError) String() string
- type PutWebhooksIDOK
- func (o *PutWebhooksIDOK) Code() int
- func (o *PutWebhooksIDOK) Error() string
- func (o *PutWebhooksIDOK) GetPayload() *models.PortainerWebhook
- func (o *PutWebhooksIDOK) IsClientError() bool
- func (o *PutWebhooksIDOK) IsCode(code int) bool
- func (o *PutWebhooksIDOK) IsRedirect() bool
- func (o *PutWebhooksIDOK) IsServerError() bool
- func (o *PutWebhooksIDOK) IsSuccess() bool
- func (o *PutWebhooksIDOK) String() string
- type PutWebhooksIDParams
- func (o *PutWebhooksIDParams) SetBody(body *models.WebhooksWebhookUpdatePayload)
- func (o *PutWebhooksIDParams) SetContext(ctx context.Context)
- func (o *PutWebhooksIDParams) SetDefaults()
- func (o *PutWebhooksIDParams) SetHTTPClient(client *http.Client)
- func (o *PutWebhooksIDParams) SetID(id int64)
- func (o *PutWebhooksIDParams) SetTimeout(timeout time.Duration)
- func (o *PutWebhooksIDParams) WithBody(body *models.WebhooksWebhookUpdatePayload) *PutWebhooksIDParams
- func (o *PutWebhooksIDParams) WithContext(ctx context.Context) *PutWebhooksIDParams
- func (o *PutWebhooksIDParams) WithDefaults() *PutWebhooksIDParams
- func (o *PutWebhooksIDParams) WithHTTPClient(client *http.Client) *PutWebhooksIDParams
- func (o *PutWebhooksIDParams) WithID(id int64) *PutWebhooksIDParams
- func (o *PutWebhooksIDParams) WithTimeout(timeout time.Duration) *PutWebhooksIDParams
- func (o *PutWebhooksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutWebhooksIDReader
- type PutWebhooksIDReassignBadRequest
- func (o *PutWebhooksIDReassignBadRequest) Code() int
- func (o *PutWebhooksIDReassignBadRequest) Error() string
- func (o *PutWebhooksIDReassignBadRequest) IsClientError() bool
- func (o *PutWebhooksIDReassignBadRequest) IsCode(code int) bool
- func (o *PutWebhooksIDReassignBadRequest) IsRedirect() bool
- func (o *PutWebhooksIDReassignBadRequest) IsServerError() bool
- func (o *PutWebhooksIDReassignBadRequest) IsSuccess() bool
- func (o *PutWebhooksIDReassignBadRequest) String() string
- type PutWebhooksIDReassignInternalServerError
- func (o *PutWebhooksIDReassignInternalServerError) Code() int
- func (o *PutWebhooksIDReassignInternalServerError) Error() string
- func (o *PutWebhooksIDReassignInternalServerError) IsClientError() bool
- func (o *PutWebhooksIDReassignInternalServerError) IsCode(code int) bool
- func (o *PutWebhooksIDReassignInternalServerError) IsRedirect() bool
- func (o *PutWebhooksIDReassignInternalServerError) IsServerError() bool
- func (o *PutWebhooksIDReassignInternalServerError) IsSuccess() bool
- func (o *PutWebhooksIDReassignInternalServerError) String() string
- type PutWebhooksIDReassignNoContent
- func (o *PutWebhooksIDReassignNoContent) Code() int
- func (o *PutWebhooksIDReassignNoContent) Error() string
- func (o *PutWebhooksIDReassignNoContent) IsClientError() bool
- func (o *PutWebhooksIDReassignNoContent) IsCode(code int) bool
- func (o *PutWebhooksIDReassignNoContent) IsRedirect() bool
- func (o *PutWebhooksIDReassignNoContent) IsServerError() bool
- func (o *PutWebhooksIDReassignNoContent) IsSuccess() bool
- func (o *PutWebhooksIDReassignNoContent) String() string
- type PutWebhooksIDReassignNotFound
- func (o *PutWebhooksIDReassignNotFound) Code() int
- func (o *PutWebhooksIDReassignNotFound) Error() string
- func (o *PutWebhooksIDReassignNotFound) IsClientError() bool
- func (o *PutWebhooksIDReassignNotFound) IsCode(code int) bool
- func (o *PutWebhooksIDReassignNotFound) IsRedirect() bool
- func (o *PutWebhooksIDReassignNotFound) IsServerError() bool
- func (o *PutWebhooksIDReassignNotFound) IsSuccess() bool
- func (o *PutWebhooksIDReassignNotFound) String() string
- type PutWebhooksIDReassignOK
- func (o *PutWebhooksIDReassignOK) Code() int
- func (o *PutWebhooksIDReassignOK) Error() string
- func (o *PutWebhooksIDReassignOK) GetPayload() *models.PortainerWebhook
- func (o *PutWebhooksIDReassignOK) IsClientError() bool
- func (o *PutWebhooksIDReassignOK) IsCode(code int) bool
- func (o *PutWebhooksIDReassignOK) IsRedirect() bool
- func (o *PutWebhooksIDReassignOK) IsServerError() bool
- func (o *PutWebhooksIDReassignOK) IsSuccess() bool
- func (o *PutWebhooksIDReassignOK) String() string
- type PutWebhooksIDReassignParams
- func NewPutWebhooksIDReassignParams() *PutWebhooksIDReassignParams
- func NewPutWebhooksIDReassignParamsWithContext(ctx context.Context) *PutWebhooksIDReassignParams
- func NewPutWebhooksIDReassignParamsWithHTTPClient(client *http.Client) *PutWebhooksIDReassignParams
- func NewPutWebhooksIDReassignParamsWithTimeout(timeout time.Duration) *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) SetBody(body *models.WebhooksWebhookReassignPayload)
- func (o *PutWebhooksIDReassignParams) SetContext(ctx context.Context)
- func (o *PutWebhooksIDReassignParams) SetDefaults()
- func (o *PutWebhooksIDReassignParams) SetHTTPClient(client *http.Client)
- func (o *PutWebhooksIDReassignParams) SetID(id int64)
- func (o *PutWebhooksIDReassignParams) SetTimeout(timeout time.Duration)
- func (o *PutWebhooksIDReassignParams) WithBody(body *models.WebhooksWebhookReassignPayload) *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) WithContext(ctx context.Context) *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) WithDefaults() *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) WithHTTPClient(client *http.Client) *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) WithID(id int64) *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) WithTimeout(timeout time.Duration) *PutWebhooksIDReassignParams
- func (o *PutWebhooksIDReassignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutWebhooksIDReassignReader
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 webhooks API
func (*Client) DeleteWebhooksID ¶
func (a *Client) DeleteWebhooksID(params *DeleteWebhooksIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWebhooksIDAccepted, error)
DeleteWebhooksID deletes a webhook
**Access policy**: authenticated
func (*Client) GetWebhooks ¶
func (a *Client) GetWebhooks(params *GetWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWebhooksOK, error)
GetWebhooks lists webhooks
**Access policy**: authenticated
func (*Client) PostWebhooks ¶
func (a *Client) PostWebhooks(params *PostWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostWebhooksOK, error)
PostWebhooks creates a webhook
**Access policy**: authenticated
func (*Client) PostWebhooksID ¶
func (a *Client) PostWebhooksID(params *PostWebhooksIDParams, opts ...ClientOption) (*PostWebhooksIDAccepted, error)
PostWebhooksID executes a webhook Acts on a passed in token UUID to restart the docker service
**Access policy**: public
func (*Client) PutWebhooksID ¶
func (a *Client) PutWebhooksID(params *PutWebhooksIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWebhooksIDOK, error)
PutWebhooksID updates a webhook
**Access policy**: authenticated
func (*Client) PutWebhooksIDReassign ¶
func (a *Client) PutWebhooksIDReassign(params *PutWebhooksIDReassignParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWebhooksIDReassignOK, *PutWebhooksIDReassignNoContent, error)
PutWebhooksIDReassign reassigns a webhook to another resource
**Access policy**: authenticated
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
DeleteWebhooksID(params *DeleteWebhooksIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWebhooksIDAccepted, error)
GetWebhooks(params *GetWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWebhooksOK, error)
PostWebhooks(params *PostWebhooksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostWebhooksOK, error)
PostWebhooksID(params *PostWebhooksIDParams, opts ...ClientOption) (*PostWebhooksIDAccepted, error)
PutWebhooksID(params *PutWebhooksIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWebhooksIDOK, error)
PutWebhooksIDReassign(params *PutWebhooksIDReassignParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWebhooksIDReassignOK, *PutWebhooksIDReassignNoContent, 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 webhooks API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new webhooks API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new webhooks API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type DeleteWebhooksIDAccepted ¶
type DeleteWebhooksIDAccepted struct {
}
DeleteWebhooksIDAccepted describes a response with status code 202, with default header values.
Webhook deleted
func NewDeleteWebhooksIDAccepted ¶
func NewDeleteWebhooksIDAccepted() *DeleteWebhooksIDAccepted
NewDeleteWebhooksIDAccepted creates a DeleteWebhooksIDAccepted with default headers values
func (*DeleteWebhooksIDAccepted) Code ¶
func (o *DeleteWebhooksIDAccepted) Code() int
Code gets the status code for the delete webhooks Id accepted response
func (*DeleteWebhooksIDAccepted) Error ¶
func (o *DeleteWebhooksIDAccepted) Error() string
func (*DeleteWebhooksIDAccepted) IsClientError ¶
func (o *DeleteWebhooksIDAccepted) IsClientError() bool
IsClientError returns true when this delete webhooks Id accepted response has a 4xx status code
func (*DeleteWebhooksIDAccepted) IsCode ¶
func (o *DeleteWebhooksIDAccepted) IsCode(code int) bool
IsCode returns true when this delete webhooks Id accepted response a status code equal to that given
func (*DeleteWebhooksIDAccepted) IsRedirect ¶
func (o *DeleteWebhooksIDAccepted) IsRedirect() bool
IsRedirect returns true when this delete webhooks Id accepted response has a 3xx status code
func (*DeleteWebhooksIDAccepted) IsServerError ¶
func (o *DeleteWebhooksIDAccepted) IsServerError() bool
IsServerError returns true when this delete webhooks Id accepted response has a 5xx status code
func (*DeleteWebhooksIDAccepted) IsSuccess ¶
func (o *DeleteWebhooksIDAccepted) IsSuccess() bool
IsSuccess returns true when this delete webhooks Id accepted response has a 2xx status code
func (*DeleteWebhooksIDAccepted) String ¶
func (o *DeleteWebhooksIDAccepted) String() string
type DeleteWebhooksIDBadRequest ¶
type DeleteWebhooksIDBadRequest struct {
}
DeleteWebhooksIDBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteWebhooksIDBadRequest ¶
func NewDeleteWebhooksIDBadRequest() *DeleteWebhooksIDBadRequest
NewDeleteWebhooksIDBadRequest creates a DeleteWebhooksIDBadRequest with default headers values
func (*DeleteWebhooksIDBadRequest) Code ¶
func (o *DeleteWebhooksIDBadRequest) Code() int
Code gets the status code for the delete webhooks Id bad request response
func (*DeleteWebhooksIDBadRequest) Error ¶
func (o *DeleteWebhooksIDBadRequest) Error() string
func (*DeleteWebhooksIDBadRequest) IsClientError ¶
func (o *DeleteWebhooksIDBadRequest) IsClientError() bool
IsClientError returns true when this delete webhooks Id bad request response has a 4xx status code
func (*DeleteWebhooksIDBadRequest) IsCode ¶
func (o *DeleteWebhooksIDBadRequest) IsCode(code int) bool
IsCode returns true when this delete webhooks Id bad request response a status code equal to that given
func (*DeleteWebhooksIDBadRequest) IsRedirect ¶
func (o *DeleteWebhooksIDBadRequest) IsRedirect() bool
IsRedirect returns true when this delete webhooks Id bad request response has a 3xx status code
func (*DeleteWebhooksIDBadRequest) IsServerError ¶
func (o *DeleteWebhooksIDBadRequest) IsServerError() bool
IsServerError returns true when this delete webhooks Id bad request response has a 5xx status code
func (*DeleteWebhooksIDBadRequest) IsSuccess ¶
func (o *DeleteWebhooksIDBadRequest) IsSuccess() bool
IsSuccess returns true when this delete webhooks Id bad request response has a 2xx status code
func (*DeleteWebhooksIDBadRequest) String ¶
func (o *DeleteWebhooksIDBadRequest) String() string
type DeleteWebhooksIDInternalServerError ¶
type DeleteWebhooksIDInternalServerError struct {
}
DeleteWebhooksIDInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewDeleteWebhooksIDInternalServerError ¶
func NewDeleteWebhooksIDInternalServerError() *DeleteWebhooksIDInternalServerError
NewDeleteWebhooksIDInternalServerError creates a DeleteWebhooksIDInternalServerError with default headers values
func (*DeleteWebhooksIDInternalServerError) Code ¶
func (o *DeleteWebhooksIDInternalServerError) Code() int
Code gets the status code for the delete webhooks Id internal server error response
func (*DeleteWebhooksIDInternalServerError) Error ¶
func (o *DeleteWebhooksIDInternalServerError) Error() string
func (*DeleteWebhooksIDInternalServerError) IsClientError ¶
func (o *DeleteWebhooksIDInternalServerError) IsClientError() bool
IsClientError returns true when this delete webhooks Id internal server error response has a 4xx status code
func (*DeleteWebhooksIDInternalServerError) IsCode ¶
func (o *DeleteWebhooksIDInternalServerError) IsCode(code int) bool
IsCode returns true when this delete webhooks Id internal server error response a status code equal to that given
func (*DeleteWebhooksIDInternalServerError) IsRedirect ¶
func (o *DeleteWebhooksIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete webhooks Id internal server error response has a 3xx status code
func (*DeleteWebhooksIDInternalServerError) IsServerError ¶
func (o *DeleteWebhooksIDInternalServerError) IsServerError() bool
IsServerError returns true when this delete webhooks Id internal server error response has a 5xx status code
func (*DeleteWebhooksIDInternalServerError) IsSuccess ¶
func (o *DeleteWebhooksIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete webhooks Id internal server error response has a 2xx status code
func (*DeleteWebhooksIDInternalServerError) String ¶
func (o *DeleteWebhooksIDInternalServerError) String() string
type DeleteWebhooksIDParams ¶
type DeleteWebhooksIDParams struct {
/* ID.
Webhook id
*/
ID int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteWebhooksIDParams contains all the parameters to send to the API endpoint
for the delete webhooks ID operation. Typically these are written to a http.Request.
func NewDeleteWebhooksIDParams ¶
func NewDeleteWebhooksIDParams() *DeleteWebhooksIDParams
NewDeleteWebhooksIDParams creates a new DeleteWebhooksIDParams 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 NewDeleteWebhooksIDParamsWithContext ¶
func NewDeleteWebhooksIDParamsWithContext(ctx context.Context) *DeleteWebhooksIDParams
NewDeleteWebhooksIDParamsWithContext creates a new DeleteWebhooksIDParams object with the ability to set a context for a request.
func NewDeleteWebhooksIDParamsWithHTTPClient ¶
func NewDeleteWebhooksIDParamsWithHTTPClient(client *http.Client) *DeleteWebhooksIDParams
NewDeleteWebhooksIDParamsWithHTTPClient creates a new DeleteWebhooksIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteWebhooksIDParamsWithTimeout ¶
func NewDeleteWebhooksIDParamsWithTimeout(timeout time.Duration) *DeleteWebhooksIDParams
NewDeleteWebhooksIDParamsWithTimeout creates a new DeleteWebhooksIDParams object with the ability to set a timeout on a request.
func (*DeleteWebhooksIDParams) SetContext ¶
func (o *DeleteWebhooksIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete webhooks ID params
func (*DeleteWebhooksIDParams) SetDefaults ¶
func (o *DeleteWebhooksIDParams) SetDefaults()
SetDefaults hydrates default values in the delete webhooks ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWebhooksIDParams) SetHTTPClient ¶
func (o *DeleteWebhooksIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete webhooks ID params
func (*DeleteWebhooksIDParams) SetID ¶
func (o *DeleteWebhooksIDParams) SetID(id int64)
SetID adds the id to the delete webhooks ID params
func (*DeleteWebhooksIDParams) SetTimeout ¶
func (o *DeleteWebhooksIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete webhooks ID params
func (*DeleteWebhooksIDParams) WithContext ¶
func (o *DeleteWebhooksIDParams) WithContext(ctx context.Context) *DeleteWebhooksIDParams
WithContext adds the context to the delete webhooks ID params
func (*DeleteWebhooksIDParams) WithDefaults ¶
func (o *DeleteWebhooksIDParams) WithDefaults() *DeleteWebhooksIDParams
WithDefaults hydrates default values in the delete webhooks ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWebhooksIDParams) WithHTTPClient ¶
func (o *DeleteWebhooksIDParams) WithHTTPClient(client *http.Client) *DeleteWebhooksIDParams
WithHTTPClient adds the HTTPClient to the delete webhooks ID params
func (*DeleteWebhooksIDParams) WithID ¶
func (o *DeleteWebhooksIDParams) WithID(id int64) *DeleteWebhooksIDParams
WithID adds the id to the delete webhooks ID params
func (*DeleteWebhooksIDParams) WithTimeout ¶
func (o *DeleteWebhooksIDParams) WithTimeout(timeout time.Duration) *DeleteWebhooksIDParams
WithTimeout adds the timeout to the delete webhooks ID params
func (*DeleteWebhooksIDParams) WriteToRequest ¶
func (o *DeleteWebhooksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteWebhooksIDReader ¶
type DeleteWebhooksIDReader struct {
// contains filtered or unexported fields
}
DeleteWebhooksIDReader is a Reader for the DeleteWebhooksID structure.
func (*DeleteWebhooksIDReader) ReadResponse ¶
func (o *DeleteWebhooksIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWebhooksBadRequest ¶
type GetWebhooksBadRequest struct {
}
GetWebhooksBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetWebhooksBadRequest ¶
func NewGetWebhooksBadRequest() *GetWebhooksBadRequest
NewGetWebhooksBadRequest creates a GetWebhooksBadRequest with default headers values
func (*GetWebhooksBadRequest) Code ¶
func (o *GetWebhooksBadRequest) Code() int
Code gets the status code for the get webhooks bad request response
func (*GetWebhooksBadRequest) Error ¶
func (o *GetWebhooksBadRequest) Error() string
func (*GetWebhooksBadRequest) IsClientError ¶
func (o *GetWebhooksBadRequest) IsClientError() bool
IsClientError returns true when this get webhooks bad request response has a 4xx status code
func (*GetWebhooksBadRequest) IsCode ¶
func (o *GetWebhooksBadRequest) IsCode(code int) bool
IsCode returns true when this get webhooks bad request response a status code equal to that given
func (*GetWebhooksBadRequest) IsRedirect ¶
func (o *GetWebhooksBadRequest) IsRedirect() bool
IsRedirect returns true when this get webhooks bad request response has a 3xx status code
func (*GetWebhooksBadRequest) IsServerError ¶
func (o *GetWebhooksBadRequest) IsServerError() bool
IsServerError returns true when this get webhooks bad request response has a 5xx status code
func (*GetWebhooksBadRequest) IsSuccess ¶
func (o *GetWebhooksBadRequest) IsSuccess() bool
IsSuccess returns true when this get webhooks bad request response has a 2xx status code
func (*GetWebhooksBadRequest) String ¶
func (o *GetWebhooksBadRequest) String() string
type GetWebhooksInternalServerError ¶
type GetWebhooksInternalServerError struct {
}
GetWebhooksInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetWebhooksInternalServerError ¶
func NewGetWebhooksInternalServerError() *GetWebhooksInternalServerError
NewGetWebhooksInternalServerError creates a GetWebhooksInternalServerError with default headers values
func (*GetWebhooksInternalServerError) Code ¶
func (o *GetWebhooksInternalServerError) Code() int
Code gets the status code for the get webhooks internal server error response
func (*GetWebhooksInternalServerError) Error ¶
func (o *GetWebhooksInternalServerError) Error() string
func (*GetWebhooksInternalServerError) IsClientError ¶
func (o *GetWebhooksInternalServerError) IsClientError() bool
IsClientError returns true when this get webhooks internal server error response has a 4xx status code
func (*GetWebhooksInternalServerError) IsCode ¶
func (o *GetWebhooksInternalServerError) IsCode(code int) bool
IsCode returns true when this get webhooks internal server error response a status code equal to that given
func (*GetWebhooksInternalServerError) IsRedirect ¶
func (o *GetWebhooksInternalServerError) IsRedirect() bool
IsRedirect returns true when this get webhooks internal server error response has a 3xx status code
func (*GetWebhooksInternalServerError) IsServerError ¶
func (o *GetWebhooksInternalServerError) IsServerError() bool
IsServerError returns true when this get webhooks internal server error response has a 5xx status code
func (*GetWebhooksInternalServerError) IsSuccess ¶
func (o *GetWebhooksInternalServerError) IsSuccess() bool
IsSuccess returns true when this get webhooks internal server error response has a 2xx status code
func (*GetWebhooksInternalServerError) String ¶
func (o *GetWebhooksInternalServerError) String() string
type GetWebhooksOK ¶
type GetWebhooksOK struct {
Payload []*models.PortainerWebhook
}
GetWebhooksOK describes a response with status code 200, with default header values.
OK
func NewGetWebhooksOK ¶
func NewGetWebhooksOK() *GetWebhooksOK
NewGetWebhooksOK creates a GetWebhooksOK with default headers values
func (*GetWebhooksOK) Code ¶
func (o *GetWebhooksOK) Code() int
Code gets the status code for the get webhooks o k response
func (*GetWebhooksOK) Error ¶
func (o *GetWebhooksOK) Error() string
func (*GetWebhooksOK) GetPayload ¶
func (o *GetWebhooksOK) GetPayload() []*models.PortainerWebhook
func (*GetWebhooksOK) IsClientError ¶
func (o *GetWebhooksOK) IsClientError() bool
IsClientError returns true when this get webhooks o k response has a 4xx status code
func (*GetWebhooksOK) IsCode ¶
func (o *GetWebhooksOK) IsCode(code int) bool
IsCode returns true when this get webhooks o k response a status code equal to that given
func (*GetWebhooksOK) IsRedirect ¶
func (o *GetWebhooksOK) IsRedirect() bool
IsRedirect returns true when this get webhooks o k response has a 3xx status code
func (*GetWebhooksOK) IsServerError ¶
func (o *GetWebhooksOK) IsServerError() bool
IsServerError returns true when this get webhooks o k response has a 5xx status code
func (*GetWebhooksOK) IsSuccess ¶
func (o *GetWebhooksOK) IsSuccess() bool
IsSuccess returns true when this get webhooks o k response has a 2xx status code
func (*GetWebhooksOK) String ¶
func (o *GetWebhooksOK) String() string
type GetWebhooksParams ¶
type GetWebhooksParams struct {
/* Filters.
Filters (json-string)
*/
Filters *string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetWebhooksParams contains all the parameters to send to the API endpoint
for the get webhooks operation. Typically these are written to a http.Request.
func NewGetWebhooksParams ¶
func NewGetWebhooksParams() *GetWebhooksParams
NewGetWebhooksParams creates a new GetWebhooksParams 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 NewGetWebhooksParamsWithContext ¶
func NewGetWebhooksParamsWithContext(ctx context.Context) *GetWebhooksParams
NewGetWebhooksParamsWithContext creates a new GetWebhooksParams object with the ability to set a context for a request.
func NewGetWebhooksParamsWithHTTPClient ¶
func NewGetWebhooksParamsWithHTTPClient(client *http.Client) *GetWebhooksParams
NewGetWebhooksParamsWithHTTPClient creates a new GetWebhooksParams object with the ability to set a custom HTTPClient for a request.
func NewGetWebhooksParamsWithTimeout ¶
func NewGetWebhooksParamsWithTimeout(timeout time.Duration) *GetWebhooksParams
NewGetWebhooksParamsWithTimeout creates a new GetWebhooksParams object with the ability to set a timeout on a request.
func (*GetWebhooksParams) SetContext ¶
func (o *GetWebhooksParams) SetContext(ctx context.Context)
SetContext adds the context to the get webhooks params
func (*GetWebhooksParams) SetDefaults ¶
func (o *GetWebhooksParams) SetDefaults()
SetDefaults hydrates default values in the get webhooks params (not the query body).
All values with no default are reset to their zero value.
func (*GetWebhooksParams) SetFilters ¶
func (o *GetWebhooksParams) SetFilters(filters *string)
SetFilters adds the filters to the get webhooks params
func (*GetWebhooksParams) SetHTTPClient ¶
func (o *GetWebhooksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get webhooks params
func (*GetWebhooksParams) SetTimeout ¶
func (o *GetWebhooksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get webhooks params
func (*GetWebhooksParams) WithContext ¶
func (o *GetWebhooksParams) WithContext(ctx context.Context) *GetWebhooksParams
WithContext adds the context to the get webhooks params
func (*GetWebhooksParams) WithDefaults ¶
func (o *GetWebhooksParams) WithDefaults() *GetWebhooksParams
WithDefaults hydrates default values in the get webhooks params (not the query body).
All values with no default are reset to their zero value.
func (*GetWebhooksParams) WithFilters ¶
func (o *GetWebhooksParams) WithFilters(filters *string) *GetWebhooksParams
WithFilters adds the filters to the get webhooks params
func (*GetWebhooksParams) WithHTTPClient ¶
func (o *GetWebhooksParams) WithHTTPClient(client *http.Client) *GetWebhooksParams
WithHTTPClient adds the HTTPClient to the get webhooks params
func (*GetWebhooksParams) WithTimeout ¶
func (o *GetWebhooksParams) WithTimeout(timeout time.Duration) *GetWebhooksParams
WithTimeout adds the timeout to the get webhooks params
func (*GetWebhooksParams) WriteToRequest ¶
func (o *GetWebhooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWebhooksReader ¶
type GetWebhooksReader struct {
// contains filtered or unexported fields
}
GetWebhooksReader is a Reader for the GetWebhooks structure.
func (*GetWebhooksReader) ReadResponse ¶
func (o *GetWebhooksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostWebhooksBadRequest ¶
type PostWebhooksBadRequest struct {
}
PostWebhooksBadRequest describes a response with status code 400, with default header values.
Invalid request
func NewPostWebhooksBadRequest ¶
func NewPostWebhooksBadRequest() *PostWebhooksBadRequest
NewPostWebhooksBadRequest creates a PostWebhooksBadRequest with default headers values
func (*PostWebhooksBadRequest) Code ¶
func (o *PostWebhooksBadRequest) Code() int
Code gets the status code for the post webhooks bad request response
func (*PostWebhooksBadRequest) Error ¶
func (o *PostWebhooksBadRequest) Error() string
func (*PostWebhooksBadRequest) IsClientError ¶
func (o *PostWebhooksBadRequest) IsClientError() bool
IsClientError returns true when this post webhooks bad request response has a 4xx status code
func (*PostWebhooksBadRequest) IsCode ¶
func (o *PostWebhooksBadRequest) IsCode(code int) bool
IsCode returns true when this post webhooks bad request response a status code equal to that given
func (*PostWebhooksBadRequest) IsRedirect ¶
func (o *PostWebhooksBadRequest) IsRedirect() bool
IsRedirect returns true when this post webhooks bad request response has a 3xx status code
func (*PostWebhooksBadRequest) IsServerError ¶
func (o *PostWebhooksBadRequest) IsServerError() bool
IsServerError returns true when this post webhooks bad request response has a 5xx status code
func (*PostWebhooksBadRequest) IsSuccess ¶
func (o *PostWebhooksBadRequest) IsSuccess() bool
IsSuccess returns true when this post webhooks bad request response has a 2xx status code
func (*PostWebhooksBadRequest) String ¶
func (o *PostWebhooksBadRequest) String() string
type PostWebhooksConflict ¶
type PostWebhooksConflict struct {
}
PostWebhooksConflict describes a response with status code 409, with default header values.
A webhook for this resource already exists
func NewPostWebhooksConflict ¶
func NewPostWebhooksConflict() *PostWebhooksConflict
NewPostWebhooksConflict creates a PostWebhooksConflict with default headers values
func (*PostWebhooksConflict) Code ¶
func (o *PostWebhooksConflict) Code() int
Code gets the status code for the post webhooks conflict response
func (*PostWebhooksConflict) Error ¶
func (o *PostWebhooksConflict) Error() string
func (*PostWebhooksConflict) IsClientError ¶
func (o *PostWebhooksConflict) IsClientError() bool
IsClientError returns true when this post webhooks conflict response has a 4xx status code
func (*PostWebhooksConflict) IsCode ¶
func (o *PostWebhooksConflict) IsCode(code int) bool
IsCode returns true when this post webhooks conflict response a status code equal to that given
func (*PostWebhooksConflict) IsRedirect ¶
func (o *PostWebhooksConflict) IsRedirect() bool
IsRedirect returns true when this post webhooks conflict response has a 3xx status code
func (*PostWebhooksConflict) IsServerError ¶
func (o *PostWebhooksConflict) IsServerError() bool
IsServerError returns true when this post webhooks conflict response has a 5xx status code
func (*PostWebhooksConflict) IsSuccess ¶
func (o *PostWebhooksConflict) IsSuccess() bool
IsSuccess returns true when this post webhooks conflict response has a 2xx status code
func (*PostWebhooksConflict) String ¶
func (o *PostWebhooksConflict) String() string
type PostWebhooksIDAccepted ¶
type PostWebhooksIDAccepted struct {
}
PostWebhooksIDAccepted describes a response with status code 202, with default header values.
Webhook executed
func NewPostWebhooksIDAccepted ¶
func NewPostWebhooksIDAccepted() *PostWebhooksIDAccepted
NewPostWebhooksIDAccepted creates a PostWebhooksIDAccepted with default headers values
func (*PostWebhooksIDAccepted) Code ¶
func (o *PostWebhooksIDAccepted) Code() int
Code gets the status code for the post webhooks Id accepted response
func (*PostWebhooksIDAccepted) Error ¶
func (o *PostWebhooksIDAccepted) Error() string
func (*PostWebhooksIDAccepted) IsClientError ¶
func (o *PostWebhooksIDAccepted) IsClientError() bool
IsClientError returns true when this post webhooks Id accepted response has a 4xx status code
func (*PostWebhooksIDAccepted) IsCode ¶
func (o *PostWebhooksIDAccepted) IsCode(code int) bool
IsCode returns true when this post webhooks Id accepted response a status code equal to that given
func (*PostWebhooksIDAccepted) IsRedirect ¶
func (o *PostWebhooksIDAccepted) IsRedirect() bool
IsRedirect returns true when this post webhooks Id accepted response has a 3xx status code
func (*PostWebhooksIDAccepted) IsServerError ¶
func (o *PostWebhooksIDAccepted) IsServerError() bool
IsServerError returns true when this post webhooks Id accepted response has a 5xx status code
func (*PostWebhooksIDAccepted) IsSuccess ¶
func (o *PostWebhooksIDAccepted) IsSuccess() bool
IsSuccess returns true when this post webhooks Id accepted response has a 2xx status code
func (*PostWebhooksIDAccepted) String ¶
func (o *PostWebhooksIDAccepted) String() string
type PostWebhooksIDBadRequest ¶
type PostWebhooksIDBadRequest struct {
}
PostWebhooksIDBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostWebhooksIDBadRequest ¶
func NewPostWebhooksIDBadRequest() *PostWebhooksIDBadRequest
NewPostWebhooksIDBadRequest creates a PostWebhooksIDBadRequest with default headers values
func (*PostWebhooksIDBadRequest) Code ¶
func (o *PostWebhooksIDBadRequest) Code() int
Code gets the status code for the post webhooks Id bad request response
func (*PostWebhooksIDBadRequest) Error ¶
func (o *PostWebhooksIDBadRequest) Error() string
func (*PostWebhooksIDBadRequest) IsClientError ¶
func (o *PostWebhooksIDBadRequest) IsClientError() bool
IsClientError returns true when this post webhooks Id bad request response has a 4xx status code
func (*PostWebhooksIDBadRequest) IsCode ¶
func (o *PostWebhooksIDBadRequest) IsCode(code int) bool
IsCode returns true when this post webhooks Id bad request response a status code equal to that given
func (*PostWebhooksIDBadRequest) IsRedirect ¶
func (o *PostWebhooksIDBadRequest) IsRedirect() bool
IsRedirect returns true when this post webhooks Id bad request response has a 3xx status code
func (*PostWebhooksIDBadRequest) IsServerError ¶
func (o *PostWebhooksIDBadRequest) IsServerError() bool
IsServerError returns true when this post webhooks Id bad request response has a 5xx status code
func (*PostWebhooksIDBadRequest) IsSuccess ¶
func (o *PostWebhooksIDBadRequest) IsSuccess() bool
IsSuccess returns true when this post webhooks Id bad request response has a 2xx status code
func (*PostWebhooksIDBadRequest) String ¶
func (o *PostWebhooksIDBadRequest) String() string
type PostWebhooksIDInternalServerError ¶
type PostWebhooksIDInternalServerError struct {
}
PostWebhooksIDInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostWebhooksIDInternalServerError ¶
func NewPostWebhooksIDInternalServerError() *PostWebhooksIDInternalServerError
NewPostWebhooksIDInternalServerError creates a PostWebhooksIDInternalServerError with default headers values
func (*PostWebhooksIDInternalServerError) Code ¶
func (o *PostWebhooksIDInternalServerError) Code() int
Code gets the status code for the post webhooks Id internal server error response
func (*PostWebhooksIDInternalServerError) Error ¶
func (o *PostWebhooksIDInternalServerError) Error() string
func (*PostWebhooksIDInternalServerError) IsClientError ¶
func (o *PostWebhooksIDInternalServerError) IsClientError() bool
IsClientError returns true when this post webhooks Id internal server error response has a 4xx status code
func (*PostWebhooksIDInternalServerError) IsCode ¶
func (o *PostWebhooksIDInternalServerError) IsCode(code int) bool
IsCode returns true when this post webhooks Id internal server error response a status code equal to that given
func (*PostWebhooksIDInternalServerError) IsRedirect ¶
func (o *PostWebhooksIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this post webhooks Id internal server error response has a 3xx status code
func (*PostWebhooksIDInternalServerError) IsServerError ¶
func (o *PostWebhooksIDInternalServerError) IsServerError() bool
IsServerError returns true when this post webhooks Id internal server error response has a 5xx status code
func (*PostWebhooksIDInternalServerError) IsSuccess ¶
func (o *PostWebhooksIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this post webhooks Id internal server error response has a 2xx status code
func (*PostWebhooksIDInternalServerError) String ¶
func (o *PostWebhooksIDInternalServerError) String() string
type PostWebhooksIDParams ¶
type PostWebhooksIDParams struct {
/* ID.
Webhook token
*/
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostWebhooksIDParams contains all the parameters to send to the API endpoint
for the post webhooks ID operation. Typically these are written to a http.Request.
func NewPostWebhooksIDParams ¶
func NewPostWebhooksIDParams() *PostWebhooksIDParams
NewPostWebhooksIDParams creates a new PostWebhooksIDParams 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 NewPostWebhooksIDParamsWithContext ¶
func NewPostWebhooksIDParamsWithContext(ctx context.Context) *PostWebhooksIDParams
NewPostWebhooksIDParamsWithContext creates a new PostWebhooksIDParams object with the ability to set a context for a request.
func NewPostWebhooksIDParamsWithHTTPClient ¶
func NewPostWebhooksIDParamsWithHTTPClient(client *http.Client) *PostWebhooksIDParams
NewPostWebhooksIDParamsWithHTTPClient creates a new PostWebhooksIDParams object with the ability to set a custom HTTPClient for a request.
func NewPostWebhooksIDParamsWithTimeout ¶
func NewPostWebhooksIDParamsWithTimeout(timeout time.Duration) *PostWebhooksIDParams
NewPostWebhooksIDParamsWithTimeout creates a new PostWebhooksIDParams object with the ability to set a timeout on a request.
func (*PostWebhooksIDParams) SetContext ¶
func (o *PostWebhooksIDParams) SetContext(ctx context.Context)
SetContext adds the context to the post webhooks ID params
func (*PostWebhooksIDParams) SetDefaults ¶
func (o *PostWebhooksIDParams) SetDefaults()
SetDefaults hydrates default values in the post webhooks ID params (not the query body).
All values with no default are reset to their zero value.
func (*PostWebhooksIDParams) SetHTTPClient ¶
func (o *PostWebhooksIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post webhooks ID params
func (*PostWebhooksIDParams) SetID ¶
func (o *PostWebhooksIDParams) SetID(id string)
SetID adds the id to the post webhooks ID params
func (*PostWebhooksIDParams) SetTimeout ¶
func (o *PostWebhooksIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post webhooks ID params
func (*PostWebhooksIDParams) WithContext ¶
func (o *PostWebhooksIDParams) WithContext(ctx context.Context) *PostWebhooksIDParams
WithContext adds the context to the post webhooks ID params
func (*PostWebhooksIDParams) WithDefaults ¶
func (o *PostWebhooksIDParams) WithDefaults() *PostWebhooksIDParams
WithDefaults hydrates default values in the post webhooks ID params (not the query body).
All values with no default are reset to their zero value.
func (*PostWebhooksIDParams) WithHTTPClient ¶
func (o *PostWebhooksIDParams) WithHTTPClient(client *http.Client) *PostWebhooksIDParams
WithHTTPClient adds the HTTPClient to the post webhooks ID params
func (*PostWebhooksIDParams) WithID ¶
func (o *PostWebhooksIDParams) WithID(id string) *PostWebhooksIDParams
WithID adds the id to the post webhooks ID params
func (*PostWebhooksIDParams) WithTimeout ¶
func (o *PostWebhooksIDParams) WithTimeout(timeout time.Duration) *PostWebhooksIDParams
WithTimeout adds the timeout to the post webhooks ID params
func (*PostWebhooksIDParams) WriteToRequest ¶
func (o *PostWebhooksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostWebhooksIDReader ¶
type PostWebhooksIDReader struct {
// contains filtered or unexported fields
}
PostWebhooksIDReader is a Reader for the PostWebhooksID structure.
func (*PostWebhooksIDReader) ReadResponse ¶
func (o *PostWebhooksIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostWebhooksInternalServerError ¶
type PostWebhooksInternalServerError struct {
}
PostWebhooksInternalServerError describes a response with status code 500, with default header values.
Server error
func NewPostWebhooksInternalServerError ¶
func NewPostWebhooksInternalServerError() *PostWebhooksInternalServerError
NewPostWebhooksInternalServerError creates a PostWebhooksInternalServerError with default headers values
func (*PostWebhooksInternalServerError) Code ¶
func (o *PostWebhooksInternalServerError) Code() int
Code gets the status code for the post webhooks internal server error response
func (*PostWebhooksInternalServerError) Error ¶
func (o *PostWebhooksInternalServerError) Error() string
func (*PostWebhooksInternalServerError) IsClientError ¶
func (o *PostWebhooksInternalServerError) IsClientError() bool
IsClientError returns true when this post webhooks internal server error response has a 4xx status code
func (*PostWebhooksInternalServerError) IsCode ¶
func (o *PostWebhooksInternalServerError) IsCode(code int) bool
IsCode returns true when this post webhooks internal server error response a status code equal to that given
func (*PostWebhooksInternalServerError) IsRedirect ¶
func (o *PostWebhooksInternalServerError) IsRedirect() bool
IsRedirect returns true when this post webhooks internal server error response has a 3xx status code
func (*PostWebhooksInternalServerError) IsServerError ¶
func (o *PostWebhooksInternalServerError) IsServerError() bool
IsServerError returns true when this post webhooks internal server error response has a 5xx status code
func (*PostWebhooksInternalServerError) IsSuccess ¶
func (o *PostWebhooksInternalServerError) IsSuccess() bool
IsSuccess returns true when this post webhooks internal server error response has a 2xx status code
func (*PostWebhooksInternalServerError) String ¶
func (o *PostWebhooksInternalServerError) String() string
type PostWebhooksOK ¶
type PostWebhooksOK struct {
Payload *models.PortainerWebhook
}
PostWebhooksOK describes a response with status code 200, with default header values.
OK
func NewPostWebhooksOK ¶
func NewPostWebhooksOK() *PostWebhooksOK
NewPostWebhooksOK creates a PostWebhooksOK with default headers values
func (*PostWebhooksOK) Code ¶
func (o *PostWebhooksOK) Code() int
Code gets the status code for the post webhooks o k response
func (*PostWebhooksOK) Error ¶
func (o *PostWebhooksOK) Error() string
func (*PostWebhooksOK) GetPayload ¶
func (o *PostWebhooksOK) GetPayload() *models.PortainerWebhook
func (*PostWebhooksOK) IsClientError ¶
func (o *PostWebhooksOK) IsClientError() bool
IsClientError returns true when this post webhooks o k response has a 4xx status code
func (*PostWebhooksOK) IsCode ¶
func (o *PostWebhooksOK) IsCode(code int) bool
IsCode returns true when this post webhooks o k response a status code equal to that given
func (*PostWebhooksOK) IsRedirect ¶
func (o *PostWebhooksOK) IsRedirect() bool
IsRedirect returns true when this post webhooks o k response has a 3xx status code
func (*PostWebhooksOK) IsServerError ¶
func (o *PostWebhooksOK) IsServerError() bool
IsServerError returns true when this post webhooks o k response has a 5xx status code
func (*PostWebhooksOK) IsSuccess ¶
func (o *PostWebhooksOK) IsSuccess() bool
IsSuccess returns true when this post webhooks o k response has a 2xx status code
func (*PostWebhooksOK) String ¶
func (o *PostWebhooksOK) String() string
type PostWebhooksParams ¶
type PostWebhooksParams struct {
/* Body.
Webhook data
*/
Body *models.WebhooksWebhookCreatePayload
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostWebhooksParams contains all the parameters to send to the API endpoint
for the post webhooks operation. Typically these are written to a http.Request.
func NewPostWebhooksParams ¶
func NewPostWebhooksParams() *PostWebhooksParams
NewPostWebhooksParams creates a new PostWebhooksParams 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 NewPostWebhooksParamsWithContext ¶
func NewPostWebhooksParamsWithContext(ctx context.Context) *PostWebhooksParams
NewPostWebhooksParamsWithContext creates a new PostWebhooksParams object with the ability to set a context for a request.
func NewPostWebhooksParamsWithHTTPClient ¶
func NewPostWebhooksParamsWithHTTPClient(client *http.Client) *PostWebhooksParams
NewPostWebhooksParamsWithHTTPClient creates a new PostWebhooksParams object with the ability to set a custom HTTPClient for a request.
func NewPostWebhooksParamsWithTimeout ¶
func NewPostWebhooksParamsWithTimeout(timeout time.Duration) *PostWebhooksParams
NewPostWebhooksParamsWithTimeout creates a new PostWebhooksParams object with the ability to set a timeout on a request.
func (*PostWebhooksParams) SetBody ¶
func (o *PostWebhooksParams) SetBody(body *models.WebhooksWebhookCreatePayload)
SetBody adds the body to the post webhooks params
func (*PostWebhooksParams) SetContext ¶
func (o *PostWebhooksParams) SetContext(ctx context.Context)
SetContext adds the context to the post webhooks params
func (*PostWebhooksParams) SetDefaults ¶
func (o *PostWebhooksParams) SetDefaults()
SetDefaults hydrates default values in the post webhooks params (not the query body).
All values with no default are reset to their zero value.
func (*PostWebhooksParams) SetHTTPClient ¶
func (o *PostWebhooksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post webhooks params
func (*PostWebhooksParams) SetTimeout ¶
func (o *PostWebhooksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post webhooks params
func (*PostWebhooksParams) WithBody ¶
func (o *PostWebhooksParams) WithBody(body *models.WebhooksWebhookCreatePayload) *PostWebhooksParams
WithBody adds the body to the post webhooks params
func (*PostWebhooksParams) WithContext ¶
func (o *PostWebhooksParams) WithContext(ctx context.Context) *PostWebhooksParams
WithContext adds the context to the post webhooks params
func (*PostWebhooksParams) WithDefaults ¶
func (o *PostWebhooksParams) WithDefaults() *PostWebhooksParams
WithDefaults hydrates default values in the post webhooks params (not the query body).
All values with no default are reset to their zero value.
func (*PostWebhooksParams) WithHTTPClient ¶
func (o *PostWebhooksParams) WithHTTPClient(client *http.Client) *PostWebhooksParams
WithHTTPClient adds the HTTPClient to the post webhooks params
func (*PostWebhooksParams) WithTimeout ¶
func (o *PostWebhooksParams) WithTimeout(timeout time.Duration) *PostWebhooksParams
WithTimeout adds the timeout to the post webhooks params
func (*PostWebhooksParams) WriteToRequest ¶
func (o *PostWebhooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostWebhooksReader ¶
type PostWebhooksReader struct {
// contains filtered or unexported fields
}
PostWebhooksReader is a Reader for the PostWebhooks structure.
func (*PostWebhooksReader) ReadResponse ¶
func (o *PostWebhooksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutWebhooksIDBadRequest ¶
type PutWebhooksIDBadRequest struct {
}
PutWebhooksIDBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPutWebhooksIDBadRequest ¶
func NewPutWebhooksIDBadRequest() *PutWebhooksIDBadRequest
NewPutWebhooksIDBadRequest creates a PutWebhooksIDBadRequest with default headers values
func (*PutWebhooksIDBadRequest) Code ¶
func (o *PutWebhooksIDBadRequest) Code() int
Code gets the status code for the put webhooks Id bad request response
func (*PutWebhooksIDBadRequest) Error ¶
func (o *PutWebhooksIDBadRequest) Error() string
func (*PutWebhooksIDBadRequest) IsClientError ¶
func (o *PutWebhooksIDBadRequest) IsClientError() bool
IsClientError returns true when this put webhooks Id bad request response has a 4xx status code
func (*PutWebhooksIDBadRequest) IsCode ¶
func (o *PutWebhooksIDBadRequest) IsCode(code int) bool
IsCode returns true when this put webhooks Id bad request response a status code equal to that given
func (*PutWebhooksIDBadRequest) IsRedirect ¶
func (o *PutWebhooksIDBadRequest) IsRedirect() bool
IsRedirect returns true when this put webhooks Id bad request response has a 3xx status code
func (*PutWebhooksIDBadRequest) IsServerError ¶
func (o *PutWebhooksIDBadRequest) IsServerError() bool
IsServerError returns true when this put webhooks Id bad request response has a 5xx status code
func (*PutWebhooksIDBadRequest) IsSuccess ¶
func (o *PutWebhooksIDBadRequest) IsSuccess() bool
IsSuccess returns true when this put webhooks Id bad request response has a 2xx status code
func (*PutWebhooksIDBadRequest) String ¶
func (o *PutWebhooksIDBadRequest) String() string
type PutWebhooksIDConflict ¶
type PutWebhooksIDConflict struct {
}
PutWebhooksIDConflict describes a response with status code 409, with default header values.
Conflict
func NewPutWebhooksIDConflict ¶
func NewPutWebhooksIDConflict() *PutWebhooksIDConflict
NewPutWebhooksIDConflict creates a PutWebhooksIDConflict with default headers values
func (*PutWebhooksIDConflict) Code ¶
func (o *PutWebhooksIDConflict) Code() int
Code gets the status code for the put webhooks Id conflict response
func (*PutWebhooksIDConflict) Error ¶
func (o *PutWebhooksIDConflict) Error() string
func (*PutWebhooksIDConflict) IsClientError ¶
func (o *PutWebhooksIDConflict) IsClientError() bool
IsClientError returns true when this put webhooks Id conflict response has a 4xx status code
func (*PutWebhooksIDConflict) IsCode ¶
func (o *PutWebhooksIDConflict) IsCode(code int) bool
IsCode returns true when this put webhooks Id conflict response a status code equal to that given
func (*PutWebhooksIDConflict) IsRedirect ¶
func (o *PutWebhooksIDConflict) IsRedirect() bool
IsRedirect returns true when this put webhooks Id conflict response has a 3xx status code
func (*PutWebhooksIDConflict) IsServerError ¶
func (o *PutWebhooksIDConflict) IsServerError() bool
IsServerError returns true when this put webhooks Id conflict response has a 5xx status code
func (*PutWebhooksIDConflict) IsSuccess ¶
func (o *PutWebhooksIDConflict) IsSuccess() bool
IsSuccess returns true when this put webhooks Id conflict response has a 2xx status code
func (*PutWebhooksIDConflict) String ¶
func (o *PutWebhooksIDConflict) String() string
type PutWebhooksIDInternalServerError ¶
type PutWebhooksIDInternalServerError struct {
}
PutWebhooksIDInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPutWebhooksIDInternalServerError ¶
func NewPutWebhooksIDInternalServerError() *PutWebhooksIDInternalServerError
NewPutWebhooksIDInternalServerError creates a PutWebhooksIDInternalServerError with default headers values
func (*PutWebhooksIDInternalServerError) Code ¶
func (o *PutWebhooksIDInternalServerError) Code() int
Code gets the status code for the put webhooks Id internal server error response
func (*PutWebhooksIDInternalServerError) Error ¶
func (o *PutWebhooksIDInternalServerError) Error() string
func (*PutWebhooksIDInternalServerError) IsClientError ¶
func (o *PutWebhooksIDInternalServerError) IsClientError() bool
IsClientError returns true when this put webhooks Id internal server error response has a 4xx status code
func (*PutWebhooksIDInternalServerError) IsCode ¶
func (o *PutWebhooksIDInternalServerError) IsCode(code int) bool
IsCode returns true when this put webhooks Id internal server error response a status code equal to that given
func (*PutWebhooksIDInternalServerError) IsRedirect ¶
func (o *PutWebhooksIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this put webhooks Id internal server error response has a 3xx status code
func (*PutWebhooksIDInternalServerError) IsServerError ¶
func (o *PutWebhooksIDInternalServerError) IsServerError() bool
IsServerError returns true when this put webhooks Id internal server error response has a 5xx status code
func (*PutWebhooksIDInternalServerError) IsSuccess ¶
func (o *PutWebhooksIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this put webhooks Id internal server error response has a 2xx status code
func (*PutWebhooksIDInternalServerError) String ¶
func (o *PutWebhooksIDInternalServerError) String() string
type PutWebhooksIDOK ¶
type PutWebhooksIDOK struct {
Payload *models.PortainerWebhook
}
PutWebhooksIDOK describes a response with status code 200, with default header values.
OK
func NewPutWebhooksIDOK ¶
func NewPutWebhooksIDOK() *PutWebhooksIDOK
NewPutWebhooksIDOK creates a PutWebhooksIDOK with default headers values
func (*PutWebhooksIDOK) Code ¶
func (o *PutWebhooksIDOK) Code() int
Code gets the status code for the put webhooks Id o k response
func (*PutWebhooksIDOK) Error ¶
func (o *PutWebhooksIDOK) Error() string
func (*PutWebhooksIDOK) GetPayload ¶
func (o *PutWebhooksIDOK) GetPayload() *models.PortainerWebhook
func (*PutWebhooksIDOK) IsClientError ¶
func (o *PutWebhooksIDOK) IsClientError() bool
IsClientError returns true when this put webhooks Id o k response has a 4xx status code
func (*PutWebhooksIDOK) IsCode ¶
func (o *PutWebhooksIDOK) IsCode(code int) bool
IsCode returns true when this put webhooks Id o k response a status code equal to that given
func (*PutWebhooksIDOK) IsRedirect ¶
func (o *PutWebhooksIDOK) IsRedirect() bool
IsRedirect returns true when this put webhooks Id o k response has a 3xx status code
func (*PutWebhooksIDOK) IsServerError ¶
func (o *PutWebhooksIDOK) IsServerError() bool
IsServerError returns true when this put webhooks Id o k response has a 5xx status code
func (*PutWebhooksIDOK) IsSuccess ¶
func (o *PutWebhooksIDOK) IsSuccess() bool
IsSuccess returns true when this put webhooks Id o k response has a 2xx status code
func (*PutWebhooksIDOK) String ¶
func (o *PutWebhooksIDOK) String() string
type PutWebhooksIDParams ¶
type PutWebhooksIDParams struct {
/* Body.
Webhook data
*/
Body *models.WebhooksWebhookUpdatePayload
/* ID.
Webhook id
*/
ID int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PutWebhooksIDParams contains all the parameters to send to the API endpoint
for the put webhooks ID operation. Typically these are written to a http.Request.
func NewPutWebhooksIDParams ¶
func NewPutWebhooksIDParams() *PutWebhooksIDParams
NewPutWebhooksIDParams creates a new PutWebhooksIDParams 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 NewPutWebhooksIDParamsWithContext ¶
func NewPutWebhooksIDParamsWithContext(ctx context.Context) *PutWebhooksIDParams
NewPutWebhooksIDParamsWithContext creates a new PutWebhooksIDParams object with the ability to set a context for a request.
func NewPutWebhooksIDParamsWithHTTPClient ¶
func NewPutWebhooksIDParamsWithHTTPClient(client *http.Client) *PutWebhooksIDParams
NewPutWebhooksIDParamsWithHTTPClient creates a new PutWebhooksIDParams object with the ability to set a custom HTTPClient for a request.
func NewPutWebhooksIDParamsWithTimeout ¶
func NewPutWebhooksIDParamsWithTimeout(timeout time.Duration) *PutWebhooksIDParams
NewPutWebhooksIDParamsWithTimeout creates a new PutWebhooksIDParams object with the ability to set a timeout on a request.
func (*PutWebhooksIDParams) SetBody ¶
func (o *PutWebhooksIDParams) SetBody(body *models.WebhooksWebhookUpdatePayload)
SetBody adds the body to the put webhooks ID params
func (*PutWebhooksIDParams) SetContext ¶
func (o *PutWebhooksIDParams) SetContext(ctx context.Context)
SetContext adds the context to the put webhooks ID params
func (*PutWebhooksIDParams) SetDefaults ¶
func (o *PutWebhooksIDParams) SetDefaults()
SetDefaults hydrates default values in the put webhooks ID params (not the query body).
All values with no default are reset to their zero value.
func (*PutWebhooksIDParams) SetHTTPClient ¶
func (o *PutWebhooksIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put webhooks ID params
func (*PutWebhooksIDParams) SetID ¶
func (o *PutWebhooksIDParams) SetID(id int64)
SetID adds the id to the put webhooks ID params
func (*PutWebhooksIDParams) SetTimeout ¶
func (o *PutWebhooksIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put webhooks ID params
func (*PutWebhooksIDParams) WithBody ¶
func (o *PutWebhooksIDParams) WithBody(body *models.WebhooksWebhookUpdatePayload) *PutWebhooksIDParams
WithBody adds the body to the put webhooks ID params
func (*PutWebhooksIDParams) WithContext ¶
func (o *PutWebhooksIDParams) WithContext(ctx context.Context) *PutWebhooksIDParams
WithContext adds the context to the put webhooks ID params
func (*PutWebhooksIDParams) WithDefaults ¶
func (o *PutWebhooksIDParams) WithDefaults() *PutWebhooksIDParams
WithDefaults hydrates default values in the put webhooks ID params (not the query body).
All values with no default are reset to their zero value.
func (*PutWebhooksIDParams) WithHTTPClient ¶
func (o *PutWebhooksIDParams) WithHTTPClient(client *http.Client) *PutWebhooksIDParams
WithHTTPClient adds the HTTPClient to the put webhooks ID params
func (*PutWebhooksIDParams) WithID ¶
func (o *PutWebhooksIDParams) WithID(id int64) *PutWebhooksIDParams
WithID adds the id to the put webhooks ID params
func (*PutWebhooksIDParams) WithTimeout ¶
func (o *PutWebhooksIDParams) WithTimeout(timeout time.Duration) *PutWebhooksIDParams
WithTimeout adds the timeout to the put webhooks ID params
func (*PutWebhooksIDParams) WriteToRequest ¶
func (o *PutWebhooksIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutWebhooksIDReader ¶
type PutWebhooksIDReader struct {
// contains filtered or unexported fields
}
PutWebhooksIDReader is a Reader for the PutWebhooksID structure.
func (*PutWebhooksIDReader) ReadResponse ¶
func (o *PutWebhooksIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutWebhooksIDReassignBadRequest ¶
type PutWebhooksIDReassignBadRequest struct {
}
PutWebhooksIDReassignBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPutWebhooksIDReassignBadRequest ¶
func NewPutWebhooksIDReassignBadRequest() *PutWebhooksIDReassignBadRequest
NewPutWebhooksIDReassignBadRequest creates a PutWebhooksIDReassignBadRequest with default headers values
func (*PutWebhooksIDReassignBadRequest) Code ¶
func (o *PutWebhooksIDReassignBadRequest) Code() int
Code gets the status code for the put webhooks Id reassign bad request response
func (*PutWebhooksIDReassignBadRequest) Error ¶
func (o *PutWebhooksIDReassignBadRequest) Error() string
func (*PutWebhooksIDReassignBadRequest) IsClientError ¶
func (o *PutWebhooksIDReassignBadRequest) IsClientError() bool
IsClientError returns true when this put webhooks Id reassign bad request response has a 4xx status code
func (*PutWebhooksIDReassignBadRequest) IsCode ¶
func (o *PutWebhooksIDReassignBadRequest) IsCode(code int) bool
IsCode returns true when this put webhooks Id reassign bad request response a status code equal to that given
func (*PutWebhooksIDReassignBadRequest) IsRedirect ¶
func (o *PutWebhooksIDReassignBadRequest) IsRedirect() bool
IsRedirect returns true when this put webhooks Id reassign bad request response has a 3xx status code
func (*PutWebhooksIDReassignBadRequest) IsServerError ¶
func (o *PutWebhooksIDReassignBadRequest) IsServerError() bool
IsServerError returns true when this put webhooks Id reassign bad request response has a 5xx status code
func (*PutWebhooksIDReassignBadRequest) IsSuccess ¶
func (o *PutWebhooksIDReassignBadRequest) IsSuccess() bool
IsSuccess returns true when this put webhooks Id reassign bad request response has a 2xx status code
func (*PutWebhooksIDReassignBadRequest) String ¶
func (o *PutWebhooksIDReassignBadRequest) String() string
type PutWebhooksIDReassignInternalServerError ¶
type PutWebhooksIDReassignInternalServerError struct {
}
PutWebhooksIDReassignInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPutWebhooksIDReassignInternalServerError ¶
func NewPutWebhooksIDReassignInternalServerError() *PutWebhooksIDReassignInternalServerError
NewPutWebhooksIDReassignInternalServerError creates a PutWebhooksIDReassignInternalServerError with default headers values
func (*PutWebhooksIDReassignInternalServerError) Code ¶
func (o *PutWebhooksIDReassignInternalServerError) Code() int
Code gets the status code for the put webhooks Id reassign internal server error response
func (*PutWebhooksIDReassignInternalServerError) Error ¶
func (o *PutWebhooksIDReassignInternalServerError) Error() string
func (*PutWebhooksIDReassignInternalServerError) IsClientError ¶
func (o *PutWebhooksIDReassignInternalServerError) IsClientError() bool
IsClientError returns true when this put webhooks Id reassign internal server error response has a 4xx status code
func (*PutWebhooksIDReassignInternalServerError) IsCode ¶
func (o *PutWebhooksIDReassignInternalServerError) IsCode(code int) bool
IsCode returns true when this put webhooks Id reassign internal server error response a status code equal to that given
func (*PutWebhooksIDReassignInternalServerError) IsRedirect ¶
func (o *PutWebhooksIDReassignInternalServerError) IsRedirect() bool
IsRedirect returns true when this put webhooks Id reassign internal server error response has a 3xx status code
func (*PutWebhooksIDReassignInternalServerError) IsServerError ¶
func (o *PutWebhooksIDReassignInternalServerError) IsServerError() bool
IsServerError returns true when this put webhooks Id reassign internal server error response has a 5xx status code
func (*PutWebhooksIDReassignInternalServerError) IsSuccess ¶
func (o *PutWebhooksIDReassignInternalServerError) IsSuccess() bool
IsSuccess returns true when this put webhooks Id reassign internal server error response has a 2xx status code
func (*PutWebhooksIDReassignInternalServerError) String ¶
func (o *PutWebhooksIDReassignInternalServerError) String() string
type PutWebhooksIDReassignNoContent ¶
type PutWebhooksIDReassignNoContent struct {
}
PutWebhooksIDReassignNoContent describes a response with status code 204, with default header values.
No Content
func NewPutWebhooksIDReassignNoContent ¶
func NewPutWebhooksIDReassignNoContent() *PutWebhooksIDReassignNoContent
NewPutWebhooksIDReassignNoContent creates a PutWebhooksIDReassignNoContent with default headers values
func (*PutWebhooksIDReassignNoContent) Code ¶
func (o *PutWebhooksIDReassignNoContent) Code() int
Code gets the status code for the put webhooks Id reassign no content response
func (*PutWebhooksIDReassignNoContent) Error ¶
func (o *PutWebhooksIDReassignNoContent) Error() string
func (*PutWebhooksIDReassignNoContent) IsClientError ¶
func (o *PutWebhooksIDReassignNoContent) IsClientError() bool
IsClientError returns true when this put webhooks Id reassign no content response has a 4xx status code
func (*PutWebhooksIDReassignNoContent) IsCode ¶
func (o *PutWebhooksIDReassignNoContent) IsCode(code int) bool
IsCode returns true when this put webhooks Id reassign no content response a status code equal to that given
func (*PutWebhooksIDReassignNoContent) IsRedirect ¶
func (o *PutWebhooksIDReassignNoContent) IsRedirect() bool
IsRedirect returns true when this put webhooks Id reassign no content response has a 3xx status code
func (*PutWebhooksIDReassignNoContent) IsServerError ¶
func (o *PutWebhooksIDReassignNoContent) IsServerError() bool
IsServerError returns true when this put webhooks Id reassign no content response has a 5xx status code
func (*PutWebhooksIDReassignNoContent) IsSuccess ¶
func (o *PutWebhooksIDReassignNoContent) IsSuccess() bool
IsSuccess returns true when this put webhooks Id reassign no content response has a 2xx status code
func (*PutWebhooksIDReassignNoContent) String ¶
func (o *PutWebhooksIDReassignNoContent) String() string
type PutWebhooksIDReassignNotFound ¶
type PutWebhooksIDReassignNotFound struct {
}
PutWebhooksIDReassignNotFound describes a response with status code 404, with default header values.
Not Found
func NewPutWebhooksIDReassignNotFound ¶
func NewPutWebhooksIDReassignNotFound() *PutWebhooksIDReassignNotFound
NewPutWebhooksIDReassignNotFound creates a PutWebhooksIDReassignNotFound with default headers values
func (*PutWebhooksIDReassignNotFound) Code ¶
func (o *PutWebhooksIDReassignNotFound) Code() int
Code gets the status code for the put webhooks Id reassign not found response
func (*PutWebhooksIDReassignNotFound) Error ¶
func (o *PutWebhooksIDReassignNotFound) Error() string
func (*PutWebhooksIDReassignNotFound) IsClientError ¶
func (o *PutWebhooksIDReassignNotFound) IsClientError() bool
IsClientError returns true when this put webhooks Id reassign not found response has a 4xx status code
func (*PutWebhooksIDReassignNotFound) IsCode ¶
func (o *PutWebhooksIDReassignNotFound) IsCode(code int) bool
IsCode returns true when this put webhooks Id reassign not found response a status code equal to that given
func (*PutWebhooksIDReassignNotFound) IsRedirect ¶
func (o *PutWebhooksIDReassignNotFound) IsRedirect() bool
IsRedirect returns true when this put webhooks Id reassign not found response has a 3xx status code
func (*PutWebhooksIDReassignNotFound) IsServerError ¶
func (o *PutWebhooksIDReassignNotFound) IsServerError() bool
IsServerError returns true when this put webhooks Id reassign not found response has a 5xx status code
func (*PutWebhooksIDReassignNotFound) IsSuccess ¶
func (o *PutWebhooksIDReassignNotFound) IsSuccess() bool
IsSuccess returns true when this put webhooks Id reassign not found response has a 2xx status code
func (*PutWebhooksIDReassignNotFound) String ¶
func (o *PutWebhooksIDReassignNotFound) String() string
type PutWebhooksIDReassignOK ¶
type PutWebhooksIDReassignOK struct {
Payload *models.PortainerWebhook
}
PutWebhooksIDReassignOK describes a response with status code 200, with default header values.
OK
func NewPutWebhooksIDReassignOK ¶
func NewPutWebhooksIDReassignOK() *PutWebhooksIDReassignOK
NewPutWebhooksIDReassignOK creates a PutWebhooksIDReassignOK with default headers values
func (*PutWebhooksIDReassignOK) Code ¶
func (o *PutWebhooksIDReassignOK) Code() int
Code gets the status code for the put webhooks Id reassign o k response
func (*PutWebhooksIDReassignOK) Error ¶
func (o *PutWebhooksIDReassignOK) Error() string
func (*PutWebhooksIDReassignOK) GetPayload ¶
func (o *PutWebhooksIDReassignOK) GetPayload() *models.PortainerWebhook
func (*PutWebhooksIDReassignOK) IsClientError ¶
func (o *PutWebhooksIDReassignOK) IsClientError() bool
IsClientError returns true when this put webhooks Id reassign o k response has a 4xx status code
func (*PutWebhooksIDReassignOK) IsCode ¶
func (o *PutWebhooksIDReassignOK) IsCode(code int) bool
IsCode returns true when this put webhooks Id reassign o k response a status code equal to that given
func (*PutWebhooksIDReassignOK) IsRedirect ¶
func (o *PutWebhooksIDReassignOK) IsRedirect() bool
IsRedirect returns true when this put webhooks Id reassign o k response has a 3xx status code
func (*PutWebhooksIDReassignOK) IsServerError ¶
func (o *PutWebhooksIDReassignOK) IsServerError() bool
IsServerError returns true when this put webhooks Id reassign o k response has a 5xx status code
func (*PutWebhooksIDReassignOK) IsSuccess ¶
func (o *PutWebhooksIDReassignOK) IsSuccess() bool
IsSuccess returns true when this put webhooks Id reassign o k response has a 2xx status code
func (*PutWebhooksIDReassignOK) String ¶
func (o *PutWebhooksIDReassignOK) String() string
type PutWebhooksIDReassignParams ¶
type PutWebhooksIDReassignParams struct {
/* Body.
Webhook data
*/
Body *models.WebhooksWebhookReassignPayload
/* ID.
Webhook id
*/
ID int64
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PutWebhooksIDReassignParams contains all the parameters to send to the API endpoint
for the put webhooks ID reassign operation. Typically these are written to a http.Request.
func NewPutWebhooksIDReassignParams ¶
func NewPutWebhooksIDReassignParams() *PutWebhooksIDReassignParams
NewPutWebhooksIDReassignParams creates a new PutWebhooksIDReassignParams 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 NewPutWebhooksIDReassignParamsWithContext ¶
func NewPutWebhooksIDReassignParamsWithContext(ctx context.Context) *PutWebhooksIDReassignParams
NewPutWebhooksIDReassignParamsWithContext creates a new PutWebhooksIDReassignParams object with the ability to set a context for a request.
func NewPutWebhooksIDReassignParamsWithHTTPClient ¶
func NewPutWebhooksIDReassignParamsWithHTTPClient(client *http.Client) *PutWebhooksIDReassignParams
NewPutWebhooksIDReassignParamsWithHTTPClient creates a new PutWebhooksIDReassignParams object with the ability to set a custom HTTPClient for a request.
func NewPutWebhooksIDReassignParamsWithTimeout ¶
func NewPutWebhooksIDReassignParamsWithTimeout(timeout time.Duration) *PutWebhooksIDReassignParams
NewPutWebhooksIDReassignParamsWithTimeout creates a new PutWebhooksIDReassignParams object with the ability to set a timeout on a request.
func (*PutWebhooksIDReassignParams) SetBody ¶
func (o *PutWebhooksIDReassignParams) SetBody(body *models.WebhooksWebhookReassignPayload)
SetBody adds the body to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) SetContext ¶
func (o *PutWebhooksIDReassignParams) SetContext(ctx context.Context)
SetContext adds the context to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) SetDefaults ¶
func (o *PutWebhooksIDReassignParams) SetDefaults()
SetDefaults hydrates default values in the put webhooks ID reassign params (not the query body).
All values with no default are reset to their zero value.
func (*PutWebhooksIDReassignParams) SetHTTPClient ¶
func (o *PutWebhooksIDReassignParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) SetID ¶
func (o *PutWebhooksIDReassignParams) SetID(id int64)
SetID adds the id to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) SetTimeout ¶
func (o *PutWebhooksIDReassignParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) WithBody ¶
func (o *PutWebhooksIDReassignParams) WithBody(body *models.WebhooksWebhookReassignPayload) *PutWebhooksIDReassignParams
WithBody adds the body to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) WithContext ¶
func (o *PutWebhooksIDReassignParams) WithContext(ctx context.Context) *PutWebhooksIDReassignParams
WithContext adds the context to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) WithDefaults ¶
func (o *PutWebhooksIDReassignParams) WithDefaults() *PutWebhooksIDReassignParams
WithDefaults hydrates default values in the put webhooks ID reassign params (not the query body).
All values with no default are reset to their zero value.
func (*PutWebhooksIDReassignParams) WithHTTPClient ¶
func (o *PutWebhooksIDReassignParams) WithHTTPClient(client *http.Client) *PutWebhooksIDReassignParams
WithHTTPClient adds the HTTPClient to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) WithID ¶
func (o *PutWebhooksIDReassignParams) WithID(id int64) *PutWebhooksIDReassignParams
WithID adds the id to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) WithTimeout ¶
func (o *PutWebhooksIDReassignParams) WithTimeout(timeout time.Duration) *PutWebhooksIDReassignParams
WithTimeout adds the timeout to the put webhooks ID reassign params
func (*PutWebhooksIDReassignParams) WriteToRequest ¶
func (o *PutWebhooksIDReassignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutWebhooksIDReassignReader ¶
type PutWebhooksIDReassignReader struct {
// contains filtered or unexported fields
}
PutWebhooksIDReassignReader is a Reader for the PutWebhooksIDReassign structure.
func (*PutWebhooksIDReassignReader) ReadResponse ¶
func (o *PutWebhooksIDReassignReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- delete_webhooks_id_parameters.go
- delete_webhooks_id_responses.go
- get_webhooks_parameters.go
- get_webhooks_responses.go
- post_webhooks_id_parameters.go
- post_webhooks_id_responses.go
- post_webhooks_parameters.go
- post_webhooks_responses.go
- put_webhooks_id_parameters.go
- put_webhooks_id_reassign_parameters.go
- put_webhooks_id_reassign_responses.go
- put_webhooks_id_responses.go
- webhooks_client.go