updates

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 11 Imported by: 2

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 updates API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new updates API client.

func (*Client) DeleteWebhook

func (a *Client) DeleteWebhook(params *DeleteWebhookParams) (*DeleteWebhookOK, error)

DeleteWebhook delete webhook API

func (*Client) GetUpdates

func (a *Client) GetUpdates(params *GetUpdatesParams) (*GetUpdatesOK, error)

GetUpdates get updates API

func (*Client) GetWebhookInfo

func (a *Client) GetWebhookInfo(params *GetWebhookInfoParams) (*GetWebhookInfoOK, error)

GetWebhookInfo get webhook info API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SetWebhook

func (a *Client) SetWebhook(params *SetWebhookParams) (*SetWebhookOK, error)

SetWebhook set webhook API

type DeleteWebhookBadRequest

type DeleteWebhookBadRequest struct {
	Payload *models.Error
}

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 DeleteWebhookEnhanceYourCalm

type DeleteWebhookEnhanceYourCalm struct {
	Payload *models.Error
}

DeleteWebhookEnhanceYourCalm handles this case with default header values.

Flood

func NewDeleteWebhookEnhanceYourCalm

func NewDeleteWebhookEnhanceYourCalm() *DeleteWebhookEnhanceYourCalm

NewDeleteWebhookEnhanceYourCalm creates a DeleteWebhookEnhanceYourCalm with default headers values

func (*DeleteWebhookEnhanceYourCalm) Error

type DeleteWebhookForbidden

type DeleteWebhookForbidden struct {
	Payload *models.Error
}

DeleteWebhookForbidden handles this case with default header values.

Forbidden

func NewDeleteWebhookForbidden

func NewDeleteWebhookForbidden() *DeleteWebhookForbidden

NewDeleteWebhookForbidden creates a DeleteWebhookForbidden with default headers values

func (*DeleteWebhookForbidden) Error

func (o *DeleteWebhookForbidden) Error() string

type DeleteWebhookInternalServerError

type DeleteWebhookInternalServerError struct {
	Payload *models.Error
}

DeleteWebhookInternalServerError handles this case with default header values.

Internal

func NewDeleteWebhookInternalServerError

func NewDeleteWebhookInternalServerError() *DeleteWebhookInternalServerError

NewDeleteWebhookInternalServerError creates a DeleteWebhookInternalServerError with default headers values

func (*DeleteWebhookInternalServerError) Error

type DeleteWebhookNotFound

type DeleteWebhookNotFound struct {
	Payload *models.Error
}

DeleteWebhookNotFound handles this case with default header values.

Not Found

func NewDeleteWebhookNotFound

func NewDeleteWebhookNotFound() *DeleteWebhookNotFound

NewDeleteWebhookNotFound creates a DeleteWebhookNotFound with default headers values

func (*DeleteWebhookNotFound) Error

func (o *DeleteWebhookNotFound) Error() string

type DeleteWebhookOK

type DeleteWebhookOK struct {
	Payload *models.ResponseBool
}

DeleteWebhookOK handles this case with default header values.

Is OK?

func NewDeleteWebhookOK

func NewDeleteWebhookOK() *DeleteWebhookOK

NewDeleteWebhookOK creates a DeleteWebhookOK with default headers values

func (*DeleteWebhookOK) Error

func (o *DeleteWebhookOK) Error() string

type DeleteWebhookParams

type DeleteWebhookParams struct {
	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) WithContext

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) 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 DeleteWebhookUnauthorized

type DeleteWebhookUnauthorized struct {
	Payload *models.Error
}

DeleteWebhookUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteWebhookUnauthorized

func NewDeleteWebhookUnauthorized() *DeleteWebhookUnauthorized

NewDeleteWebhookUnauthorized creates a DeleteWebhookUnauthorized with default headers values

func (*DeleteWebhookUnauthorized) Error

func (o *DeleteWebhookUnauthorized) Error() string

type GetUpdatesBadRequest

type GetUpdatesBadRequest struct {
	Payload *models.Error
}

GetUpdatesBadRequest handles this case with default header values.

Bad Request

func NewGetUpdatesBadRequest

func NewGetUpdatesBadRequest() *GetUpdatesBadRequest

NewGetUpdatesBadRequest creates a GetUpdatesBadRequest with default headers values

func (*GetUpdatesBadRequest) Error

func (o *GetUpdatesBadRequest) Error() string

type GetUpdatesEnhanceYourCalm

type GetUpdatesEnhanceYourCalm struct {
	Payload *models.Error
}

GetUpdatesEnhanceYourCalm handles this case with default header values.

Flood

func NewGetUpdatesEnhanceYourCalm

func NewGetUpdatesEnhanceYourCalm() *GetUpdatesEnhanceYourCalm

NewGetUpdatesEnhanceYourCalm creates a GetUpdatesEnhanceYourCalm with default headers values

func (*GetUpdatesEnhanceYourCalm) Error

func (o *GetUpdatesEnhanceYourCalm) Error() string

type GetUpdatesForbidden

type GetUpdatesForbidden struct {
	Payload *models.Error
}

GetUpdatesForbidden handles this case with default header values.

Forbidden

func NewGetUpdatesForbidden

func NewGetUpdatesForbidden() *GetUpdatesForbidden

NewGetUpdatesForbidden creates a GetUpdatesForbidden with default headers values

func (*GetUpdatesForbidden) Error

func (o *GetUpdatesForbidden) Error() string

type GetUpdatesInternalServerError

type GetUpdatesInternalServerError struct {
	Payload *models.Error
}

GetUpdatesInternalServerError handles this case with default header values.

Internal

func NewGetUpdatesInternalServerError

func NewGetUpdatesInternalServerError() *GetUpdatesInternalServerError

NewGetUpdatesInternalServerError creates a GetUpdatesInternalServerError with default headers values

func (*GetUpdatesInternalServerError) Error

type GetUpdatesNotFound

type GetUpdatesNotFound struct {
	Payload *models.Error
}

GetUpdatesNotFound handles this case with default header values.

Not Found

func NewGetUpdatesNotFound

func NewGetUpdatesNotFound() *GetUpdatesNotFound

NewGetUpdatesNotFound creates a GetUpdatesNotFound with default headers values

func (*GetUpdatesNotFound) Error

func (o *GetUpdatesNotFound) Error() string

type GetUpdatesOK

type GetUpdatesOK struct {
	Payload *models.ResponseUpdate
}

GetUpdatesOK handles this case with default header values.

An array of Updates

func NewGetUpdatesOK

func NewGetUpdatesOK() *GetUpdatesOK

NewGetUpdatesOK creates a GetUpdatesOK with default headers values

func (*GetUpdatesOK) Error

func (o *GetUpdatesOK) Error() string

type GetUpdatesParams

type GetUpdatesParams struct {

	/*AllowedUpdates*/
	AllowedUpdates []string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64
	/*Timeout*/
	Timeout *int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUpdatesParams contains all the parameters to send to the API endpoint for the get updates operation typically these are written to a http.Request

func NewGetUpdatesParams

func NewGetUpdatesParams() *GetUpdatesParams

NewGetUpdatesParams creates a new GetUpdatesParams object with the default values initialized.

func NewGetUpdatesParamsWithContext

func NewGetUpdatesParamsWithContext(ctx context.Context) *GetUpdatesParams

NewGetUpdatesParamsWithContext creates a new GetUpdatesParams object with the default values initialized, and the ability to set a context for a request

func NewGetUpdatesParamsWithHTTPClient

func NewGetUpdatesParamsWithHTTPClient(client *http.Client) *GetUpdatesParams

NewGetUpdatesParamsWithHTTPClient creates a new GetUpdatesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUpdatesParamsWithTimeout

func NewGetUpdatesParamsWithTimeout(timeout time.Duration) *GetUpdatesParams

NewGetUpdatesParamsWithTimeout creates a new GetUpdatesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUpdatesParams) SetAllowedUpdates

func (o *GetUpdatesParams) SetAllowedUpdates(allowedUpdates []string)

SetAllowedUpdates adds the allowedUpdates to the get updates params

func (*GetUpdatesParams) SetContext

func (o *GetUpdatesParams) SetContext(ctx context.Context)

SetContext adds the context to the get updates params

func (*GetUpdatesParams) SetHTTPClient

func (o *GetUpdatesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get updates params

func (*GetUpdatesParams) SetLimit

func (o *GetUpdatesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get updates params

func (*GetUpdatesParams) SetOffset

func (o *GetUpdatesParams) SetOffset(offset *int64)

SetOffset adds the offset to the get updates params

func (*GetUpdatesParams) SetRequestTimeout

func (o *GetUpdatesParams) SetRequestTimeout(timeout time.Duration)

SetRequestTimeout adds the timeout to the get updates params

func (*GetUpdatesParams) SetTimeout

func (o *GetUpdatesParams) SetTimeout(timeout *int64)

SetTimeout adds the timeout to the get updates params

func (*GetUpdatesParams) SetToken

func (o *GetUpdatesParams) SetToken(token *string)

SetToken adds the token to the get updates params

func (*GetUpdatesParams) WithAllowedUpdates

func (o *GetUpdatesParams) WithAllowedUpdates(allowedUpdates []string) *GetUpdatesParams

WithAllowedUpdates adds the allowedUpdates to the get updates params

func (*GetUpdatesParams) WithContext

func (o *GetUpdatesParams) WithContext(ctx context.Context) *GetUpdatesParams

WithContext adds the context to the get updates params

func (*GetUpdatesParams) WithHTTPClient

func (o *GetUpdatesParams) WithHTTPClient(client *http.Client) *GetUpdatesParams

WithHTTPClient adds the HTTPClient to the get updates params

func (*GetUpdatesParams) WithLimit

func (o *GetUpdatesParams) WithLimit(limit *int64) *GetUpdatesParams

WithLimit adds the limit to the get updates params

func (*GetUpdatesParams) WithOffset

func (o *GetUpdatesParams) WithOffset(offset *int64) *GetUpdatesParams

WithOffset adds the offset to the get updates params

func (*GetUpdatesParams) WithRequestTimeout

func (o *GetUpdatesParams) WithRequestTimeout(timeout time.Duration) *GetUpdatesParams

WithRequestTimeout adds the timeout to the get updates params

func (*GetUpdatesParams) WithTimeout

func (o *GetUpdatesParams) WithTimeout(timeout *int64) *GetUpdatesParams

WithTimeout adds the timeout to the get updates params

func (*GetUpdatesParams) WithToken

func (o *GetUpdatesParams) WithToken(token *string) *GetUpdatesParams

WithToken adds the token to the get updates params

func (*GetUpdatesParams) WriteToRequest

func (o *GetUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUpdatesReader

type GetUpdatesReader struct {
	// contains filtered or unexported fields
}

GetUpdatesReader is a Reader for the GetUpdates structure.

func (*GetUpdatesReader) ReadResponse

func (o *GetUpdatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUpdatesUnauthorized

type GetUpdatesUnauthorized struct {
	Payload *models.Error
}

GetUpdatesUnauthorized handles this case with default header values.

Unauthorized

func NewGetUpdatesUnauthorized

func NewGetUpdatesUnauthorized() *GetUpdatesUnauthorized

NewGetUpdatesUnauthorized creates a GetUpdatesUnauthorized with default headers values

func (*GetUpdatesUnauthorized) Error

func (o *GetUpdatesUnauthorized) Error() string

type GetWebhookInfoBadRequest

type GetWebhookInfoBadRequest struct {
	Payload *models.Error
}

GetWebhookInfoBadRequest handles this case with default header values.

Bad Request

func NewGetWebhookInfoBadRequest

func NewGetWebhookInfoBadRequest() *GetWebhookInfoBadRequest

NewGetWebhookInfoBadRequest creates a GetWebhookInfoBadRequest with default headers values

func (*GetWebhookInfoBadRequest) Error

func (o *GetWebhookInfoBadRequest) Error() string

type GetWebhookInfoEnhanceYourCalm

type GetWebhookInfoEnhanceYourCalm struct {
	Payload *models.Error
}

GetWebhookInfoEnhanceYourCalm handles this case with default header values.

Flood

func NewGetWebhookInfoEnhanceYourCalm

func NewGetWebhookInfoEnhanceYourCalm() *GetWebhookInfoEnhanceYourCalm

NewGetWebhookInfoEnhanceYourCalm creates a GetWebhookInfoEnhanceYourCalm with default headers values

func (*GetWebhookInfoEnhanceYourCalm) Error

type GetWebhookInfoForbidden

type GetWebhookInfoForbidden struct {
	Payload *models.Error
}

GetWebhookInfoForbidden handles this case with default header values.

Forbidden

func NewGetWebhookInfoForbidden

func NewGetWebhookInfoForbidden() *GetWebhookInfoForbidden

NewGetWebhookInfoForbidden creates a GetWebhookInfoForbidden with default headers values

func (*GetWebhookInfoForbidden) Error

func (o *GetWebhookInfoForbidden) Error() string

type GetWebhookInfoInternalServerError

type GetWebhookInfoInternalServerError struct {
	Payload *models.Error
}

GetWebhookInfoInternalServerError handles this case with default header values.

Internal

func NewGetWebhookInfoInternalServerError

func NewGetWebhookInfoInternalServerError() *GetWebhookInfoInternalServerError

NewGetWebhookInfoInternalServerError creates a GetWebhookInfoInternalServerError with default headers values

func (*GetWebhookInfoInternalServerError) Error

type GetWebhookInfoNotFound

type GetWebhookInfoNotFound struct {
	Payload *models.Error
}

GetWebhookInfoNotFound handles this case with default header values.

Not Found

func NewGetWebhookInfoNotFound

func NewGetWebhookInfoNotFound() *GetWebhookInfoNotFound

NewGetWebhookInfoNotFound creates a GetWebhookInfoNotFound with default headers values

func (*GetWebhookInfoNotFound) Error

func (o *GetWebhookInfoNotFound) Error() string

type GetWebhookInfoOK

type GetWebhookInfoOK struct {
	Payload *models.WebhookInfo
}

GetWebhookInfoOK handles this case with default header values.

Response Body

func NewGetWebhookInfoOK

func NewGetWebhookInfoOK() *GetWebhookInfoOK

NewGetWebhookInfoOK creates a GetWebhookInfoOK with default headers values

func (*GetWebhookInfoOK) Error

func (o *GetWebhookInfoOK) Error() string

type GetWebhookInfoParams

type GetWebhookInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetWebhookInfoParams contains all the parameters to send to the API endpoint for the get webhook info operation typically these are written to a http.Request

func NewGetWebhookInfoParams

func NewGetWebhookInfoParams() *GetWebhookInfoParams

NewGetWebhookInfoParams creates a new GetWebhookInfoParams object with the default values initialized.

func NewGetWebhookInfoParamsWithContext

func NewGetWebhookInfoParamsWithContext(ctx context.Context) *GetWebhookInfoParams

NewGetWebhookInfoParamsWithContext creates a new GetWebhookInfoParams object with the default values initialized, and the ability to set a context for a request

func NewGetWebhookInfoParamsWithHTTPClient

func NewGetWebhookInfoParamsWithHTTPClient(client *http.Client) *GetWebhookInfoParams

NewGetWebhookInfoParamsWithHTTPClient creates a new GetWebhookInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetWebhookInfoParamsWithTimeout

func NewGetWebhookInfoParamsWithTimeout(timeout time.Duration) *GetWebhookInfoParams

NewGetWebhookInfoParamsWithTimeout creates a new GetWebhookInfoParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetWebhookInfoParams) SetContext

func (o *GetWebhookInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get webhook info params

func (*GetWebhookInfoParams) SetHTTPClient

func (o *GetWebhookInfoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get webhook info params

func (*GetWebhookInfoParams) SetTimeout

func (o *GetWebhookInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get webhook info params

func (*GetWebhookInfoParams) WithContext

WithContext adds the context to the get webhook info params

func (*GetWebhookInfoParams) WithHTTPClient

func (o *GetWebhookInfoParams) WithHTTPClient(client *http.Client) *GetWebhookInfoParams

WithHTTPClient adds the HTTPClient to the get webhook info params

func (*GetWebhookInfoParams) WithTimeout

func (o *GetWebhookInfoParams) WithTimeout(timeout time.Duration) *GetWebhookInfoParams

WithTimeout adds the timeout to the get webhook info params

func (*GetWebhookInfoParams) WriteToRequest

func (o *GetWebhookInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetWebhookInfoReader

type GetWebhookInfoReader struct {
	// contains filtered or unexported fields
}

GetWebhookInfoReader is a Reader for the GetWebhookInfo structure.

func (*GetWebhookInfoReader) ReadResponse

func (o *GetWebhookInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetWebhookInfoUnauthorized

type GetWebhookInfoUnauthorized struct {
	Payload *models.Error
}

GetWebhookInfoUnauthorized handles this case with default header values.

Unauthorized

func NewGetWebhookInfoUnauthorized

func NewGetWebhookInfoUnauthorized() *GetWebhookInfoUnauthorized

NewGetWebhookInfoUnauthorized creates a GetWebhookInfoUnauthorized with default headers values

func (*GetWebhookInfoUnauthorized) Error

type SetWebhookBadRequest

type SetWebhookBadRequest struct {
	Payload *models.Error
}

SetWebhookBadRequest handles this case with default header values.

Bad Request

func NewSetWebhookBadRequest

func NewSetWebhookBadRequest() *SetWebhookBadRequest

NewSetWebhookBadRequest creates a SetWebhookBadRequest with default headers values

func (*SetWebhookBadRequest) Error

func (o *SetWebhookBadRequest) Error() string

type SetWebhookEnhanceYourCalm

type SetWebhookEnhanceYourCalm struct {
	Payload *models.Error
}

SetWebhookEnhanceYourCalm handles this case with default header values.

Flood

func NewSetWebhookEnhanceYourCalm

func NewSetWebhookEnhanceYourCalm() *SetWebhookEnhanceYourCalm

NewSetWebhookEnhanceYourCalm creates a SetWebhookEnhanceYourCalm with default headers values

func (*SetWebhookEnhanceYourCalm) Error

func (o *SetWebhookEnhanceYourCalm) Error() string

type SetWebhookForbidden

type SetWebhookForbidden struct {
	Payload *models.Error
}

SetWebhookForbidden handles this case with default header values.

Forbidden

func NewSetWebhookForbidden

func NewSetWebhookForbidden() *SetWebhookForbidden

NewSetWebhookForbidden creates a SetWebhookForbidden with default headers values

func (*SetWebhookForbidden) Error

func (o *SetWebhookForbidden) Error() string

type SetWebhookInternalServerError

type SetWebhookInternalServerError struct {
	Payload *models.Error
}

SetWebhookInternalServerError handles this case with default header values.

Internal

func NewSetWebhookInternalServerError

func NewSetWebhookInternalServerError() *SetWebhookInternalServerError

NewSetWebhookInternalServerError creates a SetWebhookInternalServerError with default headers values

func (*SetWebhookInternalServerError) Error

type SetWebhookNotFound

type SetWebhookNotFound struct {
	Payload *models.Error
}

SetWebhookNotFound handles this case with default header values.

Not Found

func NewSetWebhookNotFound

func NewSetWebhookNotFound() *SetWebhookNotFound

NewSetWebhookNotFound creates a SetWebhookNotFound with default headers values

func (*SetWebhookNotFound) Error

func (o *SetWebhookNotFound) Error() string

type SetWebhookOK

type SetWebhookOK struct {
	Payload *models.ResponseBool
}

SetWebhookOK handles this case with default header values.

Is OK?

func NewSetWebhookOK

func NewSetWebhookOK() *SetWebhookOK

NewSetWebhookOK creates a SetWebhookOK with default headers values

func (*SetWebhookOK) Error

func (o *SetWebhookOK) Error() string

type SetWebhookParams

type SetWebhookParams struct {

	/*AllowedUpdates*/
	AllowedUpdates []string
	/*Certificate*/
	Certificate runtime.NamedReadCloser
	/*MaxConnections*/
	MaxConnections *int64
	/*Token
	  bot's token to authorize the request

	*/
	Token *string
	/*URL*/
	URL string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetWebhookParams contains all the parameters to send to the API endpoint for the set webhook operation typically these are written to a http.Request

func NewSetWebhookParams

func NewSetWebhookParams() *SetWebhookParams

NewSetWebhookParams creates a new SetWebhookParams object with the default values initialized.

func NewSetWebhookParamsWithContext

func NewSetWebhookParamsWithContext(ctx context.Context) *SetWebhookParams

NewSetWebhookParamsWithContext creates a new SetWebhookParams object with the default values initialized, and the ability to set a context for a request

func NewSetWebhookParamsWithHTTPClient

func NewSetWebhookParamsWithHTTPClient(client *http.Client) *SetWebhookParams

NewSetWebhookParamsWithHTTPClient creates a new SetWebhookParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetWebhookParamsWithTimeout

func NewSetWebhookParamsWithTimeout(timeout time.Duration) *SetWebhookParams

NewSetWebhookParamsWithTimeout creates a new SetWebhookParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetWebhookParams) SetAllowedUpdates

func (o *SetWebhookParams) SetAllowedUpdates(allowedUpdates []string)

SetAllowedUpdates adds the allowedUpdates to the set webhook params

func (*SetWebhookParams) SetCertificate

func (o *SetWebhookParams) SetCertificate(certificate runtime.NamedReadCloser)

SetCertificate adds the certificate to the set webhook params

func (*SetWebhookParams) SetContext

func (o *SetWebhookParams) SetContext(ctx context.Context)

SetContext adds the context to the set webhook params

func (*SetWebhookParams) SetHTTPClient

func (o *SetWebhookParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set webhook params

func (*SetWebhookParams) SetMaxConnections

func (o *SetWebhookParams) SetMaxConnections(maxConnections *int64)

SetMaxConnections adds the maxConnections to the set webhook params

func (*SetWebhookParams) SetTimeout

func (o *SetWebhookParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set webhook params

func (*SetWebhookParams) SetToken

func (o *SetWebhookParams) SetToken(token *string)

SetToken adds the token to the set webhook params

func (*SetWebhookParams) SetURL

func (o *SetWebhookParams) SetURL(url string)

SetURL adds the url to the set webhook params

func (*SetWebhookParams) WithAllowedUpdates

func (o *SetWebhookParams) WithAllowedUpdates(allowedUpdates []string) *SetWebhookParams

WithAllowedUpdates adds the allowedUpdates to the set webhook params

func (*SetWebhookParams) WithCertificate

func (o *SetWebhookParams) WithCertificate(certificate runtime.NamedReadCloser) *SetWebhookParams

WithCertificate adds the certificate to the set webhook params

func (*SetWebhookParams) WithContext

func (o *SetWebhookParams) WithContext(ctx context.Context) *SetWebhookParams

WithContext adds the context to the set webhook params

func (*SetWebhookParams) WithHTTPClient

func (o *SetWebhookParams) WithHTTPClient(client *http.Client) *SetWebhookParams

WithHTTPClient adds the HTTPClient to the set webhook params

func (*SetWebhookParams) WithMaxConnections

func (o *SetWebhookParams) WithMaxConnections(maxConnections *int64) *SetWebhookParams

WithMaxConnections adds the maxConnections to the set webhook params

func (*SetWebhookParams) WithTimeout

func (o *SetWebhookParams) WithTimeout(timeout time.Duration) *SetWebhookParams

WithTimeout adds the timeout to the set webhook params

func (*SetWebhookParams) WithToken

func (o *SetWebhookParams) WithToken(token *string) *SetWebhookParams

WithToken adds the token to the set webhook params

func (*SetWebhookParams) WithURL

func (o *SetWebhookParams) WithURL(url string) *SetWebhookParams

WithURL adds the url to the set webhook params

func (*SetWebhookParams) WriteToRequest

func (o *SetWebhookParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SetWebhookReader

type SetWebhookReader struct {
	// contains filtered or unexported fields
}

SetWebhookReader is a Reader for the SetWebhook structure.

func (*SetWebhookReader) ReadResponse

func (o *SetWebhookReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetWebhookUnauthorized

type SetWebhookUnauthorized struct {
	Payload *models.Error
}

SetWebhookUnauthorized handles this case with default header values.

Unauthorized

func NewSetWebhookUnauthorized

func NewSetWebhookUnauthorized() *SetWebhookUnauthorized

NewSetWebhookUnauthorized creates a SetWebhookUnauthorized with default headers values

func (*SetWebhookUnauthorized) Error

func (o *SetWebhookUnauthorized) Error() string

Jump to

Keyboard shortcuts

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