Documentation
¶
Index ¶
- Constants
- type AddRDSBody
- type AddRDSDefault
- type AddRDSDefaultBody
- type AddRDSOK
- type AddRDSOKBody
- type AddRDSOKBodyMysql
- type AddRDSOKBodyMysqldExporter
- type AddRDSOKBodyNode
- type AddRDSOKBodyQANMysqlPerfschema
- type AddRDSOKBodyRDSExporter
- type AddRDSParams
- func (o *AddRDSParams) SetBody(body AddRDSBody)
- func (o *AddRDSParams) SetContext(ctx context.Context)
- func (o *AddRDSParams) SetHTTPClient(client *http.Client)
- func (o *AddRDSParams) SetTimeout(timeout time.Duration)
- func (o *AddRDSParams) WithBody(body AddRDSBody) *AddRDSParams
- func (o *AddRDSParams) WithContext(ctx context.Context) *AddRDSParams
- func (o *AddRDSParams) WithHTTPClient(client *http.Client) *AddRDSParams
- func (o *AddRDSParams) WithTimeout(timeout time.Duration) *AddRDSParams
- func (o *AddRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddRDSReader
- type Client
- type DiscoverRDSBody
- type DiscoverRDSDefault
- type DiscoverRDSDefaultBody
- type DiscoverRDSOK
- type DiscoverRDSOKBody
- type DiscoverRDSParams
- func (o *DiscoverRDSParams) SetBody(body DiscoverRDSBody)
- func (o *DiscoverRDSParams) SetContext(ctx context.Context)
- func (o *DiscoverRDSParams) SetHTTPClient(client *http.Client)
- func (o *DiscoverRDSParams) SetTimeout(timeout time.Duration)
- func (o *DiscoverRDSParams) WithBody(body DiscoverRDSBody) *DiscoverRDSParams
- func (o *DiscoverRDSParams) WithContext(ctx context.Context) *DiscoverRDSParams
- func (o *DiscoverRDSParams) WithHTTPClient(client *http.Client) *DiscoverRDSParams
- func (o *DiscoverRDSParams) WithTimeout(timeout time.Duration) *DiscoverRDSParams
- func (o *DiscoverRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscoverRDSReader
- type RDSInstancesItems0
Constants ¶
const ( // AddRDSBodyEngineDISCOVERRDSENGINEINVALID captures enum value "DISCOVER_RDS_ENGINE_INVALID" AddRDSBodyEngineDISCOVERRDSENGINEINVALID string = "DISCOVER_RDS_ENGINE_INVALID" // AddRDSBodyEngineDISCOVERRDSMYSQL captures enum value "DISCOVER_RDS_MYSQL" AddRDSBodyEngineDISCOVERRDSMYSQL string = "DISCOVER_RDS_MYSQL" )
const ( // AddRDSOKBodyMysqldExporterStatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID" AddRDSOKBodyMysqldExporterStatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID" // AddRDSOKBodyMysqldExporterStatusSTARTING captures enum value "STARTING" AddRDSOKBodyMysqldExporterStatusSTARTING string = "STARTING" // AddRDSOKBodyMysqldExporterStatusRUNNING captures enum value "RUNNING" AddRDSOKBodyMysqldExporterStatusRUNNING string = "RUNNING" // AddRDSOKBodyMysqldExporterStatusWAITING captures enum value "WAITING" AddRDSOKBodyMysqldExporterStatusWAITING string = "WAITING" // AddRDSOKBodyMysqldExporterStatusSTOPPING captures enum value "STOPPING" AddRDSOKBodyMysqldExporterStatusSTOPPING string = "STOPPING" // AddRDSOKBodyMysqldExporterStatusDONE captures enum value "DONE" AddRDSOKBodyMysqldExporterStatusDONE string = "DONE" )
const ( // AddRDSOKBodyQANMysqlPerfschemaStatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID" AddRDSOKBodyQANMysqlPerfschemaStatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID" // AddRDSOKBodyQANMysqlPerfschemaStatusSTARTING captures enum value "STARTING" AddRDSOKBodyQANMysqlPerfschemaStatusSTARTING string = "STARTING" // AddRDSOKBodyQANMysqlPerfschemaStatusRUNNING captures enum value "RUNNING" AddRDSOKBodyQANMysqlPerfschemaStatusRUNNING string = "RUNNING" // AddRDSOKBodyQANMysqlPerfschemaStatusWAITING captures enum value "WAITING" AddRDSOKBodyQANMysqlPerfschemaStatusWAITING string = "WAITING" // AddRDSOKBodyQANMysqlPerfschemaStatusSTOPPING captures enum value "STOPPING" AddRDSOKBodyQANMysqlPerfschemaStatusSTOPPING string = "STOPPING" // AddRDSOKBodyQANMysqlPerfschemaStatusDONE captures enum value "DONE" AddRDSOKBodyQANMysqlPerfschemaStatusDONE string = "DONE" )
const ( // AddRDSOKBodyRDSExporterStatusAGENTSTATUSINVALID captures enum value "AGENT_STATUS_INVALID" AddRDSOKBodyRDSExporterStatusAGENTSTATUSINVALID string = "AGENT_STATUS_INVALID" // AddRDSOKBodyRDSExporterStatusSTARTING captures enum value "STARTING" AddRDSOKBodyRDSExporterStatusSTARTING string = "STARTING" // AddRDSOKBodyRDSExporterStatusRUNNING captures enum value "RUNNING" AddRDSOKBodyRDSExporterStatusRUNNING string = "RUNNING" // AddRDSOKBodyRDSExporterStatusWAITING captures enum value "WAITING" AddRDSOKBodyRDSExporterStatusWAITING string = "WAITING" // AddRDSOKBodyRDSExporterStatusSTOPPING captures enum value "STOPPING" AddRDSOKBodyRDSExporterStatusSTOPPING string = "STOPPING" // AddRDSOKBodyRDSExporterStatusDONE captures enum value "DONE" AddRDSOKBodyRDSExporterStatusDONE string = "DONE" )
const ( // RDSInstancesItems0EngineDISCOVERRDSENGINEINVALID captures enum value "DISCOVER_RDS_ENGINE_INVALID" RDSInstancesItems0EngineDISCOVERRDSENGINEINVALID string = "DISCOVER_RDS_ENGINE_INVALID" // RDSInstancesItems0EngineDISCOVERRDSMYSQL captures enum value "DISCOVER_RDS_MYSQL" RDSInstancesItems0EngineDISCOVERRDSMYSQL string = "DISCOVER_RDS_MYSQL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRDSBody ¶
type AddRDSBody struct {
// AWS region.
Region string `json:"region,omitempty"`
// AWS availability zone.
Az string `json:"az,omitempty"`
// AWS instance ID.
InstanceID string `json:"instance_id,omitempty"`
// AWS instance class.
NodeModel string `json:"node_model,omitempty"`
// Address used to connect to it.
Address string `json:"address,omitempty"`
// Access port.
Port int64 `json:"port,omitempty"`
// DiscoverRDSEngine describes supported RDS instance engines.
// Enum: [DISCOVER_RDS_ENGINE_INVALID DISCOVER_RDS_MYSQL]
Engine *string `json:"engine,omitempty"`
// Unique across all Nodes user-defined name. Defaults to AWS instance ID.
NodeName string `json:"node_name,omitempty"`
// Unique across all Services user-defined name. Defaults to AWS instance ID.
ServiceName string `json:"service_name,omitempty"`
// Environment name.
Environment string `json:"environment,omitempty"`
// Cluster name.
Cluster string `json:"cluster,omitempty"`
// Replication set name.
ReplicationSet string `json:"replication_set,omitempty"`
// Username for scraping metrics.
Username string `json:"username,omitempty"`
// Password for scraping metrics.
Password string `json:"password,omitempty"`
// AWS Access key.
AWSAccessKey string `json:"aws_access_key,omitempty"`
// AWS Secret key.
AWSSecretKey string `json:"aws_secret_key,omitempty"`
// If true, adds rds_exporter.
RDSExporter bool `json:"rds_exporter,omitempty"`
// If true, adds qan-mysql-perfschema-agent.
QANMysqlPerfschema bool `json:"qan_mysql_perfschema,omitempty"`
// Custom user-assigned labels for Node and Service.
CustomLabels map[string]string `json:"custom_labels,omitempty"`
// Skip connection check.
SkipConnectionCheck bool `json:"skip_connection_check,omitempty"`
// Use TLS for database connections.
TLS bool `json:"tls,omitempty"`
// Skip TLS certificate and hostname validation.
TLSSkipVerify bool `json:"tls_skip_verify,omitempty"`
// Disable query examples.
DisableQueryExamples bool `json:"disable_query_examples,omitempty"`
// Tablestats group collectors will be disabled if there are more than that number of tables.
// If zero, server's default value is used.
// Use negative value to disable them.
TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"`
}
AddRDSBody add RDS body swagger:model AddRDSBody
func (*AddRDSBody) MarshalBinary ¶
func (o *AddRDSBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSBody) UnmarshalBinary ¶
func (o *AddRDSBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSDefault ¶
type AddRDSDefault struct {
Payload *AddRDSDefaultBody
// contains filtered or unexported fields
}
AddRDSDefault handles this case with default header values.
An error response.
func NewAddRDSDefault ¶
func NewAddRDSDefault(code int) *AddRDSDefault
NewAddRDSDefault creates a AddRDSDefault with default headers values
func (*AddRDSDefault) Code ¶
func (o *AddRDSDefault) Code() int
Code gets the status code for the add RDS default response
func (*AddRDSDefault) Error ¶
func (o *AddRDSDefault) Error() string
func (*AddRDSDefault) GetPayload ¶
func (o *AddRDSDefault) GetPayload() *AddRDSDefaultBody
type AddRDSDefaultBody ¶
type AddRDSDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// error
Error string `json:"error,omitempty"`
// message
Message string `json:"message,omitempty"`
}
AddRDSDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model AddRDSDefaultBody
func (*AddRDSDefaultBody) MarshalBinary ¶
func (o *AddRDSDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSDefaultBody) UnmarshalBinary ¶
func (o *AddRDSDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSOK ¶
type AddRDSOK struct {
Payload *AddRDSOKBody
}
AddRDSOK handles this case with default header values.
A successful response.
func NewAddRDSOK ¶
func NewAddRDSOK() *AddRDSOK
NewAddRDSOK creates a AddRDSOK with default headers values
func (*AddRDSOK) GetPayload ¶
func (o *AddRDSOK) GetPayload() *AddRDSOKBody
type AddRDSOKBody ¶
type AddRDSOKBody struct {
// Actual table count at the moment of adding.
TableCount int32 `json:"table_count,omitempty"`
// mysql
Mysql *AddRDSOKBodyMysql `json:"mysql,omitempty"`
// mysqld exporter
MysqldExporter *AddRDSOKBodyMysqldExporter `json:"mysqld_exporter,omitempty"`
// node
Node *AddRDSOKBodyNode `json:"node,omitempty"`
// qan mysql perfschema
QANMysqlPerfschema *AddRDSOKBodyQANMysqlPerfschema `json:"qan_mysql_perfschema,omitempty"`
// rds exporter
RDSExporter *AddRDSOKBodyRDSExporter `json:"rds_exporter,omitempty"`
}
AddRDSOKBody add RDS OK body swagger:model AddRDSOKBody
func (*AddRDSOKBody) MarshalBinary ¶
func (o *AddRDSOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSOKBody) UnmarshalBinary ¶
func (o *AddRDSOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSOKBodyMysql ¶
type AddRDSOKBodyMysql 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 string `json:"address,omitempty"`
// Access port.
Port int64 `json:"port,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"`
}
AddRDSOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddRDSOKBodyMysql
func (*AddRDSOKBodyMysql) MarshalBinary ¶
func (o *AddRDSOKBodyMysql) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSOKBodyMysql) UnmarshalBinary ¶
func (o *AddRDSOKBodyMysql) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSOKBodyMysqldExporter ¶
type AddRDSOKBodyMysqldExporter struct {
// Unique randomly generated instance identifier.
AgentID string `json:"agent_id,omitempty"`
// The pmm-agent identifier which runs this instance.
PMMAgentID string `json:"pmm_agent_id,omitempty"`
// Desired Agent status: enabled (false) or disabled (true).
Disabled bool `json:"disabled,omitempty"`
// Service identifier.
ServiceID string `json:"service_id,omitempty"`
// MySQL username for scraping metrics.
Username string `json:"username,omitempty"`
// Use TLS for database connections.
TLS bool `json:"tls,omitempty"`
// Skip TLS certificate and hostname validation.
TLSSkipVerify bool `json:"tls_skip_verify,omitempty"`
// Tablestats group collectors are disabled if there are more than that number of tables.
// 0 means tablestats group collectors are always enabled (no limit).
// Negative value means tablestats group collectors are always disabled.
TablestatsGroupTableLimit int32 `json:"tablestats_group_table_limit,omitempty"`
// Custom user-assigned labels.
CustomLabels map[string]string `json:"custom_labels,omitempty"`
// AgentStatus represents actual Agent status.
//
// - STARTING: Agent is starting.
// - RUNNING: Agent is running.
// - WAITING: Agent encountered error and will be restarted automatically soon.
// - STOPPING: Agent is stopping.
// - DONE: Agent finished.
// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
Status *string `json:"status,omitempty"`
// Listen port for scraping metrics.
ListenPort int64 `json:"listen_port,omitempty"`
// True if tablestats group collectors are currently disabled.
TablestatsGroupDisabled bool `json:"tablestats_group_disabled,omitempty"`
}
AddRDSOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model AddRDSOKBodyMysqldExporter
func (*AddRDSOKBodyMysqldExporter) MarshalBinary ¶
func (o *AddRDSOKBodyMysqldExporter) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSOKBodyMysqldExporter) UnmarshalBinary ¶
func (o *AddRDSOKBodyMysqldExporter) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSOKBodyNode ¶
type AddRDSOKBodyNode struct {
// Unique randomly generated instance identifier.
NodeID string `json:"node_id,omitempty"`
// Unique across all Nodes user-defined name.
NodeName string `json:"node_name,omitempty"`
// DB instance identifier.
Address string `json:"address,omitempty"`
// Node model.
NodeModel string `json:"node_model,omitempty"`
// Node region.
Region string `json:"region,omitempty"`
// Node availability zone.
Az string `json:"az,omitempty"`
// Custom user-assigned labels.
CustomLabels map[string]string `json:"custom_labels,omitempty"`
}
AddRDSOKBodyNode RemoteRDSNode represents remote RDS Node. Agents can't run on Remote Nodes. swagger:model AddRDSOKBodyNode
func (*AddRDSOKBodyNode) MarshalBinary ¶
func (o *AddRDSOKBodyNode) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSOKBodyNode) UnmarshalBinary ¶
func (o *AddRDSOKBodyNode) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSOKBodyQANMysqlPerfschema ¶
type AddRDSOKBodyQANMysqlPerfschema struct {
// Unique randomly generated instance identifier.
AgentID string `json:"agent_id,omitempty"`
// The pmm-agent identifier which runs this instance.
PMMAgentID string `json:"pmm_agent_id,omitempty"`
// Desired Agent status: enabled (false) or disabled (true).
Disabled bool `json:"disabled,omitempty"`
// Service identifier.
ServiceID string `json:"service_id,omitempty"`
// MySQL username for getting performance data.
Username string `json:"username,omitempty"`
// Use TLS for database connections.
TLS bool `json:"tls,omitempty"`
// Skip TLS certificate and hostname validation.
TLSSkipVerify bool `json:"tls_skip_verify,omitempty"`
// True if query examples are disabled.
QueryExamplesDisabled bool `json:"query_examples_disabled,omitempty"`
// Custom user-assigned labels.
CustomLabels map[string]string `json:"custom_labels,omitempty"`
// AgentStatus represents actual Agent status.
//
// - STARTING: Agent is starting.
// - RUNNING: Agent is running.
// - WAITING: Agent encountered error and will be restarted automatically soon.
// - STOPPING: Agent is stopping.
// - DONE: Agent finished.
// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
Status *string `json:"status,omitempty"`
}
AddRDSOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddRDSOKBodyQANMysqlPerfschema
func (*AddRDSOKBodyQANMysqlPerfschema) MarshalBinary ¶
func (o *AddRDSOKBodyQANMysqlPerfschema) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSOKBodyQANMysqlPerfschema) UnmarshalBinary ¶
func (o *AddRDSOKBodyQANMysqlPerfschema) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSOKBodyRDSExporter ¶
type AddRDSOKBodyRDSExporter struct {
// Unique randomly generated instance identifier.
AgentID string `json:"agent_id,omitempty"`
// The pmm-agent identifier which runs this instance.
PMMAgentID string `json:"pmm_agent_id,omitempty"`
// Desired Agent status: enabled (false) or disabled (true).
Disabled bool `json:"disabled,omitempty"`
// Node identifier.
NodeID string `json:"node_id,omitempty"`
// AWS Access Key.
AWSAccessKey string `json:"aws_access_key,omitempty"`
// Custom user-assigned labels.
CustomLabels map[string]string `json:"custom_labels,omitempty"`
// AgentStatus represents actual Agent status.
//
// - STARTING: Agent is starting.
// - RUNNING: Agent is running.
// - WAITING: Agent encountered error and will be restarted automatically soon.
// - STOPPING: Agent is stopping.
// - DONE: Agent finished.
// Enum: [AGENT_STATUS_INVALID STARTING RUNNING WAITING STOPPING DONE]
Status *string `json:"status,omitempty"`
// Listen port for scraping metrics (the same for several configurations).
ListenPort int64 `json:"listen_port,omitempty"`
}
AddRDSOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. swagger:model AddRDSOKBodyRDSExporter
func (*AddRDSOKBodyRDSExporter) MarshalBinary ¶
func (o *AddRDSOKBodyRDSExporter) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddRDSOKBodyRDSExporter) UnmarshalBinary ¶
func (o *AddRDSOKBodyRDSExporter) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddRDSParams ¶
type AddRDSParams struct {
/*Body*/
Body AddRDSBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AddRDSParams contains all the parameters to send to the API endpoint for the add RDS operation typically these are written to a http.Request
func NewAddRDSParams ¶
func NewAddRDSParams() *AddRDSParams
NewAddRDSParams creates a new AddRDSParams object with the default values initialized.
func NewAddRDSParamsWithContext ¶
func NewAddRDSParamsWithContext(ctx context.Context) *AddRDSParams
NewAddRDSParamsWithContext creates a new AddRDSParams object with the default values initialized, and the ability to set a context for a request
func NewAddRDSParamsWithHTTPClient ¶
func NewAddRDSParamsWithHTTPClient(client *http.Client) *AddRDSParams
NewAddRDSParamsWithHTTPClient creates a new AddRDSParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddRDSParamsWithTimeout ¶
func NewAddRDSParamsWithTimeout(timeout time.Duration) *AddRDSParams
NewAddRDSParamsWithTimeout creates a new AddRDSParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddRDSParams) SetBody ¶
func (o *AddRDSParams) SetBody(body AddRDSBody)
SetBody adds the body to the add RDS params
func (*AddRDSParams) SetContext ¶
func (o *AddRDSParams) SetContext(ctx context.Context)
SetContext adds the context to the add RDS params
func (*AddRDSParams) SetHTTPClient ¶
func (o *AddRDSParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add RDS params
func (*AddRDSParams) SetTimeout ¶
func (o *AddRDSParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add RDS params
func (*AddRDSParams) WithBody ¶
func (o *AddRDSParams) WithBody(body AddRDSBody) *AddRDSParams
WithBody adds the body to the add RDS params
func (*AddRDSParams) WithContext ¶
func (o *AddRDSParams) WithContext(ctx context.Context) *AddRDSParams
WithContext adds the context to the add RDS params
func (*AddRDSParams) WithHTTPClient ¶
func (o *AddRDSParams) WithHTTPClient(client *http.Client) *AddRDSParams
WithHTTPClient adds the HTTPClient to the add RDS params
func (*AddRDSParams) WithTimeout ¶
func (o *AddRDSParams) WithTimeout(timeout time.Duration) *AddRDSParams
WithTimeout adds the timeout to the add RDS params
func (*AddRDSParams) WriteToRequest ¶
func (o *AddRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddRDSReader ¶
type AddRDSReader struct {
// contains filtered or unexported fields
}
AddRDSReader is a Reader for the AddRDS structure.
func (*AddRDSReader) ReadResponse ¶
func (o *AddRDSReader) 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 rds API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new rds API client.
func (*Client) AddRDS ¶
func (a *Client) AddRDS(params *AddRDSParams) (*AddRDSOK, error)
AddRDS adds RDS adds RDS instance
func (*Client) DiscoverRDS ¶
func (a *Client) DiscoverRDS(params *DiscoverRDSParams) (*DiscoverRDSOK, error)
DiscoverRDS discovers RDS discovers RDS instances
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DiscoverRDSBody ¶
type DiscoverRDSBody struct {
// AWS Access key. Optional.
AWSAccessKey string `json:"aws_access_key,omitempty"`
// AWS Secret key. Optional.
AWSSecretKey string `json:"aws_secret_key,omitempty"`
}
DiscoverRDSBody discover RDS body swagger:model DiscoverRDSBody
func (*DiscoverRDSBody) MarshalBinary ¶
func (o *DiscoverRDSBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DiscoverRDSBody) UnmarshalBinary ¶
func (o *DiscoverRDSBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DiscoverRDSDefault ¶
type DiscoverRDSDefault struct {
Payload *DiscoverRDSDefaultBody
// contains filtered or unexported fields
}
DiscoverRDSDefault handles this case with default header values.
An error response.
func NewDiscoverRDSDefault ¶
func NewDiscoverRDSDefault(code int) *DiscoverRDSDefault
NewDiscoverRDSDefault creates a DiscoverRDSDefault with default headers values
func (*DiscoverRDSDefault) Code ¶
func (o *DiscoverRDSDefault) Code() int
Code gets the status code for the discover RDS default response
func (*DiscoverRDSDefault) Error ¶
func (o *DiscoverRDSDefault) Error() string
func (*DiscoverRDSDefault) GetPayload ¶
func (o *DiscoverRDSDefault) GetPayload() *DiscoverRDSDefaultBody
type DiscoverRDSDefaultBody ¶
type DiscoverRDSDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// error
Error string `json:"error,omitempty"`
// message
Message string `json:"message,omitempty"`
}
DiscoverRDSDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model DiscoverRDSDefaultBody
func (*DiscoverRDSDefaultBody) MarshalBinary ¶
func (o *DiscoverRDSDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DiscoverRDSDefaultBody) UnmarshalBinary ¶
func (o *DiscoverRDSDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DiscoverRDSOK ¶
type DiscoverRDSOK struct {
Payload *DiscoverRDSOKBody
}
DiscoverRDSOK handles this case with default header values.
A successful response.
func NewDiscoverRDSOK ¶
func NewDiscoverRDSOK() *DiscoverRDSOK
NewDiscoverRDSOK creates a DiscoverRDSOK with default headers values
func (*DiscoverRDSOK) Error ¶
func (o *DiscoverRDSOK) Error() string
func (*DiscoverRDSOK) GetPayload ¶
func (o *DiscoverRDSOK) GetPayload() *DiscoverRDSOKBody
type DiscoverRDSOKBody ¶
type DiscoverRDSOKBody struct {
// rds instances
RDSInstances []*RDSInstancesItems0 `json:"rds_instances"`
}
DiscoverRDSOKBody discover RDS OK body swagger:model DiscoverRDSOKBody
func (*DiscoverRDSOKBody) MarshalBinary ¶
func (o *DiscoverRDSOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DiscoverRDSOKBody) UnmarshalBinary ¶
func (o *DiscoverRDSOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DiscoverRDSParams ¶
type DiscoverRDSParams struct {
/*Body*/
Body DiscoverRDSBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DiscoverRDSParams contains all the parameters to send to the API endpoint for the discover RDS operation typically these are written to a http.Request
func NewDiscoverRDSParams ¶
func NewDiscoverRDSParams() *DiscoverRDSParams
NewDiscoverRDSParams creates a new DiscoverRDSParams object with the default values initialized.
func NewDiscoverRDSParamsWithContext ¶
func NewDiscoverRDSParamsWithContext(ctx context.Context) *DiscoverRDSParams
NewDiscoverRDSParamsWithContext creates a new DiscoverRDSParams object with the default values initialized, and the ability to set a context for a request
func NewDiscoverRDSParamsWithHTTPClient ¶
func NewDiscoverRDSParamsWithHTTPClient(client *http.Client) *DiscoverRDSParams
NewDiscoverRDSParamsWithHTTPClient creates a new DiscoverRDSParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDiscoverRDSParamsWithTimeout ¶
func NewDiscoverRDSParamsWithTimeout(timeout time.Duration) *DiscoverRDSParams
NewDiscoverRDSParamsWithTimeout creates a new DiscoverRDSParams object with the default values initialized, and the ability to set a timeout on a request
func (*DiscoverRDSParams) SetBody ¶
func (o *DiscoverRDSParams) SetBody(body DiscoverRDSBody)
SetBody adds the body to the discover RDS params
func (*DiscoverRDSParams) SetContext ¶
func (o *DiscoverRDSParams) SetContext(ctx context.Context)
SetContext adds the context to the discover RDS params
func (*DiscoverRDSParams) SetHTTPClient ¶
func (o *DiscoverRDSParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discover RDS params
func (*DiscoverRDSParams) SetTimeout ¶
func (o *DiscoverRDSParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discover RDS params
func (*DiscoverRDSParams) WithBody ¶
func (o *DiscoverRDSParams) WithBody(body DiscoverRDSBody) *DiscoverRDSParams
WithBody adds the body to the discover RDS params
func (*DiscoverRDSParams) WithContext ¶
func (o *DiscoverRDSParams) WithContext(ctx context.Context) *DiscoverRDSParams
WithContext adds the context to the discover RDS params
func (*DiscoverRDSParams) WithHTTPClient ¶
func (o *DiscoverRDSParams) WithHTTPClient(client *http.Client) *DiscoverRDSParams
WithHTTPClient adds the HTTPClient to the discover RDS params
func (*DiscoverRDSParams) WithTimeout ¶
func (o *DiscoverRDSParams) WithTimeout(timeout time.Duration) *DiscoverRDSParams
WithTimeout adds the timeout to the discover RDS params
func (*DiscoverRDSParams) WriteToRequest ¶
func (o *DiscoverRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscoverRDSReader ¶
type DiscoverRDSReader struct {
// contains filtered or unexported fields
}
DiscoverRDSReader is a Reader for the DiscoverRDS structure.
func (*DiscoverRDSReader) ReadResponse ¶
func (o *DiscoverRDSReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RDSInstancesItems0 ¶
type RDSInstancesItems0 struct {
// AWS region.
Region string `json:"region,omitempty"`
// AWS availability zone.
Az string `json:"az,omitempty"`
// AWS instance ID.
InstanceID string `json:"instance_id,omitempty"`
// AWS instance class.
NodeModel string `json:"node_model,omitempty"`
// Address used to connect to it.
Address string `json:"address,omitempty"`
// Access port.
Port int64 `json:"port,omitempty"`
// DiscoverRDSEngine describes supported RDS instance engines.
// Enum: [DISCOVER_RDS_ENGINE_INVALID DISCOVER_RDS_MYSQL]
Engine *string `json:"engine,omitempty"`
// Engine version.
EngineVersion string `json:"engine_version,omitempty"`
}
RDSInstancesItems0 DiscoverRDSInstance models an unique RDS instance for the list of instances returned by Discovery. swagger:model RDSInstancesItems0
func (*RDSInstancesItems0) MarshalBinary ¶
func (o *RDSInstancesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RDSInstancesItems0) UnmarshalBinary ¶
func (o *RDSInstancesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation