server

package
v0.0.0-...-f51c1d0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 11 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 server API

func (*Client) ServerCreatePkgPasteServer

func (a *Client) ServerCreatePkgPasteServer(params *ServerCreatePkgPasteServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerCreatePkgPasteServerOK, error)

ServerCreatePkgPasteServer creates pkg paste server server

create paste server

func (*Client) ServerDeleteServer

func (a *Client) ServerDeleteServer(params *ServerDeleteServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerDeleteServerOK, error)

ServerDeleteServer deletes server server

server delete

func (*Client) ServerGetServerDetail

func (a *Client) ServerGetServerDetail(params *ServerGetServerDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerGetServerDetailOK, error)

ServerGetServerDetail gets server detail server

server detail

func (*Client) ServerGetServerDetailByUUID

func (a *Client) ServerGetServerDetailByUUID(params *ServerGetServerDetailByUUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerGetServerDetailByUUIDOK, error)

ServerGetServerDetailByUUID gets server detail by UUID server

server detail by UUID

func (*Client) ServerGetServerList

func (a *Client) ServerGetServerList(params *ServerGetServerListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerGetServerListOK, error)

ServerGetServerList gets server list server

server list

func (*Client) ServerUpdatePkgPasteServer

func (a *Client) ServerUpdatePkgPasteServer(params *ServerUpdatePkgPasteServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUpdatePkgPasteServerOK, error)

ServerUpdatePkgPasteServer updates pkg paste server server

update paste server

func (*Client) ServerUpdateServer

func (a *Client) ServerUpdateServer(params *ServerUpdateServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUpdateServerOK, error)

ServerUpdateServer updates server server

update server

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ServerCreatePkgPasteServer(params *ServerCreatePkgPasteServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerCreatePkgPasteServerOK, error)

	ServerDeleteServer(params *ServerDeleteServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerDeleteServerOK, error)

	ServerGetServerDetail(params *ServerGetServerDetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerGetServerDetailOK, error)

	ServerGetServerDetailByUUID(params *ServerGetServerDetailByUUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerGetServerDetailByUUIDOK, error)

	ServerGetServerList(params *ServerGetServerListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerGetServerListOK, error)

	ServerUpdatePkgPasteServer(params *ServerUpdatePkgPasteServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUpdatePkgPasteServerOK, error)

	ServerUpdateServer(params *ServerUpdateServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUpdateServerOK, 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 server API client.

type ServerCreatePkgPasteServerOK

type ServerCreatePkgPasteServerOK struct {
	Payload *models.ServerCreatePkgPasteServerResponseBody
}
ServerCreatePkgPasteServerOK describes a response with status code 200, with default header values.

OK response.

func NewServerCreatePkgPasteServerOK

func NewServerCreatePkgPasteServerOK() *ServerCreatePkgPasteServerOK

NewServerCreatePkgPasteServerOK creates a ServerCreatePkgPasteServerOK with default headers values

func (*ServerCreatePkgPasteServerOK) Error

func (*ServerCreatePkgPasteServerOK) GetPayload

type ServerCreatePkgPasteServerParams

type ServerCreatePkgPasteServerParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	// CreatePkgPasteServerRequestBody.
	CreatePkgPasteServerRequestBody *models.ServerCreatePkgPasteServerRequestBody

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

ServerCreatePkgPasteServerParams contains all the parameters to send to the API endpoint

for the server create pkg paste server operation.

Typically these are written to a http.Request.

func NewServerCreatePkgPasteServerParams

func NewServerCreatePkgPasteServerParams() *ServerCreatePkgPasteServerParams

NewServerCreatePkgPasteServerParams creates a new ServerCreatePkgPasteServerParams 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 NewServerCreatePkgPasteServerParamsWithContext

func NewServerCreatePkgPasteServerParamsWithContext(ctx context.Context) *ServerCreatePkgPasteServerParams

NewServerCreatePkgPasteServerParamsWithContext creates a new ServerCreatePkgPasteServerParams object with the ability to set a context for a request.

func NewServerCreatePkgPasteServerParamsWithHTTPClient

func NewServerCreatePkgPasteServerParamsWithHTTPClient(client *http.Client) *ServerCreatePkgPasteServerParams

NewServerCreatePkgPasteServerParamsWithHTTPClient creates a new ServerCreatePkgPasteServerParams object with the ability to set a custom HTTPClient for a request.

func NewServerCreatePkgPasteServerParamsWithTimeout

func NewServerCreatePkgPasteServerParamsWithTimeout(timeout time.Duration) *ServerCreatePkgPasteServerParams

NewServerCreatePkgPasteServerParamsWithTimeout creates a new ServerCreatePkgPasteServerParams object with the ability to set a timeout on a request.

func (*ServerCreatePkgPasteServerParams) SetAuthorization

func (o *ServerCreatePkgPasteServerParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) SetContext

SetContext adds the context to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) SetCreatePkgPasteServerRequestBody

func (o *ServerCreatePkgPasteServerParams) SetCreatePkgPasteServerRequestBody(createPkgPasteServerRequestBody *models.ServerCreatePkgPasteServerRequestBody)

SetCreatePkgPasteServerRequestBody adds the createPkgPasteServerRequestBody to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) SetDefaults

func (o *ServerCreatePkgPasteServerParams) SetDefaults()

SetDefaults hydrates default values in the server create pkg paste server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerCreatePkgPasteServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) SetTimeout

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

SetTimeout adds the timeout to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) WithAuthorization

func (o *ServerCreatePkgPasteServerParams) WithAuthorization(authorization *string) *ServerCreatePkgPasteServerParams

WithAuthorization adds the authorization to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) WithContext

WithContext adds the context to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) WithCreatePkgPasteServerRequestBody

func (o *ServerCreatePkgPasteServerParams) WithCreatePkgPasteServerRequestBody(createPkgPasteServerRequestBody *models.ServerCreatePkgPasteServerRequestBody) *ServerCreatePkgPasteServerParams

WithCreatePkgPasteServerRequestBody adds the createPkgPasteServerRequestBody to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) WithDefaults

WithDefaults hydrates default values in the server create pkg paste server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerCreatePkgPasteServerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) WithTimeout

WithTimeout adds the timeout to the server create pkg paste server params

func (*ServerCreatePkgPasteServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerCreatePkgPasteServerReader

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

ServerCreatePkgPasteServerReader is a Reader for the ServerCreatePkgPasteServer structure.

func (*ServerCreatePkgPasteServerReader) ReadResponse

func (o *ServerCreatePkgPasteServerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServerDeleteServerOK

type ServerDeleteServerOK struct {
}
ServerDeleteServerOK describes a response with status code 200, with default header values.

OK response.

func NewServerDeleteServerOK

func NewServerDeleteServerOK() *ServerDeleteServerOK

NewServerDeleteServerOK creates a ServerDeleteServerOK with default headers values

func (*ServerDeleteServerOK) Error

func (o *ServerDeleteServerOK) Error() string

type ServerDeleteServerParams

type ServerDeleteServerParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	/* ServerID.

	   Server ID

	   Format: int64
	*/
	ServerID int64

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

ServerDeleteServerParams contains all the parameters to send to the API endpoint

for the server delete server operation.

Typically these are written to a http.Request.

func NewServerDeleteServerParams

func NewServerDeleteServerParams() *ServerDeleteServerParams

NewServerDeleteServerParams creates a new ServerDeleteServerParams 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 NewServerDeleteServerParamsWithContext

func NewServerDeleteServerParamsWithContext(ctx context.Context) *ServerDeleteServerParams

NewServerDeleteServerParamsWithContext creates a new ServerDeleteServerParams object with the ability to set a context for a request.

func NewServerDeleteServerParamsWithHTTPClient

func NewServerDeleteServerParamsWithHTTPClient(client *http.Client) *ServerDeleteServerParams

NewServerDeleteServerParamsWithHTTPClient creates a new ServerDeleteServerParams object with the ability to set a custom HTTPClient for a request.

func NewServerDeleteServerParamsWithTimeout

func NewServerDeleteServerParamsWithTimeout(timeout time.Duration) *ServerDeleteServerParams

NewServerDeleteServerParamsWithTimeout creates a new ServerDeleteServerParams object with the ability to set a timeout on a request.

func (*ServerDeleteServerParams) SetAuthorization

func (o *ServerDeleteServerParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server delete server params

func (*ServerDeleteServerParams) SetContext

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

SetContext adds the context to the server delete server params

func (*ServerDeleteServerParams) SetDefaults

func (o *ServerDeleteServerParams) SetDefaults()

SetDefaults hydrates default values in the server delete server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerDeleteServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server delete server params

func (*ServerDeleteServerParams) SetServerID

func (o *ServerDeleteServerParams) SetServerID(serverID int64)

SetServerID adds the serverId to the server delete server params

func (*ServerDeleteServerParams) SetTimeout

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

SetTimeout adds the timeout to the server delete server params

func (*ServerDeleteServerParams) WithAuthorization

func (o *ServerDeleteServerParams) WithAuthorization(authorization *string) *ServerDeleteServerParams

WithAuthorization adds the authorization to the server delete server params

func (*ServerDeleteServerParams) WithContext

WithContext adds the context to the server delete server params

func (*ServerDeleteServerParams) WithDefaults

WithDefaults hydrates default values in the server delete server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerDeleteServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the server delete server params

func (*ServerDeleteServerParams) WithServerID

func (o *ServerDeleteServerParams) WithServerID(serverID int64) *ServerDeleteServerParams

WithServerID adds the serverID to the server delete server params

func (*ServerDeleteServerParams) WithTimeout

WithTimeout adds the timeout to the server delete server params

func (*ServerDeleteServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerDeleteServerReader

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

ServerDeleteServerReader is a Reader for the ServerDeleteServer structure.

func (*ServerDeleteServerReader) ReadResponse

func (o *ServerDeleteServerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServerGetServerDetailByUUIDOK

type ServerGetServerDetailByUUIDOK struct {
	Payload *models.ServerGetServerDetailByUUIDResponseBody
}
ServerGetServerDetailByUUIDOK describes a response with status code 200, with default header values.

OK response.

func NewServerGetServerDetailByUUIDOK

func NewServerGetServerDetailByUUIDOK() *ServerGetServerDetailByUUIDOK

NewServerGetServerDetailByUUIDOK creates a ServerGetServerDetailByUUIDOK with default headers values

func (*ServerGetServerDetailByUUIDOK) Error

func (*ServerGetServerDetailByUUIDOK) GetPayload

type ServerGetServerDetailByUUIDParams

type ServerGetServerDetailByUUIDParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	/* ServerUUID.

	   Server UUID
	*/
	ServerUUID string

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

ServerGetServerDetailByUUIDParams contains all the parameters to send to the API endpoint

for the server get server detail by UUID operation.

Typically these are written to a http.Request.

func NewServerGetServerDetailByUUIDParams

func NewServerGetServerDetailByUUIDParams() *ServerGetServerDetailByUUIDParams

NewServerGetServerDetailByUUIDParams creates a new ServerGetServerDetailByUUIDParams 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 NewServerGetServerDetailByUUIDParamsWithContext

func NewServerGetServerDetailByUUIDParamsWithContext(ctx context.Context) *ServerGetServerDetailByUUIDParams

NewServerGetServerDetailByUUIDParamsWithContext creates a new ServerGetServerDetailByUUIDParams object with the ability to set a context for a request.

func NewServerGetServerDetailByUUIDParamsWithHTTPClient

func NewServerGetServerDetailByUUIDParamsWithHTTPClient(client *http.Client) *ServerGetServerDetailByUUIDParams

NewServerGetServerDetailByUUIDParamsWithHTTPClient creates a new ServerGetServerDetailByUUIDParams object with the ability to set a custom HTTPClient for a request.

func NewServerGetServerDetailByUUIDParamsWithTimeout

func NewServerGetServerDetailByUUIDParamsWithTimeout(timeout time.Duration) *ServerGetServerDetailByUUIDParams

NewServerGetServerDetailByUUIDParamsWithTimeout creates a new ServerGetServerDetailByUUIDParams object with the ability to set a timeout on a request.

func (*ServerGetServerDetailByUUIDParams) SetAuthorization

func (o *ServerGetServerDetailByUUIDParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) SetContext

SetContext adds the context to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) SetDefaults

func (o *ServerGetServerDetailByUUIDParams) SetDefaults()

SetDefaults hydrates default values in the server get server detail by UUID params (not the query body).

All values with no default are reset to their zero value.

func (*ServerGetServerDetailByUUIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) SetServerUUID

func (o *ServerGetServerDetailByUUIDParams) SetServerUUID(serverUUID string)

SetServerUUID adds the serverUuid to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) SetTimeout

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

SetTimeout adds the timeout to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) WithAuthorization

func (o *ServerGetServerDetailByUUIDParams) WithAuthorization(authorization *string) *ServerGetServerDetailByUUIDParams

WithAuthorization adds the authorization to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) WithContext

WithContext adds the context to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) WithDefaults

WithDefaults hydrates default values in the server get server detail by UUID params (not the query body).

All values with no default are reset to their zero value.

func (*ServerGetServerDetailByUUIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) WithServerUUID

WithServerUUID adds the serverUUID to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) WithTimeout

WithTimeout adds the timeout to the server get server detail by UUID params

func (*ServerGetServerDetailByUUIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerGetServerDetailByUUIDReader

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

ServerGetServerDetailByUUIDReader is a Reader for the ServerGetServerDetailByUUID structure.

func (*ServerGetServerDetailByUUIDReader) ReadResponse

func (o *ServerGetServerDetailByUUIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServerGetServerDetailOK

type ServerGetServerDetailOK struct {
	Payload *models.ServerGetServerDetailResponseBody
}
ServerGetServerDetailOK describes a response with status code 200, with default header values.

OK response.

func NewServerGetServerDetailOK

func NewServerGetServerDetailOK() *ServerGetServerDetailOK

NewServerGetServerDetailOK creates a ServerGetServerDetailOK with default headers values

func (*ServerGetServerDetailOK) Error

func (o *ServerGetServerDetailOK) Error() string

func (*ServerGetServerDetailOK) GetPayload

type ServerGetServerDetailParams

type ServerGetServerDetailParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	/* ServerID.

	   Server ID

	   Format: int64
	*/
	ServerID int64

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

ServerGetServerDetailParams contains all the parameters to send to the API endpoint

for the server get server detail operation.

Typically these are written to a http.Request.

func NewServerGetServerDetailParams

func NewServerGetServerDetailParams() *ServerGetServerDetailParams

NewServerGetServerDetailParams creates a new ServerGetServerDetailParams 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 NewServerGetServerDetailParamsWithContext

func NewServerGetServerDetailParamsWithContext(ctx context.Context) *ServerGetServerDetailParams

NewServerGetServerDetailParamsWithContext creates a new ServerGetServerDetailParams object with the ability to set a context for a request.

func NewServerGetServerDetailParamsWithHTTPClient

func NewServerGetServerDetailParamsWithHTTPClient(client *http.Client) *ServerGetServerDetailParams

NewServerGetServerDetailParamsWithHTTPClient creates a new ServerGetServerDetailParams object with the ability to set a custom HTTPClient for a request.

func NewServerGetServerDetailParamsWithTimeout

func NewServerGetServerDetailParamsWithTimeout(timeout time.Duration) *ServerGetServerDetailParams

NewServerGetServerDetailParamsWithTimeout creates a new ServerGetServerDetailParams object with the ability to set a timeout on a request.

func (*ServerGetServerDetailParams) SetAuthorization

func (o *ServerGetServerDetailParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server get server detail params

func (*ServerGetServerDetailParams) SetContext

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

SetContext adds the context to the server get server detail params

func (*ServerGetServerDetailParams) SetDefaults

func (o *ServerGetServerDetailParams) SetDefaults()

SetDefaults hydrates default values in the server get server detail params (not the query body).

All values with no default are reset to their zero value.

func (*ServerGetServerDetailParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server get server detail params

func (*ServerGetServerDetailParams) SetServerID

func (o *ServerGetServerDetailParams) SetServerID(serverID int64)

SetServerID adds the serverId to the server get server detail params

func (*ServerGetServerDetailParams) SetTimeout

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

SetTimeout adds the timeout to the server get server detail params

func (*ServerGetServerDetailParams) WithAuthorization

func (o *ServerGetServerDetailParams) WithAuthorization(authorization *string) *ServerGetServerDetailParams

WithAuthorization adds the authorization to the server get server detail params

func (*ServerGetServerDetailParams) WithContext

WithContext adds the context to the server get server detail params

func (*ServerGetServerDetailParams) WithDefaults

WithDefaults hydrates default values in the server get server detail params (not the query body).

All values with no default are reset to their zero value.

func (*ServerGetServerDetailParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the server get server detail params

func (*ServerGetServerDetailParams) WithServerID

WithServerID adds the serverID to the server get server detail params

func (*ServerGetServerDetailParams) WithTimeout

WithTimeout adds the timeout to the server get server detail params

func (*ServerGetServerDetailParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerGetServerDetailReader

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

ServerGetServerDetailReader is a Reader for the ServerGetServerDetail structure.

func (*ServerGetServerDetailReader) ReadResponse

func (o *ServerGetServerDetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServerGetServerListOK

type ServerGetServerListOK struct {
	Payload *models.ServerGetServerListResponseBody
}
ServerGetServerListOK describes a response with status code 200, with default header values.

OK response.

func NewServerGetServerListOK

func NewServerGetServerListOK() *ServerGetServerListOK

NewServerGetServerListOK creates a ServerGetServerListOK with default headers values

func (*ServerGetServerListOK) Error

func (o *ServerGetServerListOK) Error() string

func (*ServerGetServerListOK) GetPayload

type ServerGetServerListParams

type ServerGetServerListParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	/* FilterCveID.

	   CveID filter
	*/
	FilterCveID *string

	/* FilterRoleID.

	   ServerRoleID filter
	*/
	FilterRoleID *int64

	/* FilterTagName.

	   ServerTagName filter
	*/
	FilterTagName *string

	/* Limit.

	   Limit

	   Default: 20
	*/
	Limit *int64

	/* Offset.

	   Offset
	*/
	Offset *int64

	/* Page.

	   Page Number

	   Default: 1
	*/
	Page *int64

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

ServerGetServerListParams contains all the parameters to send to the API endpoint

for the server get server list operation.

Typically these are written to a http.Request.

func NewServerGetServerListParams

func NewServerGetServerListParams() *ServerGetServerListParams

NewServerGetServerListParams creates a new ServerGetServerListParams 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 NewServerGetServerListParamsWithContext

func NewServerGetServerListParamsWithContext(ctx context.Context) *ServerGetServerListParams

NewServerGetServerListParamsWithContext creates a new ServerGetServerListParams object with the ability to set a context for a request.

func NewServerGetServerListParamsWithHTTPClient

func NewServerGetServerListParamsWithHTTPClient(client *http.Client) *ServerGetServerListParams

NewServerGetServerListParamsWithHTTPClient creates a new ServerGetServerListParams object with the ability to set a custom HTTPClient for a request.

func NewServerGetServerListParamsWithTimeout

func NewServerGetServerListParamsWithTimeout(timeout time.Duration) *ServerGetServerListParams

NewServerGetServerListParamsWithTimeout creates a new ServerGetServerListParams object with the ability to set a timeout on a request.

func (*ServerGetServerListParams) SetAuthorization

func (o *ServerGetServerListParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server get server list params

func (*ServerGetServerListParams) SetContext

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

SetContext adds the context to the server get server list params

func (*ServerGetServerListParams) SetDefaults

func (o *ServerGetServerListParams) SetDefaults()

SetDefaults hydrates default values in the server get server list params (not the query body).

All values with no default are reset to their zero value.

func (*ServerGetServerListParams) SetFilterCveID

func (o *ServerGetServerListParams) SetFilterCveID(filterCveID *string)

SetFilterCveID adds the filterCveId to the server get server list params

func (*ServerGetServerListParams) SetFilterRoleID

func (o *ServerGetServerListParams) SetFilterRoleID(filterRoleID *int64)

SetFilterRoleID adds the filterRoleId to the server get server list params

func (*ServerGetServerListParams) SetFilterTagName

func (o *ServerGetServerListParams) SetFilterTagName(filterTagName *string)

SetFilterTagName adds the filterTagName to the server get server list params

func (*ServerGetServerListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server get server list params

func (*ServerGetServerListParams) SetLimit

func (o *ServerGetServerListParams) SetLimit(limit *int64)

SetLimit adds the limit to the server get server list params

func (*ServerGetServerListParams) SetOffset

func (o *ServerGetServerListParams) SetOffset(offset *int64)

SetOffset adds the offset to the server get server list params

func (*ServerGetServerListParams) SetPage

func (o *ServerGetServerListParams) SetPage(page *int64)

SetPage adds the page to the server get server list params

func (*ServerGetServerListParams) SetTimeout

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

SetTimeout adds the timeout to the server get server list params

func (*ServerGetServerListParams) WithAuthorization

func (o *ServerGetServerListParams) WithAuthorization(authorization *string) *ServerGetServerListParams

WithAuthorization adds the authorization to the server get server list params

func (*ServerGetServerListParams) WithContext

WithContext adds the context to the server get server list params

func (*ServerGetServerListParams) WithDefaults

WithDefaults hydrates default values in the server get server list params (not the query body).

All values with no default are reset to their zero value.

func (*ServerGetServerListParams) WithFilterCveID

func (o *ServerGetServerListParams) WithFilterCveID(filterCveID *string) *ServerGetServerListParams

WithFilterCveID adds the filterCveID to the server get server list params

func (*ServerGetServerListParams) WithFilterRoleID

func (o *ServerGetServerListParams) WithFilterRoleID(filterRoleID *int64) *ServerGetServerListParams

WithFilterRoleID adds the filterRoleID to the server get server list params

func (*ServerGetServerListParams) WithFilterTagName

func (o *ServerGetServerListParams) WithFilterTagName(filterTagName *string) *ServerGetServerListParams

WithFilterTagName adds the filterTagName to the server get server list params

func (*ServerGetServerListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the server get server list params

func (*ServerGetServerListParams) WithLimit

WithLimit adds the limit to the server get server list params

func (*ServerGetServerListParams) WithOffset

WithOffset adds the offset to the server get server list params

func (*ServerGetServerListParams) WithPage

WithPage adds the page to the server get server list params

func (*ServerGetServerListParams) WithTimeout

WithTimeout adds the timeout to the server get server list params

func (*ServerGetServerListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerGetServerListReader

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

ServerGetServerListReader is a Reader for the ServerGetServerList structure.

func (*ServerGetServerListReader) ReadResponse

func (o *ServerGetServerListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServerUpdatePkgPasteServerOK

type ServerUpdatePkgPasteServerOK struct {
}
ServerUpdatePkgPasteServerOK describes a response with status code 200, with default header values.

OK response.

func NewServerUpdatePkgPasteServerOK

func NewServerUpdatePkgPasteServerOK() *ServerUpdatePkgPasteServerOK

NewServerUpdatePkgPasteServerOK creates a ServerUpdatePkgPasteServerOK with default headers values

func (*ServerUpdatePkgPasteServerOK) Error

type ServerUpdatePkgPasteServerParams

type ServerUpdatePkgPasteServerParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	// UpdatePkgPasteServerRequestBody.
	UpdatePkgPasteServerRequestBody *models.ServerUpdatePkgPasteServerRequestBody

	/* ServerID.

	   Server ID

	   Format: int64
	*/
	ServerID int64

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

ServerUpdatePkgPasteServerParams contains all the parameters to send to the API endpoint

for the server update pkg paste server operation.

Typically these are written to a http.Request.

func NewServerUpdatePkgPasteServerParams

func NewServerUpdatePkgPasteServerParams() *ServerUpdatePkgPasteServerParams

NewServerUpdatePkgPasteServerParams creates a new ServerUpdatePkgPasteServerParams 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 NewServerUpdatePkgPasteServerParamsWithContext

func NewServerUpdatePkgPasteServerParamsWithContext(ctx context.Context) *ServerUpdatePkgPasteServerParams

NewServerUpdatePkgPasteServerParamsWithContext creates a new ServerUpdatePkgPasteServerParams object with the ability to set a context for a request.

func NewServerUpdatePkgPasteServerParamsWithHTTPClient

func NewServerUpdatePkgPasteServerParamsWithHTTPClient(client *http.Client) *ServerUpdatePkgPasteServerParams

NewServerUpdatePkgPasteServerParamsWithHTTPClient creates a new ServerUpdatePkgPasteServerParams object with the ability to set a custom HTTPClient for a request.

func NewServerUpdatePkgPasteServerParamsWithTimeout

func NewServerUpdatePkgPasteServerParamsWithTimeout(timeout time.Duration) *ServerUpdatePkgPasteServerParams

NewServerUpdatePkgPasteServerParamsWithTimeout creates a new ServerUpdatePkgPasteServerParams object with the ability to set a timeout on a request.

func (*ServerUpdatePkgPasteServerParams) SetAuthorization

func (o *ServerUpdatePkgPasteServerParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) SetContext

SetContext adds the context to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) SetDefaults

func (o *ServerUpdatePkgPasteServerParams) SetDefaults()

SetDefaults hydrates default values in the server update pkg paste server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerUpdatePkgPasteServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) SetServerID

func (o *ServerUpdatePkgPasteServerParams) SetServerID(serverID int64)

SetServerID adds the serverId to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) SetTimeout

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

SetTimeout adds the timeout to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) SetUpdatePkgPasteServerRequestBody

func (o *ServerUpdatePkgPasteServerParams) SetUpdatePkgPasteServerRequestBody(updatePkgPasteServerRequestBody *models.ServerUpdatePkgPasteServerRequestBody)

SetUpdatePkgPasteServerRequestBody adds the updatePkgPasteServerRequestBody to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WithAuthorization

func (o *ServerUpdatePkgPasteServerParams) WithAuthorization(authorization *string) *ServerUpdatePkgPasteServerParams

WithAuthorization adds the authorization to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WithContext

WithContext adds the context to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WithDefaults

WithDefaults hydrates default values in the server update pkg paste server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerUpdatePkgPasteServerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WithServerID

WithServerID adds the serverID to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WithTimeout

WithTimeout adds the timeout to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WithUpdatePkgPasteServerRequestBody

func (o *ServerUpdatePkgPasteServerParams) WithUpdatePkgPasteServerRequestBody(updatePkgPasteServerRequestBody *models.ServerUpdatePkgPasteServerRequestBody) *ServerUpdatePkgPasteServerParams

WithUpdatePkgPasteServerRequestBody adds the updatePkgPasteServerRequestBody to the server update pkg paste server params

func (*ServerUpdatePkgPasteServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerUpdatePkgPasteServerReader

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

ServerUpdatePkgPasteServerReader is a Reader for the ServerUpdatePkgPasteServer structure.

func (*ServerUpdatePkgPasteServerReader) ReadResponse

func (o *ServerUpdatePkgPasteServerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServerUpdateServerOK

type ServerUpdateServerOK struct {
	Payload *models.ServerUpdateServerResponseBody
}
ServerUpdateServerOK describes a response with status code 200, with default header values.

OK response.

func NewServerUpdateServerOK

func NewServerUpdateServerOK() *ServerUpdateServerOK

NewServerUpdateServerOK creates a ServerUpdateServerOK with default headers values

func (*ServerUpdateServerOK) Error

func (o *ServerUpdateServerOK) Error() string

func (*ServerUpdateServerOK) GetPayload

type ServerUpdateServerParams

type ServerUpdateServerParams struct {

	/* Authorization.

	   api key auth
	*/
	Authorization *string

	// UpdateServerRequestBody.
	UpdateServerRequestBody *models.ServerUpdateServerRequestBody

	/* ServerID.

	   Server ID

	   Format: int64
	*/
	ServerID int64

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

ServerUpdateServerParams contains all the parameters to send to the API endpoint

for the server update server operation.

Typically these are written to a http.Request.

func NewServerUpdateServerParams

func NewServerUpdateServerParams() *ServerUpdateServerParams

NewServerUpdateServerParams creates a new ServerUpdateServerParams 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 NewServerUpdateServerParamsWithContext

func NewServerUpdateServerParamsWithContext(ctx context.Context) *ServerUpdateServerParams

NewServerUpdateServerParamsWithContext creates a new ServerUpdateServerParams object with the ability to set a context for a request.

func NewServerUpdateServerParamsWithHTTPClient

func NewServerUpdateServerParamsWithHTTPClient(client *http.Client) *ServerUpdateServerParams

NewServerUpdateServerParamsWithHTTPClient creates a new ServerUpdateServerParams object with the ability to set a custom HTTPClient for a request.

func NewServerUpdateServerParamsWithTimeout

func NewServerUpdateServerParamsWithTimeout(timeout time.Duration) *ServerUpdateServerParams

NewServerUpdateServerParamsWithTimeout creates a new ServerUpdateServerParams object with the ability to set a timeout on a request.

func (*ServerUpdateServerParams) SetAuthorization

func (o *ServerUpdateServerParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the server update server params

func (*ServerUpdateServerParams) SetContext

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

SetContext adds the context to the server update server params

func (*ServerUpdateServerParams) SetDefaults

func (o *ServerUpdateServerParams) SetDefaults()

SetDefaults hydrates default values in the server update server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerUpdateServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server update server params

func (*ServerUpdateServerParams) SetServerID

func (o *ServerUpdateServerParams) SetServerID(serverID int64)

SetServerID adds the serverId to the server update server params

func (*ServerUpdateServerParams) SetTimeout

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

SetTimeout adds the timeout to the server update server params

func (*ServerUpdateServerParams) SetUpdateServerRequestBody

func (o *ServerUpdateServerParams) SetUpdateServerRequestBody(updateServerRequestBody *models.ServerUpdateServerRequestBody)

SetUpdateServerRequestBody adds the updateServerRequestBody to the server update server params

func (*ServerUpdateServerParams) WithAuthorization

func (o *ServerUpdateServerParams) WithAuthorization(authorization *string) *ServerUpdateServerParams

WithAuthorization adds the authorization to the server update server params

func (*ServerUpdateServerParams) WithContext

WithContext adds the context to the server update server params

func (*ServerUpdateServerParams) WithDefaults

WithDefaults hydrates default values in the server update server params (not the query body).

All values with no default are reset to their zero value.

func (*ServerUpdateServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the server update server params

func (*ServerUpdateServerParams) WithServerID

func (o *ServerUpdateServerParams) WithServerID(serverID int64) *ServerUpdateServerParams

WithServerID adds the serverID to the server update server params

func (*ServerUpdateServerParams) WithTimeout

WithTimeout adds the timeout to the server update server params

func (*ServerUpdateServerParams) WithUpdateServerRequestBody

func (o *ServerUpdateServerParams) WithUpdateServerRequestBody(updateServerRequestBody *models.ServerUpdateServerRequestBody) *ServerUpdateServerParams

WithUpdateServerRequestBody adds the updateServerRequestBody to the server update server params

func (*ServerUpdateServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerUpdateServerReader

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

ServerUpdateServerReader is a Reader for the ServerUpdateServer structure.

func (*ServerUpdateServerReader) ReadResponse

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