Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetDiscoverHostsBadRequest
- type GetDiscoverHostsInternalServerError
- type GetDiscoverHostsNotFound
- type GetDiscoverHostsOK
- type GetDiscoverHostsParams
- func NewGetDiscoverHostsParams() *GetDiscoverHostsParams
- func NewGetDiscoverHostsParamsWithContext(ctx context.Context) *GetDiscoverHostsParams
- func NewGetDiscoverHostsParamsWithHTTPClient(client *http.Client) *GetDiscoverHostsParams
- func NewGetDiscoverHostsParamsWithTimeout(timeout time.Duration) *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) SetContentLanguage(contentLanguage *string)
- func (o *GetDiscoverHostsParams) SetContext(ctx context.Context)
- func (o *GetDiscoverHostsParams) SetDefaults()
- func (o *GetDiscoverHostsParams) SetHTTPClient(client *http.Client)
- func (o *GetDiscoverHostsParams) SetRequestBody(requestBody *models.GetDiscoverHostsRequestBody)
- func (o *GetDiscoverHostsParams) SetTimeout(timeout time.Duration)
- func (o *GetDiscoverHostsParams) WithContentLanguage(contentLanguage *string) *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) WithContext(ctx context.Context) *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) WithDefaults() *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) WithHTTPClient(client *http.Client) *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) WithRequestBody(requestBody *models.GetDiscoverHostsRequestBody) *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) WithTimeout(timeout time.Duration) *GetDiscoverHostsParams
- func (o *GetDiscoverHostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDiscoverHostsReader
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 discovered host API
func (*Client) GetDiscoverHosts ¶
func (a *Client) GetDiscoverHosts(params *GetDiscoverHostsParams, opts ...ClientOption) (*GetDiscoverHostsOK, error)
GetDiscoverHosts get discover hosts API
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 { GetDiscoverHosts(params *GetDiscoverHostsParams, opts ...ClientOption) (*GetDiscoverHostsOK, 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 discovered host API client.
type GetDiscoverHostsBadRequest ¶
GetDiscoverHostsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetDiscoverHostsBadRequest ¶
func NewGetDiscoverHostsBadRequest() *GetDiscoverHostsBadRequest
NewGetDiscoverHostsBadRequest creates a GetDiscoverHostsBadRequest with default headers values
func (*GetDiscoverHostsBadRequest) Error ¶
func (o *GetDiscoverHostsBadRequest) Error() string
func (*GetDiscoverHostsBadRequest) GetPayload ¶
func (o *GetDiscoverHostsBadRequest) GetPayload() *models.ErrorBody
type GetDiscoverHostsInternalServerError ¶
GetDiscoverHostsInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetDiscoverHostsInternalServerError ¶
func NewGetDiscoverHostsInternalServerError() *GetDiscoverHostsInternalServerError
NewGetDiscoverHostsInternalServerError creates a GetDiscoverHostsInternalServerError with default headers values
func (*GetDiscoverHostsInternalServerError) Error ¶
func (o *GetDiscoverHostsInternalServerError) Error() string
func (*GetDiscoverHostsInternalServerError) GetPayload ¶
func (o *GetDiscoverHostsInternalServerError) GetPayload() *models.ErrorBody
type GetDiscoverHostsNotFound ¶
GetDiscoverHostsNotFound describes a response with status code 404, with default header values.
Not found
func NewGetDiscoverHostsNotFound ¶
func NewGetDiscoverHostsNotFound() *GetDiscoverHostsNotFound
NewGetDiscoverHostsNotFound creates a GetDiscoverHostsNotFound with default headers values
func (*GetDiscoverHostsNotFound) Error ¶
func (o *GetDiscoverHostsNotFound) Error() string
func (*GetDiscoverHostsNotFound) GetPayload ¶
func (o *GetDiscoverHostsNotFound) GetPayload() *models.ErrorBody
type GetDiscoverHostsOK ¶
type GetDiscoverHostsOK struct {
Payload []*models.DiscoveredHost
}
GetDiscoverHostsOK describes a response with status code 200, with default header values.
Ok
func NewGetDiscoverHostsOK ¶
func NewGetDiscoverHostsOK() *GetDiscoverHostsOK
NewGetDiscoverHostsOK creates a GetDiscoverHostsOK with default headers values
func (*GetDiscoverHostsOK) Error ¶
func (o *GetDiscoverHostsOK) Error() string
func (*GetDiscoverHostsOK) GetPayload ¶
func (o *GetDiscoverHostsOK) GetPayload() []*models.DiscoveredHost
type GetDiscoverHostsParams ¶
type GetDiscoverHostsParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetDiscoverHostsRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDiscoverHostsParams contains all the parameters to send to the API endpoint
for the get discover hosts operation. Typically these are written to a http.Request.
func NewGetDiscoverHostsParams ¶
func NewGetDiscoverHostsParams() *GetDiscoverHostsParams
NewGetDiscoverHostsParams creates a new GetDiscoverHostsParams 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 NewGetDiscoverHostsParamsWithContext ¶
func NewGetDiscoverHostsParamsWithContext(ctx context.Context) *GetDiscoverHostsParams
NewGetDiscoverHostsParamsWithContext creates a new GetDiscoverHostsParams object with the ability to set a context for a request.
func NewGetDiscoverHostsParamsWithHTTPClient ¶
func NewGetDiscoverHostsParamsWithHTTPClient(client *http.Client) *GetDiscoverHostsParams
NewGetDiscoverHostsParamsWithHTTPClient creates a new GetDiscoverHostsParams object with the ability to set a custom HTTPClient for a request.
func NewGetDiscoverHostsParamsWithTimeout ¶
func NewGetDiscoverHostsParamsWithTimeout(timeout time.Duration) *GetDiscoverHostsParams
NewGetDiscoverHostsParamsWithTimeout creates a new GetDiscoverHostsParams object with the ability to set a timeout on a request.
func (*GetDiscoverHostsParams) SetContentLanguage ¶
func (o *GetDiscoverHostsParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get discover hosts params
func (*GetDiscoverHostsParams) SetContext ¶
func (o *GetDiscoverHostsParams) SetContext(ctx context.Context)
SetContext adds the context to the get discover hosts params
func (*GetDiscoverHostsParams) SetDefaults ¶
func (o *GetDiscoverHostsParams) SetDefaults()
SetDefaults hydrates default values in the get discover hosts params (not the query body).
All values with no default are reset to their zero value.
func (*GetDiscoverHostsParams) SetHTTPClient ¶
func (o *GetDiscoverHostsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get discover hosts params
func (*GetDiscoverHostsParams) SetRequestBody ¶
func (o *GetDiscoverHostsParams) SetRequestBody(requestBody *models.GetDiscoverHostsRequestBody)
SetRequestBody adds the requestBody to the get discover hosts params
func (*GetDiscoverHostsParams) SetTimeout ¶
func (o *GetDiscoverHostsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get discover hosts params
func (*GetDiscoverHostsParams) WithContentLanguage ¶
func (o *GetDiscoverHostsParams) WithContentLanguage(contentLanguage *string) *GetDiscoverHostsParams
WithContentLanguage adds the contentLanguage to the get discover hosts params
func (*GetDiscoverHostsParams) WithContext ¶
func (o *GetDiscoverHostsParams) WithContext(ctx context.Context) *GetDiscoverHostsParams
WithContext adds the context to the get discover hosts params
func (*GetDiscoverHostsParams) WithDefaults ¶
func (o *GetDiscoverHostsParams) WithDefaults() *GetDiscoverHostsParams
WithDefaults hydrates default values in the get discover hosts params (not the query body).
All values with no default are reset to their zero value.
func (*GetDiscoverHostsParams) WithHTTPClient ¶
func (o *GetDiscoverHostsParams) WithHTTPClient(client *http.Client) *GetDiscoverHostsParams
WithHTTPClient adds the HTTPClient to the get discover hosts params
func (*GetDiscoverHostsParams) WithRequestBody ¶
func (o *GetDiscoverHostsParams) WithRequestBody(requestBody *models.GetDiscoverHostsRequestBody) *GetDiscoverHostsParams
WithRequestBody adds the requestBody to the get discover hosts params
func (*GetDiscoverHostsParams) WithTimeout ¶
func (o *GetDiscoverHostsParams) WithTimeout(timeout time.Duration) *GetDiscoverHostsParams
WithTimeout adds the timeout to the get discover hosts params
func (*GetDiscoverHostsParams) WriteToRequest ¶
func (o *GetDiscoverHostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDiscoverHostsReader ¶
type GetDiscoverHostsReader struct {
// contains filtered or unexported fields
}
GetDiscoverHostsReader is a Reader for the GetDiscoverHosts structure.
func (*GetDiscoverHostsReader) ReadResponse ¶
func (o *GetDiscoverHostsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.