webhookjob

package
v0.0.0-...-8db688c Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   ListWebhookJobs lists project webhook jobs

	   This endpoint returns webhook jobs of a project.
	*/
	ListWebhookJobs(ctx context.Context, params *ListWebhookJobsParams) (*ListWebhookJobsOK, error)
}

API is the interface of the webhookjob client

type Client

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

Client for webhookjob API

func New

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

New creates a new webhookjob API client.

func (*Client) ListWebhookJobs

func (a *Client) ListWebhookJobs(ctx context.Context, params *ListWebhookJobsParams) (*ListWebhookJobsOK, error)

ListWebhookJobs lists project webhook jobs

This endpoint returns webhook jobs of a project.

type ListWebhookJobsBadRequest

type ListWebhookJobsBadRequest struct {

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

	Payload *models.Errors
}

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

Bad request

func NewListWebhookJobsBadRequest

func NewListWebhookJobsBadRequest() *ListWebhookJobsBadRequest

NewListWebhookJobsBadRequest creates a ListWebhookJobsBadRequest with default headers values

func (*ListWebhookJobsBadRequest) Code

func (o *ListWebhookJobsBadRequest) Code() int

Code gets the status code for the list webhook jobs bad request response

func (*ListWebhookJobsBadRequest) Error

func (o *ListWebhookJobsBadRequest) Error() string

func (*ListWebhookJobsBadRequest) GetPayload

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

func (*ListWebhookJobsBadRequest) IsClientError

func (o *ListWebhookJobsBadRequest) IsClientError() bool

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

func (*ListWebhookJobsBadRequest) IsCode

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

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

func (*ListWebhookJobsBadRequest) IsRedirect

func (o *ListWebhookJobsBadRequest) IsRedirect() bool

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

func (*ListWebhookJobsBadRequest) IsServerError

func (o *ListWebhookJobsBadRequest) IsServerError() bool

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

func (*ListWebhookJobsBadRequest) IsSuccess

func (o *ListWebhookJobsBadRequest) IsSuccess() bool

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

func (*ListWebhookJobsBadRequest) String

func (o *ListWebhookJobsBadRequest) String() string

type ListWebhookJobsForbidden

type ListWebhookJobsForbidden struct {

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

	Payload *models.Errors
}

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

Forbidden

func NewListWebhookJobsForbidden

func NewListWebhookJobsForbidden() *ListWebhookJobsForbidden

NewListWebhookJobsForbidden creates a ListWebhookJobsForbidden with default headers values

func (*ListWebhookJobsForbidden) Code

func (o *ListWebhookJobsForbidden) Code() int

Code gets the status code for the list webhook jobs forbidden response

func (*ListWebhookJobsForbidden) Error

func (o *ListWebhookJobsForbidden) Error() string

func (*ListWebhookJobsForbidden) GetPayload

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

func (*ListWebhookJobsForbidden) IsClientError

func (o *ListWebhookJobsForbidden) IsClientError() bool

IsClientError returns true when this list webhook jobs forbidden response has a 4xx status code

func (*ListWebhookJobsForbidden) IsCode

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

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

func (*ListWebhookJobsForbidden) IsRedirect

func (o *ListWebhookJobsForbidden) IsRedirect() bool

IsRedirect returns true when this list webhook jobs forbidden response has a 3xx status code

func (*ListWebhookJobsForbidden) IsServerError

func (o *ListWebhookJobsForbidden) IsServerError() bool

IsServerError returns true when this list webhook jobs forbidden response has a 5xx status code

func (*ListWebhookJobsForbidden) IsSuccess

func (o *ListWebhookJobsForbidden) IsSuccess() bool

IsSuccess returns true when this list webhook jobs forbidden response has a 2xx status code

func (*ListWebhookJobsForbidden) String

func (o *ListWebhookJobsForbidden) String() string

type ListWebhookJobsInternalServerError

type ListWebhookJobsInternalServerError struct {

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

	Payload *models.Errors
}

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

Internal server error

func NewListWebhookJobsInternalServerError

func NewListWebhookJobsInternalServerError() *ListWebhookJobsInternalServerError

NewListWebhookJobsInternalServerError creates a ListWebhookJobsInternalServerError with default headers values

func (*ListWebhookJobsInternalServerError) Code

Code gets the status code for the list webhook jobs internal server error response

func (*ListWebhookJobsInternalServerError) Error

func (*ListWebhookJobsInternalServerError) GetPayload

func (*ListWebhookJobsInternalServerError) IsClientError

func (o *ListWebhookJobsInternalServerError) IsClientError() bool

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

func (*ListWebhookJobsInternalServerError) IsCode

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

func (*ListWebhookJobsInternalServerError) IsRedirect

func (o *ListWebhookJobsInternalServerError) IsRedirect() bool

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

func (*ListWebhookJobsInternalServerError) IsServerError

func (o *ListWebhookJobsInternalServerError) IsServerError() bool

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

func (*ListWebhookJobsInternalServerError) IsSuccess

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

func (*ListWebhookJobsInternalServerError) String

type ListWebhookJobsOK

type ListWebhookJobsOK struct {

	/* Link to previous page and next page
	 */
	Link string

	/* The total count of available items
	 */
	XTotalCount int64

	Payload []*models.WebhookJob
}

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

List project webhook jobs successfully.

func NewListWebhookJobsOK

func NewListWebhookJobsOK() *ListWebhookJobsOK

NewListWebhookJobsOK creates a ListWebhookJobsOK with default headers values

func (*ListWebhookJobsOK) Code

func (o *ListWebhookJobsOK) Code() int

Code gets the status code for the list webhook jobs o k response

func (*ListWebhookJobsOK) Error

func (o *ListWebhookJobsOK) Error() string

func (*ListWebhookJobsOK) GetPayload

func (o *ListWebhookJobsOK) GetPayload() []*models.WebhookJob

func (*ListWebhookJobsOK) IsClientError

func (o *ListWebhookJobsOK) IsClientError() bool

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

func (*ListWebhookJobsOK) IsCode

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

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

func (*ListWebhookJobsOK) IsRedirect

func (o *ListWebhookJobsOK) IsRedirect() bool

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

func (*ListWebhookJobsOK) IsServerError

func (o *ListWebhookJobsOK) IsServerError() bool

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

func (*ListWebhookJobsOK) IsSuccess

func (o *ListWebhookJobsOK) IsSuccess() bool

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

func (*ListWebhookJobsOK) String

func (o *ListWebhookJobsOK) String() string

type ListWebhookJobsParams

type ListWebhookJobsParams struct {

	/* XIsResourceName.

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

	/* XRequestID.

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

	/* Page.

	   The page number

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

	/* PageSize.

	   The size of per page

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

	/* PolicyID.

	   The policy ID.

	   Format: int64
	*/
	PolicyID int64 `js:"policyID"`

	/* ProjectNameOrID.

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

	/* Q.

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

	/* Sort.

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

	/* Status.

	   The status of webhook job.
	*/
	Status []string `js:"status"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

ListWebhookJobsParams contains all the parameters to send to the API endpoint

for the list webhook jobs operation.

Typically these are written to a http.Request.

func NewListWebhookJobsParams

func NewListWebhookJobsParams() *ListWebhookJobsParams

NewListWebhookJobsParams creates a new ListWebhookJobsParams object, with the default timeout for this client.

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

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

func NewListWebhookJobsParamsWithContext

func NewListWebhookJobsParamsWithContext(ctx context.Context) *ListWebhookJobsParams

NewListWebhookJobsParamsWithContext creates a new ListWebhookJobsParams object with the ability to set a context for a request.

func NewListWebhookJobsParamsWithHTTPClient

func NewListWebhookJobsParamsWithHTTPClient(client *http.Client) *ListWebhookJobsParams

NewListWebhookJobsParamsWithHTTPClient creates a new ListWebhookJobsParams object with the ability to set a custom HTTPClient for a request.

func NewListWebhookJobsParamsWithTimeout

func NewListWebhookJobsParamsWithTimeout(timeout time.Duration) *ListWebhookJobsParams

NewListWebhookJobsParamsWithTimeout creates a new ListWebhookJobsParams object with the ability to set a timeout on a request.

func (*ListWebhookJobsParams) SetContext

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

SetContext adds the context to the list webhook jobs params

func (*ListWebhookJobsParams) SetDefaults

func (o *ListWebhookJobsParams) SetDefaults()

SetDefaults hydrates default values in the list webhook jobs params (not the query body).

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

func (*ListWebhookJobsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list webhook jobs params

func (*ListWebhookJobsParams) SetPage

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

SetPage adds the page to the list webhook jobs params

func (*ListWebhookJobsParams) SetPageSize

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

SetPageSize adds the pageSize to the list webhook jobs params

func (*ListWebhookJobsParams) SetPolicyID

func (o *ListWebhookJobsParams) SetPolicyID(policyID int64)

SetPolicyID adds the policyId to the list webhook jobs params

func (*ListWebhookJobsParams) SetProjectNameOrID

func (o *ListWebhookJobsParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the list webhook jobs params

func (*ListWebhookJobsParams) SetQ

func (o *ListWebhookJobsParams) SetQ(q *string)

SetQ adds the q to the list webhook jobs params

func (*ListWebhookJobsParams) SetSort

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

SetSort adds the sort to the list webhook jobs params

func (*ListWebhookJobsParams) SetStatus

func (o *ListWebhookJobsParams) SetStatus(status []string)

SetStatus adds the status to the list webhook jobs params

func (*ListWebhookJobsParams) SetTimeout

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

SetTimeout adds the timeout to the list webhook jobs params

func (*ListWebhookJobsParams) SetXIsResourceName

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

SetXIsResourceName adds the xIsResourceName to the list webhook jobs params

func (*ListWebhookJobsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the list webhook jobs params

func (*ListWebhookJobsParams) WithContext

WithContext adds the context to the list webhook jobs params

func (*ListWebhookJobsParams) WithDefaults

func (o *ListWebhookJobsParams) WithDefaults() *ListWebhookJobsParams

WithDefaults hydrates default values in the list webhook jobs params (not the query body).

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

func (*ListWebhookJobsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list webhook jobs params

func (*ListWebhookJobsParams) WithPage

WithPage adds the page to the list webhook jobs params

func (*ListWebhookJobsParams) WithPageSize

func (o *ListWebhookJobsParams) WithPageSize(pageSize *int64) *ListWebhookJobsParams

WithPageSize adds the pageSize to the list webhook jobs params

func (*ListWebhookJobsParams) WithPolicyID

func (o *ListWebhookJobsParams) WithPolicyID(policyID int64) *ListWebhookJobsParams

WithPolicyID adds the policyID to the list webhook jobs params

func (*ListWebhookJobsParams) WithProjectNameOrID

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

WithProjectNameOrID adds the projectNameOrID to the list webhook jobs params

func (*ListWebhookJobsParams) WithQ

WithQ adds the q to the list webhook jobs params

func (*ListWebhookJobsParams) WithSort

WithSort adds the sort to the list webhook jobs params

func (*ListWebhookJobsParams) WithStatus

func (o *ListWebhookJobsParams) WithStatus(status []string) *ListWebhookJobsParams

WithStatus adds the status to the list webhook jobs params

func (*ListWebhookJobsParams) WithTimeout

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

WithTimeout adds the timeout to the list webhook jobs params

func (*ListWebhookJobsParams) WithXIsResourceName

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

WithXIsResourceName adds the xIsResourceName to the list webhook jobs params

func (*ListWebhookJobsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the list webhook jobs params

func (*ListWebhookJobsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListWebhookJobsReader

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

ListWebhookJobsReader is a Reader for the ListWebhookJobs structure.

func (*ListWebhookJobsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListWebhookJobsUnauthorized

type ListWebhookJobsUnauthorized struct {

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

	Payload *models.Errors
}

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

Unauthorized

func NewListWebhookJobsUnauthorized

func NewListWebhookJobsUnauthorized() *ListWebhookJobsUnauthorized

NewListWebhookJobsUnauthorized creates a ListWebhookJobsUnauthorized with default headers values

func (*ListWebhookJobsUnauthorized) Code

func (o *ListWebhookJobsUnauthorized) Code() int

Code gets the status code for the list webhook jobs unauthorized response

func (*ListWebhookJobsUnauthorized) Error

func (*ListWebhookJobsUnauthorized) GetPayload

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

func (*ListWebhookJobsUnauthorized) IsClientError

func (o *ListWebhookJobsUnauthorized) IsClientError() bool

IsClientError returns true when this list webhook jobs unauthorized response has a 4xx status code

func (*ListWebhookJobsUnauthorized) IsCode

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

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

func (*ListWebhookJobsUnauthorized) IsRedirect

func (o *ListWebhookJobsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list webhook jobs unauthorized response has a 3xx status code

func (*ListWebhookJobsUnauthorized) IsServerError

func (o *ListWebhookJobsUnauthorized) IsServerError() bool

IsServerError returns true when this list webhook jobs unauthorized response has a 5xx status code

func (*ListWebhookJobsUnauthorized) IsSuccess

func (o *ListWebhookJobsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list webhook jobs unauthorized response has a 2xx status code

func (*ListWebhookJobsUnauthorized) String

func (o *ListWebhookJobsUnauthorized) String() string

Jump to

Keyboard shortcuts

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