Documentation ¶
Index ¶
- type AddLabelsToResourcesBadRequest
- type AddLabelsToResourcesInternalServerError
- type AddLabelsToResourcesNotFound
- type AddLabelsToResourcesNotModified
- type AddLabelsToResourcesOK
- type AddLabelsToResourcesParams
- func NewAddLabelsToResourcesParams() *AddLabelsToResourcesParams
- func NewAddLabelsToResourcesParamsWithContext(ctx context.Context) *AddLabelsToResourcesParams
- func NewAddLabelsToResourcesParamsWithHTTPClient(client *http.Client) *AddLabelsToResourcesParams
- func NewAddLabelsToResourcesParamsWithTimeout(timeout time.Duration) *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) SetContentLanguage(contentLanguage *string)
- func (o *AddLabelsToResourcesParams) SetContext(ctx context.Context)
- func (o *AddLabelsToResourcesParams) SetDefaults()
- func (o *AddLabelsToResourcesParams) SetHTTPClient(client *http.Client)
- func (o *AddLabelsToResourcesParams) SetRequestBody(requestBody *models.AddLabelsToResourcesParams)
- func (o *AddLabelsToResourcesParams) SetTimeout(timeout time.Duration)
- func (o *AddLabelsToResourcesParams) WithContentLanguage(contentLanguage *string) *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) WithContext(ctx context.Context) *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) WithDefaults() *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) WithHTTPClient(client *http.Client) *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) WithRequestBody(requestBody *models.AddLabelsToResourcesParams) *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) WithTimeout(timeout time.Duration) *AddLabelsToResourcesParams
- func (o *AddLabelsToResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddLabelsToResourcesReader
- type Client
- func (a *Client) AddLabelsToResources(params *AddLabelsToResourcesParams, opts ...ClientOption) (*AddLabelsToResourcesOK, error)
- func (a *Client) CreateLabel(params *CreateLabelParams, opts ...ClientOption) (*CreateLabelOK, error)
- func (a *Client) DeleteLabel(params *DeleteLabelParams, opts ...ClientOption) (*DeleteLabelOK, error)
- func (a *Client) GetLabels(params *GetLabelsParams, opts ...ClientOption) (*GetLabelsOK, error)
- func (a *Client) GetLabelsConnection(params *GetLabelsConnectionParams, opts ...ClientOption) (*GetLabelsConnectionOK, error)
- func (a *Client) RemoveLabelsFromResources(params *RemoveLabelsFromResourcesParams, opts ...ClientOption) (*RemoveLabelsFromResourcesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateLabel(params *UpdateLabelParams, opts ...ClientOption) (*UpdateLabelOK, error)
- type ClientOption
- type ClientService
- type CreateLabelBadRequest
- type CreateLabelInternalServerError
- type CreateLabelNotFound
- type CreateLabelOK
- type CreateLabelParams
- func (o *CreateLabelParams) SetContentLanguage(contentLanguage *string)
- func (o *CreateLabelParams) SetContext(ctx context.Context)
- func (o *CreateLabelParams) SetDefaults()
- func (o *CreateLabelParams) SetHTTPClient(client *http.Client)
- func (o *CreateLabelParams) SetRequestBody(requestBody []*models.LabelCreationParams)
- func (o *CreateLabelParams) SetTimeout(timeout time.Duration)
- func (o *CreateLabelParams) WithContentLanguage(contentLanguage *string) *CreateLabelParams
- func (o *CreateLabelParams) WithContext(ctx context.Context) *CreateLabelParams
- func (o *CreateLabelParams) WithDefaults() *CreateLabelParams
- func (o *CreateLabelParams) WithHTTPClient(client *http.Client) *CreateLabelParams
- func (o *CreateLabelParams) WithRequestBody(requestBody []*models.LabelCreationParams) *CreateLabelParams
- func (o *CreateLabelParams) WithTimeout(timeout time.Duration) *CreateLabelParams
- func (o *CreateLabelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateLabelReader
- type DeleteLabelBadRequest
- type DeleteLabelInternalServerError
- type DeleteLabelNotFound
- type DeleteLabelOK
- type DeleteLabelParams
- func (o *DeleteLabelParams) SetContentLanguage(contentLanguage *string)
- func (o *DeleteLabelParams) SetContext(ctx context.Context)
- func (o *DeleteLabelParams) SetDefaults()
- func (o *DeleteLabelParams) SetHTTPClient(client *http.Client)
- func (o *DeleteLabelParams) SetRequestBody(requestBody *models.LabelDeletionParams)
- func (o *DeleteLabelParams) SetTimeout(timeout time.Duration)
- func (o *DeleteLabelParams) WithContentLanguage(contentLanguage *string) *DeleteLabelParams
- func (o *DeleteLabelParams) WithContext(ctx context.Context) *DeleteLabelParams
- func (o *DeleteLabelParams) WithDefaults() *DeleteLabelParams
- func (o *DeleteLabelParams) WithHTTPClient(client *http.Client) *DeleteLabelParams
- func (o *DeleteLabelParams) WithRequestBody(requestBody *models.LabelDeletionParams) *DeleteLabelParams
- func (o *DeleteLabelParams) WithTimeout(timeout time.Duration) *DeleteLabelParams
- func (o *DeleteLabelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteLabelReader
- type GetLabelsBadRequest
- type GetLabelsConnectionBadRequest
- type GetLabelsConnectionInternalServerError
- type GetLabelsConnectionNotFound
- type GetLabelsConnectionOK
- type GetLabelsConnectionParams
- func NewGetLabelsConnectionParams() *GetLabelsConnectionParams
- func NewGetLabelsConnectionParamsWithContext(ctx context.Context) *GetLabelsConnectionParams
- func NewGetLabelsConnectionParamsWithHTTPClient(client *http.Client) *GetLabelsConnectionParams
- func NewGetLabelsConnectionParamsWithTimeout(timeout time.Duration) *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetLabelsConnectionParams) SetContext(ctx context.Context)
- func (o *GetLabelsConnectionParams) SetDefaults()
- func (o *GetLabelsConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetLabelsConnectionParams) SetRequestBody(requestBody *models.GetLabelsConnectionRequestBody)
- func (o *GetLabelsConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetLabelsConnectionParams) WithContentLanguage(contentLanguage *string) *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) WithContext(ctx context.Context) *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) WithDefaults() *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) WithHTTPClient(client *http.Client) *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) WithRequestBody(requestBody *models.GetLabelsConnectionRequestBody) *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) WithTimeout(timeout time.Duration) *GetLabelsConnectionParams
- func (o *GetLabelsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLabelsConnectionReader
- type GetLabelsInternalServerError
- type GetLabelsNotFound
- type GetLabelsOK
- type GetLabelsParams
- func (o *GetLabelsParams) SetContentLanguage(contentLanguage *string)
- func (o *GetLabelsParams) SetContext(ctx context.Context)
- func (o *GetLabelsParams) SetDefaults()
- func (o *GetLabelsParams) SetHTTPClient(client *http.Client)
- func (o *GetLabelsParams) SetRequestBody(requestBody *models.GetLabelsRequestBody)
- func (o *GetLabelsParams) SetTimeout(timeout time.Duration)
- func (o *GetLabelsParams) WithContentLanguage(contentLanguage *string) *GetLabelsParams
- func (o *GetLabelsParams) WithContext(ctx context.Context) *GetLabelsParams
- func (o *GetLabelsParams) WithDefaults() *GetLabelsParams
- func (o *GetLabelsParams) WithHTTPClient(client *http.Client) *GetLabelsParams
- func (o *GetLabelsParams) WithRequestBody(requestBody *models.GetLabelsRequestBody) *GetLabelsParams
- func (o *GetLabelsParams) WithTimeout(timeout time.Duration) *GetLabelsParams
- func (o *GetLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLabelsReader
- type RemoveLabelsFromResourcesBadRequest
- type RemoveLabelsFromResourcesInternalServerError
- type RemoveLabelsFromResourcesNotFound
- type RemoveLabelsFromResourcesNotModified
- type RemoveLabelsFromResourcesOK
- type RemoveLabelsFromResourcesParams
- func NewRemoveLabelsFromResourcesParams() *RemoveLabelsFromResourcesParams
- func NewRemoveLabelsFromResourcesParamsWithContext(ctx context.Context) *RemoveLabelsFromResourcesParams
- func NewRemoveLabelsFromResourcesParamsWithHTTPClient(client *http.Client) *RemoveLabelsFromResourcesParams
- func NewRemoveLabelsFromResourcesParamsWithTimeout(timeout time.Duration) *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) SetContentLanguage(contentLanguage *string)
- func (o *RemoveLabelsFromResourcesParams) SetContext(ctx context.Context)
- func (o *RemoveLabelsFromResourcesParams) SetDefaults()
- func (o *RemoveLabelsFromResourcesParams) SetHTTPClient(client *http.Client)
- func (o *RemoveLabelsFromResourcesParams) SetRequestBody(requestBody *models.RemoveLabelsFromResourcesParams)
- func (o *RemoveLabelsFromResourcesParams) SetTimeout(timeout time.Duration)
- func (o *RemoveLabelsFromResourcesParams) WithContentLanguage(contentLanguage *string) *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) WithContext(ctx context.Context) *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) WithDefaults() *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) WithHTTPClient(client *http.Client) *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) WithRequestBody(requestBody *models.RemoveLabelsFromResourcesParams) *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) WithTimeout(timeout time.Duration) *RemoveLabelsFromResourcesParams
- func (o *RemoveLabelsFromResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveLabelsFromResourcesReader
- type UpdateLabelBadRequest
- type UpdateLabelInternalServerError
- type UpdateLabelNotFound
- type UpdateLabelNotModified
- type UpdateLabelOK
- type UpdateLabelParams
- func (o *UpdateLabelParams) SetContentLanguage(contentLanguage *string)
- func (o *UpdateLabelParams) SetContext(ctx context.Context)
- func (o *UpdateLabelParams) SetDefaults()
- func (o *UpdateLabelParams) SetHTTPClient(client *http.Client)
- func (o *UpdateLabelParams) SetRequestBody(requestBody *models.LabelUpdationParams)
- func (o *UpdateLabelParams) SetTimeout(timeout time.Duration)
- func (o *UpdateLabelParams) WithContentLanguage(contentLanguage *string) *UpdateLabelParams
- func (o *UpdateLabelParams) WithContext(ctx context.Context) *UpdateLabelParams
- func (o *UpdateLabelParams) WithDefaults() *UpdateLabelParams
- func (o *UpdateLabelParams) WithHTTPClient(client *http.Client) *UpdateLabelParams
- func (o *UpdateLabelParams) WithRequestBody(requestBody *models.LabelUpdationParams) *UpdateLabelParams
- func (o *UpdateLabelParams) WithTimeout(timeout time.Duration) *UpdateLabelParams
- func (o *UpdateLabelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateLabelReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddLabelsToResourcesBadRequest ¶
AddLabelsToResourcesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewAddLabelsToResourcesBadRequest ¶
func NewAddLabelsToResourcesBadRequest() *AddLabelsToResourcesBadRequest
NewAddLabelsToResourcesBadRequest creates a AddLabelsToResourcesBadRequest with default headers values
func (*AddLabelsToResourcesBadRequest) Error ¶
func (o *AddLabelsToResourcesBadRequest) Error() string
func (*AddLabelsToResourcesBadRequest) GetPayload ¶
func (o *AddLabelsToResourcesBadRequest) GetPayload() *models.ErrorBody
type AddLabelsToResourcesInternalServerError ¶
type AddLabelsToResourcesInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
AddLabelsToResourcesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewAddLabelsToResourcesInternalServerError ¶
func NewAddLabelsToResourcesInternalServerError() *AddLabelsToResourcesInternalServerError
NewAddLabelsToResourcesInternalServerError creates a AddLabelsToResourcesInternalServerError with default headers values
func (*AddLabelsToResourcesInternalServerError) Error ¶
func (o *AddLabelsToResourcesInternalServerError) Error() string
func (*AddLabelsToResourcesInternalServerError) GetPayload ¶
func (o *AddLabelsToResourcesInternalServerError) GetPayload() *models.ErrorBody
type AddLabelsToResourcesNotFound ¶
AddLabelsToResourcesNotFound describes a response with status code 404, with default header values.
Not found
func NewAddLabelsToResourcesNotFound ¶
func NewAddLabelsToResourcesNotFound() *AddLabelsToResourcesNotFound
NewAddLabelsToResourcesNotFound creates a AddLabelsToResourcesNotFound with default headers values
func (*AddLabelsToResourcesNotFound) Error ¶
func (o *AddLabelsToResourcesNotFound) Error() string
func (*AddLabelsToResourcesNotFound) GetPayload ¶
func (o *AddLabelsToResourcesNotFound) GetPayload() *models.ErrorBody
type AddLabelsToResourcesNotModified ¶ added in v2.4.0
type AddLabelsToResourcesNotModified struct { }
AddLabelsToResourcesNotModified describes a response with status code 304, with default header values.
Not modified
func NewAddLabelsToResourcesNotModified ¶ added in v2.4.0
func NewAddLabelsToResourcesNotModified() *AddLabelsToResourcesNotModified
NewAddLabelsToResourcesNotModified creates a AddLabelsToResourcesNotModified with default headers values
func (*AddLabelsToResourcesNotModified) Error ¶ added in v2.4.0
func (o *AddLabelsToResourcesNotModified) Error() string
type AddLabelsToResourcesOK ¶
type AddLabelsToResourcesOK struct { XTowerRequestID string Payload []*models.WithTaskLabel }
AddLabelsToResourcesOK describes a response with status code 200, with default header values.
AddLabelsToResourcesOK add labels to resources o k
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 ¶
func (o *AddLabelsToResourcesParams) WithContext(ctx context.Context) *AddLabelsToResourcesParams
WithContext adds the context to the add labels to resources params
func (*AddLabelsToResourcesParams) WithDefaults ¶
func (o *AddLabelsToResourcesParams) WithDefaults() *AddLabelsToResourcesParams
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 ¶
func (o *AddLabelsToResourcesParams) WithHTTPClient(client *http.Client) *AddLabelsToResourcesParams
WithHTTPClient adds the HTTPClient to the add labels to resources params
func (*AddLabelsToResourcesParams) WithRequestBody ¶
func (o *AddLabelsToResourcesParams) WithRequestBody(requestBody *models.AddLabelsToResourcesParams) *AddLabelsToResourcesParams
WithRequestBody adds the requestBody to the add labels to resources params
func (*AddLabelsToResourcesParams) WithTimeout ¶
func (o *AddLabelsToResourcesParams) WithTimeout(timeout time.Duration) *AddLabelsToResourcesParams
WithTimeout adds the timeout to the add labels to resources params
func (*AddLabelsToResourcesParams) WriteToRequest ¶
func (o *AddLabelsToResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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.ErrorBody
type CreateLabelInternalServerError ¶
CreateLabelInternalServerError describes a response with status code 500, with default header values.
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.ErrorBody
type CreateLabelNotFound ¶
CreateLabelNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateLabelNotFound ¶
func NewCreateLabelNotFound() *CreateLabelNotFound
NewCreateLabelNotFound creates a CreateLabelNotFound with default headers values
func (*CreateLabelNotFound) Error ¶
func (o *CreateLabelNotFound) Error() string
func (*CreateLabelNotFound) GetPayload ¶
func (o *CreateLabelNotFound) GetPayload() *models.ErrorBody
type CreateLabelOK ¶
type CreateLabelOK struct { XTowerRequestID string Payload []*models.WithTaskLabel }
CreateLabelOK describes a response with status code 200, with default header values.
CreateLabelOK create label o k
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 ¶
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.ErrorBody
type DeleteLabelInternalServerError ¶
DeleteLabelInternalServerError describes a response with status code 500, with default header values.
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.ErrorBody
type DeleteLabelNotFound ¶
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.ErrorBody
type DeleteLabelOK ¶
type DeleteLabelOK struct { XTowerRequestID string Payload []*models.WithTaskDeleteLabel }
DeleteLabelOK describes a response with status code 200, with default header values.
DeleteLabelOK delete label o k
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 ¶
GetLabelsBadRequest describes a response with status code 400, with default header values.
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() *models.ErrorBody
type GetLabelsConnectionBadRequest ¶
GetLabelsConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetLabelsConnectionBadRequest ¶
func NewGetLabelsConnectionBadRequest() *GetLabelsConnectionBadRequest
NewGetLabelsConnectionBadRequest creates a GetLabelsConnectionBadRequest with default headers values
func (*GetLabelsConnectionBadRequest) Error ¶
func (o *GetLabelsConnectionBadRequest) Error() string
func (*GetLabelsConnectionBadRequest) GetPayload ¶
func (o *GetLabelsConnectionBadRequest) GetPayload() *models.ErrorBody
type GetLabelsConnectionInternalServerError ¶
type GetLabelsConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetLabelsConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetLabelsConnectionInternalServerError ¶
func NewGetLabelsConnectionInternalServerError() *GetLabelsConnectionInternalServerError
NewGetLabelsConnectionInternalServerError creates a GetLabelsConnectionInternalServerError with default headers values
func (*GetLabelsConnectionInternalServerError) Error ¶
func (o *GetLabelsConnectionInternalServerError) Error() string
func (*GetLabelsConnectionInternalServerError) GetPayload ¶
func (o *GetLabelsConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetLabelsConnectionNotFound ¶
GetLabelsConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetLabelsConnectionNotFound ¶
func NewGetLabelsConnectionNotFound() *GetLabelsConnectionNotFound
NewGetLabelsConnectionNotFound creates a GetLabelsConnectionNotFound with default headers values
func (*GetLabelsConnectionNotFound) Error ¶
func (o *GetLabelsConnectionNotFound) Error() string
func (*GetLabelsConnectionNotFound) GetPayload ¶
func (o *GetLabelsConnectionNotFound) GetPayload() *models.ErrorBody
type GetLabelsConnectionOK ¶
type GetLabelsConnectionOK struct { XTowerRequestID string Payload *models.LabelConnection }
GetLabelsConnectionOK describes a response with status code 200, with default header values.
GetLabelsConnectionOK get labels connection o k
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 ¶
func (o *GetLabelsConnectionParams) WithContext(ctx context.Context) *GetLabelsConnectionParams
WithContext adds the context to the get labels connection params
func (*GetLabelsConnectionParams) WithDefaults ¶
func (o *GetLabelsConnectionParams) WithDefaults() *GetLabelsConnectionParams
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 ¶
func (o *GetLabelsConnectionParams) WithRequestBody(requestBody *models.GetLabelsConnectionRequestBody) *GetLabelsConnectionParams
WithRequestBody adds the requestBody to the get labels connection params
func (*GetLabelsConnectionParams) WithTimeout ¶
func (o *GetLabelsConnectionParams) WithTimeout(timeout time.Duration) *GetLabelsConnectionParams
WithTimeout adds the timeout to the get labels connection params
func (*GetLabelsConnectionParams) WriteToRequest ¶
func (o *GetLabelsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 GetLabelsInternalServerError ¶
GetLabelsInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetLabelsInternalServerError ¶
func NewGetLabelsInternalServerError() *GetLabelsInternalServerError
NewGetLabelsInternalServerError creates a GetLabelsInternalServerError with default headers values
func (*GetLabelsInternalServerError) Error ¶
func (o *GetLabelsInternalServerError) Error() string
func (*GetLabelsInternalServerError) GetPayload ¶
func (o *GetLabelsInternalServerError) GetPayload() *models.ErrorBody
type GetLabelsNotFound ¶
GetLabelsNotFound describes a response with status code 404, with default header values.
Not found
func NewGetLabelsNotFound ¶
func NewGetLabelsNotFound() *GetLabelsNotFound
NewGetLabelsNotFound creates a GetLabelsNotFound with default headers values
func (*GetLabelsNotFound) Error ¶
func (o *GetLabelsNotFound) Error() string
func (*GetLabelsNotFound) GetPayload ¶
func (o *GetLabelsNotFound) GetPayload() *models.ErrorBody
type GetLabelsOK ¶
GetLabelsOK describes a response with status code 200, with default header values.
GetLabelsOK get labels o k
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 { XTowerRequestID string Payload *models.ErrorBody }
RemoveLabelsFromResourcesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewRemoveLabelsFromResourcesBadRequest ¶
func NewRemoveLabelsFromResourcesBadRequest() *RemoveLabelsFromResourcesBadRequest
NewRemoveLabelsFromResourcesBadRequest creates a RemoveLabelsFromResourcesBadRequest with default headers values
func (*RemoveLabelsFromResourcesBadRequest) Error ¶
func (o *RemoveLabelsFromResourcesBadRequest) Error() string
func (*RemoveLabelsFromResourcesBadRequest) GetPayload ¶
func (o *RemoveLabelsFromResourcesBadRequest) GetPayload() *models.ErrorBody
type RemoveLabelsFromResourcesInternalServerError ¶
type RemoveLabelsFromResourcesInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
RemoveLabelsFromResourcesInternalServerError describes a response with status code 500, with default header values.
Server error
func NewRemoveLabelsFromResourcesInternalServerError ¶
func NewRemoveLabelsFromResourcesInternalServerError() *RemoveLabelsFromResourcesInternalServerError
NewRemoveLabelsFromResourcesInternalServerError creates a RemoveLabelsFromResourcesInternalServerError with default headers values
func (*RemoveLabelsFromResourcesInternalServerError) Error ¶
func (o *RemoveLabelsFromResourcesInternalServerError) Error() string
func (*RemoveLabelsFromResourcesInternalServerError) GetPayload ¶
func (o *RemoveLabelsFromResourcesInternalServerError) GetPayload() *models.ErrorBody
type RemoveLabelsFromResourcesNotFound ¶
RemoveLabelsFromResourcesNotFound describes a response with status code 404, with default header values.
Not found
func NewRemoveLabelsFromResourcesNotFound ¶
func NewRemoveLabelsFromResourcesNotFound() *RemoveLabelsFromResourcesNotFound
NewRemoveLabelsFromResourcesNotFound creates a RemoveLabelsFromResourcesNotFound with default headers values
func (*RemoveLabelsFromResourcesNotFound) Error ¶
func (o *RemoveLabelsFromResourcesNotFound) Error() string
func (*RemoveLabelsFromResourcesNotFound) GetPayload ¶
func (o *RemoveLabelsFromResourcesNotFound) GetPayload() *models.ErrorBody
type RemoveLabelsFromResourcesNotModified ¶ added in v2.4.0
type RemoveLabelsFromResourcesNotModified struct { }
RemoveLabelsFromResourcesNotModified describes a response with status code 304, with default header values.
Not modified
func NewRemoveLabelsFromResourcesNotModified ¶ added in v2.4.0
func NewRemoveLabelsFromResourcesNotModified() *RemoveLabelsFromResourcesNotModified
NewRemoveLabelsFromResourcesNotModified creates a RemoveLabelsFromResourcesNotModified with default headers values
func (*RemoveLabelsFromResourcesNotModified) Error ¶ added in v2.4.0
func (o *RemoveLabelsFromResourcesNotModified) Error() string
type RemoveLabelsFromResourcesOK ¶
type RemoveLabelsFromResourcesOK struct { XTowerRequestID string Payload []*models.WithTaskLabel }
RemoveLabelsFromResourcesOK describes a response with status code 200, with default header values.
RemoveLabelsFromResourcesOK remove labels from resources o k
func NewRemoveLabelsFromResourcesOK ¶
func NewRemoveLabelsFromResourcesOK() *RemoveLabelsFromResourcesOK
NewRemoveLabelsFromResourcesOK creates a RemoveLabelsFromResourcesOK with default headers values
func (*RemoveLabelsFromResourcesOK) Error ¶
func (o *RemoveLabelsFromResourcesOK) Error() string
func (*RemoveLabelsFromResourcesOK) GetPayload ¶
func (o *RemoveLabelsFromResourcesOK) GetPayload() []*models.WithTaskLabel
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 ¶
func (o *RemoveLabelsFromResourcesParams) SetRequestBody(requestBody *models.RemoveLabelsFromResourcesParams)
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 ¶
func (o *RemoveLabelsFromResourcesParams) WithContext(ctx context.Context) *RemoveLabelsFromResourcesParams
WithContext adds the context to the remove labels from resources params
func (*RemoveLabelsFromResourcesParams) WithDefaults ¶
func (o *RemoveLabelsFromResourcesParams) WithDefaults() *RemoveLabelsFromResourcesParams
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 ¶
func (o *RemoveLabelsFromResourcesParams) WithHTTPClient(client *http.Client) *RemoveLabelsFromResourcesParams
WithHTTPClient adds the HTTPClient to the remove labels from resources params
func (*RemoveLabelsFromResourcesParams) WithRequestBody ¶
func (o *RemoveLabelsFromResourcesParams) WithRequestBody(requestBody *models.RemoveLabelsFromResourcesParams) *RemoveLabelsFromResourcesParams
WithRequestBody adds the requestBody to the remove labels from resources params
func (*RemoveLabelsFromResourcesParams) WithTimeout ¶
func (o *RemoveLabelsFromResourcesParams) WithTimeout(timeout time.Duration) *RemoveLabelsFromResourcesParams
WithTimeout adds the timeout to the remove labels from resources params
func (*RemoveLabelsFromResourcesParams) WriteToRequest ¶
func (o *RemoveLabelsFromResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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.ErrorBody
type UpdateLabelInternalServerError ¶
UpdateLabelInternalServerError describes a response with status code 500, with default header values.
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.ErrorBody
type UpdateLabelNotFound ¶
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.ErrorBody
type UpdateLabelNotModified ¶ added in v2.4.0
type UpdateLabelNotModified struct { }
UpdateLabelNotModified describes a response with status code 304, with default header values.
Not modified
func NewUpdateLabelNotModified ¶ added in v2.4.0
func NewUpdateLabelNotModified() *UpdateLabelNotModified
NewUpdateLabelNotModified creates a UpdateLabelNotModified with default headers values
func (*UpdateLabelNotModified) Error ¶ added in v2.4.0
func (o *UpdateLabelNotModified) Error() string
type UpdateLabelOK ¶
type UpdateLabelOK struct { XTowerRequestID string Payload []*models.WithTaskLabel }
UpdateLabelOK describes a response with status code 200, with default header values.
UpdateLabelOK update label o k
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.
Source Files ¶
- add_labels_to_resources_parameters.go
- add_labels_to_resources_responses.go
- create_label_parameters.go
- create_label_responses.go
- delete_label_parameters.go
- delete_label_responses.go
- get_labels_connection_parameters.go
- get_labels_connection_responses.go
- get_labels_parameters.go
- get_labels_responses.go
- label_client.go
- remove_labels_from_resources_parameters.go
- remove_labels_from_resources_responses.go
- update_label_parameters.go
- update_label_responses.go