admin

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 15 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 deprecated

Deprecated: 2022-08-10 - Use DeleteServerShort instead.

DeleteServer delete a qos service record ``` Required permission: ADMIN:QOS:SERVER [DELETE] Required scope: social

This endpoint delete a registered QoS service record. ```

func (*Client) DeleteServerShort

func (a *Client) DeleteServerShort(params *DeleteServerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerNoContent, error)

DeleteServerShort delete a qos service record ``` Required permission: ADMIN:QOS:SERVER [DELETE] Required scope: social

This endpoint delete a registered QoS service record. ```

func (*Client) SetServerAlias deprecated

Deprecated: 2022-08-10 - Use SetServerAliasShort instead.

SetServerAlias modify a qos 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

func (a *Client) SetServerAliasShort(params *SetServerAliasParams, authInfo runtime.ClientAuthInfoWriter) (*SetServerAliasNoContent, error)

SetServerAliasShort modify a qos 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) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateServerConfig deprecated

Deprecated: 2022-08-10 - Use UpdateServerConfigShort instead.

UpdateServerConfig update qos service configuration ``` Required permission: ADMIN:NAMESPACE:{namespace}:QOS:SERVER [UPDATE] Required scope: social

This endpoint updates the registered QoS service's configurable configuration'. ```

func (*Client) UpdateServerConfigShort

func (a *Client) UpdateServerConfigShort(params *UpdateServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateServerConfigNoContent, error)

UpdateServerConfigShort update qos service configuration ``` Required permission: ADMIN:NAMESPACE:{namespace}:QOS:SERVER [UPDATE] Required scope: social

This endpoint updates the registered QoS service's configurable configuration'. ```

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

func (*DeleteServerInternalServerError) ToJSONString

func (o *DeleteServerInternalServerError) ToJSONString() string

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 {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Region
	  region of the QoS

	*/
	Region string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter

func (o *DeleteServerParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete server params

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) SetHTTPClientTransport

func (o *DeleteServerParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport 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

func (*SetServerAliasBadRequest) ToJSONString

func (o *SetServerAliasBadRequest) ToJSONString() string

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

func (*SetServerAliasInternalServerError) ToJSONString

func (o *SetServerAliasInternalServerError) ToJSONString() string

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 (*SetServerAliasNotFound) ToJSONString

func (o *SetServerAliasNotFound) ToJSONString() string

type SetServerAliasParams

type SetServerAliasParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *qosmclientmodels.ModelsSetAliasRequest
	/*Region
	  original region of the QoS

	*/
	Region string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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) SetAuthInfoWriter

func (o *SetServerAliasParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the set server alias params

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) SetHTTPClientTransport

func (o *SetServerAliasParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport 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.

type UpdateServerConfigBadRequest

type UpdateServerConfigBadRequest struct {
	Payload *qosmclientmodels.ResponseError
}

UpdateServerConfigBadRequest handles this case with default header values.

malformed request

func NewUpdateServerConfigBadRequest

func NewUpdateServerConfigBadRequest() *UpdateServerConfigBadRequest

NewUpdateServerConfigBadRequest creates a UpdateServerConfigBadRequest with default headers values

func (*UpdateServerConfigBadRequest) Error

func (*UpdateServerConfigBadRequest) GetPayload

func (*UpdateServerConfigBadRequest) ToJSONString

func (o *UpdateServerConfigBadRequest) ToJSONString() string

type UpdateServerConfigInternalServerError

type UpdateServerConfigInternalServerError struct {
	Payload *qosmclientmodels.ResponseError
}

UpdateServerConfigInternalServerError handles this case with default header values.

Internal Server Error

func NewUpdateServerConfigInternalServerError

func NewUpdateServerConfigInternalServerError() *UpdateServerConfigInternalServerError

NewUpdateServerConfigInternalServerError creates a UpdateServerConfigInternalServerError with default headers values

func (*UpdateServerConfigInternalServerError) Error

func (*UpdateServerConfigInternalServerError) GetPayload

func (*UpdateServerConfigInternalServerError) ToJSONString

type UpdateServerConfigNoContent

type UpdateServerConfigNoContent struct {
}

UpdateServerConfigNoContent handles this case with default header values.

record updated

func NewUpdateServerConfigNoContent

func NewUpdateServerConfigNoContent() *UpdateServerConfigNoContent

NewUpdateServerConfigNoContent creates a UpdateServerConfigNoContent with default headers values

func (*UpdateServerConfigNoContent) Error

type UpdateServerConfigNotFound

type UpdateServerConfigNotFound struct {
	Payload *qosmclientmodels.ResponseError
}

UpdateServerConfigNotFound handles this case with default header values.

server record not found

func NewUpdateServerConfigNotFound

func NewUpdateServerConfigNotFound() *UpdateServerConfigNotFound

NewUpdateServerConfigNotFound creates a UpdateServerConfigNotFound with default headers values

func (*UpdateServerConfigNotFound) Error

func (*UpdateServerConfigNotFound) GetPayload

func (*UpdateServerConfigNotFound) ToJSONString

func (o *UpdateServerConfigNotFound) ToJSONString() string

type UpdateServerConfigParams

type UpdateServerConfigParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *qosmclientmodels.ModelsUpdateServerRequest
	/*Namespace
	  namespace of the QoS

	*/
	Namespace string
	/*Region
	  original region of the QoS

	*/
	Region string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

UpdateServerConfigParams contains all the parameters to send to the API endpoint for the update server config operation typically these are written to a http.Request

func NewUpdateServerConfigParams

func NewUpdateServerConfigParams() *UpdateServerConfigParams

NewUpdateServerConfigParams creates a new UpdateServerConfigParams object with the default values initialized.

func NewUpdateServerConfigParamsWithContext

func NewUpdateServerConfigParamsWithContext(ctx context.Context) *UpdateServerConfigParams

NewUpdateServerConfigParamsWithContext creates a new UpdateServerConfigParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateServerConfigParamsWithHTTPClient

func NewUpdateServerConfigParamsWithHTTPClient(client *http.Client) *UpdateServerConfigParams

NewUpdateServerConfigParamsWithHTTPClient creates a new UpdateServerConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateServerConfigParamsWithTimeout

func NewUpdateServerConfigParamsWithTimeout(timeout time.Duration) *UpdateServerConfigParams

NewUpdateServerConfigParamsWithTimeout creates a new UpdateServerConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateServerConfigParams) SetAuthInfoWriter

func (o *UpdateServerConfigParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update server config params

func (*UpdateServerConfigParams) SetBody

SetBody adds the body to the update server config params

func (*UpdateServerConfigParams) SetContext

func (o *UpdateServerConfigParams) SetContext(ctx context.Context)

SetContext adds the context to the update server config params

func (*UpdateServerConfigParams) SetHTTPClient

func (o *UpdateServerConfigParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update server config params

func (*UpdateServerConfigParams) SetHTTPClientTransport

func (o *UpdateServerConfigParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update server config params

func (*UpdateServerConfigParams) SetNamespace

func (o *UpdateServerConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update server config params

func (*UpdateServerConfigParams) SetRegion

func (o *UpdateServerConfigParams) SetRegion(region string)

SetRegion adds the region to the update server config params

func (*UpdateServerConfigParams) SetTimeout

func (o *UpdateServerConfigParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update server config params

func (*UpdateServerConfigParams) WithBody

WithBody adds the body to the update server config params

func (*UpdateServerConfigParams) WithContext

WithContext adds the context to the update server config params

func (*UpdateServerConfigParams) WithHTTPClient

func (o *UpdateServerConfigParams) WithHTTPClient(client *http.Client) *UpdateServerConfigParams

WithHTTPClient adds the HTTPClient to the update server config params

func (*UpdateServerConfigParams) WithNamespace

func (o *UpdateServerConfigParams) WithNamespace(namespace string) *UpdateServerConfigParams

WithNamespace adds the namespace to the update server config params

func (*UpdateServerConfigParams) WithRegion

WithRegion adds the region to the update server config params

func (*UpdateServerConfigParams) WithTimeout

WithTimeout adds the timeout to the update server config params

func (*UpdateServerConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateServerConfigReader

type UpdateServerConfigReader struct {
	// contains filtered or unexported fields
}

UpdateServerConfigReader is a Reader for the UpdateServerConfig structure.

func (*UpdateServerConfigReader) ReadResponse

func (o *UpdateServerConfigReader) 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