Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type FilterListOK
- type FilterListParams
- func (o *FilterListParams) SetContext(ctx context.Context)
- func (o *FilterListParams) SetDefaults()
- func (o *FilterListParams) SetFields(fields *string)
- func (o *FilterListParams) SetFilter(filter *string)
- func (o *FilterListParams) SetHTTPClient(client *http.Client)
- func (o *FilterListParams) SetLimit(limit *int64)
- func (o *FilterListParams) SetOffset(offset *int64)
- func (o *FilterListParams) SetOrderBy(orderBy *string)
- func (o *FilterListParams) SetPageToken(pageToken *string)
- func (o *FilterListParams) SetTfilter(tfilter *string)
- func (o *FilterListParams) SetTimeout(timeout time.Duration)
- func (o *FilterListParams) SetTorderBy(torderBy *string)
- func (o *FilterListParams) WithContext(ctx context.Context) *FilterListParams
- func (o *FilterListParams) WithDefaults() *FilterListParams
- func (o *FilterListParams) WithFields(fields *string) *FilterListParams
- func (o *FilterListParams) WithFilter(filter *string) *FilterListParams
- func (o *FilterListParams) WithHTTPClient(client *http.Client) *FilterListParams
- func (o *FilterListParams) WithLimit(limit *int64) *FilterListParams
- func (o *FilterListParams) WithOffset(offset *int64) *FilterListParams
- func (o *FilterListParams) WithOrderBy(orderBy *string) *FilterListParams
- func (o *FilterListParams) WithPageToken(pageToken *string) *FilterListParams
- func (o *FilterListParams) WithTfilter(tfilter *string) *FilterListParams
- func (o *FilterListParams) WithTimeout(timeout time.Duration) *FilterListParams
- func (o *FilterListParams) WithTorderBy(torderBy *string) *FilterListParams
- func (o *FilterListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FilterListReader
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 filter API
func (*Client) FilterList ¶
func (a *Client) FilterList(params *FilterListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FilterListOK, error)
FilterList retrieves d h c p filters
Use this method to retrieve DHCP __Filter__ objects of all types.
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 { FilterList(params *FilterListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FilterListOK, 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 filter API client.
type FilterListOK ¶
type FilterListOK struct {
Payload *models.IpamsvcListFilterResponse
}
FilterListOK describes a response with status code 200, with default header values.
GET operation response
func NewFilterListOK ¶
func NewFilterListOK() *FilterListOK
NewFilterListOK creates a FilterListOK with default headers values
func (*FilterListOK) Error ¶
func (o *FilterListOK) Error() string
func (*FilterListOK) GetPayload ¶
func (o *FilterListOK) GetPayload() *models.IpamsvcListFilterResponse
type FilterListParams ¶
type FilterListParams struct { /* Fields. A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. */ Fields *string /* Filter. A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | */ Filter *string /* Limit. The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. */ Limit *int64 /* Offset. The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. */ Offset *int64 /* OrderBy. A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. */ OrderBy *string /* PageToken. The service-defined string used to identify a page of resources. A null value indicates the first page. */ PageToken *string /* Tfilter. This parameter is used for filtering by tags. */ Tfilter *string /* TorderBy. This parameter is used for sorting by tags. */ TorderBy *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FilterListParams contains all the parameters to send to the API endpoint
for the filter list operation. Typically these are written to a http.Request.
func NewFilterListParams ¶
func NewFilterListParams() *FilterListParams
NewFilterListParams creates a new FilterListParams 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 NewFilterListParamsWithContext ¶
func NewFilterListParamsWithContext(ctx context.Context) *FilterListParams
NewFilterListParamsWithContext creates a new FilterListParams object with the ability to set a context for a request.
func NewFilterListParamsWithHTTPClient ¶
func NewFilterListParamsWithHTTPClient(client *http.Client) *FilterListParams
NewFilterListParamsWithHTTPClient creates a new FilterListParams object with the ability to set a custom HTTPClient for a request.
func NewFilterListParamsWithTimeout ¶
func NewFilterListParamsWithTimeout(timeout time.Duration) *FilterListParams
NewFilterListParamsWithTimeout creates a new FilterListParams object with the ability to set a timeout on a request.
func (*FilterListParams) SetContext ¶
func (o *FilterListParams) SetContext(ctx context.Context)
SetContext adds the context to the filter list params
func (*FilterListParams) SetDefaults ¶
func (o *FilterListParams) SetDefaults()
SetDefaults hydrates default values in the filter list params (not the query body).
All values with no default are reset to their zero value.
func (*FilterListParams) SetFields ¶
func (o *FilterListParams) SetFields(fields *string)
SetFields adds the fields to the filter list params
func (*FilterListParams) SetFilter ¶
func (o *FilterListParams) SetFilter(filter *string)
SetFilter adds the filter to the filter list params
func (*FilterListParams) SetHTTPClient ¶
func (o *FilterListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the filter list params
func (*FilterListParams) SetLimit ¶
func (o *FilterListParams) SetLimit(limit *int64)
SetLimit adds the limit to the filter list params
func (*FilterListParams) SetOffset ¶
func (o *FilterListParams) SetOffset(offset *int64)
SetOffset adds the offset to the filter list params
func (*FilterListParams) SetOrderBy ¶
func (o *FilterListParams) SetOrderBy(orderBy *string)
SetOrderBy adds the orderBy to the filter list params
func (*FilterListParams) SetPageToken ¶
func (o *FilterListParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the filter list params
func (*FilterListParams) SetTfilter ¶
func (o *FilterListParams) SetTfilter(tfilter *string)
SetTfilter adds the tfilter to the filter list params
func (*FilterListParams) SetTimeout ¶
func (o *FilterListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the filter list params
func (*FilterListParams) SetTorderBy ¶
func (o *FilterListParams) SetTorderBy(torderBy *string)
SetTorderBy adds the torderBy to the filter list params
func (*FilterListParams) WithContext ¶
func (o *FilterListParams) WithContext(ctx context.Context) *FilterListParams
WithContext adds the context to the filter list params
func (*FilterListParams) WithDefaults ¶
func (o *FilterListParams) WithDefaults() *FilterListParams
WithDefaults hydrates default values in the filter list params (not the query body).
All values with no default are reset to their zero value.
func (*FilterListParams) WithFields ¶
func (o *FilterListParams) WithFields(fields *string) *FilterListParams
WithFields adds the fields to the filter list params
func (*FilterListParams) WithFilter ¶
func (o *FilterListParams) WithFilter(filter *string) *FilterListParams
WithFilter adds the filter to the filter list params
func (*FilterListParams) WithHTTPClient ¶
func (o *FilterListParams) WithHTTPClient(client *http.Client) *FilterListParams
WithHTTPClient adds the HTTPClient to the filter list params
func (*FilterListParams) WithLimit ¶
func (o *FilterListParams) WithLimit(limit *int64) *FilterListParams
WithLimit adds the limit to the filter list params
func (*FilterListParams) WithOffset ¶
func (o *FilterListParams) WithOffset(offset *int64) *FilterListParams
WithOffset adds the offset to the filter list params
func (*FilterListParams) WithOrderBy ¶
func (o *FilterListParams) WithOrderBy(orderBy *string) *FilterListParams
WithOrderBy adds the orderBy to the filter list params
func (*FilterListParams) WithPageToken ¶
func (o *FilterListParams) WithPageToken(pageToken *string) *FilterListParams
WithPageToken adds the pageToken to the filter list params
func (*FilterListParams) WithTfilter ¶
func (o *FilterListParams) WithTfilter(tfilter *string) *FilterListParams
WithTfilter adds the tfilter to the filter list params
func (*FilterListParams) WithTimeout ¶
func (o *FilterListParams) WithTimeout(timeout time.Duration) *FilterListParams
WithTimeout adds the timeout to the filter list params
func (*FilterListParams) WithTorderBy ¶
func (o *FilterListParams) WithTorderBy(torderBy *string) *FilterListParams
WithTorderBy adds the torderBy to the filter list params
func (*FilterListParams) WriteToRequest ¶
func (o *FilterListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FilterListReader ¶
type FilterListReader struct {
// contains filtered or unexported fields
}
FilterListReader is a Reader for the FilterList structure.
func (*FilterListReader) ReadResponse ¶
func (o *FilterListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.