tags

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT 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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTagsOK, error)

GetTags Return all Tags that the current API token has access to.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTag

func (a *Client) UpdateTag(params *UpdateTagParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTagOK, error)

UpdateTag Updates an existing Tag.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	GetTags(params *GetTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTagsOK, error)

	UpdateTag(params *UpdateTagParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTagOK, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new tags API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new tags API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetTagsOK

type GetTagsOK struct {
	Payload *models.Tags
}

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

GetTagsOK get tags o k

func NewGetTagsOK

func NewGetTagsOK() *GetTagsOK

NewGetTagsOK creates a GetTagsOK with default headers values

func (*GetTagsOK) Code

func (o *GetTagsOK) Code() int

Code gets the status code for the get tags o k response

func (*GetTagsOK) Error

func (o *GetTagsOK) Error() string

func (*GetTagsOK) GetPayload

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

func (*GetTagsOK) IsClientError

func (o *GetTagsOK) IsClientError() bool

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

func (*GetTagsOK) IsCode

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

func (o *GetTagsOK) IsRedirect() bool

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

func (*GetTagsOK) IsServerError

func (o *GetTagsOK) IsServerError() bool

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

func (*GetTagsOK) IsSuccess

func (o *GetTagsOK) IsSuccess() bool

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

func (*GetTagsOK) String

func (o *GetTagsOK) String() string

type GetTagsParams

type GetTagsParams struct {

	/* SearchQuery.

	   A search query to filter Tags by tag key.
	*/
	SearchQuery *string

	/* SortDirection.

	   The direction in which you would like to sort the data by. Defaults to 'asc'.
	*/
	SortDirection *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) SetContext

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

SetContext adds the context to the get tags params

func (*GetTagsParams) SetDefaults

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) SetSearchQuery

func (o *GetTagsParams) SetSearchQuery(searchQuery *string)

SetSearchQuery adds the searchQuery to the get tags params

func (*GetTagsParams) SetSortDirection

func (o *GetTagsParams) SetSortDirection(sortDirection *string)

SetSortDirection adds the sortDirection 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) WithContext

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

WithContext adds the context to the get tags params

func (*GetTagsParams) WithDefaults

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) WithSearchQuery

func (o *GetTagsParams) WithSearchQuery(searchQuery *string) *GetTagsParams

WithSearchQuery adds the searchQuery to the get tags params

func (*GetTagsParams) WithSortDirection

func (o *GetTagsParams) WithSortDirection(sortDirection *string) *GetTagsParams

WithSortDirection adds the sortDirection 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.

type UpdateTagBadRequest

type UpdateTagBadRequest struct {
	Payload *models.Errors
}

UpdateTagBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewUpdateTagBadRequest

func NewUpdateTagBadRequest() *UpdateTagBadRequest

NewUpdateTagBadRequest creates a UpdateTagBadRequest with default headers values

func (*UpdateTagBadRequest) Code

func (o *UpdateTagBadRequest) Code() int

Code gets the status code for the update tag bad request response

func (*UpdateTagBadRequest) Error

func (o *UpdateTagBadRequest) Error() string

func (*UpdateTagBadRequest) GetPayload

func (o *UpdateTagBadRequest) GetPayload() *models.Errors

func (*UpdateTagBadRequest) IsClientError

func (o *UpdateTagBadRequest) IsClientError() bool

IsClientError returns true when this update tag bad request response has a 4xx status code

func (*UpdateTagBadRequest) IsCode

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

IsCode returns true when this update tag bad request response a status code equal to that given

func (*UpdateTagBadRequest) IsRedirect

func (o *UpdateTagBadRequest) IsRedirect() bool

IsRedirect returns true when this update tag bad request response has a 3xx status code

func (*UpdateTagBadRequest) IsServerError

func (o *UpdateTagBadRequest) IsServerError() bool

IsServerError returns true when this update tag bad request response has a 5xx status code

func (*UpdateTagBadRequest) IsSuccess

func (o *UpdateTagBadRequest) IsSuccess() bool

IsSuccess returns true when this update tag bad request response has a 2xx status code

func (*UpdateTagBadRequest) String

func (o *UpdateTagBadRequest) String() string

type UpdateTagForbidden

type UpdateTagForbidden struct {
	Payload *models.Errors
}

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

Forbidden

func NewUpdateTagForbidden

func NewUpdateTagForbidden() *UpdateTagForbidden

NewUpdateTagForbidden creates a UpdateTagForbidden with default headers values

func (*UpdateTagForbidden) Code

func (o *UpdateTagForbidden) Code() int

Code gets the status code for the update tag forbidden response

func (*UpdateTagForbidden) Error

func (o *UpdateTagForbidden) Error() string

func (*UpdateTagForbidden) GetPayload

func (o *UpdateTagForbidden) GetPayload() *models.Errors

func (*UpdateTagForbidden) IsClientError

func (o *UpdateTagForbidden) IsClientError() bool

IsClientError returns true when this update tag forbidden response has a 4xx status code

func (*UpdateTagForbidden) IsCode

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

IsCode returns true when this update tag forbidden response a status code equal to that given

func (*UpdateTagForbidden) IsRedirect

func (o *UpdateTagForbidden) IsRedirect() bool

IsRedirect returns true when this update tag forbidden response has a 3xx status code

func (*UpdateTagForbidden) IsServerError

func (o *UpdateTagForbidden) IsServerError() bool

IsServerError returns true when this update tag forbidden response has a 5xx status code

func (*UpdateTagForbidden) IsSuccess

func (o *UpdateTagForbidden) IsSuccess() bool

IsSuccess returns true when this update tag forbidden response has a 2xx status code

func (*UpdateTagForbidden) String

func (o *UpdateTagForbidden) String() string

type UpdateTagNotFound

type UpdateTagNotFound struct {
	Payload *models.Errors
}

UpdateTagNotFound describes a response with status code 404, with default header values.

NotFound

func NewUpdateTagNotFound

func NewUpdateTagNotFound() *UpdateTagNotFound

NewUpdateTagNotFound creates a UpdateTagNotFound with default headers values

func (*UpdateTagNotFound) Code

func (o *UpdateTagNotFound) Code() int

Code gets the status code for the update tag not found response

func (*UpdateTagNotFound) Error

func (o *UpdateTagNotFound) Error() string

func (*UpdateTagNotFound) GetPayload

func (o *UpdateTagNotFound) GetPayload() *models.Errors

func (*UpdateTagNotFound) IsClientError

func (o *UpdateTagNotFound) IsClientError() bool

IsClientError returns true when this update tag not found response has a 4xx status code

func (*UpdateTagNotFound) IsCode

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

IsCode returns true when this update tag not found response a status code equal to that given

func (*UpdateTagNotFound) IsRedirect

func (o *UpdateTagNotFound) IsRedirect() bool

IsRedirect returns true when this update tag not found response has a 3xx status code

func (*UpdateTagNotFound) IsServerError

func (o *UpdateTagNotFound) IsServerError() bool

IsServerError returns true when this update tag not found response has a 5xx status code

func (*UpdateTagNotFound) IsSuccess

func (o *UpdateTagNotFound) IsSuccess() bool

IsSuccess returns true when this update tag not found response has a 2xx status code

func (*UpdateTagNotFound) String

func (o *UpdateTagNotFound) String() string

type UpdateTagOK

type UpdateTagOK struct {
	Payload *models.Tag
}

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

UpdateTagOK update tag o k

func NewUpdateTagOK

func NewUpdateTagOK() *UpdateTagOK

NewUpdateTagOK creates a UpdateTagOK with default headers values

func (*UpdateTagOK) Code

func (o *UpdateTagOK) Code() int

Code gets the status code for the update tag o k response

func (*UpdateTagOK) Error

func (o *UpdateTagOK) Error() string

func (*UpdateTagOK) GetPayload

func (o *UpdateTagOK) GetPayload() *models.Tag

func (*UpdateTagOK) IsClientError

func (o *UpdateTagOK) IsClientError() bool

IsClientError returns true when this update tag o k response has a 4xx status code

func (*UpdateTagOK) IsCode

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

IsCode returns true when this update tag o k response a status code equal to that given

func (*UpdateTagOK) IsRedirect

func (o *UpdateTagOK) IsRedirect() bool

IsRedirect returns true when this update tag o k response has a 3xx status code

func (*UpdateTagOK) IsServerError

func (o *UpdateTagOK) IsServerError() bool

IsServerError returns true when this update tag o k response has a 5xx status code

func (*UpdateTagOK) IsSuccess

func (o *UpdateTagOK) IsSuccess() bool

IsSuccess returns true when this update tag o k response has a 2xx status code

func (*UpdateTagOK) String

func (o *UpdateTagOK) String() string

type UpdateTagParams

type UpdateTagParams struct {

	// UpdateTag.
	UpdateTag *models.UpdateTag

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

UpdateTagParams contains all the parameters to send to the API endpoint

for the update tag operation.

Typically these are written to a http.Request.

func NewUpdateTagParams

func NewUpdateTagParams() *UpdateTagParams

NewUpdateTagParams creates a new UpdateTagParams 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 NewUpdateTagParamsWithContext

func NewUpdateTagParamsWithContext(ctx context.Context) *UpdateTagParams

NewUpdateTagParamsWithContext creates a new UpdateTagParams object with the ability to set a context for a request.

func NewUpdateTagParamsWithHTTPClient

func NewUpdateTagParamsWithHTTPClient(client *http.Client) *UpdateTagParams

NewUpdateTagParamsWithHTTPClient creates a new UpdateTagParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTagParamsWithTimeout

func NewUpdateTagParamsWithTimeout(timeout time.Duration) *UpdateTagParams

NewUpdateTagParamsWithTimeout creates a new UpdateTagParams object with the ability to set a timeout on a request.

func (*UpdateTagParams) SetContext

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

SetContext adds the context to the update tag params

func (*UpdateTagParams) SetDefaults

func (o *UpdateTagParams) SetDefaults()

SetDefaults hydrates default values in the update tag params (not the query body).

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

func (*UpdateTagParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update tag params

func (*UpdateTagParams) SetTimeout

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

SetTimeout adds the timeout to the update tag params

func (*UpdateTagParams) SetUpdateTag

func (o *UpdateTagParams) SetUpdateTag(updateTag *models.UpdateTag)

SetUpdateTag adds the updateTag to the update tag params

func (*UpdateTagParams) WithContext

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

WithContext adds the context to the update tag params

func (*UpdateTagParams) WithDefaults

func (o *UpdateTagParams) WithDefaults() *UpdateTagParams

WithDefaults hydrates default values in the update tag params (not the query body).

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

func (*UpdateTagParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update tag params

func (*UpdateTagParams) WithTimeout

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

WithTimeout adds the timeout to the update tag params

func (*UpdateTagParams) WithUpdateTag

func (o *UpdateTagParams) WithUpdateTag(updateTag *models.UpdateTag) *UpdateTagParams

WithUpdateTag adds the updateTag to the update tag params

func (*UpdateTagParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateTagReader

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

UpdateTagReader is a Reader for the UpdateTag structure.

func (*UpdateTagReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTagUnprocessableEntity

type UpdateTagUnprocessableEntity struct {
	Payload *models.Errors
}

UpdateTagUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewUpdateTagUnprocessableEntity

func NewUpdateTagUnprocessableEntity() *UpdateTagUnprocessableEntity

NewUpdateTagUnprocessableEntity creates a UpdateTagUnprocessableEntity with default headers values

func (*UpdateTagUnprocessableEntity) Code

Code gets the status code for the update tag unprocessable entity response

func (*UpdateTagUnprocessableEntity) Error

func (*UpdateTagUnprocessableEntity) GetPayload

func (o *UpdateTagUnprocessableEntity) GetPayload() *models.Errors

func (*UpdateTagUnprocessableEntity) IsClientError

func (o *UpdateTagUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update tag unprocessable entity response has a 4xx status code

func (*UpdateTagUnprocessableEntity) IsCode

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

IsCode returns true when this update tag unprocessable entity response a status code equal to that given

func (*UpdateTagUnprocessableEntity) IsRedirect

func (o *UpdateTagUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this update tag unprocessable entity response has a 3xx status code

func (*UpdateTagUnprocessableEntity) IsServerError

func (o *UpdateTagUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update tag unprocessable entity response has a 5xx status code

func (*UpdateTagUnprocessableEntity) IsSuccess

func (o *UpdateTagUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this update tag unprocessable entity response has a 2xx status code

func (*UpdateTagUnprocessableEntity) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL