webhook

package
v0.0.0-...-b68bda3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateWebhookPolicyOfProject creates project webhook policy

	   This endpoint create a webhook policy if the project does not have one.
	*/
	CreateWebhookPolicyOfProject(ctx context.Context, params *CreateWebhookPolicyOfProjectParams) (*CreateWebhookPolicyOfProjectCreated, error)
	/*
	   DeleteWebhookPolicyOfProject deletes webhook policy of a project

	   This endpoint is aimed to delete webhookpolicy of a project.
	*/
	DeleteWebhookPolicyOfProject(ctx context.Context, params *DeleteWebhookPolicyOfProjectParams) (*DeleteWebhookPolicyOfProjectOK, error)
	/*
	   GetSupportedEventTypes gets supported event types and notify types

	   Get supportted event types and notify types.*/
	GetSupportedEventTypes(ctx context.Context, params *GetSupportedEventTypesParams) (*GetSupportedEventTypesOK, error)
	/*
	   GetWebhookPolicyOfProject gets project webhook policy

	   This endpoint returns specified webhook policy of a project.
	*/
	GetWebhookPolicyOfProject(ctx context.Context, params *GetWebhookPolicyOfProjectParams) (*GetWebhookPolicyOfProjectOK, error)
	/*
	   LastTrigger gets project webhook policy last trigger info

	   This endpoint returns last trigger information of project webhook policy.
	*/
	LastTrigger(ctx context.Context, params *LastTriggerParams) (*LastTriggerOK, error)
	/*
	   ListWebhookPoliciesOfProject lists project webhook policies

	   This endpoint returns webhook policies of a project.
	*/
	ListWebhookPoliciesOfProject(ctx context.Context, params *ListWebhookPoliciesOfProjectParams) (*ListWebhookPoliciesOfProjectOK, error)
	/*
	   UpdateWebhookPolicyOfProject updates webhook policy of a project

	   This endpoint is aimed to update the webhook policy of a project.
	*/
	UpdateWebhookPolicyOfProject(ctx context.Context, params *UpdateWebhookPolicyOfProjectParams) (*UpdateWebhookPolicyOfProjectOK, error)
}

API is the interface of the webhook client

type Client

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

Client for webhook API

func New

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

New creates a new webhook API client.

func (*Client) CreateWebhookPolicyOfProject

func (a *Client) CreateWebhookPolicyOfProject(ctx context.Context, params *CreateWebhookPolicyOfProjectParams) (*CreateWebhookPolicyOfProjectCreated, error)

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(ctx context.Context, params *DeleteWebhookPolicyOfProjectParams) (*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(ctx context.Context, params *GetSupportedEventTypesParams) (*GetSupportedEventTypesOK, error)

GetSupportedEventTypes gets supported event types and notify types

Get supportted event types and notify types.

func (*Client) GetWebhookPolicyOfProject

func (a *Client) GetWebhookPolicyOfProject(ctx context.Context, params *GetWebhookPolicyOfProjectParams) (*GetWebhookPolicyOfProjectOK, error)

GetWebhookPolicyOfProject gets project webhook policy

This endpoint returns specified webhook policy of a project.

func (*Client) LastTrigger

func (a *Client) LastTrigger(ctx context.Context, params *LastTriggerParams) (*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(ctx context.Context, params *ListWebhookPoliciesOfProjectParams) (*ListWebhookPoliciesOfProjectOK, error)

ListWebhookPoliciesOfProject lists project webhook policies

This endpoint returns webhook policies of a project.

func (*Client) UpdateWebhookPolicyOfProject

func (a *Client) UpdateWebhookPolicyOfProject(ctx context.Context, params *UpdateWebhookPolicyOfProjectParams) (*UpdateWebhookPolicyOfProjectOK, error)

UpdateWebhookPolicyOfProject updates webhook policy of a project

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

type CreateWebhookPolicyOfProjectBadRequest

type CreateWebhookPolicyOfProjectBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateWebhookPolicyOfProjectBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateWebhookPolicyOfProjectBadRequest

func NewCreateWebhookPolicyOfProjectBadRequest() *CreateWebhookPolicyOfProjectBadRequest

NewCreateWebhookPolicyOfProjectBadRequest creates a CreateWebhookPolicyOfProjectBadRequest with default headers values

func (*CreateWebhookPolicyOfProjectBadRequest) Code

Code gets the status code for the create webhook policy of project bad request response

func (*CreateWebhookPolicyOfProjectBadRequest) Error

func (*CreateWebhookPolicyOfProjectBadRequest) GetPayload

func (*CreateWebhookPolicyOfProjectBadRequest) IsClientError

func (o *CreateWebhookPolicyOfProjectBadRequest) IsClientError() bool

IsClientError returns true when this create webhook policy of project bad request response has a 4xx status code

func (*CreateWebhookPolicyOfProjectBadRequest) IsCode

IsCode returns true when this create webhook policy of project bad request response a status code equal to that given

func (*CreateWebhookPolicyOfProjectBadRequest) IsRedirect

IsRedirect returns true when this create webhook policy of project bad request response has a 3xx status code

func (*CreateWebhookPolicyOfProjectBadRequest) IsServerError

func (o *CreateWebhookPolicyOfProjectBadRequest) IsServerError() bool

IsServerError returns true when this create webhook policy of project bad request response has a 5xx status code

func (*CreateWebhookPolicyOfProjectBadRequest) IsSuccess

IsSuccess returns true when this create webhook policy of project bad request response has a 2xx status code

func (*CreateWebhookPolicyOfProjectBadRequest) String

type CreateWebhookPolicyOfProjectCreated

type CreateWebhookPolicyOfProjectCreated struct {

	/* The location of the resource
	 */
	Location string

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateWebhookPolicyOfProjectCreated describes a response with status code 201, with default header values.

Project webhook policy create successfully.

func NewCreateWebhookPolicyOfProjectCreated

func NewCreateWebhookPolicyOfProjectCreated() *CreateWebhookPolicyOfProjectCreated

NewCreateWebhookPolicyOfProjectCreated creates a CreateWebhookPolicyOfProjectCreated with default headers values

func (*CreateWebhookPolicyOfProjectCreated) Code

Code gets the status code for the create webhook policy of project created response

func (*CreateWebhookPolicyOfProjectCreated) Error

func (*CreateWebhookPolicyOfProjectCreated) IsClientError

func (o *CreateWebhookPolicyOfProjectCreated) IsClientError() bool

IsClientError returns true when this create webhook policy of project created response has a 4xx status code

func (*CreateWebhookPolicyOfProjectCreated) IsCode

IsCode returns true when this create webhook policy of project created response a status code equal to that given

func (*CreateWebhookPolicyOfProjectCreated) IsRedirect

func (o *CreateWebhookPolicyOfProjectCreated) IsRedirect() bool

IsRedirect returns true when this create webhook policy of project created response has a 3xx status code

func (*CreateWebhookPolicyOfProjectCreated) IsServerError

func (o *CreateWebhookPolicyOfProjectCreated) IsServerError() bool

IsServerError returns true when this create webhook policy of project created response has a 5xx status code

func (*CreateWebhookPolicyOfProjectCreated) IsSuccess

IsSuccess returns true when this create webhook policy of project created response has a 2xx status code

func (*CreateWebhookPolicyOfProjectCreated) String

type CreateWebhookPolicyOfProjectForbidden

type CreateWebhookPolicyOfProjectForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateWebhookPolicyOfProjectForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateWebhookPolicyOfProjectForbidden

func NewCreateWebhookPolicyOfProjectForbidden() *CreateWebhookPolicyOfProjectForbidden

NewCreateWebhookPolicyOfProjectForbidden creates a CreateWebhookPolicyOfProjectForbidden with default headers values

func (*CreateWebhookPolicyOfProjectForbidden) Code

Code gets the status code for the create webhook policy of project forbidden response

func (*CreateWebhookPolicyOfProjectForbidden) Error

func (*CreateWebhookPolicyOfProjectForbidden) GetPayload

func (*CreateWebhookPolicyOfProjectForbidden) IsClientError

func (o *CreateWebhookPolicyOfProjectForbidden) IsClientError() bool

IsClientError returns true when this create webhook policy of project forbidden response has a 4xx status code

func (*CreateWebhookPolicyOfProjectForbidden) IsCode

IsCode returns true when this create webhook policy of project forbidden response a status code equal to that given

func (*CreateWebhookPolicyOfProjectForbidden) IsRedirect

IsRedirect returns true when this create webhook policy of project forbidden response has a 3xx status code

func (*CreateWebhookPolicyOfProjectForbidden) IsServerError

func (o *CreateWebhookPolicyOfProjectForbidden) IsServerError() bool

IsServerError returns true when this create webhook policy of project forbidden response has a 5xx status code

func (*CreateWebhookPolicyOfProjectForbidden) IsSuccess

IsSuccess returns true when this create webhook policy of project forbidden response has a 2xx status code

func (*CreateWebhookPolicyOfProjectForbidden) String

type CreateWebhookPolicyOfProjectInternalServerError

type CreateWebhookPolicyOfProjectInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateWebhookPolicyOfProjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewCreateWebhookPolicyOfProjectInternalServerError

func NewCreateWebhookPolicyOfProjectInternalServerError() *CreateWebhookPolicyOfProjectInternalServerError

NewCreateWebhookPolicyOfProjectInternalServerError creates a CreateWebhookPolicyOfProjectInternalServerError with default headers values

func (*CreateWebhookPolicyOfProjectInternalServerError) Code

Code gets the status code for the create webhook policy of project internal server error response

func (*CreateWebhookPolicyOfProjectInternalServerError) Error

func (*CreateWebhookPolicyOfProjectInternalServerError) GetPayload

func (*CreateWebhookPolicyOfProjectInternalServerError) IsClientError

IsClientError returns true when this create webhook policy of project internal server error response has a 4xx status code

func (*CreateWebhookPolicyOfProjectInternalServerError) IsCode

IsCode returns true when this create webhook policy of project internal server error response a status code equal to that given

func (*CreateWebhookPolicyOfProjectInternalServerError) IsRedirect

IsRedirect returns true when this create webhook policy of project internal server error response has a 3xx status code

func (*CreateWebhookPolicyOfProjectInternalServerError) IsServerError

IsServerError returns true when this create webhook policy of project internal server error response has a 5xx status code

func (*CreateWebhookPolicyOfProjectInternalServerError) IsSuccess

IsSuccess returns true when this create webhook policy of project internal server error response has a 2xx status code

func (*CreateWebhookPolicyOfProjectInternalServerError) String

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Policy.

	   Properties "targets" and "event_types" needed.
	*/
	Policy *models.WebhookPolicy `js:"policy"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateWebhookPolicyOfProjectParamsWithContext

func NewCreateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *CreateWebhookPolicyOfProjectParams

NewCreateWebhookPolicyOfProjectParamsWithContext creates a new CreateWebhookPolicyOfProjectParams object with 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 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 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) SetDefaults

func (o *CreateWebhookPolicyOfProjectParams) SetDefaults()

SetDefaults hydrates default values in the create webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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

WithDefaults hydrates default values in the create webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

CreateWebhookPolicyOfProjectUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateWebhookPolicyOfProjectUnauthorized

func NewCreateWebhookPolicyOfProjectUnauthorized() *CreateWebhookPolicyOfProjectUnauthorized

NewCreateWebhookPolicyOfProjectUnauthorized creates a CreateWebhookPolicyOfProjectUnauthorized with default headers values

func (*CreateWebhookPolicyOfProjectUnauthorized) Code

Code gets the status code for the create webhook policy of project unauthorized response

func (*CreateWebhookPolicyOfProjectUnauthorized) Error

func (*CreateWebhookPolicyOfProjectUnauthorized) GetPayload

func (*CreateWebhookPolicyOfProjectUnauthorized) IsClientError

IsClientError returns true when this create webhook policy of project unauthorized response has a 4xx status code

func (*CreateWebhookPolicyOfProjectUnauthorized) IsCode

IsCode returns true when this create webhook policy of project unauthorized response a status code equal to that given

func (*CreateWebhookPolicyOfProjectUnauthorized) IsRedirect

IsRedirect returns true when this create webhook policy of project unauthorized response has a 3xx status code

func (*CreateWebhookPolicyOfProjectUnauthorized) IsServerError

IsServerError returns true when this create webhook policy of project unauthorized response has a 5xx status code

func (*CreateWebhookPolicyOfProjectUnauthorized) IsSuccess

IsSuccess returns true when this create webhook policy of project unauthorized response has a 2xx status code

func (*CreateWebhookPolicyOfProjectUnauthorized) String

type DeleteWebhookPolicyOfProjectBadRequest

type DeleteWebhookPolicyOfProjectBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteWebhookPolicyOfProjectBadRequest describes a response with status code 400, with default header values.

Bad request

func NewDeleteWebhookPolicyOfProjectBadRequest

func NewDeleteWebhookPolicyOfProjectBadRequest() *DeleteWebhookPolicyOfProjectBadRequest

NewDeleteWebhookPolicyOfProjectBadRequest creates a DeleteWebhookPolicyOfProjectBadRequest with default headers values

func (*DeleteWebhookPolicyOfProjectBadRequest) Code

Code gets the status code for the delete webhook policy of project bad request response

func (*DeleteWebhookPolicyOfProjectBadRequest) Error

func (*DeleteWebhookPolicyOfProjectBadRequest) GetPayload

func (*DeleteWebhookPolicyOfProjectBadRequest) IsClientError

func (o *DeleteWebhookPolicyOfProjectBadRequest) IsClientError() bool

IsClientError returns true when this delete webhook policy of project bad request response has a 4xx status code

func (*DeleteWebhookPolicyOfProjectBadRequest) IsCode

IsCode returns true when this delete webhook policy of project bad request response a status code equal to that given

func (*DeleteWebhookPolicyOfProjectBadRequest) IsRedirect

IsRedirect returns true when this delete webhook policy of project bad request response has a 3xx status code

func (*DeleteWebhookPolicyOfProjectBadRequest) IsServerError

func (o *DeleteWebhookPolicyOfProjectBadRequest) IsServerError() bool

IsServerError returns true when this delete webhook policy of project bad request response has a 5xx status code

func (*DeleteWebhookPolicyOfProjectBadRequest) IsSuccess

IsSuccess returns true when this delete webhook policy of project bad request response has a 2xx status code

func (*DeleteWebhookPolicyOfProjectBadRequest) String

type DeleteWebhookPolicyOfProjectForbidden

type DeleteWebhookPolicyOfProjectForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteWebhookPolicyOfProjectForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteWebhookPolicyOfProjectForbidden

func NewDeleteWebhookPolicyOfProjectForbidden() *DeleteWebhookPolicyOfProjectForbidden

NewDeleteWebhookPolicyOfProjectForbidden creates a DeleteWebhookPolicyOfProjectForbidden with default headers values

func (*DeleteWebhookPolicyOfProjectForbidden) Code

Code gets the status code for the delete webhook policy of project forbidden response

func (*DeleteWebhookPolicyOfProjectForbidden) Error

func (*DeleteWebhookPolicyOfProjectForbidden) GetPayload

func (*DeleteWebhookPolicyOfProjectForbidden) IsClientError

func (o *DeleteWebhookPolicyOfProjectForbidden) IsClientError() bool

IsClientError returns true when this delete webhook policy of project forbidden response has a 4xx status code

func (*DeleteWebhookPolicyOfProjectForbidden) IsCode

IsCode returns true when this delete webhook policy of project forbidden response a status code equal to that given

func (*DeleteWebhookPolicyOfProjectForbidden) IsRedirect

IsRedirect returns true when this delete webhook policy of project forbidden response has a 3xx status code

func (*DeleteWebhookPolicyOfProjectForbidden) IsServerError

func (o *DeleteWebhookPolicyOfProjectForbidden) IsServerError() bool

IsServerError returns true when this delete webhook policy of project forbidden response has a 5xx status code

func (*DeleteWebhookPolicyOfProjectForbidden) IsSuccess

IsSuccess returns true when this delete webhook policy of project forbidden response has a 2xx status code

func (*DeleteWebhookPolicyOfProjectForbidden) String

type DeleteWebhookPolicyOfProjectInternalServerError

type DeleteWebhookPolicyOfProjectInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteWebhookPolicyOfProjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteWebhookPolicyOfProjectInternalServerError

func NewDeleteWebhookPolicyOfProjectInternalServerError() *DeleteWebhookPolicyOfProjectInternalServerError

NewDeleteWebhookPolicyOfProjectInternalServerError creates a DeleteWebhookPolicyOfProjectInternalServerError with default headers values

func (*DeleteWebhookPolicyOfProjectInternalServerError) Code

Code gets the status code for the delete webhook policy of project internal server error response

func (*DeleteWebhookPolicyOfProjectInternalServerError) Error

func (*DeleteWebhookPolicyOfProjectInternalServerError) GetPayload

func (*DeleteWebhookPolicyOfProjectInternalServerError) IsClientError

IsClientError returns true when this delete webhook policy of project internal server error response has a 4xx status code

func (*DeleteWebhookPolicyOfProjectInternalServerError) IsCode

IsCode returns true when this delete webhook policy of project internal server error response a status code equal to that given

func (*DeleteWebhookPolicyOfProjectInternalServerError) IsRedirect

IsRedirect returns true when this delete webhook policy of project internal server error response has a 3xx status code

func (*DeleteWebhookPolicyOfProjectInternalServerError) IsServerError

IsServerError returns true when this delete webhook policy of project internal server error response has a 5xx status code

func (*DeleteWebhookPolicyOfProjectInternalServerError) IsSuccess

IsSuccess returns true when this delete webhook policy of project internal server error response has a 2xx status code

func (*DeleteWebhookPolicyOfProjectInternalServerError) String

type DeleteWebhookPolicyOfProjectNotFound

type DeleteWebhookPolicyOfProjectNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteWebhookPolicyOfProjectNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteWebhookPolicyOfProjectNotFound

func NewDeleteWebhookPolicyOfProjectNotFound() *DeleteWebhookPolicyOfProjectNotFound

NewDeleteWebhookPolicyOfProjectNotFound creates a DeleteWebhookPolicyOfProjectNotFound with default headers values

func (*DeleteWebhookPolicyOfProjectNotFound) Code

Code gets the status code for the delete webhook policy of project not found response

func (*DeleteWebhookPolicyOfProjectNotFound) Error

func (*DeleteWebhookPolicyOfProjectNotFound) GetPayload

func (*DeleteWebhookPolicyOfProjectNotFound) IsClientError

func (o *DeleteWebhookPolicyOfProjectNotFound) IsClientError() bool

IsClientError returns true when this delete webhook policy of project not found response has a 4xx status code

func (*DeleteWebhookPolicyOfProjectNotFound) IsCode

IsCode returns true when this delete webhook policy of project not found response a status code equal to that given

func (*DeleteWebhookPolicyOfProjectNotFound) IsRedirect

IsRedirect returns true when this delete webhook policy of project not found response has a 3xx status code

func (*DeleteWebhookPolicyOfProjectNotFound) IsServerError

func (o *DeleteWebhookPolicyOfProjectNotFound) IsServerError() bool

IsServerError returns true when this delete webhook policy of project not found response has a 5xx status code

func (*DeleteWebhookPolicyOfProjectNotFound) IsSuccess

IsSuccess returns true when this delete webhook policy of project not found response has a 2xx status code

func (*DeleteWebhookPolicyOfProjectNotFound) String

type DeleteWebhookPolicyOfProjectOK

type DeleteWebhookPolicyOfProjectOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteWebhookPolicyOfProjectOK describes a response with status code 200, with default header values.

Success

func NewDeleteWebhookPolicyOfProjectOK

func NewDeleteWebhookPolicyOfProjectOK() *DeleteWebhookPolicyOfProjectOK

NewDeleteWebhookPolicyOfProjectOK creates a DeleteWebhookPolicyOfProjectOK with default headers values

func (*DeleteWebhookPolicyOfProjectOK) Code

Code gets the status code for the delete webhook policy of project o k response

func (*DeleteWebhookPolicyOfProjectOK) Error

func (*DeleteWebhookPolicyOfProjectOK) IsClientError

func (o *DeleteWebhookPolicyOfProjectOK) IsClientError() bool

IsClientError returns true when this delete webhook policy of project o k response has a 4xx status code

func (*DeleteWebhookPolicyOfProjectOK) IsCode

func (o *DeleteWebhookPolicyOfProjectOK) IsCode(code int) bool

IsCode returns true when this delete webhook policy of project o k response a status code equal to that given

func (*DeleteWebhookPolicyOfProjectOK) IsRedirect

func (o *DeleteWebhookPolicyOfProjectOK) IsRedirect() bool

IsRedirect returns true when this delete webhook policy of project o k response has a 3xx status code

func (*DeleteWebhookPolicyOfProjectOK) IsServerError

func (o *DeleteWebhookPolicyOfProjectOK) IsServerError() bool

IsServerError returns true when this delete webhook policy of project o k response has a 5xx status code

func (*DeleteWebhookPolicyOfProjectOK) IsSuccess

func (o *DeleteWebhookPolicyOfProjectOK) IsSuccess() bool

IsSuccess returns true when this delete webhook policy of project o k response has a 2xx status code

func (*DeleteWebhookPolicyOfProjectOK) String

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* WebhookPolicyID.

	   The ID of the webhook policy

	   Format: int64
	*/
	WebhookPolicyID int64 `js:"webhookPolicyID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteWebhookPolicyOfProjectParamsWithContext

func NewDeleteWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *DeleteWebhookPolicyOfProjectParams

NewDeleteWebhookPolicyOfProjectParamsWithContext creates a new DeleteWebhookPolicyOfProjectParams object with 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 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 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) SetDefaults

func (o *DeleteWebhookPolicyOfProjectParams) SetDefaults()

SetDefaults hydrates default values in the delete webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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

WithDefaults hydrates default values in the delete webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

DeleteWebhookPolicyOfProjectUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteWebhookPolicyOfProjectUnauthorized

func NewDeleteWebhookPolicyOfProjectUnauthorized() *DeleteWebhookPolicyOfProjectUnauthorized

NewDeleteWebhookPolicyOfProjectUnauthorized creates a DeleteWebhookPolicyOfProjectUnauthorized with default headers values

func (*DeleteWebhookPolicyOfProjectUnauthorized) Code

Code gets the status code for the delete webhook policy of project unauthorized response

func (*DeleteWebhookPolicyOfProjectUnauthorized) Error

func (*DeleteWebhookPolicyOfProjectUnauthorized) GetPayload

func (*DeleteWebhookPolicyOfProjectUnauthorized) IsClientError

IsClientError returns true when this delete webhook policy of project unauthorized response has a 4xx status code

func (*DeleteWebhookPolicyOfProjectUnauthorized) IsCode

IsCode returns true when this delete webhook policy of project unauthorized response a status code equal to that given

func (*DeleteWebhookPolicyOfProjectUnauthorized) IsRedirect

IsRedirect returns true when this delete webhook policy of project unauthorized response has a 3xx status code

func (*DeleteWebhookPolicyOfProjectUnauthorized) IsServerError

IsServerError returns true when this delete webhook policy of project unauthorized response has a 5xx status code

func (*DeleteWebhookPolicyOfProjectUnauthorized) IsSuccess

IsSuccess returns true when this delete webhook policy of project unauthorized response has a 2xx status code

func (*DeleteWebhookPolicyOfProjectUnauthorized) String

type GetSupportedEventTypesForbidden

type GetSupportedEventTypesForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetSupportedEventTypesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetSupportedEventTypesForbidden

func NewGetSupportedEventTypesForbidden() *GetSupportedEventTypesForbidden

NewGetSupportedEventTypesForbidden creates a GetSupportedEventTypesForbidden with default headers values

func (*GetSupportedEventTypesForbidden) Code

Code gets the status code for the get supported event types forbidden response

func (*GetSupportedEventTypesForbidden) Error

func (*GetSupportedEventTypesForbidden) GetPayload

func (*GetSupportedEventTypesForbidden) IsClientError

func (o *GetSupportedEventTypesForbidden) IsClientError() bool

IsClientError returns true when this get supported event types forbidden response has a 4xx status code

func (*GetSupportedEventTypesForbidden) IsCode

func (o *GetSupportedEventTypesForbidden) IsCode(code int) bool

IsCode returns true when this get supported event types forbidden response a status code equal to that given

func (*GetSupportedEventTypesForbidden) IsRedirect

func (o *GetSupportedEventTypesForbidden) IsRedirect() bool

IsRedirect returns true when this get supported event types forbidden response has a 3xx status code

func (*GetSupportedEventTypesForbidden) IsServerError

func (o *GetSupportedEventTypesForbidden) IsServerError() bool

IsServerError returns true when this get supported event types forbidden response has a 5xx status code

func (*GetSupportedEventTypesForbidden) IsSuccess

func (o *GetSupportedEventTypesForbidden) IsSuccess() bool

IsSuccess returns true when this get supported event types forbidden response has a 2xx status code

func (*GetSupportedEventTypesForbidden) String

type GetSupportedEventTypesInternalServerError

type GetSupportedEventTypesInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetSupportedEventTypesInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSupportedEventTypesInternalServerError

func NewGetSupportedEventTypesInternalServerError() *GetSupportedEventTypesInternalServerError

NewGetSupportedEventTypesInternalServerError creates a GetSupportedEventTypesInternalServerError with default headers values

func (*GetSupportedEventTypesInternalServerError) Code

Code gets the status code for the get supported event types internal server error response

func (*GetSupportedEventTypesInternalServerError) Error

func (*GetSupportedEventTypesInternalServerError) GetPayload

func (*GetSupportedEventTypesInternalServerError) IsClientError

IsClientError returns true when this get supported event types internal server error response has a 4xx status code

func (*GetSupportedEventTypesInternalServerError) IsCode

IsCode returns true when this get supported event types internal server error response a status code equal to that given

func (*GetSupportedEventTypesInternalServerError) IsRedirect

IsRedirect returns true when this get supported event types internal server error response has a 3xx status code

func (*GetSupportedEventTypesInternalServerError) IsServerError

IsServerError returns true when this get supported event types internal server error response has a 5xx status code

func (*GetSupportedEventTypesInternalServerError) IsSuccess

IsSuccess returns true when this get supported event types internal server error response has a 2xx status code

func (*GetSupportedEventTypesInternalServerError) String

type GetSupportedEventTypesOK

type GetSupportedEventTypesOK struct {
	Payload *models.SupportedWebhookEventTypes
}

GetSupportedEventTypesOK describes a response with status code 200, with default header values.

Success

func NewGetSupportedEventTypesOK

func NewGetSupportedEventTypesOK() *GetSupportedEventTypesOK

NewGetSupportedEventTypesOK creates a GetSupportedEventTypesOK with default headers values

func (*GetSupportedEventTypesOK) Code

func (o *GetSupportedEventTypesOK) Code() int

Code gets the status code for the get supported event types o k response

func (*GetSupportedEventTypesOK) Error

func (o *GetSupportedEventTypesOK) Error() string

func (*GetSupportedEventTypesOK) GetPayload

func (*GetSupportedEventTypesOK) IsClientError

func (o *GetSupportedEventTypesOK) IsClientError() bool

IsClientError returns true when this get supported event types o k response has a 4xx status code

func (*GetSupportedEventTypesOK) IsCode

func (o *GetSupportedEventTypesOK) IsCode(code int) bool

IsCode returns true when this get supported event types o k response a status code equal to that given

func (*GetSupportedEventTypesOK) IsRedirect

func (o *GetSupportedEventTypesOK) IsRedirect() bool

IsRedirect returns true when this get supported event types o k response has a 3xx status code

func (*GetSupportedEventTypesOK) IsServerError

func (o *GetSupportedEventTypesOK) IsServerError() bool

IsServerError returns true when this get supported event types o k response has a 5xx status code

func (*GetSupportedEventTypesOK) IsSuccess

func (o *GetSupportedEventTypesOK) IsSuccess() bool

IsSuccess returns true when this get supported event types o k response has a 2xx status code

func (*GetSupportedEventTypesOK) String

func (o *GetSupportedEventTypesOK) String() string

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSupportedEventTypesParamsWithContext

func NewGetSupportedEventTypesParamsWithContext(ctx context.Context) *GetSupportedEventTypesParams

NewGetSupportedEventTypesParamsWithContext creates a new GetSupportedEventTypesParams object with 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 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 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) SetDefaults

func (o *GetSupportedEventTypesParams) SetDefaults()

SetDefaults hydrates default values in the get supported event types params (not the query body).

All values with no default are reset to their zero value.

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

WithDefaults hydrates default values in the get supported event types params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

GetSupportedEventTypesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetSupportedEventTypesUnauthorized

func NewGetSupportedEventTypesUnauthorized() *GetSupportedEventTypesUnauthorized

NewGetSupportedEventTypesUnauthorized creates a GetSupportedEventTypesUnauthorized with default headers values

func (*GetSupportedEventTypesUnauthorized) Code

Code gets the status code for the get supported event types unauthorized response

func (*GetSupportedEventTypesUnauthorized) Error

func (*GetSupportedEventTypesUnauthorized) GetPayload

func (*GetSupportedEventTypesUnauthorized) IsClientError

func (o *GetSupportedEventTypesUnauthorized) IsClientError() bool

IsClientError returns true when this get supported event types unauthorized response has a 4xx status code

func (*GetSupportedEventTypesUnauthorized) IsCode

IsCode returns true when this get supported event types unauthorized response a status code equal to that given

func (*GetSupportedEventTypesUnauthorized) IsRedirect

func (o *GetSupportedEventTypesUnauthorized) IsRedirect() bool

IsRedirect returns true when this get supported event types unauthorized response has a 3xx status code

func (*GetSupportedEventTypesUnauthorized) IsServerError

func (o *GetSupportedEventTypesUnauthorized) IsServerError() bool

IsServerError returns true when this get supported event types unauthorized response has a 5xx status code

func (*GetSupportedEventTypesUnauthorized) IsSuccess

IsSuccess returns true when this get supported event types unauthorized response has a 2xx status code

func (*GetSupportedEventTypesUnauthorized) String

type GetWebhookPolicyOfProjectBadRequest

type GetWebhookPolicyOfProjectBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetWebhookPolicyOfProjectBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetWebhookPolicyOfProjectBadRequest

func NewGetWebhookPolicyOfProjectBadRequest() *GetWebhookPolicyOfProjectBadRequest

NewGetWebhookPolicyOfProjectBadRequest creates a GetWebhookPolicyOfProjectBadRequest with default headers values

func (*GetWebhookPolicyOfProjectBadRequest) Code

Code gets the status code for the get webhook policy of project bad request response

func (*GetWebhookPolicyOfProjectBadRequest) Error

func (*GetWebhookPolicyOfProjectBadRequest) GetPayload

func (*GetWebhookPolicyOfProjectBadRequest) IsClientError

func (o *GetWebhookPolicyOfProjectBadRequest) IsClientError() bool

IsClientError returns true when this get webhook policy of project bad request response has a 4xx status code

func (*GetWebhookPolicyOfProjectBadRequest) IsCode

IsCode returns true when this get webhook policy of project bad request response a status code equal to that given

func (*GetWebhookPolicyOfProjectBadRequest) IsRedirect

func (o *GetWebhookPolicyOfProjectBadRequest) IsRedirect() bool

IsRedirect returns true when this get webhook policy of project bad request response has a 3xx status code

func (*GetWebhookPolicyOfProjectBadRequest) IsServerError

func (o *GetWebhookPolicyOfProjectBadRequest) IsServerError() bool

IsServerError returns true when this get webhook policy of project bad request response has a 5xx status code

func (*GetWebhookPolicyOfProjectBadRequest) IsSuccess

IsSuccess returns true when this get webhook policy of project bad request response has a 2xx status code

func (*GetWebhookPolicyOfProjectBadRequest) String

type GetWebhookPolicyOfProjectForbidden

type GetWebhookPolicyOfProjectForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetWebhookPolicyOfProjectForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetWebhookPolicyOfProjectForbidden

func NewGetWebhookPolicyOfProjectForbidden() *GetWebhookPolicyOfProjectForbidden

NewGetWebhookPolicyOfProjectForbidden creates a GetWebhookPolicyOfProjectForbidden with default headers values

func (*GetWebhookPolicyOfProjectForbidden) Code

Code gets the status code for the get webhook policy of project forbidden response

func (*GetWebhookPolicyOfProjectForbidden) Error

func (*GetWebhookPolicyOfProjectForbidden) GetPayload

func (*GetWebhookPolicyOfProjectForbidden) IsClientError

func (o *GetWebhookPolicyOfProjectForbidden) IsClientError() bool

IsClientError returns true when this get webhook policy of project forbidden response has a 4xx status code

func (*GetWebhookPolicyOfProjectForbidden) IsCode

IsCode returns true when this get webhook policy of project forbidden response a status code equal to that given

func (*GetWebhookPolicyOfProjectForbidden) IsRedirect

func (o *GetWebhookPolicyOfProjectForbidden) IsRedirect() bool

IsRedirect returns true when this get webhook policy of project forbidden response has a 3xx status code

func (*GetWebhookPolicyOfProjectForbidden) IsServerError

func (o *GetWebhookPolicyOfProjectForbidden) IsServerError() bool

IsServerError returns true when this get webhook policy of project forbidden response has a 5xx status code

func (*GetWebhookPolicyOfProjectForbidden) IsSuccess

IsSuccess returns true when this get webhook policy of project forbidden response has a 2xx status code

func (*GetWebhookPolicyOfProjectForbidden) String

type GetWebhookPolicyOfProjectInternalServerError

type GetWebhookPolicyOfProjectInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetWebhookPolicyOfProjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetWebhookPolicyOfProjectInternalServerError

func NewGetWebhookPolicyOfProjectInternalServerError() *GetWebhookPolicyOfProjectInternalServerError

NewGetWebhookPolicyOfProjectInternalServerError creates a GetWebhookPolicyOfProjectInternalServerError with default headers values

func (*GetWebhookPolicyOfProjectInternalServerError) Code

Code gets the status code for the get webhook policy of project internal server error response

func (*GetWebhookPolicyOfProjectInternalServerError) Error

func (*GetWebhookPolicyOfProjectInternalServerError) GetPayload

func (*GetWebhookPolicyOfProjectInternalServerError) IsClientError

IsClientError returns true when this get webhook policy of project internal server error response has a 4xx status code

func (*GetWebhookPolicyOfProjectInternalServerError) IsCode

IsCode returns true when this get webhook policy of project internal server error response a status code equal to that given

func (*GetWebhookPolicyOfProjectInternalServerError) IsRedirect

IsRedirect returns true when this get webhook policy of project internal server error response has a 3xx status code

func (*GetWebhookPolicyOfProjectInternalServerError) IsServerError

IsServerError returns true when this get webhook policy of project internal server error response has a 5xx status code

func (*GetWebhookPolicyOfProjectInternalServerError) IsSuccess

IsSuccess returns true when this get webhook policy of project internal server error response has a 2xx status code

func (*GetWebhookPolicyOfProjectInternalServerError) String

type GetWebhookPolicyOfProjectNotFound

type GetWebhookPolicyOfProjectNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetWebhookPolicyOfProjectNotFound describes a response with status code 404, with default header values.

Not found

func NewGetWebhookPolicyOfProjectNotFound

func NewGetWebhookPolicyOfProjectNotFound() *GetWebhookPolicyOfProjectNotFound

NewGetWebhookPolicyOfProjectNotFound creates a GetWebhookPolicyOfProjectNotFound with default headers values

func (*GetWebhookPolicyOfProjectNotFound) Code

Code gets the status code for the get webhook policy of project not found response

func (*GetWebhookPolicyOfProjectNotFound) Error

func (*GetWebhookPolicyOfProjectNotFound) GetPayload

func (*GetWebhookPolicyOfProjectNotFound) IsClientError

func (o *GetWebhookPolicyOfProjectNotFound) IsClientError() bool

IsClientError returns true when this get webhook policy of project not found response has a 4xx status code

func (*GetWebhookPolicyOfProjectNotFound) IsCode

func (o *GetWebhookPolicyOfProjectNotFound) IsCode(code int) bool

IsCode returns true when this get webhook policy of project not found response a status code equal to that given

func (*GetWebhookPolicyOfProjectNotFound) IsRedirect

func (o *GetWebhookPolicyOfProjectNotFound) IsRedirect() bool

IsRedirect returns true when this get webhook policy of project not found response has a 3xx status code

func (*GetWebhookPolicyOfProjectNotFound) IsServerError

func (o *GetWebhookPolicyOfProjectNotFound) IsServerError() bool

IsServerError returns true when this get webhook policy of project not found response has a 5xx status code

func (*GetWebhookPolicyOfProjectNotFound) IsSuccess

func (o *GetWebhookPolicyOfProjectNotFound) IsSuccess() bool

IsSuccess returns true when this get webhook policy of project not found response has a 2xx status code

func (*GetWebhookPolicyOfProjectNotFound) String

type GetWebhookPolicyOfProjectOK

type GetWebhookPolicyOfProjectOK struct {
	Payload *models.WebhookPolicy
}

GetWebhookPolicyOfProjectOK describes a response with status code 200, with default header values.

Get webhook policy successfully.

func NewGetWebhookPolicyOfProjectOK

func NewGetWebhookPolicyOfProjectOK() *GetWebhookPolicyOfProjectOK

NewGetWebhookPolicyOfProjectOK creates a GetWebhookPolicyOfProjectOK with default headers values

func (*GetWebhookPolicyOfProjectOK) Code

func (o *GetWebhookPolicyOfProjectOK) Code() int

Code gets the status code for the get webhook policy of project o k response

func (*GetWebhookPolicyOfProjectOK) Error

func (*GetWebhookPolicyOfProjectOK) GetPayload

func (*GetWebhookPolicyOfProjectOK) IsClientError

func (o *GetWebhookPolicyOfProjectOK) IsClientError() bool

IsClientError returns true when this get webhook policy of project o k response has a 4xx status code

func (*GetWebhookPolicyOfProjectOK) IsCode

func (o *GetWebhookPolicyOfProjectOK) IsCode(code int) bool

IsCode returns true when this get webhook policy of project o k response a status code equal to that given

func (*GetWebhookPolicyOfProjectOK) IsRedirect

func (o *GetWebhookPolicyOfProjectOK) IsRedirect() bool

IsRedirect returns true when this get webhook policy of project o k response has a 3xx status code

func (*GetWebhookPolicyOfProjectOK) IsServerError

func (o *GetWebhookPolicyOfProjectOK) IsServerError() bool

IsServerError returns true when this get webhook policy of project o k response has a 5xx status code

func (*GetWebhookPolicyOfProjectOK) IsSuccess

func (o *GetWebhookPolicyOfProjectOK) IsSuccess() bool

IsSuccess returns true when this get webhook policy of project o k response has a 2xx status code

func (*GetWebhookPolicyOfProjectOK) String

func (o *GetWebhookPolicyOfProjectOK) String() string

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* WebhookPolicyID.

	   The ID of the webhook policy

	   Format: int64
	*/
	WebhookPolicyID int64 `js:"webhookPolicyID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetWebhookPolicyOfProjectParamsWithContext

func NewGetWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *GetWebhookPolicyOfProjectParams

NewGetWebhookPolicyOfProjectParamsWithContext creates a new GetWebhookPolicyOfProjectParams object with 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 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 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) SetDefaults

func (o *GetWebhookPolicyOfProjectParams) SetDefaults()

SetDefaults hydrates default values in the get webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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

WithDefaults hydrates default values in the get webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

GetWebhookPolicyOfProjectUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetWebhookPolicyOfProjectUnauthorized

func NewGetWebhookPolicyOfProjectUnauthorized() *GetWebhookPolicyOfProjectUnauthorized

NewGetWebhookPolicyOfProjectUnauthorized creates a GetWebhookPolicyOfProjectUnauthorized with default headers values

func (*GetWebhookPolicyOfProjectUnauthorized) Code

Code gets the status code for the get webhook policy of project unauthorized response

func (*GetWebhookPolicyOfProjectUnauthorized) Error

func (*GetWebhookPolicyOfProjectUnauthorized) GetPayload

func (*GetWebhookPolicyOfProjectUnauthorized) IsClientError

func (o *GetWebhookPolicyOfProjectUnauthorized) IsClientError() bool

IsClientError returns true when this get webhook policy of project unauthorized response has a 4xx status code

func (*GetWebhookPolicyOfProjectUnauthorized) IsCode

IsCode returns true when this get webhook policy of project unauthorized response a status code equal to that given

func (*GetWebhookPolicyOfProjectUnauthorized) IsRedirect

IsRedirect returns true when this get webhook policy of project unauthorized response has a 3xx status code

func (*GetWebhookPolicyOfProjectUnauthorized) IsServerError

func (o *GetWebhookPolicyOfProjectUnauthorized) IsServerError() bool

IsServerError returns true when this get webhook policy of project unauthorized response has a 5xx status code

func (*GetWebhookPolicyOfProjectUnauthorized) IsSuccess

IsSuccess returns true when this get webhook policy of project unauthorized response has a 2xx status code

func (*GetWebhookPolicyOfProjectUnauthorized) String

type LastTriggerBadRequest

type LastTriggerBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

LastTriggerBadRequest describes a response with status code 400, with default header values.

Bad request

func NewLastTriggerBadRequest

func NewLastTriggerBadRequest() *LastTriggerBadRequest

NewLastTriggerBadRequest creates a LastTriggerBadRequest with default headers values

func (*LastTriggerBadRequest) Code

func (o *LastTriggerBadRequest) Code() int

Code gets the status code for the last trigger bad request response

func (*LastTriggerBadRequest) Error

func (o *LastTriggerBadRequest) Error() string

func (*LastTriggerBadRequest) GetPayload

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

func (*LastTriggerBadRequest) IsClientError

func (o *LastTriggerBadRequest) IsClientError() bool

IsClientError returns true when this last trigger bad request response has a 4xx status code

func (*LastTriggerBadRequest) IsCode

func (o *LastTriggerBadRequest) IsCode(code int) bool

IsCode returns true when this last trigger bad request response a status code equal to that given

func (*LastTriggerBadRequest) IsRedirect

func (o *LastTriggerBadRequest) IsRedirect() bool

IsRedirect returns true when this last trigger bad request response has a 3xx status code

func (*LastTriggerBadRequest) IsServerError

func (o *LastTriggerBadRequest) IsServerError() bool

IsServerError returns true when this last trigger bad request response has a 5xx status code

func (*LastTriggerBadRequest) IsSuccess

func (o *LastTriggerBadRequest) IsSuccess() bool

IsSuccess returns true when this last trigger bad request response has a 2xx status code

func (*LastTriggerBadRequest) String

func (o *LastTriggerBadRequest) String() string

type LastTriggerForbidden

type LastTriggerForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

LastTriggerForbidden describes a response with status code 403, with default header values.

Forbidden

func NewLastTriggerForbidden

func NewLastTriggerForbidden() *LastTriggerForbidden

NewLastTriggerForbidden creates a LastTriggerForbidden with default headers values

func (*LastTriggerForbidden) Code

func (o *LastTriggerForbidden) Code() int

Code gets the status code for the last trigger forbidden response

func (*LastTriggerForbidden) Error

func (o *LastTriggerForbidden) Error() string

func (*LastTriggerForbidden) GetPayload

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

func (*LastTriggerForbidden) IsClientError

func (o *LastTriggerForbidden) IsClientError() bool

IsClientError returns true when this last trigger forbidden response has a 4xx status code

func (*LastTriggerForbidden) IsCode

func (o *LastTriggerForbidden) IsCode(code int) bool

IsCode returns true when this last trigger forbidden response a status code equal to that given

func (*LastTriggerForbidden) IsRedirect

func (o *LastTriggerForbidden) IsRedirect() bool

IsRedirect returns true when this last trigger forbidden response has a 3xx status code

func (*LastTriggerForbidden) IsServerError

func (o *LastTriggerForbidden) IsServerError() bool

IsServerError returns true when this last trigger forbidden response has a 5xx status code

func (*LastTriggerForbidden) IsSuccess

func (o *LastTriggerForbidden) IsSuccess() bool

IsSuccess returns true when this last trigger forbidden response has a 2xx status code

func (*LastTriggerForbidden) String

func (o *LastTriggerForbidden) String() string

type LastTriggerInternalServerError

type LastTriggerInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

LastTriggerInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewLastTriggerInternalServerError

func NewLastTriggerInternalServerError() *LastTriggerInternalServerError

NewLastTriggerInternalServerError creates a LastTriggerInternalServerError with default headers values

func (*LastTriggerInternalServerError) Code

Code gets the status code for the last trigger internal server error response

func (*LastTriggerInternalServerError) Error

func (*LastTriggerInternalServerError) GetPayload

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

func (*LastTriggerInternalServerError) IsClientError

func (o *LastTriggerInternalServerError) IsClientError() bool

IsClientError returns true when this last trigger internal server error response has a 4xx status code

func (*LastTriggerInternalServerError) IsCode

func (o *LastTriggerInternalServerError) IsCode(code int) bool

IsCode returns true when this last trigger internal server error response a status code equal to that given

func (*LastTriggerInternalServerError) IsRedirect

func (o *LastTriggerInternalServerError) IsRedirect() bool

IsRedirect returns true when this last trigger internal server error response has a 3xx status code

func (*LastTriggerInternalServerError) IsServerError

func (o *LastTriggerInternalServerError) IsServerError() bool

IsServerError returns true when this last trigger internal server error response has a 5xx status code

func (*LastTriggerInternalServerError) IsSuccess

func (o *LastTriggerInternalServerError) IsSuccess() bool

IsSuccess returns true when this last trigger internal server error response has a 2xx status code

func (*LastTriggerInternalServerError) String

type LastTriggerOK

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

LastTriggerOK describes a response with status code 200, with default header values.

Test webhook connection successfully.

func NewLastTriggerOK

func NewLastTriggerOK() *LastTriggerOK

NewLastTriggerOK creates a LastTriggerOK with default headers values

func (*LastTriggerOK) Code

func (o *LastTriggerOK) Code() int

Code gets the status code for the last trigger o k response

func (*LastTriggerOK) Error

func (o *LastTriggerOK) Error() string

func (*LastTriggerOK) GetPayload

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

func (*LastTriggerOK) IsClientError

func (o *LastTriggerOK) IsClientError() bool

IsClientError returns true when this last trigger o k response has a 4xx status code

func (*LastTriggerOK) IsCode

func (o *LastTriggerOK) IsCode(code int) bool

IsCode returns true when this last trigger o k response a status code equal to that given

func (*LastTriggerOK) IsRedirect

func (o *LastTriggerOK) IsRedirect() bool

IsRedirect returns true when this last trigger o k response has a 3xx status code

func (*LastTriggerOK) IsServerError

func (o *LastTriggerOK) IsServerError() bool

IsServerError returns true when this last trigger o k response has a 5xx status code

func (*LastTriggerOK) IsSuccess

func (o *LastTriggerOK) IsSuccess() bool

IsSuccess returns true when this last trigger o k response has a 2xx status code

func (*LastTriggerOK) String

func (o *LastTriggerOK) String() string

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewLastTriggerParamsWithContext

func NewLastTriggerParamsWithContext(ctx context.Context) *LastTriggerParams

NewLastTriggerParamsWithContext creates a new LastTriggerParams object with 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 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 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) SetDefaults

func (o *LastTriggerParams) SetDefaults()

SetDefaults hydrates default values in the last trigger params (not the query body).

All values with no default are reset to their zero value.

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

func (o *LastTriggerParams) WithDefaults() *LastTriggerParams

WithDefaults hydrates default values in the last trigger params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

LastTriggerUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewLastTriggerUnauthorized

func NewLastTriggerUnauthorized() *LastTriggerUnauthorized

NewLastTriggerUnauthorized creates a LastTriggerUnauthorized with default headers values

func (*LastTriggerUnauthorized) Code

func (o *LastTriggerUnauthorized) Code() int

Code gets the status code for the last trigger unauthorized response

func (*LastTriggerUnauthorized) Error

func (o *LastTriggerUnauthorized) Error() string

func (*LastTriggerUnauthorized) GetPayload

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

func (*LastTriggerUnauthorized) IsClientError

func (o *LastTriggerUnauthorized) IsClientError() bool

IsClientError returns true when this last trigger unauthorized response has a 4xx status code

func (*LastTriggerUnauthorized) IsCode

func (o *LastTriggerUnauthorized) IsCode(code int) bool

IsCode returns true when this last trigger unauthorized response a status code equal to that given

func (*LastTriggerUnauthorized) IsRedirect

func (o *LastTriggerUnauthorized) IsRedirect() bool

IsRedirect returns true when this last trigger unauthorized response has a 3xx status code

func (*LastTriggerUnauthorized) IsServerError

func (o *LastTriggerUnauthorized) IsServerError() bool

IsServerError returns true when this last trigger unauthorized response has a 5xx status code

func (*LastTriggerUnauthorized) IsSuccess

func (o *LastTriggerUnauthorized) IsSuccess() bool

IsSuccess returns true when this last trigger unauthorized response has a 2xx status code

func (*LastTriggerUnauthorized) String

func (o *LastTriggerUnauthorized) String() string

type ListWebhookPoliciesOfProjectBadRequest

type ListWebhookPoliciesOfProjectBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListWebhookPoliciesOfProjectBadRequest describes a response with status code 400, with default header values.

Bad request

func NewListWebhookPoliciesOfProjectBadRequest

func NewListWebhookPoliciesOfProjectBadRequest() *ListWebhookPoliciesOfProjectBadRequest

NewListWebhookPoliciesOfProjectBadRequest creates a ListWebhookPoliciesOfProjectBadRequest with default headers values

func (*ListWebhookPoliciesOfProjectBadRequest) Code

Code gets the status code for the list webhook policies of project bad request response

func (*ListWebhookPoliciesOfProjectBadRequest) Error

func (*ListWebhookPoliciesOfProjectBadRequest) GetPayload

func (*ListWebhookPoliciesOfProjectBadRequest) IsClientError

func (o *ListWebhookPoliciesOfProjectBadRequest) IsClientError() bool

IsClientError returns true when this list webhook policies of project bad request response has a 4xx status code

func (*ListWebhookPoliciesOfProjectBadRequest) IsCode

IsCode returns true when this list webhook policies of project bad request response a status code equal to that given

func (*ListWebhookPoliciesOfProjectBadRequest) IsRedirect

IsRedirect returns true when this list webhook policies of project bad request response has a 3xx status code

func (*ListWebhookPoliciesOfProjectBadRequest) IsServerError

func (o *ListWebhookPoliciesOfProjectBadRequest) IsServerError() bool

IsServerError returns true when this list webhook policies of project bad request response has a 5xx status code

func (*ListWebhookPoliciesOfProjectBadRequest) IsSuccess

IsSuccess returns true when this list webhook policies of project bad request response has a 2xx status code

func (*ListWebhookPoliciesOfProjectBadRequest) String

type ListWebhookPoliciesOfProjectForbidden

type ListWebhookPoliciesOfProjectForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListWebhookPoliciesOfProjectForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListWebhookPoliciesOfProjectForbidden

func NewListWebhookPoliciesOfProjectForbidden() *ListWebhookPoliciesOfProjectForbidden

NewListWebhookPoliciesOfProjectForbidden creates a ListWebhookPoliciesOfProjectForbidden with default headers values

func (*ListWebhookPoliciesOfProjectForbidden) Code

Code gets the status code for the list webhook policies of project forbidden response

func (*ListWebhookPoliciesOfProjectForbidden) Error

func (*ListWebhookPoliciesOfProjectForbidden) GetPayload

func (*ListWebhookPoliciesOfProjectForbidden) IsClientError

func (o *ListWebhookPoliciesOfProjectForbidden) IsClientError() bool

IsClientError returns true when this list webhook policies of project forbidden response has a 4xx status code

func (*ListWebhookPoliciesOfProjectForbidden) IsCode

IsCode returns true when this list webhook policies of project forbidden response a status code equal to that given

func (*ListWebhookPoliciesOfProjectForbidden) IsRedirect

IsRedirect returns true when this list webhook policies of project forbidden response has a 3xx status code

func (*ListWebhookPoliciesOfProjectForbidden) IsServerError

func (o *ListWebhookPoliciesOfProjectForbidden) IsServerError() bool

IsServerError returns true when this list webhook policies of project forbidden response has a 5xx status code

func (*ListWebhookPoliciesOfProjectForbidden) IsSuccess

IsSuccess returns true when this list webhook policies of project forbidden response has a 2xx status code

func (*ListWebhookPoliciesOfProjectForbidden) String

type ListWebhookPoliciesOfProjectInternalServerError

type ListWebhookPoliciesOfProjectInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListWebhookPoliciesOfProjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewListWebhookPoliciesOfProjectInternalServerError

func NewListWebhookPoliciesOfProjectInternalServerError() *ListWebhookPoliciesOfProjectInternalServerError

NewListWebhookPoliciesOfProjectInternalServerError creates a ListWebhookPoliciesOfProjectInternalServerError with default headers values

func (*ListWebhookPoliciesOfProjectInternalServerError) Code

Code gets the status code for the list webhook policies of project internal server error response

func (*ListWebhookPoliciesOfProjectInternalServerError) Error

func (*ListWebhookPoliciesOfProjectInternalServerError) GetPayload

func (*ListWebhookPoliciesOfProjectInternalServerError) IsClientError

IsClientError returns true when this list webhook policies of project internal server error response has a 4xx status code

func (*ListWebhookPoliciesOfProjectInternalServerError) IsCode

IsCode returns true when this list webhook policies of project internal server error response a status code equal to that given

func (*ListWebhookPoliciesOfProjectInternalServerError) IsRedirect

IsRedirect returns true when this list webhook policies of project internal server error response has a 3xx status code

func (*ListWebhookPoliciesOfProjectInternalServerError) IsServerError

IsServerError returns true when this list webhook policies of project internal server error response has a 5xx status code

func (*ListWebhookPoliciesOfProjectInternalServerError) IsSuccess

IsSuccess returns true when this list webhook policies of project internal server error response has a 2xx status code

func (*ListWebhookPoliciesOfProjectInternalServerError) String

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 []*models.WebhookPolicy
}

ListWebhookPoliciesOfProjectOK describes a response with status code 200, with default header values.

Success

func NewListWebhookPoliciesOfProjectOK

func NewListWebhookPoliciesOfProjectOK() *ListWebhookPoliciesOfProjectOK

NewListWebhookPoliciesOfProjectOK creates a ListWebhookPoliciesOfProjectOK with default headers values

func (*ListWebhookPoliciesOfProjectOK) Code

Code gets the status code for the list webhook policies of project o k response

func (*ListWebhookPoliciesOfProjectOK) Error

func (*ListWebhookPoliciesOfProjectOK) GetPayload

func (*ListWebhookPoliciesOfProjectOK) IsClientError

func (o *ListWebhookPoliciesOfProjectOK) IsClientError() bool

IsClientError returns true when this list webhook policies of project o k response has a 4xx status code

func (*ListWebhookPoliciesOfProjectOK) IsCode

func (o *ListWebhookPoliciesOfProjectOK) IsCode(code int) bool

IsCode returns true when this list webhook policies of project o k response a status code equal to that given

func (*ListWebhookPoliciesOfProjectOK) IsRedirect

func (o *ListWebhookPoliciesOfProjectOK) IsRedirect() bool

IsRedirect returns true when this list webhook policies of project o k response has a 3xx status code

func (*ListWebhookPoliciesOfProjectOK) IsServerError

func (o *ListWebhookPoliciesOfProjectOK) IsServerError() bool

IsServerError returns true when this list webhook policies of project o k response has a 5xx status code

func (*ListWebhookPoliciesOfProjectOK) IsSuccess

func (o *ListWebhookPoliciesOfProjectOK) IsSuccess() bool

IsSuccess returns true when this list webhook policies of project o k response has a 2xx status code

func (*ListWebhookPoliciesOfProjectOK) String

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64 `js:"page"`

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64 `js:"pageSize"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* 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 `js:"q"`

	/* 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 `js:"sort"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListWebhookPoliciesOfProjectParamsWithContext

func NewListWebhookPoliciesOfProjectParamsWithContext(ctx context.Context) *ListWebhookPoliciesOfProjectParams

NewListWebhookPoliciesOfProjectParamsWithContext creates a new ListWebhookPoliciesOfProjectParams object with 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 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 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) SetDefaults

func (o *ListWebhookPoliciesOfProjectParams) SetDefaults()

SetDefaults hydrates default values in the list webhook policies of project params (not the query body).

All values with no default are reset to their zero value.

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

WithDefaults hydrates default values in the list webhook policies of project params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

ListWebhookPoliciesOfProjectUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListWebhookPoliciesOfProjectUnauthorized

func NewListWebhookPoliciesOfProjectUnauthorized() *ListWebhookPoliciesOfProjectUnauthorized

NewListWebhookPoliciesOfProjectUnauthorized creates a ListWebhookPoliciesOfProjectUnauthorized with default headers values

func (*ListWebhookPoliciesOfProjectUnauthorized) Code

Code gets the status code for the list webhook policies of project unauthorized response

func (*ListWebhookPoliciesOfProjectUnauthorized) Error

func (*ListWebhookPoliciesOfProjectUnauthorized) GetPayload

func (*ListWebhookPoliciesOfProjectUnauthorized) IsClientError

IsClientError returns true when this list webhook policies of project unauthorized response has a 4xx status code

func (*ListWebhookPoliciesOfProjectUnauthorized) IsCode

IsCode returns true when this list webhook policies of project unauthorized response a status code equal to that given

func (*ListWebhookPoliciesOfProjectUnauthorized) IsRedirect

IsRedirect returns true when this list webhook policies of project unauthorized response has a 3xx status code

func (*ListWebhookPoliciesOfProjectUnauthorized) IsServerError

IsServerError returns true when this list webhook policies of project unauthorized response has a 5xx status code

func (*ListWebhookPoliciesOfProjectUnauthorized) IsSuccess

IsSuccess returns true when this list webhook policies of project unauthorized response has a 2xx status code

func (*ListWebhookPoliciesOfProjectUnauthorized) String

type UpdateWebhookPolicyOfProjectBadRequest

type UpdateWebhookPolicyOfProjectBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateWebhookPolicyOfProjectBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateWebhookPolicyOfProjectBadRequest

func NewUpdateWebhookPolicyOfProjectBadRequest() *UpdateWebhookPolicyOfProjectBadRequest

NewUpdateWebhookPolicyOfProjectBadRequest creates a UpdateWebhookPolicyOfProjectBadRequest with default headers values

func (*UpdateWebhookPolicyOfProjectBadRequest) Code

Code gets the status code for the update webhook policy of project bad request response

func (*UpdateWebhookPolicyOfProjectBadRequest) Error

func (*UpdateWebhookPolicyOfProjectBadRequest) GetPayload

func (*UpdateWebhookPolicyOfProjectBadRequest) IsClientError

func (o *UpdateWebhookPolicyOfProjectBadRequest) IsClientError() bool

IsClientError returns true when this update webhook policy of project bad request response has a 4xx status code

func (*UpdateWebhookPolicyOfProjectBadRequest) IsCode

IsCode returns true when this update webhook policy of project bad request response a status code equal to that given

func (*UpdateWebhookPolicyOfProjectBadRequest) IsRedirect

IsRedirect returns true when this update webhook policy of project bad request response has a 3xx status code

func (*UpdateWebhookPolicyOfProjectBadRequest) IsServerError

func (o *UpdateWebhookPolicyOfProjectBadRequest) IsServerError() bool

IsServerError returns true when this update webhook policy of project bad request response has a 5xx status code

func (*UpdateWebhookPolicyOfProjectBadRequest) IsSuccess

IsSuccess returns true when this update webhook policy of project bad request response has a 2xx status code

func (*UpdateWebhookPolicyOfProjectBadRequest) String

type UpdateWebhookPolicyOfProjectForbidden

type UpdateWebhookPolicyOfProjectForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateWebhookPolicyOfProjectForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateWebhookPolicyOfProjectForbidden

func NewUpdateWebhookPolicyOfProjectForbidden() *UpdateWebhookPolicyOfProjectForbidden

NewUpdateWebhookPolicyOfProjectForbidden creates a UpdateWebhookPolicyOfProjectForbidden with default headers values

func (*UpdateWebhookPolicyOfProjectForbidden) Code

Code gets the status code for the update webhook policy of project forbidden response

func (*UpdateWebhookPolicyOfProjectForbidden) Error

func (*UpdateWebhookPolicyOfProjectForbidden) GetPayload

func (*UpdateWebhookPolicyOfProjectForbidden) IsClientError

func (o *UpdateWebhookPolicyOfProjectForbidden) IsClientError() bool

IsClientError returns true when this update webhook policy of project forbidden response has a 4xx status code

func (*UpdateWebhookPolicyOfProjectForbidden) IsCode

IsCode returns true when this update webhook policy of project forbidden response a status code equal to that given

func (*UpdateWebhookPolicyOfProjectForbidden) IsRedirect

IsRedirect returns true when this update webhook policy of project forbidden response has a 3xx status code

func (*UpdateWebhookPolicyOfProjectForbidden) IsServerError

func (o *UpdateWebhookPolicyOfProjectForbidden) IsServerError() bool

IsServerError returns true when this update webhook policy of project forbidden response has a 5xx status code

func (*UpdateWebhookPolicyOfProjectForbidden) IsSuccess

IsSuccess returns true when this update webhook policy of project forbidden response has a 2xx status code

func (*UpdateWebhookPolicyOfProjectForbidden) String

type UpdateWebhookPolicyOfProjectInternalServerError

type UpdateWebhookPolicyOfProjectInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateWebhookPolicyOfProjectInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewUpdateWebhookPolicyOfProjectInternalServerError

func NewUpdateWebhookPolicyOfProjectInternalServerError() *UpdateWebhookPolicyOfProjectInternalServerError

NewUpdateWebhookPolicyOfProjectInternalServerError creates a UpdateWebhookPolicyOfProjectInternalServerError with default headers values

func (*UpdateWebhookPolicyOfProjectInternalServerError) Code

Code gets the status code for the update webhook policy of project internal server error response

func (*UpdateWebhookPolicyOfProjectInternalServerError) Error

func (*UpdateWebhookPolicyOfProjectInternalServerError) GetPayload

func (*UpdateWebhookPolicyOfProjectInternalServerError) IsClientError

IsClientError returns true when this update webhook policy of project internal server error response has a 4xx status code

func (*UpdateWebhookPolicyOfProjectInternalServerError) IsCode

IsCode returns true when this update webhook policy of project internal server error response a status code equal to that given

func (*UpdateWebhookPolicyOfProjectInternalServerError) IsRedirect

IsRedirect returns true when this update webhook policy of project internal server error response has a 3xx status code

func (*UpdateWebhookPolicyOfProjectInternalServerError) IsServerError

IsServerError returns true when this update webhook policy of project internal server error response has a 5xx status code

func (*UpdateWebhookPolicyOfProjectInternalServerError) IsSuccess

IsSuccess returns true when this update webhook policy of project internal server error response has a 2xx status code

func (*UpdateWebhookPolicyOfProjectInternalServerError) String

type UpdateWebhookPolicyOfProjectNotFound

type UpdateWebhookPolicyOfProjectNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateWebhookPolicyOfProjectNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateWebhookPolicyOfProjectNotFound

func NewUpdateWebhookPolicyOfProjectNotFound() *UpdateWebhookPolicyOfProjectNotFound

NewUpdateWebhookPolicyOfProjectNotFound creates a UpdateWebhookPolicyOfProjectNotFound with default headers values

func (*UpdateWebhookPolicyOfProjectNotFound) Code

Code gets the status code for the update webhook policy of project not found response

func (*UpdateWebhookPolicyOfProjectNotFound) Error

func (*UpdateWebhookPolicyOfProjectNotFound) GetPayload

func (*UpdateWebhookPolicyOfProjectNotFound) IsClientError

func (o *UpdateWebhookPolicyOfProjectNotFound) IsClientError() bool

IsClientError returns true when this update webhook policy of project not found response has a 4xx status code

func (*UpdateWebhookPolicyOfProjectNotFound) IsCode

IsCode returns true when this update webhook policy of project not found response a status code equal to that given

func (*UpdateWebhookPolicyOfProjectNotFound) IsRedirect

IsRedirect returns true when this update webhook policy of project not found response has a 3xx status code

func (*UpdateWebhookPolicyOfProjectNotFound) IsServerError

func (o *UpdateWebhookPolicyOfProjectNotFound) IsServerError() bool

IsServerError returns true when this update webhook policy of project not found response has a 5xx status code

func (*UpdateWebhookPolicyOfProjectNotFound) IsSuccess

IsSuccess returns true when this update webhook policy of project not found response has a 2xx status code

func (*UpdateWebhookPolicyOfProjectNotFound) String

type UpdateWebhookPolicyOfProjectOK

type UpdateWebhookPolicyOfProjectOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateWebhookPolicyOfProjectOK describes a response with status code 200, with default header values.

Success

func NewUpdateWebhookPolicyOfProjectOK

func NewUpdateWebhookPolicyOfProjectOK() *UpdateWebhookPolicyOfProjectOK

NewUpdateWebhookPolicyOfProjectOK creates a UpdateWebhookPolicyOfProjectOK with default headers values

func (*UpdateWebhookPolicyOfProjectOK) Code

Code gets the status code for the update webhook policy of project o k response

func (*UpdateWebhookPolicyOfProjectOK) Error

func (*UpdateWebhookPolicyOfProjectOK) IsClientError

func (o *UpdateWebhookPolicyOfProjectOK) IsClientError() bool

IsClientError returns true when this update webhook policy of project o k response has a 4xx status code

func (*UpdateWebhookPolicyOfProjectOK) IsCode

func (o *UpdateWebhookPolicyOfProjectOK) IsCode(code int) bool

IsCode returns true when this update webhook policy of project o k response a status code equal to that given

func (*UpdateWebhookPolicyOfProjectOK) IsRedirect

func (o *UpdateWebhookPolicyOfProjectOK) IsRedirect() bool

IsRedirect returns true when this update webhook policy of project o k response has a 3xx status code

func (*UpdateWebhookPolicyOfProjectOK) IsServerError

func (o *UpdateWebhookPolicyOfProjectOK) IsServerError() bool

IsServerError returns true when this update webhook policy of project o k response has a 5xx status code

func (*UpdateWebhookPolicyOfProjectOK) IsSuccess

func (o *UpdateWebhookPolicyOfProjectOK) IsSuccess() bool

IsSuccess returns true when this update webhook policy of project o k response has a 2xx status code

func (*UpdateWebhookPolicyOfProjectOK) String

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 `js:"xIsResourceName"`

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Policy.

	   All properties needed except "id", "project_id", "creation_time", "update_time".
	*/
	Policy *models.WebhookPolicy `js:"policy"`

	/* ProjectNameOrID.

	   The name or id of the project
	*/
	ProjectNameOrID string `js:"projectNameOrID"`

	/* WebhookPolicyID.

	   The ID of the webhook policy

	   Format: int64
	*/
	WebhookPolicyID int64 `js:"webhookPolicyID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateWebhookPolicyOfProjectParamsWithContext

func NewUpdateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *UpdateWebhookPolicyOfProjectParams

NewUpdateWebhookPolicyOfProjectParamsWithContext creates a new UpdateWebhookPolicyOfProjectParams object with 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 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 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) SetDefaults

func (o *UpdateWebhookPolicyOfProjectParams) SetDefaults()

SetDefaults hydrates default values in the update webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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

WithDefaults hydrates default values in the update webhook policy of project params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

UpdateWebhookPolicyOfProjectUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateWebhookPolicyOfProjectUnauthorized

func NewUpdateWebhookPolicyOfProjectUnauthorized() *UpdateWebhookPolicyOfProjectUnauthorized

NewUpdateWebhookPolicyOfProjectUnauthorized creates a UpdateWebhookPolicyOfProjectUnauthorized with default headers values

func (*UpdateWebhookPolicyOfProjectUnauthorized) Code

Code gets the status code for the update webhook policy of project unauthorized response

func (*UpdateWebhookPolicyOfProjectUnauthorized) Error

func (*UpdateWebhookPolicyOfProjectUnauthorized) GetPayload

func (*UpdateWebhookPolicyOfProjectUnauthorized) IsClientError

IsClientError returns true when this update webhook policy of project unauthorized response has a 4xx status code

func (*UpdateWebhookPolicyOfProjectUnauthorized) IsCode

IsCode returns true when this update webhook policy of project unauthorized response a status code equal to that given

func (*UpdateWebhookPolicyOfProjectUnauthorized) IsRedirect

IsRedirect returns true when this update webhook policy of project unauthorized response has a 3xx status code

func (*UpdateWebhookPolicyOfProjectUnauthorized) IsServerError

IsServerError returns true when this update webhook policy of project unauthorized response has a 5xx status code

func (*UpdateWebhookPolicyOfProjectUnauthorized) IsSuccess

IsSuccess returns true when this update webhook policy of project unauthorized response has a 2xx status code

func (*UpdateWebhookPolicyOfProjectUnauthorized) String

Jump to

Keyboard shortcuts

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