Documentation ¶
Index ¶
- type API
- type Client
- func (a *Client) CreateLabel(ctx context.Context, params *CreateLabelParams) (*CreateLabelCreated, error)
- func (a *Client) DeleteLabel(ctx context.Context, params *DeleteLabelParams) (*DeleteLabelOK, error)
- func (a *Client) GetLabelByID(ctx context.Context, params *GetLabelByIDParams) (*GetLabelByIDOK, error)
- func (a *Client) ListLabels(ctx context.Context, params *ListLabelsParams) (*ListLabelsOK, error)
- func (a *Client) UpdateLabel(ctx context.Context, params *UpdateLabelParams) (*UpdateLabelOK, error)
- type CreateLabelBadRequest
- func (o *CreateLabelBadRequest) Error() string
- func (o *CreateLabelBadRequest) GetPayload() *models.Errors
- func (o *CreateLabelBadRequest) IsClientError() bool
- func (o *CreateLabelBadRequest) IsCode(code int) bool
- func (o *CreateLabelBadRequest) IsRedirect() bool
- func (o *CreateLabelBadRequest) IsServerError() bool
- func (o *CreateLabelBadRequest) IsSuccess() bool
- func (o *CreateLabelBadRequest) String() string
- type CreateLabelConflict
- func (o *CreateLabelConflict) Error() string
- func (o *CreateLabelConflict) GetPayload() *models.Errors
- func (o *CreateLabelConflict) IsClientError() bool
- func (o *CreateLabelConflict) IsCode(code int) bool
- func (o *CreateLabelConflict) IsRedirect() bool
- func (o *CreateLabelConflict) IsServerError() bool
- func (o *CreateLabelConflict) IsSuccess() bool
- func (o *CreateLabelConflict) String() string
- type CreateLabelCreated
- func (o *CreateLabelCreated) Error() string
- func (o *CreateLabelCreated) IsClientError() bool
- func (o *CreateLabelCreated) IsCode(code int) bool
- func (o *CreateLabelCreated) IsRedirect() bool
- func (o *CreateLabelCreated) IsServerError() bool
- func (o *CreateLabelCreated) IsSuccess() bool
- func (o *CreateLabelCreated) String() string
- type CreateLabelInternalServerError
- func (o *CreateLabelInternalServerError) Error() string
- func (o *CreateLabelInternalServerError) GetPayload() *models.Errors
- func (o *CreateLabelInternalServerError) IsClientError() bool
- func (o *CreateLabelInternalServerError) IsCode(code int) bool
- func (o *CreateLabelInternalServerError) IsRedirect() bool
- func (o *CreateLabelInternalServerError) IsServerError() bool
- func (o *CreateLabelInternalServerError) IsSuccess() bool
- func (o *CreateLabelInternalServerError) String() string
- type CreateLabelParams
- func (o *CreateLabelParams) SetContext(ctx context.Context)
- func (o *CreateLabelParams) SetDefaults()
- func (o *CreateLabelParams) SetHTTPClient(client *http.Client)
- func (o *CreateLabelParams) SetLabel(label *models.Label)
- func (o *CreateLabelParams) SetTimeout(timeout time.Duration)
- func (o *CreateLabelParams) SetXRequestID(xRequestID *string)
- func (o *CreateLabelParams) WithContext(ctx context.Context) *CreateLabelParams
- func (o *CreateLabelParams) WithDefaults() *CreateLabelParams
- func (o *CreateLabelParams) WithHTTPClient(client *http.Client) *CreateLabelParams
- func (o *CreateLabelParams) WithLabel(label *models.Label) *CreateLabelParams
- func (o *CreateLabelParams) WithTimeout(timeout time.Duration) *CreateLabelParams
- func (o *CreateLabelParams) WithXRequestID(xRequestID *string) *CreateLabelParams
- func (o *CreateLabelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateLabelReader
- type CreateLabelUnauthorized
- func (o *CreateLabelUnauthorized) Error() string
- func (o *CreateLabelUnauthorized) GetPayload() *models.Errors
- func (o *CreateLabelUnauthorized) IsClientError() bool
- func (o *CreateLabelUnauthorized) IsCode(code int) bool
- func (o *CreateLabelUnauthorized) IsRedirect() bool
- func (o *CreateLabelUnauthorized) IsServerError() bool
- func (o *CreateLabelUnauthorized) IsSuccess() bool
- func (o *CreateLabelUnauthorized) String() string
- type CreateLabelUnsupportedMediaType
- func (o *CreateLabelUnsupportedMediaType) Error() string
- func (o *CreateLabelUnsupportedMediaType) GetPayload() *models.Errors
- func (o *CreateLabelUnsupportedMediaType) IsClientError() bool
- func (o *CreateLabelUnsupportedMediaType) IsCode(code int) bool
- func (o *CreateLabelUnsupportedMediaType) IsRedirect() bool
- func (o *CreateLabelUnsupportedMediaType) IsServerError() bool
- func (o *CreateLabelUnsupportedMediaType) IsSuccess() bool
- func (o *CreateLabelUnsupportedMediaType) String() string
- type DeleteLabelBadRequest
- func (o *DeleteLabelBadRequest) Error() string
- func (o *DeleteLabelBadRequest) GetPayload() *models.Errors
- func (o *DeleteLabelBadRequest) IsClientError() bool
- func (o *DeleteLabelBadRequest) IsCode(code int) bool
- func (o *DeleteLabelBadRequest) IsRedirect() bool
- func (o *DeleteLabelBadRequest) IsServerError() bool
- func (o *DeleteLabelBadRequest) IsSuccess() bool
- func (o *DeleteLabelBadRequest) String() string
- type DeleteLabelInternalServerError
- func (o *DeleteLabelInternalServerError) Error() string
- func (o *DeleteLabelInternalServerError) GetPayload() *models.Errors
- func (o *DeleteLabelInternalServerError) IsClientError() bool
- func (o *DeleteLabelInternalServerError) IsCode(code int) bool
- func (o *DeleteLabelInternalServerError) IsRedirect() bool
- func (o *DeleteLabelInternalServerError) IsServerError() bool
- func (o *DeleteLabelInternalServerError) IsSuccess() bool
- func (o *DeleteLabelInternalServerError) String() string
- type DeleteLabelNotFound
- func (o *DeleteLabelNotFound) Error() string
- func (o *DeleteLabelNotFound) GetPayload() *models.Errors
- func (o *DeleteLabelNotFound) IsClientError() bool
- func (o *DeleteLabelNotFound) IsCode(code int) bool
- func (o *DeleteLabelNotFound) IsRedirect() bool
- func (o *DeleteLabelNotFound) IsServerError() bool
- func (o *DeleteLabelNotFound) IsSuccess() bool
- func (o *DeleteLabelNotFound) String() string
- type DeleteLabelOK
- type DeleteLabelParams
- func (o *DeleteLabelParams) SetContext(ctx context.Context)
- func (o *DeleteLabelParams) SetDefaults()
- func (o *DeleteLabelParams) SetHTTPClient(client *http.Client)
- func (o *DeleteLabelParams) SetLabelID(labelID int64)
- func (o *DeleteLabelParams) SetTimeout(timeout time.Duration)
- func (o *DeleteLabelParams) SetXRequestID(xRequestID *string)
- func (o *DeleteLabelParams) WithContext(ctx context.Context) *DeleteLabelParams
- func (o *DeleteLabelParams) WithDefaults() *DeleteLabelParams
- func (o *DeleteLabelParams) WithHTTPClient(client *http.Client) *DeleteLabelParams
- func (o *DeleteLabelParams) WithLabelID(labelID int64) *DeleteLabelParams
- func (o *DeleteLabelParams) WithTimeout(timeout time.Duration) *DeleteLabelParams
- func (o *DeleteLabelParams) WithXRequestID(xRequestID *string) *DeleteLabelParams
- func (o *DeleteLabelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteLabelReader
- type DeleteLabelUnauthorized
- func (o *DeleteLabelUnauthorized) Error() string
- func (o *DeleteLabelUnauthorized) GetPayload() *models.Errors
- func (o *DeleteLabelUnauthorized) IsClientError() bool
- func (o *DeleteLabelUnauthorized) IsCode(code int) bool
- func (o *DeleteLabelUnauthorized) IsRedirect() bool
- func (o *DeleteLabelUnauthorized) IsServerError() bool
- func (o *DeleteLabelUnauthorized) IsSuccess() bool
- func (o *DeleteLabelUnauthorized) String() string
- type GetLabelByIDInternalServerError
- func (o *GetLabelByIDInternalServerError) Error() string
- func (o *GetLabelByIDInternalServerError) GetPayload() *models.Errors
- func (o *GetLabelByIDInternalServerError) IsClientError() bool
- func (o *GetLabelByIDInternalServerError) IsCode(code int) bool
- func (o *GetLabelByIDInternalServerError) IsRedirect() bool
- func (o *GetLabelByIDInternalServerError) IsServerError() bool
- func (o *GetLabelByIDInternalServerError) IsSuccess() bool
- func (o *GetLabelByIDInternalServerError) String() string
- type GetLabelByIDNotFound
- func (o *GetLabelByIDNotFound) Error() string
- func (o *GetLabelByIDNotFound) GetPayload() *models.Errors
- func (o *GetLabelByIDNotFound) IsClientError() bool
- func (o *GetLabelByIDNotFound) IsCode(code int) bool
- func (o *GetLabelByIDNotFound) IsRedirect() bool
- func (o *GetLabelByIDNotFound) IsServerError() bool
- func (o *GetLabelByIDNotFound) IsSuccess() bool
- func (o *GetLabelByIDNotFound) String() string
- type GetLabelByIDOK
- func (o *GetLabelByIDOK) Error() string
- func (o *GetLabelByIDOK) GetPayload() *models.Label
- func (o *GetLabelByIDOK) IsClientError() bool
- func (o *GetLabelByIDOK) IsCode(code int) bool
- func (o *GetLabelByIDOK) IsRedirect() bool
- func (o *GetLabelByIDOK) IsServerError() bool
- func (o *GetLabelByIDOK) IsSuccess() bool
- func (o *GetLabelByIDOK) String() string
- type GetLabelByIDParams
- func (o *GetLabelByIDParams) SetContext(ctx context.Context)
- func (o *GetLabelByIDParams) SetDefaults()
- func (o *GetLabelByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetLabelByIDParams) SetLabelID(labelID int64)
- func (o *GetLabelByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetLabelByIDParams) SetXRequestID(xRequestID *string)
- func (o *GetLabelByIDParams) WithContext(ctx context.Context) *GetLabelByIDParams
- func (o *GetLabelByIDParams) WithDefaults() *GetLabelByIDParams
- func (o *GetLabelByIDParams) WithHTTPClient(client *http.Client) *GetLabelByIDParams
- func (o *GetLabelByIDParams) WithLabelID(labelID int64) *GetLabelByIDParams
- func (o *GetLabelByIDParams) WithTimeout(timeout time.Duration) *GetLabelByIDParams
- func (o *GetLabelByIDParams) WithXRequestID(xRequestID *string) *GetLabelByIDParams
- func (o *GetLabelByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLabelByIDReader
- type GetLabelByIDUnauthorized
- func (o *GetLabelByIDUnauthorized) Error() string
- func (o *GetLabelByIDUnauthorized) GetPayload() *models.Errors
- func (o *GetLabelByIDUnauthorized) IsClientError() bool
- func (o *GetLabelByIDUnauthorized) IsCode(code int) bool
- func (o *GetLabelByIDUnauthorized) IsRedirect() bool
- func (o *GetLabelByIDUnauthorized) IsServerError() bool
- func (o *GetLabelByIDUnauthorized) IsSuccess() bool
- func (o *GetLabelByIDUnauthorized) String() string
- type ListLabelsBadRequest
- func (o *ListLabelsBadRequest) Error() string
- func (o *ListLabelsBadRequest) GetPayload() *models.Errors
- func (o *ListLabelsBadRequest) IsClientError() bool
- func (o *ListLabelsBadRequest) IsCode(code int) bool
- func (o *ListLabelsBadRequest) IsRedirect() bool
- func (o *ListLabelsBadRequest) IsServerError() bool
- func (o *ListLabelsBadRequest) IsSuccess() bool
- func (o *ListLabelsBadRequest) String() string
- type ListLabelsInternalServerError
- func (o *ListLabelsInternalServerError) Error() string
- func (o *ListLabelsInternalServerError) GetPayload() *models.Errors
- func (o *ListLabelsInternalServerError) IsClientError() bool
- func (o *ListLabelsInternalServerError) IsCode(code int) bool
- func (o *ListLabelsInternalServerError) IsRedirect() bool
- func (o *ListLabelsInternalServerError) IsServerError() bool
- func (o *ListLabelsInternalServerError) IsSuccess() bool
- func (o *ListLabelsInternalServerError) String() string
- type ListLabelsOK
- func (o *ListLabelsOK) Error() string
- func (o *ListLabelsOK) GetPayload() []*models.Label
- func (o *ListLabelsOK) IsClientError() bool
- func (o *ListLabelsOK) IsCode(code int) bool
- func (o *ListLabelsOK) IsRedirect() bool
- func (o *ListLabelsOK) IsServerError() bool
- func (o *ListLabelsOK) IsSuccess() bool
- func (o *ListLabelsOK) String() string
- type ListLabelsParams
- func (o *ListLabelsParams) SetContext(ctx context.Context)
- func (o *ListLabelsParams) SetDefaults()
- func (o *ListLabelsParams) SetHTTPClient(client *http.Client)
- func (o *ListLabelsParams) SetName(name *string)
- func (o *ListLabelsParams) SetPage(page *int64)
- func (o *ListLabelsParams) SetPageSize(pageSize *int64)
- func (o *ListLabelsParams) SetProjectID(projectID *int64)
- func (o *ListLabelsParams) SetQ(q *string)
- func (o *ListLabelsParams) SetScope(scope *string)
- func (o *ListLabelsParams) SetSort(sort *string)
- func (o *ListLabelsParams) SetTimeout(timeout time.Duration)
- func (o *ListLabelsParams) SetXRequestID(xRequestID *string)
- func (o *ListLabelsParams) WithContext(ctx context.Context) *ListLabelsParams
- func (o *ListLabelsParams) WithDefaults() *ListLabelsParams
- func (o *ListLabelsParams) WithHTTPClient(client *http.Client) *ListLabelsParams
- func (o *ListLabelsParams) WithName(name *string) *ListLabelsParams
- func (o *ListLabelsParams) WithPage(page *int64) *ListLabelsParams
- func (o *ListLabelsParams) WithPageSize(pageSize *int64) *ListLabelsParams
- func (o *ListLabelsParams) WithProjectID(projectID *int64) *ListLabelsParams
- func (o *ListLabelsParams) WithQ(q *string) *ListLabelsParams
- func (o *ListLabelsParams) WithScope(scope *string) *ListLabelsParams
- func (o *ListLabelsParams) WithSort(sort *string) *ListLabelsParams
- func (o *ListLabelsParams) WithTimeout(timeout time.Duration) *ListLabelsParams
- func (o *ListLabelsParams) WithXRequestID(xRequestID *string) *ListLabelsParams
- func (o *ListLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListLabelsReader
- type ListLabelsUnauthorized
- func (o *ListLabelsUnauthorized) Error() string
- func (o *ListLabelsUnauthorized) GetPayload() *models.Errors
- func (o *ListLabelsUnauthorized) IsClientError() bool
- func (o *ListLabelsUnauthorized) IsCode(code int) bool
- func (o *ListLabelsUnauthorized) IsRedirect() bool
- func (o *ListLabelsUnauthorized) IsServerError() bool
- func (o *ListLabelsUnauthorized) IsSuccess() bool
- func (o *ListLabelsUnauthorized) String() string
- type UpdateLabelBadRequest
- func (o *UpdateLabelBadRequest) Error() string
- func (o *UpdateLabelBadRequest) GetPayload() *models.Errors
- func (o *UpdateLabelBadRequest) IsClientError() bool
- func (o *UpdateLabelBadRequest) IsCode(code int) bool
- func (o *UpdateLabelBadRequest) IsRedirect() bool
- func (o *UpdateLabelBadRequest) IsServerError() bool
- func (o *UpdateLabelBadRequest) IsSuccess() bool
- func (o *UpdateLabelBadRequest) String() string
- type UpdateLabelConflict
- func (o *UpdateLabelConflict) Error() string
- func (o *UpdateLabelConflict) GetPayload() *models.Errors
- func (o *UpdateLabelConflict) IsClientError() bool
- func (o *UpdateLabelConflict) IsCode(code int) bool
- func (o *UpdateLabelConflict) IsRedirect() bool
- func (o *UpdateLabelConflict) IsServerError() bool
- func (o *UpdateLabelConflict) IsSuccess() bool
- func (o *UpdateLabelConflict) String() string
- type UpdateLabelInternalServerError
- func (o *UpdateLabelInternalServerError) Error() string
- func (o *UpdateLabelInternalServerError) GetPayload() *models.Errors
- func (o *UpdateLabelInternalServerError) IsClientError() bool
- func (o *UpdateLabelInternalServerError) IsCode(code int) bool
- func (o *UpdateLabelInternalServerError) IsRedirect() bool
- func (o *UpdateLabelInternalServerError) IsServerError() bool
- func (o *UpdateLabelInternalServerError) IsSuccess() bool
- func (o *UpdateLabelInternalServerError) String() string
- type UpdateLabelNotFound
- func (o *UpdateLabelNotFound) Error() string
- func (o *UpdateLabelNotFound) GetPayload() *models.Errors
- func (o *UpdateLabelNotFound) IsClientError() bool
- func (o *UpdateLabelNotFound) IsCode(code int) bool
- func (o *UpdateLabelNotFound) IsRedirect() bool
- func (o *UpdateLabelNotFound) IsServerError() bool
- func (o *UpdateLabelNotFound) IsSuccess() bool
- func (o *UpdateLabelNotFound) String() string
- type UpdateLabelOK
- type UpdateLabelParams
- func (o *UpdateLabelParams) SetContext(ctx context.Context)
- func (o *UpdateLabelParams) SetDefaults()
- func (o *UpdateLabelParams) SetHTTPClient(client *http.Client)
- func (o *UpdateLabelParams) SetLabel(label *models.Label)
- func (o *UpdateLabelParams) SetLabelID(labelID int64)
- func (o *UpdateLabelParams) SetTimeout(timeout time.Duration)
- func (o *UpdateLabelParams) SetXRequestID(xRequestID *string)
- func (o *UpdateLabelParams) WithContext(ctx context.Context) *UpdateLabelParams
- func (o *UpdateLabelParams) WithDefaults() *UpdateLabelParams
- func (o *UpdateLabelParams) WithHTTPClient(client *http.Client) *UpdateLabelParams
- func (o *UpdateLabelParams) WithLabel(label *models.Label) *UpdateLabelParams
- func (o *UpdateLabelParams) WithLabelID(labelID int64) *UpdateLabelParams
- func (o *UpdateLabelParams) WithTimeout(timeout time.Duration) *UpdateLabelParams
- func (o *UpdateLabelParams) WithXRequestID(xRequestID *string) *UpdateLabelParams
- func (o *UpdateLabelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateLabelReader
- type UpdateLabelUnauthorized
- func (o *UpdateLabelUnauthorized) Error() string
- func (o *UpdateLabelUnauthorized) GetPayload() *models.Errors
- func (o *UpdateLabelUnauthorized) IsClientError() bool
- func (o *UpdateLabelUnauthorized) IsCode(code int) bool
- func (o *UpdateLabelUnauthorized) IsRedirect() bool
- func (o *UpdateLabelUnauthorized) IsServerError() bool
- func (o *UpdateLabelUnauthorized) IsSuccess() bool
- func (o *UpdateLabelUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* CreateLabel posts creates a label This endpoint let user creates a label. */ CreateLabel(ctx context.Context, params *CreateLabelParams) (*CreateLabelCreated, error) /* DeleteLabel deletes the label specified by ID Delete the label specified by ID. */ DeleteLabel(ctx context.Context, params *DeleteLabelParams) (*DeleteLabelOK, error) /* GetLabelByID gets the label specified by ID This endpoint let user get the label by specific ID. */ GetLabelByID(ctx context.Context, params *GetLabelByIDParams) (*GetLabelByIDOK, error) /* ListLabels lists labels according to the query strings This endpoint let user list labels by name, scope and project_id */ ListLabels(ctx context.Context, params *ListLabelsParams) (*ListLabelsOK, error) /* UpdateLabel updates the label properties This endpoint let user update label properties. */ UpdateLabel(ctx context.Context, params *UpdateLabelParams) (*UpdateLabelOK, error) }
API is the interface of the label client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for label API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new label API client.
func (*Client) CreateLabel ¶
func (a *Client) CreateLabel(ctx context.Context, params *CreateLabelParams) (*CreateLabelCreated, error)
CreateLabel posts creates a label
This endpoint let user creates a label.
func (*Client) DeleteLabel ¶
func (a *Client) DeleteLabel(ctx context.Context, params *DeleteLabelParams) (*DeleteLabelOK, error)
DeleteLabel deletes the label specified by ID
Delete the label specified by ID.
func (*Client) GetLabelByID ¶
func (a *Client) GetLabelByID(ctx context.Context, params *GetLabelByIDParams) (*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(ctx context.Context, params *ListLabelsParams) (*ListLabelsOK, error)
ListLabels lists labels according to the query strings
This endpoint let user list labels by name, scope and project_id
func (*Client) UpdateLabel ¶
func (a *Client) UpdateLabel(ctx context.Context, params *UpdateLabelParams) (*UpdateLabelOK, error)
UpdateLabel updates the label properties
This endpoint let user update label properties.
type CreateLabelBadRequest ¶
type CreateLabelBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateLabelBadRequest describes a response with status code 400, 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() *models.Errors
func (*CreateLabelBadRequest) IsClientError ¶ added in v0.26.2
func (o *CreateLabelBadRequest) IsClientError() bool
IsClientError returns true when this create label bad request response has a 4xx status code
func (*CreateLabelBadRequest) IsCode ¶ added in v0.26.2
func (o *CreateLabelBadRequest) IsCode(code int) bool
IsCode returns true when this create label bad request response a status code equal to that given
func (*CreateLabelBadRequest) IsRedirect ¶ added in v0.26.2
func (o *CreateLabelBadRequest) IsRedirect() bool
IsRedirect returns true when this create label bad request response has a 3xx status code
func (*CreateLabelBadRequest) IsServerError ¶ added in v0.26.2
func (o *CreateLabelBadRequest) IsServerError() bool
IsServerError returns true when this create label bad request response has a 5xx status code
func (*CreateLabelBadRequest) IsSuccess ¶ added in v0.26.2
func (o *CreateLabelBadRequest) IsSuccess() bool
IsSuccess returns true when this create label bad request response has a 2xx status code
func (*CreateLabelBadRequest) String ¶ added in v0.26.2
func (o *CreateLabelBadRequest) String() string
type CreateLabelConflict ¶
type CreateLabelConflict struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateLabelConflict describes a response with status code 409, 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() *models.Errors
func (*CreateLabelConflict) IsClientError ¶ added in v0.26.2
func (o *CreateLabelConflict) IsClientError() bool
IsClientError returns true when this create label conflict response has a 4xx status code
func (*CreateLabelConflict) IsCode ¶ added in v0.26.2
func (o *CreateLabelConflict) IsCode(code int) bool
IsCode returns true when this create label conflict response a status code equal to that given
func (*CreateLabelConflict) IsRedirect ¶ added in v0.26.2
func (o *CreateLabelConflict) IsRedirect() bool
IsRedirect returns true when this create label conflict response has a 3xx status code
func (*CreateLabelConflict) IsServerError ¶ added in v0.26.2
func (o *CreateLabelConflict) IsServerError() bool
IsServerError returns true when this create label conflict response has a 5xx status code
func (*CreateLabelConflict) IsSuccess ¶ added in v0.26.2
func (o *CreateLabelConflict) IsSuccess() bool
IsSuccess returns true when this create label conflict response has a 2xx status code
func (*CreateLabelConflict) String ¶ added in v0.26.2
func (o *CreateLabelConflict) String() string
type CreateLabelCreated ¶
type CreateLabelCreated struct { /* The URL of the created resource */ Location string }
CreateLabelCreated describes a response with status code 201, 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
func (*CreateLabelCreated) IsClientError ¶ added in v0.26.2
func (o *CreateLabelCreated) IsClientError() bool
IsClientError returns true when this create label created response has a 4xx status code
func (*CreateLabelCreated) IsCode ¶ added in v0.26.2
func (o *CreateLabelCreated) IsCode(code int) bool
IsCode returns true when this create label created response a status code equal to that given
func (*CreateLabelCreated) IsRedirect ¶ added in v0.26.2
func (o *CreateLabelCreated) IsRedirect() bool
IsRedirect returns true when this create label created response has a 3xx status code
func (*CreateLabelCreated) IsServerError ¶ added in v0.26.2
func (o *CreateLabelCreated) IsServerError() bool
IsServerError returns true when this create label created response has a 5xx status code
func (*CreateLabelCreated) IsSuccess ¶ added in v0.26.2
func (o *CreateLabelCreated) IsSuccess() bool
IsSuccess returns true when this create label created response has a 2xx status code
func (*CreateLabelCreated) String ¶ added in v0.26.2
func (o *CreateLabelCreated) String() string
type CreateLabelInternalServerError ¶
type CreateLabelInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateLabelInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewCreateLabelInternalServerError ¶
func NewCreateLabelInternalServerError() *CreateLabelInternalServerError
NewCreateLabelInternalServerError creates a CreateLabelInternalServerError with default headers values
func (*CreateLabelInternalServerError) Error ¶
func (o *CreateLabelInternalServerError) Error() string
func (*CreateLabelInternalServerError) GetPayload ¶
func (o *CreateLabelInternalServerError) GetPayload() *models.Errors
func (*CreateLabelInternalServerError) IsClientError ¶ added in v0.26.2
func (o *CreateLabelInternalServerError) IsClientError() bool
IsClientError returns true when this create label internal server error response has a 4xx status code
func (*CreateLabelInternalServerError) IsCode ¶ added in v0.26.2
func (o *CreateLabelInternalServerError) IsCode(code int) bool
IsCode returns true when this create label internal server error response a status code equal to that given
func (*CreateLabelInternalServerError) IsRedirect ¶ added in v0.26.2
func (o *CreateLabelInternalServerError) IsRedirect() bool
IsRedirect returns true when this create label internal server error response has a 3xx status code
func (*CreateLabelInternalServerError) IsServerError ¶ added in v0.26.2
func (o *CreateLabelInternalServerError) IsServerError() bool
IsServerError returns true when this create label internal server error response has a 5xx status code
func (*CreateLabelInternalServerError) IsSuccess ¶ added in v0.26.2
func (o *CreateLabelInternalServerError) IsSuccess() bool
IsSuccess returns true when this create label internal server error response has a 2xx status code
func (*CreateLabelInternalServerError) String ¶ added in v0.26.2
func (o *CreateLabelInternalServerError) String() string
type CreateLabelParams ¶
type CreateLabelParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Label. The json object of label. */ Label *models.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 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 NewCreateLabelParamsWithContext ¶
func NewCreateLabelParamsWithContext(ctx context.Context) *CreateLabelParams
NewCreateLabelParamsWithContext creates a new CreateLabelParams object with 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 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 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) SetDefaults ¶
func (o *CreateLabelParams) SetDefaults()
SetDefaults hydrates default values in the create label params (not the query body).
All values with no default are reset to their zero value.
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 *models.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) WithDefaults ¶
func (o *CreateLabelParams) WithDefaults() *CreateLabelParams
WithDefaults hydrates default values in the create label params (not the query body).
All values with no default are reset to their zero value.
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 *models.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 { string }XRequestID
CreateLabelUnauthorized describes a response with status code 401, 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() *models.Errors
func (*CreateLabelUnauthorized) IsClientError ¶ added in v0.26.2
func (o *CreateLabelUnauthorized) IsClientError() bool
IsClientError returns true when this create label unauthorized response has a 4xx status code
func (*CreateLabelUnauthorized) IsCode ¶ added in v0.26.2
func (o *CreateLabelUnauthorized) IsCode(code int) bool
IsCode returns true when this create label unauthorized response a status code equal to that given
func (*CreateLabelUnauthorized) IsRedirect ¶ added in v0.26.2
func (o *CreateLabelUnauthorized) IsRedirect() bool
IsRedirect returns true when this create label unauthorized response has a 3xx status code
func (*CreateLabelUnauthorized) IsServerError ¶ added in v0.26.2
func (o *CreateLabelUnauthorized) IsServerError() bool
IsServerError returns true when this create label unauthorized response has a 5xx status code
func (*CreateLabelUnauthorized) IsSuccess ¶ added in v0.26.2
func (o *CreateLabelUnauthorized) IsSuccess() bool
IsSuccess returns true when this create label unauthorized response has a 2xx status code
func (*CreateLabelUnauthorized) String ¶ added in v0.26.2
func (o *CreateLabelUnauthorized) String() string
type CreateLabelUnsupportedMediaType ¶
type CreateLabelUnsupportedMediaType struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateLabelUnsupportedMediaType describes a response with status code 415, with default header values.
Unsupported MediaType
func NewCreateLabelUnsupportedMediaType ¶
func NewCreateLabelUnsupportedMediaType() *CreateLabelUnsupportedMediaType
NewCreateLabelUnsupportedMediaType creates a CreateLabelUnsupportedMediaType with default headers values
func (*CreateLabelUnsupportedMediaType) Error ¶
func (o *CreateLabelUnsupportedMediaType) Error() string
func (*CreateLabelUnsupportedMediaType) GetPayload ¶
func (o *CreateLabelUnsupportedMediaType) GetPayload() *models.Errors
func (*CreateLabelUnsupportedMediaType) IsClientError ¶ added in v0.26.2
func (o *CreateLabelUnsupportedMediaType) IsClientError() bool
IsClientError returns true when this create label unsupported media type response has a 4xx status code
func (*CreateLabelUnsupportedMediaType) IsCode ¶ added in v0.26.2
func (o *CreateLabelUnsupportedMediaType) IsCode(code int) bool
IsCode returns true when this create label unsupported media type response a status code equal to that given
func (*CreateLabelUnsupportedMediaType) IsRedirect ¶ added in v0.26.2
func (o *CreateLabelUnsupportedMediaType) IsRedirect() bool
IsRedirect returns true when this create label unsupported media type response has a 3xx status code
func (*CreateLabelUnsupportedMediaType) IsServerError ¶ added in v0.26.2
func (o *CreateLabelUnsupportedMediaType) IsServerError() bool
IsServerError returns true when this create label unsupported media type response has a 5xx status code
func (*CreateLabelUnsupportedMediaType) IsSuccess ¶ added in v0.26.2
func (o *CreateLabelUnsupportedMediaType) IsSuccess() bool
IsSuccess returns true when this create label unsupported media type response has a 2xx status code
func (*CreateLabelUnsupportedMediaType) String ¶ added in v0.26.2
func (o *CreateLabelUnsupportedMediaType) String() string
type DeleteLabelBadRequest ¶
type DeleteLabelBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
DeleteLabelBadRequest describes a response with status code 400, 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() *models.Errors
func (*DeleteLabelBadRequest) IsClientError ¶ added in v0.26.2
func (o *DeleteLabelBadRequest) IsClientError() bool
IsClientError returns true when this delete label bad request response has a 4xx status code
func (*DeleteLabelBadRequest) IsCode ¶ added in v0.26.2
func (o *DeleteLabelBadRequest) IsCode(code int) bool
IsCode returns true when this delete label bad request response a status code equal to that given
func (*DeleteLabelBadRequest) IsRedirect ¶ added in v0.26.2
func (o *DeleteLabelBadRequest) IsRedirect() bool
IsRedirect returns true when this delete label bad request response has a 3xx status code
func (*DeleteLabelBadRequest) IsServerError ¶ added in v0.26.2
func (o *DeleteLabelBadRequest) IsServerError() bool
IsServerError returns true when this delete label bad request response has a 5xx status code
func (*DeleteLabelBadRequest) IsSuccess ¶ added in v0.26.2
func (o *DeleteLabelBadRequest) IsSuccess() bool
IsSuccess returns true when this delete label bad request response has a 2xx status code
func (*DeleteLabelBadRequest) String ¶ added in v0.26.2
func (o *DeleteLabelBadRequest) String() string
type DeleteLabelInternalServerError ¶
type DeleteLabelInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
DeleteLabelInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewDeleteLabelInternalServerError ¶
func NewDeleteLabelInternalServerError() *DeleteLabelInternalServerError
NewDeleteLabelInternalServerError creates a DeleteLabelInternalServerError with default headers values
func (*DeleteLabelInternalServerError) Error ¶
func (o *DeleteLabelInternalServerError) Error() string
func (*DeleteLabelInternalServerError) GetPayload ¶
func (o *DeleteLabelInternalServerError) GetPayload() *models.Errors
func (*DeleteLabelInternalServerError) IsClientError ¶ added in v0.26.2
func (o *DeleteLabelInternalServerError) IsClientError() bool
IsClientError returns true when this delete label internal server error response has a 4xx status code
func (*DeleteLabelInternalServerError) IsCode ¶ added in v0.26.2
func (o *DeleteLabelInternalServerError) IsCode(code int) bool
IsCode returns true when this delete label internal server error response a status code equal to that given
func (*DeleteLabelInternalServerError) IsRedirect ¶ added in v0.26.2
func (o *DeleteLabelInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete label internal server error response has a 3xx status code
func (*DeleteLabelInternalServerError) IsServerError ¶ added in v0.26.2
func (o *DeleteLabelInternalServerError) IsServerError() bool
IsServerError returns true when this delete label internal server error response has a 5xx status code
func (*DeleteLabelInternalServerError) IsSuccess ¶ added in v0.26.2
func (o *DeleteLabelInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete label internal server error response has a 2xx status code
func (*DeleteLabelInternalServerError) String ¶ added in v0.26.2
func (o *DeleteLabelInternalServerError) String() string
type DeleteLabelNotFound ¶
type DeleteLabelNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
DeleteLabelNotFound describes a response with status code 404, 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() *models.Errors
func (*DeleteLabelNotFound) IsClientError ¶ added in v0.26.2
func (o *DeleteLabelNotFound) IsClientError() bool
IsClientError returns true when this delete label not found response has a 4xx status code
func (*DeleteLabelNotFound) IsCode ¶ added in v0.26.2
func (o *DeleteLabelNotFound) IsCode(code int) bool
IsCode returns true when this delete label not found response a status code equal to that given
func (*DeleteLabelNotFound) IsRedirect ¶ added in v0.26.2
func (o *DeleteLabelNotFound) IsRedirect() bool
IsRedirect returns true when this delete label not found response has a 3xx status code
func (*DeleteLabelNotFound) IsServerError ¶ added in v0.26.2
func (o *DeleteLabelNotFound) IsServerError() bool
IsServerError returns true when this delete label not found response has a 5xx status code
func (*DeleteLabelNotFound) IsSuccess ¶ added in v0.26.2
func (o *DeleteLabelNotFound) IsSuccess() bool
IsSuccess returns true when this delete label not found response has a 2xx status code
func (*DeleteLabelNotFound) String ¶ added in v0.26.2
func (o *DeleteLabelNotFound) String() string
type DeleteLabelOK ¶
type DeleteLabelOK struct { /* The ID of the corresponding request for the response */ XRequestID string }
DeleteLabelOK describes a response with status code 200, 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
func (*DeleteLabelOK) IsClientError ¶ added in v0.26.2
func (o *DeleteLabelOK) IsClientError() bool
IsClientError returns true when this delete label o k response has a 4xx status code
func (*DeleteLabelOK) IsCode ¶ added in v0.26.2
func (o *DeleteLabelOK) IsCode(code int) bool
IsCode returns true when this delete label o k response a status code equal to that given
func (*DeleteLabelOK) IsRedirect ¶ added in v0.26.2
func (o *DeleteLabelOK) IsRedirect() bool
IsRedirect returns true when this delete label o k response has a 3xx status code
func (*DeleteLabelOK) IsServerError ¶ added in v0.26.2
func (o *DeleteLabelOK) IsServerError() bool
IsServerError returns true when this delete label o k response has a 5xx status code
func (*DeleteLabelOK) IsSuccess ¶ added in v0.26.2
func (o *DeleteLabelOK) IsSuccess() bool
IsSuccess returns true when this delete label o k response has a 2xx status code
func (*DeleteLabelOK) String ¶ added in v0.26.2
func (o *DeleteLabelOK) String() string
type DeleteLabelParams ¶
type DeleteLabelParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* LabelID. Label ID Format: int64 */ 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 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 NewDeleteLabelParamsWithContext ¶
func NewDeleteLabelParamsWithContext(ctx context.Context) *DeleteLabelParams
NewDeleteLabelParamsWithContext creates a new DeleteLabelParams object with 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 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 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) SetDefaults ¶
func (o *DeleteLabelParams) SetDefaults()
SetDefaults hydrates default values in the delete label params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *DeleteLabelParams) WithDefaults() *DeleteLabelParams
WithDefaults hydrates default values in the delete label params (not the query body).
All values with no default are reset to their zero value.
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 { string }XRequestID
DeleteLabelUnauthorized describes a response with status code 401, 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() *models.Errors
func (*DeleteLabelUnauthorized) IsClientError ¶ added in v0.26.2
func (o *DeleteLabelUnauthorized) IsClientError() bool
IsClientError returns true when this delete label unauthorized response has a 4xx status code
func (*DeleteLabelUnauthorized) IsCode ¶ added in v0.26.2
func (o *DeleteLabelUnauthorized) IsCode(code int) bool
IsCode returns true when this delete label unauthorized response a status code equal to that given
func (*DeleteLabelUnauthorized) IsRedirect ¶ added in v0.26.2
func (o *DeleteLabelUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete label unauthorized response has a 3xx status code
func (*DeleteLabelUnauthorized) IsServerError ¶ added in v0.26.2
func (o *DeleteLabelUnauthorized) IsServerError() bool
IsServerError returns true when this delete label unauthorized response has a 5xx status code
func (*DeleteLabelUnauthorized) IsSuccess ¶ added in v0.26.2
func (o *DeleteLabelUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete label unauthorized response has a 2xx status code
func (*DeleteLabelUnauthorized) String ¶ added in v0.26.2
func (o *DeleteLabelUnauthorized) String() string
type GetLabelByIDInternalServerError ¶
type GetLabelByIDInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetLabelByIDInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetLabelByIDInternalServerError ¶
func NewGetLabelByIDInternalServerError() *GetLabelByIDInternalServerError
NewGetLabelByIDInternalServerError creates a GetLabelByIDInternalServerError with default headers values
func (*GetLabelByIDInternalServerError) Error ¶
func (o *GetLabelByIDInternalServerError) Error() string
func (*GetLabelByIDInternalServerError) GetPayload ¶
func (o *GetLabelByIDInternalServerError) GetPayload() *models.Errors
func (*GetLabelByIDInternalServerError) IsClientError ¶ added in v0.26.2
func (o *GetLabelByIDInternalServerError) IsClientError() bool
IsClientError returns true when this get label by Id internal server error response has a 4xx status code
func (*GetLabelByIDInternalServerError) IsCode ¶ added in v0.26.2
func (o *GetLabelByIDInternalServerError) IsCode(code int) bool
IsCode returns true when this get label by Id internal server error response a status code equal to that given
func (*GetLabelByIDInternalServerError) IsRedirect ¶ added in v0.26.2
func (o *GetLabelByIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this get label by Id internal server error response has a 3xx status code
func (*GetLabelByIDInternalServerError) IsServerError ¶ added in v0.26.2
func (o *GetLabelByIDInternalServerError) IsServerError() bool
IsServerError returns true when this get label by Id internal server error response has a 5xx status code
func (*GetLabelByIDInternalServerError) IsSuccess ¶ added in v0.26.2
func (o *GetLabelByIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this get label by Id internal server error response has a 2xx status code
func (*GetLabelByIDInternalServerError) String ¶ added in v0.26.2
func (o *GetLabelByIDInternalServerError) String() string
type GetLabelByIDNotFound ¶
type GetLabelByIDNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetLabelByIDNotFound describes a response with status code 404, 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() *models.Errors
func (*GetLabelByIDNotFound) IsClientError ¶ added in v0.26.2
func (o *GetLabelByIDNotFound) IsClientError() bool
IsClientError returns true when this get label by Id not found response has a 4xx status code
func (*GetLabelByIDNotFound) IsCode ¶ added in v0.26.2
func (o *GetLabelByIDNotFound) IsCode(code int) bool
IsCode returns true when this get label by Id not found response a status code equal to that given
func (*GetLabelByIDNotFound) IsRedirect ¶ added in v0.26.2
func (o *GetLabelByIDNotFound) IsRedirect() bool
IsRedirect returns true when this get label by Id not found response has a 3xx status code
func (*GetLabelByIDNotFound) IsServerError ¶ added in v0.26.2
func (o *GetLabelByIDNotFound) IsServerError() bool
IsServerError returns true when this get label by Id not found response has a 5xx status code
func (*GetLabelByIDNotFound) IsSuccess ¶ added in v0.26.2
func (o *GetLabelByIDNotFound) IsSuccess() bool
IsSuccess returns true when this get label by Id not found response has a 2xx status code
func (*GetLabelByIDNotFound) String ¶ added in v0.26.2
func (o *GetLabelByIDNotFound) String() string
type GetLabelByIDOK ¶
GetLabelByIDOK describes a response with status code 200, 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() *models.Label
func (*GetLabelByIDOK) IsClientError ¶ added in v0.26.2
func (o *GetLabelByIDOK) IsClientError() bool
IsClientError returns true when this get label by Id o k response has a 4xx status code
func (*GetLabelByIDOK) IsCode ¶ added in v0.26.2
func (o *GetLabelByIDOK) IsCode(code int) bool
IsCode returns true when this get label by Id o k response a status code equal to that given
func (*GetLabelByIDOK) IsRedirect ¶ added in v0.26.2
func (o *GetLabelByIDOK) IsRedirect() bool
IsRedirect returns true when this get label by Id o k response has a 3xx status code
func (*GetLabelByIDOK) IsServerError ¶ added in v0.26.2
func (o *GetLabelByIDOK) IsServerError() bool
IsServerError returns true when this get label by Id o k response has a 5xx status code
func (*GetLabelByIDOK) IsSuccess ¶ added in v0.26.2
func (o *GetLabelByIDOK) IsSuccess() bool
IsSuccess returns true when this get label by Id o k response has a 2xx status code
func (*GetLabelByIDOK) String ¶ added in v0.26.2
func (o *GetLabelByIDOK) String() string
type GetLabelByIDParams ¶
type GetLabelByIDParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* LabelID. Label ID Format: int64 */ 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 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 NewGetLabelByIDParamsWithContext ¶
func NewGetLabelByIDParamsWithContext(ctx context.Context) *GetLabelByIDParams
NewGetLabelByIDParamsWithContext creates a new GetLabelByIDParams object with 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 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 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) SetDefaults ¶
func (o *GetLabelByIDParams) SetDefaults()
SetDefaults hydrates default values in the get label by ID params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *GetLabelByIDParams) WithContext(ctx context.Context) *GetLabelByIDParams
WithContext adds the context to the get label by ID params
func (*GetLabelByIDParams) WithDefaults ¶
func (o *GetLabelByIDParams) WithDefaults() *GetLabelByIDParams
WithDefaults hydrates default values in the get label by ID params (not the query body).
All values with no default are reset to their zero value.
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 { string }XRequestID
GetLabelByIDUnauthorized describes a response with status code 401, 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() *models.Errors
func (*GetLabelByIDUnauthorized) IsClientError ¶ added in v0.26.2
func (o *GetLabelByIDUnauthorized) IsClientError() bool
IsClientError returns true when this get label by Id unauthorized response has a 4xx status code
func (*GetLabelByIDUnauthorized) IsCode ¶ added in v0.26.2
func (o *GetLabelByIDUnauthorized) IsCode(code int) bool
IsCode returns true when this get label by Id unauthorized response a status code equal to that given
func (*GetLabelByIDUnauthorized) IsRedirect ¶ added in v0.26.2
func (o *GetLabelByIDUnauthorized) IsRedirect() bool
IsRedirect returns true when this get label by Id unauthorized response has a 3xx status code
func (*GetLabelByIDUnauthorized) IsServerError ¶ added in v0.26.2
func (o *GetLabelByIDUnauthorized) IsServerError() bool
IsServerError returns true when this get label by Id unauthorized response has a 5xx status code
func (*GetLabelByIDUnauthorized) IsSuccess ¶ added in v0.26.2
func (o *GetLabelByIDUnauthorized) IsSuccess() bool
IsSuccess returns true when this get label by Id unauthorized response has a 2xx status code
func (*GetLabelByIDUnauthorized) String ¶ added in v0.26.2
func (o *GetLabelByIDUnauthorized) String() string
type ListLabelsBadRequest ¶
type ListLabelsBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListLabelsBadRequest describes a response with status code 400, 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() *models.Errors
func (*ListLabelsBadRequest) IsClientError ¶ added in v0.26.2
func (o *ListLabelsBadRequest) IsClientError() bool
IsClientError returns true when this list labels bad request response has a 4xx status code
func (*ListLabelsBadRequest) IsCode ¶ added in v0.26.2
func (o *ListLabelsBadRequest) IsCode(code int) bool
IsCode returns true when this list labels bad request response a status code equal to that given
func (*ListLabelsBadRequest) IsRedirect ¶ added in v0.26.2
func (o *ListLabelsBadRequest) IsRedirect() bool
IsRedirect returns true when this list labels bad request response has a 3xx status code
func (*ListLabelsBadRequest) IsServerError ¶ added in v0.26.2
func (o *ListLabelsBadRequest) IsServerError() bool
IsServerError returns true when this list labels bad request response has a 5xx status code
func (*ListLabelsBadRequest) IsSuccess ¶ added in v0.26.2
func (o *ListLabelsBadRequest) IsSuccess() bool
IsSuccess returns true when this list labels bad request response has a 2xx status code
func (*ListLabelsBadRequest) String ¶ added in v0.26.2
func (o *ListLabelsBadRequest) String() string
type ListLabelsInternalServerError ¶
type ListLabelsInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListLabelsInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewListLabelsInternalServerError ¶
func NewListLabelsInternalServerError() *ListLabelsInternalServerError
NewListLabelsInternalServerError creates a ListLabelsInternalServerError with default headers values
func (*ListLabelsInternalServerError) Error ¶
func (o *ListLabelsInternalServerError) Error() string
func (*ListLabelsInternalServerError) GetPayload ¶
func (o *ListLabelsInternalServerError) GetPayload() *models.Errors
func (*ListLabelsInternalServerError) IsClientError ¶ added in v0.26.2
func (o *ListLabelsInternalServerError) IsClientError() bool
IsClientError returns true when this list labels internal server error response has a 4xx status code
func (*ListLabelsInternalServerError) IsCode ¶ added in v0.26.2
func (o *ListLabelsInternalServerError) IsCode(code int) bool
IsCode returns true when this list labels internal server error response a status code equal to that given
func (*ListLabelsInternalServerError) IsRedirect ¶ added in v0.26.2
func (o *ListLabelsInternalServerError) IsRedirect() bool
IsRedirect returns true when this list labels internal server error response has a 3xx status code
func (*ListLabelsInternalServerError) IsServerError ¶ added in v0.26.2
func (o *ListLabelsInternalServerError) IsServerError() bool
IsServerError returns true when this list labels internal server error response has a 5xx status code
func (*ListLabelsInternalServerError) IsSuccess ¶ added in v0.26.2
func (o *ListLabelsInternalServerError) IsSuccess() bool
IsSuccess returns true when this list labels internal server error response has a 2xx status code
func (*ListLabelsInternalServerError) String ¶ added in v0.26.2
func (o *ListLabelsInternalServerError) String() string
type ListLabelsOK ¶
type ListLabelsOK struct { /* Link to previous page and next page */ Link string /* The total count of available items */ XTotalCount int64 Payload []*models.Label }
ListLabelsOK describes a response with status code 200, 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() []*models.Label
func (*ListLabelsOK) IsClientError ¶ added in v0.26.2
func (o *ListLabelsOK) IsClientError() bool
IsClientError returns true when this list labels o k response has a 4xx status code
func (*ListLabelsOK) IsCode ¶ added in v0.26.2
func (o *ListLabelsOK) IsCode(code int) bool
IsCode returns true when this list labels o k response a status code equal to that given
func (*ListLabelsOK) IsRedirect ¶ added in v0.26.2
func (o *ListLabelsOK) IsRedirect() bool
IsRedirect returns true when this list labels o k response has a 3xx status code
func (*ListLabelsOK) IsServerError ¶ added in v0.26.2
func (o *ListLabelsOK) IsServerError() bool
IsServerError returns true when this list labels o k response has a 5xx status code
func (*ListLabelsOK) IsSuccess ¶ added in v0.26.2
func (o *ListLabelsOK) IsSuccess() bool
IsSuccess returns true when this list labels o k response has a 2xx status code
func (*ListLabelsOK) String ¶ added in v0.26.2
func (o *ListLabelsOK) String() string
type ListLabelsParams ¶
type ListLabelsParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Name. The label name. */ Name *string /* Page. The page number Format: int64 Default: 1 */ Page *int64 /* PageSize. The size of per page Format: int64 Default: 10 */ PageSize *int64 /* ProjectID. Relevant project ID, required when scope is p. Format: int64 */ 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 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 NewListLabelsParamsWithContext ¶
func NewListLabelsParamsWithContext(ctx context.Context) *ListLabelsParams
NewListLabelsParamsWithContext creates a new ListLabelsParams object with 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 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 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) SetDefaults ¶
func (o *ListLabelsParams) SetDefaults()
SetDefaults hydrates default values in the list labels params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *ListLabelsParams) WithDefaults() *ListLabelsParams
WithDefaults hydrates default values in the list labels params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *ListLabelsParams) WithQ(q *string) *ListLabelsParams
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 { string }XRequestID
ListLabelsUnauthorized describes a response with status code 401, 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() *models.Errors
func (*ListLabelsUnauthorized) IsClientError ¶ added in v0.26.2
func (o *ListLabelsUnauthorized) IsClientError() bool
IsClientError returns true when this list labels unauthorized response has a 4xx status code
func (*ListLabelsUnauthorized) IsCode ¶ added in v0.26.2
func (o *ListLabelsUnauthorized) IsCode(code int) bool
IsCode returns true when this list labels unauthorized response a status code equal to that given
func (*ListLabelsUnauthorized) IsRedirect ¶ added in v0.26.2
func (o *ListLabelsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list labels unauthorized response has a 3xx status code
func (*ListLabelsUnauthorized) IsServerError ¶ added in v0.26.2
func (o *ListLabelsUnauthorized) IsServerError() bool
IsServerError returns true when this list labels unauthorized response has a 5xx status code
func (*ListLabelsUnauthorized) IsSuccess ¶ added in v0.26.2
func (o *ListLabelsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list labels unauthorized response has a 2xx status code
func (*ListLabelsUnauthorized) String ¶ added in v0.26.2
func (o *ListLabelsUnauthorized) String() string
type UpdateLabelBadRequest ¶
type UpdateLabelBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateLabelBadRequest describes a response with status code 400, 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() *models.Errors
func (*UpdateLabelBadRequest) IsClientError ¶ added in v0.26.2
func (o *UpdateLabelBadRequest) IsClientError() bool
IsClientError returns true when this update label bad request response has a 4xx status code
func (*UpdateLabelBadRequest) IsCode ¶ added in v0.26.2
func (o *UpdateLabelBadRequest) IsCode(code int) bool
IsCode returns true when this update label bad request response a status code equal to that given
func (*UpdateLabelBadRequest) IsRedirect ¶ added in v0.26.2
func (o *UpdateLabelBadRequest) IsRedirect() bool
IsRedirect returns true when this update label bad request response has a 3xx status code
func (*UpdateLabelBadRequest) IsServerError ¶ added in v0.26.2
func (o *UpdateLabelBadRequest) IsServerError() bool
IsServerError returns true when this update label bad request response has a 5xx status code
func (*UpdateLabelBadRequest) IsSuccess ¶ added in v0.26.2
func (o *UpdateLabelBadRequest) IsSuccess() bool
IsSuccess returns true when this update label bad request response has a 2xx status code
func (*UpdateLabelBadRequest) String ¶ added in v0.26.2
func (o *UpdateLabelBadRequest) String() string
type UpdateLabelConflict ¶
type UpdateLabelConflict struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateLabelConflict describes a response with status code 409, 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() *models.Errors
func (*UpdateLabelConflict) IsClientError ¶ added in v0.26.2
func (o *UpdateLabelConflict) IsClientError() bool
IsClientError returns true when this update label conflict response has a 4xx status code
func (*UpdateLabelConflict) IsCode ¶ added in v0.26.2
func (o *UpdateLabelConflict) IsCode(code int) bool
IsCode returns true when this update label conflict response a status code equal to that given
func (*UpdateLabelConflict) IsRedirect ¶ added in v0.26.2
func (o *UpdateLabelConflict) IsRedirect() bool
IsRedirect returns true when this update label conflict response has a 3xx status code
func (*UpdateLabelConflict) IsServerError ¶ added in v0.26.2
func (o *UpdateLabelConflict) IsServerError() bool
IsServerError returns true when this update label conflict response has a 5xx status code
func (*UpdateLabelConflict) IsSuccess ¶ added in v0.26.2
func (o *UpdateLabelConflict) IsSuccess() bool
IsSuccess returns true when this update label conflict response has a 2xx status code
func (*UpdateLabelConflict) String ¶ added in v0.26.2
func (o *UpdateLabelConflict) String() string
type UpdateLabelInternalServerError ¶
type UpdateLabelInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateLabelInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewUpdateLabelInternalServerError ¶
func NewUpdateLabelInternalServerError() *UpdateLabelInternalServerError
NewUpdateLabelInternalServerError creates a UpdateLabelInternalServerError with default headers values
func (*UpdateLabelInternalServerError) Error ¶
func (o *UpdateLabelInternalServerError) Error() string
func (*UpdateLabelInternalServerError) GetPayload ¶
func (o *UpdateLabelInternalServerError) GetPayload() *models.Errors
func (*UpdateLabelInternalServerError) IsClientError ¶ added in v0.26.2
func (o *UpdateLabelInternalServerError) IsClientError() bool
IsClientError returns true when this update label internal server error response has a 4xx status code
func (*UpdateLabelInternalServerError) IsCode ¶ added in v0.26.2
func (o *UpdateLabelInternalServerError) IsCode(code int) bool
IsCode returns true when this update label internal server error response a status code equal to that given
func (*UpdateLabelInternalServerError) IsRedirect ¶ added in v0.26.2
func (o *UpdateLabelInternalServerError) IsRedirect() bool
IsRedirect returns true when this update label internal server error response has a 3xx status code
func (*UpdateLabelInternalServerError) IsServerError ¶ added in v0.26.2
func (o *UpdateLabelInternalServerError) IsServerError() bool
IsServerError returns true when this update label internal server error response has a 5xx status code
func (*UpdateLabelInternalServerError) IsSuccess ¶ added in v0.26.2
func (o *UpdateLabelInternalServerError) IsSuccess() bool
IsSuccess returns true when this update label internal server error response has a 2xx status code
func (*UpdateLabelInternalServerError) String ¶ added in v0.26.2
func (o *UpdateLabelInternalServerError) String() string
type UpdateLabelNotFound ¶
type UpdateLabelNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateLabelNotFound describes a response with status code 404, 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() *models.Errors
func (*UpdateLabelNotFound) IsClientError ¶ added in v0.26.2
func (o *UpdateLabelNotFound) IsClientError() bool
IsClientError returns true when this update label not found response has a 4xx status code
func (*UpdateLabelNotFound) IsCode ¶ added in v0.26.2
func (o *UpdateLabelNotFound) IsCode(code int) bool
IsCode returns true when this update label not found response a status code equal to that given
func (*UpdateLabelNotFound) IsRedirect ¶ added in v0.26.2
func (o *UpdateLabelNotFound) IsRedirect() bool
IsRedirect returns true when this update label not found response has a 3xx status code
func (*UpdateLabelNotFound) IsServerError ¶ added in v0.26.2
func (o *UpdateLabelNotFound) IsServerError() bool
IsServerError returns true when this update label not found response has a 5xx status code
func (*UpdateLabelNotFound) IsSuccess ¶ added in v0.26.2
func (o *UpdateLabelNotFound) IsSuccess() bool
IsSuccess returns true when this update label not found response has a 2xx status code
func (*UpdateLabelNotFound) String ¶ added in v0.26.2
func (o *UpdateLabelNotFound) String() string
type UpdateLabelOK ¶
type UpdateLabelOK struct { /* The ID of the corresponding request for the response */ XRequestID string }
UpdateLabelOK describes a response with status code 200, 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
func (*UpdateLabelOK) IsClientError ¶ added in v0.26.2
func (o *UpdateLabelOK) IsClientError() bool
IsClientError returns true when this update label o k response has a 4xx status code
func (*UpdateLabelOK) IsCode ¶ added in v0.26.2
func (o *UpdateLabelOK) IsCode(code int) bool
IsCode returns true when this update label o k response a status code equal to that given
func (*UpdateLabelOK) IsRedirect ¶ added in v0.26.2
func (o *UpdateLabelOK) IsRedirect() bool
IsRedirect returns true when this update label o k response has a 3xx status code
func (*UpdateLabelOK) IsServerError ¶ added in v0.26.2
func (o *UpdateLabelOK) IsServerError() bool
IsServerError returns true when this update label o k response has a 5xx status code
func (*UpdateLabelOK) IsSuccess ¶ added in v0.26.2
func (o *UpdateLabelOK) IsSuccess() bool
IsSuccess returns true when this update label o k response has a 2xx status code
func (*UpdateLabelOK) String ¶ added in v0.26.2
func (o *UpdateLabelOK) String() string
type UpdateLabelParams ¶
type UpdateLabelParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Label. The updated label json object. */ Label *models.Label /* LabelID. Label ID Format: int64 */ 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 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 NewUpdateLabelParamsWithContext ¶
func NewUpdateLabelParamsWithContext(ctx context.Context) *UpdateLabelParams
NewUpdateLabelParamsWithContext creates a new UpdateLabelParams object with 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 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 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) SetDefaults ¶
func (o *UpdateLabelParams) SetDefaults()
SetDefaults hydrates default values in the update label params (not the query body).
All values with no default are reset to their zero value.
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 *models.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) WithDefaults ¶
func (o *UpdateLabelParams) WithDefaults() *UpdateLabelParams
WithDefaults hydrates default values in the update label params (not the query body).
All values with no default are reset to their zero value.
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 *models.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 { string }XRequestID
UpdateLabelUnauthorized describes a response with status code 401, 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() *models.Errors
func (*UpdateLabelUnauthorized) IsClientError ¶ added in v0.26.2
func (o *UpdateLabelUnauthorized) IsClientError() bool
IsClientError returns true when this update label unauthorized response has a 4xx status code
func (*UpdateLabelUnauthorized) IsCode ¶ added in v0.26.2
func (o *UpdateLabelUnauthorized) IsCode(code int) bool
IsCode returns true when this update label unauthorized response a status code equal to that given
func (*UpdateLabelUnauthorized) IsRedirect ¶ added in v0.26.2
func (o *UpdateLabelUnauthorized) IsRedirect() bool
IsRedirect returns true when this update label unauthorized response has a 3xx status code
func (*UpdateLabelUnauthorized) IsServerError ¶ added in v0.26.2
func (o *UpdateLabelUnauthorized) IsServerError() bool
IsServerError returns true when this update label unauthorized response has a 5xx status code
func (*UpdateLabelUnauthorized) IsSuccess ¶ added in v0.26.2
func (o *UpdateLabelUnauthorized) IsSuccess() bool
IsSuccess returns true when this update label unauthorized response has a 2xx status code
func (*UpdateLabelUnauthorized) String ¶ added in v0.26.2
func (o *UpdateLabelUnauthorized) String() string