labels

package
v0.0.0-...-878b285 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for labels API

func (*Client) LabelsLabelsCreate

func (a *Client) LabelsLabelsCreate(params *LabelsLabelsCreateParams) (*LabelsLabelsCreateCreated, error)
LabelsLabelsCreate creates a label

Make a POST request to this resource with the following label fields to create a new label:

* `name`: Name of this label. (string, required) * `organization`: Organization this label belongs to. (id, required)

func (*Client) LabelsLabelsList

func (a *Client) LabelsLabelsList(params *LabelsLabelsListParams) (*LabelsLabelsListOK, error)
LabelsLabelsList lists labels

Make a GET request to this resource to retrieve the list of labels.

The resulting data structure contains:

{
    "count": 99,
    "next": null,
    "previous": null,
    "results": [
        ...
    ]
}

The `count` field indicates the total number of labels found for the given query. The `next` and `previous` fields provides links to additional results if there are more than will fit on a single page. The `results` list contains zero or more label records.

## Results

Each label data structure includes the following fields:

* `id`: Database ID for this label. (integer) * `type`: Data type for this label. (choice) * `url`: URL for this label. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `created`: Timestamp when this label was created. (datetime) * `modified`: Timestamp when this label was last modified. (datetime) * `name`: Name of this label. (string) * `organization`: Organization this label belongs to. (id)

## Sorting

To specify that labels are returned in a particular order, use the `order_by` query string parameter on the GET request.

?order_by=name

Prefix the field name with a dash `-` to sort in reverse:

?order_by=-name

Multiple sorting fields may be specified by separating the field names with a comma `,`:

?order_by=name,some_other_field

## Pagination

Use the `page_size` query string parameter to change the number of results returned for each request. Use the `page` query string parameter to retrieve a particular page of results.

?page_size=100&page=2

The `previous` and `next` links returned with the results will set these query string parameters automatically.

## Searching

Use the `search` query string parameter to perform a case-insensitive search within all designated text fields of a model.

?search=findme

(_Added in Ansible Tower 3.1.0_) Search across related fields:

?related__search=findme

func (*Client) LabelsLabelsPartialUpdate

func (a *Client) LabelsLabelsPartialUpdate(params *LabelsLabelsPartialUpdateParams) (*LabelsLabelsPartialUpdateOK, error)
LabelsLabelsPartialUpdate updates a label

Make a PUT or PATCH request to this resource to update this label. The following fields may be modified:

* `name`: Name of this label. (string, required) * `organization`: Organization this label belongs to. (id, required)

For a PATCH request, include only the fields that are being modified.

func (*Client) LabelsLabelsRead

func (a *Client) LabelsLabelsRead(params *LabelsLabelsReadParams) (*LabelsLabelsReadOK, error)
LabelsLabelsRead retrieves a label

Make GET request to this resource to retrieve a single label record containing the following fields:

* `id`: Database ID for this label. (integer) * `type`: Data type for this label. (choice) * `url`: URL for this label. (string) * `related`: Data structure with URLs of related resources. (object) * `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object) * `created`: Timestamp when this label was created. (datetime) * `modified`: Timestamp when this label was last modified. (datetime) * `name`: Name of this label. (string) * `organization`: Organization this label belongs to. (id)

func (*Client) LabelsLabelsUpdate

func (a *Client) LabelsLabelsUpdate(params *LabelsLabelsUpdateParams) (*LabelsLabelsUpdateOK, error)
LabelsLabelsUpdate updates a label

Make a PUT or PATCH request to this resource to update this label. The following fields may be modified:

* `name`: Name of this label. (string, required) * `organization`: Organization this label belongs to. (id, required)

For a PUT request, include **all** fields in the request.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	LabelsLabelsCreate(params *LabelsLabelsCreateParams) (*LabelsLabelsCreateCreated, error)

	LabelsLabelsList(params *LabelsLabelsListParams) (*LabelsLabelsListOK, error)

	LabelsLabelsPartialUpdate(params *LabelsLabelsPartialUpdateParams) (*LabelsLabelsPartialUpdateOK, error)

	LabelsLabelsRead(params *LabelsLabelsReadParams) (*LabelsLabelsReadOK, error)

	LabelsLabelsUpdate(params *LabelsLabelsUpdateParams) (*LabelsLabelsUpdateOK, 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 labels API client.

type LabelsLabelsCreateBody

type LabelsLabelsCreateBody struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Organization this label belongs to.
	// Required: true
	Organization *int64 `json:"organization"`
}

LabelsLabelsCreateBody labels labels create body swagger:model LabelsLabelsCreateBody

func (*LabelsLabelsCreateBody) MarshalBinary

func (o *LabelsLabelsCreateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LabelsLabelsCreateBody) UnmarshalBinary

func (o *LabelsLabelsCreateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LabelsLabelsCreateBody) Validate

func (o *LabelsLabelsCreateBody) Validate(formats strfmt.Registry) error

Validate validates this labels labels create body

type LabelsLabelsCreateCreated

type LabelsLabelsCreateCreated struct {
}

LabelsLabelsCreateCreated handles this case with default header values.

LabelsLabelsCreateCreated labels labels create created

func NewLabelsLabelsCreateCreated

func NewLabelsLabelsCreateCreated() *LabelsLabelsCreateCreated

NewLabelsLabelsCreateCreated creates a LabelsLabelsCreateCreated with default headers values

func (*LabelsLabelsCreateCreated) Error

func (o *LabelsLabelsCreateCreated) Error() string

type LabelsLabelsCreateParams

type LabelsLabelsCreateParams struct {

	/*Data*/
	Data LabelsLabelsCreateBody

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

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

func NewLabelsLabelsCreateParams

func NewLabelsLabelsCreateParams() *LabelsLabelsCreateParams

NewLabelsLabelsCreateParams creates a new LabelsLabelsCreateParams object with the default values initialized.

func NewLabelsLabelsCreateParamsWithContext

func NewLabelsLabelsCreateParamsWithContext(ctx context.Context) *LabelsLabelsCreateParams

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

func NewLabelsLabelsCreateParamsWithHTTPClient

func NewLabelsLabelsCreateParamsWithHTTPClient(client *http.Client) *LabelsLabelsCreateParams

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

func NewLabelsLabelsCreateParamsWithTimeout

func NewLabelsLabelsCreateParamsWithTimeout(timeout time.Duration) *LabelsLabelsCreateParams

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

func (*LabelsLabelsCreateParams) SetContext

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

SetContext adds the context to the labels labels create params

func (*LabelsLabelsCreateParams) SetData

SetData adds the data to the labels labels create params

func (*LabelsLabelsCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the labels labels create params

func (*LabelsLabelsCreateParams) SetTimeout

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

SetTimeout adds the timeout to the labels labels create params

func (*LabelsLabelsCreateParams) WithContext

WithContext adds the context to the labels labels create params

func (*LabelsLabelsCreateParams) WithData

WithData adds the data to the labels labels create params

func (*LabelsLabelsCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the labels labels create params

func (*LabelsLabelsCreateParams) WithTimeout

WithTimeout adds the timeout to the labels labels create params

func (*LabelsLabelsCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LabelsLabelsCreateReader

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

LabelsLabelsCreateReader is a Reader for the LabelsLabelsCreate structure.

func (*LabelsLabelsCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LabelsLabelsListOK

type LabelsLabelsListOK struct {
}

LabelsLabelsListOK handles this case with default header values.

OK

func NewLabelsLabelsListOK

func NewLabelsLabelsListOK() *LabelsLabelsListOK

NewLabelsLabelsListOK creates a LabelsLabelsListOK with default headers values

func (*LabelsLabelsListOK) Error

func (o *LabelsLabelsListOK) Error() string

type LabelsLabelsListParams

type LabelsLabelsListParams struct {

	/*Page
	  A page number within the paginated result set.

	*/
	Page *int64
	/*PageSize
	  Number of results to return per page.

	*/
	PageSize *int64
	/*Search
	  A search term.

	*/
	Search *string

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

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

func NewLabelsLabelsListParams

func NewLabelsLabelsListParams() *LabelsLabelsListParams

NewLabelsLabelsListParams creates a new LabelsLabelsListParams object with the default values initialized.

func NewLabelsLabelsListParamsWithContext

func NewLabelsLabelsListParamsWithContext(ctx context.Context) *LabelsLabelsListParams

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

func NewLabelsLabelsListParamsWithHTTPClient

func NewLabelsLabelsListParamsWithHTTPClient(client *http.Client) *LabelsLabelsListParams

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

func NewLabelsLabelsListParamsWithTimeout

func NewLabelsLabelsListParamsWithTimeout(timeout time.Duration) *LabelsLabelsListParams

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

func (*LabelsLabelsListParams) SetContext

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

SetContext adds the context to the labels labels list params

func (*LabelsLabelsListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the labels labels list params

func (*LabelsLabelsListParams) SetPage

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

SetPage adds the page to the labels labels list params

func (*LabelsLabelsListParams) SetPageSize

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

SetPageSize adds the pageSize to the labels labels list params

func (*LabelsLabelsListParams) SetSearch

func (o *LabelsLabelsListParams) SetSearch(search *string)

SetSearch adds the search to the labels labels list params

func (*LabelsLabelsListParams) SetTimeout

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

SetTimeout adds the timeout to the labels labels list params

func (*LabelsLabelsListParams) WithContext

WithContext adds the context to the labels labels list params

func (*LabelsLabelsListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the labels labels list params

func (*LabelsLabelsListParams) WithPage

WithPage adds the page to the labels labels list params

func (*LabelsLabelsListParams) WithPageSize

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

WithPageSize adds the pageSize to the labels labels list params

func (*LabelsLabelsListParams) WithSearch

func (o *LabelsLabelsListParams) WithSearch(search *string) *LabelsLabelsListParams

WithSearch adds the search to the labels labels list params

func (*LabelsLabelsListParams) WithTimeout

WithTimeout adds the timeout to the labels labels list params

func (*LabelsLabelsListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LabelsLabelsListReader

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

LabelsLabelsListReader is a Reader for the LabelsLabelsList structure.

func (*LabelsLabelsListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LabelsLabelsPartialUpdateBody

type LabelsLabelsPartialUpdateBody struct {

	// name
	Name string `json:"name,omitempty"`

	// Organization this label belongs to.
	Organization int64 `json:"organization,omitempty"`
}

LabelsLabelsPartialUpdateBody labels labels partial update body swagger:model LabelsLabelsPartialUpdateBody

func (*LabelsLabelsPartialUpdateBody) MarshalBinary

func (o *LabelsLabelsPartialUpdateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LabelsLabelsPartialUpdateBody) UnmarshalBinary

func (o *LabelsLabelsPartialUpdateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LabelsLabelsPartialUpdateBody) Validate

func (o *LabelsLabelsPartialUpdateBody) Validate(formats strfmt.Registry) error

Validate validates this labels labels partial update body

type LabelsLabelsPartialUpdateOK

type LabelsLabelsPartialUpdateOK struct {
}

LabelsLabelsPartialUpdateOK handles this case with default header values.

OK

func NewLabelsLabelsPartialUpdateOK

func NewLabelsLabelsPartialUpdateOK() *LabelsLabelsPartialUpdateOK

NewLabelsLabelsPartialUpdateOK creates a LabelsLabelsPartialUpdateOK with default headers values

func (*LabelsLabelsPartialUpdateOK) Error

type LabelsLabelsPartialUpdateParams

type LabelsLabelsPartialUpdateParams struct {

	/*Data*/
	Data LabelsLabelsPartialUpdateBody
	/*ID*/
	ID string
	/*Search
	  A search term.

	*/
	Search *string

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

LabelsLabelsPartialUpdateParams contains all the parameters to send to the API endpoint for the labels labels partial update operation typically these are written to a http.Request

func NewLabelsLabelsPartialUpdateParams

func NewLabelsLabelsPartialUpdateParams() *LabelsLabelsPartialUpdateParams

NewLabelsLabelsPartialUpdateParams creates a new LabelsLabelsPartialUpdateParams object with the default values initialized.

func NewLabelsLabelsPartialUpdateParamsWithContext

func NewLabelsLabelsPartialUpdateParamsWithContext(ctx context.Context) *LabelsLabelsPartialUpdateParams

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

func NewLabelsLabelsPartialUpdateParamsWithHTTPClient

func NewLabelsLabelsPartialUpdateParamsWithHTTPClient(client *http.Client) *LabelsLabelsPartialUpdateParams

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

func NewLabelsLabelsPartialUpdateParamsWithTimeout

func NewLabelsLabelsPartialUpdateParamsWithTimeout(timeout time.Duration) *LabelsLabelsPartialUpdateParams

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

func (*LabelsLabelsPartialUpdateParams) SetContext

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

SetContext adds the context to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) SetData

SetData adds the data to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) SetID

SetID adds the id to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) SetSearch

func (o *LabelsLabelsPartialUpdateParams) SetSearch(search *string)

SetSearch adds the search to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WithContext

WithContext adds the context to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WithData

WithData adds the data to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WithID

WithID adds the id to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WithSearch

WithSearch adds the search to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WithTimeout

WithTimeout adds the timeout to the labels labels partial update params

func (*LabelsLabelsPartialUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LabelsLabelsPartialUpdateReader

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

LabelsLabelsPartialUpdateReader is a Reader for the LabelsLabelsPartialUpdate structure.

func (*LabelsLabelsPartialUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LabelsLabelsReadOK

type LabelsLabelsReadOK struct {
}

LabelsLabelsReadOK handles this case with default header values.

OK

func NewLabelsLabelsReadOK

func NewLabelsLabelsReadOK() *LabelsLabelsReadOK

NewLabelsLabelsReadOK creates a LabelsLabelsReadOK with default headers values

func (*LabelsLabelsReadOK) Error

func (o *LabelsLabelsReadOK) Error() string

type LabelsLabelsReadParams

type LabelsLabelsReadParams struct {

	/*ID*/
	ID string
	/*Search
	  A search term.

	*/
	Search *string

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

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

func NewLabelsLabelsReadParams

func NewLabelsLabelsReadParams() *LabelsLabelsReadParams

NewLabelsLabelsReadParams creates a new LabelsLabelsReadParams object with the default values initialized.

func NewLabelsLabelsReadParamsWithContext

func NewLabelsLabelsReadParamsWithContext(ctx context.Context) *LabelsLabelsReadParams

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

func NewLabelsLabelsReadParamsWithHTTPClient

func NewLabelsLabelsReadParamsWithHTTPClient(client *http.Client) *LabelsLabelsReadParams

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

func NewLabelsLabelsReadParamsWithTimeout

func NewLabelsLabelsReadParamsWithTimeout(timeout time.Duration) *LabelsLabelsReadParams

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

func (*LabelsLabelsReadParams) SetContext

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

SetContext adds the context to the labels labels read params

func (*LabelsLabelsReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the labels labels read params

func (*LabelsLabelsReadParams) SetID

func (o *LabelsLabelsReadParams) SetID(id string)

SetID adds the id to the labels labels read params

func (*LabelsLabelsReadParams) SetSearch

func (o *LabelsLabelsReadParams) SetSearch(search *string)

SetSearch adds the search to the labels labels read params

func (*LabelsLabelsReadParams) SetTimeout

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

SetTimeout adds the timeout to the labels labels read params

func (*LabelsLabelsReadParams) WithContext

WithContext adds the context to the labels labels read params

func (*LabelsLabelsReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the labels labels read params

func (*LabelsLabelsReadParams) WithID

WithID adds the id to the labels labels read params

func (*LabelsLabelsReadParams) WithSearch

func (o *LabelsLabelsReadParams) WithSearch(search *string) *LabelsLabelsReadParams

WithSearch adds the search to the labels labels read params

func (*LabelsLabelsReadParams) WithTimeout

WithTimeout adds the timeout to the labels labels read params

func (*LabelsLabelsReadParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LabelsLabelsReadReader

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

LabelsLabelsReadReader is a Reader for the LabelsLabelsRead structure.

func (*LabelsLabelsReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LabelsLabelsUpdateBody

type LabelsLabelsUpdateBody struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Organization this label belongs to.
	// Required: true
	Organization *int64 `json:"organization"`
}

LabelsLabelsUpdateBody labels labels update body swagger:model LabelsLabelsUpdateBody

func (*LabelsLabelsUpdateBody) MarshalBinary

func (o *LabelsLabelsUpdateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LabelsLabelsUpdateBody) UnmarshalBinary

func (o *LabelsLabelsUpdateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LabelsLabelsUpdateBody) Validate

func (o *LabelsLabelsUpdateBody) Validate(formats strfmt.Registry) error

Validate validates this labels labels update body

type LabelsLabelsUpdateOK

type LabelsLabelsUpdateOK struct {
}

LabelsLabelsUpdateOK handles this case with default header values.

OK

func NewLabelsLabelsUpdateOK

func NewLabelsLabelsUpdateOK() *LabelsLabelsUpdateOK

NewLabelsLabelsUpdateOK creates a LabelsLabelsUpdateOK with default headers values

func (*LabelsLabelsUpdateOK) Error

func (o *LabelsLabelsUpdateOK) Error() string

type LabelsLabelsUpdateParams

type LabelsLabelsUpdateParams struct {

	/*Data*/
	Data LabelsLabelsUpdateBody
	/*ID*/
	ID string
	/*Search
	  A search term.

	*/
	Search *string

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

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

func NewLabelsLabelsUpdateParams

func NewLabelsLabelsUpdateParams() *LabelsLabelsUpdateParams

NewLabelsLabelsUpdateParams creates a new LabelsLabelsUpdateParams object with the default values initialized.

func NewLabelsLabelsUpdateParamsWithContext

func NewLabelsLabelsUpdateParamsWithContext(ctx context.Context) *LabelsLabelsUpdateParams

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

func NewLabelsLabelsUpdateParamsWithHTTPClient

func NewLabelsLabelsUpdateParamsWithHTTPClient(client *http.Client) *LabelsLabelsUpdateParams

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

func NewLabelsLabelsUpdateParamsWithTimeout

func NewLabelsLabelsUpdateParamsWithTimeout(timeout time.Duration) *LabelsLabelsUpdateParams

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

func (*LabelsLabelsUpdateParams) SetContext

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

SetContext adds the context to the labels labels update params

func (*LabelsLabelsUpdateParams) SetData

SetData adds the data to the labels labels update params

func (*LabelsLabelsUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the labels labels update params

func (*LabelsLabelsUpdateParams) SetID

func (o *LabelsLabelsUpdateParams) SetID(id string)

SetID adds the id to the labels labels update params

func (*LabelsLabelsUpdateParams) SetSearch

func (o *LabelsLabelsUpdateParams) SetSearch(search *string)

SetSearch adds the search to the labels labels update params

func (*LabelsLabelsUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the labels labels update params

func (*LabelsLabelsUpdateParams) WithContext

WithContext adds the context to the labels labels update params

func (*LabelsLabelsUpdateParams) WithData

WithData adds the data to the labels labels update params

func (*LabelsLabelsUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the labels labels update params

func (*LabelsLabelsUpdateParams) WithID

WithID adds the id to the labels labels update params

func (*LabelsLabelsUpdateParams) WithSearch

WithSearch adds the search to the labels labels update params

func (*LabelsLabelsUpdateParams) WithTimeout

WithTimeout adds the timeout to the labels labels update params

func (*LabelsLabelsUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LabelsLabelsUpdateReader

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

LabelsLabelsUpdateReader is a Reader for the LabelsLabelsUpdate structure.

func (*LabelsLabelsUpdateReader) ReadResponse

func (o *LabelsLabelsUpdateReader) 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