Documentation ¶
Index ¶
- type Client
- func (a *Client) GetDatacenter(params *GetDatacenterParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatacenterOK, error)
- func (a *Client) ListDatacenters(params *ListDatacentersParams, authInfo runtime.ClientAuthInfoWriter) (*ListDatacentersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetDatacenterDefault
- type GetDatacenterOK
- type GetDatacenterParams
- func (o *GetDatacenterParams) SetContext(ctx context.Context)
- func (o *GetDatacenterParams) SetDC(dc string)
- func (o *GetDatacenterParams) SetHTTPClient(client *http.Client)
- func (o *GetDatacenterParams) SetTimeout(timeout time.Duration)
- func (o *GetDatacenterParams) WithContext(ctx context.Context) *GetDatacenterParams
- func (o *GetDatacenterParams) WithDC(dc string) *GetDatacenterParams
- func (o *GetDatacenterParams) WithHTTPClient(client *http.Client) *GetDatacenterParams
- func (o *GetDatacenterParams) WithTimeout(timeout time.Duration) *GetDatacenterParams
- func (o *GetDatacenterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDatacenterReader
- type ListDatacentersDefault
- type ListDatacentersOK
- type ListDatacentersParams
- func NewListDatacentersParams() *ListDatacentersParams
- func NewListDatacentersParamsWithContext(ctx context.Context) *ListDatacentersParams
- func NewListDatacentersParamsWithHTTPClient(client *http.Client) *ListDatacentersParams
- func NewListDatacentersParamsWithTimeout(timeout time.Duration) *ListDatacentersParams
- func (o *ListDatacentersParams) SetContext(ctx context.Context)
- func (o *ListDatacentersParams) SetHTTPClient(client *http.Client)
- func (o *ListDatacentersParams) SetTimeout(timeout time.Duration)
- func (o *ListDatacentersParams) WithContext(ctx context.Context) *ListDatacentersParams
- func (o *ListDatacentersParams) WithHTTPClient(client *http.Client) *ListDatacentersParams
- func (o *ListDatacentersParams) WithTimeout(timeout time.Duration) *ListDatacentersParams
- func (o *ListDatacentersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDatacentersReader
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 datacenter API
func (*Client) GetDatacenter ¶
func (a *Client) GetDatacenter(params *GetDatacenterParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatacenterOK, error)
GetDatacenter get datacenter API
func (*Client) ListDatacenters ¶
func (a *Client) ListDatacenters(params *ListDatacentersParams, authInfo runtime.ClientAuthInfoWriter) (*ListDatacentersOK, error)
ListDatacenters list datacenters API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetDatacenter(params *GetDatacenterParams, authInfo runtime.ClientAuthInfoWriter) (*GetDatacenterOK, error) ListDatacenters(params *ListDatacentersParams, authInfo runtime.ClientAuthInfoWriter) (*ListDatacentersOK, 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 datacenter API client.
type GetDatacenterDefault ¶
type GetDatacenterDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDatacenterDefault handles this case with default header values.
errorResponse
func NewGetDatacenterDefault ¶
func NewGetDatacenterDefault(code int) *GetDatacenterDefault
NewGetDatacenterDefault creates a GetDatacenterDefault with default headers values
func (*GetDatacenterDefault) Code ¶
func (o *GetDatacenterDefault) Code() int
Code gets the status code for the get datacenter default response
func (*GetDatacenterDefault) Error ¶
func (o *GetDatacenterDefault) Error() string
func (*GetDatacenterDefault) GetPayload ¶
func (o *GetDatacenterDefault) GetPayload() *models.ErrorResponse
type GetDatacenterOK ¶
type GetDatacenterOK struct {
Payload *models.Datacenter
}
GetDatacenterOK handles this case with default header values.
Datacenter
func NewGetDatacenterOK ¶
func NewGetDatacenterOK() *GetDatacenterOK
NewGetDatacenterOK creates a GetDatacenterOK with default headers values
func (*GetDatacenterOK) Error ¶
func (o *GetDatacenterOK) Error() string
func (*GetDatacenterOK) GetPayload ¶
func (o *GetDatacenterOK) GetPayload() *models.Datacenter
type GetDatacenterParams ¶
type GetDatacenterParams struct { /*Dc*/ DC string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDatacenterParams contains all the parameters to send to the API endpoint for the get datacenter operation typically these are written to a http.Request
func NewGetDatacenterParams ¶
func NewGetDatacenterParams() *GetDatacenterParams
NewGetDatacenterParams creates a new GetDatacenterParams object with the default values initialized.
func NewGetDatacenterParamsWithContext ¶
func NewGetDatacenterParamsWithContext(ctx context.Context) *GetDatacenterParams
NewGetDatacenterParamsWithContext creates a new GetDatacenterParams object with the default values initialized, and the ability to set a context for a request
func NewGetDatacenterParamsWithHTTPClient ¶
func NewGetDatacenterParamsWithHTTPClient(client *http.Client) *GetDatacenterParams
NewGetDatacenterParamsWithHTTPClient creates a new GetDatacenterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDatacenterParamsWithTimeout ¶
func NewGetDatacenterParamsWithTimeout(timeout time.Duration) *GetDatacenterParams
NewGetDatacenterParamsWithTimeout creates a new GetDatacenterParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDatacenterParams) SetContext ¶
func (o *GetDatacenterParams) SetContext(ctx context.Context)
SetContext adds the context to the get datacenter params
func (*GetDatacenterParams) SetDC ¶
func (o *GetDatacenterParams) SetDC(dc string)
SetDC adds the dc to the get datacenter params
func (*GetDatacenterParams) SetHTTPClient ¶
func (o *GetDatacenterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get datacenter params
func (*GetDatacenterParams) SetTimeout ¶
func (o *GetDatacenterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get datacenter params
func (*GetDatacenterParams) WithContext ¶
func (o *GetDatacenterParams) WithContext(ctx context.Context) *GetDatacenterParams
WithContext adds the context to the get datacenter params
func (*GetDatacenterParams) WithDC ¶
func (o *GetDatacenterParams) WithDC(dc string) *GetDatacenterParams
WithDC adds the dc to the get datacenter params
func (*GetDatacenterParams) WithHTTPClient ¶
func (o *GetDatacenterParams) WithHTTPClient(client *http.Client) *GetDatacenterParams
WithHTTPClient adds the HTTPClient to the get datacenter params
func (*GetDatacenterParams) WithTimeout ¶
func (o *GetDatacenterParams) WithTimeout(timeout time.Duration) *GetDatacenterParams
WithTimeout adds the timeout to the get datacenter params
func (*GetDatacenterParams) WriteToRequest ¶
func (o *GetDatacenterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDatacenterReader ¶
type GetDatacenterReader struct {
// contains filtered or unexported fields
}
GetDatacenterReader is a Reader for the GetDatacenter structure.
func (*GetDatacenterReader) ReadResponse ¶
func (o *GetDatacenterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListDatacentersDefault ¶
type ListDatacentersDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListDatacentersDefault handles this case with default header values.
errorResponse
func NewListDatacentersDefault ¶
func NewListDatacentersDefault(code int) *ListDatacentersDefault
NewListDatacentersDefault creates a ListDatacentersDefault with default headers values
func (*ListDatacentersDefault) Code ¶
func (o *ListDatacentersDefault) Code() int
Code gets the status code for the list datacenters default response
func (*ListDatacentersDefault) Error ¶
func (o *ListDatacentersDefault) Error() string
func (*ListDatacentersDefault) GetPayload ¶
func (o *ListDatacentersDefault) GetPayload() *models.ErrorResponse
type ListDatacentersOK ¶
type ListDatacentersOK struct {
Payload models.DatacenterList
}
ListDatacentersOK handles this case with default header values.
DatacenterList
func NewListDatacentersOK ¶
func NewListDatacentersOK() *ListDatacentersOK
NewListDatacentersOK creates a ListDatacentersOK with default headers values
func (*ListDatacentersOK) Error ¶
func (o *ListDatacentersOK) Error() string
func (*ListDatacentersOK) GetPayload ¶
func (o *ListDatacentersOK) GetPayload() models.DatacenterList
type ListDatacentersParams ¶
type ListDatacentersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListDatacentersParams contains all the parameters to send to the API endpoint for the list datacenters operation typically these are written to a http.Request
func NewListDatacentersParams ¶
func NewListDatacentersParams() *ListDatacentersParams
NewListDatacentersParams creates a new ListDatacentersParams object with the default values initialized.
func NewListDatacentersParamsWithContext ¶
func NewListDatacentersParamsWithContext(ctx context.Context) *ListDatacentersParams
NewListDatacentersParamsWithContext creates a new ListDatacentersParams object with the default values initialized, and the ability to set a context for a request
func NewListDatacentersParamsWithHTTPClient ¶
func NewListDatacentersParamsWithHTTPClient(client *http.Client) *ListDatacentersParams
NewListDatacentersParamsWithHTTPClient creates a new ListDatacentersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListDatacentersParamsWithTimeout ¶
func NewListDatacentersParamsWithTimeout(timeout time.Duration) *ListDatacentersParams
NewListDatacentersParamsWithTimeout creates a new ListDatacentersParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListDatacentersParams) SetContext ¶
func (o *ListDatacentersParams) SetContext(ctx context.Context)
SetContext adds the context to the list datacenters params
func (*ListDatacentersParams) SetHTTPClient ¶
func (o *ListDatacentersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list datacenters params
func (*ListDatacentersParams) SetTimeout ¶
func (o *ListDatacentersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list datacenters params
func (*ListDatacentersParams) WithContext ¶
func (o *ListDatacentersParams) WithContext(ctx context.Context) *ListDatacentersParams
WithContext adds the context to the list datacenters params
func (*ListDatacentersParams) WithHTTPClient ¶
func (o *ListDatacentersParams) WithHTTPClient(client *http.Client) *ListDatacentersParams
WithHTTPClient adds the HTTPClient to the list datacenters params
func (*ListDatacentersParams) WithTimeout ¶
func (o *ListDatacentersParams) WithTimeout(timeout time.Duration) *ListDatacentersParams
WithTimeout adds the timeout to the list datacenters params
func (*ListDatacentersParams) WriteToRequest ¶
func (o *ListDatacentersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListDatacentersReader ¶
type ListDatacentersReader struct {
// contains filtered or unexported fields
}
ListDatacentersReader is a Reader for the ListDatacenters structure.
func (*ListDatacentersReader) ReadResponse ¶
func (o *ListDatacentersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.