tag

package
v3.0.8-draft Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 12 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 tag API

func New

func New(transport runtime.ClientTransport,
	formats strfmt.Registry,
	authInfo runtime.ClientAuthInfoWriter,
	defaults KillbillDefaults) *Client

New creates a new tag API client.

func (*Client) GetTagAuditLogsWithHistory

func (a *Client) GetTagAuditLogsWithHistory(ctx context.Context, params *GetTagAuditLogsWithHistoryParams) (*GetTagAuditLogsWithHistoryOK, error)

GetTagAuditLogsWithHistory retrieves tag audit logs with history by id

resource description

func (*Client) GetTags

func (a *Client) GetTags(ctx context.Context, params *GetTagsParams) (*GetTagsOK, error)

GetTags lists tags

resource description

func (*Client) SearchTags

func (a *Client) SearchTags(ctx context.Context, params *SearchTagsParams) (*SearchTagsOK, error)

SearchTags searches tags

resource description

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetTagAuditLogsWithHistoryNotFound

type GetTagAuditLogsWithHistoryNotFound struct {
	HttpResponse runtime.ClientResponse
}

GetTagAuditLogsWithHistoryNotFound handles this case with default header values.

Account not found

func NewGetTagAuditLogsWithHistoryNotFound

func NewGetTagAuditLogsWithHistoryNotFound() *GetTagAuditLogsWithHistoryNotFound

NewGetTagAuditLogsWithHistoryNotFound creates a GetTagAuditLogsWithHistoryNotFound with default headers values

func (*GetTagAuditLogsWithHistoryNotFound) Error

type GetTagAuditLogsWithHistoryOK

type GetTagAuditLogsWithHistoryOK struct {
	Payload []*kbmodel.AuditLog

	HttpResponse runtime.ClientResponse
}

GetTagAuditLogsWithHistoryOK handles this case with default header values.

successful operation

func NewGetTagAuditLogsWithHistoryOK

func NewGetTagAuditLogsWithHistoryOK() *GetTagAuditLogsWithHistoryOK

NewGetTagAuditLogsWithHistoryOK creates a GetTagAuditLogsWithHistoryOK with default headers values

func (*GetTagAuditLogsWithHistoryOK) Error

func (*GetTagAuditLogsWithHistoryOK) GetPayload

func (o *GetTagAuditLogsWithHistoryOK) GetPayload() []*kbmodel.AuditLog

type GetTagAuditLogsWithHistoryParams

type GetTagAuditLogsWithHistoryParams struct {

	/*TagID*/
	TagID strfmt.UUID

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetTagAuditLogsWithHistoryParams contains all the parameters to send to the API endpoint for the get tag audit logs with history operation typically these are written to a http.Request

func NewGetTagAuditLogsWithHistoryParams

func NewGetTagAuditLogsWithHistoryParams() *GetTagAuditLogsWithHistoryParams

NewGetTagAuditLogsWithHistoryParams creates a new GetTagAuditLogsWithHistoryParams object with the default values initialized.

func NewGetTagAuditLogsWithHistoryParamsWithContext

func NewGetTagAuditLogsWithHistoryParamsWithContext(ctx context.Context) *GetTagAuditLogsWithHistoryParams

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

func NewGetTagAuditLogsWithHistoryParamsWithHTTPClient

func NewGetTagAuditLogsWithHistoryParamsWithHTTPClient(client *http.Client) *GetTagAuditLogsWithHistoryParams

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

func NewGetTagAuditLogsWithHistoryParamsWithTimeout

func NewGetTagAuditLogsWithHistoryParamsWithTimeout(timeout time.Duration) *GetTagAuditLogsWithHistoryParams

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

func (*GetTagAuditLogsWithHistoryParams) SetContext

SetContext adds the context to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) SetTagID

func (o *GetTagAuditLogsWithHistoryParams) SetTagID(tagID strfmt.UUID)

SetTagID adds the tagId to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) SetTimeout

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

SetTimeout adds the timeout to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) WithContext

WithContext adds the context to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) WithTagID

WithTagID adds the tagID to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) WithTimeout

WithTimeout adds the timeout to the get tag audit logs with history params

func (*GetTagAuditLogsWithHistoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTagAuditLogsWithHistoryReader

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

GetTagAuditLogsWithHistoryReader is a Reader for the GetTagAuditLogsWithHistory structure.

func (*GetTagAuditLogsWithHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTagsOK

type GetTagsOK struct {
	Payload []*kbmodel.Tag

	HttpResponse runtime.ClientResponse
}

GetTagsOK handles this case 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() []*kbmodel.Tag

type GetTagsParams

type GetTagsParams struct {

	/*Audit*/
	Audit *string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// 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 values initialized.

func NewGetTagsParamsWithContext

func NewGetTagsParamsWithContext(ctx context.Context) *GetTagsParams

NewGetTagsParamsWithContext creates a new GetTagsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*GetTagsParams) SetAudit

func (o *GetTagsParams) SetAudit(audit *string)

SetAudit adds the audit 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tags params

func (*GetTagsParams) SetLimit

func (o *GetTagsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get tags params

func (*GetTagsParams) SetOffset

func (o *GetTagsParams) SetOffset(offset *int64)

SetOffset adds the offset 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) WithAudit

func (o *GetTagsParams) WithAudit(audit *string) *GetTagsParams

WithAudit adds the audit 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tags params

func (*GetTagsParams) WithLimit

func (o *GetTagsParams) WithLimit(limit *int64) *GetTagsParams

WithLimit adds the limit to the get tags params

func (*GetTagsParams) WithOffset

func (o *GetTagsParams) WithOffset(offset *int64) *GetTagsParams

WithOffset adds the offset 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 ITag

type ITag interface {
	/*
		GetTagAuditLogsWithHistory retrieves tag audit logs with history by id

		resource description
	*/
	GetTagAuditLogsWithHistory(ctx context.Context, params *GetTagAuditLogsWithHistoryParams) (*GetTagAuditLogsWithHistoryOK, error)

	/*
		GetTags lists tags

		resource description
	*/
	GetTags(ctx context.Context, params *GetTagsParams) (*GetTagsOK, error)

	/*
		SearchTags searches tags

		resource description
	*/
	SearchTags(ctx context.Context, params *SearchTagsParams) (*SearchTagsOK, error)
}

ITag - interface for Tag client.

type KillbillDefaults

type KillbillDefaults interface {
	// Default CreatedBy. If not set explicitly in params, this will be used.
	XKillbillCreatedBy() *string
	// Default Comment. If not set explicitly in params, this will be used.
	XKillbillComment() *string
	// Default Reason. If not set explicitly in params, this will be used.
	XKillbillReason() *string
	// Default WithWithProfilingInfo. If not set explicitly in params, this will be used.
	KillbillWithProfilingInfo() *string
	// Default WithStackTrace. If not set explicitly in params, this will be used.
	KillbillWithStackTrace() *bool
}

killbill default values. When a call is made to an operation, these values are used if params doesn't specify them.

type SearchTagsOK

type SearchTagsOK struct {
	Payload []*kbmodel.Tag

	HttpResponse runtime.ClientResponse
}

SearchTagsOK handles this case with default header values.

successful operation

func NewSearchTagsOK

func NewSearchTagsOK() *SearchTagsOK

NewSearchTagsOK creates a SearchTagsOK with default headers values

func (*SearchTagsOK) Error

func (o *SearchTagsOK) Error() string

func (*SearchTagsOK) GetPayload

func (o *SearchTagsOK) GetPayload() []*kbmodel.Tag

type SearchTagsParams

type SearchTagsParams struct {

	/*Audit*/
	Audit *string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64
	/*SearchKey*/
	SearchKey string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

SearchTagsParams contains all the parameters to send to the API endpoint for the search tags operation typically these are written to a http.Request

func NewSearchTagsParams

func NewSearchTagsParams() *SearchTagsParams

NewSearchTagsParams creates a new SearchTagsParams object with the default values initialized.

func NewSearchTagsParamsWithContext

func NewSearchTagsParamsWithContext(ctx context.Context) *SearchTagsParams

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

func NewSearchTagsParamsWithHTTPClient

func NewSearchTagsParamsWithHTTPClient(client *http.Client) *SearchTagsParams

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

func NewSearchTagsParamsWithTimeout

func NewSearchTagsParamsWithTimeout(timeout time.Duration) *SearchTagsParams

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

func (*SearchTagsParams) SetAudit

func (o *SearchTagsParams) SetAudit(audit *string)

SetAudit adds the audit to the search tags params

func (*SearchTagsParams) SetContext

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

SetContext adds the context to the search tags params

func (*SearchTagsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search tags params

func (*SearchTagsParams) SetLimit

func (o *SearchTagsParams) SetLimit(limit *int64)

SetLimit adds the limit to the search tags params

func (*SearchTagsParams) SetOffset

func (o *SearchTagsParams) SetOffset(offset *int64)

SetOffset adds the offset to the search tags params

func (*SearchTagsParams) SetSearchKey

func (o *SearchTagsParams) SetSearchKey(searchKey string)

SetSearchKey adds the searchKey to the search tags params

func (*SearchTagsParams) SetTimeout

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

SetTimeout adds the timeout to the search tags params

func (*SearchTagsParams) WithAudit

func (o *SearchTagsParams) WithAudit(audit *string) *SearchTagsParams

WithAudit adds the audit to the search tags params

func (*SearchTagsParams) WithContext

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

WithContext adds the context to the search tags params

func (*SearchTagsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search tags params

func (*SearchTagsParams) WithLimit

func (o *SearchTagsParams) WithLimit(limit *int64) *SearchTagsParams

WithLimit adds the limit to the search tags params

func (*SearchTagsParams) WithOffset

func (o *SearchTagsParams) WithOffset(offset *int64) *SearchTagsParams

WithOffset adds the offset to the search tags params

func (*SearchTagsParams) WithSearchKey

func (o *SearchTagsParams) WithSearchKey(searchKey string) *SearchTagsParams

WithSearchKey adds the searchKey to the search tags params

func (*SearchTagsParams) WithTimeout

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

WithTimeout adds the timeout to the search tags params

func (*SearchTagsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchTagsReader

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

SearchTagsReader is a Reader for the SearchTags structure.

func (*SearchTagsReader) ReadResponse

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