Documentation ¶
Index ¶
- type Client
- func (a *Client) LabelsLabelsCreate(params *LabelsLabelsCreateParams) (*LabelsLabelsCreateCreated, error)
- func (a *Client) LabelsLabelsList(params *LabelsLabelsListParams) (*LabelsLabelsListOK, error)
- func (a *Client) LabelsLabelsPartialUpdate(params *LabelsLabelsPartialUpdateParams) (*LabelsLabelsPartialUpdateOK, error)
- func (a *Client) LabelsLabelsRead(params *LabelsLabelsReadParams) (*LabelsLabelsReadOK, error)
- func (a *Client) LabelsLabelsUpdate(params *LabelsLabelsUpdateParams) (*LabelsLabelsUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type LabelsLabelsCreateBody
- type LabelsLabelsCreateCreated
- type LabelsLabelsCreateParams
- func NewLabelsLabelsCreateParams() *LabelsLabelsCreateParams
- func NewLabelsLabelsCreateParamsWithContext(ctx context.Context) *LabelsLabelsCreateParams
- func NewLabelsLabelsCreateParamsWithHTTPClient(client *http.Client) *LabelsLabelsCreateParams
- func NewLabelsLabelsCreateParamsWithTimeout(timeout time.Duration) *LabelsLabelsCreateParams
- func (o *LabelsLabelsCreateParams) SetContext(ctx context.Context)
- func (o *LabelsLabelsCreateParams) SetData(data LabelsLabelsCreateBody)
- func (o *LabelsLabelsCreateParams) SetHTTPClient(client *http.Client)
- func (o *LabelsLabelsCreateParams) SetTimeout(timeout time.Duration)
- func (o *LabelsLabelsCreateParams) WithContext(ctx context.Context) *LabelsLabelsCreateParams
- func (o *LabelsLabelsCreateParams) WithData(data LabelsLabelsCreateBody) *LabelsLabelsCreateParams
- func (o *LabelsLabelsCreateParams) WithHTTPClient(client *http.Client) *LabelsLabelsCreateParams
- func (o *LabelsLabelsCreateParams) WithTimeout(timeout time.Duration) *LabelsLabelsCreateParams
- func (o *LabelsLabelsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LabelsLabelsCreateReader
- type LabelsLabelsListOK
- type LabelsLabelsListParams
- func NewLabelsLabelsListParams() *LabelsLabelsListParams
- func NewLabelsLabelsListParamsWithContext(ctx context.Context) *LabelsLabelsListParams
- func NewLabelsLabelsListParamsWithHTTPClient(client *http.Client) *LabelsLabelsListParams
- func NewLabelsLabelsListParamsWithTimeout(timeout time.Duration) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) SetContext(ctx context.Context)
- func (o *LabelsLabelsListParams) SetHTTPClient(client *http.Client)
- func (o *LabelsLabelsListParams) SetPage(page *int64)
- func (o *LabelsLabelsListParams) SetPageSize(pageSize *int64)
- func (o *LabelsLabelsListParams) SetSearch(search *string)
- func (o *LabelsLabelsListParams) SetTimeout(timeout time.Duration)
- func (o *LabelsLabelsListParams) WithContext(ctx context.Context) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) WithHTTPClient(client *http.Client) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) WithPage(page *int64) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) WithPageSize(pageSize *int64) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) WithSearch(search *string) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) WithTimeout(timeout time.Duration) *LabelsLabelsListParams
- func (o *LabelsLabelsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LabelsLabelsListReader
- type LabelsLabelsPartialUpdateBody
- type LabelsLabelsPartialUpdateOK
- type LabelsLabelsPartialUpdateParams
- func NewLabelsLabelsPartialUpdateParams() *LabelsLabelsPartialUpdateParams
- func NewLabelsLabelsPartialUpdateParamsWithContext(ctx context.Context) *LabelsLabelsPartialUpdateParams
- func NewLabelsLabelsPartialUpdateParamsWithHTTPClient(client *http.Client) *LabelsLabelsPartialUpdateParams
- func NewLabelsLabelsPartialUpdateParamsWithTimeout(timeout time.Duration) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) SetContext(ctx context.Context)
- func (o *LabelsLabelsPartialUpdateParams) SetData(data LabelsLabelsPartialUpdateBody)
- func (o *LabelsLabelsPartialUpdateParams) SetHTTPClient(client *http.Client)
- func (o *LabelsLabelsPartialUpdateParams) SetID(id string)
- func (o *LabelsLabelsPartialUpdateParams) SetSearch(search *string)
- func (o *LabelsLabelsPartialUpdateParams) SetTimeout(timeout time.Duration)
- func (o *LabelsLabelsPartialUpdateParams) WithContext(ctx context.Context) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) WithData(data LabelsLabelsPartialUpdateBody) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) WithHTTPClient(client *http.Client) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) WithID(id string) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) WithSearch(search *string) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) WithTimeout(timeout time.Duration) *LabelsLabelsPartialUpdateParams
- func (o *LabelsLabelsPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LabelsLabelsPartialUpdateReader
- type LabelsLabelsReadOK
- type LabelsLabelsReadParams
- func NewLabelsLabelsReadParams() *LabelsLabelsReadParams
- func NewLabelsLabelsReadParamsWithContext(ctx context.Context) *LabelsLabelsReadParams
- func NewLabelsLabelsReadParamsWithHTTPClient(client *http.Client) *LabelsLabelsReadParams
- func NewLabelsLabelsReadParamsWithTimeout(timeout time.Duration) *LabelsLabelsReadParams
- func (o *LabelsLabelsReadParams) SetContext(ctx context.Context)
- func (o *LabelsLabelsReadParams) SetHTTPClient(client *http.Client)
- func (o *LabelsLabelsReadParams) SetID(id string)
- func (o *LabelsLabelsReadParams) SetSearch(search *string)
- func (o *LabelsLabelsReadParams) SetTimeout(timeout time.Duration)
- func (o *LabelsLabelsReadParams) WithContext(ctx context.Context) *LabelsLabelsReadParams
- func (o *LabelsLabelsReadParams) WithHTTPClient(client *http.Client) *LabelsLabelsReadParams
- func (o *LabelsLabelsReadParams) WithID(id string) *LabelsLabelsReadParams
- func (o *LabelsLabelsReadParams) WithSearch(search *string) *LabelsLabelsReadParams
- func (o *LabelsLabelsReadParams) WithTimeout(timeout time.Duration) *LabelsLabelsReadParams
- func (o *LabelsLabelsReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LabelsLabelsReadReader
- type LabelsLabelsUpdateBody
- type LabelsLabelsUpdateOK
- type LabelsLabelsUpdateParams
- func NewLabelsLabelsUpdateParams() *LabelsLabelsUpdateParams
- func NewLabelsLabelsUpdateParamsWithContext(ctx context.Context) *LabelsLabelsUpdateParams
- func NewLabelsLabelsUpdateParamsWithHTTPClient(client *http.Client) *LabelsLabelsUpdateParams
- func NewLabelsLabelsUpdateParamsWithTimeout(timeout time.Duration) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) SetContext(ctx context.Context)
- func (o *LabelsLabelsUpdateParams) SetData(data LabelsLabelsUpdateBody)
- func (o *LabelsLabelsUpdateParams) SetHTTPClient(client *http.Client)
- func (o *LabelsLabelsUpdateParams) SetID(id string)
- func (o *LabelsLabelsUpdateParams) SetSearch(search *string)
- func (o *LabelsLabelsUpdateParams) SetTimeout(timeout time.Duration)
- func (o *LabelsLabelsUpdateParams) WithContext(ctx context.Context) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) WithData(data LabelsLabelsUpdateBody) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) WithHTTPClient(client *http.Client) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) WithID(id string) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) WithSearch(search *string) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) WithTimeout(timeout time.Duration) *LabelsLabelsUpdateParams
- func (o *LabelsLabelsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LabelsLabelsUpdateReader
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
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 ¶
func (o *LabelsLabelsCreateParams) SetData(data LabelsLabelsCreateBody)
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 ¶
func (o *LabelsLabelsCreateParams) WithContext(ctx context.Context) *LabelsLabelsCreateParams
WithContext adds the context to the labels labels create params
func (*LabelsLabelsCreateParams) WithData ¶
func (o *LabelsLabelsCreateParams) WithData(data LabelsLabelsCreateBody) *LabelsLabelsCreateParams
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 ¶
func (o *LabelsLabelsCreateParams) WithTimeout(timeout time.Duration) *LabelsLabelsCreateParams
WithTimeout adds the timeout to the labels labels create params
func (*LabelsLabelsCreateParams) WriteToRequest ¶
func (o *LabelsLabelsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *LabelsLabelsListParams) WithContext(ctx context.Context) *LabelsLabelsListParams
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 ¶
func (o *LabelsLabelsListParams) WithPage(page *int64) *LabelsLabelsListParams
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 ¶
func (o *LabelsLabelsListParams) WithTimeout(timeout time.Duration) *LabelsLabelsListParams
WithTimeout adds the timeout to the labels labels list params
func (*LabelsLabelsListParams) WriteToRequest ¶
func (o *LabelsLabelsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *LabelsLabelsPartialUpdateOK) Error() string
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 ¶
func (o *LabelsLabelsPartialUpdateParams) SetData(data LabelsLabelsPartialUpdateBody)
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 ¶
func (o *LabelsLabelsPartialUpdateParams) SetID(id string)
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 ¶
func (o *LabelsLabelsPartialUpdateParams) WithContext(ctx context.Context) *LabelsLabelsPartialUpdateParams
WithContext adds the context to the labels labels partial update params
func (*LabelsLabelsPartialUpdateParams) WithData ¶
func (o *LabelsLabelsPartialUpdateParams) WithData(data LabelsLabelsPartialUpdateBody) *LabelsLabelsPartialUpdateParams
WithData adds the data to the labels labels partial update params
func (*LabelsLabelsPartialUpdateParams) WithHTTPClient ¶
func (o *LabelsLabelsPartialUpdateParams) WithHTTPClient(client *http.Client) *LabelsLabelsPartialUpdateParams
WithHTTPClient adds the HTTPClient to the labels labels partial update params
func (*LabelsLabelsPartialUpdateParams) WithID ¶
func (o *LabelsLabelsPartialUpdateParams) WithID(id string) *LabelsLabelsPartialUpdateParams
WithID adds the id to the labels labels partial update params
func (*LabelsLabelsPartialUpdateParams) WithSearch ¶
func (o *LabelsLabelsPartialUpdateParams) WithSearch(search *string) *LabelsLabelsPartialUpdateParams
WithSearch adds the search to the labels labels partial update params
func (*LabelsLabelsPartialUpdateParams) WithTimeout ¶
func (o *LabelsLabelsPartialUpdateParams) WithTimeout(timeout time.Duration) *LabelsLabelsPartialUpdateParams
WithTimeout adds the timeout to the labels labels partial update params
func (*LabelsLabelsPartialUpdateParams) WriteToRequest ¶
func (o *LabelsLabelsPartialUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *LabelsLabelsReadParams) WithContext(ctx context.Context) *LabelsLabelsReadParams
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 ¶
func (o *LabelsLabelsReadParams) WithID(id string) *LabelsLabelsReadParams
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 ¶
func (o *LabelsLabelsReadParams) WithTimeout(timeout time.Duration) *LabelsLabelsReadParams
WithTimeout adds the timeout to the labels labels read params
func (*LabelsLabelsReadParams) WriteToRequest ¶
func (o *LabelsLabelsReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *LabelsLabelsUpdateParams) SetData(data LabelsLabelsUpdateBody)
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 ¶
func (o *LabelsLabelsUpdateParams) WithContext(ctx context.Context) *LabelsLabelsUpdateParams
WithContext adds the context to the labels labels update params
func (*LabelsLabelsUpdateParams) WithData ¶
func (o *LabelsLabelsUpdateParams) WithData(data LabelsLabelsUpdateBody) *LabelsLabelsUpdateParams
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 ¶
func (o *LabelsLabelsUpdateParams) WithID(id string) *LabelsLabelsUpdateParams
WithID adds the id to the labels labels update params
func (*LabelsLabelsUpdateParams) WithSearch ¶
func (o *LabelsLabelsUpdateParams) WithSearch(search *string) *LabelsLabelsUpdateParams
WithSearch adds the search to the labels labels update params
func (*LabelsLabelsUpdateParams) WithTimeout ¶
func (o *LabelsLabelsUpdateParams) WithTimeout(timeout time.Duration) *LabelsLabelsUpdateParams
WithTimeout adds the timeout to the labels labels update params
func (*LabelsLabelsUpdateParams) WriteToRequest ¶
func (o *LabelsLabelsUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- labels_client.go
- labels_labels_create_parameters.go
- labels_labels_create_responses.go
- labels_labels_list_parameters.go
- labels_labels_list_responses.go
- labels_labels_partial_update_parameters.go
- labels_labels_partial_update_responses.go
- labels_labels_read_parameters.go
- labels_labels_read_responses.go
- labels_labels_update_parameters.go
- labels_labels_update_responses.go