services

package
v2.9.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ListServicesBodyServiceTypeSERVICETYPEINVALID captures enum value "SERVICE_TYPE_INVALID"
	ListServicesBodyServiceTypeSERVICETYPEINVALID string = "SERVICE_TYPE_INVALID"

	// ListServicesBodyServiceTypeMYSQLSERVICE captures enum value "MYSQL_SERVICE"
	ListServicesBodyServiceTypeMYSQLSERVICE string = "MYSQL_SERVICE"

	// ListServicesBodyServiceTypeMONGODBSERVICE captures enum value "MONGODB_SERVICE"
	ListServicesBodyServiceTypeMONGODBSERVICE string = "MONGODB_SERVICE"

	// ListServicesBodyServiceTypePOSTGRESQLSERVICE captures enum value "POSTGRESQL_SERVICE"
	ListServicesBodyServiceTypePOSTGRESQLSERVICE string = "POSTGRESQL_SERVICE"

	// ListServicesBodyServiceTypePROXYSQLSERVICE captures enum value "PROXYSQL_SERVICE"
	ListServicesBodyServiceTypePROXYSQLSERVICE string = "PROXYSQL_SERVICE"

	// ListServicesBodyServiceTypeEXTERNALSERVICE captures enum value "EXTERNAL_SERVICE"
	ListServicesBodyServiceTypeEXTERNALSERVICE string = "EXTERNAL_SERVICE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddExternalServiceBody

type AddExternalServiceBody struct {

	// Unique across all Services user-defined name. Required.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs. Required.
	NodeID string `json:"node_id,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddExternalServiceBody add external service body swagger:model AddExternalServiceBody

func (*AddExternalServiceBody) MarshalBinary

func (o *AddExternalServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddExternalServiceBody) UnmarshalBinary

func (o *AddExternalServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddExternalServiceBody) Validate

func (o *AddExternalServiceBody) Validate(formats strfmt.Registry) error

Validate validates this add external service body

type AddExternalServiceDefault

type AddExternalServiceDefault struct {
	Payload *AddExternalServiceDefaultBody
	// contains filtered or unexported fields
}

AddExternalServiceDefault handles this case with default header values.

An unexpected error response

func NewAddExternalServiceDefault

func NewAddExternalServiceDefault(code int) *AddExternalServiceDefault

NewAddExternalServiceDefault creates a AddExternalServiceDefault with default headers values

func (*AddExternalServiceDefault) Code

func (o *AddExternalServiceDefault) Code() int

Code gets the status code for the add external service default response

func (*AddExternalServiceDefault) Error

func (o *AddExternalServiceDefault) Error() string

func (*AddExternalServiceDefault) GetPayload

type AddExternalServiceDefaultBody

type AddExternalServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddExternalServiceDefaultBody add external service default body swagger:model AddExternalServiceDefaultBody

func (*AddExternalServiceDefaultBody) MarshalBinary

func (o *AddExternalServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddExternalServiceDefaultBody) UnmarshalBinary

func (o *AddExternalServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddExternalServiceDefaultBody) Validate

func (o *AddExternalServiceDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this add external service default body

type AddExternalServiceOK

type AddExternalServiceOK struct {
	Payload *AddExternalServiceOKBody
}

AddExternalServiceOK handles this case with default header values.

A successful response.

func NewAddExternalServiceOK

func NewAddExternalServiceOK() *AddExternalServiceOK

NewAddExternalServiceOK creates a AddExternalServiceOK with default headers values

func (*AddExternalServiceOK) Error

func (o *AddExternalServiceOK) Error() string

func (*AddExternalServiceOK) GetPayload

type AddExternalServiceOKBody

type AddExternalServiceOKBody struct {

	// external
	External *AddExternalServiceOKBodyExternal `json:"external,omitempty"`
}

AddExternalServiceOKBody add external service OK body swagger:model AddExternalServiceOKBody

func (*AddExternalServiceOKBody) MarshalBinary

func (o *AddExternalServiceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddExternalServiceOKBody) UnmarshalBinary

func (o *AddExternalServiceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddExternalServiceOKBody) Validate

func (o *AddExternalServiceOKBody) Validate(formats strfmt.Registry) error

Validate validates this add external service OK body

type AddExternalServiceOKBodyExternal

type AddExternalServiceOKBodyExternal struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this service instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddExternalServiceOKBodyExternal ExternalService represents a generic External service instance. swagger:model AddExternalServiceOKBodyExternal

func (*AddExternalServiceOKBodyExternal) MarshalBinary

func (o *AddExternalServiceOKBodyExternal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddExternalServiceOKBodyExternal) UnmarshalBinary

func (o *AddExternalServiceOKBodyExternal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddExternalServiceOKBodyExternal) Validate

Validate validates this add external service OK body external

type AddExternalServiceParams

type AddExternalServiceParams struct {

	/*Body*/
	Body AddExternalServiceBody

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

AddExternalServiceParams contains all the parameters to send to the API endpoint for the add external service operation typically these are written to a http.Request

func NewAddExternalServiceParams

func NewAddExternalServiceParams() *AddExternalServiceParams

NewAddExternalServiceParams creates a new AddExternalServiceParams object with the default values initialized.

func NewAddExternalServiceParamsWithContext

func NewAddExternalServiceParamsWithContext(ctx context.Context) *AddExternalServiceParams

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

func NewAddExternalServiceParamsWithHTTPClient

func NewAddExternalServiceParamsWithHTTPClient(client *http.Client) *AddExternalServiceParams

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

func NewAddExternalServiceParamsWithTimeout

func NewAddExternalServiceParamsWithTimeout(timeout time.Duration) *AddExternalServiceParams

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

func (*AddExternalServiceParams) SetBody

SetBody adds the body to the add external service params

func (*AddExternalServiceParams) SetContext

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

SetContext adds the context to the add external service params

func (*AddExternalServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add external service params

func (*AddExternalServiceParams) SetTimeout

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

SetTimeout adds the timeout to the add external service params

func (*AddExternalServiceParams) WithBody

WithBody adds the body to the add external service params

func (*AddExternalServiceParams) WithContext

WithContext adds the context to the add external service params

func (*AddExternalServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add external service params

func (*AddExternalServiceParams) WithTimeout

WithTimeout adds the timeout to the add external service params

func (*AddExternalServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddExternalServiceReader

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

AddExternalServiceReader is a Reader for the AddExternalService structure.

func (*AddExternalServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddMongoDBServiceBody

type AddMongoDBServiceBody struct {

	// Unique across all Services user-defined name. Required.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs. Required.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddMongoDBServiceBody add mongo DB service body swagger:model AddMongoDBServiceBody

func (*AddMongoDBServiceBody) MarshalBinary

func (o *AddMongoDBServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMongoDBServiceBody) UnmarshalBinary

func (o *AddMongoDBServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMongoDBServiceBody) Validate

func (o *AddMongoDBServiceBody) Validate(formats strfmt.Registry) error

Validate validates this add mongo DB service body

type AddMongoDBServiceDefault

type AddMongoDBServiceDefault struct {
	Payload *AddMongoDBServiceDefaultBody
	// contains filtered or unexported fields
}

AddMongoDBServiceDefault handles this case with default header values.

An unexpected error response

func NewAddMongoDBServiceDefault

func NewAddMongoDBServiceDefault(code int) *AddMongoDBServiceDefault

NewAddMongoDBServiceDefault creates a AddMongoDBServiceDefault with default headers values

func (*AddMongoDBServiceDefault) Code

func (o *AddMongoDBServiceDefault) Code() int

Code gets the status code for the add mongo DB service default response

func (*AddMongoDBServiceDefault) Error

func (o *AddMongoDBServiceDefault) Error() string

func (*AddMongoDBServiceDefault) GetPayload

type AddMongoDBServiceDefaultBody

type AddMongoDBServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddMongoDBServiceDefaultBody add mongo DB service default body swagger:model AddMongoDBServiceDefaultBody

func (*AddMongoDBServiceDefaultBody) MarshalBinary

func (o *AddMongoDBServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMongoDBServiceDefaultBody) UnmarshalBinary

func (o *AddMongoDBServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMongoDBServiceDefaultBody) Validate

func (o *AddMongoDBServiceDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this add mongo DB service default body

type AddMongoDBServiceOK

type AddMongoDBServiceOK struct {
	Payload *AddMongoDBServiceOKBody
}

AddMongoDBServiceOK handles this case with default header values.

A successful response.

func NewAddMongoDBServiceOK

func NewAddMongoDBServiceOK() *AddMongoDBServiceOK

NewAddMongoDBServiceOK creates a AddMongoDBServiceOK with default headers values

func (*AddMongoDBServiceOK) Error

func (o *AddMongoDBServiceOK) Error() string

func (*AddMongoDBServiceOK) GetPayload

type AddMongoDBServiceOKBody

type AddMongoDBServiceOKBody struct {

	// mongodb
	Mongodb *AddMongoDBServiceOKBodyMongodb `json:"mongodb,omitempty"`
}

AddMongoDBServiceOKBody add mongo DB service OK body swagger:model AddMongoDBServiceOKBody

func (*AddMongoDBServiceOKBody) MarshalBinary

func (o *AddMongoDBServiceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMongoDBServiceOKBody) UnmarshalBinary

func (o *AddMongoDBServiceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMongoDBServiceOKBody) Validate

func (o *AddMongoDBServiceOKBody) Validate(formats strfmt.Registry) error

Validate validates this add mongo DB service OK body

type AddMongoDBServiceOKBodyMongodb

type AddMongoDBServiceOKBodyMongodb struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddMongoDBServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model AddMongoDBServiceOKBodyMongodb

func (*AddMongoDBServiceOKBodyMongodb) MarshalBinary

func (o *AddMongoDBServiceOKBodyMongodb) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMongoDBServiceOKBodyMongodb) UnmarshalBinary

func (o *AddMongoDBServiceOKBodyMongodb) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMongoDBServiceOKBodyMongodb) Validate

func (o *AddMongoDBServiceOKBodyMongodb) Validate(formats strfmt.Registry) error

Validate validates this add mongo DB service OK body mongodb

type AddMongoDBServiceParams

type AddMongoDBServiceParams struct {

	/*Body*/
	Body AddMongoDBServiceBody

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

AddMongoDBServiceParams contains all the parameters to send to the API endpoint for the add mongo DB service operation typically these are written to a http.Request

func NewAddMongoDBServiceParams

func NewAddMongoDBServiceParams() *AddMongoDBServiceParams

NewAddMongoDBServiceParams creates a new AddMongoDBServiceParams object with the default values initialized.

func NewAddMongoDBServiceParamsWithContext

func NewAddMongoDBServiceParamsWithContext(ctx context.Context) *AddMongoDBServiceParams

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

func NewAddMongoDBServiceParamsWithHTTPClient

func NewAddMongoDBServiceParamsWithHTTPClient(client *http.Client) *AddMongoDBServiceParams

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

func NewAddMongoDBServiceParamsWithTimeout

func NewAddMongoDBServiceParamsWithTimeout(timeout time.Duration) *AddMongoDBServiceParams

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

func (*AddMongoDBServiceParams) SetBody

SetBody adds the body to the add mongo DB service params

func (*AddMongoDBServiceParams) SetContext

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

SetContext adds the context to the add mongo DB service params

func (*AddMongoDBServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add mongo DB service params

func (*AddMongoDBServiceParams) SetTimeout

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

SetTimeout adds the timeout to the add mongo DB service params

func (*AddMongoDBServiceParams) WithBody

WithBody adds the body to the add mongo DB service params

func (*AddMongoDBServiceParams) WithContext

WithContext adds the context to the add mongo DB service params

func (*AddMongoDBServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add mongo DB service params

func (*AddMongoDBServiceParams) WithTimeout

WithTimeout adds the timeout to the add mongo DB service params

func (*AddMongoDBServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddMongoDBServiceReader

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

AddMongoDBServiceReader is a Reader for the AddMongoDBService structure.

func (*AddMongoDBServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddMySQLServiceBody

type AddMySQLServiceBody struct {

	// Unique across all Services user-defined name. Required.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs. Required.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddMySQLServiceBody add my SQL service body swagger:model AddMySQLServiceBody

func (*AddMySQLServiceBody) MarshalBinary

func (o *AddMySQLServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMySQLServiceBody) UnmarshalBinary

func (o *AddMySQLServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMySQLServiceBody) Validate

func (o *AddMySQLServiceBody) Validate(formats strfmt.Registry) error

Validate validates this add my SQL service body

type AddMySQLServiceDefault

type AddMySQLServiceDefault struct {
	Payload *AddMySQLServiceDefaultBody
	// contains filtered or unexported fields
}

AddMySQLServiceDefault handles this case with default header values.

An unexpected error response

func NewAddMySQLServiceDefault

func NewAddMySQLServiceDefault(code int) *AddMySQLServiceDefault

NewAddMySQLServiceDefault creates a AddMySQLServiceDefault with default headers values

func (*AddMySQLServiceDefault) Code

func (o *AddMySQLServiceDefault) Code() int

Code gets the status code for the add my SQL service default response

func (*AddMySQLServiceDefault) Error

func (o *AddMySQLServiceDefault) Error() string

func (*AddMySQLServiceDefault) GetPayload

type AddMySQLServiceDefaultBody

type AddMySQLServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddMySQLServiceDefaultBody add my SQL service default body swagger:model AddMySQLServiceDefaultBody

func (*AddMySQLServiceDefaultBody) MarshalBinary

func (o *AddMySQLServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMySQLServiceDefaultBody) UnmarshalBinary

func (o *AddMySQLServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMySQLServiceDefaultBody) Validate

func (o *AddMySQLServiceDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this add my SQL service default body

type AddMySQLServiceOK

type AddMySQLServiceOK struct {
	Payload *AddMySQLServiceOKBody
}

AddMySQLServiceOK handles this case with default header values.

A successful response.

func NewAddMySQLServiceOK

func NewAddMySQLServiceOK() *AddMySQLServiceOK

NewAddMySQLServiceOK creates a AddMySQLServiceOK with default headers values

func (*AddMySQLServiceOK) Error

func (o *AddMySQLServiceOK) Error() string

func (*AddMySQLServiceOK) GetPayload

func (o *AddMySQLServiceOK) GetPayload() *AddMySQLServiceOKBody

type AddMySQLServiceOKBody

type AddMySQLServiceOKBody struct {

	// mysql
	Mysql *AddMySQLServiceOKBodyMysql `json:"mysql,omitempty"`
}

AddMySQLServiceOKBody add my SQL service OK body swagger:model AddMySQLServiceOKBody

func (*AddMySQLServiceOKBody) MarshalBinary

func (o *AddMySQLServiceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMySQLServiceOKBody) UnmarshalBinary

func (o *AddMySQLServiceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMySQLServiceOKBody) Validate

func (o *AddMySQLServiceOKBody) Validate(formats strfmt.Registry) error

Validate validates this add my SQL service OK body

type AddMySQLServiceOKBodyMysql

type AddMySQLServiceOKBodyMysql struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddMySQLServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddMySQLServiceOKBodyMysql

func (*AddMySQLServiceOKBodyMysql) MarshalBinary

func (o *AddMySQLServiceOKBodyMysql) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddMySQLServiceOKBodyMysql) UnmarshalBinary

func (o *AddMySQLServiceOKBodyMysql) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddMySQLServiceOKBodyMysql) Validate

func (o *AddMySQLServiceOKBodyMysql) Validate(formats strfmt.Registry) error

Validate validates this add my SQL service OK body mysql

type AddMySQLServiceParams

type AddMySQLServiceParams struct {

	/*Body*/
	Body AddMySQLServiceBody

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

AddMySQLServiceParams contains all the parameters to send to the API endpoint for the add my SQL service operation typically these are written to a http.Request

func NewAddMySQLServiceParams

func NewAddMySQLServiceParams() *AddMySQLServiceParams

NewAddMySQLServiceParams creates a new AddMySQLServiceParams object with the default values initialized.

func NewAddMySQLServiceParamsWithContext

func NewAddMySQLServiceParamsWithContext(ctx context.Context) *AddMySQLServiceParams

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

func NewAddMySQLServiceParamsWithHTTPClient

func NewAddMySQLServiceParamsWithHTTPClient(client *http.Client) *AddMySQLServiceParams

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

func NewAddMySQLServiceParamsWithTimeout

func NewAddMySQLServiceParamsWithTimeout(timeout time.Duration) *AddMySQLServiceParams

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

func (*AddMySQLServiceParams) SetBody

func (o *AddMySQLServiceParams) SetBody(body AddMySQLServiceBody)

SetBody adds the body to the add my SQL service params

func (*AddMySQLServiceParams) SetContext

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

SetContext adds the context to the add my SQL service params

func (*AddMySQLServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add my SQL service params

func (*AddMySQLServiceParams) SetTimeout

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

SetTimeout adds the timeout to the add my SQL service params

func (*AddMySQLServiceParams) WithBody

WithBody adds the body to the add my SQL service params

func (*AddMySQLServiceParams) WithContext

WithContext adds the context to the add my SQL service params

func (*AddMySQLServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add my SQL service params

func (*AddMySQLServiceParams) WithTimeout

func (o *AddMySQLServiceParams) WithTimeout(timeout time.Duration) *AddMySQLServiceParams

WithTimeout adds the timeout to the add my SQL service params

func (*AddMySQLServiceParams) WriteToRequest

func (o *AddMySQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddMySQLServiceReader

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

AddMySQLServiceReader is a Reader for the AddMySQLService structure.

func (*AddMySQLServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddPostgreSQLServiceBody

type AddPostgreSQLServiceBody struct {

	// Unique across all Services user-defined name. Required.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs. Required.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddPostgreSQLServiceBody add postgre SQL service body swagger:model AddPostgreSQLServiceBody

func (*AddPostgreSQLServiceBody) MarshalBinary

func (o *AddPostgreSQLServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddPostgreSQLServiceBody) UnmarshalBinary

func (o *AddPostgreSQLServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddPostgreSQLServiceBody) Validate

func (o *AddPostgreSQLServiceBody) Validate(formats strfmt.Registry) error

Validate validates this add postgre SQL service body

type AddPostgreSQLServiceDefault

type AddPostgreSQLServiceDefault struct {
	Payload *AddPostgreSQLServiceDefaultBody
	// contains filtered or unexported fields
}

AddPostgreSQLServiceDefault handles this case with default header values.

An unexpected error response

func NewAddPostgreSQLServiceDefault

func NewAddPostgreSQLServiceDefault(code int) *AddPostgreSQLServiceDefault

NewAddPostgreSQLServiceDefault creates a AddPostgreSQLServiceDefault with default headers values

func (*AddPostgreSQLServiceDefault) Code

func (o *AddPostgreSQLServiceDefault) Code() int

Code gets the status code for the add postgre SQL service default response

func (*AddPostgreSQLServiceDefault) Error

func (*AddPostgreSQLServiceDefault) GetPayload

type AddPostgreSQLServiceDefaultBody

type AddPostgreSQLServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddPostgreSQLServiceDefaultBody add postgre SQL service default body swagger:model AddPostgreSQLServiceDefaultBody

func (*AddPostgreSQLServiceDefaultBody) MarshalBinary

func (o *AddPostgreSQLServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddPostgreSQLServiceDefaultBody) UnmarshalBinary

func (o *AddPostgreSQLServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddPostgreSQLServiceDefaultBody) Validate

Validate validates this add postgre SQL service default body

type AddPostgreSQLServiceOK

type AddPostgreSQLServiceOK struct {
	Payload *AddPostgreSQLServiceOKBody
}

AddPostgreSQLServiceOK handles this case with default header values.

A successful response.

func NewAddPostgreSQLServiceOK

func NewAddPostgreSQLServiceOK() *AddPostgreSQLServiceOK

NewAddPostgreSQLServiceOK creates a AddPostgreSQLServiceOK with default headers values

func (*AddPostgreSQLServiceOK) Error

func (o *AddPostgreSQLServiceOK) Error() string

func (*AddPostgreSQLServiceOK) GetPayload

type AddPostgreSQLServiceOKBody

type AddPostgreSQLServiceOKBody struct {

	// postgresql
	Postgresql *AddPostgreSQLServiceOKBodyPostgresql `json:"postgresql,omitempty"`
}

AddPostgreSQLServiceOKBody add postgre SQL service OK body swagger:model AddPostgreSQLServiceOKBody

func (*AddPostgreSQLServiceOKBody) MarshalBinary

func (o *AddPostgreSQLServiceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddPostgreSQLServiceOKBody) UnmarshalBinary

func (o *AddPostgreSQLServiceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddPostgreSQLServiceOKBody) Validate

func (o *AddPostgreSQLServiceOKBody) Validate(formats strfmt.Registry) error

Validate validates this add postgre SQL service OK body

type AddPostgreSQLServiceOKBodyPostgresql

type AddPostgreSQLServiceOKBodyPostgresql struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddPostgreSQLServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. swagger:model AddPostgreSQLServiceOKBodyPostgresql

func (*AddPostgreSQLServiceOKBodyPostgresql) MarshalBinary

func (o *AddPostgreSQLServiceOKBodyPostgresql) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddPostgreSQLServiceOKBodyPostgresql) UnmarshalBinary

func (o *AddPostgreSQLServiceOKBodyPostgresql) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddPostgreSQLServiceOKBodyPostgresql) Validate

Validate validates this add postgre SQL service OK body postgresql

type AddPostgreSQLServiceParams

type AddPostgreSQLServiceParams struct {

	/*Body*/
	Body AddPostgreSQLServiceBody

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

AddPostgreSQLServiceParams contains all the parameters to send to the API endpoint for the add postgre SQL service operation typically these are written to a http.Request

func NewAddPostgreSQLServiceParams

func NewAddPostgreSQLServiceParams() *AddPostgreSQLServiceParams

NewAddPostgreSQLServiceParams creates a new AddPostgreSQLServiceParams object with the default values initialized.

func NewAddPostgreSQLServiceParamsWithContext

func NewAddPostgreSQLServiceParamsWithContext(ctx context.Context) *AddPostgreSQLServiceParams

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

func NewAddPostgreSQLServiceParamsWithHTTPClient

func NewAddPostgreSQLServiceParamsWithHTTPClient(client *http.Client) *AddPostgreSQLServiceParams

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

func NewAddPostgreSQLServiceParamsWithTimeout

func NewAddPostgreSQLServiceParamsWithTimeout(timeout time.Duration) *AddPostgreSQLServiceParams

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

func (*AddPostgreSQLServiceParams) SetBody

SetBody adds the body to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) SetContext

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

SetContext adds the context to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) SetTimeout

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

SetTimeout adds the timeout to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) WithBody

WithBody adds the body to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) WithContext

WithContext adds the context to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) WithTimeout

WithTimeout adds the timeout to the add postgre SQL service params

func (*AddPostgreSQLServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddPostgreSQLServiceReader

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

AddPostgreSQLServiceReader is a Reader for the AddPostgreSQLService structure.

func (*AddPostgreSQLServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddProxySQLServiceBody

type AddProxySQLServiceBody struct {

	// Unique across all Services user-defined name. Required.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs. Required.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddProxySQLServiceBody add proxy SQL service body swagger:model AddProxySQLServiceBody

func (*AddProxySQLServiceBody) MarshalBinary

func (o *AddProxySQLServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddProxySQLServiceBody) UnmarshalBinary

func (o *AddProxySQLServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddProxySQLServiceBody) Validate

func (o *AddProxySQLServiceBody) Validate(formats strfmt.Registry) error

Validate validates this add proxy SQL service body

type AddProxySQLServiceDefault

type AddProxySQLServiceDefault struct {
	Payload *AddProxySQLServiceDefaultBody
	// contains filtered or unexported fields
}

AddProxySQLServiceDefault handles this case with default header values.

An unexpected error response

func NewAddProxySQLServiceDefault

func NewAddProxySQLServiceDefault(code int) *AddProxySQLServiceDefault

NewAddProxySQLServiceDefault creates a AddProxySQLServiceDefault with default headers values

func (*AddProxySQLServiceDefault) Code

func (o *AddProxySQLServiceDefault) Code() int

Code gets the status code for the add proxy SQL service default response

func (*AddProxySQLServiceDefault) Error

func (o *AddProxySQLServiceDefault) Error() string

func (*AddProxySQLServiceDefault) GetPayload

type AddProxySQLServiceDefaultBody

type AddProxySQLServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

AddProxySQLServiceDefaultBody add proxy SQL service default body swagger:model AddProxySQLServiceDefaultBody

func (*AddProxySQLServiceDefaultBody) MarshalBinary

func (o *AddProxySQLServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddProxySQLServiceDefaultBody) UnmarshalBinary

func (o *AddProxySQLServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddProxySQLServiceDefaultBody) Validate

func (o *AddProxySQLServiceDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this add proxy SQL service default body

type AddProxySQLServiceOK

type AddProxySQLServiceOK struct {
	Payload *AddProxySQLServiceOKBody
}

AddProxySQLServiceOK handles this case with default header values.

A successful response.

func NewAddProxySQLServiceOK

func NewAddProxySQLServiceOK() *AddProxySQLServiceOK

NewAddProxySQLServiceOK creates a AddProxySQLServiceOK with default headers values

func (*AddProxySQLServiceOK) Error

func (o *AddProxySQLServiceOK) Error() string

func (*AddProxySQLServiceOK) GetPayload

type AddProxySQLServiceOKBody

type AddProxySQLServiceOKBody struct {

	// proxysql
	Proxysql *AddProxySQLServiceOKBodyProxysql `json:"proxysql,omitempty"`
}

AddProxySQLServiceOKBody add proxy SQL service OK body swagger:model AddProxySQLServiceOKBody

func (*AddProxySQLServiceOKBody) MarshalBinary

func (o *AddProxySQLServiceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddProxySQLServiceOKBody) UnmarshalBinary

func (o *AddProxySQLServiceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddProxySQLServiceOKBody) Validate

func (o *AddProxySQLServiceOKBody) Validate(formats strfmt.Registry) error

Validate validates this add proxy SQL service OK body

type AddProxySQLServiceOKBodyProxysql

type AddProxySQLServiceOKBodyProxysql struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

AddProxySQLServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model AddProxySQLServiceOKBodyProxysql

func (*AddProxySQLServiceOKBodyProxysql) MarshalBinary

func (o *AddProxySQLServiceOKBodyProxysql) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddProxySQLServiceOKBodyProxysql) UnmarshalBinary

func (o *AddProxySQLServiceOKBodyProxysql) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddProxySQLServiceOKBodyProxysql) Validate

Validate validates this add proxy SQL service OK body proxysql

type AddProxySQLServiceParams

type AddProxySQLServiceParams struct {

	/*Body*/
	Body AddProxySQLServiceBody

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

AddProxySQLServiceParams contains all the parameters to send to the API endpoint for the add proxy SQL service operation typically these are written to a http.Request

func NewAddProxySQLServiceParams

func NewAddProxySQLServiceParams() *AddProxySQLServiceParams

NewAddProxySQLServiceParams creates a new AddProxySQLServiceParams object with the default values initialized.

func NewAddProxySQLServiceParamsWithContext

func NewAddProxySQLServiceParamsWithContext(ctx context.Context) *AddProxySQLServiceParams

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

func NewAddProxySQLServiceParamsWithHTTPClient

func NewAddProxySQLServiceParamsWithHTTPClient(client *http.Client) *AddProxySQLServiceParams

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

func NewAddProxySQLServiceParamsWithTimeout

func NewAddProxySQLServiceParamsWithTimeout(timeout time.Duration) *AddProxySQLServiceParams

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

func (*AddProxySQLServiceParams) SetBody

SetBody adds the body to the add proxy SQL service params

func (*AddProxySQLServiceParams) SetContext

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

SetContext adds the context to the add proxy SQL service params

func (*AddProxySQLServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add proxy SQL service params

func (*AddProxySQLServiceParams) SetTimeout

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

SetTimeout adds the timeout to the add proxy SQL service params

func (*AddProxySQLServiceParams) WithBody

WithBody adds the body to the add proxy SQL service params

func (*AddProxySQLServiceParams) WithContext

WithContext adds the context to the add proxy SQL service params

func (*AddProxySQLServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add proxy SQL service params

func (*AddProxySQLServiceParams) WithTimeout

WithTimeout adds the timeout to the add proxy SQL service params

func (*AddProxySQLServiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddProxySQLServiceReader

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

AddProxySQLServiceReader is a Reader for the AddProxySQLService structure.

func (*AddProxySQLServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for services API

func (*Client) AddExternalService

func (a *Client) AddExternalService(params *AddExternalServiceParams) (*AddExternalServiceOK, error)

AddExternalService adds external service adds external service

func (*Client) AddMongoDBService

func (a *Client) AddMongoDBService(params *AddMongoDBServiceParams) (*AddMongoDBServiceOK, error)

AddMongoDBService adds mongo DB service adds mongo DB service

func (*Client) AddMySQLService

func (a *Client) AddMySQLService(params *AddMySQLServiceParams) (*AddMySQLServiceOK, error)

AddMySQLService adds my SQL service adds my SQL service

func (*Client) AddPostgreSQLService

func (a *Client) AddPostgreSQLService(params *AddPostgreSQLServiceParams) (*AddPostgreSQLServiceOK, error)

AddPostgreSQLService adds postgre SQL service adds postgre SQL service

func (*Client) AddProxySQLService

func (a *Client) AddProxySQLService(params *AddProxySQLServiceParams) (*AddProxySQLServiceOK, error)

AddProxySQLService adds proxy SQL service adds proxy SQL service

func (*Client) GetService

func (a *Client) GetService(params *GetServiceParams) (*GetServiceOK, error)

GetService gets service returns a single service by ID

func (*Client) ListServices

func (a *Client) ListServices(params *ListServicesParams) (*ListServicesOK, error)

ListServices lists services returns a list of all services

func (*Client) RemoveService

func (a *Client) RemoveService(params *RemoveServiceParams) (*RemoveServiceOK, error)

RemoveService removes service removes service

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AddExternalService(params *AddExternalServiceParams) (*AddExternalServiceOK, error)

	AddMongoDBService(params *AddMongoDBServiceParams) (*AddMongoDBServiceOK, error)

	AddMySQLService(params *AddMySQLServiceParams) (*AddMySQLServiceOK, error)

	AddPostgreSQLService(params *AddPostgreSQLServiceParams) (*AddPostgreSQLServiceOK, error)

	AddProxySQLService(params *AddProxySQLServiceParams) (*AddProxySQLServiceOK, error)

	GetService(params *GetServiceParams) (*GetServiceOK, error)

	ListServices(params *ListServicesParams) (*ListServicesOK, error)

	RemoveService(params *RemoveServiceParams) (*RemoveServiceOK, 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 services API client.

type DetailsItems0

type DetailsItems0 struct {

	// type url
	TypeURL string `json:"type_url,omitempty"`

	// value
	// Format: byte
	Value strfmt.Base64 `json:"value,omitempty"`
}

DetailsItems0 details items0 swagger:model DetailsItems0

func (*DetailsItems0) MarshalBinary

func (o *DetailsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DetailsItems0) UnmarshalBinary

func (o *DetailsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DetailsItems0) Validate

func (o *DetailsItems0) Validate(formats strfmt.Registry) error

Validate validates this details items0

type ExternalItems0

type ExternalItems0 struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this service instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

ExternalItems0 ExternalService represents a generic External service instance. swagger:model ExternalItems0

func (*ExternalItems0) MarshalBinary

func (o *ExternalItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExternalItems0) UnmarshalBinary

func (o *ExternalItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExternalItems0) Validate

func (o *ExternalItems0) Validate(formats strfmt.Registry) error

Validate validates this external items0

type GetServiceBody

type GetServiceBody struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`
}

GetServiceBody get service body swagger:model GetServiceBody

func (*GetServiceBody) MarshalBinary

func (o *GetServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceBody) UnmarshalBinary

func (o *GetServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceBody) Validate

func (o *GetServiceBody) Validate(formats strfmt.Registry) error

Validate validates this get service body

type GetServiceDefault

type GetServiceDefault struct {
	Payload *GetServiceDefaultBody
	// contains filtered or unexported fields
}

GetServiceDefault handles this case with default header values.

An unexpected error response

func NewGetServiceDefault

func NewGetServiceDefault(code int) *GetServiceDefault

NewGetServiceDefault creates a GetServiceDefault with default headers values

func (*GetServiceDefault) Code

func (o *GetServiceDefault) Code() int

Code gets the status code for the get service default response

func (*GetServiceDefault) Error

func (o *GetServiceDefault) Error() string

func (*GetServiceDefault) GetPayload

func (o *GetServiceDefault) GetPayload() *GetServiceDefaultBody

type GetServiceDefaultBody

type GetServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

GetServiceDefaultBody get service default body swagger:model GetServiceDefaultBody

func (*GetServiceDefaultBody) MarshalBinary

func (o *GetServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceDefaultBody) UnmarshalBinary

func (o *GetServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceDefaultBody) Validate

func (o *GetServiceDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this get service default body

type GetServiceOK

type GetServiceOK struct {
	Payload *GetServiceOKBody
}

GetServiceOK handles this case with default header values.

A successful response.

func NewGetServiceOK

func NewGetServiceOK() *GetServiceOK

NewGetServiceOK creates a GetServiceOK with default headers values

func (*GetServiceOK) Error

func (o *GetServiceOK) Error() string

func (*GetServiceOK) GetPayload

func (o *GetServiceOK) GetPayload() *GetServiceOKBody

type GetServiceOKBody

type GetServiceOKBody struct {

	// external
	External *GetServiceOKBodyExternal `json:"external,omitempty"`

	// mongodb
	Mongodb *GetServiceOKBodyMongodb `json:"mongodb,omitempty"`

	// mysql
	Mysql *GetServiceOKBodyMysql `json:"mysql,omitempty"`

	// postgresql
	Postgresql *GetServiceOKBodyPostgresql `json:"postgresql,omitempty"`

	// proxysql
	Proxysql *GetServiceOKBodyProxysql `json:"proxysql,omitempty"`
}

GetServiceOKBody get service OK body swagger:model GetServiceOKBody

func (*GetServiceOKBody) MarshalBinary

func (o *GetServiceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceOKBody) UnmarshalBinary

func (o *GetServiceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceOKBody) Validate

func (o *GetServiceOKBody) Validate(formats strfmt.Registry) error

Validate validates this get service OK body

type GetServiceOKBodyExternal

type GetServiceOKBodyExternal struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this service instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

GetServiceOKBodyExternal ExternalService represents a generic External service instance. swagger:model GetServiceOKBodyExternal

func (*GetServiceOKBodyExternal) MarshalBinary

func (o *GetServiceOKBodyExternal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceOKBodyExternal) UnmarshalBinary

func (o *GetServiceOKBodyExternal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceOKBodyExternal) Validate

func (o *GetServiceOKBodyExternal) Validate(formats strfmt.Registry) error

Validate validates this get service OK body external

type GetServiceOKBodyMongodb

type GetServiceOKBodyMongodb struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

GetServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model GetServiceOKBodyMongodb

func (*GetServiceOKBodyMongodb) MarshalBinary

func (o *GetServiceOKBodyMongodb) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceOKBodyMongodb) UnmarshalBinary

func (o *GetServiceOKBodyMongodb) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceOKBodyMongodb) Validate

func (o *GetServiceOKBodyMongodb) Validate(formats strfmt.Registry) error

Validate validates this get service OK body mongodb

type GetServiceOKBodyMysql

type GetServiceOKBodyMysql struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

GetServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model GetServiceOKBodyMysql

func (*GetServiceOKBodyMysql) MarshalBinary

func (o *GetServiceOKBodyMysql) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceOKBodyMysql) UnmarshalBinary

func (o *GetServiceOKBodyMysql) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceOKBodyMysql) Validate

func (o *GetServiceOKBodyMysql) Validate(formats strfmt.Registry) error

Validate validates this get service OK body mysql

type GetServiceOKBodyPostgresql

type GetServiceOKBodyPostgresql struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

GetServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. swagger:model GetServiceOKBodyPostgresql

func (*GetServiceOKBodyPostgresql) MarshalBinary

func (o *GetServiceOKBodyPostgresql) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceOKBodyPostgresql) UnmarshalBinary

func (o *GetServiceOKBodyPostgresql) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceOKBodyPostgresql) Validate

func (o *GetServiceOKBodyPostgresql) Validate(formats strfmt.Registry) error

Validate validates this get service OK body postgresql

type GetServiceOKBodyProxysql

type GetServiceOKBodyProxysql struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

GetServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model GetServiceOKBodyProxysql

func (*GetServiceOKBodyProxysql) MarshalBinary

func (o *GetServiceOKBodyProxysql) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServiceOKBodyProxysql) UnmarshalBinary

func (o *GetServiceOKBodyProxysql) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServiceOKBodyProxysql) Validate

func (o *GetServiceOKBodyProxysql) Validate(formats strfmt.Registry) error

Validate validates this get service OK body proxysql

type GetServiceParams

type GetServiceParams struct {

	/*Body*/
	Body GetServiceBody

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

GetServiceParams contains all the parameters to send to the API endpoint for the get service operation typically these are written to a http.Request

func NewGetServiceParams

func NewGetServiceParams() *GetServiceParams

NewGetServiceParams creates a new GetServiceParams object with the default values initialized.

func NewGetServiceParamsWithContext

func NewGetServiceParamsWithContext(ctx context.Context) *GetServiceParams

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

func NewGetServiceParamsWithHTTPClient

func NewGetServiceParamsWithHTTPClient(client *http.Client) *GetServiceParams

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

func NewGetServiceParamsWithTimeout

func NewGetServiceParamsWithTimeout(timeout time.Duration) *GetServiceParams

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

func (*GetServiceParams) SetBody

func (o *GetServiceParams) SetBody(body GetServiceBody)

SetBody adds the body to the get service params

func (*GetServiceParams) SetContext

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

SetContext adds the context to the get service params

func (*GetServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) SetTimeout

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

SetTimeout adds the timeout to the get service params

func (*GetServiceParams) WithBody

WithBody adds the body to the get service params

func (*GetServiceParams) WithContext

func (o *GetServiceParams) WithContext(ctx context.Context) *GetServiceParams

WithContext adds the context to the get service params

func (*GetServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) WithTimeout

func (o *GetServiceParams) WithTimeout(timeout time.Duration) *GetServiceParams

WithTimeout adds the timeout to the get service params

func (*GetServiceParams) WriteToRequest

func (o *GetServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetServiceReader

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

GetServiceReader is a Reader for the GetService structure.

func (*GetServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicesBody

type ListServicesBody struct {

	// Return only Services running on that Node.
	NodeID string `json:"node_id,omitempty"`

	// ServiceType describes supported Service types.
	// Enum: [SERVICE_TYPE_INVALID MYSQL_SERVICE MONGODB_SERVICE POSTGRESQL_SERVICE PROXYSQL_SERVICE EXTERNAL_SERVICE]
	ServiceType *string `json:"service_type,omitempty"`
}

ListServicesBody list services body swagger:model ListServicesBody

func (*ListServicesBody) MarshalBinary

func (o *ListServicesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListServicesBody) UnmarshalBinary

func (o *ListServicesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListServicesBody) Validate

func (o *ListServicesBody) Validate(formats strfmt.Registry) error

Validate validates this list services body

type ListServicesDefault

type ListServicesDefault struct {
	Payload *ListServicesDefaultBody
	// contains filtered or unexported fields
}

ListServicesDefault handles this case with default header values.

An unexpected error response

func NewListServicesDefault

func NewListServicesDefault(code int) *ListServicesDefault

NewListServicesDefault creates a ListServicesDefault with default headers values

func (*ListServicesDefault) Code

func (o *ListServicesDefault) Code() int

Code gets the status code for the list services default response

func (*ListServicesDefault) Error

func (o *ListServicesDefault) Error() string

func (*ListServicesDefault) GetPayload

type ListServicesDefaultBody

type ListServicesDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody

func (*ListServicesDefaultBody) MarshalBinary

func (o *ListServicesDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListServicesDefaultBody) UnmarshalBinary

func (o *ListServicesDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListServicesDefaultBody) Validate

func (o *ListServicesDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this list services default body

type ListServicesOK

type ListServicesOK struct {
	Payload *ListServicesOKBody
}

ListServicesOK handles this case with default header values.

A successful response.

func NewListServicesOK

func NewListServicesOK() *ListServicesOK

NewListServicesOK creates a ListServicesOK with default headers values

func (*ListServicesOK) Error

func (o *ListServicesOK) Error() string

func (*ListServicesOK) GetPayload

func (o *ListServicesOK) GetPayload() *ListServicesOKBody

type ListServicesOKBody

type ListServicesOKBody struct {

	// mysql
	Mysql []*MysqlItems0 `json:"mysql"`

	// mongodb
	Mongodb []*MongodbItems0 `json:"mongodb"`

	// postgresql
	Postgresql []*PostgresqlItems0 `json:"postgresql"`

	// proxysql
	Proxysql []*ProxysqlItems0 `json:"proxysql"`

	// external
	External []*ExternalItems0 `json:"external"`
}

ListServicesOKBody list services OK body swagger:model ListServicesOKBody

func (*ListServicesOKBody) MarshalBinary

func (o *ListServicesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListServicesOKBody) UnmarshalBinary

func (o *ListServicesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListServicesOKBody) Validate

func (o *ListServicesOKBody) Validate(formats strfmt.Registry) error

Validate validates this list services OK body

type ListServicesParams

type ListServicesParams struct {

	/*Body*/
	Body ListServicesBody

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

ListServicesParams contains all the parameters to send to the API endpoint for the list services operation typically these are written to a http.Request

func NewListServicesParams

func NewListServicesParams() *ListServicesParams

NewListServicesParams creates a new ListServicesParams object with the default values initialized.

func NewListServicesParamsWithContext

func NewListServicesParamsWithContext(ctx context.Context) *ListServicesParams

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

func NewListServicesParamsWithHTTPClient

func NewListServicesParamsWithHTTPClient(client *http.Client) *ListServicesParams

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

func NewListServicesParamsWithTimeout

func NewListServicesParamsWithTimeout(timeout time.Duration) *ListServicesParams

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

func (*ListServicesParams) SetBody

func (o *ListServicesParams) SetBody(body ListServicesBody)

SetBody adds the body to the list services params

func (*ListServicesParams) SetContext

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

SetContext adds the context to the list services params

func (*ListServicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list services params

func (*ListServicesParams) SetTimeout

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

SetTimeout adds the timeout to the list services params

func (*ListServicesParams) WithBody

WithBody adds the body to the list services params

func (*ListServicesParams) WithContext

WithContext adds the context to the list services params

func (*ListServicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list services params

func (*ListServicesParams) WithTimeout

func (o *ListServicesParams) WithTimeout(timeout time.Duration) *ListServicesParams

WithTimeout adds the timeout to the list services params

func (*ListServicesParams) WriteToRequest

func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListServicesReader

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

ListServicesReader is a Reader for the ListServices structure.

func (*ListServicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MongodbItems0

type MongodbItems0 struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

MongodbItems0 MongoDBService represents a generic MongoDB instance. swagger:model MongodbItems0

func (*MongodbItems0) MarshalBinary

func (o *MongodbItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MongodbItems0) UnmarshalBinary

func (o *MongodbItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MongodbItems0) Validate

func (o *MongodbItems0) Validate(formats strfmt.Registry) error

Validate validates this mongodb items0

type MysqlItems0

type MysqlItems0 struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

MysqlItems0 MySQLService represents a generic MySQL instance. swagger:model MysqlItems0

func (*MysqlItems0) MarshalBinary

func (o *MysqlItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MysqlItems0) UnmarshalBinary

func (o *MysqlItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MysqlItems0) Validate

func (o *MysqlItems0) Validate(formats strfmt.Registry) error

Validate validates this mysql items0

type PostgresqlItems0

type PostgresqlItems0 struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

PostgresqlItems0 PostgreSQLService represents a generic PostgreSQL instance. swagger:model PostgresqlItems0

func (*PostgresqlItems0) MarshalBinary

func (o *PostgresqlItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostgresqlItems0) UnmarshalBinary

func (o *PostgresqlItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostgresqlItems0) Validate

func (o *PostgresqlItems0) Validate(formats strfmt.Registry) error

Validate validates this postgresql items0

type ProxysqlItems0

type ProxysqlItems0 struct {

	// Unique randomly generated instance identifier.
	ServiceID string `json:"service_id,omitempty"`

	// Unique across all Services user-defined name.
	ServiceName string `json:"service_name,omitempty"`

	// Node identifier where this instance runs.
	NodeID string `json:"node_id,omitempty"`

	// Access address (DNS name or IP).
	// Address (and port) or socket is required.
	Address string `json:"address,omitempty"`

	// Access port.
	// Port is required when the address present.
	Port int64 `json:"port,omitempty"`

	// Access unix socket.
	// Address (and port) or socket is required.
	Socket string `json:"socket,omitempty"`

	// Environment name.
	Environment string `json:"environment,omitempty"`

	// Cluster name.
	Cluster string `json:"cluster,omitempty"`

	// Replication set name.
	ReplicationSet string `json:"replication_set,omitempty"`

	// Custom user-assigned labels.
	CustomLabels map[string]string `json:"custom_labels,omitempty"`
}

ProxysqlItems0 ProxySQLService represents a generic ProxySQL instance. swagger:model ProxysqlItems0

func (*ProxysqlItems0) MarshalBinary

func (o *ProxysqlItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProxysqlItems0) UnmarshalBinary

func (o *ProxysqlItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProxysqlItems0) Validate

func (o *ProxysqlItems0) Validate(formats strfmt.Registry) error

Validate validates this proxysql items0

type RemoveServiceBody

type RemoveServiceBody struct {

	// Unique randomly generated instance identifier. Required.
	ServiceID string `json:"service_id,omitempty"`

	// Remove service with all dependencies.
	Force bool `json:"force,omitempty"`
}

RemoveServiceBody remove service body swagger:model RemoveServiceBody

func (*RemoveServiceBody) MarshalBinary

func (o *RemoveServiceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoveServiceBody) UnmarshalBinary

func (o *RemoveServiceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoveServiceBody) Validate

func (o *RemoveServiceBody) Validate(formats strfmt.Registry) error

Validate validates this remove service body

type RemoveServiceDefault

type RemoveServiceDefault struct {
	Payload *RemoveServiceDefaultBody
	// contains filtered or unexported fields
}

RemoveServiceDefault handles this case with default header values.

An unexpected error response

func NewRemoveServiceDefault

func NewRemoveServiceDefault(code int) *RemoveServiceDefault

NewRemoveServiceDefault creates a RemoveServiceDefault with default headers values

func (*RemoveServiceDefault) Code

func (o *RemoveServiceDefault) Code() int

Code gets the status code for the remove service default response

func (*RemoveServiceDefault) Error

func (o *RemoveServiceDefault) Error() string

func (*RemoveServiceDefault) GetPayload

type RemoveServiceDefaultBody

type RemoveServiceDefaultBody struct {

	// error
	Error string `json:"error,omitempty"`

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// details
	Details []*DetailsItems0 `json:"details"`
}

RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody

func (*RemoveServiceDefaultBody) MarshalBinary

func (o *RemoveServiceDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoveServiceDefaultBody) UnmarshalBinary

func (o *RemoveServiceDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoveServiceDefaultBody) Validate

func (o *RemoveServiceDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this remove service default body

type RemoveServiceOK

type RemoveServiceOK struct {
	Payload interface{}
}

RemoveServiceOK handles this case with default header values.

A successful response.

func NewRemoveServiceOK

func NewRemoveServiceOK() *RemoveServiceOK

NewRemoveServiceOK creates a RemoveServiceOK with default headers values

func (*RemoveServiceOK) Error

func (o *RemoveServiceOK) Error() string

func (*RemoveServiceOK) GetPayload

func (o *RemoveServiceOK) GetPayload() interface{}

type RemoveServiceParams

type RemoveServiceParams struct {

	/*Body*/
	Body RemoveServiceBody

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

RemoveServiceParams contains all the parameters to send to the API endpoint for the remove service operation typically these are written to a http.Request

func NewRemoveServiceParams

func NewRemoveServiceParams() *RemoveServiceParams

NewRemoveServiceParams creates a new RemoveServiceParams object with the default values initialized.

func NewRemoveServiceParamsWithContext

func NewRemoveServiceParamsWithContext(ctx context.Context) *RemoveServiceParams

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

func NewRemoveServiceParamsWithHTTPClient

func NewRemoveServiceParamsWithHTTPClient(client *http.Client) *RemoveServiceParams

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

func NewRemoveServiceParamsWithTimeout

func NewRemoveServiceParamsWithTimeout(timeout time.Duration) *RemoveServiceParams

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

func (*RemoveServiceParams) SetBody

func (o *RemoveServiceParams) SetBody(body RemoveServiceBody)

SetBody adds the body to the remove service params

func (*RemoveServiceParams) SetContext

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

SetContext adds the context to the remove service params

func (*RemoveServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove service params

func (*RemoveServiceParams) SetTimeout

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

SetTimeout adds the timeout to the remove service params

func (*RemoveServiceParams) WithBody

WithBody adds the body to the remove service params

func (*RemoveServiceParams) WithContext

WithContext adds the context to the remove service params

func (*RemoveServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove service params

func (*RemoveServiceParams) WithTimeout

func (o *RemoveServiceParams) WithTimeout(timeout time.Duration) *RemoveServiceParams

WithTimeout adds the timeout to the remove service params

func (*RemoveServiceParams) WriteToRequest

func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RemoveServiceReader

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

RemoveServiceReader is a Reader for the RemoveService structure.

func (*RemoveServiceReader) ReadResponse

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