Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteServer(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, *DeleteServerInternalServerError, error)
- func (a *Client) DeleteServerShort(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, error)
- func (a *Client) SetServerAlias(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, *SetServerAliasBadRequest, *SetServerAliasNotFound, ...)
- func (a *Client) SetServerAliasShort(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteServerInternalServerError
- type DeleteServerNoContent
- type DeleteServerParams
- func (o *DeleteServerParams) SetContext(ctx context.Context)
- func (o *DeleteServerParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServerParams) SetRegion(region string)
- func (o *DeleteServerParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServerParams) WithContext(ctx context.Context) *DeleteServerParams
- func (o *DeleteServerParams) WithHTTPClient(client *http.Client) *DeleteServerParams
- func (o *DeleteServerParams) WithRegion(region string) *DeleteServerParams
- func (o *DeleteServerParams) WithTimeout(timeout time.Duration) *DeleteServerParams
- func (o *DeleteServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServerReader
- type SetServerAliasBadRequest
- type SetServerAliasInternalServerError
- type SetServerAliasNoContent
- type SetServerAliasNotFound
- type SetServerAliasParams
- func NewSetServerAliasParams() *SetServerAliasParams
- func NewSetServerAliasParamsWithContext(ctx context.Context) *SetServerAliasParams
- func NewSetServerAliasParamsWithHTTPClient(client *http.Client) *SetServerAliasParams
- func NewSetServerAliasParamsWithTimeout(timeout time.Duration) *SetServerAliasParams
- func (o *SetServerAliasParams) SetBody(body *qosmclientmodels.ModelsSetAliasRequest)
- func (o *SetServerAliasParams) SetContext(ctx context.Context)
- func (o *SetServerAliasParams) SetHTTPClient(client *http.Client)
- func (o *SetServerAliasParams) SetRegion(region string)
- func (o *SetServerAliasParams) SetTimeout(timeout time.Duration)
- func (o *SetServerAliasParams) WithBody(body *qosmclientmodels.ModelsSetAliasRequest) *SetServerAliasParams
- func (o *SetServerAliasParams) WithContext(ctx context.Context) *SetServerAliasParams
- func (o *SetServerAliasParams) WithHTTPClient(client *http.Client) *SetServerAliasParams
- func (o *SetServerAliasParams) WithRegion(region string) *SetServerAliasParams
- func (o *SetServerAliasParams) WithTimeout(timeout time.Duration) *SetServerAliasParams
- func (o *SetServerAliasParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetServerAliasReader
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 admin API
func (*Client) DeleteServer ¶
func (a *Client) DeleteServer(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, *DeleteServerInternalServerError, error)
DeleteServer deletes a qo s service record ```
Required permission: ADMIN:QOS:SERVER [DELETE] Required scope: social
This endpoint delete a registered QoS service record. ```
func (*Client) DeleteServerShort ¶ added in v0.8.0
func (a *Client) DeleteServerShort(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, error)
func (*Client) SetServerAlias ¶
func (a *Client) SetServerAlias(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, *SetServerAliasBadRequest, *SetServerAliasNotFound, *SetServerAliasInternalServerError, error)
SetServerAlias modifies a qo s service s region alias ```
Required permission: ADMIN:QOS:SERVER [UDPATE] Required scope: social
This endpoint modifies a registered QoS service's region alias. ```
func (*Client) SetServerAliasShort ¶ added in v0.8.0
func (a *Client) SetServerAliasShort(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteServer(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, *DeleteServerInternalServerError, error) DeleteServerShort(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, error) SetServerAlias(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, *SetServerAliasBadRequest, *SetServerAliasNotFound, *SetServerAliasInternalServerError, error) SetServerAliasShort(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, 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 admin API client.
type DeleteServerInternalServerError ¶
type DeleteServerInternalServerError struct {
Payload *qosmclientmodels.ResponseError
}
DeleteServerInternalServerError handles this case with default header values.
Internal Server Error
func NewDeleteServerInternalServerError ¶
func NewDeleteServerInternalServerError() *DeleteServerInternalServerError
NewDeleteServerInternalServerError creates a DeleteServerInternalServerError with default headers values
func (*DeleteServerInternalServerError) Error ¶
func (o *DeleteServerInternalServerError) Error() string
func (*DeleteServerInternalServerError) GetPayload ¶
func (o *DeleteServerInternalServerError) GetPayload() *qosmclientmodels.ResponseError
type DeleteServerNoContent ¶
type DeleteServerNoContent struct { }
DeleteServerNoContent handles this case with default header values.
record deleted
func NewDeleteServerNoContent ¶
func NewDeleteServerNoContent() *DeleteServerNoContent
NewDeleteServerNoContent creates a DeleteServerNoContent with default headers values
func (*DeleteServerNoContent) Error ¶
func (o *DeleteServerNoContent) Error() string
type DeleteServerParams ¶
type DeleteServerParams struct { /*Region region of the QoS */ Region string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteServerParams contains all the parameters to send to the API endpoint for the delete server operation typically these are written to a http.Request
func NewDeleteServerParams ¶
func NewDeleteServerParams() *DeleteServerParams
NewDeleteServerParams creates a new DeleteServerParams object with the default values initialized.
func NewDeleteServerParamsWithContext ¶
func NewDeleteServerParamsWithContext(ctx context.Context) *DeleteServerParams
NewDeleteServerParamsWithContext creates a new DeleteServerParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteServerParamsWithHTTPClient ¶
func NewDeleteServerParamsWithHTTPClient(client *http.Client) *DeleteServerParams
NewDeleteServerParamsWithHTTPClient creates a new DeleteServerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteServerParamsWithTimeout ¶
func NewDeleteServerParamsWithTimeout(timeout time.Duration) *DeleteServerParams
NewDeleteServerParamsWithTimeout creates a new DeleteServerParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteServerParams) SetContext ¶
func (o *DeleteServerParams) SetContext(ctx context.Context)
SetContext adds the context to the delete server params
func (*DeleteServerParams) SetHTTPClient ¶
func (o *DeleteServerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete server params
func (*DeleteServerParams) SetRegion ¶
func (o *DeleteServerParams) SetRegion(region string)
SetRegion adds the region to the delete server params
func (*DeleteServerParams) SetTimeout ¶
func (o *DeleteServerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete server params
func (*DeleteServerParams) WithContext ¶
func (o *DeleteServerParams) WithContext(ctx context.Context) *DeleteServerParams
WithContext adds the context to the delete server params
func (*DeleteServerParams) WithHTTPClient ¶
func (o *DeleteServerParams) WithHTTPClient(client *http.Client) *DeleteServerParams
WithHTTPClient adds the HTTPClient to the delete server params
func (*DeleteServerParams) WithRegion ¶
func (o *DeleteServerParams) WithRegion(region string) *DeleteServerParams
WithRegion adds the region to the delete server params
func (*DeleteServerParams) WithTimeout ¶
func (o *DeleteServerParams) WithTimeout(timeout time.Duration) *DeleteServerParams
WithTimeout adds the timeout to the delete server params
func (*DeleteServerParams) WriteToRequest ¶
func (o *DeleteServerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteServerReader ¶
type DeleteServerReader struct {
// contains filtered or unexported fields
}
DeleteServerReader is a Reader for the DeleteServer structure.
func (*DeleteServerReader) ReadResponse ¶
func (o *DeleteServerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetServerAliasBadRequest ¶
type SetServerAliasBadRequest struct {
Payload *qosmclientmodels.ResponseError
}
SetServerAliasBadRequest handles this case with default header values.
malformed request
func NewSetServerAliasBadRequest ¶
func NewSetServerAliasBadRequest() *SetServerAliasBadRequest
NewSetServerAliasBadRequest creates a SetServerAliasBadRequest with default headers values
func (*SetServerAliasBadRequest) Error ¶
func (o *SetServerAliasBadRequest) Error() string
func (*SetServerAliasBadRequest) GetPayload ¶
func (o *SetServerAliasBadRequest) GetPayload() *qosmclientmodels.ResponseError
type SetServerAliasInternalServerError ¶
type SetServerAliasInternalServerError struct {
Payload *qosmclientmodels.ResponseError
}
SetServerAliasInternalServerError handles this case with default header values.
Internal Server Error
func NewSetServerAliasInternalServerError ¶
func NewSetServerAliasInternalServerError() *SetServerAliasInternalServerError
NewSetServerAliasInternalServerError creates a SetServerAliasInternalServerError with default headers values
func (*SetServerAliasInternalServerError) Error ¶
func (o *SetServerAliasInternalServerError) Error() string
func (*SetServerAliasInternalServerError) GetPayload ¶
func (o *SetServerAliasInternalServerError) GetPayload() *qosmclientmodels.ResponseError
type SetServerAliasNoContent ¶
type SetServerAliasNoContent struct { }
SetServerAliasNoContent handles this case with default header values.
record updated
func NewSetServerAliasNoContent ¶
func NewSetServerAliasNoContent() *SetServerAliasNoContent
NewSetServerAliasNoContent creates a SetServerAliasNoContent with default headers values
func (*SetServerAliasNoContent) Error ¶
func (o *SetServerAliasNoContent) Error() string
type SetServerAliasNotFound ¶
type SetServerAliasNotFound struct {
Payload *qosmclientmodels.ResponseError
}
SetServerAliasNotFound handles this case with default header values.
server record not found
func NewSetServerAliasNotFound ¶
func NewSetServerAliasNotFound() *SetServerAliasNotFound
NewSetServerAliasNotFound creates a SetServerAliasNotFound with default headers values
func (*SetServerAliasNotFound) Error ¶
func (o *SetServerAliasNotFound) Error() string
func (*SetServerAliasNotFound) GetPayload ¶
func (o *SetServerAliasNotFound) GetPayload() *qosmclientmodels.ResponseError
type SetServerAliasParams ¶
type SetServerAliasParams struct { /*Body*/ Body *qosmclientmodels.ModelsSetAliasRequest /*Region original region of the QoS */ Region string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetServerAliasParams contains all the parameters to send to the API endpoint for the set server alias operation typically these are written to a http.Request
func NewSetServerAliasParams ¶
func NewSetServerAliasParams() *SetServerAliasParams
NewSetServerAliasParams creates a new SetServerAliasParams object with the default values initialized.
func NewSetServerAliasParamsWithContext ¶
func NewSetServerAliasParamsWithContext(ctx context.Context) *SetServerAliasParams
NewSetServerAliasParamsWithContext creates a new SetServerAliasParams object with the default values initialized, and the ability to set a context for a request
func NewSetServerAliasParamsWithHTTPClient ¶
func NewSetServerAliasParamsWithHTTPClient(client *http.Client) *SetServerAliasParams
NewSetServerAliasParamsWithHTTPClient creates a new SetServerAliasParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSetServerAliasParamsWithTimeout ¶
func NewSetServerAliasParamsWithTimeout(timeout time.Duration) *SetServerAliasParams
NewSetServerAliasParamsWithTimeout creates a new SetServerAliasParams object with the default values initialized, and the ability to set a timeout on a request
func (*SetServerAliasParams) SetBody ¶
func (o *SetServerAliasParams) SetBody(body *qosmclientmodels.ModelsSetAliasRequest)
SetBody adds the body to the set server alias params
func (*SetServerAliasParams) SetContext ¶
func (o *SetServerAliasParams) SetContext(ctx context.Context)
SetContext adds the context to the set server alias params
func (*SetServerAliasParams) SetHTTPClient ¶
func (o *SetServerAliasParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set server alias params
func (*SetServerAliasParams) SetRegion ¶
func (o *SetServerAliasParams) SetRegion(region string)
SetRegion adds the region to the set server alias params
func (*SetServerAliasParams) SetTimeout ¶
func (o *SetServerAliasParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set server alias params
func (*SetServerAliasParams) WithBody ¶
func (o *SetServerAliasParams) WithBody(body *qosmclientmodels.ModelsSetAliasRequest) *SetServerAliasParams
WithBody adds the body to the set server alias params
func (*SetServerAliasParams) WithContext ¶
func (o *SetServerAliasParams) WithContext(ctx context.Context) *SetServerAliasParams
WithContext adds the context to the set server alias params
func (*SetServerAliasParams) WithHTTPClient ¶
func (o *SetServerAliasParams) WithHTTPClient(client *http.Client) *SetServerAliasParams
WithHTTPClient adds the HTTPClient to the set server alias params
func (*SetServerAliasParams) WithRegion ¶
func (o *SetServerAliasParams) WithRegion(region string) *SetServerAliasParams
WithRegion adds the region to the set server alias params
func (*SetServerAliasParams) WithTimeout ¶
func (o *SetServerAliasParams) WithTimeout(timeout time.Duration) *SetServerAliasParams
WithTimeout adds the timeout to the set server alias params
func (*SetServerAliasParams) WriteToRequest ¶
func (o *SetServerAliasParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetServerAliasReader ¶
type SetServerAliasReader struct {
// contains filtered or unexported fields
}
SetServerAliasReader is a Reader for the SetServerAlias structure.
func (*SetServerAliasReader) ReadResponse ¶
func (o *SetServerAliasReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.