Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetHostsBadRequest
- type GetHostsConnectionBadRequest
- type GetHostsConnectionInternalServerError
- type GetHostsConnectionNotFound
- type GetHostsConnectionOK
- type GetHostsConnectionParams
- func NewGetHostsConnectionParams() *GetHostsConnectionParams
- func NewGetHostsConnectionParamsWithContext(ctx context.Context) *GetHostsConnectionParams
- func NewGetHostsConnectionParamsWithHTTPClient(client *http.Client) *GetHostsConnectionParams
- func NewGetHostsConnectionParamsWithTimeout(timeout time.Duration) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetHostsConnectionParams) SetContext(ctx context.Context)
- func (o *GetHostsConnectionParams) SetDefaults()
- func (o *GetHostsConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetHostsConnectionParams) SetRequestBody(requestBody *models.GetHostsConnectionRequestBody)
- func (o *GetHostsConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetHostsConnectionParams) WithContentLanguage(contentLanguage *string) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithContext(ctx context.Context) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithDefaults() *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithHTTPClient(client *http.Client) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithRequestBody(requestBody *models.GetHostsConnectionRequestBody) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithTimeout(timeout time.Duration) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHostsConnectionReader
- type GetHostsInternalServerError
- type GetHostsNotFound
- type GetHostsOK
- type GetHostsParams
- func (o *GetHostsParams) SetContentLanguage(contentLanguage *string)
- func (o *GetHostsParams) SetContext(ctx context.Context)
- func (o *GetHostsParams) SetDefaults()
- func (o *GetHostsParams) SetHTTPClient(client *http.Client)
- func (o *GetHostsParams) SetRequestBody(requestBody *models.GetHostsRequestBody)
- func (o *GetHostsParams) SetTimeout(timeout time.Duration)
- func (o *GetHostsParams) WithContentLanguage(contentLanguage *string) *GetHostsParams
- func (o *GetHostsParams) WithContext(ctx context.Context) *GetHostsParams
- func (o *GetHostsParams) WithDefaults() *GetHostsParams
- func (o *GetHostsParams) WithHTTPClient(client *http.Client) *GetHostsParams
- func (o *GetHostsParams) WithRequestBody(requestBody *models.GetHostsRequestBody) *GetHostsParams
- func (o *GetHostsParams) WithTimeout(timeout time.Duration) *GetHostsParams
- func (o *GetHostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHostsReader
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 host API
func (*Client) GetHosts ¶
func (a *Client) GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)
GetHosts get hosts API
func (*Client) GetHostsConnection ¶
func (a *Client) GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error)
GetHostsConnection get hosts connection 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 {
GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)
GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, 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 host API client.
type GetHostsBadRequest ¶
GetHostsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetHostsBadRequest ¶
func NewGetHostsBadRequest() *GetHostsBadRequest
NewGetHostsBadRequest creates a GetHostsBadRequest with default headers values
func (*GetHostsBadRequest) Error ¶
func (o *GetHostsBadRequest) Error() string
func (*GetHostsBadRequest) GetPayload ¶
func (o *GetHostsBadRequest) GetPayload() *models.ErrorBody
type GetHostsConnectionBadRequest ¶
GetHostsConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetHostsConnectionBadRequest ¶
func NewGetHostsConnectionBadRequest() *GetHostsConnectionBadRequest
NewGetHostsConnectionBadRequest creates a GetHostsConnectionBadRequest with default headers values
func (*GetHostsConnectionBadRequest) Error ¶
func (o *GetHostsConnectionBadRequest) Error() string
func (*GetHostsConnectionBadRequest) GetPayload ¶
func (o *GetHostsConnectionBadRequest) GetPayload() *models.ErrorBody
type GetHostsConnectionInternalServerError ¶
type GetHostsConnectionInternalServerError struct {
XAocRequestID string
Payload *models.ErrorBody
}
GetHostsConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetHostsConnectionInternalServerError ¶
func NewGetHostsConnectionInternalServerError() *GetHostsConnectionInternalServerError
NewGetHostsConnectionInternalServerError creates a GetHostsConnectionInternalServerError with default headers values
func (*GetHostsConnectionInternalServerError) Error ¶
func (o *GetHostsConnectionInternalServerError) Error() string
func (*GetHostsConnectionInternalServerError) GetPayload ¶
func (o *GetHostsConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetHostsConnectionNotFound ¶
GetHostsConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetHostsConnectionNotFound ¶
func NewGetHostsConnectionNotFound() *GetHostsConnectionNotFound
NewGetHostsConnectionNotFound creates a GetHostsConnectionNotFound with default headers values
func (*GetHostsConnectionNotFound) Error ¶
func (o *GetHostsConnectionNotFound) Error() string
func (*GetHostsConnectionNotFound) GetPayload ¶
func (o *GetHostsConnectionNotFound) GetPayload() *models.ErrorBody
type GetHostsConnectionOK ¶
type GetHostsConnectionOK struct {
XAocRequestID string
Payload *models.HostConnection
}
GetHostsConnectionOK describes a response with status code 200, with default header values.
GetHostsConnectionOK get hosts connection o k
func NewGetHostsConnectionOK ¶
func NewGetHostsConnectionOK() *GetHostsConnectionOK
NewGetHostsConnectionOK creates a GetHostsConnectionOK with default headers values
func (*GetHostsConnectionOK) Error ¶
func (o *GetHostsConnectionOK) Error() string
func (*GetHostsConnectionOK) GetPayload ¶
func (o *GetHostsConnectionOK) GetPayload() *models.HostConnection
type GetHostsConnectionParams ¶
type GetHostsConnectionParams struct {
// ContentLanguage.
//
// Default: "en-US"
ContentLanguage *string
// RequestBody.
RequestBody *models.GetHostsConnectionRequestBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetHostsConnectionParams contains all the parameters to send to the API endpoint
for the get hosts connection operation. Typically these are written to a http.Request.
func NewGetHostsConnectionParams ¶
func NewGetHostsConnectionParams() *GetHostsConnectionParams
NewGetHostsConnectionParams creates a new GetHostsConnectionParams 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 NewGetHostsConnectionParamsWithContext ¶
func NewGetHostsConnectionParamsWithContext(ctx context.Context) *GetHostsConnectionParams
NewGetHostsConnectionParamsWithContext creates a new GetHostsConnectionParams object with the ability to set a context for a request.
func NewGetHostsConnectionParamsWithHTTPClient ¶
func NewGetHostsConnectionParamsWithHTTPClient(client *http.Client) *GetHostsConnectionParams
NewGetHostsConnectionParamsWithHTTPClient creates a new GetHostsConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetHostsConnectionParamsWithTimeout ¶
func NewGetHostsConnectionParamsWithTimeout(timeout time.Duration) *GetHostsConnectionParams
NewGetHostsConnectionParamsWithTimeout creates a new GetHostsConnectionParams object with the ability to set a timeout on a request.
func (*GetHostsConnectionParams) SetContentLanguage ¶
func (o *GetHostsConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get hosts connection params
func (*GetHostsConnectionParams) SetContext ¶
func (o *GetHostsConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get hosts connection params
func (*GetHostsConnectionParams) SetDefaults ¶
func (o *GetHostsConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get hosts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsConnectionParams) SetHTTPClient ¶
func (o *GetHostsConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hosts connection params
func (*GetHostsConnectionParams) SetRequestBody ¶
func (o *GetHostsConnectionParams) SetRequestBody(requestBody *models.GetHostsConnectionRequestBody)
SetRequestBody adds the requestBody to the get hosts connection params
func (*GetHostsConnectionParams) SetTimeout ¶
func (o *GetHostsConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hosts connection params
func (*GetHostsConnectionParams) WithContentLanguage ¶
func (o *GetHostsConnectionParams) WithContentLanguage(contentLanguage *string) *GetHostsConnectionParams
WithContentLanguage adds the contentLanguage to the get hosts connection params
func (*GetHostsConnectionParams) WithContext ¶
func (o *GetHostsConnectionParams) WithContext(ctx context.Context) *GetHostsConnectionParams
WithContext adds the context to the get hosts connection params
func (*GetHostsConnectionParams) WithDefaults ¶
func (o *GetHostsConnectionParams) WithDefaults() *GetHostsConnectionParams
WithDefaults hydrates default values in the get hosts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsConnectionParams) WithHTTPClient ¶
func (o *GetHostsConnectionParams) WithHTTPClient(client *http.Client) *GetHostsConnectionParams
WithHTTPClient adds the HTTPClient to the get hosts connection params
func (*GetHostsConnectionParams) WithRequestBody ¶
func (o *GetHostsConnectionParams) WithRequestBody(requestBody *models.GetHostsConnectionRequestBody) *GetHostsConnectionParams
WithRequestBody adds the requestBody to the get hosts connection params
func (*GetHostsConnectionParams) WithTimeout ¶
func (o *GetHostsConnectionParams) WithTimeout(timeout time.Duration) *GetHostsConnectionParams
WithTimeout adds the timeout to the get hosts connection params
func (*GetHostsConnectionParams) WriteToRequest ¶
func (o *GetHostsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHostsConnectionReader ¶
type GetHostsConnectionReader struct {
// contains filtered or unexported fields
}
GetHostsConnectionReader is a Reader for the GetHostsConnection structure.
func (*GetHostsConnectionReader) ReadResponse ¶
func (o *GetHostsConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHostsInternalServerError ¶
GetHostsInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetHostsInternalServerError ¶
func NewGetHostsInternalServerError() *GetHostsInternalServerError
NewGetHostsInternalServerError creates a GetHostsInternalServerError with default headers values
func (*GetHostsInternalServerError) Error ¶
func (o *GetHostsInternalServerError) Error() string
func (*GetHostsInternalServerError) GetPayload ¶
func (o *GetHostsInternalServerError) GetPayload() *models.ErrorBody
type GetHostsNotFound ¶
GetHostsNotFound describes a response with status code 404, with default header values.
Not found
func NewGetHostsNotFound ¶
func NewGetHostsNotFound() *GetHostsNotFound
NewGetHostsNotFound creates a GetHostsNotFound with default headers values
func (*GetHostsNotFound) Error ¶
func (o *GetHostsNotFound) Error() string
func (*GetHostsNotFound) GetPayload ¶
func (o *GetHostsNotFound) GetPayload() *models.ErrorBody
type GetHostsOK ¶
GetHostsOK describes a response with status code 200, with default header values.
GetHostsOK get hosts o k
func NewGetHostsOK ¶
func NewGetHostsOK() *GetHostsOK
NewGetHostsOK creates a GetHostsOK with default headers values
func (*GetHostsOK) Error ¶
func (o *GetHostsOK) Error() string
func (*GetHostsOK) GetPayload ¶
func (o *GetHostsOK) GetPayload() []*models.Host
type GetHostsParams ¶
type GetHostsParams struct {
// ContentLanguage.
//
// Default: "en-US"
ContentLanguage *string
// RequestBody.
RequestBody *models.GetHostsRequestBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetHostsParams contains all the parameters to send to the API endpoint
for the get hosts operation. Typically these are written to a http.Request.
func NewGetHostsParams ¶
func NewGetHostsParams() *GetHostsParams
NewGetHostsParams creates a new GetHostsParams 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 NewGetHostsParamsWithContext ¶
func NewGetHostsParamsWithContext(ctx context.Context) *GetHostsParams
NewGetHostsParamsWithContext creates a new GetHostsParams object with the ability to set a context for a request.
func NewGetHostsParamsWithHTTPClient ¶
func NewGetHostsParamsWithHTTPClient(client *http.Client) *GetHostsParams
NewGetHostsParamsWithHTTPClient creates a new GetHostsParams object with the ability to set a custom HTTPClient for a request.
func NewGetHostsParamsWithTimeout ¶
func NewGetHostsParamsWithTimeout(timeout time.Duration) *GetHostsParams
NewGetHostsParamsWithTimeout creates a new GetHostsParams object with the ability to set a timeout on a request.
func (*GetHostsParams) SetContentLanguage ¶
func (o *GetHostsParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get hosts params
func (*GetHostsParams) SetContext ¶
func (o *GetHostsParams) SetContext(ctx context.Context)
SetContext adds the context to the get hosts params
func (*GetHostsParams) SetDefaults ¶
func (o *GetHostsParams) SetDefaults()
SetDefaults hydrates default values in the get hosts params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsParams) SetHTTPClient ¶
func (o *GetHostsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hosts params
func (*GetHostsParams) SetRequestBody ¶
func (o *GetHostsParams) SetRequestBody(requestBody *models.GetHostsRequestBody)
SetRequestBody adds the requestBody to the get hosts params
func (*GetHostsParams) SetTimeout ¶
func (o *GetHostsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hosts params
func (*GetHostsParams) WithContentLanguage ¶
func (o *GetHostsParams) WithContentLanguage(contentLanguage *string) *GetHostsParams
WithContentLanguage adds the contentLanguage to the get hosts params
func (*GetHostsParams) WithContext ¶
func (o *GetHostsParams) WithContext(ctx context.Context) *GetHostsParams
WithContext adds the context to the get hosts params
func (*GetHostsParams) WithDefaults ¶
func (o *GetHostsParams) WithDefaults() *GetHostsParams
WithDefaults hydrates default values in the get hosts params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsParams) WithHTTPClient ¶
func (o *GetHostsParams) WithHTTPClient(client *http.Client) *GetHostsParams
WithHTTPClient adds the HTTPClient to the get hosts params
func (*GetHostsParams) WithRequestBody ¶
func (o *GetHostsParams) WithRequestBody(requestBody *models.GetHostsRequestBody) *GetHostsParams
WithRequestBody adds the requestBody to the get hosts params
func (*GetHostsParams) WithTimeout ¶
func (o *GetHostsParams) WithTimeout(timeout time.Duration) *GetHostsParams
WithTimeout adds the timeout to the get hosts params
func (*GetHostsParams) WriteToRequest ¶
func (o *GetHostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHostsReader ¶
type GetHostsReader struct {
// contains filtered or unexported fields
}
GetHostsReader is a Reader for the GetHosts structure.
func (*GetHostsReader) ReadResponse ¶
func (o *GetHostsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.