webhook

package
v5.0.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 11 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 webhook API

func (*Client) CreateWebhookPolicyOfProject

CreateWebhookPolicyOfProject creates project webhook policy

This endpoint create a webhook policy if the project does not have one.

func (*Client) DeleteWebhookPolicyOfProject

func (a *Client) DeleteWebhookPolicyOfProject(params *DeleteWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWebhookPolicyOfProjectOK, error)

DeleteWebhookPolicyOfProject deletes webhook policy of a project

This endpoint is aimed to delete webhookpolicy of a project.

func (*Client) GetSupportedEventTypes

func (a *Client) GetSupportedEventTypes(params *GetSupportedEventTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSupportedEventTypesOK, error)

GetSupportedEventTypes gets supported event types and notify types

Get supportted event types and notify types.

func (*Client) GetWebhookPolicyOfProject

func (a *Client) GetWebhookPolicyOfProject(params *GetWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookPolicyOfProjectOK, error)

GetWebhookPolicyOfProject gets project webhook policy

This endpoint returns specified webhook policy of a project.

func (*Client) LastTrigger

func (a *Client) LastTrigger(params *LastTriggerParams, authInfo runtime.ClientAuthInfoWriter) (*LastTriggerOK, error)

LastTrigger gets project webhook policy last trigger info

This endpoint returns last trigger information of project webhook policy.

func (*Client) ListWebhookPoliciesOfProject

func (a *Client) ListWebhookPoliciesOfProject(params *ListWebhookPoliciesOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*ListWebhookPoliciesOfProjectOK, error)

ListWebhookPoliciesOfProject lists project webhook policies

This endpoint returns webhook policies of a project.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateWebhookPolicyOfProject

func (a *Client) UpdateWebhookPolicyOfProject(params *UpdateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWebhookPolicyOfProjectOK, error)

UpdateWebhookPolicyOfProject updates webhook policy of a project

This endpoint is aimed to update the webhook policy of a project.

type ClientService

type ClientService interface {
	CreateWebhookPolicyOfProject(params *CreateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWebhookPolicyOfProjectCreated, error)

	DeleteWebhookPolicyOfProject(params *DeleteWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWebhookPolicyOfProjectOK, error)

	GetSupportedEventTypes(params *GetSupportedEventTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSupportedEventTypesOK, error)

	GetWebhookPolicyOfProject(params *GetWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookPolicyOfProjectOK, error)

	LastTrigger(params *LastTriggerParams, authInfo runtime.ClientAuthInfoWriter) (*LastTriggerOK, error)

	ListWebhookPoliciesOfProject(params *ListWebhookPoliciesOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*ListWebhookPoliciesOfProjectOK, error)

	UpdateWebhookPolicyOfProject(params *UpdateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWebhookPolicyOfProjectOK, 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 webhook API client.

type CreateWebhookPolicyOfProjectBadRequest

type CreateWebhookPolicyOfProjectBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateWebhookPolicyOfProjectBadRequest handles this case with default header values.

Bad request

func NewCreateWebhookPolicyOfProjectBadRequest

func NewCreateWebhookPolicyOfProjectBadRequest() *CreateWebhookPolicyOfProjectBadRequest

NewCreateWebhookPolicyOfProjectBadRequest creates a CreateWebhookPolicyOfProjectBadRequest with default headers values

func (*CreateWebhookPolicyOfProjectBadRequest) Error

func (*CreateWebhookPolicyOfProjectBadRequest) GetPayload

type CreateWebhookPolicyOfProjectCreated

type CreateWebhookPolicyOfProjectCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateWebhookPolicyOfProjectCreated handles this case with default header values.

Project webhook policy create successfully.

func NewCreateWebhookPolicyOfProjectCreated

func NewCreateWebhookPolicyOfProjectCreated() *CreateWebhookPolicyOfProjectCreated

NewCreateWebhookPolicyOfProjectCreated creates a CreateWebhookPolicyOfProjectCreated with default headers values

func (*CreateWebhookPolicyOfProjectCreated) Error

type CreateWebhookPolicyOfProjectForbidden

type CreateWebhookPolicyOfProjectForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateWebhookPolicyOfProjectForbidden handles this case with default header values.

Forbidden

func NewCreateWebhookPolicyOfProjectForbidden

func NewCreateWebhookPolicyOfProjectForbidden() *CreateWebhookPolicyOfProjectForbidden

NewCreateWebhookPolicyOfProjectForbidden creates a CreateWebhookPolicyOfProjectForbidden with default headers values

func (*CreateWebhookPolicyOfProjectForbidden) Error

func (*CreateWebhookPolicyOfProjectForbidden) GetPayload

type CreateWebhookPolicyOfProjectInternalServerError

type CreateWebhookPolicyOfProjectInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateWebhookPolicyOfProjectInternalServerError handles this case with default header values.

Internal server error

func NewCreateWebhookPolicyOfProjectInternalServerError

func NewCreateWebhookPolicyOfProjectInternalServerError() *CreateWebhookPolicyOfProjectInternalServerError

NewCreateWebhookPolicyOfProjectInternalServerError creates a CreateWebhookPolicyOfProjectInternalServerError with default headers values

func (*CreateWebhookPolicyOfProjectInternalServerError) Error

func (*CreateWebhookPolicyOfProjectInternalServerError) GetPayload

type CreateWebhookPolicyOfProjectParams

type CreateWebhookPolicyOfProjectParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Policy
	  Properties "targets" and "event_types" needed.

	*/
	Policy *model.WebhookPolicy
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

CreateWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the create webhook policy of project operation typically these are written to a http.Request

func NewCreateWebhookPolicyOfProjectParams

func NewCreateWebhookPolicyOfProjectParams() *CreateWebhookPolicyOfProjectParams

NewCreateWebhookPolicyOfProjectParams creates a new CreateWebhookPolicyOfProjectParams object with the default values initialized.

func NewCreateWebhookPolicyOfProjectParamsWithContext

func NewCreateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *CreateWebhookPolicyOfProjectParams

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

func NewCreateWebhookPolicyOfProjectParamsWithHTTPClient

func NewCreateWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *CreateWebhookPolicyOfProjectParams

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

func NewCreateWebhookPolicyOfProjectParamsWithTimeout

func NewCreateWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *CreateWebhookPolicyOfProjectParams

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

func (*CreateWebhookPolicyOfProjectParams) SetContext

SetContext adds the context to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) SetPolicy

SetPolicy adds the policy to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) SetProjectNameOrID

func (o *CreateWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) SetTimeout

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

SetTimeout adds the timeout to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) SetXIsResourceName

func (o *CreateWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) SetXRequestID

func (o *CreateWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithContext

WithContext adds the context to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithPolicy

WithPolicy adds the policy to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithProjectNameOrID

func (o *CreateWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *CreateWebhookPolicyOfProjectParams

WithProjectNameOrID adds the projectNameOrID to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithTimeout

WithTimeout adds the timeout to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithXIsResourceName

func (o *CreateWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *CreateWebhookPolicyOfProjectParams

WithXIsResourceName adds the xIsResourceName to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WithXRequestID

WithXRequestID adds the xRequestID to the create webhook policy of project params

func (*CreateWebhookPolicyOfProjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateWebhookPolicyOfProjectReader

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

CreateWebhookPolicyOfProjectReader is a Reader for the CreateWebhookPolicyOfProject structure.

func (*CreateWebhookPolicyOfProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateWebhookPolicyOfProjectUnauthorized

type CreateWebhookPolicyOfProjectUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateWebhookPolicyOfProjectUnauthorized handles this case with default header values.

Unauthorized

func NewCreateWebhookPolicyOfProjectUnauthorized

func NewCreateWebhookPolicyOfProjectUnauthorized() *CreateWebhookPolicyOfProjectUnauthorized

NewCreateWebhookPolicyOfProjectUnauthorized creates a CreateWebhookPolicyOfProjectUnauthorized with default headers values

func (*CreateWebhookPolicyOfProjectUnauthorized) Error

func (*CreateWebhookPolicyOfProjectUnauthorized) GetPayload

type DeleteWebhookPolicyOfProjectBadRequest

type DeleteWebhookPolicyOfProjectBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteWebhookPolicyOfProjectBadRequest handles this case with default header values.

Bad request

func NewDeleteWebhookPolicyOfProjectBadRequest

func NewDeleteWebhookPolicyOfProjectBadRequest() *DeleteWebhookPolicyOfProjectBadRequest

NewDeleteWebhookPolicyOfProjectBadRequest creates a DeleteWebhookPolicyOfProjectBadRequest with default headers values

func (*DeleteWebhookPolicyOfProjectBadRequest) Error

func (*DeleteWebhookPolicyOfProjectBadRequest) GetPayload

type DeleteWebhookPolicyOfProjectForbidden

type DeleteWebhookPolicyOfProjectForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteWebhookPolicyOfProjectForbidden handles this case with default header values.

Forbidden

func NewDeleteWebhookPolicyOfProjectForbidden

func NewDeleteWebhookPolicyOfProjectForbidden() *DeleteWebhookPolicyOfProjectForbidden

NewDeleteWebhookPolicyOfProjectForbidden creates a DeleteWebhookPolicyOfProjectForbidden with default headers values

func (*DeleteWebhookPolicyOfProjectForbidden) Error

func (*DeleteWebhookPolicyOfProjectForbidden) GetPayload

type DeleteWebhookPolicyOfProjectInternalServerError

type DeleteWebhookPolicyOfProjectInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteWebhookPolicyOfProjectInternalServerError handles this case with default header values.

Internal server error

func NewDeleteWebhookPolicyOfProjectInternalServerError

func NewDeleteWebhookPolicyOfProjectInternalServerError() *DeleteWebhookPolicyOfProjectInternalServerError

NewDeleteWebhookPolicyOfProjectInternalServerError creates a DeleteWebhookPolicyOfProjectInternalServerError with default headers values

func (*DeleteWebhookPolicyOfProjectInternalServerError) Error

func (*DeleteWebhookPolicyOfProjectInternalServerError) GetPayload

type DeleteWebhookPolicyOfProjectNotFound

type DeleteWebhookPolicyOfProjectNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteWebhookPolicyOfProjectNotFound handles this case with default header values.

Not found

func NewDeleteWebhookPolicyOfProjectNotFound

func NewDeleteWebhookPolicyOfProjectNotFound() *DeleteWebhookPolicyOfProjectNotFound

NewDeleteWebhookPolicyOfProjectNotFound creates a DeleteWebhookPolicyOfProjectNotFound with default headers values

func (*DeleteWebhookPolicyOfProjectNotFound) Error

func (*DeleteWebhookPolicyOfProjectNotFound) GetPayload

type DeleteWebhookPolicyOfProjectOK

type DeleteWebhookPolicyOfProjectOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteWebhookPolicyOfProjectOK handles this case with default header values.

Success

func NewDeleteWebhookPolicyOfProjectOK

func NewDeleteWebhookPolicyOfProjectOK() *DeleteWebhookPolicyOfProjectOK

NewDeleteWebhookPolicyOfProjectOK creates a DeleteWebhookPolicyOfProjectOK with default headers values

func (*DeleteWebhookPolicyOfProjectOK) Error

type DeleteWebhookPolicyOfProjectParams

type DeleteWebhookPolicyOfProjectParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string
	/*WebhookPolicyID
	  The ID of the webhook policy

	*/
	WebhookPolicyID int64

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

DeleteWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the delete webhook policy of project operation typically these are written to a http.Request

func NewDeleteWebhookPolicyOfProjectParams

func NewDeleteWebhookPolicyOfProjectParams() *DeleteWebhookPolicyOfProjectParams

NewDeleteWebhookPolicyOfProjectParams creates a new DeleteWebhookPolicyOfProjectParams object with the default values initialized.

func NewDeleteWebhookPolicyOfProjectParamsWithContext

func NewDeleteWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *DeleteWebhookPolicyOfProjectParams

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

func NewDeleteWebhookPolicyOfProjectParamsWithHTTPClient

func NewDeleteWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *DeleteWebhookPolicyOfProjectParams

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

func NewDeleteWebhookPolicyOfProjectParamsWithTimeout

func NewDeleteWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *DeleteWebhookPolicyOfProjectParams

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

func (*DeleteWebhookPolicyOfProjectParams) SetContext

SetContext adds the context to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) SetProjectNameOrID

func (o *DeleteWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) SetTimeout

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

SetTimeout adds the timeout to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) SetWebhookPolicyID

func (o *DeleteWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)

SetWebhookPolicyID adds the webhookPolicyId to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) SetXIsResourceName

func (o *DeleteWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) SetXRequestID

func (o *DeleteWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithContext

WithContext adds the context to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithProjectNameOrID

func (o *DeleteWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *DeleteWebhookPolicyOfProjectParams

WithProjectNameOrID adds the projectNameOrID to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithTimeout

WithTimeout adds the timeout to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithWebhookPolicyID

func (o *DeleteWebhookPolicyOfProjectParams) WithWebhookPolicyID(webhookPolicyID int64) *DeleteWebhookPolicyOfProjectParams

WithWebhookPolicyID adds the webhookPolicyID to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithXIsResourceName

func (o *DeleteWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *DeleteWebhookPolicyOfProjectParams

WithXIsResourceName adds the xIsResourceName to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WithXRequestID

WithXRequestID adds the xRequestID to the delete webhook policy of project params

func (*DeleteWebhookPolicyOfProjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteWebhookPolicyOfProjectReader

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

DeleteWebhookPolicyOfProjectReader is a Reader for the DeleteWebhookPolicyOfProject structure.

func (*DeleteWebhookPolicyOfProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteWebhookPolicyOfProjectUnauthorized

type DeleteWebhookPolicyOfProjectUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteWebhookPolicyOfProjectUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteWebhookPolicyOfProjectUnauthorized

func NewDeleteWebhookPolicyOfProjectUnauthorized() *DeleteWebhookPolicyOfProjectUnauthorized

NewDeleteWebhookPolicyOfProjectUnauthorized creates a DeleteWebhookPolicyOfProjectUnauthorized with default headers values

func (*DeleteWebhookPolicyOfProjectUnauthorized) Error

func (*DeleteWebhookPolicyOfProjectUnauthorized) GetPayload

type GetSupportedEventTypesForbidden

type GetSupportedEventTypesForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSupportedEventTypesForbidden handles this case with default header values.

Forbidden

func NewGetSupportedEventTypesForbidden

func NewGetSupportedEventTypesForbidden() *GetSupportedEventTypesForbidden

NewGetSupportedEventTypesForbidden creates a GetSupportedEventTypesForbidden with default headers values

func (*GetSupportedEventTypesForbidden) Error

func (*GetSupportedEventTypesForbidden) GetPayload

func (o *GetSupportedEventTypesForbidden) GetPayload() *model.Errors

type GetSupportedEventTypesInternalServerError

type GetSupportedEventTypesInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSupportedEventTypesInternalServerError handles this case with default header values.

Internal server error

func NewGetSupportedEventTypesInternalServerError

func NewGetSupportedEventTypesInternalServerError() *GetSupportedEventTypesInternalServerError

NewGetSupportedEventTypesInternalServerError creates a GetSupportedEventTypesInternalServerError with default headers values

func (*GetSupportedEventTypesInternalServerError) Error

func (*GetSupportedEventTypesInternalServerError) GetPayload

type GetSupportedEventTypesOK

type GetSupportedEventTypesOK struct {
	Payload *model.SupportedWebhookEventTypes
}

GetSupportedEventTypesOK handles this case with default header values.

Success

func NewGetSupportedEventTypesOK

func NewGetSupportedEventTypesOK() *GetSupportedEventTypesOK

NewGetSupportedEventTypesOK creates a GetSupportedEventTypesOK with default headers values

func (*GetSupportedEventTypesOK) Error

func (o *GetSupportedEventTypesOK) Error() string

func (*GetSupportedEventTypesOK) GetPayload

type GetSupportedEventTypesParams

type GetSupportedEventTypesParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

GetSupportedEventTypesParams contains all the parameters to send to the API endpoint for the get supported event types operation typically these are written to a http.Request

func NewGetSupportedEventTypesParams

func NewGetSupportedEventTypesParams() *GetSupportedEventTypesParams

NewGetSupportedEventTypesParams creates a new GetSupportedEventTypesParams object with the default values initialized.

func NewGetSupportedEventTypesParamsWithContext

func NewGetSupportedEventTypesParamsWithContext(ctx context.Context) *GetSupportedEventTypesParams

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

func NewGetSupportedEventTypesParamsWithHTTPClient

func NewGetSupportedEventTypesParamsWithHTTPClient(client *http.Client) *GetSupportedEventTypesParams

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

func NewGetSupportedEventTypesParamsWithTimeout

func NewGetSupportedEventTypesParamsWithTimeout(timeout time.Duration) *GetSupportedEventTypesParams

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

func (*GetSupportedEventTypesParams) SetContext

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

SetContext adds the context to the get supported event types params

func (*GetSupportedEventTypesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get supported event types params

func (*GetSupportedEventTypesParams) SetProjectNameOrID

func (o *GetSupportedEventTypesParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the get supported event types params

func (*GetSupportedEventTypesParams) SetTimeout

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

SetTimeout adds the timeout to the get supported event types params

func (*GetSupportedEventTypesParams) SetXIsResourceName

func (o *GetSupportedEventTypesParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the get supported event types params

func (*GetSupportedEventTypesParams) SetXRequestID

func (o *GetSupportedEventTypesParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get supported event types params

func (*GetSupportedEventTypesParams) WithContext

WithContext adds the context to the get supported event types params

func (*GetSupportedEventTypesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get supported event types params

func (*GetSupportedEventTypesParams) WithProjectNameOrID

func (o *GetSupportedEventTypesParams) WithProjectNameOrID(projectNameOrID string) *GetSupportedEventTypesParams

WithProjectNameOrID adds the projectNameOrID to the get supported event types params

func (*GetSupportedEventTypesParams) WithTimeout

WithTimeout adds the timeout to the get supported event types params

func (*GetSupportedEventTypesParams) WithXIsResourceName

func (o *GetSupportedEventTypesParams) WithXIsResourceName(xIsResourceName *bool) *GetSupportedEventTypesParams

WithXIsResourceName adds the xIsResourceName to the get supported event types params

func (*GetSupportedEventTypesParams) WithXRequestID

func (o *GetSupportedEventTypesParams) WithXRequestID(xRequestID *string) *GetSupportedEventTypesParams

WithXRequestID adds the xRequestID to the get supported event types params

func (*GetSupportedEventTypesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSupportedEventTypesReader

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

GetSupportedEventTypesReader is a Reader for the GetSupportedEventTypes structure.

func (*GetSupportedEventTypesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSupportedEventTypesUnauthorized

type GetSupportedEventTypesUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetSupportedEventTypesUnauthorized handles this case with default header values.

Unauthorized

func NewGetSupportedEventTypesUnauthorized

func NewGetSupportedEventTypesUnauthorized() *GetSupportedEventTypesUnauthorized

NewGetSupportedEventTypesUnauthorized creates a GetSupportedEventTypesUnauthorized with default headers values

func (*GetSupportedEventTypesUnauthorized) Error

func (*GetSupportedEventTypesUnauthorized) GetPayload

type GetWebhookPolicyOfProjectBadRequest

type GetWebhookPolicyOfProjectBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetWebhookPolicyOfProjectBadRequest handles this case with default header values.

Bad request

func NewGetWebhookPolicyOfProjectBadRequest

func NewGetWebhookPolicyOfProjectBadRequest() *GetWebhookPolicyOfProjectBadRequest

NewGetWebhookPolicyOfProjectBadRequest creates a GetWebhookPolicyOfProjectBadRequest with default headers values

func (*GetWebhookPolicyOfProjectBadRequest) Error

func (*GetWebhookPolicyOfProjectBadRequest) GetPayload

type GetWebhookPolicyOfProjectForbidden

type GetWebhookPolicyOfProjectForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetWebhookPolicyOfProjectForbidden handles this case with default header values.

Forbidden

func NewGetWebhookPolicyOfProjectForbidden

func NewGetWebhookPolicyOfProjectForbidden() *GetWebhookPolicyOfProjectForbidden

NewGetWebhookPolicyOfProjectForbidden creates a GetWebhookPolicyOfProjectForbidden with default headers values

func (*GetWebhookPolicyOfProjectForbidden) Error

func (*GetWebhookPolicyOfProjectForbidden) GetPayload

type GetWebhookPolicyOfProjectInternalServerError

type GetWebhookPolicyOfProjectInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetWebhookPolicyOfProjectInternalServerError handles this case with default header values.

Internal server error

func NewGetWebhookPolicyOfProjectInternalServerError

func NewGetWebhookPolicyOfProjectInternalServerError() *GetWebhookPolicyOfProjectInternalServerError

NewGetWebhookPolicyOfProjectInternalServerError creates a GetWebhookPolicyOfProjectInternalServerError with default headers values

func (*GetWebhookPolicyOfProjectInternalServerError) Error

func (*GetWebhookPolicyOfProjectInternalServerError) GetPayload

type GetWebhookPolicyOfProjectNotFound

type GetWebhookPolicyOfProjectNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetWebhookPolicyOfProjectNotFound handles this case with default header values.

Not found

func NewGetWebhookPolicyOfProjectNotFound

func NewGetWebhookPolicyOfProjectNotFound() *GetWebhookPolicyOfProjectNotFound

NewGetWebhookPolicyOfProjectNotFound creates a GetWebhookPolicyOfProjectNotFound with default headers values

func (*GetWebhookPolicyOfProjectNotFound) Error

func (*GetWebhookPolicyOfProjectNotFound) GetPayload

type GetWebhookPolicyOfProjectOK

type GetWebhookPolicyOfProjectOK struct {
	Payload *model.WebhookPolicy
}

GetWebhookPolicyOfProjectOK handles this case with default header values.

Get webhook policy successfully.

func NewGetWebhookPolicyOfProjectOK

func NewGetWebhookPolicyOfProjectOK() *GetWebhookPolicyOfProjectOK

NewGetWebhookPolicyOfProjectOK creates a GetWebhookPolicyOfProjectOK with default headers values

func (*GetWebhookPolicyOfProjectOK) Error

func (*GetWebhookPolicyOfProjectOK) GetPayload

type GetWebhookPolicyOfProjectParams

type GetWebhookPolicyOfProjectParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string
	/*WebhookPolicyID
	  The ID of the webhook policy

	*/
	WebhookPolicyID int64

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

GetWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the get webhook policy of project operation typically these are written to a http.Request

func NewGetWebhookPolicyOfProjectParams

func NewGetWebhookPolicyOfProjectParams() *GetWebhookPolicyOfProjectParams

NewGetWebhookPolicyOfProjectParams creates a new GetWebhookPolicyOfProjectParams object with the default values initialized.

func NewGetWebhookPolicyOfProjectParamsWithContext

func NewGetWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *GetWebhookPolicyOfProjectParams

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

func NewGetWebhookPolicyOfProjectParamsWithHTTPClient

func NewGetWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *GetWebhookPolicyOfProjectParams

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

func NewGetWebhookPolicyOfProjectParamsWithTimeout

func NewGetWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *GetWebhookPolicyOfProjectParams

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

func (*GetWebhookPolicyOfProjectParams) SetContext

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

SetContext adds the context to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) SetProjectNameOrID

func (o *GetWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) SetTimeout

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

SetTimeout adds the timeout to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) SetWebhookPolicyID

func (o *GetWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)

SetWebhookPolicyID adds the webhookPolicyId to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) SetXIsResourceName

func (o *GetWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) SetXRequestID

func (o *GetWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithContext

WithContext adds the context to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithProjectNameOrID

func (o *GetWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *GetWebhookPolicyOfProjectParams

WithProjectNameOrID adds the projectNameOrID to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithTimeout

WithTimeout adds the timeout to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithWebhookPolicyID

func (o *GetWebhookPolicyOfProjectParams) WithWebhookPolicyID(webhookPolicyID int64) *GetWebhookPolicyOfProjectParams

WithWebhookPolicyID adds the webhookPolicyID to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithXIsResourceName

func (o *GetWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *GetWebhookPolicyOfProjectParams

WithXIsResourceName adds the xIsResourceName to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WithXRequestID

WithXRequestID adds the xRequestID to the get webhook policy of project params

func (*GetWebhookPolicyOfProjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWebhookPolicyOfProjectReader

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

GetWebhookPolicyOfProjectReader is a Reader for the GetWebhookPolicyOfProject structure.

func (*GetWebhookPolicyOfProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWebhookPolicyOfProjectUnauthorized

type GetWebhookPolicyOfProjectUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetWebhookPolicyOfProjectUnauthorized handles this case with default header values.

Unauthorized

func NewGetWebhookPolicyOfProjectUnauthorized

func NewGetWebhookPolicyOfProjectUnauthorized() *GetWebhookPolicyOfProjectUnauthorized

NewGetWebhookPolicyOfProjectUnauthorized creates a GetWebhookPolicyOfProjectUnauthorized with default headers values

func (*GetWebhookPolicyOfProjectUnauthorized) Error

func (*GetWebhookPolicyOfProjectUnauthorized) GetPayload

type LastTriggerBadRequest

type LastTriggerBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

LastTriggerBadRequest handles this case with default header values.

Bad request

func NewLastTriggerBadRequest

func NewLastTriggerBadRequest() *LastTriggerBadRequest

NewLastTriggerBadRequest creates a LastTriggerBadRequest with default headers values

func (*LastTriggerBadRequest) Error

func (o *LastTriggerBadRequest) Error() string

func (*LastTriggerBadRequest) GetPayload

func (o *LastTriggerBadRequest) GetPayload() *model.Errors

type LastTriggerForbidden

type LastTriggerForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

LastTriggerForbidden handles this case with default header values.

Forbidden

func NewLastTriggerForbidden

func NewLastTriggerForbidden() *LastTriggerForbidden

NewLastTriggerForbidden creates a LastTriggerForbidden with default headers values

func (*LastTriggerForbidden) Error

func (o *LastTriggerForbidden) Error() string

func (*LastTriggerForbidden) GetPayload

func (o *LastTriggerForbidden) GetPayload() *model.Errors

type LastTriggerInternalServerError

type LastTriggerInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

LastTriggerInternalServerError handles this case with default header values.

Internal server error

func NewLastTriggerInternalServerError

func NewLastTriggerInternalServerError() *LastTriggerInternalServerError

NewLastTriggerInternalServerError creates a LastTriggerInternalServerError with default headers values

func (*LastTriggerInternalServerError) Error

func (*LastTriggerInternalServerError) GetPayload

func (o *LastTriggerInternalServerError) GetPayload() *model.Errors

type LastTriggerOK

type LastTriggerOK struct {
	Payload []*model.WebhookLastTrigger
}

LastTriggerOK handles this case with default header values.

Test webhook connection successfully.

func NewLastTriggerOK

func NewLastTriggerOK() *LastTriggerOK

NewLastTriggerOK creates a LastTriggerOK with default headers values

func (*LastTriggerOK) Error

func (o *LastTriggerOK) Error() string

func (*LastTriggerOK) GetPayload

func (o *LastTriggerOK) GetPayload() []*model.WebhookLastTrigger

type LastTriggerParams

type LastTriggerParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

LastTriggerParams contains all the parameters to send to the API endpoint for the last trigger operation typically these are written to a http.Request

func NewLastTriggerParams

func NewLastTriggerParams() *LastTriggerParams

NewLastTriggerParams creates a new LastTriggerParams object with the default values initialized.

func NewLastTriggerParamsWithContext

func NewLastTriggerParamsWithContext(ctx context.Context) *LastTriggerParams

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

func NewLastTriggerParamsWithHTTPClient

func NewLastTriggerParamsWithHTTPClient(client *http.Client) *LastTriggerParams

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

func NewLastTriggerParamsWithTimeout

func NewLastTriggerParamsWithTimeout(timeout time.Duration) *LastTriggerParams

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

func (*LastTriggerParams) SetContext

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

SetContext adds the context to the last trigger params

func (*LastTriggerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the last trigger params

func (*LastTriggerParams) SetProjectNameOrID

func (o *LastTriggerParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the last trigger params

func (*LastTriggerParams) SetTimeout

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

SetTimeout adds the timeout to the last trigger params

func (*LastTriggerParams) SetXIsResourceName

func (o *LastTriggerParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the last trigger params

func (*LastTriggerParams) SetXRequestID

func (o *LastTriggerParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the last trigger params

func (*LastTriggerParams) WithContext

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

WithContext adds the context to the last trigger params

func (*LastTriggerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the last trigger params

func (*LastTriggerParams) WithProjectNameOrID

func (o *LastTriggerParams) WithProjectNameOrID(projectNameOrID string) *LastTriggerParams

WithProjectNameOrID adds the projectNameOrID to the last trigger params

func (*LastTriggerParams) WithTimeout

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

WithTimeout adds the timeout to the last trigger params

func (*LastTriggerParams) WithXIsResourceName

func (o *LastTriggerParams) WithXIsResourceName(xIsResourceName *bool) *LastTriggerParams

WithXIsResourceName adds the xIsResourceName to the last trigger params

func (*LastTriggerParams) WithXRequestID

func (o *LastTriggerParams) WithXRequestID(xRequestID *string) *LastTriggerParams

WithXRequestID adds the xRequestID to the last trigger params

func (*LastTriggerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LastTriggerReader

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

LastTriggerReader is a Reader for the LastTrigger structure.

func (*LastTriggerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LastTriggerUnauthorized

type LastTriggerUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

LastTriggerUnauthorized handles this case with default header values.

Unauthorized

func NewLastTriggerUnauthorized

func NewLastTriggerUnauthorized() *LastTriggerUnauthorized

NewLastTriggerUnauthorized creates a LastTriggerUnauthorized with default headers values

func (*LastTriggerUnauthorized) Error

func (o *LastTriggerUnauthorized) Error() string

func (*LastTriggerUnauthorized) GetPayload

func (o *LastTriggerUnauthorized) GetPayload() *model.Errors

type ListWebhookPoliciesOfProjectBadRequest

type ListWebhookPoliciesOfProjectBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListWebhookPoliciesOfProjectBadRequest handles this case with default header values.

Bad request

func NewListWebhookPoliciesOfProjectBadRequest

func NewListWebhookPoliciesOfProjectBadRequest() *ListWebhookPoliciesOfProjectBadRequest

NewListWebhookPoliciesOfProjectBadRequest creates a ListWebhookPoliciesOfProjectBadRequest with default headers values

func (*ListWebhookPoliciesOfProjectBadRequest) Error

func (*ListWebhookPoliciesOfProjectBadRequest) GetPayload

type ListWebhookPoliciesOfProjectForbidden

type ListWebhookPoliciesOfProjectForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListWebhookPoliciesOfProjectForbidden handles this case with default header values.

Forbidden

func NewListWebhookPoliciesOfProjectForbidden

func NewListWebhookPoliciesOfProjectForbidden() *ListWebhookPoliciesOfProjectForbidden

NewListWebhookPoliciesOfProjectForbidden creates a ListWebhookPoliciesOfProjectForbidden with default headers values

func (*ListWebhookPoliciesOfProjectForbidden) Error

func (*ListWebhookPoliciesOfProjectForbidden) GetPayload

type ListWebhookPoliciesOfProjectInternalServerError

type ListWebhookPoliciesOfProjectInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListWebhookPoliciesOfProjectInternalServerError handles this case with default header values.

Internal server error

func NewListWebhookPoliciesOfProjectInternalServerError

func NewListWebhookPoliciesOfProjectInternalServerError() *ListWebhookPoliciesOfProjectInternalServerError

NewListWebhookPoliciesOfProjectInternalServerError creates a ListWebhookPoliciesOfProjectInternalServerError with default headers values

func (*ListWebhookPoliciesOfProjectInternalServerError) Error

func (*ListWebhookPoliciesOfProjectInternalServerError) GetPayload

type ListWebhookPoliciesOfProjectOK

type ListWebhookPoliciesOfProjectOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of webhook policies.
	 */
	XTotalCount int64

	Payload []*model.WebhookPolicy
}

ListWebhookPoliciesOfProjectOK handles this case with default header values.

Success

func NewListWebhookPoliciesOfProjectOK

func NewListWebhookPoliciesOfProjectOK() *ListWebhookPoliciesOfProjectOK

NewListWebhookPoliciesOfProjectOK creates a ListWebhookPoliciesOfProjectOK with default headers values

func (*ListWebhookPoliciesOfProjectOK) Error

func (*ListWebhookPoliciesOfProjectOK) GetPayload

type ListWebhookPoliciesOfProjectParams

type ListWebhookPoliciesOfProjectParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

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

ListWebhookPoliciesOfProjectParams contains all the parameters to send to the API endpoint for the list webhook policies of project operation typically these are written to a http.Request

func NewListWebhookPoliciesOfProjectParams

func NewListWebhookPoliciesOfProjectParams() *ListWebhookPoliciesOfProjectParams

NewListWebhookPoliciesOfProjectParams creates a new ListWebhookPoliciesOfProjectParams object with the default values initialized.

func NewListWebhookPoliciesOfProjectParamsWithContext

func NewListWebhookPoliciesOfProjectParamsWithContext(ctx context.Context) *ListWebhookPoliciesOfProjectParams

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

func NewListWebhookPoliciesOfProjectParamsWithHTTPClient

func NewListWebhookPoliciesOfProjectParamsWithHTTPClient(client *http.Client) *ListWebhookPoliciesOfProjectParams

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

func NewListWebhookPoliciesOfProjectParamsWithTimeout

func NewListWebhookPoliciesOfProjectParamsWithTimeout(timeout time.Duration) *ListWebhookPoliciesOfProjectParams

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

func (*ListWebhookPoliciesOfProjectParams) SetContext

SetContext adds the context to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetPage

func (o *ListWebhookPoliciesOfProjectParams) SetPage(page *int64)

SetPage adds the page to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetPageSize

func (o *ListWebhookPoliciesOfProjectParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetProjectNameOrID

func (o *ListWebhookPoliciesOfProjectParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetQ

SetQ adds the q to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetSort

func (o *ListWebhookPoliciesOfProjectParams) SetSort(sort *string)

SetSort adds the sort to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetTimeout

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

SetTimeout adds the timeout to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetXIsResourceName

func (o *ListWebhookPoliciesOfProjectParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) SetXRequestID

func (o *ListWebhookPoliciesOfProjectParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithContext

WithContext adds the context to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithPage

WithPage adds the page to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithPageSize

WithPageSize adds the pageSize to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithProjectNameOrID

func (o *ListWebhookPoliciesOfProjectParams) WithProjectNameOrID(projectNameOrID string) *ListWebhookPoliciesOfProjectParams

WithProjectNameOrID adds the projectNameOrID to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithQ

WithQ adds the q to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithSort

WithSort adds the sort to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithTimeout

WithTimeout adds the timeout to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithXIsResourceName

func (o *ListWebhookPoliciesOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *ListWebhookPoliciesOfProjectParams

WithXIsResourceName adds the xIsResourceName to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WithXRequestID

WithXRequestID adds the xRequestID to the list webhook policies of project params

func (*ListWebhookPoliciesOfProjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListWebhookPoliciesOfProjectReader

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

ListWebhookPoliciesOfProjectReader is a Reader for the ListWebhookPoliciesOfProject structure.

func (*ListWebhookPoliciesOfProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListWebhookPoliciesOfProjectUnauthorized

type ListWebhookPoliciesOfProjectUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListWebhookPoliciesOfProjectUnauthorized handles this case with default header values.

Unauthorized

func NewListWebhookPoliciesOfProjectUnauthorized

func NewListWebhookPoliciesOfProjectUnauthorized() *ListWebhookPoliciesOfProjectUnauthorized

NewListWebhookPoliciesOfProjectUnauthorized creates a ListWebhookPoliciesOfProjectUnauthorized with default headers values

func (*ListWebhookPoliciesOfProjectUnauthorized) Error

func (*ListWebhookPoliciesOfProjectUnauthorized) GetPayload

type UpdateWebhookPolicyOfProjectBadRequest

type UpdateWebhookPolicyOfProjectBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateWebhookPolicyOfProjectBadRequest handles this case with default header values.

Bad request

func NewUpdateWebhookPolicyOfProjectBadRequest

func NewUpdateWebhookPolicyOfProjectBadRequest() *UpdateWebhookPolicyOfProjectBadRequest

NewUpdateWebhookPolicyOfProjectBadRequest creates a UpdateWebhookPolicyOfProjectBadRequest with default headers values

func (*UpdateWebhookPolicyOfProjectBadRequest) Error

func (*UpdateWebhookPolicyOfProjectBadRequest) GetPayload

type UpdateWebhookPolicyOfProjectForbidden

type UpdateWebhookPolicyOfProjectForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateWebhookPolicyOfProjectForbidden handles this case with default header values.

Forbidden

func NewUpdateWebhookPolicyOfProjectForbidden

func NewUpdateWebhookPolicyOfProjectForbidden() *UpdateWebhookPolicyOfProjectForbidden

NewUpdateWebhookPolicyOfProjectForbidden creates a UpdateWebhookPolicyOfProjectForbidden with default headers values

func (*UpdateWebhookPolicyOfProjectForbidden) Error

func (*UpdateWebhookPolicyOfProjectForbidden) GetPayload

type UpdateWebhookPolicyOfProjectInternalServerError

type UpdateWebhookPolicyOfProjectInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateWebhookPolicyOfProjectInternalServerError handles this case with default header values.

Internal server error

func NewUpdateWebhookPolicyOfProjectInternalServerError

func NewUpdateWebhookPolicyOfProjectInternalServerError() *UpdateWebhookPolicyOfProjectInternalServerError

NewUpdateWebhookPolicyOfProjectInternalServerError creates a UpdateWebhookPolicyOfProjectInternalServerError with default headers values

func (*UpdateWebhookPolicyOfProjectInternalServerError) Error

func (*UpdateWebhookPolicyOfProjectInternalServerError) GetPayload

type UpdateWebhookPolicyOfProjectNotFound

type UpdateWebhookPolicyOfProjectNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateWebhookPolicyOfProjectNotFound handles this case with default header values.

Not found

func NewUpdateWebhookPolicyOfProjectNotFound

func NewUpdateWebhookPolicyOfProjectNotFound() *UpdateWebhookPolicyOfProjectNotFound

NewUpdateWebhookPolicyOfProjectNotFound creates a UpdateWebhookPolicyOfProjectNotFound with default headers values

func (*UpdateWebhookPolicyOfProjectNotFound) Error

func (*UpdateWebhookPolicyOfProjectNotFound) GetPayload

type UpdateWebhookPolicyOfProjectOK

type UpdateWebhookPolicyOfProjectOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateWebhookPolicyOfProjectOK handles this case with default header values.

Success

func NewUpdateWebhookPolicyOfProjectOK

func NewUpdateWebhookPolicyOfProjectOK() *UpdateWebhookPolicyOfProjectOK

NewUpdateWebhookPolicyOfProjectOK creates a UpdateWebhookPolicyOfProjectOK with default headers values

func (*UpdateWebhookPolicyOfProjectOK) Error

type UpdateWebhookPolicyOfProjectParams

type UpdateWebhookPolicyOfProjectParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Policy
	  All properties needed except "id", "project_id", "creation_time", "update_time".

	*/
	Policy *model.WebhookPolicy
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string
	/*WebhookPolicyID
	  The ID of the webhook policy

	*/
	WebhookPolicyID int64

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

UpdateWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the update webhook policy of project operation typically these are written to a http.Request

func NewUpdateWebhookPolicyOfProjectParams

func NewUpdateWebhookPolicyOfProjectParams() *UpdateWebhookPolicyOfProjectParams

NewUpdateWebhookPolicyOfProjectParams creates a new UpdateWebhookPolicyOfProjectParams object with the default values initialized.

func NewUpdateWebhookPolicyOfProjectParamsWithContext

func NewUpdateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *UpdateWebhookPolicyOfProjectParams

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

func NewUpdateWebhookPolicyOfProjectParamsWithHTTPClient

func NewUpdateWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *UpdateWebhookPolicyOfProjectParams

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

func NewUpdateWebhookPolicyOfProjectParamsWithTimeout

func NewUpdateWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *UpdateWebhookPolicyOfProjectParams

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

func (*UpdateWebhookPolicyOfProjectParams) SetContext

SetContext adds the context to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetPolicy

SetPolicy adds the policy to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetProjectNameOrID

func (o *UpdateWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetTimeout

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

SetTimeout adds the timeout to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetWebhookPolicyID

func (o *UpdateWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)

SetWebhookPolicyID adds the webhookPolicyId to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetXIsResourceName

func (o *UpdateWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) SetXRequestID

func (o *UpdateWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithContext

WithContext adds the context to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithPolicy

WithPolicy adds the policy to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithProjectNameOrID

func (o *UpdateWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *UpdateWebhookPolicyOfProjectParams

WithProjectNameOrID adds the projectNameOrID to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithTimeout

WithTimeout adds the timeout to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithWebhookPolicyID

func (o *UpdateWebhookPolicyOfProjectParams) WithWebhookPolicyID(webhookPolicyID int64) *UpdateWebhookPolicyOfProjectParams

WithWebhookPolicyID adds the webhookPolicyID to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithXIsResourceName

func (o *UpdateWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *UpdateWebhookPolicyOfProjectParams

WithXIsResourceName adds the xIsResourceName to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WithXRequestID

WithXRequestID adds the xRequestID to the update webhook policy of project params

func (*UpdateWebhookPolicyOfProjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateWebhookPolicyOfProjectReader

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

UpdateWebhookPolicyOfProjectReader is a Reader for the UpdateWebhookPolicyOfProject structure.

func (*UpdateWebhookPolicyOfProjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateWebhookPolicyOfProjectUnauthorized

type UpdateWebhookPolicyOfProjectUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateWebhookPolicyOfProjectUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateWebhookPolicyOfProjectUnauthorized

func NewUpdateWebhookPolicyOfProjectUnauthorized() *UpdateWebhookPolicyOfProjectUnauthorized

NewUpdateWebhookPolicyOfProjectUnauthorized creates a UpdateWebhookPolicyOfProjectUnauthorized with default headers values

func (*UpdateWebhookPolicyOfProjectUnauthorized) Error

func (*UpdateWebhookPolicyOfProjectUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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