Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateWebhook(params *CreateWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWebhookCreated, error)
- func (a *Client) DeleteWebhook(params *DeleteWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWebhookNoContent, error)
- func (a *Client) GetWebhook(params *GetWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookOK, error)
- func (a *Client) GetWebhooks(params *GetWebhooksParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhooksOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateWebhook(params *UpdateWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWebhookNoContent, error)
- type CreateWebhookBadRequest
- type CreateWebhookCreated
- type CreateWebhookParams
- func (o *CreateWebhookParams) SetContext(ctx context.Context)
- func (o *CreateWebhookParams) SetCreateWebhook(createWebhook *models.CreateWebhook)
- func (o *CreateWebhookParams) SetHTTPClient(client *http.Client)
- func (o *CreateWebhookParams) SetTimeout(timeout time.Duration)
- func (o *CreateWebhookParams) WithContext(ctx context.Context) *CreateWebhookParams
- func (o *CreateWebhookParams) WithCreateWebhook(createWebhook *models.CreateWebhook) *CreateWebhookParams
- func (o *CreateWebhookParams) WithHTTPClient(client *http.Client) *CreateWebhookParams
- func (o *CreateWebhookParams) WithTimeout(timeout time.Duration) *CreateWebhookParams
- func (o *CreateWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWebhookReader
- type DeleteWebhookBadRequest
- type DeleteWebhookNoContent
- type DeleteWebhookNotFound
- type DeleteWebhookParams
- func (o *DeleteWebhookParams) SetContext(ctx context.Context)
- func (o *DeleteWebhookParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWebhookParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWebhookParams) SetWebhookID(webhookID int64)
- func (o *DeleteWebhookParams) WithContext(ctx context.Context) *DeleteWebhookParams
- func (o *DeleteWebhookParams) WithHTTPClient(client *http.Client) *DeleteWebhookParams
- func (o *DeleteWebhookParams) WithTimeout(timeout time.Duration) *DeleteWebhookParams
- func (o *DeleteWebhookParams) WithWebhookID(webhookID int64) *DeleteWebhookParams
- func (o *DeleteWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWebhookReader
- type GetWebhookBadRequest
- type GetWebhookNotFound
- type GetWebhookOK
- type GetWebhookParams
- func (o *GetWebhookParams) SetContext(ctx context.Context)
- func (o *GetWebhookParams) SetHTTPClient(client *http.Client)
- func (o *GetWebhookParams) SetTimeout(timeout time.Duration)
- func (o *GetWebhookParams) SetWebhookID(webhookID int64)
- func (o *GetWebhookParams) WithContext(ctx context.Context) *GetWebhookParams
- func (o *GetWebhookParams) WithHTTPClient(client *http.Client) *GetWebhookParams
- func (o *GetWebhookParams) WithTimeout(timeout time.Duration) *GetWebhookParams
- func (o *GetWebhookParams) WithWebhookID(webhookID int64) *GetWebhookParams
- func (o *GetWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWebhookReader
- type GetWebhooksBadRequest
- type GetWebhooksOK
- type GetWebhooksParams
- func (o *GetWebhooksParams) SetContext(ctx context.Context)
- func (o *GetWebhooksParams) SetHTTPClient(client *http.Client)
- func (o *GetWebhooksParams) SetTimeout(timeout time.Duration)
- func (o *GetWebhooksParams) SetType(typeVar *string)
- func (o *GetWebhooksParams) WithContext(ctx context.Context) *GetWebhooksParams
- func (o *GetWebhooksParams) WithHTTPClient(client *http.Client) *GetWebhooksParams
- func (o *GetWebhooksParams) WithTimeout(timeout time.Duration) *GetWebhooksParams
- func (o *GetWebhooksParams) WithType(typeVar *string) *GetWebhooksParams
- func (o *GetWebhooksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWebhooksReader
- type UpdateWebhookBadRequest
- type UpdateWebhookNoContent
- type UpdateWebhookNotFound
- type UpdateWebhookParams
- func (o *UpdateWebhookParams) SetContext(ctx context.Context)
- func (o *UpdateWebhookParams) SetHTTPClient(client *http.Client)
- func (o *UpdateWebhookParams) SetTimeout(timeout time.Duration)
- func (o *UpdateWebhookParams) SetUpdateWebhook(updateWebhook *models.UpdateWebhook)
- func (o *UpdateWebhookParams) SetWebhookID(webhookID int64)
- func (o *UpdateWebhookParams) WithContext(ctx context.Context) *UpdateWebhookParams
- func (o *UpdateWebhookParams) WithHTTPClient(client *http.Client) *UpdateWebhookParams
- func (o *UpdateWebhookParams) WithTimeout(timeout time.Duration) *UpdateWebhookParams
- func (o *UpdateWebhookParams) WithUpdateWebhook(updateWebhook *models.UpdateWebhook) *UpdateWebhookParams
- func (o *UpdateWebhookParams) WithWebhookID(webhookID int64) *UpdateWebhookParams
- func (o *UpdateWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateWebhookReader
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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new webhooks API client.
func (*Client) CreateWebhook ¶
func (a *Client) CreateWebhook(params *CreateWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWebhookCreated, error)
CreateWebhook creates a webhook
func (*Client) DeleteWebhook ¶
func (a *Client) DeleteWebhook(params *DeleteWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWebhookNoContent, error)
DeleteWebhook deletes a webhook
func (*Client) GetWebhook ¶
func (a *Client) GetWebhook(params *GetWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookOK, error)
GetWebhook gets a webhook details
func (*Client) GetWebhooks ¶
func (a *Client) GetWebhooks(params *GetWebhooksParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhooksOK, error)
GetWebhooks gets all webhooks
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateWebhook ¶
func (a *Client) UpdateWebhook(params *UpdateWebhookParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWebhookNoContent, error)
UpdateWebhook updates a webhook
type CreateWebhookBadRequest ¶
type CreateWebhookBadRequest struct {
Payload *models.ErrorModel
}
CreateWebhookBadRequest handles this case with default header values.
bad request
func NewCreateWebhookBadRequest ¶
func NewCreateWebhookBadRequest() *CreateWebhookBadRequest
NewCreateWebhookBadRequest creates a CreateWebhookBadRequest with default headers values
func (*CreateWebhookBadRequest) Error ¶
func (o *CreateWebhookBadRequest) Error() string
type CreateWebhookCreated ¶
type CreateWebhookCreated struct {
Payload *models.CreateModel
}
CreateWebhookCreated handles this case with default header values.
Webhook created
func NewCreateWebhookCreated ¶
func NewCreateWebhookCreated() *CreateWebhookCreated
NewCreateWebhookCreated creates a CreateWebhookCreated with default headers values
func (*CreateWebhookCreated) Error ¶
func (o *CreateWebhookCreated) Error() string
type CreateWebhookParams ¶
type CreateWebhookParams struct { /*CreateWebhook Values to create a webhook */ CreateWebhook *models.CreateWebhook Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateWebhookParams contains all the parameters to send to the API endpoint for the create webhook operation typically these are written to a http.Request
func NewCreateWebhookParams ¶
func NewCreateWebhookParams() *CreateWebhookParams
NewCreateWebhookParams creates a new CreateWebhookParams object with the default values initialized.
func NewCreateWebhookParamsWithContext ¶
func NewCreateWebhookParamsWithContext(ctx context.Context) *CreateWebhookParams
NewCreateWebhookParamsWithContext creates a new CreateWebhookParams object with the default values initialized, and the ability to set a context for a request
func NewCreateWebhookParamsWithHTTPClient ¶
func NewCreateWebhookParamsWithHTTPClient(client *http.Client) *CreateWebhookParams
NewCreateWebhookParamsWithHTTPClient creates a new CreateWebhookParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateWebhookParamsWithTimeout ¶
func NewCreateWebhookParamsWithTimeout(timeout time.Duration) *CreateWebhookParams
NewCreateWebhookParamsWithTimeout creates a new CreateWebhookParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateWebhookParams) SetContext ¶
func (o *CreateWebhookParams) SetContext(ctx context.Context)
SetContext adds the context to the create webhook params
func (*CreateWebhookParams) SetCreateWebhook ¶
func (o *CreateWebhookParams) SetCreateWebhook(createWebhook *models.CreateWebhook)
SetCreateWebhook adds the createWebhook to the create webhook params
func (*CreateWebhookParams) SetHTTPClient ¶
func (o *CreateWebhookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create webhook params
func (*CreateWebhookParams) SetTimeout ¶
func (o *CreateWebhookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create webhook params
func (*CreateWebhookParams) WithContext ¶
func (o *CreateWebhookParams) WithContext(ctx context.Context) *CreateWebhookParams
WithContext adds the context to the create webhook params
func (*CreateWebhookParams) WithCreateWebhook ¶
func (o *CreateWebhookParams) WithCreateWebhook(createWebhook *models.CreateWebhook) *CreateWebhookParams
WithCreateWebhook adds the createWebhook to the create webhook params
func (*CreateWebhookParams) WithHTTPClient ¶
func (o *CreateWebhookParams) WithHTTPClient(client *http.Client) *CreateWebhookParams
WithHTTPClient adds the HTTPClient to the create webhook params
func (*CreateWebhookParams) WithTimeout ¶
func (o *CreateWebhookParams) WithTimeout(timeout time.Duration) *CreateWebhookParams
WithTimeout adds the timeout to the create webhook params
func (*CreateWebhookParams) WriteToRequest ¶
func (o *CreateWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateWebhookReader ¶
type CreateWebhookReader struct {
// contains filtered or unexported fields
}
CreateWebhookReader is a Reader for the CreateWebhook structure.
func (*CreateWebhookReader) ReadResponse ¶
func (o *CreateWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteWebhookBadRequest ¶
type DeleteWebhookBadRequest struct {
Payload *models.ErrorModel
}
DeleteWebhookBadRequest handles this case with default header values.
bad request
func NewDeleteWebhookBadRequest ¶
func NewDeleteWebhookBadRequest() *DeleteWebhookBadRequest
NewDeleteWebhookBadRequest creates a DeleteWebhookBadRequest with default headers values
func (*DeleteWebhookBadRequest) Error ¶
func (o *DeleteWebhookBadRequest) Error() string
type DeleteWebhookNoContent ¶
type DeleteWebhookNoContent struct { }
DeleteWebhookNoContent handles this case with default header values.
Webhook deleted
func NewDeleteWebhookNoContent ¶
func NewDeleteWebhookNoContent() *DeleteWebhookNoContent
NewDeleteWebhookNoContent creates a DeleteWebhookNoContent with default headers values
func (*DeleteWebhookNoContent) Error ¶
func (o *DeleteWebhookNoContent) Error() string
type DeleteWebhookNotFound ¶
type DeleteWebhookNotFound struct {
Payload *models.ErrorModel
}
DeleteWebhookNotFound handles this case with default header values.
Webhook ID not found
func NewDeleteWebhookNotFound ¶
func NewDeleteWebhookNotFound() *DeleteWebhookNotFound
NewDeleteWebhookNotFound creates a DeleteWebhookNotFound with default headers values
func (*DeleteWebhookNotFound) Error ¶
func (o *DeleteWebhookNotFound) Error() string
type DeleteWebhookParams ¶
type DeleteWebhookParams struct { /*WebhookID Id of the webhook */ WebhookID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteWebhookParams contains all the parameters to send to the API endpoint for the delete webhook operation typically these are written to a http.Request
func NewDeleteWebhookParams ¶
func NewDeleteWebhookParams() *DeleteWebhookParams
NewDeleteWebhookParams creates a new DeleteWebhookParams object with the default values initialized.
func NewDeleteWebhookParamsWithContext ¶
func NewDeleteWebhookParamsWithContext(ctx context.Context) *DeleteWebhookParams
NewDeleteWebhookParamsWithContext creates a new DeleteWebhookParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteWebhookParamsWithHTTPClient ¶
func NewDeleteWebhookParamsWithHTTPClient(client *http.Client) *DeleteWebhookParams
NewDeleteWebhookParamsWithHTTPClient creates a new DeleteWebhookParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteWebhookParamsWithTimeout ¶
func NewDeleteWebhookParamsWithTimeout(timeout time.Duration) *DeleteWebhookParams
NewDeleteWebhookParamsWithTimeout creates a new DeleteWebhookParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteWebhookParams) SetContext ¶
func (o *DeleteWebhookParams) SetContext(ctx context.Context)
SetContext adds the context to the delete webhook params
func (*DeleteWebhookParams) SetHTTPClient ¶
func (o *DeleteWebhookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete webhook params
func (*DeleteWebhookParams) SetTimeout ¶
func (o *DeleteWebhookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete webhook params
func (*DeleteWebhookParams) SetWebhookID ¶
func (o *DeleteWebhookParams) SetWebhookID(webhookID int64)
SetWebhookID adds the webhookId to the delete webhook params
func (*DeleteWebhookParams) WithContext ¶
func (o *DeleteWebhookParams) WithContext(ctx context.Context) *DeleteWebhookParams
WithContext adds the context to the delete webhook params
func (*DeleteWebhookParams) WithHTTPClient ¶
func (o *DeleteWebhookParams) WithHTTPClient(client *http.Client) *DeleteWebhookParams
WithHTTPClient adds the HTTPClient to the delete webhook params
func (*DeleteWebhookParams) WithTimeout ¶
func (o *DeleteWebhookParams) WithTimeout(timeout time.Duration) *DeleteWebhookParams
WithTimeout adds the timeout to the delete webhook params
func (*DeleteWebhookParams) WithWebhookID ¶
func (o *DeleteWebhookParams) WithWebhookID(webhookID int64) *DeleteWebhookParams
WithWebhookID adds the webhookID to the delete webhook params
func (*DeleteWebhookParams) WriteToRequest ¶
func (o *DeleteWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteWebhookReader ¶
type DeleteWebhookReader struct {
// contains filtered or unexported fields
}
DeleteWebhookReader is a Reader for the DeleteWebhook structure.
func (*DeleteWebhookReader) ReadResponse ¶
func (o *DeleteWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWebhookBadRequest ¶
type GetWebhookBadRequest struct {
Payload *models.ErrorModel
}
GetWebhookBadRequest handles this case with default header values.
bad request
func NewGetWebhookBadRequest ¶
func NewGetWebhookBadRequest() *GetWebhookBadRequest
NewGetWebhookBadRequest creates a GetWebhookBadRequest with default headers values
func (*GetWebhookBadRequest) Error ¶
func (o *GetWebhookBadRequest) Error() string
type GetWebhookNotFound ¶
type GetWebhookNotFound struct {
Payload *models.ErrorModel
}
GetWebhookNotFound handles this case with default header values.
Webhook ID not found
func NewGetWebhookNotFound ¶
func NewGetWebhookNotFound() *GetWebhookNotFound
NewGetWebhookNotFound creates a GetWebhookNotFound with default headers values
func (*GetWebhookNotFound) Error ¶
func (o *GetWebhookNotFound) Error() string
type GetWebhookOK ¶
type GetWebhookOK struct {
Payload *models.GetWebhook
}
GetWebhookOK handles this case with default header values.
Webhook informations
func NewGetWebhookOK ¶
func NewGetWebhookOK() *GetWebhookOK
NewGetWebhookOK creates a GetWebhookOK with default headers values
func (*GetWebhookOK) Error ¶
func (o *GetWebhookOK) Error() string
type GetWebhookParams ¶
type GetWebhookParams struct { /*WebhookID Id of the webhook */ WebhookID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWebhookParams contains all the parameters to send to the API endpoint for the get webhook operation typically these are written to a http.Request
func NewGetWebhookParams ¶
func NewGetWebhookParams() *GetWebhookParams
NewGetWebhookParams creates a new GetWebhookParams object with the default values initialized.
func NewGetWebhookParamsWithContext ¶
func NewGetWebhookParamsWithContext(ctx context.Context) *GetWebhookParams
NewGetWebhookParamsWithContext creates a new GetWebhookParams object with the default values initialized, and the ability to set a context for a request
func NewGetWebhookParamsWithHTTPClient ¶
func NewGetWebhookParamsWithHTTPClient(client *http.Client) *GetWebhookParams
NewGetWebhookParamsWithHTTPClient creates a new GetWebhookParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetWebhookParamsWithTimeout ¶
func NewGetWebhookParamsWithTimeout(timeout time.Duration) *GetWebhookParams
NewGetWebhookParamsWithTimeout creates a new GetWebhookParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetWebhookParams) SetContext ¶
func (o *GetWebhookParams) SetContext(ctx context.Context)
SetContext adds the context to the get webhook params
func (*GetWebhookParams) SetHTTPClient ¶
func (o *GetWebhookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get webhook params
func (*GetWebhookParams) SetTimeout ¶
func (o *GetWebhookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get webhook params
func (*GetWebhookParams) SetWebhookID ¶
func (o *GetWebhookParams) SetWebhookID(webhookID int64)
SetWebhookID adds the webhookId to the get webhook params
func (*GetWebhookParams) WithContext ¶
func (o *GetWebhookParams) WithContext(ctx context.Context) *GetWebhookParams
WithContext adds the context to the get webhook params
func (*GetWebhookParams) WithHTTPClient ¶
func (o *GetWebhookParams) WithHTTPClient(client *http.Client) *GetWebhookParams
WithHTTPClient adds the HTTPClient to the get webhook params
func (*GetWebhookParams) WithTimeout ¶
func (o *GetWebhookParams) WithTimeout(timeout time.Duration) *GetWebhookParams
WithTimeout adds the timeout to the get webhook params
func (*GetWebhookParams) WithWebhookID ¶
func (o *GetWebhookParams) WithWebhookID(webhookID int64) *GetWebhookParams
WithWebhookID adds the webhookID to the get webhook params
func (*GetWebhookParams) WriteToRequest ¶
func (o *GetWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWebhookReader ¶
type GetWebhookReader struct {
// contains filtered or unexported fields
}
GetWebhookReader is a Reader for the GetWebhook structure.
func (*GetWebhookReader) ReadResponse ¶
func (o *GetWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWebhooksBadRequest ¶
type GetWebhooksBadRequest struct {
Payload *models.ErrorModel
}
GetWebhooksBadRequest handles this case with default header values.
bad request
func NewGetWebhooksBadRequest ¶
func NewGetWebhooksBadRequest() *GetWebhooksBadRequest
NewGetWebhooksBadRequest creates a GetWebhooksBadRequest with default headers values
func (*GetWebhooksBadRequest) Error ¶
func (o *GetWebhooksBadRequest) Error() string
type GetWebhooksOK ¶
type GetWebhooksOK struct {
Payload *models.GetWebhooks
}
GetWebhooksOK handles this case with default header values.
Webhooks informations
func NewGetWebhooksOK ¶
func NewGetWebhooksOK() *GetWebhooksOK
NewGetWebhooksOK creates a GetWebhooksOK with default headers values
func (*GetWebhooksOK) Error ¶
func (o *GetWebhooksOK) Error() string
type GetWebhooksParams ¶
type GetWebhooksParams struct { /*Type Filter on webhook type */ Type *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 values initialized.
func NewGetWebhooksParamsWithContext ¶
func NewGetWebhooksParamsWithContext(ctx context.Context) *GetWebhooksParams
NewGetWebhooksParamsWithContext creates a new GetWebhooksParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) SetType ¶
func (o *GetWebhooksParams) SetType(typeVar *string)
SetType adds the type 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) 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) WithType ¶
func (o *GetWebhooksParams) WithType(typeVar *string) *GetWebhooksParams
WithType adds the typeVar 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 UpdateWebhookBadRequest ¶
type UpdateWebhookBadRequest struct {
Payload *models.ErrorModel
}
UpdateWebhookBadRequest handles this case with default header values.
bad request
func NewUpdateWebhookBadRequest ¶
func NewUpdateWebhookBadRequest() *UpdateWebhookBadRequest
NewUpdateWebhookBadRequest creates a UpdateWebhookBadRequest with default headers values
func (*UpdateWebhookBadRequest) Error ¶
func (o *UpdateWebhookBadRequest) Error() string
type UpdateWebhookNoContent ¶
type UpdateWebhookNoContent struct { }
UpdateWebhookNoContent handles this case with default header values.
Webhook updated
func NewUpdateWebhookNoContent ¶
func NewUpdateWebhookNoContent() *UpdateWebhookNoContent
NewUpdateWebhookNoContent creates a UpdateWebhookNoContent with default headers values
func (*UpdateWebhookNoContent) Error ¶
func (o *UpdateWebhookNoContent) Error() string
type UpdateWebhookNotFound ¶
type UpdateWebhookNotFound struct {
Payload *models.ErrorModel
}
UpdateWebhookNotFound handles this case with default header values.
Webhook ID not found
func NewUpdateWebhookNotFound ¶
func NewUpdateWebhookNotFound() *UpdateWebhookNotFound
NewUpdateWebhookNotFound creates a UpdateWebhookNotFound with default headers values
func (*UpdateWebhookNotFound) Error ¶
func (o *UpdateWebhookNotFound) Error() string
type UpdateWebhookParams ¶
type UpdateWebhookParams struct { /*UpdateWebhook Values to update a webhook */ UpdateWebhook *models.UpdateWebhook /*WebhookID Id of the webhook */ WebhookID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateWebhookParams contains all the parameters to send to the API endpoint for the update webhook operation typically these are written to a http.Request
func NewUpdateWebhookParams ¶
func NewUpdateWebhookParams() *UpdateWebhookParams
NewUpdateWebhookParams creates a new UpdateWebhookParams object with the default values initialized.
func NewUpdateWebhookParamsWithContext ¶
func NewUpdateWebhookParamsWithContext(ctx context.Context) *UpdateWebhookParams
NewUpdateWebhookParamsWithContext creates a new UpdateWebhookParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateWebhookParamsWithHTTPClient ¶
func NewUpdateWebhookParamsWithHTTPClient(client *http.Client) *UpdateWebhookParams
NewUpdateWebhookParamsWithHTTPClient creates a new UpdateWebhookParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateWebhookParamsWithTimeout ¶
func NewUpdateWebhookParamsWithTimeout(timeout time.Duration) *UpdateWebhookParams
NewUpdateWebhookParamsWithTimeout creates a new UpdateWebhookParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateWebhookParams) SetContext ¶
func (o *UpdateWebhookParams) SetContext(ctx context.Context)
SetContext adds the context to the update webhook params
func (*UpdateWebhookParams) SetHTTPClient ¶
func (o *UpdateWebhookParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update webhook params
func (*UpdateWebhookParams) SetTimeout ¶
func (o *UpdateWebhookParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update webhook params
func (*UpdateWebhookParams) SetUpdateWebhook ¶
func (o *UpdateWebhookParams) SetUpdateWebhook(updateWebhook *models.UpdateWebhook)
SetUpdateWebhook adds the updateWebhook to the update webhook params
func (*UpdateWebhookParams) SetWebhookID ¶
func (o *UpdateWebhookParams) SetWebhookID(webhookID int64)
SetWebhookID adds the webhookId to the update webhook params
func (*UpdateWebhookParams) WithContext ¶
func (o *UpdateWebhookParams) WithContext(ctx context.Context) *UpdateWebhookParams
WithContext adds the context to the update webhook params
func (*UpdateWebhookParams) WithHTTPClient ¶
func (o *UpdateWebhookParams) WithHTTPClient(client *http.Client) *UpdateWebhookParams
WithHTTPClient adds the HTTPClient to the update webhook params
func (*UpdateWebhookParams) WithTimeout ¶
func (o *UpdateWebhookParams) WithTimeout(timeout time.Duration) *UpdateWebhookParams
WithTimeout adds the timeout to the update webhook params
func (*UpdateWebhookParams) WithUpdateWebhook ¶
func (o *UpdateWebhookParams) WithUpdateWebhook(updateWebhook *models.UpdateWebhook) *UpdateWebhookParams
WithUpdateWebhook adds the updateWebhook to the update webhook params
func (*UpdateWebhookParams) WithWebhookID ¶
func (o *UpdateWebhookParams) WithWebhookID(webhookID int64) *UpdateWebhookParams
WithWebhookID adds the webhookID to the update webhook params
func (*UpdateWebhookParams) WriteToRequest ¶
func (o *UpdateWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateWebhookReader ¶
type UpdateWebhookReader struct {
// contains filtered or unexported fields
}
UpdateWebhookReader is a Reader for the UpdateWebhook structure.
func (*UpdateWebhookReader) ReadResponse ¶
func (o *UpdateWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.