Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateWebhookPolicyOfProject(params *CreateWebhookPolicyOfProjectParams, ...) (*CreateWebhookPolicyOfProjectCreated, error)
- func (a *Client) DeleteWebhookPolicyOfProject(params *DeleteWebhookPolicyOfProjectParams, ...) (*DeleteWebhookPolicyOfProjectOK, error)
- func (a *Client) GetSupportedEventTypes(params *GetSupportedEventTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSupportedEventTypesOK, error)
- func (a *Client) GetWebhookPolicyOfProject(params *GetWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookPolicyOfProjectOK, error)
- func (a *Client) LastTrigger(params *LastTriggerParams, authInfo runtime.ClientAuthInfoWriter) (*LastTriggerOK, error)
- func (a *Client) ListWebhookPoliciesOfProject(params *ListWebhookPoliciesOfProjectParams, ...) (*ListWebhookPoliciesOfProjectOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateWebhookPolicyOfProject(params *UpdateWebhookPolicyOfProjectParams, ...) (*UpdateWebhookPolicyOfProjectOK, error)
- type ClientService
- type CreateWebhookPolicyOfProjectBadRequest
- type CreateWebhookPolicyOfProjectCreated
- type CreateWebhookPolicyOfProjectForbidden
- type CreateWebhookPolicyOfProjectInternalServerError
- type CreateWebhookPolicyOfProjectParams
- func NewCreateWebhookPolicyOfProjectParams() *CreateWebhookPolicyOfProjectParams
- func NewCreateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *CreateWebhookPolicyOfProjectParams
- func NewCreateWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *CreateWebhookPolicyOfProjectParams
- func NewCreateWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
- func (o *CreateWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
- func (o *CreateWebhookPolicyOfProjectParams) SetPolicy(policy *model.WebhookPolicy)
- func (o *CreateWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)
- func (o *CreateWebhookPolicyOfProjectParams) SetTimeout(timeout time.Duration)
- func (o *CreateWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *CreateWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)
- func (o *CreateWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WithPolicy(policy *model.WebhookPolicy) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *CreateWebhookPolicyOfProjectParams
- func (o *CreateWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWebhookPolicyOfProjectReader
- type CreateWebhookPolicyOfProjectUnauthorized
- type DeleteWebhookPolicyOfProjectBadRequest
- type DeleteWebhookPolicyOfProjectForbidden
- type DeleteWebhookPolicyOfProjectInternalServerError
- type DeleteWebhookPolicyOfProjectNotFound
- type DeleteWebhookPolicyOfProjectOK
- type DeleteWebhookPolicyOfProjectParams
- func NewDeleteWebhookPolicyOfProjectParams() *DeleteWebhookPolicyOfProjectParams
- func NewDeleteWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *DeleteWebhookPolicyOfProjectParams
- func NewDeleteWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *DeleteWebhookPolicyOfProjectParams
- func NewDeleteWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
- func (o *DeleteWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)
- func (o *DeleteWebhookPolicyOfProjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)
- func (o *DeleteWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *DeleteWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)
- func (o *DeleteWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WithWebhookPolicyID(webhookPolicyID int64) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *DeleteWebhookPolicyOfProjectParams
- func (o *DeleteWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWebhookPolicyOfProjectReader
- type DeleteWebhookPolicyOfProjectUnauthorized
- type GetSupportedEventTypesForbidden
- type GetSupportedEventTypesInternalServerError
- type GetSupportedEventTypesOK
- type GetSupportedEventTypesParams
- func NewGetSupportedEventTypesParams() *GetSupportedEventTypesParams
- func NewGetSupportedEventTypesParamsWithContext(ctx context.Context) *GetSupportedEventTypesParams
- func NewGetSupportedEventTypesParamsWithHTTPClient(client *http.Client) *GetSupportedEventTypesParams
- func NewGetSupportedEventTypesParamsWithTimeout(timeout time.Duration) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) SetContext(ctx context.Context)
- func (o *GetSupportedEventTypesParams) SetHTTPClient(client *http.Client)
- func (o *GetSupportedEventTypesParams) SetProjectNameOrID(projectNameOrID string)
- func (o *GetSupportedEventTypesParams) SetTimeout(timeout time.Duration)
- func (o *GetSupportedEventTypesParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *GetSupportedEventTypesParams) SetXRequestID(xRequestID *string)
- func (o *GetSupportedEventTypesParams) WithContext(ctx context.Context) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) WithHTTPClient(client *http.Client) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) WithProjectNameOrID(projectNameOrID string) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) WithTimeout(timeout time.Duration) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) WithXIsResourceName(xIsResourceName *bool) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) WithXRequestID(xRequestID *string) *GetSupportedEventTypesParams
- func (o *GetSupportedEventTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSupportedEventTypesReader
- type GetSupportedEventTypesUnauthorized
- type GetWebhookPolicyOfProjectBadRequest
- type GetWebhookPolicyOfProjectForbidden
- type GetWebhookPolicyOfProjectInternalServerError
- type GetWebhookPolicyOfProjectNotFound
- type GetWebhookPolicyOfProjectOK
- type GetWebhookPolicyOfProjectParams
- func NewGetWebhookPolicyOfProjectParams() *GetWebhookPolicyOfProjectParams
- func NewGetWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *GetWebhookPolicyOfProjectParams
- func NewGetWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *GetWebhookPolicyOfProjectParams
- func NewGetWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
- func (o *GetWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
- func (o *GetWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)
- func (o *GetWebhookPolicyOfProjectParams) SetTimeout(timeout time.Duration)
- func (o *GetWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)
- func (o *GetWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *GetWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)
- func (o *GetWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WithWebhookPolicyID(webhookPolicyID int64) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *GetWebhookPolicyOfProjectParams
- func (o *GetWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWebhookPolicyOfProjectReader
- type GetWebhookPolicyOfProjectUnauthorized
- type LastTriggerBadRequest
- type LastTriggerForbidden
- type LastTriggerInternalServerError
- type LastTriggerOK
- type LastTriggerParams
- func (o *LastTriggerParams) SetContext(ctx context.Context)
- func (o *LastTriggerParams) SetHTTPClient(client *http.Client)
- func (o *LastTriggerParams) SetProjectNameOrID(projectNameOrID string)
- func (o *LastTriggerParams) SetTimeout(timeout time.Duration)
- func (o *LastTriggerParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *LastTriggerParams) SetXRequestID(xRequestID *string)
- func (o *LastTriggerParams) WithContext(ctx context.Context) *LastTriggerParams
- func (o *LastTriggerParams) WithHTTPClient(client *http.Client) *LastTriggerParams
- func (o *LastTriggerParams) WithProjectNameOrID(projectNameOrID string) *LastTriggerParams
- func (o *LastTriggerParams) WithTimeout(timeout time.Duration) *LastTriggerParams
- func (o *LastTriggerParams) WithXIsResourceName(xIsResourceName *bool) *LastTriggerParams
- func (o *LastTriggerParams) WithXRequestID(xRequestID *string) *LastTriggerParams
- func (o *LastTriggerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LastTriggerReader
- type LastTriggerUnauthorized
- type ListWebhookPoliciesOfProjectBadRequest
- type ListWebhookPoliciesOfProjectForbidden
- type ListWebhookPoliciesOfProjectInternalServerError
- type ListWebhookPoliciesOfProjectOK
- type ListWebhookPoliciesOfProjectParams
- func NewListWebhookPoliciesOfProjectParams() *ListWebhookPoliciesOfProjectParams
- func NewListWebhookPoliciesOfProjectParamsWithContext(ctx context.Context) *ListWebhookPoliciesOfProjectParams
- func NewListWebhookPoliciesOfProjectParamsWithHTTPClient(client *http.Client) *ListWebhookPoliciesOfProjectParams
- func NewListWebhookPoliciesOfProjectParamsWithTimeout(timeout time.Duration) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) SetContext(ctx context.Context)
- func (o *ListWebhookPoliciesOfProjectParams) SetHTTPClient(client *http.Client)
- func (o *ListWebhookPoliciesOfProjectParams) SetPage(page *int64)
- func (o *ListWebhookPoliciesOfProjectParams) SetPageSize(pageSize *int64)
- func (o *ListWebhookPoliciesOfProjectParams) SetProjectNameOrID(projectNameOrID string)
- func (o *ListWebhookPoliciesOfProjectParams) SetQ(q *string)
- func (o *ListWebhookPoliciesOfProjectParams) SetSort(sort *string)
- func (o *ListWebhookPoliciesOfProjectParams) SetTimeout(timeout time.Duration)
- func (o *ListWebhookPoliciesOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *ListWebhookPoliciesOfProjectParams) SetXRequestID(xRequestID *string)
- func (o *ListWebhookPoliciesOfProjectParams) WithContext(ctx context.Context) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithHTTPClient(client *http.Client) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithPage(page *int64) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithPageSize(pageSize *int64) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithProjectNameOrID(projectNameOrID string) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithQ(q *string) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithSort(sort *string) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithTimeout(timeout time.Duration) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WithXRequestID(xRequestID *string) *ListWebhookPoliciesOfProjectParams
- func (o *ListWebhookPoliciesOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListWebhookPoliciesOfProjectReader
- type ListWebhookPoliciesOfProjectUnauthorized
- type UpdateWebhookPolicyOfProjectBadRequest
- type UpdateWebhookPolicyOfProjectForbidden
- type UpdateWebhookPolicyOfProjectInternalServerError
- type UpdateWebhookPolicyOfProjectNotFound
- type UpdateWebhookPolicyOfProjectOK
- type UpdateWebhookPolicyOfProjectParams
- func NewUpdateWebhookPolicyOfProjectParams() *UpdateWebhookPolicyOfProjectParams
- func NewUpdateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *UpdateWebhookPolicyOfProjectParams
- func NewUpdateWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *UpdateWebhookPolicyOfProjectParams
- func NewUpdateWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
- func (o *UpdateWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
- func (o *UpdateWebhookPolicyOfProjectParams) SetPolicy(policy *model.WebhookPolicy)
- func (o *UpdateWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)
- func (o *UpdateWebhookPolicyOfProjectParams) SetTimeout(timeout time.Duration)
- func (o *UpdateWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)
- func (o *UpdateWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
- func (o *UpdateWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)
- func (o *UpdateWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithPolicy(policy *model.WebhookPolicy) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithProjectNameOrID(projectNameOrID string) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithWebhookPolicyID(webhookPolicyID int64) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithXIsResourceName(xIsResourceName *bool) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *UpdateWebhookPolicyOfProjectParams
- func (o *UpdateWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateWebhookPolicyOfProjectReader
- type UpdateWebhookPolicyOfProjectUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for webhook API
func (*Client) CreateWebhookPolicyOfProject ¶
func (a *Client) CreateWebhookPolicyOfProject(params *CreateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*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(params *DeleteWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWebhookPolicyOfProjectOK, error)
DeleteWebhookPolicyOfProject deletes webhook policy of a project
This endpoint is aimed to delete webhookpolicy of a project.
func (*Client) GetSupportedEventTypes ¶
func (a *Client) GetSupportedEventTypes(params *GetSupportedEventTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSupportedEventTypesOK, error)
GetSupportedEventTypes gets supported event types and notify types
Get supportted event types and notify types.
func (*Client) GetWebhookPolicyOfProject ¶
func (a *Client) GetWebhookPolicyOfProject(params *GetWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookPolicyOfProjectOK, error)
GetWebhookPolicyOfProject gets project webhook policy
This endpoint returns specified webhook policy of a project.
func (*Client) LastTrigger ¶
func (a *Client) LastTrigger(params *LastTriggerParams, authInfo runtime.ClientAuthInfoWriter) (*LastTriggerOK, error)
LastTrigger gets project webhook policy last trigger info
This endpoint returns last trigger information of project webhook policy.
func (*Client) ListWebhookPoliciesOfProject ¶
func (a *Client) ListWebhookPoliciesOfProject(params *ListWebhookPoliciesOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*ListWebhookPoliciesOfProjectOK, error)
ListWebhookPoliciesOfProject lists project webhook policies
This endpoint returns webhook policies of a project.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateWebhookPolicyOfProject ¶
func (a *Client) UpdateWebhookPolicyOfProject(params *UpdateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWebhookPolicyOfProjectOK, error)
UpdateWebhookPolicyOfProject updates webhook policy of a project
This endpoint is aimed to update the webhook policy of a project.
type ClientService ¶
type ClientService interface { CreateWebhookPolicyOfProject(params *CreateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWebhookPolicyOfProjectCreated, error) DeleteWebhookPolicyOfProject(params *DeleteWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWebhookPolicyOfProjectOK, error) GetSupportedEventTypes(params *GetSupportedEventTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSupportedEventTypesOK, error) GetWebhookPolicyOfProject(params *GetWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*GetWebhookPolicyOfProjectOK, error) LastTrigger(params *LastTriggerParams, authInfo runtime.ClientAuthInfoWriter) (*LastTriggerOK, error) ListWebhookPoliciesOfProject(params *ListWebhookPoliciesOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*ListWebhookPoliciesOfProjectOK, error) UpdateWebhookPolicyOfProject(params *UpdateWebhookPolicyOfProjectParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWebhookPolicyOfProjectOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new webhook API client.
type CreateWebhookPolicyOfProjectBadRequest ¶
type CreateWebhookPolicyOfProjectBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateWebhookPolicyOfProjectBadRequest handles this case with default header values.
Bad request
func NewCreateWebhookPolicyOfProjectBadRequest ¶
func NewCreateWebhookPolicyOfProjectBadRequest() *CreateWebhookPolicyOfProjectBadRequest
NewCreateWebhookPolicyOfProjectBadRequest creates a CreateWebhookPolicyOfProjectBadRequest with default headers values
func (*CreateWebhookPolicyOfProjectBadRequest) Error ¶
func (o *CreateWebhookPolicyOfProjectBadRequest) Error() string
func (*CreateWebhookPolicyOfProjectBadRequest) GetPayload ¶
func (o *CreateWebhookPolicyOfProjectBadRequest) GetPayload() *model.Errors
type CreateWebhookPolicyOfProjectCreated ¶
type CreateWebhookPolicyOfProjectCreated struct { /*The location of the resource */ Location string /*The ID of the corresponding request for the response */ XRequestID string }
CreateWebhookPolicyOfProjectCreated handles this case with default header values.
Project webhook policy create successfully.
func NewCreateWebhookPolicyOfProjectCreated ¶
func NewCreateWebhookPolicyOfProjectCreated() *CreateWebhookPolicyOfProjectCreated
NewCreateWebhookPolicyOfProjectCreated creates a CreateWebhookPolicyOfProjectCreated with default headers values
func (*CreateWebhookPolicyOfProjectCreated) Error ¶
func (o *CreateWebhookPolicyOfProjectCreated) Error() string
type CreateWebhookPolicyOfProjectForbidden ¶
type CreateWebhookPolicyOfProjectForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateWebhookPolicyOfProjectForbidden handles this case with default header values.
Forbidden
func NewCreateWebhookPolicyOfProjectForbidden ¶
func NewCreateWebhookPolicyOfProjectForbidden() *CreateWebhookPolicyOfProjectForbidden
NewCreateWebhookPolicyOfProjectForbidden creates a CreateWebhookPolicyOfProjectForbidden with default headers values
func (*CreateWebhookPolicyOfProjectForbidden) Error ¶
func (o *CreateWebhookPolicyOfProjectForbidden) Error() string
func (*CreateWebhookPolicyOfProjectForbidden) GetPayload ¶
func (o *CreateWebhookPolicyOfProjectForbidden) GetPayload() *model.Errors
type CreateWebhookPolicyOfProjectInternalServerError ¶
type CreateWebhookPolicyOfProjectInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
CreateWebhookPolicyOfProjectInternalServerError handles this case with default header values.
Internal server error
func NewCreateWebhookPolicyOfProjectInternalServerError ¶
func NewCreateWebhookPolicyOfProjectInternalServerError() *CreateWebhookPolicyOfProjectInternalServerError
NewCreateWebhookPolicyOfProjectInternalServerError creates a CreateWebhookPolicyOfProjectInternalServerError with default headers values
func (*CreateWebhookPolicyOfProjectInternalServerError) Error ¶
func (o *CreateWebhookPolicyOfProjectInternalServerError) Error() string
func (*CreateWebhookPolicyOfProjectInternalServerError) GetPayload ¶
func (o *CreateWebhookPolicyOfProjectInternalServerError) GetPayload() *model.Errors
type CreateWebhookPolicyOfProjectParams ¶
type CreateWebhookPolicyOfProjectParams struct { /*XIsResourceName The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. */ XIsResourceName *bool /*XRequestID An unique ID for the request */ XRequestID *string /*Policy Properties "targets" and "event_types" needed. */ Policy *model.WebhookPolicy /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the create webhook policy of project operation typically these are written to a http.Request
func NewCreateWebhookPolicyOfProjectParams ¶
func NewCreateWebhookPolicyOfProjectParams() *CreateWebhookPolicyOfProjectParams
NewCreateWebhookPolicyOfProjectParams creates a new CreateWebhookPolicyOfProjectParams object with the default values initialized.
func NewCreateWebhookPolicyOfProjectParamsWithContext ¶
func NewCreateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *CreateWebhookPolicyOfProjectParams
NewCreateWebhookPolicyOfProjectParamsWithContext creates a new CreateWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a context for a request
func NewCreateWebhookPolicyOfProjectParamsWithHTTPClient ¶
func NewCreateWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *CreateWebhookPolicyOfProjectParams
NewCreateWebhookPolicyOfProjectParamsWithHTTPClient creates a new CreateWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateWebhookPolicyOfProjectParamsWithTimeout ¶
func NewCreateWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *CreateWebhookPolicyOfProjectParams
NewCreateWebhookPolicyOfProjectParamsWithTimeout creates a new CreateWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateWebhookPolicyOfProjectParams) SetContext ¶
func (o *CreateWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the create webhook policy of project params
func (*CreateWebhookPolicyOfProjectParams) SetHTTPClient ¶
func (o *CreateWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create webhook policy of project params
func (*CreateWebhookPolicyOfProjectParams) SetPolicy ¶
func (o *CreateWebhookPolicyOfProjectParams) SetPolicy(policy *model.WebhookPolicy)
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 ¶
func (o *CreateWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *CreateWebhookPolicyOfProjectParams
WithContext adds the context to the create webhook policy of project params
func (*CreateWebhookPolicyOfProjectParams) WithHTTPClient ¶
func (o *CreateWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *CreateWebhookPolicyOfProjectParams
WithHTTPClient adds the HTTPClient to the create webhook policy of project params
func (*CreateWebhookPolicyOfProjectParams) WithPolicy ¶
func (o *CreateWebhookPolicyOfProjectParams) WithPolicy(policy *model.WebhookPolicy) *CreateWebhookPolicyOfProjectParams
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 ¶
func (o *CreateWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *CreateWebhookPolicyOfProjectParams
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 ¶
func (o *CreateWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *CreateWebhookPolicyOfProjectParams
WithXRequestID adds the xRequestID to the create webhook policy of project params
func (*CreateWebhookPolicyOfProjectParams) WriteToRequest ¶
func (o *CreateWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
CreateWebhookPolicyOfProjectUnauthorized handles this case with default header values.
Unauthorized
func NewCreateWebhookPolicyOfProjectUnauthorized ¶
func NewCreateWebhookPolicyOfProjectUnauthorized() *CreateWebhookPolicyOfProjectUnauthorized
NewCreateWebhookPolicyOfProjectUnauthorized creates a CreateWebhookPolicyOfProjectUnauthorized with default headers values
func (*CreateWebhookPolicyOfProjectUnauthorized) Error ¶
func (o *CreateWebhookPolicyOfProjectUnauthorized) Error() string
func (*CreateWebhookPolicyOfProjectUnauthorized) GetPayload ¶
func (o *CreateWebhookPolicyOfProjectUnauthorized) GetPayload() *model.Errors
type DeleteWebhookPolicyOfProjectBadRequest ¶
type DeleteWebhookPolicyOfProjectBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteWebhookPolicyOfProjectBadRequest handles this case with default header values.
Bad request
func NewDeleteWebhookPolicyOfProjectBadRequest ¶
func NewDeleteWebhookPolicyOfProjectBadRequest() *DeleteWebhookPolicyOfProjectBadRequest
NewDeleteWebhookPolicyOfProjectBadRequest creates a DeleteWebhookPolicyOfProjectBadRequest with default headers values
func (*DeleteWebhookPolicyOfProjectBadRequest) Error ¶
func (o *DeleteWebhookPolicyOfProjectBadRequest) Error() string
func (*DeleteWebhookPolicyOfProjectBadRequest) GetPayload ¶
func (o *DeleteWebhookPolicyOfProjectBadRequest) GetPayload() *model.Errors
type DeleteWebhookPolicyOfProjectForbidden ¶
type DeleteWebhookPolicyOfProjectForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteWebhookPolicyOfProjectForbidden handles this case with default header values.
Forbidden
func NewDeleteWebhookPolicyOfProjectForbidden ¶
func NewDeleteWebhookPolicyOfProjectForbidden() *DeleteWebhookPolicyOfProjectForbidden
NewDeleteWebhookPolicyOfProjectForbidden creates a DeleteWebhookPolicyOfProjectForbidden with default headers values
func (*DeleteWebhookPolicyOfProjectForbidden) Error ¶
func (o *DeleteWebhookPolicyOfProjectForbidden) Error() string
func (*DeleteWebhookPolicyOfProjectForbidden) GetPayload ¶
func (o *DeleteWebhookPolicyOfProjectForbidden) GetPayload() *model.Errors
type DeleteWebhookPolicyOfProjectInternalServerError ¶
type DeleteWebhookPolicyOfProjectInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteWebhookPolicyOfProjectInternalServerError handles this case with default header values.
Internal server error
func NewDeleteWebhookPolicyOfProjectInternalServerError ¶
func NewDeleteWebhookPolicyOfProjectInternalServerError() *DeleteWebhookPolicyOfProjectInternalServerError
NewDeleteWebhookPolicyOfProjectInternalServerError creates a DeleteWebhookPolicyOfProjectInternalServerError with default headers values
func (*DeleteWebhookPolicyOfProjectInternalServerError) Error ¶
func (o *DeleteWebhookPolicyOfProjectInternalServerError) Error() string
func (*DeleteWebhookPolicyOfProjectInternalServerError) GetPayload ¶
func (o *DeleteWebhookPolicyOfProjectInternalServerError) GetPayload() *model.Errors
type DeleteWebhookPolicyOfProjectNotFound ¶
type DeleteWebhookPolicyOfProjectNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
DeleteWebhookPolicyOfProjectNotFound handles this case with default header values.
Not found
func NewDeleteWebhookPolicyOfProjectNotFound ¶
func NewDeleteWebhookPolicyOfProjectNotFound() *DeleteWebhookPolicyOfProjectNotFound
NewDeleteWebhookPolicyOfProjectNotFound creates a DeleteWebhookPolicyOfProjectNotFound with default headers values
func (*DeleteWebhookPolicyOfProjectNotFound) Error ¶
func (o *DeleteWebhookPolicyOfProjectNotFound) Error() string
func (*DeleteWebhookPolicyOfProjectNotFound) GetPayload ¶
func (o *DeleteWebhookPolicyOfProjectNotFound) GetPayload() *model.Errors
type DeleteWebhookPolicyOfProjectOK ¶
type DeleteWebhookPolicyOfProjectOK struct { /*The ID of the corresponding request for the response */ XRequestID string }
DeleteWebhookPolicyOfProjectOK handles this case with default header values.
Success
func NewDeleteWebhookPolicyOfProjectOK ¶
func NewDeleteWebhookPolicyOfProjectOK() *DeleteWebhookPolicyOfProjectOK
NewDeleteWebhookPolicyOfProjectOK creates a DeleteWebhookPolicyOfProjectOK with default headers values
func (*DeleteWebhookPolicyOfProjectOK) Error ¶
func (o *DeleteWebhookPolicyOfProjectOK) Error() 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 /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*WebhookPolicyID The ID of the webhook policy */ WebhookPolicyID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the delete webhook policy of project operation typically these are written to a http.Request
func NewDeleteWebhookPolicyOfProjectParams ¶
func NewDeleteWebhookPolicyOfProjectParams() *DeleteWebhookPolicyOfProjectParams
NewDeleteWebhookPolicyOfProjectParams creates a new DeleteWebhookPolicyOfProjectParams object with the default values initialized.
func NewDeleteWebhookPolicyOfProjectParamsWithContext ¶
func NewDeleteWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *DeleteWebhookPolicyOfProjectParams
NewDeleteWebhookPolicyOfProjectParamsWithContext creates a new DeleteWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteWebhookPolicyOfProjectParamsWithHTTPClient ¶
func NewDeleteWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *DeleteWebhookPolicyOfProjectParams
NewDeleteWebhookPolicyOfProjectParamsWithHTTPClient creates a new DeleteWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteWebhookPolicyOfProjectParamsWithTimeout ¶
func NewDeleteWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *DeleteWebhookPolicyOfProjectParams
NewDeleteWebhookPolicyOfProjectParamsWithTimeout creates a new DeleteWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteWebhookPolicyOfProjectParams) SetContext ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) SetHTTPClient ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) SetProjectNameOrID ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)
SetProjectNameOrID adds the projectNameOrId to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) SetTimeout ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) SetWebhookPolicyID ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)
SetWebhookPolicyID adds the webhookPolicyId to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) SetXIsResourceName ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
SetXIsResourceName adds the xIsResourceName to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) SetXRequestID ¶
func (o *DeleteWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) WithContext ¶
func (o *DeleteWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *DeleteWebhookPolicyOfProjectParams
WithContext adds the context to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) WithHTTPClient ¶
func (o *DeleteWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *DeleteWebhookPolicyOfProjectParams
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 ¶
func (o *DeleteWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *DeleteWebhookPolicyOfProjectParams
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 ¶
func (o *DeleteWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *DeleteWebhookPolicyOfProjectParams
WithXRequestID adds the xRequestID to the delete webhook policy of project params
func (*DeleteWebhookPolicyOfProjectParams) WriteToRequest ¶
func (o *DeleteWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
DeleteWebhookPolicyOfProjectUnauthorized handles this case with default header values.
Unauthorized
func NewDeleteWebhookPolicyOfProjectUnauthorized ¶
func NewDeleteWebhookPolicyOfProjectUnauthorized() *DeleteWebhookPolicyOfProjectUnauthorized
NewDeleteWebhookPolicyOfProjectUnauthorized creates a DeleteWebhookPolicyOfProjectUnauthorized with default headers values
func (*DeleteWebhookPolicyOfProjectUnauthorized) Error ¶
func (o *DeleteWebhookPolicyOfProjectUnauthorized) Error() string
func (*DeleteWebhookPolicyOfProjectUnauthorized) GetPayload ¶
func (o *DeleteWebhookPolicyOfProjectUnauthorized) GetPayload() *model.Errors
type GetSupportedEventTypesForbidden ¶
type GetSupportedEventTypesForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetSupportedEventTypesForbidden handles this case with default header values.
Forbidden
func NewGetSupportedEventTypesForbidden ¶
func NewGetSupportedEventTypesForbidden() *GetSupportedEventTypesForbidden
NewGetSupportedEventTypesForbidden creates a GetSupportedEventTypesForbidden with default headers values
func (*GetSupportedEventTypesForbidden) Error ¶
func (o *GetSupportedEventTypesForbidden) Error() string
func (*GetSupportedEventTypesForbidden) GetPayload ¶
func (o *GetSupportedEventTypesForbidden) GetPayload() *model.Errors
type GetSupportedEventTypesInternalServerError ¶
type GetSupportedEventTypesInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetSupportedEventTypesInternalServerError handles this case with default header values.
Internal server error
func NewGetSupportedEventTypesInternalServerError ¶
func NewGetSupportedEventTypesInternalServerError() *GetSupportedEventTypesInternalServerError
NewGetSupportedEventTypesInternalServerError creates a GetSupportedEventTypesInternalServerError with default headers values
func (*GetSupportedEventTypesInternalServerError) Error ¶
func (o *GetSupportedEventTypesInternalServerError) Error() string
func (*GetSupportedEventTypesInternalServerError) GetPayload ¶
func (o *GetSupportedEventTypesInternalServerError) GetPayload() *model.Errors
type GetSupportedEventTypesOK ¶
type GetSupportedEventTypesOK struct {
Payload *model.SupportedWebhookEventTypes
}
GetSupportedEventTypesOK handles this case with default header values.
Success
func NewGetSupportedEventTypesOK ¶
func NewGetSupportedEventTypesOK() *GetSupportedEventTypesOK
NewGetSupportedEventTypesOK creates a GetSupportedEventTypesOK with default headers values
func (*GetSupportedEventTypesOK) Error ¶
func (o *GetSupportedEventTypesOK) Error() string
func (*GetSupportedEventTypesOK) GetPayload ¶
func (o *GetSupportedEventTypesOK) GetPayload() *model.SupportedWebhookEventTypes
type GetSupportedEventTypesParams ¶
type GetSupportedEventTypesParams struct { /*XIsResourceName The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. */ XIsResourceName *bool /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSupportedEventTypesParams contains all the parameters to send to the API endpoint for the get supported event types operation typically these are written to a http.Request
func NewGetSupportedEventTypesParams ¶
func NewGetSupportedEventTypesParams() *GetSupportedEventTypesParams
NewGetSupportedEventTypesParams creates a new GetSupportedEventTypesParams object with the default values initialized.
func NewGetSupportedEventTypesParamsWithContext ¶
func NewGetSupportedEventTypesParamsWithContext(ctx context.Context) *GetSupportedEventTypesParams
NewGetSupportedEventTypesParamsWithContext creates a new GetSupportedEventTypesParams object with the default values initialized, and the ability to set a context for a request
func NewGetSupportedEventTypesParamsWithHTTPClient ¶
func NewGetSupportedEventTypesParamsWithHTTPClient(client *http.Client) *GetSupportedEventTypesParams
NewGetSupportedEventTypesParamsWithHTTPClient creates a new GetSupportedEventTypesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSupportedEventTypesParamsWithTimeout ¶
func NewGetSupportedEventTypesParamsWithTimeout(timeout time.Duration) *GetSupportedEventTypesParams
NewGetSupportedEventTypesParamsWithTimeout creates a new GetSupportedEventTypesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSupportedEventTypesParams) SetContext ¶
func (o *GetSupportedEventTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the get supported event types params
func (*GetSupportedEventTypesParams) SetHTTPClient ¶
func (o *GetSupportedEventTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get supported event types params
func (*GetSupportedEventTypesParams) SetProjectNameOrID ¶
func (o *GetSupportedEventTypesParams) SetProjectNameOrID(projectNameOrID string)
SetProjectNameOrID adds the projectNameOrId to the get supported event types params
func (*GetSupportedEventTypesParams) SetTimeout ¶
func (o *GetSupportedEventTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get supported event types params
func (*GetSupportedEventTypesParams) SetXIsResourceName ¶
func (o *GetSupportedEventTypesParams) SetXIsResourceName(xIsResourceName *bool)
SetXIsResourceName adds the xIsResourceName to the get supported event types params
func (*GetSupportedEventTypesParams) SetXRequestID ¶
func (o *GetSupportedEventTypesParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get supported event types params
func (*GetSupportedEventTypesParams) WithContext ¶
func (o *GetSupportedEventTypesParams) WithContext(ctx context.Context) *GetSupportedEventTypesParams
WithContext adds the context to the get supported event types params
func (*GetSupportedEventTypesParams) WithHTTPClient ¶
func (o *GetSupportedEventTypesParams) WithHTTPClient(client *http.Client) *GetSupportedEventTypesParams
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 ¶
func (o *GetSupportedEventTypesParams) WithTimeout(timeout time.Duration) *GetSupportedEventTypesParams
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 ¶
func (o *GetSupportedEventTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
GetSupportedEventTypesUnauthorized handles this case with default header values.
Unauthorized
func NewGetSupportedEventTypesUnauthorized ¶
func NewGetSupportedEventTypesUnauthorized() *GetSupportedEventTypesUnauthorized
NewGetSupportedEventTypesUnauthorized creates a GetSupportedEventTypesUnauthorized with default headers values
func (*GetSupportedEventTypesUnauthorized) Error ¶
func (o *GetSupportedEventTypesUnauthorized) Error() string
func (*GetSupportedEventTypesUnauthorized) GetPayload ¶
func (o *GetSupportedEventTypesUnauthorized) GetPayload() *model.Errors
type GetWebhookPolicyOfProjectBadRequest ¶
type GetWebhookPolicyOfProjectBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetWebhookPolicyOfProjectBadRequest handles this case with default header values.
Bad request
func NewGetWebhookPolicyOfProjectBadRequest ¶
func NewGetWebhookPolicyOfProjectBadRequest() *GetWebhookPolicyOfProjectBadRequest
NewGetWebhookPolicyOfProjectBadRequest creates a GetWebhookPolicyOfProjectBadRequest with default headers values
func (*GetWebhookPolicyOfProjectBadRequest) Error ¶
func (o *GetWebhookPolicyOfProjectBadRequest) Error() string
func (*GetWebhookPolicyOfProjectBadRequest) GetPayload ¶
func (o *GetWebhookPolicyOfProjectBadRequest) GetPayload() *model.Errors
type GetWebhookPolicyOfProjectForbidden ¶
type GetWebhookPolicyOfProjectForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetWebhookPolicyOfProjectForbidden handles this case with default header values.
Forbidden
func NewGetWebhookPolicyOfProjectForbidden ¶
func NewGetWebhookPolicyOfProjectForbidden() *GetWebhookPolicyOfProjectForbidden
NewGetWebhookPolicyOfProjectForbidden creates a GetWebhookPolicyOfProjectForbidden with default headers values
func (*GetWebhookPolicyOfProjectForbidden) Error ¶
func (o *GetWebhookPolicyOfProjectForbidden) Error() string
func (*GetWebhookPolicyOfProjectForbidden) GetPayload ¶
func (o *GetWebhookPolicyOfProjectForbidden) GetPayload() *model.Errors
type GetWebhookPolicyOfProjectInternalServerError ¶
type GetWebhookPolicyOfProjectInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetWebhookPolicyOfProjectInternalServerError handles this case with default header values.
Internal server error
func NewGetWebhookPolicyOfProjectInternalServerError ¶
func NewGetWebhookPolicyOfProjectInternalServerError() *GetWebhookPolicyOfProjectInternalServerError
NewGetWebhookPolicyOfProjectInternalServerError creates a GetWebhookPolicyOfProjectInternalServerError with default headers values
func (*GetWebhookPolicyOfProjectInternalServerError) Error ¶
func (o *GetWebhookPolicyOfProjectInternalServerError) Error() string
func (*GetWebhookPolicyOfProjectInternalServerError) GetPayload ¶
func (o *GetWebhookPolicyOfProjectInternalServerError) GetPayload() *model.Errors
type GetWebhookPolicyOfProjectNotFound ¶
type GetWebhookPolicyOfProjectNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetWebhookPolicyOfProjectNotFound handles this case with default header values.
Not found
func NewGetWebhookPolicyOfProjectNotFound ¶
func NewGetWebhookPolicyOfProjectNotFound() *GetWebhookPolicyOfProjectNotFound
NewGetWebhookPolicyOfProjectNotFound creates a GetWebhookPolicyOfProjectNotFound with default headers values
func (*GetWebhookPolicyOfProjectNotFound) Error ¶
func (o *GetWebhookPolicyOfProjectNotFound) Error() string
func (*GetWebhookPolicyOfProjectNotFound) GetPayload ¶
func (o *GetWebhookPolicyOfProjectNotFound) GetPayload() *model.Errors
type GetWebhookPolicyOfProjectOK ¶
type GetWebhookPolicyOfProjectOK struct {
Payload *model.WebhookPolicy
}
GetWebhookPolicyOfProjectOK handles this case with default header values.
Get webhook policy successfully.
func NewGetWebhookPolicyOfProjectOK ¶
func NewGetWebhookPolicyOfProjectOK() *GetWebhookPolicyOfProjectOK
NewGetWebhookPolicyOfProjectOK creates a GetWebhookPolicyOfProjectOK with default headers values
func (*GetWebhookPolicyOfProjectOK) Error ¶
func (o *GetWebhookPolicyOfProjectOK) Error() string
func (*GetWebhookPolicyOfProjectOK) GetPayload ¶
func (o *GetWebhookPolicyOfProjectOK) GetPayload() *model.WebhookPolicy
type GetWebhookPolicyOfProjectParams ¶
type GetWebhookPolicyOfProjectParams struct { /*XIsResourceName The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. */ XIsResourceName *bool /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*WebhookPolicyID The ID of the webhook policy */ WebhookPolicyID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the get webhook policy of project operation typically these are written to a http.Request
func NewGetWebhookPolicyOfProjectParams ¶
func NewGetWebhookPolicyOfProjectParams() *GetWebhookPolicyOfProjectParams
NewGetWebhookPolicyOfProjectParams creates a new GetWebhookPolicyOfProjectParams object with the default values initialized.
func NewGetWebhookPolicyOfProjectParamsWithContext ¶
func NewGetWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *GetWebhookPolicyOfProjectParams
NewGetWebhookPolicyOfProjectParamsWithContext creates a new GetWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a context for a request
func NewGetWebhookPolicyOfProjectParamsWithHTTPClient ¶
func NewGetWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *GetWebhookPolicyOfProjectParams
NewGetWebhookPolicyOfProjectParamsWithHTTPClient creates a new GetWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetWebhookPolicyOfProjectParamsWithTimeout ¶
func NewGetWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *GetWebhookPolicyOfProjectParams
NewGetWebhookPolicyOfProjectParamsWithTimeout creates a new GetWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetWebhookPolicyOfProjectParams) SetContext ¶
func (o *GetWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) SetHTTPClient ¶
func (o *GetWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) SetProjectNameOrID ¶
func (o *GetWebhookPolicyOfProjectParams) SetProjectNameOrID(projectNameOrID string)
SetProjectNameOrID adds the projectNameOrId to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) SetTimeout ¶
func (o *GetWebhookPolicyOfProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) SetWebhookPolicyID ¶
func (o *GetWebhookPolicyOfProjectParams) SetWebhookPolicyID(webhookPolicyID int64)
SetWebhookPolicyID adds the webhookPolicyId to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) SetXIsResourceName ¶
func (o *GetWebhookPolicyOfProjectParams) SetXIsResourceName(xIsResourceName *bool)
SetXIsResourceName adds the xIsResourceName to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) SetXRequestID ¶
func (o *GetWebhookPolicyOfProjectParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) WithContext ¶
func (o *GetWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *GetWebhookPolicyOfProjectParams
WithContext adds the context to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) WithHTTPClient ¶
func (o *GetWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *GetWebhookPolicyOfProjectParams
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 ¶
func (o *GetWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *GetWebhookPolicyOfProjectParams
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 ¶
func (o *GetWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *GetWebhookPolicyOfProjectParams
WithXRequestID adds the xRequestID to the get webhook policy of project params
func (*GetWebhookPolicyOfProjectParams) WriteToRequest ¶
func (o *GetWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
GetWebhookPolicyOfProjectUnauthorized handles this case with default header values.
Unauthorized
func NewGetWebhookPolicyOfProjectUnauthorized ¶
func NewGetWebhookPolicyOfProjectUnauthorized() *GetWebhookPolicyOfProjectUnauthorized
NewGetWebhookPolicyOfProjectUnauthorized creates a GetWebhookPolicyOfProjectUnauthorized with default headers values
func (*GetWebhookPolicyOfProjectUnauthorized) Error ¶
func (o *GetWebhookPolicyOfProjectUnauthorized) Error() string
func (*GetWebhookPolicyOfProjectUnauthorized) GetPayload ¶
func (o *GetWebhookPolicyOfProjectUnauthorized) GetPayload() *model.Errors
type LastTriggerBadRequest ¶
type LastTriggerBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
LastTriggerBadRequest handles this case with default header values.
Bad request
func NewLastTriggerBadRequest ¶
func NewLastTriggerBadRequest() *LastTriggerBadRequest
NewLastTriggerBadRequest creates a LastTriggerBadRequest with default headers values
func (*LastTriggerBadRequest) Error ¶
func (o *LastTriggerBadRequest) Error() string
func (*LastTriggerBadRequest) GetPayload ¶
func (o *LastTriggerBadRequest) GetPayload() *model.Errors
type LastTriggerForbidden ¶
type LastTriggerForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
LastTriggerForbidden handles this case with default header values.
Forbidden
func NewLastTriggerForbidden ¶
func NewLastTriggerForbidden() *LastTriggerForbidden
NewLastTriggerForbidden creates a LastTriggerForbidden with default headers values
func (*LastTriggerForbidden) Error ¶
func (o *LastTriggerForbidden) Error() string
func (*LastTriggerForbidden) GetPayload ¶
func (o *LastTriggerForbidden) GetPayload() *model.Errors
type LastTriggerInternalServerError ¶
type LastTriggerInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
LastTriggerInternalServerError handles this case with default header values.
Internal server error
func NewLastTriggerInternalServerError ¶
func NewLastTriggerInternalServerError() *LastTriggerInternalServerError
NewLastTriggerInternalServerError creates a LastTriggerInternalServerError with default headers values
func (*LastTriggerInternalServerError) Error ¶
func (o *LastTriggerInternalServerError) Error() string
func (*LastTriggerInternalServerError) GetPayload ¶
func (o *LastTriggerInternalServerError) GetPayload() *model.Errors
type LastTriggerOK ¶
type LastTriggerOK struct {
Payload []*model.WebhookLastTrigger
}
LastTriggerOK handles this case with default header values.
Test webhook connection successfully.
func NewLastTriggerOK ¶
func NewLastTriggerOK() *LastTriggerOK
NewLastTriggerOK creates a LastTriggerOK with default headers values
func (*LastTriggerOK) Error ¶
func (o *LastTriggerOK) Error() string
func (*LastTriggerOK) GetPayload ¶
func (o *LastTriggerOK) GetPayload() []*model.WebhookLastTrigger
type LastTriggerParams ¶
type LastTriggerParams struct { /*XIsResourceName The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. */ XIsResourceName *bool /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LastTriggerParams contains all the parameters to send to the API endpoint for the last trigger operation typically these are written to a http.Request
func NewLastTriggerParams ¶
func NewLastTriggerParams() *LastTriggerParams
NewLastTriggerParams creates a new LastTriggerParams object with the default values initialized.
func NewLastTriggerParamsWithContext ¶
func NewLastTriggerParamsWithContext(ctx context.Context) *LastTriggerParams
NewLastTriggerParamsWithContext creates a new LastTriggerParams object with the default values initialized, and the ability to set a context for a request
func NewLastTriggerParamsWithHTTPClient ¶
func NewLastTriggerParamsWithHTTPClient(client *http.Client) *LastTriggerParams
NewLastTriggerParamsWithHTTPClient creates a new LastTriggerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewLastTriggerParamsWithTimeout ¶
func NewLastTriggerParamsWithTimeout(timeout time.Duration) *LastTriggerParams
NewLastTriggerParamsWithTimeout creates a new LastTriggerParams object with the default values initialized, and the ability to set a timeout on a request
func (*LastTriggerParams) SetContext ¶
func (o *LastTriggerParams) SetContext(ctx context.Context)
SetContext adds the context to the last trigger params
func (*LastTriggerParams) SetHTTPClient ¶
func (o *LastTriggerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the last trigger params
func (*LastTriggerParams) SetProjectNameOrID ¶
func (o *LastTriggerParams) SetProjectNameOrID(projectNameOrID string)
SetProjectNameOrID adds the projectNameOrId to the last trigger params
func (*LastTriggerParams) SetTimeout ¶
func (o *LastTriggerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the last trigger params
func (*LastTriggerParams) SetXIsResourceName ¶
func (o *LastTriggerParams) SetXIsResourceName(xIsResourceName *bool)
SetXIsResourceName adds the xIsResourceName to the last trigger params
func (*LastTriggerParams) SetXRequestID ¶
func (o *LastTriggerParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the last trigger params
func (*LastTriggerParams) WithContext ¶
func (o *LastTriggerParams) WithContext(ctx context.Context) *LastTriggerParams
WithContext adds the context to the last trigger params
func (*LastTriggerParams) WithHTTPClient ¶
func (o *LastTriggerParams) WithHTTPClient(client *http.Client) *LastTriggerParams
WithHTTPClient adds the HTTPClient to the last trigger params
func (*LastTriggerParams) WithProjectNameOrID ¶
func (o *LastTriggerParams) WithProjectNameOrID(projectNameOrID string) *LastTriggerParams
WithProjectNameOrID adds the projectNameOrID to the last trigger params
func (*LastTriggerParams) WithTimeout ¶
func (o *LastTriggerParams) WithTimeout(timeout time.Duration) *LastTriggerParams
WithTimeout adds the timeout to the last trigger params
func (*LastTriggerParams) WithXIsResourceName ¶
func (o *LastTriggerParams) WithXIsResourceName(xIsResourceName *bool) *LastTriggerParams
WithXIsResourceName adds the xIsResourceName to the last trigger params
func (*LastTriggerParams) WithXRequestID ¶
func (o *LastTriggerParams) WithXRequestID(xRequestID *string) *LastTriggerParams
WithXRequestID adds the xRequestID to the last trigger params
func (*LastTriggerParams) WriteToRequest ¶
func (o *LastTriggerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LastTriggerReader ¶
type LastTriggerReader struct {
// contains filtered or unexported fields
}
LastTriggerReader is a Reader for the LastTrigger structure.
func (*LastTriggerReader) ReadResponse ¶
func (o *LastTriggerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LastTriggerUnauthorized ¶
type LastTriggerUnauthorized struct { string }XRequestID
LastTriggerUnauthorized handles this case with default header values.
Unauthorized
func NewLastTriggerUnauthorized ¶
func NewLastTriggerUnauthorized() *LastTriggerUnauthorized
NewLastTriggerUnauthorized creates a LastTriggerUnauthorized with default headers values
func (*LastTriggerUnauthorized) Error ¶
func (o *LastTriggerUnauthorized) Error() string
func (*LastTriggerUnauthorized) GetPayload ¶
func (o *LastTriggerUnauthorized) GetPayload() *model.Errors
type ListWebhookPoliciesOfProjectBadRequest ¶
type ListWebhookPoliciesOfProjectBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListWebhookPoliciesOfProjectBadRequest handles this case with default header values.
Bad request
func NewListWebhookPoliciesOfProjectBadRequest ¶
func NewListWebhookPoliciesOfProjectBadRequest() *ListWebhookPoliciesOfProjectBadRequest
NewListWebhookPoliciesOfProjectBadRequest creates a ListWebhookPoliciesOfProjectBadRequest with default headers values
func (*ListWebhookPoliciesOfProjectBadRequest) Error ¶
func (o *ListWebhookPoliciesOfProjectBadRequest) Error() string
func (*ListWebhookPoliciesOfProjectBadRequest) GetPayload ¶
func (o *ListWebhookPoliciesOfProjectBadRequest) GetPayload() *model.Errors
type ListWebhookPoliciesOfProjectForbidden ¶
type ListWebhookPoliciesOfProjectForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListWebhookPoliciesOfProjectForbidden handles this case with default header values.
Forbidden
func NewListWebhookPoliciesOfProjectForbidden ¶
func NewListWebhookPoliciesOfProjectForbidden() *ListWebhookPoliciesOfProjectForbidden
NewListWebhookPoliciesOfProjectForbidden creates a ListWebhookPoliciesOfProjectForbidden with default headers values
func (*ListWebhookPoliciesOfProjectForbidden) Error ¶
func (o *ListWebhookPoliciesOfProjectForbidden) Error() string
func (*ListWebhookPoliciesOfProjectForbidden) GetPayload ¶
func (o *ListWebhookPoliciesOfProjectForbidden) GetPayload() *model.Errors
type ListWebhookPoliciesOfProjectInternalServerError ¶
type ListWebhookPoliciesOfProjectInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ListWebhookPoliciesOfProjectInternalServerError handles this case with default header values.
Internal server error
func NewListWebhookPoliciesOfProjectInternalServerError ¶
func NewListWebhookPoliciesOfProjectInternalServerError() *ListWebhookPoliciesOfProjectInternalServerError
NewListWebhookPoliciesOfProjectInternalServerError creates a ListWebhookPoliciesOfProjectInternalServerError with default headers values
func (*ListWebhookPoliciesOfProjectInternalServerError) Error ¶
func (o *ListWebhookPoliciesOfProjectInternalServerError) Error() string
func (*ListWebhookPoliciesOfProjectInternalServerError) GetPayload ¶
func (o *ListWebhookPoliciesOfProjectInternalServerError) GetPayload() *model.Errors
type ListWebhookPoliciesOfProjectOK ¶
type ListWebhookPoliciesOfProjectOK struct { /*Link refers to the previous page and next page */ Link string /*The total count of webhook policies. */ XTotalCount int64 Payload []*model.WebhookPolicy }
ListWebhookPoliciesOfProjectOK handles this case with default header values.
Success
func NewListWebhookPoliciesOfProjectOK ¶
func NewListWebhookPoliciesOfProjectOK() *ListWebhookPoliciesOfProjectOK
NewListWebhookPoliciesOfProjectOK creates a ListWebhookPoliciesOfProjectOK with default headers values
func (*ListWebhookPoliciesOfProjectOK) Error ¶
func (o *ListWebhookPoliciesOfProjectOK) Error() string
func (*ListWebhookPoliciesOfProjectOK) GetPayload ¶
func (o *ListWebhookPoliciesOfProjectOK) GetPayload() []*model.WebhookPolicy
type ListWebhookPoliciesOfProjectParams ¶
type ListWebhookPoliciesOfProjectParams struct { /*XIsResourceName The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name. */ XIsResourceName *bool /*XRequestID An unique ID for the request */ XRequestID *string /*Page The page number */ Page *int64 /*PageSize The size of per page */ PageSize *int64 /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*Q Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] */ Q *string /*Sort Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2" */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListWebhookPoliciesOfProjectParams contains all the parameters to send to the API endpoint for the list webhook policies of project operation typically these are written to a http.Request
func NewListWebhookPoliciesOfProjectParams ¶
func NewListWebhookPoliciesOfProjectParams() *ListWebhookPoliciesOfProjectParams
NewListWebhookPoliciesOfProjectParams creates a new ListWebhookPoliciesOfProjectParams object with the default values initialized.
func NewListWebhookPoliciesOfProjectParamsWithContext ¶
func NewListWebhookPoliciesOfProjectParamsWithContext(ctx context.Context) *ListWebhookPoliciesOfProjectParams
NewListWebhookPoliciesOfProjectParamsWithContext creates a new ListWebhookPoliciesOfProjectParams object with the default values initialized, and the ability to set a context for a request
func NewListWebhookPoliciesOfProjectParamsWithHTTPClient ¶
func NewListWebhookPoliciesOfProjectParamsWithHTTPClient(client *http.Client) *ListWebhookPoliciesOfProjectParams
NewListWebhookPoliciesOfProjectParamsWithHTTPClient creates a new ListWebhookPoliciesOfProjectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListWebhookPoliciesOfProjectParamsWithTimeout ¶
func NewListWebhookPoliciesOfProjectParamsWithTimeout(timeout time.Duration) *ListWebhookPoliciesOfProjectParams
NewListWebhookPoliciesOfProjectParamsWithTimeout creates a new ListWebhookPoliciesOfProjectParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListWebhookPoliciesOfProjectParams) SetContext ¶
func (o *ListWebhookPoliciesOfProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) SetHTTPClient ¶
func (o *ListWebhookPoliciesOfProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) SetPage ¶
func (o *ListWebhookPoliciesOfProjectParams) SetPage(page *int64)
SetPage adds the page to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) SetPageSize ¶
func (o *ListWebhookPoliciesOfProjectParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) SetProjectNameOrID ¶
func (o *ListWebhookPoliciesOfProjectParams) SetProjectNameOrID(projectNameOrID string)
SetProjectNameOrID adds the projectNameOrId to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) SetQ ¶
func (o *ListWebhookPoliciesOfProjectParams) SetQ(q *string)
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 ¶
func (o *ListWebhookPoliciesOfProjectParams) WithContext(ctx context.Context) *ListWebhookPoliciesOfProjectParams
WithContext adds the context to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) WithHTTPClient ¶
func (o *ListWebhookPoliciesOfProjectParams) WithHTTPClient(client *http.Client) *ListWebhookPoliciesOfProjectParams
WithHTTPClient adds the HTTPClient to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) WithPage ¶
func (o *ListWebhookPoliciesOfProjectParams) WithPage(page *int64) *ListWebhookPoliciesOfProjectParams
WithPage adds the page to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) WithPageSize ¶
func (o *ListWebhookPoliciesOfProjectParams) WithPageSize(pageSize *int64) *ListWebhookPoliciesOfProjectParams
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 ¶
func (o *ListWebhookPoliciesOfProjectParams) WithQ(q *string) *ListWebhookPoliciesOfProjectParams
WithQ adds the q to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) WithSort ¶
func (o *ListWebhookPoliciesOfProjectParams) WithSort(sort *string) *ListWebhookPoliciesOfProjectParams
WithSort adds the sort to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) WithTimeout ¶
func (o *ListWebhookPoliciesOfProjectParams) WithTimeout(timeout time.Duration) *ListWebhookPoliciesOfProjectParams
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 ¶
func (o *ListWebhookPoliciesOfProjectParams) WithXRequestID(xRequestID *string) *ListWebhookPoliciesOfProjectParams
WithXRequestID adds the xRequestID to the list webhook policies of project params
func (*ListWebhookPoliciesOfProjectParams) WriteToRequest ¶
func (o *ListWebhookPoliciesOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
ListWebhookPoliciesOfProjectUnauthorized handles this case with default header values.
Unauthorized
func NewListWebhookPoliciesOfProjectUnauthorized ¶
func NewListWebhookPoliciesOfProjectUnauthorized() *ListWebhookPoliciesOfProjectUnauthorized
NewListWebhookPoliciesOfProjectUnauthorized creates a ListWebhookPoliciesOfProjectUnauthorized with default headers values
func (*ListWebhookPoliciesOfProjectUnauthorized) Error ¶
func (o *ListWebhookPoliciesOfProjectUnauthorized) Error() string
func (*ListWebhookPoliciesOfProjectUnauthorized) GetPayload ¶
func (o *ListWebhookPoliciesOfProjectUnauthorized) GetPayload() *model.Errors
type UpdateWebhookPolicyOfProjectBadRequest ¶
type UpdateWebhookPolicyOfProjectBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateWebhookPolicyOfProjectBadRequest handles this case with default header values.
Bad request
func NewUpdateWebhookPolicyOfProjectBadRequest ¶
func NewUpdateWebhookPolicyOfProjectBadRequest() *UpdateWebhookPolicyOfProjectBadRequest
NewUpdateWebhookPolicyOfProjectBadRequest creates a UpdateWebhookPolicyOfProjectBadRequest with default headers values
func (*UpdateWebhookPolicyOfProjectBadRequest) Error ¶
func (o *UpdateWebhookPolicyOfProjectBadRequest) Error() string
func (*UpdateWebhookPolicyOfProjectBadRequest) GetPayload ¶
func (o *UpdateWebhookPolicyOfProjectBadRequest) GetPayload() *model.Errors
type UpdateWebhookPolicyOfProjectForbidden ¶
type UpdateWebhookPolicyOfProjectForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateWebhookPolicyOfProjectForbidden handles this case with default header values.
Forbidden
func NewUpdateWebhookPolicyOfProjectForbidden ¶
func NewUpdateWebhookPolicyOfProjectForbidden() *UpdateWebhookPolicyOfProjectForbidden
NewUpdateWebhookPolicyOfProjectForbidden creates a UpdateWebhookPolicyOfProjectForbidden with default headers values
func (*UpdateWebhookPolicyOfProjectForbidden) Error ¶
func (o *UpdateWebhookPolicyOfProjectForbidden) Error() string
func (*UpdateWebhookPolicyOfProjectForbidden) GetPayload ¶
func (o *UpdateWebhookPolicyOfProjectForbidden) GetPayload() *model.Errors
type UpdateWebhookPolicyOfProjectInternalServerError ¶
type UpdateWebhookPolicyOfProjectInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateWebhookPolicyOfProjectInternalServerError handles this case with default header values.
Internal server error
func NewUpdateWebhookPolicyOfProjectInternalServerError ¶
func NewUpdateWebhookPolicyOfProjectInternalServerError() *UpdateWebhookPolicyOfProjectInternalServerError
NewUpdateWebhookPolicyOfProjectInternalServerError creates a UpdateWebhookPolicyOfProjectInternalServerError with default headers values
func (*UpdateWebhookPolicyOfProjectInternalServerError) Error ¶
func (o *UpdateWebhookPolicyOfProjectInternalServerError) Error() string
func (*UpdateWebhookPolicyOfProjectInternalServerError) GetPayload ¶
func (o *UpdateWebhookPolicyOfProjectInternalServerError) GetPayload() *model.Errors
type UpdateWebhookPolicyOfProjectNotFound ¶
type UpdateWebhookPolicyOfProjectNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
UpdateWebhookPolicyOfProjectNotFound handles this case with default header values.
Not found
func NewUpdateWebhookPolicyOfProjectNotFound ¶
func NewUpdateWebhookPolicyOfProjectNotFound() *UpdateWebhookPolicyOfProjectNotFound
NewUpdateWebhookPolicyOfProjectNotFound creates a UpdateWebhookPolicyOfProjectNotFound with default headers values
func (*UpdateWebhookPolicyOfProjectNotFound) Error ¶
func (o *UpdateWebhookPolicyOfProjectNotFound) Error() string
func (*UpdateWebhookPolicyOfProjectNotFound) GetPayload ¶
func (o *UpdateWebhookPolicyOfProjectNotFound) GetPayload() *model.Errors
type UpdateWebhookPolicyOfProjectOK ¶
type UpdateWebhookPolicyOfProjectOK struct { /*The ID of the corresponding request for the response */ XRequestID string }
UpdateWebhookPolicyOfProjectOK handles this case with default header values.
Success
func NewUpdateWebhookPolicyOfProjectOK ¶
func NewUpdateWebhookPolicyOfProjectOK() *UpdateWebhookPolicyOfProjectOK
NewUpdateWebhookPolicyOfProjectOK creates a UpdateWebhookPolicyOfProjectOK with default headers values
func (*UpdateWebhookPolicyOfProjectOK) Error ¶
func (o *UpdateWebhookPolicyOfProjectOK) Error() 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 /*XRequestID An unique ID for the request */ XRequestID *string /*Policy All properties needed except "id", "project_id", "creation_time", "update_time". */ Policy *model.WebhookPolicy /*ProjectNameOrID The name or id of the project */ ProjectNameOrID string /*WebhookPolicyID The ID of the webhook policy */ WebhookPolicyID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateWebhookPolicyOfProjectParams contains all the parameters to send to the API endpoint for the update webhook policy of project operation typically these are written to a http.Request
func NewUpdateWebhookPolicyOfProjectParams ¶
func NewUpdateWebhookPolicyOfProjectParams() *UpdateWebhookPolicyOfProjectParams
NewUpdateWebhookPolicyOfProjectParams creates a new UpdateWebhookPolicyOfProjectParams object with the default values initialized.
func NewUpdateWebhookPolicyOfProjectParamsWithContext ¶
func NewUpdateWebhookPolicyOfProjectParamsWithContext(ctx context.Context) *UpdateWebhookPolicyOfProjectParams
NewUpdateWebhookPolicyOfProjectParamsWithContext creates a new UpdateWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateWebhookPolicyOfProjectParamsWithHTTPClient ¶
func NewUpdateWebhookPolicyOfProjectParamsWithHTTPClient(client *http.Client) *UpdateWebhookPolicyOfProjectParams
NewUpdateWebhookPolicyOfProjectParamsWithHTTPClient creates a new UpdateWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateWebhookPolicyOfProjectParamsWithTimeout ¶
func NewUpdateWebhookPolicyOfProjectParamsWithTimeout(timeout time.Duration) *UpdateWebhookPolicyOfProjectParams
NewUpdateWebhookPolicyOfProjectParamsWithTimeout creates a new UpdateWebhookPolicyOfProjectParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateWebhookPolicyOfProjectParams) SetContext ¶
func (o *UpdateWebhookPolicyOfProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the update webhook policy of project params
func (*UpdateWebhookPolicyOfProjectParams) SetHTTPClient ¶
func (o *UpdateWebhookPolicyOfProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update webhook policy of project params
func (*UpdateWebhookPolicyOfProjectParams) SetPolicy ¶
func (o *UpdateWebhookPolicyOfProjectParams) SetPolicy(policy *model.WebhookPolicy)
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 ¶
func (o *UpdateWebhookPolicyOfProjectParams) WithContext(ctx context.Context) *UpdateWebhookPolicyOfProjectParams
WithContext adds the context to the update webhook policy of project params
func (*UpdateWebhookPolicyOfProjectParams) WithHTTPClient ¶
func (o *UpdateWebhookPolicyOfProjectParams) WithHTTPClient(client *http.Client) *UpdateWebhookPolicyOfProjectParams
WithHTTPClient adds the HTTPClient to the update webhook policy of project params
func (*UpdateWebhookPolicyOfProjectParams) WithPolicy ¶
func (o *UpdateWebhookPolicyOfProjectParams) WithPolicy(policy *model.WebhookPolicy) *UpdateWebhookPolicyOfProjectParams
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 ¶
func (o *UpdateWebhookPolicyOfProjectParams) WithTimeout(timeout time.Duration) *UpdateWebhookPolicyOfProjectParams
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 ¶
func (o *UpdateWebhookPolicyOfProjectParams) WithXRequestID(xRequestID *string) *UpdateWebhookPolicyOfProjectParams
WithXRequestID adds the xRequestID to the update webhook policy of project params
func (*UpdateWebhookPolicyOfProjectParams) WriteToRequest ¶
func (o *UpdateWebhookPolicyOfProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
UpdateWebhookPolicyOfProjectUnauthorized handles this case with default header values.
Unauthorized
func NewUpdateWebhookPolicyOfProjectUnauthorized ¶
func NewUpdateWebhookPolicyOfProjectUnauthorized() *UpdateWebhookPolicyOfProjectUnauthorized
NewUpdateWebhookPolicyOfProjectUnauthorized creates a UpdateWebhookPolicyOfProjectUnauthorized with default headers values
func (*UpdateWebhookPolicyOfProjectUnauthorized) Error ¶
func (o *UpdateWebhookPolicyOfProjectUnauthorized) Error() string
func (*UpdateWebhookPolicyOfProjectUnauthorized) GetPayload ¶
func (o *UpdateWebhookPolicyOfProjectUnauthorized) GetPayload() *model.Errors
Source Files ¶
- create_webhook_policy_of_project_parameters.go
- create_webhook_policy_of_project_responses.go
- delete_webhook_policy_of_project_parameters.go
- delete_webhook_policy_of_project_responses.go
- get_supported_event_types_parameters.go
- get_supported_event_types_responses.go
- get_webhook_policy_of_project_parameters.go
- get_webhook_policy_of_project_responses.go
- last_trigger_parameters.go
- last_trigger_responses.go
- list_webhook_policies_of_project_parameters.go
- list_webhook_policies_of_project_responses.go
- update_webhook_policy_of_project_parameters.go
- update_webhook_policy_of_project_responses.go
- webhook_client.go