Documentation
¶
Index ¶
- type Client
- func (a *Client) DNSUsageList(params *DNSUsageListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DNSUsageListOK, error)
- func (a *Client) DNSUsageRead(params *DNSUsageReadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DNSUsageReadOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DNSUsageListOK
- type DNSUsageListParams
- func (o *DNSUsageListParams) SetContext(ctx context.Context)
- func (o *DNSUsageListParams) SetDefaults()
- func (o *DNSUsageListParams) SetFields(fields *string)
- func (o *DNSUsageListParams) SetFilter(filter *string)
- func (o *DNSUsageListParams) SetHTTPClient(client *http.Client)
- func (o *DNSUsageListParams) SetLimit(limit *int64)
- func (o *DNSUsageListParams) SetOffset(offset *int64)
- func (o *DNSUsageListParams) SetOrderBy(orderBy *string)
- func (o *DNSUsageListParams) SetPageToken(pageToken *string)
- func (o *DNSUsageListParams) SetTimeout(timeout time.Duration)
- func (o *DNSUsageListParams) WithContext(ctx context.Context) *DNSUsageListParams
- func (o *DNSUsageListParams) WithDefaults() *DNSUsageListParams
- func (o *DNSUsageListParams) WithFields(fields *string) *DNSUsageListParams
- func (o *DNSUsageListParams) WithFilter(filter *string) *DNSUsageListParams
- func (o *DNSUsageListParams) WithHTTPClient(client *http.Client) *DNSUsageListParams
- func (o *DNSUsageListParams) WithLimit(limit *int64) *DNSUsageListParams
- func (o *DNSUsageListParams) WithOffset(offset *int64) *DNSUsageListParams
- func (o *DNSUsageListParams) WithOrderBy(orderBy *string) *DNSUsageListParams
- func (o *DNSUsageListParams) WithPageToken(pageToken *string) *DNSUsageListParams
- func (o *DNSUsageListParams) WithTimeout(timeout time.Duration) *DNSUsageListParams
- func (o *DNSUsageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DNSUsageListReader
- type DNSUsageReadOK
- type DNSUsageReadParams
- func (o *DNSUsageReadParams) SetContext(ctx context.Context)
- func (o *DNSUsageReadParams) SetDefaults()
- func (o *DNSUsageReadParams) SetFields(fields *string)
- func (o *DNSUsageReadParams) SetHTTPClient(client *http.Client)
- func (o *DNSUsageReadParams) SetID(id string)
- func (o *DNSUsageReadParams) SetTimeout(timeout time.Duration)
- func (o *DNSUsageReadParams) WithContext(ctx context.Context) *DNSUsageReadParams
- func (o *DNSUsageReadParams) WithDefaults() *DNSUsageReadParams
- func (o *DNSUsageReadParams) WithFields(fields *string) *DNSUsageReadParams
- func (o *DNSUsageReadParams) WithHTTPClient(client *http.Client) *DNSUsageReadParams
- func (o *DNSUsageReadParams) WithID(id string) *DNSUsageReadParams
- func (o *DNSUsageReadParams) WithTimeout(timeout time.Duration) *DNSUsageReadParams
- func (o *DNSUsageReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DNSUsageReadReader
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 dns usage API
func (*Client) DNSUsageList ¶
func (a *Client) DNSUsageList(params *DNSUsageListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DNSUsageListOK, error)
DNSUsageList retrieves DNS usage for multiple objects
Use this method to retrieve __DNSUsage__ objects.
func (*Client) DNSUsageRead ¶
func (a *Client) DNSUsageRead(params *DNSUsageReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DNSUsageReadOK, error)
DNSUsageRead retrieves the DNS usage
Use this method to retrieve a __DNSUsage__ object.
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 { DNSUsageList(params *DNSUsageListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DNSUsageListOK, error) DNSUsageRead(params *DNSUsageReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DNSUsageReadOK, 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 dns usage API client.
type DNSUsageListOK ¶
type DNSUsageListOK struct {
Payload *models.IpamsvcListDNSUsageResponse
}
DNSUsageListOK describes a response with status code 200, with default header values.
GET operation response
func NewDNSUsageListOK ¶
func NewDNSUsageListOK() *DNSUsageListOK
NewDNSUsageListOK creates a DNSUsageListOK with default headers values
func (*DNSUsageListOK) Error ¶
func (o *DNSUsageListOK) Error() string
func (*DNSUsageListOK) GetPayload ¶
func (o *DNSUsageListOK) GetPayload() *models.IpamsvcListDNSUsageResponse
type DNSUsageListParams ¶
type DNSUsageListParams 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 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DNSUsageListParams contains all the parameters to send to the API endpoint
for the dns usage list operation. Typically these are written to a http.Request.
func NewDNSUsageListParams ¶
func NewDNSUsageListParams() *DNSUsageListParams
NewDNSUsageListParams creates a new DNSUsageListParams 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 NewDNSUsageListParamsWithContext ¶
func NewDNSUsageListParamsWithContext(ctx context.Context) *DNSUsageListParams
NewDNSUsageListParamsWithContext creates a new DNSUsageListParams object with the ability to set a context for a request.
func NewDNSUsageListParamsWithHTTPClient ¶
func NewDNSUsageListParamsWithHTTPClient(client *http.Client) *DNSUsageListParams
NewDNSUsageListParamsWithHTTPClient creates a new DNSUsageListParams object with the ability to set a custom HTTPClient for a request.
func NewDNSUsageListParamsWithTimeout ¶
func NewDNSUsageListParamsWithTimeout(timeout time.Duration) *DNSUsageListParams
NewDNSUsageListParamsWithTimeout creates a new DNSUsageListParams object with the ability to set a timeout on a request.
func (*DNSUsageListParams) SetContext ¶
func (o *DNSUsageListParams) SetContext(ctx context.Context)
SetContext adds the context to the dns usage list params
func (*DNSUsageListParams) SetDefaults ¶
func (o *DNSUsageListParams) SetDefaults()
SetDefaults hydrates default values in the dns usage list params (not the query body).
All values with no default are reset to their zero value.
func (*DNSUsageListParams) SetFields ¶
func (o *DNSUsageListParams) SetFields(fields *string)
SetFields adds the fields to the dns usage list params
func (*DNSUsageListParams) SetFilter ¶
func (o *DNSUsageListParams) SetFilter(filter *string)
SetFilter adds the filter to the dns usage list params
func (*DNSUsageListParams) SetHTTPClient ¶
func (o *DNSUsageListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the dns usage list params
func (*DNSUsageListParams) SetLimit ¶
func (o *DNSUsageListParams) SetLimit(limit *int64)
SetLimit adds the limit to the dns usage list params
func (*DNSUsageListParams) SetOffset ¶
func (o *DNSUsageListParams) SetOffset(offset *int64)
SetOffset adds the offset to the dns usage list params
func (*DNSUsageListParams) SetOrderBy ¶
func (o *DNSUsageListParams) SetOrderBy(orderBy *string)
SetOrderBy adds the orderBy to the dns usage list params
func (*DNSUsageListParams) SetPageToken ¶
func (o *DNSUsageListParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the dns usage list params
func (*DNSUsageListParams) SetTimeout ¶
func (o *DNSUsageListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the dns usage list params
func (*DNSUsageListParams) WithContext ¶
func (o *DNSUsageListParams) WithContext(ctx context.Context) *DNSUsageListParams
WithContext adds the context to the dns usage list params
func (*DNSUsageListParams) WithDefaults ¶
func (o *DNSUsageListParams) WithDefaults() *DNSUsageListParams
WithDefaults hydrates default values in the dns usage list params (not the query body).
All values with no default are reset to their zero value.
func (*DNSUsageListParams) WithFields ¶
func (o *DNSUsageListParams) WithFields(fields *string) *DNSUsageListParams
WithFields adds the fields to the dns usage list params
func (*DNSUsageListParams) WithFilter ¶
func (o *DNSUsageListParams) WithFilter(filter *string) *DNSUsageListParams
WithFilter adds the filter to the dns usage list params
func (*DNSUsageListParams) WithHTTPClient ¶
func (o *DNSUsageListParams) WithHTTPClient(client *http.Client) *DNSUsageListParams
WithHTTPClient adds the HTTPClient to the dns usage list params
func (*DNSUsageListParams) WithLimit ¶
func (o *DNSUsageListParams) WithLimit(limit *int64) *DNSUsageListParams
WithLimit adds the limit to the dns usage list params
func (*DNSUsageListParams) WithOffset ¶
func (o *DNSUsageListParams) WithOffset(offset *int64) *DNSUsageListParams
WithOffset adds the offset to the dns usage list params
func (*DNSUsageListParams) WithOrderBy ¶
func (o *DNSUsageListParams) WithOrderBy(orderBy *string) *DNSUsageListParams
WithOrderBy adds the orderBy to the dns usage list params
func (*DNSUsageListParams) WithPageToken ¶
func (o *DNSUsageListParams) WithPageToken(pageToken *string) *DNSUsageListParams
WithPageToken adds the pageToken to the dns usage list params
func (*DNSUsageListParams) WithTimeout ¶
func (o *DNSUsageListParams) WithTimeout(timeout time.Duration) *DNSUsageListParams
WithTimeout adds the timeout to the dns usage list params
func (*DNSUsageListParams) WriteToRequest ¶
func (o *DNSUsageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DNSUsageListReader ¶
type DNSUsageListReader struct {
// contains filtered or unexported fields
}
DNSUsageListReader is a Reader for the DNSUsageList structure.
func (*DNSUsageListReader) ReadResponse ¶
func (o *DNSUsageListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DNSUsageReadOK ¶
type DNSUsageReadOK struct {
Payload *models.IpamsvcReadDNSUsageResponse
}
DNSUsageReadOK describes a response with status code 200, with default header values.
GET operation response
func NewDNSUsageReadOK ¶
func NewDNSUsageReadOK() *DNSUsageReadOK
NewDNSUsageReadOK creates a DNSUsageReadOK with default headers values
func (*DNSUsageReadOK) Error ¶
func (o *DNSUsageReadOK) Error() string
func (*DNSUsageReadOK) GetPayload ¶
func (o *DNSUsageReadOK) GetPayload() *models.IpamsvcReadDNSUsageResponse
type DNSUsageReadParams ¶
type DNSUsageReadParams 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 /* ID. An application specific resource identity of a resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DNSUsageReadParams contains all the parameters to send to the API endpoint
for the dns usage read operation. Typically these are written to a http.Request.
func NewDNSUsageReadParams ¶
func NewDNSUsageReadParams() *DNSUsageReadParams
NewDNSUsageReadParams creates a new DNSUsageReadParams 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 NewDNSUsageReadParamsWithContext ¶
func NewDNSUsageReadParamsWithContext(ctx context.Context) *DNSUsageReadParams
NewDNSUsageReadParamsWithContext creates a new DNSUsageReadParams object with the ability to set a context for a request.
func NewDNSUsageReadParamsWithHTTPClient ¶
func NewDNSUsageReadParamsWithHTTPClient(client *http.Client) *DNSUsageReadParams
NewDNSUsageReadParamsWithHTTPClient creates a new DNSUsageReadParams object with the ability to set a custom HTTPClient for a request.
func NewDNSUsageReadParamsWithTimeout ¶
func NewDNSUsageReadParamsWithTimeout(timeout time.Duration) *DNSUsageReadParams
NewDNSUsageReadParamsWithTimeout creates a new DNSUsageReadParams object with the ability to set a timeout on a request.
func (*DNSUsageReadParams) SetContext ¶
func (o *DNSUsageReadParams) SetContext(ctx context.Context)
SetContext adds the context to the dns usage read params
func (*DNSUsageReadParams) SetDefaults ¶
func (o *DNSUsageReadParams) SetDefaults()
SetDefaults hydrates default values in the dns usage read params (not the query body).
All values with no default are reset to their zero value.
func (*DNSUsageReadParams) SetFields ¶
func (o *DNSUsageReadParams) SetFields(fields *string)
SetFields adds the fields to the dns usage read params
func (*DNSUsageReadParams) SetHTTPClient ¶
func (o *DNSUsageReadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the dns usage read params
func (*DNSUsageReadParams) SetID ¶
func (o *DNSUsageReadParams) SetID(id string)
SetID adds the id to the dns usage read params
func (*DNSUsageReadParams) SetTimeout ¶
func (o *DNSUsageReadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the dns usage read params
func (*DNSUsageReadParams) WithContext ¶
func (o *DNSUsageReadParams) WithContext(ctx context.Context) *DNSUsageReadParams
WithContext adds the context to the dns usage read params
func (*DNSUsageReadParams) WithDefaults ¶
func (o *DNSUsageReadParams) WithDefaults() *DNSUsageReadParams
WithDefaults hydrates default values in the dns usage read params (not the query body).
All values with no default are reset to their zero value.
func (*DNSUsageReadParams) WithFields ¶
func (o *DNSUsageReadParams) WithFields(fields *string) *DNSUsageReadParams
WithFields adds the fields to the dns usage read params
func (*DNSUsageReadParams) WithHTTPClient ¶
func (o *DNSUsageReadParams) WithHTTPClient(client *http.Client) *DNSUsageReadParams
WithHTTPClient adds the HTTPClient to the dns usage read params
func (*DNSUsageReadParams) WithID ¶
func (o *DNSUsageReadParams) WithID(id string) *DNSUsageReadParams
WithID adds the id to the dns usage read params
func (*DNSUsageReadParams) WithTimeout ¶
func (o *DNSUsageReadParams) WithTimeout(timeout time.Duration) *DNSUsageReadParams
WithTimeout adds the timeout to the dns usage read params
func (*DNSUsageReadParams) WriteToRequest ¶
func (o *DNSUsageReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DNSUsageReadReader ¶
type DNSUsageReadReader struct {
// contains filtered or unexported fields
}
DNSUsageReadReader is a Reader for the DNSUsageRead structure.
func (*DNSUsageReadReader) ReadResponse ¶
func (o *DNSUsageReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.