Documentation ¶
Index ¶
- type Client
- func (a *Client) CustomerDetail(params *CustomerDetailParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CustomerDetailOK, error)
- func (a *Client) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteCustomerOK, error)
- func (a *Client) GetHostInfo(params *GetHostInfoParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetHostInfoOK, error)
- func (a *Client) ListOfCustomers(params *ListOfCustomersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListOfCustomersOK, error)
- func (a *Client) Metrics(params *MetricsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*MetricsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCustomerOK, error)
- type ClientOption
- type ClientService
- type CustomerDetailOK
- type CustomerDetailParams
- func NewCustomerDetailParams() *CustomerDetailParams
- func NewCustomerDetailParamsWithContext(ctx context.Context) *CustomerDetailParams
- func NewCustomerDetailParamsWithHTTPClient(client *http.Client) *CustomerDetailParams
- func NewCustomerDetailParamsWithTimeout(timeout time.Duration) *CustomerDetailParams
- func (o *CustomerDetailParams) SetCUUID(cUUID strfmt.UUID)
- func (o *CustomerDetailParams) SetContext(ctx context.Context)
- func (o *CustomerDetailParams) SetDefaults()
- func (o *CustomerDetailParams) SetHTTPClient(client *http.Client)
- func (o *CustomerDetailParams) SetTimeout(timeout time.Duration)
- func (o *CustomerDetailParams) WithCUUID(cUUID strfmt.UUID) *CustomerDetailParams
- func (o *CustomerDetailParams) WithContext(ctx context.Context) *CustomerDetailParams
- func (o *CustomerDetailParams) WithDefaults() *CustomerDetailParams
- func (o *CustomerDetailParams) WithHTTPClient(client *http.Client) *CustomerDetailParams
- func (o *CustomerDetailParams) WithTimeout(timeout time.Duration) *CustomerDetailParams
- func (o *CustomerDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CustomerDetailReader
- type DeleteCustomerOK
- type DeleteCustomerParams
- func NewDeleteCustomerParams() *DeleteCustomerParams
- func NewDeleteCustomerParamsWithContext(ctx context.Context) *DeleteCustomerParams
- func NewDeleteCustomerParamsWithHTTPClient(client *http.Client) *DeleteCustomerParams
- func NewDeleteCustomerParamsWithTimeout(timeout time.Duration) *DeleteCustomerParams
- func (o *DeleteCustomerParams) SetCUUID(cUUID strfmt.UUID)
- func (o *DeleteCustomerParams) SetContext(ctx context.Context)
- func (o *DeleteCustomerParams) SetDefaults()
- func (o *DeleteCustomerParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCustomerParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCustomerParams) WithCUUID(cUUID strfmt.UUID) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithContext(ctx context.Context) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithDefaults() *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithHTTPClient(client *http.Client) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithTimeout(timeout time.Duration) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCustomerReader
- type GetHostInfoOK
- type GetHostInfoParams
- func (o *GetHostInfoParams) SetCUUID(cUUID strfmt.UUID)
- func (o *GetHostInfoParams) SetContext(ctx context.Context)
- func (o *GetHostInfoParams) SetDefaults()
- func (o *GetHostInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetHostInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetHostInfoParams) WithCUUID(cUUID strfmt.UUID) *GetHostInfoParams
- func (o *GetHostInfoParams) WithContext(ctx context.Context) *GetHostInfoParams
- func (o *GetHostInfoParams) WithDefaults() *GetHostInfoParams
- func (o *GetHostInfoParams) WithHTTPClient(client *http.Client) *GetHostInfoParams
- func (o *GetHostInfoParams) WithTimeout(timeout time.Duration) *GetHostInfoParams
- func (o *GetHostInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHostInfoReader
- type ListOfCustomersOK
- type ListOfCustomersParams
- func NewListOfCustomersParams() *ListOfCustomersParams
- func NewListOfCustomersParamsWithContext(ctx context.Context) *ListOfCustomersParams
- func NewListOfCustomersParamsWithHTTPClient(client *http.Client) *ListOfCustomersParams
- func NewListOfCustomersParamsWithTimeout(timeout time.Duration) *ListOfCustomersParams
- func (o *ListOfCustomersParams) SetContext(ctx context.Context)
- func (o *ListOfCustomersParams) SetDefaults()
- func (o *ListOfCustomersParams) SetHTTPClient(client *http.Client)
- func (o *ListOfCustomersParams) SetTimeout(timeout time.Duration)
- func (o *ListOfCustomersParams) WithContext(ctx context.Context) *ListOfCustomersParams
- func (o *ListOfCustomersParams) WithDefaults() *ListOfCustomersParams
- func (o *ListOfCustomersParams) WithHTTPClient(client *http.Client) *ListOfCustomersParams
- func (o *ListOfCustomersParams) WithTimeout(timeout time.Duration) *ListOfCustomersParams
- func (o *ListOfCustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListOfCustomersReader
- type MetricsBadRequest
- type MetricsOK
- type MetricsParams
- func (o *MetricsParams) SetCUUID(cUUID strfmt.UUID)
- func (o *MetricsParams) SetContext(ctx context.Context)
- func (o *MetricsParams) SetDefaults()
- func (o *MetricsParams) SetHTTPClient(client *http.Client)
- func (o *MetricsParams) SetMetrics(metrics *models.MetricQueryParams)
- func (o *MetricsParams) SetTimeout(timeout time.Duration)
- func (o *MetricsParams) WithCUUID(cUUID strfmt.UUID) *MetricsParams
- func (o *MetricsParams) WithContext(ctx context.Context) *MetricsParams
- func (o *MetricsParams) WithDefaults() *MetricsParams
- func (o *MetricsParams) WithHTTPClient(client *http.Client) *MetricsParams
- func (o *MetricsParams) WithMetrics(metrics *models.MetricQueryParams) *MetricsParams
- func (o *MetricsParams) WithTimeout(timeout time.Duration) *MetricsParams
- func (o *MetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MetricsReader
- type UpdateCustomerOK
- type UpdateCustomerParams
- func NewUpdateCustomerParams() *UpdateCustomerParams
- func NewUpdateCustomerParamsWithContext(ctx context.Context) *UpdateCustomerParams
- func NewUpdateCustomerParamsWithHTTPClient(client *http.Client) *UpdateCustomerParams
- func NewUpdateCustomerParamsWithTimeout(timeout time.Duration) *UpdateCustomerParams
- func (o *UpdateCustomerParams) SetCUUID(cUUID strfmt.UUID)
- func (o *UpdateCustomerParams) SetContext(ctx context.Context)
- func (o *UpdateCustomerParams) SetCustomer(customer *models.CustomerAlertData)
- func (o *UpdateCustomerParams) SetDefaults()
- func (o *UpdateCustomerParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCustomerParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCustomerParams) WithCUUID(cUUID strfmt.UUID) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithContext(ctx context.Context) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithCustomer(customer *models.CustomerAlertData) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithDefaults() *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithHTTPClient(client *http.Client) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithTimeout(timeout time.Duration) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCustomerReader
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 customer management API
func (*Client) CustomerDetail ¶
func (a *Client) CustomerDetail(params *CustomerDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomerDetailOK, error)
CustomerDetail gets a customer s details
func (*Client) DeleteCustomer ¶
func (a *Client) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error)
DeleteCustomer deletes a customer
func (*Client) GetHostInfo ¶
func (a *Client) GetHostInfo(params *GetHostInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHostInfoOK, error)
GetHostInfo gets a customer s host info
func (*Client) ListOfCustomers ¶
func (a *Client) ListOfCustomers(params *ListOfCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfCustomersOK, error)
ListOfCustomers lists customers
func (*Client) Metrics ¶
func (a *Client) Metrics(params *MetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetricsOK, error)
Metrics adds metrics to a customer
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCustomer ¶
func (a *Client) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, error)
UpdateCustomer updates a customer
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CustomerDetail(params *CustomerDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CustomerDetailOK, error) ListOfCustomers(params *ListOfCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfCustomersOK, error) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, error) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error) GetHostInfo(params *GetHostInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHostInfoOK, error) Metrics(params *MetricsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MetricsOK, 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 customer management API client.
type CustomerDetailOK ¶
type CustomerDetailOK struct {
Payload *models.CustomerDetailsData
}
CustomerDetailOK describes a response with status code 200, with default header values.
successful operation
func NewCustomerDetailOK ¶
func NewCustomerDetailOK() *CustomerDetailOK
NewCustomerDetailOK creates a CustomerDetailOK with default headers values
func (*CustomerDetailOK) Error ¶
func (o *CustomerDetailOK) Error() string
func (*CustomerDetailOK) GetPayload ¶
func (o *CustomerDetailOK) GetPayload() *models.CustomerDetailsData
type CustomerDetailParams ¶
type CustomerDetailParams struct { // CUUID. // // Format: uuid CUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CustomerDetailParams contains all the parameters to send to the API endpoint
for the customer detail operation. Typically these are written to a http.Request.
func NewCustomerDetailParams ¶
func NewCustomerDetailParams() *CustomerDetailParams
NewCustomerDetailParams creates a new CustomerDetailParams 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 NewCustomerDetailParamsWithContext ¶
func NewCustomerDetailParamsWithContext(ctx context.Context) *CustomerDetailParams
NewCustomerDetailParamsWithContext creates a new CustomerDetailParams object with the ability to set a context for a request.
func NewCustomerDetailParamsWithHTTPClient ¶
func NewCustomerDetailParamsWithHTTPClient(client *http.Client) *CustomerDetailParams
NewCustomerDetailParamsWithHTTPClient creates a new CustomerDetailParams object with the ability to set a custom HTTPClient for a request.
func NewCustomerDetailParamsWithTimeout ¶
func NewCustomerDetailParamsWithTimeout(timeout time.Duration) *CustomerDetailParams
NewCustomerDetailParamsWithTimeout creates a new CustomerDetailParams object with the ability to set a timeout on a request.
func (*CustomerDetailParams) SetCUUID ¶
func (o *CustomerDetailParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the customer detail params
func (*CustomerDetailParams) SetContext ¶
func (o *CustomerDetailParams) SetContext(ctx context.Context)
SetContext adds the context to the customer detail params
func (*CustomerDetailParams) SetDefaults ¶
func (o *CustomerDetailParams) SetDefaults()
SetDefaults hydrates default values in the customer detail params (not the query body).
All values with no default are reset to their zero value.
func (*CustomerDetailParams) SetHTTPClient ¶
func (o *CustomerDetailParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the customer detail params
func (*CustomerDetailParams) SetTimeout ¶
func (o *CustomerDetailParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the customer detail params
func (*CustomerDetailParams) WithCUUID ¶
func (o *CustomerDetailParams) WithCUUID(cUUID strfmt.UUID) *CustomerDetailParams
WithCUUID adds the cUUID to the customer detail params
func (*CustomerDetailParams) WithContext ¶
func (o *CustomerDetailParams) WithContext(ctx context.Context) *CustomerDetailParams
WithContext adds the context to the customer detail params
func (*CustomerDetailParams) WithDefaults ¶
func (o *CustomerDetailParams) WithDefaults() *CustomerDetailParams
WithDefaults hydrates default values in the customer detail params (not the query body).
All values with no default are reset to their zero value.
func (*CustomerDetailParams) WithHTTPClient ¶
func (o *CustomerDetailParams) WithHTTPClient(client *http.Client) *CustomerDetailParams
WithHTTPClient adds the HTTPClient to the customer detail params
func (*CustomerDetailParams) WithTimeout ¶
func (o *CustomerDetailParams) WithTimeout(timeout time.Duration) *CustomerDetailParams
WithTimeout adds the timeout to the customer detail params
func (*CustomerDetailParams) WriteToRequest ¶
func (o *CustomerDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CustomerDetailReader ¶
type CustomerDetailReader struct {
// contains filtered or unexported fields
}
CustomerDetailReader is a Reader for the CustomerDetail structure.
func (*CustomerDetailReader) ReadResponse ¶
func (o *CustomerDetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCustomerOK ¶
type DeleteCustomerOK struct {
Payload *models.YBPSuccess
}
DeleteCustomerOK describes a response with status code 200, with default header values.
successful operation
func NewDeleteCustomerOK ¶
func NewDeleteCustomerOK() *DeleteCustomerOK
NewDeleteCustomerOK creates a DeleteCustomerOK with default headers values
func (*DeleteCustomerOK) Error ¶
func (o *DeleteCustomerOK) Error() string
func (*DeleteCustomerOK) GetPayload ¶
func (o *DeleteCustomerOK) GetPayload() *models.YBPSuccess
type DeleteCustomerParams ¶
type DeleteCustomerParams struct { // CUUID. // // Format: uuid CUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCustomerParams contains all the parameters to send to the API endpoint
for the delete customer operation. Typically these are written to a http.Request.
func NewDeleteCustomerParams ¶
func NewDeleteCustomerParams() *DeleteCustomerParams
NewDeleteCustomerParams creates a new DeleteCustomerParams 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 NewDeleteCustomerParamsWithContext ¶
func NewDeleteCustomerParamsWithContext(ctx context.Context) *DeleteCustomerParams
NewDeleteCustomerParamsWithContext creates a new DeleteCustomerParams object with the ability to set a context for a request.
func NewDeleteCustomerParamsWithHTTPClient ¶
func NewDeleteCustomerParamsWithHTTPClient(client *http.Client) *DeleteCustomerParams
NewDeleteCustomerParamsWithHTTPClient creates a new DeleteCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteCustomerParamsWithTimeout ¶
func NewDeleteCustomerParamsWithTimeout(timeout time.Duration) *DeleteCustomerParams
NewDeleteCustomerParamsWithTimeout creates a new DeleteCustomerParams object with the ability to set a timeout on a request.
func (*DeleteCustomerParams) SetCUUID ¶
func (o *DeleteCustomerParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the delete customer params
func (*DeleteCustomerParams) SetContext ¶
func (o *DeleteCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the delete customer params
func (*DeleteCustomerParams) SetDefaults ¶
func (o *DeleteCustomerParams) SetDefaults()
SetDefaults hydrates default values in the delete customer params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerParams) SetHTTPClient ¶
func (o *DeleteCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete customer params
func (*DeleteCustomerParams) SetTimeout ¶
func (o *DeleteCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete customer params
func (*DeleteCustomerParams) WithCUUID ¶
func (o *DeleteCustomerParams) WithCUUID(cUUID strfmt.UUID) *DeleteCustomerParams
WithCUUID adds the cUUID to the delete customer params
func (*DeleteCustomerParams) WithContext ¶
func (o *DeleteCustomerParams) WithContext(ctx context.Context) *DeleteCustomerParams
WithContext adds the context to the delete customer params
func (*DeleteCustomerParams) WithDefaults ¶
func (o *DeleteCustomerParams) WithDefaults() *DeleteCustomerParams
WithDefaults hydrates default values in the delete customer params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerParams) WithHTTPClient ¶
func (o *DeleteCustomerParams) WithHTTPClient(client *http.Client) *DeleteCustomerParams
WithHTTPClient adds the HTTPClient to the delete customer params
func (*DeleteCustomerParams) WithTimeout ¶
func (o *DeleteCustomerParams) WithTimeout(timeout time.Duration) *DeleteCustomerParams
WithTimeout adds the timeout to the delete customer params
func (*DeleteCustomerParams) WriteToRequest ¶
func (o *DeleteCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCustomerReader ¶
type DeleteCustomerReader struct {
// contains filtered or unexported fields
}
DeleteCustomerReader is a Reader for the DeleteCustomer structure.
func (*DeleteCustomerReader) ReadResponse ¶
func (o *DeleteCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHostInfoOK ¶
type GetHostInfoOK struct {
Payload map[string]interface{}
}
GetHostInfoOK describes a response with status code 200, with default header values.
successful operation
func NewGetHostInfoOK ¶
func NewGetHostInfoOK() *GetHostInfoOK
NewGetHostInfoOK creates a GetHostInfoOK with default headers values
func (*GetHostInfoOK) Error ¶
func (o *GetHostInfoOK) Error() string
func (*GetHostInfoOK) GetPayload ¶
func (o *GetHostInfoOK) GetPayload() map[string]interface{}
type GetHostInfoParams ¶
type GetHostInfoParams struct { // CUUID. // // Format: uuid CUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHostInfoParams contains all the parameters to send to the API endpoint
for the get host info operation. Typically these are written to a http.Request.
func NewGetHostInfoParams ¶
func NewGetHostInfoParams() *GetHostInfoParams
NewGetHostInfoParams creates a new GetHostInfoParams 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 NewGetHostInfoParamsWithContext ¶
func NewGetHostInfoParamsWithContext(ctx context.Context) *GetHostInfoParams
NewGetHostInfoParamsWithContext creates a new GetHostInfoParams object with the ability to set a context for a request.
func NewGetHostInfoParamsWithHTTPClient ¶
func NewGetHostInfoParamsWithHTTPClient(client *http.Client) *GetHostInfoParams
NewGetHostInfoParamsWithHTTPClient creates a new GetHostInfoParams object with the ability to set a custom HTTPClient for a request.
func NewGetHostInfoParamsWithTimeout ¶
func NewGetHostInfoParamsWithTimeout(timeout time.Duration) *GetHostInfoParams
NewGetHostInfoParamsWithTimeout creates a new GetHostInfoParams object with the ability to set a timeout on a request.
func (*GetHostInfoParams) SetCUUID ¶
func (o *GetHostInfoParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the get host info params
func (*GetHostInfoParams) SetContext ¶
func (o *GetHostInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get host info params
func (*GetHostInfoParams) SetDefaults ¶
func (o *GetHostInfoParams) SetDefaults()
SetDefaults hydrates default values in the get host info params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostInfoParams) SetHTTPClient ¶
func (o *GetHostInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get host info params
func (*GetHostInfoParams) SetTimeout ¶
func (o *GetHostInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get host info params
func (*GetHostInfoParams) WithCUUID ¶
func (o *GetHostInfoParams) WithCUUID(cUUID strfmt.UUID) *GetHostInfoParams
WithCUUID adds the cUUID to the get host info params
func (*GetHostInfoParams) WithContext ¶
func (o *GetHostInfoParams) WithContext(ctx context.Context) *GetHostInfoParams
WithContext adds the context to the get host info params
func (*GetHostInfoParams) WithDefaults ¶
func (o *GetHostInfoParams) WithDefaults() *GetHostInfoParams
WithDefaults hydrates default values in the get host info params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostInfoParams) WithHTTPClient ¶
func (o *GetHostInfoParams) WithHTTPClient(client *http.Client) *GetHostInfoParams
WithHTTPClient adds the HTTPClient to the get host info params
func (*GetHostInfoParams) WithTimeout ¶
func (o *GetHostInfoParams) WithTimeout(timeout time.Duration) *GetHostInfoParams
WithTimeout adds the timeout to the get host info params
func (*GetHostInfoParams) WriteToRequest ¶
func (o *GetHostInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHostInfoReader ¶
type GetHostInfoReader struct {
// contains filtered or unexported fields
}
GetHostInfoReader is a Reader for the GetHostInfo structure.
func (*GetHostInfoReader) ReadResponse ¶
func (o *GetHostInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListOfCustomersOK ¶
ListOfCustomersOK describes a response with status code 200, with default header values.
successful operation
func NewListOfCustomersOK ¶
func NewListOfCustomersOK() *ListOfCustomersOK
NewListOfCustomersOK creates a ListOfCustomersOK with default headers values
func (*ListOfCustomersOK) Error ¶
func (o *ListOfCustomersOK) Error() string
func (*ListOfCustomersOK) GetPayload ¶
func (o *ListOfCustomersOK) GetPayload() []*models.Customer
type ListOfCustomersParams ¶
type ListOfCustomersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListOfCustomersParams contains all the parameters to send to the API endpoint
for the list of customers operation. Typically these are written to a http.Request.
func NewListOfCustomersParams ¶
func NewListOfCustomersParams() *ListOfCustomersParams
NewListOfCustomersParams creates a new ListOfCustomersParams 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 NewListOfCustomersParamsWithContext ¶
func NewListOfCustomersParamsWithContext(ctx context.Context) *ListOfCustomersParams
NewListOfCustomersParamsWithContext creates a new ListOfCustomersParams object with the ability to set a context for a request.
func NewListOfCustomersParamsWithHTTPClient ¶
func NewListOfCustomersParamsWithHTTPClient(client *http.Client) *ListOfCustomersParams
NewListOfCustomersParamsWithHTTPClient creates a new ListOfCustomersParams object with the ability to set a custom HTTPClient for a request.
func NewListOfCustomersParamsWithTimeout ¶
func NewListOfCustomersParamsWithTimeout(timeout time.Duration) *ListOfCustomersParams
NewListOfCustomersParamsWithTimeout creates a new ListOfCustomersParams object with the ability to set a timeout on a request.
func (*ListOfCustomersParams) SetContext ¶
func (o *ListOfCustomersParams) SetContext(ctx context.Context)
SetContext adds the context to the list of customers params
func (*ListOfCustomersParams) SetDefaults ¶
func (o *ListOfCustomersParams) SetDefaults()
SetDefaults hydrates default values in the list of customers params (not the query body).
All values with no default are reset to their zero value.
func (*ListOfCustomersParams) SetHTTPClient ¶
func (o *ListOfCustomersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list of customers params
func (*ListOfCustomersParams) SetTimeout ¶
func (o *ListOfCustomersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list of customers params
func (*ListOfCustomersParams) WithContext ¶
func (o *ListOfCustomersParams) WithContext(ctx context.Context) *ListOfCustomersParams
WithContext adds the context to the list of customers params
func (*ListOfCustomersParams) WithDefaults ¶
func (o *ListOfCustomersParams) WithDefaults() *ListOfCustomersParams
WithDefaults hydrates default values in the list of customers params (not the query body).
All values with no default are reset to their zero value.
func (*ListOfCustomersParams) WithHTTPClient ¶
func (o *ListOfCustomersParams) WithHTTPClient(client *http.Client) *ListOfCustomersParams
WithHTTPClient adds the HTTPClient to the list of customers params
func (*ListOfCustomersParams) WithTimeout ¶
func (o *ListOfCustomersParams) WithTimeout(timeout time.Duration) *ListOfCustomersParams
WithTimeout adds the timeout to the list of customers params
func (*ListOfCustomersParams) WriteToRequest ¶
func (o *ListOfCustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListOfCustomersReader ¶
type ListOfCustomersReader struct {
// contains filtered or unexported fields
}
ListOfCustomersReader is a Reader for the ListOfCustomers structure.
func (*ListOfCustomersReader) ReadResponse ¶
func (o *ListOfCustomersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MetricsBadRequest ¶
MetricsBadRequest describes a response with status code 400, with default header values.
When request fails validations.
func NewMetricsBadRequest ¶
func NewMetricsBadRequest() *MetricsBadRequest
NewMetricsBadRequest creates a MetricsBadRequest with default headers values
func (*MetricsBadRequest) Error ¶
func (o *MetricsBadRequest) Error() string
func (*MetricsBadRequest) GetPayload ¶
func (o *MetricsBadRequest) GetPayload() *models.YBPError
type MetricsOK ¶
type MetricsOK struct {
Payload map[string]interface{}
}
MetricsOK describes a response with status code 200, with default header values.
successful operation
func NewMetricsOK ¶
func NewMetricsOK() *MetricsOK
NewMetricsOK creates a MetricsOK with default headers values
func (*MetricsOK) GetPayload ¶
type MetricsParams ¶
type MetricsParams struct { /* Metrics. Metrics to be added */ Metrics *models.MetricQueryParams // CUUID. // // Format: uuid CUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MetricsParams contains all the parameters to send to the API endpoint
for the metrics operation. Typically these are written to a http.Request.
func NewMetricsParams ¶
func NewMetricsParams() *MetricsParams
NewMetricsParams creates a new MetricsParams 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 NewMetricsParamsWithContext ¶
func NewMetricsParamsWithContext(ctx context.Context) *MetricsParams
NewMetricsParamsWithContext creates a new MetricsParams object with the ability to set a context for a request.
func NewMetricsParamsWithHTTPClient ¶
func NewMetricsParamsWithHTTPClient(client *http.Client) *MetricsParams
NewMetricsParamsWithHTTPClient creates a new MetricsParams object with the ability to set a custom HTTPClient for a request.
func NewMetricsParamsWithTimeout ¶
func NewMetricsParamsWithTimeout(timeout time.Duration) *MetricsParams
NewMetricsParamsWithTimeout creates a new MetricsParams object with the ability to set a timeout on a request.
func (*MetricsParams) SetCUUID ¶
func (o *MetricsParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the metrics params
func (*MetricsParams) SetContext ¶
func (o *MetricsParams) SetContext(ctx context.Context)
SetContext adds the context to the metrics params
func (*MetricsParams) SetDefaults ¶
func (o *MetricsParams) SetDefaults()
SetDefaults hydrates default values in the metrics params (not the query body).
All values with no default are reset to their zero value.
func (*MetricsParams) SetHTTPClient ¶
func (o *MetricsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the metrics params
func (*MetricsParams) SetMetrics ¶
func (o *MetricsParams) SetMetrics(metrics *models.MetricQueryParams)
SetMetrics adds the metrics to the metrics params
func (*MetricsParams) SetTimeout ¶
func (o *MetricsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the metrics params
func (*MetricsParams) WithCUUID ¶
func (o *MetricsParams) WithCUUID(cUUID strfmt.UUID) *MetricsParams
WithCUUID adds the cUUID to the metrics params
func (*MetricsParams) WithContext ¶
func (o *MetricsParams) WithContext(ctx context.Context) *MetricsParams
WithContext adds the context to the metrics params
func (*MetricsParams) WithDefaults ¶
func (o *MetricsParams) WithDefaults() *MetricsParams
WithDefaults hydrates default values in the metrics params (not the query body).
All values with no default are reset to their zero value.
func (*MetricsParams) WithHTTPClient ¶
func (o *MetricsParams) WithHTTPClient(client *http.Client) *MetricsParams
WithHTTPClient adds the HTTPClient to the metrics params
func (*MetricsParams) WithMetrics ¶
func (o *MetricsParams) WithMetrics(metrics *models.MetricQueryParams) *MetricsParams
WithMetrics adds the metrics to the metrics params
func (*MetricsParams) WithTimeout ¶
func (o *MetricsParams) WithTimeout(timeout time.Duration) *MetricsParams
WithTimeout adds the timeout to the metrics params
func (*MetricsParams) WriteToRequest ¶
func (o *MetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MetricsReader ¶
type MetricsReader struct {
// contains filtered or unexported fields
}
MetricsReader is a Reader for the Metrics structure.
func (*MetricsReader) ReadResponse ¶
func (o *MetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCustomerOK ¶
UpdateCustomerOK describes a response with status code 200, with default header values.
successful operation
func NewUpdateCustomerOK ¶
func NewUpdateCustomerOK() *UpdateCustomerOK
NewUpdateCustomerOK creates a UpdateCustomerOK with default headers values
func (*UpdateCustomerOK) Error ¶
func (o *UpdateCustomerOK) Error() string
func (*UpdateCustomerOK) GetPayload ¶
func (o *UpdateCustomerOK) GetPayload() *models.Customer
type UpdateCustomerParams ¶
type UpdateCustomerParams struct { /* Customer. Customer data to be updated */ Customer *models.CustomerAlertData // CUUID. // // Format: uuid CUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCustomerParams contains all the parameters to send to the API endpoint
for the update customer operation. Typically these are written to a http.Request.
func NewUpdateCustomerParams ¶
func NewUpdateCustomerParams() *UpdateCustomerParams
NewUpdateCustomerParams creates a new UpdateCustomerParams 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 NewUpdateCustomerParamsWithContext ¶
func NewUpdateCustomerParamsWithContext(ctx context.Context) *UpdateCustomerParams
NewUpdateCustomerParamsWithContext creates a new UpdateCustomerParams object with the ability to set a context for a request.
func NewUpdateCustomerParamsWithHTTPClient ¶
func NewUpdateCustomerParamsWithHTTPClient(client *http.Client) *UpdateCustomerParams
NewUpdateCustomerParamsWithHTTPClient creates a new UpdateCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCustomerParamsWithTimeout ¶
func NewUpdateCustomerParamsWithTimeout(timeout time.Duration) *UpdateCustomerParams
NewUpdateCustomerParamsWithTimeout creates a new UpdateCustomerParams object with the ability to set a timeout on a request.
func (*UpdateCustomerParams) SetCUUID ¶
func (o *UpdateCustomerParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the update customer params
func (*UpdateCustomerParams) SetContext ¶
func (o *UpdateCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the update customer params
func (*UpdateCustomerParams) SetCustomer ¶
func (o *UpdateCustomerParams) SetCustomer(customer *models.CustomerAlertData)
SetCustomer adds the customer to the update customer params
func (*UpdateCustomerParams) SetDefaults ¶
func (o *UpdateCustomerParams) SetDefaults()
SetDefaults hydrates default values in the update customer params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomerParams) SetHTTPClient ¶
func (o *UpdateCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update customer params
func (*UpdateCustomerParams) SetTimeout ¶
func (o *UpdateCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update customer params
func (*UpdateCustomerParams) WithCUUID ¶
func (o *UpdateCustomerParams) WithCUUID(cUUID strfmt.UUID) *UpdateCustomerParams
WithCUUID adds the cUUID to the update customer params
func (*UpdateCustomerParams) WithContext ¶
func (o *UpdateCustomerParams) WithContext(ctx context.Context) *UpdateCustomerParams
WithContext adds the context to the update customer params
func (*UpdateCustomerParams) WithCustomer ¶
func (o *UpdateCustomerParams) WithCustomer(customer *models.CustomerAlertData) *UpdateCustomerParams
WithCustomer adds the customer to the update customer params
func (*UpdateCustomerParams) WithDefaults ¶
func (o *UpdateCustomerParams) WithDefaults() *UpdateCustomerParams
WithDefaults hydrates default values in the update customer params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomerParams) WithHTTPClient ¶
func (o *UpdateCustomerParams) WithHTTPClient(client *http.Client) *UpdateCustomerParams
WithHTTPClient adds the HTTPClient to the update customer params
func (*UpdateCustomerParams) WithTimeout ¶
func (o *UpdateCustomerParams) WithTimeout(timeout time.Duration) *UpdateCustomerParams
WithTimeout adds the timeout to the update customer params
func (*UpdateCustomerParams) WriteToRequest ¶
func (o *UpdateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCustomerReader ¶
type UpdateCustomerReader struct {
// contains filtered or unexported fields
}
UpdateCustomerReader is a Reader for the UpdateCustomer structure.
func (*UpdateCustomerReader) ReadResponse ¶
func (o *UpdateCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- customer_detail_parameters.go
- customer_detail_responses.go
- customer_management_client.go
- delete_customer_parameters.go
- delete_customer_responses.go
- get_host_info_parameters.go
- get_host_info_responses.go
- list_of_customers_parameters.go
- list_of_customers_responses.go
- metrics_parameters.go
- metrics_responses.go
- update_customer_parameters.go
- update_customer_responses.go