webhooks

package
v2.31.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

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 (*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

Code gets the status code for the delete webhooks Id internal server error response

func (*DeleteWebhooksIDInternalServerError) Error

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

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

IsSuccess returns true when this delete webhooks Id internal server error response has a 2xx status code

func (*DeleteWebhooksIDInternalServerError) 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

WithContext adds the context to the delete webhooks ID params

func (*DeleteWebhooksIDParams) WithDefaults

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

WithID adds the id to the delete webhooks ID params

func (*DeleteWebhooksIDParams) WithTimeout

WithTimeout adds the timeout to the delete webhooks ID params

func (*DeleteWebhooksIDParams) WriteToRequest

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

Code gets the status code for the get webhooks internal server error response

func (*GetWebhooksInternalServerError) Error

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

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

Code gets the status code for the post webhooks Id internal server error response

func (*PostWebhooksIDInternalServerError) Error

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

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

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

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

Code gets the status code for the post webhooks internal server error response

func (*PostWebhooksInternalServerError) Error

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

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

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

WithBody adds the body to the post webhooks params

func (*PostWebhooksParams) WithContext

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

Code gets the status code for the put webhooks Id internal server error response

func (*PutWebhooksIDInternalServerError) Error

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

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

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

WithBody adds the body to the put webhooks ID params

func (*PutWebhooksIDParams) WithContext

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

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

Code gets the status code for the put webhooks Id reassign bad request response

func (*PutWebhooksIDReassignBadRequest) Error

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

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

Code gets the status code for the put webhooks Id reassign internal server error response

func (*PutWebhooksIDReassignInternalServerError) Error

func (*PutWebhooksIDReassignInternalServerError) IsClientError

IsClientError returns true when this put webhooks Id reassign internal server error response has a 4xx status code

func (*PutWebhooksIDReassignInternalServerError) IsCode

IsCode returns true when this put webhooks Id reassign internal server error response a status code equal to that given

func (*PutWebhooksIDReassignInternalServerError) IsRedirect

IsRedirect returns true when this put webhooks Id reassign internal server error response has a 3xx status code

func (*PutWebhooksIDReassignInternalServerError) IsServerError

IsServerError returns true when this put webhooks Id reassign internal server error response has a 5xx status code

func (*PutWebhooksIDReassignInternalServerError) IsSuccess

IsSuccess returns true when this put webhooks Id reassign internal server error response has a 2xx status code

func (*PutWebhooksIDReassignInternalServerError) 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

Code gets the status code for the put webhooks Id reassign no content response

func (*PutWebhooksIDReassignNoContent) Error

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

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

Code gets the status code for the put webhooks Id reassign not found response

func (*PutWebhooksIDReassignNotFound) Error

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

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 (*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

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

WithBody adds the body to the put webhooks ID reassign params

func (*PutWebhooksIDReassignParams) WithContext

WithContext adds the context to the put webhooks ID reassign params

func (*PutWebhooksIDReassignParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the put webhooks ID reassign params

func (*PutWebhooksIDReassignParams) WithID

WithID adds the id to the put webhooks ID reassign params

func (*PutWebhooksIDReassignParams) WithTimeout

WithTimeout adds the timeout to the put webhooks ID reassign params

func (*PutWebhooksIDReassignParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL