label

package
v5.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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 label API

func (*Client) CreateLabel

func (a *Client) CreateLabel(params *CreateLabelParams, authInfo runtime.ClientAuthInfoWriter) (*CreateLabelCreated, error)

CreateLabel posts creates a label

This endpoint let user creates a label.

func (*Client) DeleteLabel

func (a *Client) DeleteLabel(params *DeleteLabelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteLabelOK, error)

DeleteLabel deletes the label specified by ID

Delete the label specified by ID.

func (*Client) GetLabelByID

func (a *Client) GetLabelByID(params *GetLabelByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetLabelByIDOK, error)

GetLabelByID gets the label specified by ID

This endpoint let user get the label by specific ID.

func (*Client) ListLabels

func (a *Client) ListLabels(params *ListLabelsParams, authInfo runtime.ClientAuthInfoWriter) (*ListLabelsOK, error)

ListLabels lists labels according to the query strings

This endpoint let user list labels by name, scope and project_id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateLabel

func (a *Client) UpdateLabel(params *UpdateLabelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateLabelOK, error)

UpdateLabel updates the label properties

This endpoint let user update label properties.

type ClientService

type ClientService interface {
	CreateLabel(params *CreateLabelParams, authInfo runtime.ClientAuthInfoWriter) (*CreateLabelCreated, error)

	DeleteLabel(params *DeleteLabelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteLabelOK, error)

	GetLabelByID(params *GetLabelByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetLabelByIDOK, error)

	ListLabels(params *ListLabelsParams, authInfo runtime.ClientAuthInfoWriter) (*ListLabelsOK, error)

	UpdateLabel(params *UpdateLabelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateLabelOK, 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 label API client.

type CreateLabelBadRequest

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

	Payload *model.Errors
}

CreateLabelBadRequest handles this case with default header values.

Bad request

func NewCreateLabelBadRequest

func NewCreateLabelBadRequest() *CreateLabelBadRequest

NewCreateLabelBadRequest creates a CreateLabelBadRequest with default headers values

func (*CreateLabelBadRequest) Error

func (o *CreateLabelBadRequest) Error() string

func (*CreateLabelBadRequest) GetPayload

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

type CreateLabelConflict

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

	Payload *model.Errors
}

CreateLabelConflict handles this case with default header values.

Conflict

func NewCreateLabelConflict

func NewCreateLabelConflict() *CreateLabelConflict

NewCreateLabelConflict creates a CreateLabelConflict with default headers values

func (*CreateLabelConflict) Error

func (o *CreateLabelConflict) Error() string

func (*CreateLabelConflict) GetPayload

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

type CreateLabelCreated

type CreateLabelCreated struct {
	/*The URL of the created resource
	 */
	Location string
}

CreateLabelCreated handles this case with default header values.

Create successfully.

func NewCreateLabelCreated

func NewCreateLabelCreated() *CreateLabelCreated

NewCreateLabelCreated creates a CreateLabelCreated with default headers values

func (*CreateLabelCreated) Error

func (o *CreateLabelCreated) Error() string

type CreateLabelInternalServerError

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

	Payload *model.Errors
}

CreateLabelInternalServerError handles this case with default header values.

Internal server error

func NewCreateLabelInternalServerError

func NewCreateLabelInternalServerError() *CreateLabelInternalServerError

NewCreateLabelInternalServerError creates a CreateLabelInternalServerError with default headers values

func (*CreateLabelInternalServerError) Error

func (*CreateLabelInternalServerError) GetPayload

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

type CreateLabelParams

type CreateLabelParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Label
	  The json object of label.

	*/
	Label *model.Label

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

CreateLabelParams contains all the parameters to send to the API endpoint for the create label operation typically these are written to a http.Request

func NewCreateLabelParams

func NewCreateLabelParams() *CreateLabelParams

NewCreateLabelParams creates a new CreateLabelParams object with the default values initialized.

func NewCreateLabelParamsWithContext

func NewCreateLabelParamsWithContext(ctx context.Context) *CreateLabelParams

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

func NewCreateLabelParamsWithHTTPClient

func NewCreateLabelParamsWithHTTPClient(client *http.Client) *CreateLabelParams

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

func NewCreateLabelParamsWithTimeout

func NewCreateLabelParamsWithTimeout(timeout time.Duration) *CreateLabelParams

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

func (*CreateLabelParams) SetContext

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

SetContext adds the context to the create label params

func (*CreateLabelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create label params

func (*CreateLabelParams) SetLabel

func (o *CreateLabelParams) SetLabel(label *model.Label)

SetLabel adds the label to the create label params

func (*CreateLabelParams) SetTimeout

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

SetTimeout adds the timeout to the create label params

func (*CreateLabelParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the create label params

func (*CreateLabelParams) WithContext

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

WithContext adds the context to the create label params

func (*CreateLabelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create label params

func (*CreateLabelParams) WithLabel

func (o *CreateLabelParams) WithLabel(label *model.Label) *CreateLabelParams

WithLabel adds the label to the create label params

func (*CreateLabelParams) WithTimeout

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

WithTimeout adds the timeout to the create label params

func (*CreateLabelParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the create label params

func (*CreateLabelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateLabelReader

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

CreateLabelReader is a Reader for the CreateLabel structure.

func (*CreateLabelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateLabelUnauthorized

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

	Payload *model.Errors
}

CreateLabelUnauthorized handles this case with default header values.

Unauthorized

func NewCreateLabelUnauthorized

func NewCreateLabelUnauthorized() *CreateLabelUnauthorized

NewCreateLabelUnauthorized creates a CreateLabelUnauthorized with default headers values

func (*CreateLabelUnauthorized) Error

func (o *CreateLabelUnauthorized) Error() string

func (*CreateLabelUnauthorized) GetPayload

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

type CreateLabelUnsupportedMediaType

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

	Payload *model.Errors
}

CreateLabelUnsupportedMediaType handles this case with default header values.

Unsupported MediaType

func NewCreateLabelUnsupportedMediaType

func NewCreateLabelUnsupportedMediaType() *CreateLabelUnsupportedMediaType

NewCreateLabelUnsupportedMediaType creates a CreateLabelUnsupportedMediaType with default headers values

func (*CreateLabelUnsupportedMediaType) Error

func (*CreateLabelUnsupportedMediaType) GetPayload

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

type DeleteLabelBadRequest

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

	Payload *model.Errors
}

DeleteLabelBadRequest handles this case with default header values.

Bad request

func NewDeleteLabelBadRequest

func NewDeleteLabelBadRequest() *DeleteLabelBadRequest

NewDeleteLabelBadRequest creates a DeleteLabelBadRequest with default headers values

func (*DeleteLabelBadRequest) Error

func (o *DeleteLabelBadRequest) Error() string

func (*DeleteLabelBadRequest) GetPayload

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

type DeleteLabelInternalServerError

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

	Payload *model.Errors
}

DeleteLabelInternalServerError handles this case with default header values.

Internal server error

func NewDeleteLabelInternalServerError

func NewDeleteLabelInternalServerError() *DeleteLabelInternalServerError

NewDeleteLabelInternalServerError creates a DeleteLabelInternalServerError with default headers values

func (*DeleteLabelInternalServerError) Error

func (*DeleteLabelInternalServerError) GetPayload

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

type DeleteLabelNotFound

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

	Payload *model.Errors
}

DeleteLabelNotFound handles this case with default header values.

Not found

func NewDeleteLabelNotFound

func NewDeleteLabelNotFound() *DeleteLabelNotFound

NewDeleteLabelNotFound creates a DeleteLabelNotFound with default headers values

func (*DeleteLabelNotFound) Error

func (o *DeleteLabelNotFound) Error() string

func (*DeleteLabelNotFound) GetPayload

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

type DeleteLabelOK

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

DeleteLabelOK handles this case with default header values.

Success

func NewDeleteLabelOK

func NewDeleteLabelOK() *DeleteLabelOK

NewDeleteLabelOK creates a DeleteLabelOK with default headers values

func (*DeleteLabelOK) Error

func (o *DeleteLabelOK) Error() string

type DeleteLabelParams

type DeleteLabelParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*LabelID
	  Label ID

	*/
	LabelID int64

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

DeleteLabelParams contains all the parameters to send to the API endpoint for the delete label operation typically these are written to a http.Request

func NewDeleteLabelParams

func NewDeleteLabelParams() *DeleteLabelParams

NewDeleteLabelParams creates a new DeleteLabelParams object with the default values initialized.

func NewDeleteLabelParamsWithContext

func NewDeleteLabelParamsWithContext(ctx context.Context) *DeleteLabelParams

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

func NewDeleteLabelParamsWithHTTPClient

func NewDeleteLabelParamsWithHTTPClient(client *http.Client) *DeleteLabelParams

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

func NewDeleteLabelParamsWithTimeout

func NewDeleteLabelParamsWithTimeout(timeout time.Duration) *DeleteLabelParams

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

func (*DeleteLabelParams) SetContext

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

SetContext adds the context to the delete label params

func (*DeleteLabelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete label params

func (*DeleteLabelParams) SetLabelID

func (o *DeleteLabelParams) SetLabelID(labelID int64)

SetLabelID adds the labelId to the delete label params

func (*DeleteLabelParams) SetTimeout

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

SetTimeout adds the timeout to the delete label params

func (*DeleteLabelParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the delete label params

func (*DeleteLabelParams) WithContext

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

WithContext adds the context to the delete label params

func (*DeleteLabelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete label params

func (*DeleteLabelParams) WithLabelID

func (o *DeleteLabelParams) WithLabelID(labelID int64) *DeleteLabelParams

WithLabelID adds the labelID to the delete label params

func (*DeleteLabelParams) WithTimeout

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

WithTimeout adds the timeout to the delete label params

func (*DeleteLabelParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the delete label params

func (*DeleteLabelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteLabelReader

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

DeleteLabelReader is a Reader for the DeleteLabel structure.

func (*DeleteLabelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLabelUnauthorized

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

	Payload *model.Errors
}

DeleteLabelUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteLabelUnauthorized

func NewDeleteLabelUnauthorized() *DeleteLabelUnauthorized

NewDeleteLabelUnauthorized creates a DeleteLabelUnauthorized with default headers values

func (*DeleteLabelUnauthorized) Error

func (o *DeleteLabelUnauthorized) Error() string

func (*DeleteLabelUnauthorized) GetPayload

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

type GetLabelByIDInternalServerError

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

	Payload *model.Errors
}

GetLabelByIDInternalServerError handles this case with default header values.

Internal server error

func NewGetLabelByIDInternalServerError

func NewGetLabelByIDInternalServerError() *GetLabelByIDInternalServerError

NewGetLabelByIDInternalServerError creates a GetLabelByIDInternalServerError with default headers values

func (*GetLabelByIDInternalServerError) Error

func (*GetLabelByIDInternalServerError) GetPayload

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

type GetLabelByIDNotFound

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

	Payload *model.Errors
}

GetLabelByIDNotFound handles this case with default header values.

Not found

func NewGetLabelByIDNotFound

func NewGetLabelByIDNotFound() *GetLabelByIDNotFound

NewGetLabelByIDNotFound creates a GetLabelByIDNotFound with default headers values

func (*GetLabelByIDNotFound) Error

func (o *GetLabelByIDNotFound) Error() string

func (*GetLabelByIDNotFound) GetPayload

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

type GetLabelByIDOK

type GetLabelByIDOK struct {
	Payload *model.Label
}

GetLabelByIDOK handles this case with default header values.

Get successfully.

func NewGetLabelByIDOK

func NewGetLabelByIDOK() *GetLabelByIDOK

NewGetLabelByIDOK creates a GetLabelByIDOK with default headers values

func (*GetLabelByIDOK) Error

func (o *GetLabelByIDOK) Error() string

func (*GetLabelByIDOK) GetPayload

func (o *GetLabelByIDOK) GetPayload() *model.Label

type GetLabelByIDParams

type GetLabelByIDParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*LabelID
	  Label ID

	*/
	LabelID int64

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

GetLabelByIDParams contains all the parameters to send to the API endpoint for the get label by ID operation typically these are written to a http.Request

func NewGetLabelByIDParams

func NewGetLabelByIDParams() *GetLabelByIDParams

NewGetLabelByIDParams creates a new GetLabelByIDParams object with the default values initialized.

func NewGetLabelByIDParamsWithContext

func NewGetLabelByIDParamsWithContext(ctx context.Context) *GetLabelByIDParams

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

func NewGetLabelByIDParamsWithHTTPClient

func NewGetLabelByIDParamsWithHTTPClient(client *http.Client) *GetLabelByIDParams

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

func NewGetLabelByIDParamsWithTimeout

func NewGetLabelByIDParamsWithTimeout(timeout time.Duration) *GetLabelByIDParams

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

func (*GetLabelByIDParams) SetContext

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

SetContext adds the context to the get label by ID params

func (*GetLabelByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get label by ID params

func (*GetLabelByIDParams) SetLabelID

func (o *GetLabelByIDParams) SetLabelID(labelID int64)

SetLabelID adds the labelId to the get label by ID params

func (*GetLabelByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get label by ID params

func (*GetLabelByIDParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the get label by ID params

func (*GetLabelByIDParams) WithContext

WithContext adds the context to the get label by ID params

func (*GetLabelByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get label by ID params

func (*GetLabelByIDParams) WithLabelID

func (o *GetLabelByIDParams) WithLabelID(labelID int64) *GetLabelByIDParams

WithLabelID adds the labelID to the get label by ID params

func (*GetLabelByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get label by ID params

func (*GetLabelByIDParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the get label by ID params

func (*GetLabelByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLabelByIDReader

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

GetLabelByIDReader is a Reader for the GetLabelByID structure.

func (*GetLabelByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLabelByIDUnauthorized

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

	Payload *model.Errors
}

GetLabelByIDUnauthorized handles this case with default header values.

Unauthorized

func NewGetLabelByIDUnauthorized

func NewGetLabelByIDUnauthorized() *GetLabelByIDUnauthorized

NewGetLabelByIDUnauthorized creates a GetLabelByIDUnauthorized with default headers values

func (*GetLabelByIDUnauthorized) Error

func (o *GetLabelByIDUnauthorized) Error() string

func (*GetLabelByIDUnauthorized) GetPayload

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

type ListLabelsBadRequest

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

	Payload *model.Errors
}

ListLabelsBadRequest handles this case with default header values.

Bad request

func NewListLabelsBadRequest

func NewListLabelsBadRequest() *ListLabelsBadRequest

NewListLabelsBadRequest creates a ListLabelsBadRequest with default headers values

func (*ListLabelsBadRequest) Error

func (o *ListLabelsBadRequest) Error() string

func (*ListLabelsBadRequest) GetPayload

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

type ListLabelsInternalServerError

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

	Payload *model.Errors
}

ListLabelsInternalServerError handles this case with default header values.

Internal server error

func NewListLabelsInternalServerError

func NewListLabelsInternalServerError() *ListLabelsInternalServerError

NewListLabelsInternalServerError creates a ListLabelsInternalServerError with default headers values

func (*ListLabelsInternalServerError) Error

func (*ListLabelsInternalServerError) GetPayload

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

type ListLabelsOK

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

	Payload []*model.Label
}

ListLabelsOK handles this case with default header values.

Get successfully.

func NewListLabelsOK

func NewListLabelsOK() *ListLabelsOK

NewListLabelsOK creates a ListLabelsOK with default headers values

func (*ListLabelsOK) Error

func (o *ListLabelsOK) Error() string

func (*ListLabelsOK) GetPayload

func (o *ListLabelsOK) GetPayload() []*model.Label

type ListLabelsParams

type ListLabelsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Name
	  The label name.

	*/
	Name *string
	/*Page
	  The page number

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

	*/
	PageSize *int64
	/*ProjectID
	  Relevant project ID, required when scope is p.

	*/
	ProjectID *int64
	/*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
	/*Scope
	  The label scope. Valid values are g and p. g for global labels and p for project labels.

	*/
	Scope *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
}

ListLabelsParams contains all the parameters to send to the API endpoint for the list labels operation typically these are written to a http.Request

func NewListLabelsParams

func NewListLabelsParams() *ListLabelsParams

NewListLabelsParams creates a new ListLabelsParams object with the default values initialized.

func NewListLabelsParamsWithContext

func NewListLabelsParamsWithContext(ctx context.Context) *ListLabelsParams

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

func NewListLabelsParamsWithHTTPClient

func NewListLabelsParamsWithHTTPClient(client *http.Client) *ListLabelsParams

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

func NewListLabelsParamsWithTimeout

func NewListLabelsParamsWithTimeout(timeout time.Duration) *ListLabelsParams

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

func (*ListLabelsParams) SetContext

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

SetContext adds the context to the list labels params

func (*ListLabelsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list labels params

func (*ListLabelsParams) SetName

func (o *ListLabelsParams) SetName(name *string)

SetName adds the name to the list labels params

func (*ListLabelsParams) SetPage

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

SetPage adds the page to the list labels params

func (*ListLabelsParams) SetPageSize

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

SetPageSize adds the pageSize to the list labels params

func (*ListLabelsParams) SetProjectID

func (o *ListLabelsParams) SetProjectID(projectID *int64)

SetProjectID adds the projectId to the list labels params

func (*ListLabelsParams) SetQ

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

SetQ adds the q to the list labels params

func (*ListLabelsParams) SetScope

func (o *ListLabelsParams) SetScope(scope *string)

SetScope adds the scope to the list labels params

func (*ListLabelsParams) SetSort

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

SetSort adds the sort to the list labels params

func (*ListLabelsParams) SetTimeout

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

SetTimeout adds the timeout to the list labels params

func (*ListLabelsParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the list labels params

func (*ListLabelsParams) WithContext

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

WithContext adds the context to the list labels params

func (*ListLabelsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list labels params

func (*ListLabelsParams) WithName

func (o *ListLabelsParams) WithName(name *string) *ListLabelsParams

WithName adds the name to the list labels params

func (*ListLabelsParams) WithPage

func (o *ListLabelsParams) WithPage(page *int64) *ListLabelsParams

WithPage adds the page to the list labels params

func (*ListLabelsParams) WithPageSize

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

WithPageSize adds the pageSize to the list labels params

func (*ListLabelsParams) WithProjectID

func (o *ListLabelsParams) WithProjectID(projectID *int64) *ListLabelsParams

WithProjectID adds the projectID to the list labels params

func (*ListLabelsParams) WithQ

WithQ adds the q to the list labels params

func (*ListLabelsParams) WithScope

func (o *ListLabelsParams) WithScope(scope *string) *ListLabelsParams

WithScope adds the scope to the list labels params

func (*ListLabelsParams) WithSort

func (o *ListLabelsParams) WithSort(sort *string) *ListLabelsParams

WithSort adds the sort to the list labels params

func (*ListLabelsParams) WithTimeout

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

WithTimeout adds the timeout to the list labels params

func (*ListLabelsParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the list labels params

func (*ListLabelsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListLabelsReader

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

ListLabelsReader is a Reader for the ListLabels structure.

func (*ListLabelsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLabelsUnauthorized

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

	Payload *model.Errors
}

ListLabelsUnauthorized handles this case with default header values.

Unauthorized

func NewListLabelsUnauthorized

func NewListLabelsUnauthorized() *ListLabelsUnauthorized

NewListLabelsUnauthorized creates a ListLabelsUnauthorized with default headers values

func (*ListLabelsUnauthorized) Error

func (o *ListLabelsUnauthorized) Error() string

func (*ListLabelsUnauthorized) GetPayload

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

type UpdateLabelBadRequest

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

	Payload *model.Errors
}

UpdateLabelBadRequest handles this case with default header values.

Bad request

func NewUpdateLabelBadRequest

func NewUpdateLabelBadRequest() *UpdateLabelBadRequest

NewUpdateLabelBadRequest creates a UpdateLabelBadRequest with default headers values

func (*UpdateLabelBadRequest) Error

func (o *UpdateLabelBadRequest) Error() string

func (*UpdateLabelBadRequest) GetPayload

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

type UpdateLabelConflict

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

	Payload *model.Errors
}

UpdateLabelConflict handles this case with default header values.

Conflict

func NewUpdateLabelConflict

func NewUpdateLabelConflict() *UpdateLabelConflict

NewUpdateLabelConflict creates a UpdateLabelConflict with default headers values

func (*UpdateLabelConflict) Error

func (o *UpdateLabelConflict) Error() string

func (*UpdateLabelConflict) GetPayload

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

type UpdateLabelInternalServerError

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

	Payload *model.Errors
}

UpdateLabelInternalServerError handles this case with default header values.

Internal server error

func NewUpdateLabelInternalServerError

func NewUpdateLabelInternalServerError() *UpdateLabelInternalServerError

NewUpdateLabelInternalServerError creates a UpdateLabelInternalServerError with default headers values

func (*UpdateLabelInternalServerError) Error

func (*UpdateLabelInternalServerError) GetPayload

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

type UpdateLabelNotFound

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

	Payload *model.Errors
}

UpdateLabelNotFound handles this case with default header values.

Not found

func NewUpdateLabelNotFound

func NewUpdateLabelNotFound() *UpdateLabelNotFound

NewUpdateLabelNotFound creates a UpdateLabelNotFound with default headers values

func (*UpdateLabelNotFound) Error

func (o *UpdateLabelNotFound) Error() string

func (*UpdateLabelNotFound) GetPayload

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

type UpdateLabelOK

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

UpdateLabelOK handles this case with default header values.

Success

func NewUpdateLabelOK

func NewUpdateLabelOK() *UpdateLabelOK

NewUpdateLabelOK creates a UpdateLabelOK with default headers values

func (*UpdateLabelOK) Error

func (o *UpdateLabelOK) Error() string

type UpdateLabelParams

type UpdateLabelParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Label
	  The updated label json object.

	*/
	Label *model.Label
	/*LabelID
	  Label ID

	*/
	LabelID int64

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

UpdateLabelParams contains all the parameters to send to the API endpoint for the update label operation typically these are written to a http.Request

func NewUpdateLabelParams

func NewUpdateLabelParams() *UpdateLabelParams

NewUpdateLabelParams creates a new UpdateLabelParams object with the default values initialized.

func NewUpdateLabelParamsWithContext

func NewUpdateLabelParamsWithContext(ctx context.Context) *UpdateLabelParams

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

func NewUpdateLabelParamsWithHTTPClient

func NewUpdateLabelParamsWithHTTPClient(client *http.Client) *UpdateLabelParams

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

func NewUpdateLabelParamsWithTimeout

func NewUpdateLabelParamsWithTimeout(timeout time.Duration) *UpdateLabelParams

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

func (*UpdateLabelParams) SetContext

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

SetContext adds the context to the update label params

func (*UpdateLabelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update label params

func (*UpdateLabelParams) SetLabel

func (o *UpdateLabelParams) SetLabel(label *model.Label)

SetLabel adds the label to the update label params

func (*UpdateLabelParams) SetLabelID

func (o *UpdateLabelParams) SetLabelID(labelID int64)

SetLabelID adds the labelId to the update label params

func (*UpdateLabelParams) SetTimeout

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

SetTimeout adds the timeout to the update label params

func (*UpdateLabelParams) SetXRequestID

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

SetXRequestID adds the xRequestId to the update label params

func (*UpdateLabelParams) WithContext

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

WithContext adds the context to the update label params

func (*UpdateLabelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update label params

func (*UpdateLabelParams) WithLabel

func (o *UpdateLabelParams) WithLabel(label *model.Label) *UpdateLabelParams

WithLabel adds the label to the update label params

func (*UpdateLabelParams) WithLabelID

func (o *UpdateLabelParams) WithLabelID(labelID int64) *UpdateLabelParams

WithLabelID adds the labelID to the update label params

func (*UpdateLabelParams) WithTimeout

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

WithTimeout adds the timeout to the update label params

func (*UpdateLabelParams) WithXRequestID

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

WithXRequestID adds the xRequestID to the update label params

func (*UpdateLabelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateLabelReader

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

UpdateLabelReader is a Reader for the UpdateLabel structure.

func (*UpdateLabelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLabelUnauthorized

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

	Payload *model.Errors
}

UpdateLabelUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateLabelUnauthorized

func NewUpdateLabelUnauthorized() *UpdateLabelUnauthorized

NewUpdateLabelUnauthorized creates a UpdateLabelUnauthorized with default headers values

func (*UpdateLabelUnauthorized) Error

func (o *UpdateLabelUnauthorized) Error() string

func (*UpdateLabelUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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