tags

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 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 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

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

type GetTagsParams

type GetTagsParams struct {

	/* 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) 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) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL