label

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLabelsToResourcesBadRequest

type AddLabelsToResourcesBadRequest struct {
	Payload string
}
AddLabelsToResourcesBadRequest describes a response with status code 400, with default header values.

AddLabelsToResourcesBadRequest add labels to resources bad request

func NewAddLabelsToResourcesBadRequest

func NewAddLabelsToResourcesBadRequest() *AddLabelsToResourcesBadRequest

NewAddLabelsToResourcesBadRequest creates a AddLabelsToResourcesBadRequest with default headers values

func (*AddLabelsToResourcesBadRequest) Error

func (*AddLabelsToResourcesBadRequest) GetPayload

func (o *AddLabelsToResourcesBadRequest) GetPayload() string

type AddLabelsToResourcesOK

type AddLabelsToResourcesOK struct {
	Payload []*models.WithTaskLabel
}
AddLabelsToResourcesOK describes a response with status code 200, with default header values.

Ok

func NewAddLabelsToResourcesOK

func NewAddLabelsToResourcesOK() *AddLabelsToResourcesOK

NewAddLabelsToResourcesOK creates a AddLabelsToResourcesOK with default headers values

func (*AddLabelsToResourcesOK) Error

func (o *AddLabelsToResourcesOK) Error() string

func (*AddLabelsToResourcesOK) GetPayload

func (o *AddLabelsToResourcesOK) GetPayload() []*models.WithTaskLabel

type AddLabelsToResourcesParams

type AddLabelsToResourcesParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.AddLabelsToResourcesParams

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

AddLabelsToResourcesParams contains all the parameters to send to the API endpoint

for the add labels to resources operation.

Typically these are written to a http.Request.

func NewAddLabelsToResourcesParams

func NewAddLabelsToResourcesParams() *AddLabelsToResourcesParams

NewAddLabelsToResourcesParams creates a new AddLabelsToResourcesParams 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 NewAddLabelsToResourcesParamsWithContext

func NewAddLabelsToResourcesParamsWithContext(ctx context.Context) *AddLabelsToResourcesParams

NewAddLabelsToResourcesParamsWithContext creates a new AddLabelsToResourcesParams object with the ability to set a context for a request.

func NewAddLabelsToResourcesParamsWithHTTPClient

func NewAddLabelsToResourcesParamsWithHTTPClient(client *http.Client) *AddLabelsToResourcesParams

NewAddLabelsToResourcesParamsWithHTTPClient creates a new AddLabelsToResourcesParams object with the ability to set a custom HTTPClient for a request.

func NewAddLabelsToResourcesParamsWithTimeout

func NewAddLabelsToResourcesParamsWithTimeout(timeout time.Duration) *AddLabelsToResourcesParams

NewAddLabelsToResourcesParamsWithTimeout creates a new AddLabelsToResourcesParams object with the ability to set a timeout on a request.

func (*AddLabelsToResourcesParams) SetContentLanguage

func (o *AddLabelsToResourcesParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the add labels to resources params

func (*AddLabelsToResourcesParams) SetContext

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

SetContext adds the context to the add labels to resources params

func (*AddLabelsToResourcesParams) SetDefaults

func (o *AddLabelsToResourcesParams) SetDefaults()

SetDefaults hydrates default values in the add labels to resources params (not the query body).

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

func (*AddLabelsToResourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add labels to resources params

func (*AddLabelsToResourcesParams) SetRequestBody

func (o *AddLabelsToResourcesParams) SetRequestBody(requestBody *models.AddLabelsToResourcesParams)

SetRequestBody adds the requestBody to the add labels to resources params

func (*AddLabelsToResourcesParams) SetTimeout

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

SetTimeout adds the timeout to the add labels to resources params

func (*AddLabelsToResourcesParams) WithContentLanguage

func (o *AddLabelsToResourcesParams) WithContentLanguage(contentLanguage *string) *AddLabelsToResourcesParams

WithContentLanguage adds the contentLanguage to the add labels to resources params

func (*AddLabelsToResourcesParams) WithContext

WithContext adds the context to the add labels to resources params

func (*AddLabelsToResourcesParams) WithDefaults

WithDefaults hydrates default values in the add labels to resources params (not the query body).

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

func (*AddLabelsToResourcesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the add labels to resources params

func (*AddLabelsToResourcesParams) WithRequestBody

WithRequestBody adds the requestBody to the add labels to resources params

func (*AddLabelsToResourcesParams) WithTimeout

WithTimeout adds the timeout to the add labels to resources params

func (*AddLabelsToResourcesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddLabelsToResourcesReader

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

AddLabelsToResourcesReader is a Reader for the AddLabelsToResources structure.

func (*AddLabelsToResourcesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for label API

func (*Client) AddLabelsToResources

func (a *Client) AddLabelsToResources(params *AddLabelsToResourcesParams, opts ...ClientOption) (*AddLabelsToResourcesOK, error)

AddLabelsToResources add labels to resources API

func (*Client) CreateLabel

func (a *Client) CreateLabel(params *CreateLabelParams, opts ...ClientOption) (*CreateLabelOK, error)

CreateLabel create label API

func (*Client) DeleteLabel

func (a *Client) DeleteLabel(params *DeleteLabelParams, opts ...ClientOption) (*DeleteLabelOK, error)

DeleteLabel delete label API

func (*Client) GetLabels

func (a *Client) GetLabels(params *GetLabelsParams, opts ...ClientOption) (*GetLabelsOK, error)

GetLabels get labels API

func (*Client) GetLabelsConnection

func (a *Client) GetLabelsConnection(params *GetLabelsConnectionParams, opts ...ClientOption) (*GetLabelsConnectionOK, error)

GetLabelsConnection get labels connection API

func (*Client) RemoveLabelsFromResources

func (a *Client) RemoveLabelsFromResources(params *RemoveLabelsFromResourcesParams, opts ...ClientOption) (*RemoveLabelsFromResourcesOK, error)

RemoveLabelsFromResources remove labels from resources API

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, opts ...ClientOption) (*UpdateLabelOK, error)

UpdateLabel update label API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddLabelsToResources(params *AddLabelsToResourcesParams, opts ...ClientOption) (*AddLabelsToResourcesOK, error)

	CreateLabel(params *CreateLabelParams, opts ...ClientOption) (*CreateLabelOK, error)

	DeleteLabel(params *DeleteLabelParams, opts ...ClientOption) (*DeleteLabelOK, error)

	GetLabels(params *GetLabelsParams, opts ...ClientOption) (*GetLabelsOK, error)

	GetLabelsConnection(params *GetLabelsConnectionParams, opts ...ClientOption) (*GetLabelsConnectionOK, error)

	RemoveLabelsFromResources(params *RemoveLabelsFromResourcesParams, opts ...ClientOption) (*RemoveLabelsFromResourcesOK, error)

	UpdateLabel(params *UpdateLabelParams, opts ...ClientOption) (*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 {
	Payload string
}
CreateLabelBadRequest describes a response with status code 400, with default header values.

CreateLabelBadRequest create label 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() string

type CreateLabelOK

type CreateLabelOK struct {
	Payload []*models.WithTaskLabel
}
CreateLabelOK describes a response with status code 200, with default header values.

Ok

func NewCreateLabelOK

func NewCreateLabelOK() *CreateLabelOK

NewCreateLabelOK creates a CreateLabelOK with default headers values

func (*CreateLabelOK) Error

func (o *CreateLabelOK) Error() string

func (*CreateLabelOK) GetPayload

func (o *CreateLabelOK) GetPayload() []*models.WithTaskLabel

type CreateLabelParams

type CreateLabelParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.LabelCreationParams

	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) SetContentLanguage

func (o *CreateLabelParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create label params

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) SetRequestBody

func (o *CreateLabelParams) SetRequestBody(requestBody []*models.LabelCreationParams)

SetRequestBody adds the requestBody 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) WithContentLanguage

func (o *CreateLabelParams) WithContentLanguage(contentLanguage *string) *CreateLabelParams

WithContentLanguage adds the contentLanguage 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) WithRequestBody

func (o *CreateLabelParams) WithRequestBody(requestBody []*models.LabelCreationParams) *CreateLabelParams

WithRequestBody adds the requestBody 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) 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 DeleteLabelBadRequest

type DeleteLabelBadRequest struct {
	Payload string
}
DeleteLabelBadRequest describes a response with status code 400, with default header values.

DeleteLabelBadRequest delete label 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() string

type DeleteLabelOK

type DeleteLabelOK struct {
	Payload []*models.WithTaskDeleteLabel
}
DeleteLabelOK describes a response with status code 200, with default header values.

Ok

func NewDeleteLabelOK

func NewDeleteLabelOK() *DeleteLabelOK

NewDeleteLabelOK creates a DeleteLabelOK with default headers values

func (*DeleteLabelOK) Error

func (o *DeleteLabelOK) Error() string

func (*DeleteLabelOK) GetPayload

func (o *DeleteLabelOK) GetPayload() []*models.WithTaskDeleteLabel

type DeleteLabelParams

type DeleteLabelParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.LabelDeletionParams

	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) SetContentLanguage

func (o *DeleteLabelParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete label params

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) SetRequestBody

func (o *DeleteLabelParams) SetRequestBody(requestBody *models.LabelDeletionParams)

SetRequestBody adds the requestBody 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) WithContentLanguage

func (o *DeleteLabelParams) WithContentLanguage(contentLanguage *string) *DeleteLabelParams

WithContentLanguage adds the contentLanguage 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) WithRequestBody

func (o *DeleteLabelParams) WithRequestBody(requestBody *models.LabelDeletionParams) *DeleteLabelParams

WithRequestBody adds the requestBody 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) 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 GetLabelsBadRequest

type GetLabelsBadRequest struct {
	Payload string
}
GetLabelsBadRequest describes a response with status code 400, with default header values.

GetLabelsBadRequest get labels bad request

func NewGetLabelsBadRequest

func NewGetLabelsBadRequest() *GetLabelsBadRequest

NewGetLabelsBadRequest creates a GetLabelsBadRequest with default headers values

func (*GetLabelsBadRequest) Error

func (o *GetLabelsBadRequest) Error() string

func (*GetLabelsBadRequest) GetPayload

func (o *GetLabelsBadRequest) GetPayload() string

type GetLabelsConnectionBadRequest

type GetLabelsConnectionBadRequest struct {
	Payload string
}
GetLabelsConnectionBadRequest describes a response with status code 400, with default header values.

GetLabelsConnectionBadRequest get labels connection bad request

func NewGetLabelsConnectionBadRequest

func NewGetLabelsConnectionBadRequest() *GetLabelsConnectionBadRequest

NewGetLabelsConnectionBadRequest creates a GetLabelsConnectionBadRequest with default headers values

func (*GetLabelsConnectionBadRequest) Error

func (*GetLabelsConnectionBadRequest) GetPayload

func (o *GetLabelsConnectionBadRequest) GetPayload() string

type GetLabelsConnectionOK

type GetLabelsConnectionOK struct {
	Payload *models.LabelConnection
}
GetLabelsConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetLabelsConnectionOK

func NewGetLabelsConnectionOK() *GetLabelsConnectionOK

NewGetLabelsConnectionOK creates a GetLabelsConnectionOK with default headers values

func (*GetLabelsConnectionOK) Error

func (o *GetLabelsConnectionOK) Error() string

func (*GetLabelsConnectionOK) GetPayload

func (o *GetLabelsConnectionOK) GetPayload() *models.LabelConnection

type GetLabelsConnectionParams

type GetLabelsConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetLabelsConnectionRequestBody

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

GetLabelsConnectionParams contains all the parameters to send to the API endpoint

for the get labels connection operation.

Typically these are written to a http.Request.

func NewGetLabelsConnectionParams

func NewGetLabelsConnectionParams() *GetLabelsConnectionParams

NewGetLabelsConnectionParams creates a new GetLabelsConnectionParams 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 NewGetLabelsConnectionParamsWithContext

func NewGetLabelsConnectionParamsWithContext(ctx context.Context) *GetLabelsConnectionParams

NewGetLabelsConnectionParamsWithContext creates a new GetLabelsConnectionParams object with the ability to set a context for a request.

func NewGetLabelsConnectionParamsWithHTTPClient

func NewGetLabelsConnectionParamsWithHTTPClient(client *http.Client) *GetLabelsConnectionParams

NewGetLabelsConnectionParamsWithHTTPClient creates a new GetLabelsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetLabelsConnectionParamsWithTimeout

func NewGetLabelsConnectionParamsWithTimeout(timeout time.Duration) *GetLabelsConnectionParams

NewGetLabelsConnectionParamsWithTimeout creates a new GetLabelsConnectionParams object with the ability to set a timeout on a request.

func (*GetLabelsConnectionParams) SetContentLanguage

func (o *GetLabelsConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get labels connection params

func (*GetLabelsConnectionParams) SetContext

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

SetContext adds the context to the get labels connection params

func (*GetLabelsConnectionParams) SetDefaults

func (o *GetLabelsConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get labels connection params (not the query body).

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

func (*GetLabelsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get labels connection params

func (*GetLabelsConnectionParams) SetRequestBody

func (o *GetLabelsConnectionParams) SetRequestBody(requestBody *models.GetLabelsConnectionRequestBody)

SetRequestBody adds the requestBody to the get labels connection params

func (*GetLabelsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get labels connection params

func (*GetLabelsConnectionParams) WithContentLanguage

func (o *GetLabelsConnectionParams) WithContentLanguage(contentLanguage *string) *GetLabelsConnectionParams

WithContentLanguage adds the contentLanguage to the get labels connection params

func (*GetLabelsConnectionParams) WithContext

WithContext adds the context to the get labels connection params

func (*GetLabelsConnectionParams) WithDefaults

WithDefaults hydrates default values in the get labels connection params (not the query body).

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

func (*GetLabelsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get labels connection params

func (*GetLabelsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get labels connection params

func (*GetLabelsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get labels connection params

func (*GetLabelsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLabelsConnectionReader

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

GetLabelsConnectionReader is a Reader for the GetLabelsConnection structure.

func (*GetLabelsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLabelsOK

type GetLabelsOK struct {
	Payload []*models.Label
}
GetLabelsOK describes a response with status code 200, with default header values.

Ok

func NewGetLabelsOK

func NewGetLabelsOK() *GetLabelsOK

NewGetLabelsOK creates a GetLabelsOK with default headers values

func (*GetLabelsOK) Error

func (o *GetLabelsOK) Error() string

func (*GetLabelsOK) GetPayload

func (o *GetLabelsOK) GetPayload() []*models.Label

type GetLabelsParams

type GetLabelsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetLabelsRequestBody

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

GetLabelsParams contains all the parameters to send to the API endpoint

for the get labels operation.

Typically these are written to a http.Request.

func NewGetLabelsParams

func NewGetLabelsParams() *GetLabelsParams

NewGetLabelsParams creates a new GetLabelsParams 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 NewGetLabelsParamsWithContext

func NewGetLabelsParamsWithContext(ctx context.Context) *GetLabelsParams

NewGetLabelsParamsWithContext creates a new GetLabelsParams object with the ability to set a context for a request.

func NewGetLabelsParamsWithHTTPClient

func NewGetLabelsParamsWithHTTPClient(client *http.Client) *GetLabelsParams

NewGetLabelsParamsWithHTTPClient creates a new GetLabelsParams object with the ability to set a custom HTTPClient for a request.

func NewGetLabelsParamsWithTimeout

func NewGetLabelsParamsWithTimeout(timeout time.Duration) *GetLabelsParams

NewGetLabelsParamsWithTimeout creates a new GetLabelsParams object with the ability to set a timeout on a request.

func (*GetLabelsParams) SetContentLanguage

func (o *GetLabelsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get labels params

func (*GetLabelsParams) SetContext

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

SetContext adds the context to the get labels params

func (*GetLabelsParams) SetDefaults

func (o *GetLabelsParams) SetDefaults()

SetDefaults hydrates default values in the get labels params (not the query body).

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

func (*GetLabelsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get labels params

func (*GetLabelsParams) SetRequestBody

func (o *GetLabelsParams) SetRequestBody(requestBody *models.GetLabelsRequestBody)

SetRequestBody adds the requestBody to the get labels params

func (*GetLabelsParams) SetTimeout

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

SetTimeout adds the timeout to the get labels params

func (*GetLabelsParams) WithContentLanguage

func (o *GetLabelsParams) WithContentLanguage(contentLanguage *string) *GetLabelsParams

WithContentLanguage adds the contentLanguage to the get labels params

func (*GetLabelsParams) WithContext

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

WithContext adds the context to the get labels params

func (*GetLabelsParams) WithDefaults

func (o *GetLabelsParams) WithDefaults() *GetLabelsParams

WithDefaults hydrates default values in the get labels params (not the query body).

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

func (*GetLabelsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get labels params

func (*GetLabelsParams) WithRequestBody

func (o *GetLabelsParams) WithRequestBody(requestBody *models.GetLabelsRequestBody) *GetLabelsParams

WithRequestBody adds the requestBody to the get labels params

func (*GetLabelsParams) WithTimeout

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

WithTimeout adds the timeout to the get labels params

func (*GetLabelsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLabelsReader

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

GetLabelsReader is a Reader for the GetLabels structure.

func (*GetLabelsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveLabelsFromResourcesBadRequest

type RemoveLabelsFromResourcesBadRequest struct {
	Payload string
}
RemoveLabelsFromResourcesBadRequest describes a response with status code 400, with default header values.

RemoveLabelsFromResourcesBadRequest remove labels from resources bad request

func NewRemoveLabelsFromResourcesBadRequest

func NewRemoveLabelsFromResourcesBadRequest() *RemoveLabelsFromResourcesBadRequest

NewRemoveLabelsFromResourcesBadRequest creates a RemoveLabelsFromResourcesBadRequest with default headers values

func (*RemoveLabelsFromResourcesBadRequest) Error

func (*RemoveLabelsFromResourcesBadRequest) GetPayload

type RemoveLabelsFromResourcesOK

type RemoveLabelsFromResourcesOK struct {
	Payload []*models.WithTaskLabel
}
RemoveLabelsFromResourcesOK describes a response with status code 200, with default header values.

Ok

func NewRemoveLabelsFromResourcesOK

func NewRemoveLabelsFromResourcesOK() *RemoveLabelsFromResourcesOK

NewRemoveLabelsFromResourcesOK creates a RemoveLabelsFromResourcesOK with default headers values

func (*RemoveLabelsFromResourcesOK) Error

func (*RemoveLabelsFromResourcesOK) GetPayload

type RemoveLabelsFromResourcesParams

type RemoveLabelsFromResourcesParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.RemoveLabelsFromResourcesParams

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

RemoveLabelsFromResourcesParams contains all the parameters to send to the API endpoint

for the remove labels from resources operation.

Typically these are written to a http.Request.

func NewRemoveLabelsFromResourcesParams

func NewRemoveLabelsFromResourcesParams() *RemoveLabelsFromResourcesParams

NewRemoveLabelsFromResourcesParams creates a new RemoveLabelsFromResourcesParams 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 NewRemoveLabelsFromResourcesParamsWithContext

func NewRemoveLabelsFromResourcesParamsWithContext(ctx context.Context) *RemoveLabelsFromResourcesParams

NewRemoveLabelsFromResourcesParamsWithContext creates a new RemoveLabelsFromResourcesParams object with the ability to set a context for a request.

func NewRemoveLabelsFromResourcesParamsWithHTTPClient

func NewRemoveLabelsFromResourcesParamsWithHTTPClient(client *http.Client) *RemoveLabelsFromResourcesParams

NewRemoveLabelsFromResourcesParamsWithHTTPClient creates a new RemoveLabelsFromResourcesParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveLabelsFromResourcesParamsWithTimeout

func NewRemoveLabelsFromResourcesParamsWithTimeout(timeout time.Duration) *RemoveLabelsFromResourcesParams

NewRemoveLabelsFromResourcesParamsWithTimeout creates a new RemoveLabelsFromResourcesParams object with the ability to set a timeout on a request.

func (*RemoveLabelsFromResourcesParams) SetContentLanguage

func (o *RemoveLabelsFromResourcesParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) SetContext

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

SetContext adds the context to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) SetDefaults

func (o *RemoveLabelsFromResourcesParams) SetDefaults()

SetDefaults hydrates default values in the remove labels from resources params (not the query body).

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

func (*RemoveLabelsFromResourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) SetRequestBody

SetRequestBody adds the requestBody to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) SetTimeout

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

SetTimeout adds the timeout to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) WithContentLanguage

func (o *RemoveLabelsFromResourcesParams) WithContentLanguage(contentLanguage *string) *RemoveLabelsFromResourcesParams

WithContentLanguage adds the contentLanguage to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) WithContext

WithContext adds the context to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) WithDefaults

WithDefaults hydrates default values in the remove labels from resources params (not the query body).

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

func (*RemoveLabelsFromResourcesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) WithRequestBody

WithRequestBody adds the requestBody to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) WithTimeout

WithTimeout adds the timeout to the remove labels from resources params

func (*RemoveLabelsFromResourcesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RemoveLabelsFromResourcesReader

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

RemoveLabelsFromResourcesReader is a Reader for the RemoveLabelsFromResources structure.

func (*RemoveLabelsFromResourcesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLabelBadRequest

type UpdateLabelBadRequest struct {
	Payload string
}
UpdateLabelBadRequest describes a response with status code 400, with default header values.

UpdateLabelBadRequest update label 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() string

type UpdateLabelOK

type UpdateLabelOK struct {
	Payload []*models.WithTaskLabel
}
UpdateLabelOK describes a response with status code 200, with default header values.

Ok

func NewUpdateLabelOK

func NewUpdateLabelOK() *UpdateLabelOK

NewUpdateLabelOK creates a UpdateLabelOK with default headers values

func (*UpdateLabelOK) Error

func (o *UpdateLabelOK) Error() string

func (*UpdateLabelOK) GetPayload

func (o *UpdateLabelOK) GetPayload() []*models.WithTaskLabel

type UpdateLabelParams

type UpdateLabelParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.LabelUpdationParams

	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) SetContentLanguage

func (o *UpdateLabelParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update label params

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) SetRequestBody

func (o *UpdateLabelParams) SetRequestBody(requestBody *models.LabelUpdationParams)

SetRequestBody adds the requestBody 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) WithContentLanguage

func (o *UpdateLabelParams) WithContentLanguage(contentLanguage *string) *UpdateLabelParams

WithContentLanguage adds the contentLanguage 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) WithRequestBody

func (o *UpdateLabelParams) WithRequestBody(requestBody *models.LabelUpdationParams) *UpdateLabelParams

WithRequestBody adds the requestBody 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) 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.

Jump to

Keyboard shortcuts

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