webhookjob

package
v5.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for webhookjob API

func (*Client) ListWebhookJobs

func (a *Client) ListWebhookJobs(params *ListWebhookJobsParams, authInfo runtime.ClientAuthInfoWriter) (*ListWebhookJobsOK, error)

ListWebhookJobs lists project webhook jobs

This endpoint returns webhook jobs of a project.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ListWebhookJobs(params *ListWebhookJobsParams, authInfo runtime.ClientAuthInfoWriter) (*ListWebhookJobsOK, 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 webhookjob API client.

type ListWebhookJobsBadRequest

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

	Payload *model.Errors
}

ListWebhookJobsBadRequest handles this case with default header values.

Bad request

func NewListWebhookJobsBadRequest

func NewListWebhookJobsBadRequest() *ListWebhookJobsBadRequest

NewListWebhookJobsBadRequest creates a ListWebhookJobsBadRequest with default headers values

func (*ListWebhookJobsBadRequest) Error

func (o *ListWebhookJobsBadRequest) Error() string

func (*ListWebhookJobsBadRequest) GetPayload

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

type ListWebhookJobsForbidden

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

	Payload *model.Errors
}

ListWebhookJobsForbidden handles this case with default header values.

Forbidden

func NewListWebhookJobsForbidden

func NewListWebhookJobsForbidden() *ListWebhookJobsForbidden

NewListWebhookJobsForbidden creates a ListWebhookJobsForbidden with default headers values

func (*ListWebhookJobsForbidden) Error

func (o *ListWebhookJobsForbidden) Error() string

func (*ListWebhookJobsForbidden) GetPayload

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

type ListWebhookJobsInternalServerError

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

	Payload *model.Errors
}

ListWebhookJobsInternalServerError handles this case with default header values.

Internal server error

func NewListWebhookJobsInternalServerError

func NewListWebhookJobsInternalServerError() *ListWebhookJobsInternalServerError

NewListWebhookJobsInternalServerError creates a ListWebhookJobsInternalServerError with default headers values

func (*ListWebhookJobsInternalServerError) Error

func (*ListWebhookJobsInternalServerError) GetPayload

type ListWebhookJobsOK

type ListWebhookJobsOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of available items
	 */
	XTotalCount int64

	Payload []*model.WebhookJob
}

ListWebhookJobsOK handles this case with default header values.

List project webhook jobs successfully.

func NewListWebhookJobsOK

func NewListWebhookJobsOK() *ListWebhookJobsOK

NewListWebhookJobsOK creates a ListWebhookJobsOK with default headers values

func (*ListWebhookJobsOK) Error

func (o *ListWebhookJobsOK) Error() string

func (*ListWebhookJobsOK) GetPayload

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

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
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

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

	*/
	PageSize *int64
	/*PolicyID
	  The policy ID.

	*/
	PolicyID 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
	/*Status
	  The status of webhook job.

	*/
	Status []string

	Context    context.Context
	HTTPClient *http.Client
	// 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 values initialized.

func NewListWebhookJobsParamsWithContext

func NewListWebhookJobsParamsWithContext(ctx context.Context) *ListWebhookJobsParams

NewListWebhookJobsParamsWithContext creates a new ListWebhookJobsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *model.Errors
}

ListWebhookJobsUnauthorized handles this case with default header values.

Unauthorized

func NewListWebhookJobsUnauthorized

func NewListWebhookJobsUnauthorized() *ListWebhookJobsUnauthorized

NewListWebhookJobsUnauthorized creates a ListWebhookJobsUnauthorized with default headers values

func (*ListWebhookJobsUnauthorized) Error

func (*ListWebhookJobsUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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