admin

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 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 added in v0.8.0

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 added in v0.8.0

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 added in v0.20.0

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 added in v0.20.0

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 added in v0.25.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.17.0

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) SetFlightId added in v0.63.0

func (o *DeleteServerParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*DeleteServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete server params

func (*DeleteServerParams) SetHTTPClientTransport added in v0.19.0

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 added in v0.25.0

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 added in v0.25.0

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 added in v0.25.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.17.0

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) SetFlightId added in v0.63.0

func (o *SetServerAliasParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*SetServerAliasParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set server alias params

func (*SetServerAliasParams) SetHTTPClientTransport added in v0.19.0

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 added in v0.20.0

type UpdateServerConfigBadRequest struct {
	Payload *qosmclientmodels.ResponseError
}

UpdateServerConfigBadRequest handles this case with default header values.

malformed request

func NewUpdateServerConfigBadRequest added in v0.20.0

func NewUpdateServerConfigBadRequest() *UpdateServerConfigBadRequest

NewUpdateServerConfigBadRequest creates a UpdateServerConfigBadRequest with default headers values

func (*UpdateServerConfigBadRequest) Error added in v0.20.0

func (*UpdateServerConfigBadRequest) GetPayload added in v0.20.0

func (*UpdateServerConfigBadRequest) ToJSONString added in v0.25.0

func (o *UpdateServerConfigBadRequest) ToJSONString() string

type UpdateServerConfigInternalServerError added in v0.20.0

type UpdateServerConfigInternalServerError struct {
	Payload *qosmclientmodels.ResponseError
}

UpdateServerConfigInternalServerError handles this case with default header values.

Internal Server Error

func NewUpdateServerConfigInternalServerError added in v0.20.0

func NewUpdateServerConfigInternalServerError() *UpdateServerConfigInternalServerError

NewUpdateServerConfigInternalServerError creates a UpdateServerConfigInternalServerError with default headers values

func (*UpdateServerConfigInternalServerError) Error added in v0.20.0

func (*UpdateServerConfigInternalServerError) GetPayload added in v0.20.0

func (*UpdateServerConfigInternalServerError) ToJSONString added in v0.25.0

type UpdateServerConfigNoContent added in v0.20.0

type UpdateServerConfigNoContent struct {
}

UpdateServerConfigNoContent handles this case with default header values.

record updated

func NewUpdateServerConfigNoContent added in v0.20.0

func NewUpdateServerConfigNoContent() *UpdateServerConfigNoContent

NewUpdateServerConfigNoContent creates a UpdateServerConfigNoContent with default headers values

func (*UpdateServerConfigNoContent) Error added in v0.20.0

type UpdateServerConfigNotFound added in v0.20.0

type UpdateServerConfigNotFound struct {
	Payload *qosmclientmodels.ResponseError
}

UpdateServerConfigNotFound handles this case with default header values.

server record not found

func NewUpdateServerConfigNotFound added in v0.20.0

func NewUpdateServerConfigNotFound() *UpdateServerConfigNotFound

NewUpdateServerConfigNotFound creates a UpdateServerConfigNotFound with default headers values

func (*UpdateServerConfigNotFound) Error added in v0.20.0

func (*UpdateServerConfigNotFound) GetPayload added in v0.20.0

func (*UpdateServerConfigNotFound) ToJSONString added in v0.25.0

func (o *UpdateServerConfigNotFound) ToJSONString() string

type UpdateServerConfigParams added in v0.20.0

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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 added in v0.20.0

func NewUpdateServerConfigParams() *UpdateServerConfigParams

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

func NewUpdateServerConfigParamsWithContext added in v0.20.0

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 added in v0.20.0

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 added in v0.20.0

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 added in v0.20.0

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

SetAuthInfoWriter adds the authInfoWriter to the update server config params

func (*UpdateServerConfigParams) SetBody added in v0.20.0

SetBody adds the body to the update server config params

func (*UpdateServerConfigParams) SetContext added in v0.20.0

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

SetContext adds the context to the update server config params

func (*UpdateServerConfigParams) SetFlightId added in v0.63.0

func (o *UpdateServerConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*UpdateServerConfigParams) SetHTTPClient added in v0.20.0

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

SetHTTPClient adds the HTTPClient to the update server config params

func (*UpdateServerConfigParams) SetHTTPClientTransport added in v0.20.0

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

SetHTTPClient adds the HTTPClient Transport to the update server config params

func (*UpdateServerConfigParams) SetNamespace added in v0.20.0

func (o *UpdateServerConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update server config params

func (*UpdateServerConfigParams) SetRegion added in v0.20.0

func (o *UpdateServerConfigParams) SetRegion(region string)

SetRegion adds the region to the update server config params

func (*UpdateServerConfigParams) SetTimeout added in v0.20.0

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

SetTimeout adds the timeout to the update server config params

func (*UpdateServerConfigParams) WithBody added in v0.20.0

WithBody adds the body to the update server config params

func (*UpdateServerConfigParams) WithContext added in v0.20.0

WithContext adds the context to the update server config params

func (*UpdateServerConfigParams) WithHTTPClient added in v0.20.0

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

WithHTTPClient adds the HTTPClient to the update server config params

func (*UpdateServerConfigParams) WithNamespace added in v0.20.0

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

WithNamespace adds the namespace to the update server config params

func (*UpdateServerConfigParams) WithRegion added in v0.20.0

WithRegion adds the region to the update server config params

func (*UpdateServerConfigParams) WithTimeout added in v0.20.0

WithTimeout adds the timeout to the update server config params

func (*UpdateServerConfigParams) WriteToRequest added in v0.20.0

WriteToRequest writes these params to a swagger request

type UpdateServerConfigReader added in v0.20.0

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

UpdateServerConfigReader is a Reader for the UpdateServerConfig structure.

func (*UpdateServerConfigReader) ReadResponse added in v0.20.0

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