admin

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

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

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

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 (*DeleteServerInternalServerError) GetPayload

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

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

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 (*SetServerAliasInternalServerError) GetPayload

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

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

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

WithBody adds the body to the set server alias params

func (*SetServerAliasParams) WithContext

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL