Documentation
¶
Index ¶
- type Client
- func (a *Client) GetTagAuditLogsWithHistory(params *GetTagAuditLogsWithHistoryParams, ...) (*GetTagAuditLogsWithHistoryOK, error)
- func (a *Client) GetTags(params *GetTagsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTagsOK, error)
- func (a *Client) SearchTags(params *SearchTagsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchTagsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetTagAuditLogsWithHistoryNotFound
- type GetTagAuditLogsWithHistoryOK
- type GetTagAuditLogsWithHistoryParams
- func NewGetTagAuditLogsWithHistoryParams() *GetTagAuditLogsWithHistoryParams
- func NewGetTagAuditLogsWithHistoryParamsWithContext(ctx context.Context) *GetTagAuditLogsWithHistoryParams
- func NewGetTagAuditLogsWithHistoryParamsWithHTTPClient(client *http.Client) *GetTagAuditLogsWithHistoryParams
- func NewGetTagAuditLogsWithHistoryParamsWithTimeout(timeout time.Duration) *GetTagAuditLogsWithHistoryParams
- func (o *GetTagAuditLogsWithHistoryParams) SetContext(ctx context.Context)
- func (o *GetTagAuditLogsWithHistoryParams) SetDefaults()
- func (o *GetTagAuditLogsWithHistoryParams) SetHTTPClient(client *http.Client)
- func (o *GetTagAuditLogsWithHistoryParams) SetTagID(tagID strfmt.UUID)
- func (o *GetTagAuditLogsWithHistoryParams) SetTimeout(timeout time.Duration)
- func (o *GetTagAuditLogsWithHistoryParams) WithContext(ctx context.Context) *GetTagAuditLogsWithHistoryParams
- func (o *GetTagAuditLogsWithHistoryParams) WithDefaults() *GetTagAuditLogsWithHistoryParams
- func (o *GetTagAuditLogsWithHistoryParams) WithHTTPClient(client *http.Client) *GetTagAuditLogsWithHistoryParams
- func (o *GetTagAuditLogsWithHistoryParams) WithTagID(tagID strfmt.UUID) *GetTagAuditLogsWithHistoryParams
- func (o *GetTagAuditLogsWithHistoryParams) WithTimeout(timeout time.Duration) *GetTagAuditLogsWithHistoryParams
- func (o *GetTagAuditLogsWithHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTagAuditLogsWithHistoryReader
- type GetTagsOK
- type GetTagsParams
- func (o *GetTagsParams) SetAudit(audit *string)
- func (o *GetTagsParams) SetContext(ctx context.Context)
- func (o *GetTagsParams) SetDefaults()
- func (o *GetTagsParams) SetHTTPClient(client *http.Client)
- func (o *GetTagsParams) SetLimit(limit *int64)
- func (o *GetTagsParams) SetOffset(offset *int64)
- func (o *GetTagsParams) SetTimeout(timeout time.Duration)
- func (o *GetTagsParams) WithAudit(audit *string) *GetTagsParams
- func (o *GetTagsParams) WithContext(ctx context.Context) *GetTagsParams
- func (o *GetTagsParams) WithDefaults() *GetTagsParams
- func (o *GetTagsParams) WithHTTPClient(client *http.Client) *GetTagsParams
- func (o *GetTagsParams) WithLimit(limit *int64) *GetTagsParams
- func (o *GetTagsParams) WithOffset(offset *int64) *GetTagsParams
- func (o *GetTagsParams) WithTimeout(timeout time.Duration) *GetTagsParams
- func (o *GetTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTagsReader
- type SearchTagsOK
- type SearchTagsParams
- func (o *SearchTagsParams) SetAudit(audit *string)
- func (o *SearchTagsParams) SetContext(ctx context.Context)
- func (o *SearchTagsParams) SetDefaults()
- func (o *SearchTagsParams) SetHTTPClient(client *http.Client)
- func (o *SearchTagsParams) SetLimit(limit *int64)
- func (o *SearchTagsParams) SetOffset(offset *int64)
- func (o *SearchTagsParams) SetSearchKey(searchKey string)
- func (o *SearchTagsParams) SetTimeout(timeout time.Duration)
- func (o *SearchTagsParams) WithAudit(audit *string) *SearchTagsParams
- func (o *SearchTagsParams) WithContext(ctx context.Context) *SearchTagsParams
- func (o *SearchTagsParams) WithDefaults() *SearchTagsParams
- func (o *SearchTagsParams) WithHTTPClient(client *http.Client) *SearchTagsParams
- func (o *SearchTagsParams) WithLimit(limit *int64) *SearchTagsParams
- func (o *SearchTagsParams) WithOffset(offset *int64) *SearchTagsParams
- func (o *SearchTagsParams) WithSearchKey(searchKey string) *SearchTagsParams
- func (o *SearchTagsParams) WithTimeout(timeout time.Duration) *SearchTagsParams
- func (o *SearchTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchTagsReader
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 (*Client) GetTagAuditLogsWithHistory ¶
func (a *Client) GetTagAuditLogsWithHistory(params *GetTagAuditLogsWithHistoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTagAuditLogsWithHistoryOK, error)
GetTagAuditLogsWithHistory retrieves tag audit logs with history by id
func (*Client) GetTags ¶
func (a *Client) GetTags(params *GetTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTagsOK, error)
GetTags lists tags
func (*Client) SearchTags ¶
func (a *Client) SearchTags(params *SearchTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchTagsOK, error)
SearchTags searches tags
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetTagAuditLogsWithHistory(params *GetTagAuditLogsWithHistoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTagAuditLogsWithHistoryOK, error) GetTags(params *GetTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTagsOK, error) SearchTags(params *SearchTagsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchTagsOK, 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 tag API client.
type GetTagAuditLogsWithHistoryNotFound ¶
type GetTagAuditLogsWithHistoryNotFound struct { }
GetTagAuditLogsWithHistoryNotFound describes a response with status code 404, with default header values.
Account not found
func NewGetTagAuditLogsWithHistoryNotFound ¶
func NewGetTagAuditLogsWithHistoryNotFound() *GetTagAuditLogsWithHistoryNotFound
NewGetTagAuditLogsWithHistoryNotFound creates a GetTagAuditLogsWithHistoryNotFound with default headers values
func (*GetTagAuditLogsWithHistoryNotFound) Error ¶
func (o *GetTagAuditLogsWithHistoryNotFound) Error() string
type GetTagAuditLogsWithHistoryOK ¶
GetTagAuditLogsWithHistoryOK describes a response with status code 200, with default header values.
successful operation
func NewGetTagAuditLogsWithHistoryOK ¶
func NewGetTagAuditLogsWithHistoryOK() *GetTagAuditLogsWithHistoryOK
NewGetTagAuditLogsWithHistoryOK creates a GetTagAuditLogsWithHistoryOK with default headers values
func (*GetTagAuditLogsWithHistoryOK) Error ¶
func (o *GetTagAuditLogsWithHistoryOK) Error() string
func (*GetTagAuditLogsWithHistoryOK) GetPayload ¶
func (o *GetTagAuditLogsWithHistoryOK) GetPayload() []*kbmodel.AuditLog
type GetTagAuditLogsWithHistoryParams ¶
type GetTagAuditLogsWithHistoryParams struct { // TagID. // // Format: uuid TagID strfmt.UUID Context context.Context HTTPClient *http.Client // 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 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 NewGetTagAuditLogsWithHistoryParamsWithContext ¶
func NewGetTagAuditLogsWithHistoryParamsWithContext(ctx context.Context) *GetTagAuditLogsWithHistoryParams
NewGetTagAuditLogsWithHistoryParamsWithContext creates a new GetTagAuditLogsWithHistoryParams object with 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 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 ability to set a timeout on a request.
func (*GetTagAuditLogsWithHistoryParams) SetContext ¶
func (o *GetTagAuditLogsWithHistoryParams) SetContext(ctx context.Context)
SetContext adds the context to the get tag audit logs with history params
func (*GetTagAuditLogsWithHistoryParams) SetDefaults ¶
func (o *GetTagAuditLogsWithHistoryParams) SetDefaults()
SetDefaults hydrates default values in the get tag audit logs with history params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *GetTagAuditLogsWithHistoryParams) WithContext(ctx context.Context) *GetTagAuditLogsWithHistoryParams
WithContext adds the context to the get tag audit logs with history params
func (*GetTagAuditLogsWithHistoryParams) WithDefaults ¶
func (o *GetTagAuditLogsWithHistoryParams) WithDefaults() *GetTagAuditLogsWithHistoryParams
WithDefaults hydrates default values in the get tag audit logs with history params (not the query body).
All values with no default are reset to their zero value.
func (*GetTagAuditLogsWithHistoryParams) WithHTTPClient ¶
func (o *GetTagAuditLogsWithHistoryParams) WithHTTPClient(client *http.Client) *GetTagAuditLogsWithHistoryParams
WithHTTPClient adds the HTTPClient to the get tag audit logs with history params
func (*GetTagAuditLogsWithHistoryParams) WithTagID ¶
func (o *GetTagAuditLogsWithHistoryParams) WithTagID(tagID strfmt.UUID) *GetTagAuditLogsWithHistoryParams
WithTagID adds the tagID to the get tag audit logs with history params
func (*GetTagAuditLogsWithHistoryParams) WithTimeout ¶
func (o *GetTagAuditLogsWithHistoryParams) WithTimeout(timeout time.Duration) *GetTagAuditLogsWithHistoryParams
WithTimeout adds the timeout to the get tag audit logs with history params
func (*GetTagAuditLogsWithHistoryParams) WriteToRequest ¶
func (o *GetTagAuditLogsWithHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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) GetPayload ¶
type GetTagsParams ¶
type GetTagsParams struct { // Audit. // // Default: "NONE" Audit *string // Limit. // // Format: int64 // Default: 100 Limit *int64 // Offset. // // Format: int64 Offset *int64 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) 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) 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) 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) 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) 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 SearchTagsOK ¶
SearchTagsOK describes a response with status code 200, 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. // // Default: "NONE" Audit *string // Limit. // // Format: int64 // Default: 100 Limit *int64 // Offset. // // Format: int64 Offset *int64 // SearchKey. SearchKey string Context context.Context HTTPClient *http.Client // 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 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 NewSearchTagsParamsWithContext ¶
func NewSearchTagsParamsWithContext(ctx context.Context) *SearchTagsParams
NewSearchTagsParamsWithContext creates a new SearchTagsParams object with 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 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 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) SetDefaults ¶
func (o *SearchTagsParams) SetDefaults()
SetDefaults hydrates default values in the search tags params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *SearchTagsParams) WithDefaults() *SearchTagsParams
WithDefaults hydrates default values in the search tags params (not the query body).
All values with no default are reset to their zero value.
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.