tags

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 11 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 tags API

func (*Client) GetTags

func (a *Client) GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error)

GetTags gets tags

Get all tags

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, 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 tags API client.

type GetTagsForbidden

type GetTagsForbidden struct {
	Payload *models.ServiceErrorResponse
}

GetTagsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetTagsForbidden

func NewGetTagsForbidden() *GetTagsForbidden

NewGetTagsForbidden creates a GetTagsForbidden with default headers values

func (*GetTagsForbidden) Error

func (o *GetTagsForbidden) Error() string

func (*GetTagsForbidden) GetPayload added in v0.2.20

func (o *GetTagsForbidden) GetPayload() *models.ServiceErrorResponse

func (*GetTagsForbidden) IsClientError added in v0.5.0

func (o *GetTagsForbidden) IsClientError() bool

IsClientError returns true when this get tags forbidden response has a 4xx status code

func (*GetTagsForbidden) IsCode added in v0.5.0

func (o *GetTagsForbidden) IsCode(code int) bool

IsCode returns true when this get tags forbidden response a status code equal to that given

func (*GetTagsForbidden) IsRedirect added in v0.5.0

func (o *GetTagsForbidden) IsRedirect() bool

IsRedirect returns true when this get tags forbidden response has a 3xx status code

func (*GetTagsForbidden) IsServerError added in v0.5.0

func (o *GetTagsForbidden) IsServerError() bool

IsServerError returns true when this get tags forbidden response has a 5xx status code

func (*GetTagsForbidden) IsSuccess added in v0.5.0

func (o *GetTagsForbidden) IsSuccess() bool

IsSuccess returns true when this get tags forbidden response has a 2xx status code

func (*GetTagsForbidden) String added in v0.5.0

func (o *GetTagsForbidden) String() string

type GetTagsOK

type GetTagsOK struct {
	Payload *models.TagResult
}

GetTagsOK describes a response with status code 200, with default header values.

successful operation

func NewGetTagsOK

func NewGetTagsOK() *GetTagsOK

NewGetTagsOK creates a GetTagsOK with default headers values

func (*GetTagsOK) Error

func (o *GetTagsOK) Error() string

func (*GetTagsOK) GetPayload

func (o *GetTagsOK) GetPayload() *models.TagResult

func (*GetTagsOK) IsClientError added in v0.5.0

func (o *GetTagsOK) IsClientError() bool

IsClientError returns true when this get tags o k response has a 4xx status code

func (*GetTagsOK) IsCode added in v0.5.0

func (o *GetTagsOK) IsCode(code int) bool

IsCode returns true when this get tags o k response a status code equal to that given

func (*GetTagsOK) IsRedirect added in v0.5.0

func (o *GetTagsOK) IsRedirect() bool

IsRedirect returns true when this get tags o k response has a 3xx status code

func (*GetTagsOK) IsServerError added in v0.5.0

func (o *GetTagsOK) IsServerError() bool

IsServerError returns true when this get tags o k response has a 5xx status code

func (*GetTagsOK) IsSuccess added in v0.5.0

func (o *GetTagsOK) IsSuccess() bool

IsSuccess returns true when this get tags o k response has a 2xx status code

func (*GetTagsOK) String added in v0.5.0

func (o *GetTagsOK) String() string

type GetTagsParams

type GetTagsParams struct {

	/* DollarCount.

	   Flag which when specified, regardless of the assigned value, shows the total number of records. If the collection has a filter it shows the number of records matching the filter.
	*/
	DollarCount *bool

	/* DollarFilter.

	   Filter the results by a specified predicate expression. Operators: eq, ne, and, or.
	*/
	DollarFilter *string

	/* DollarSelect.

	   Select a subset of properties to include in the response.
	*/
	DollarSelect *string

	/* DollarSkip.

	   Number of records you want to skip.
	*/
	DollarSkip *int64

	/* DollarTop.

	   Number of records you want to get.
	*/
	DollarTop *int64

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

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

GetTagsParams contains all the parameters to send to the API endpoint

for the get tags operation.

Typically these are written to a http.Request.

func NewGetTagsParams

func NewGetTagsParams() *GetTagsParams

NewGetTagsParams creates a new GetTagsParams 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 NewGetTagsParamsWithContext

func NewGetTagsParamsWithContext(ctx context.Context) *GetTagsParams

NewGetTagsParamsWithContext creates a new GetTagsParams object with the ability to set a context for a request.

func NewGetTagsParamsWithHTTPClient

func NewGetTagsParamsWithHTTPClient(client *http.Client) *GetTagsParams

NewGetTagsParamsWithHTTPClient creates a new GetTagsParams object with the ability to set a custom HTTPClient for a request.

func NewGetTagsParamsWithTimeout

func NewGetTagsParamsWithTimeout(timeout time.Duration) *GetTagsParams

NewGetTagsParamsWithTimeout creates a new GetTagsParams object with the ability to set a timeout on a request.

func (*GetTagsParams) SetAPIVersion

func (o *GetTagsParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get tags params

func (*GetTagsParams) SetContext

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

SetContext adds the context to the get tags params

func (*GetTagsParams) SetDefaults added in v0.2.20

func (o *GetTagsParams) SetDefaults()

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

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

func (*GetTagsParams) SetDollarCount added in v0.4.0

func (o *GetTagsParams) SetDollarCount(dollarCount *bool)

SetDollarCount adds the dollarCount to the get tags params

func (*GetTagsParams) SetDollarFilter added in v0.4.0

func (o *GetTagsParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the get tags params

func (*GetTagsParams) SetDollarSelect added in v0.4.0

func (o *GetTagsParams) SetDollarSelect(dollarSelect *string)

SetDollarSelect adds the dollarSelect to the get tags params

func (*GetTagsParams) SetDollarSkip added in v0.4.0

func (o *GetTagsParams) SetDollarSkip(dollarSkip *int64)

SetDollarSkip adds the dollarSkip to the get tags params

func (*GetTagsParams) SetDollarTop added in v0.4.0

func (o *GetTagsParams) SetDollarTop(dollarTop *int64)

SetDollarTop adds the dollarTop to the get tags params

func (*GetTagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tags params

func (*GetTagsParams) SetTimeout

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

SetTimeout adds the timeout to the get tags params

func (*GetTagsParams) WithAPIVersion

func (o *GetTagsParams) WithAPIVersion(aPIVersion *string) *GetTagsParams

WithAPIVersion adds the aPIVersion to the get tags params

func (*GetTagsParams) WithContext

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

WithContext adds the context to the get tags params

func (*GetTagsParams) WithDefaults added in v0.2.20

func (o *GetTagsParams) WithDefaults() *GetTagsParams

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

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

func (*GetTagsParams) WithDollarCount added in v0.4.0

func (o *GetTagsParams) WithDollarCount(dollarCount *bool) *GetTagsParams

WithDollarCount adds the dollarCount to the get tags params

func (*GetTagsParams) WithDollarFilter added in v0.4.0

func (o *GetTagsParams) WithDollarFilter(dollarFilter *string) *GetTagsParams

WithDollarFilter adds the dollarFilter to the get tags params

func (*GetTagsParams) WithDollarSelect added in v0.4.0

func (o *GetTagsParams) WithDollarSelect(dollarSelect *string) *GetTagsParams

WithDollarSelect adds the dollarSelect to the get tags params

func (*GetTagsParams) WithDollarSkip added in v0.4.0

func (o *GetTagsParams) WithDollarSkip(dollarSkip *int64) *GetTagsParams

WithDollarSkip adds the dollarSkip to the get tags params

func (*GetTagsParams) WithDollarTop added in v0.4.0

func (o *GetTagsParams) WithDollarTop(dollarTop *int64) *GetTagsParams

WithDollarTop adds the dollarTop to the get tags params

func (*GetTagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tags params

func (*GetTagsParams) WithTimeout

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

WithTimeout adds the timeout to the get tags params

func (*GetTagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTagsReader

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

GetTagsReader is a Reader for the GetTags structure.

func (*GetTagsReader) ReadResponse

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