From 6a508a366108fbbce64a63f933f6f409bef022d6 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Mon, 1 Aug 2022 22:21:18 +0200 Subject: [PATCH 01/29] PMM-10231 Credentials source implementation. API + admin --- admin/commands/management/add_external.go | 21 +-- .../management/add_external_serverless.go | 21 +-- admin/commands/management/add_haproxy.go | 21 +-- admin/commands/management/add_mongodb.go | 46 ++---- admin/commands/management/add_mysql.go | 29 ++-- admin/commands/management/add_postgresql.go | 22 +-- admin/commands/management/add_proxysql.go | 46 ++---- api/managementpb/external.pb.go | 114 +++++++------- api/managementpb/external.proto | 2 + api/managementpb/haproxy.pb.go | 106 +++++++------ api/managementpb/haproxy.proto | 2 + .../client/external/add_external_responses.go | 3 + .../client/ha_proxy/add_ha_proxy_responses.go | 3 + .../client/mongo_db/add_mongo_db_responses.go | 3 + .../client/my_sql/add_my_sql_responses.go | 3 + .../postgre_sql/add_postgre_sql_responses.go | 3 + .../proxy_sql/add_proxy_sql_responses.go | 3 + api/managementpb/json/managementpb.json | 30 ++++ api/managementpb/mongodb.pb.go | 120 ++++++++------- api/managementpb/mongodb.proto | 2 + api/managementpb/mysql.pb.go | 132 +++++++++-------- api/managementpb/mysql.proto | 2 + api/managementpb/postgresql.pb.go | 140 ++++++++++-------- api/managementpb/postgresql.proto | 2 + api/managementpb/proxysql.pb.go | 108 ++++++++------ api/managementpb/proxysql.proto | 3 + api/swagger/swagger-dev.json | 30 ++++ api/swagger/swagger.json | 30 ++++ 28 files changed, 569 insertions(+), 478 deletions(-) diff --git a/admin/commands/management/add_external.go b/admin/commands/management/add_external.go index 7007118c9d..872d9acac3 100644 --- a/admin/commands/management/add_external.go +++ b/admin/commands/management/add_external.go @@ -68,18 +68,6 @@ type addExternalCommand struct { SkipConnectionCheck bool } -func (cmd *addExternalCommand) GetCredentials() error { - creds, err := commands.ReadFromSource(cmd.CredentialsSource) - if err != nil { - return fmt.Errorf("%w", err) - } - - cmd.Password = creds.Password - cmd.Username = creds.Username - - return nil -} - func (cmd *addExternalCommand) Run() (commands.Result, error) { customLabels, err := commands.ParseCustomLabels(cmd.CustomLabels) if err != nil { @@ -110,12 +98,6 @@ func (cmd *addExternalCommand) Run() (commands.Result, error) { cmd.MetricsPath = fmt.Sprintf("/%s", cmd.MetricsPath) } - if cmd.CredentialsSource != "" { - if err := cmd.GetCredentials(); err != nil { - return nil, fmt.Errorf("failed to retrieve credentials from %s: %w", cmd.CredentialsSource, err) - } - } - params := &external.AddExternalParams{ Body: external.AddExternalBody{ RunsOnNodeID: cmd.RunsOnNodeID, @@ -133,6 +115,7 @@ func (cmd *addExternalCommand) Run() (commands.Result, error) { MetricsMode: pointer.ToString(strings.ToUpper(cmd.MetricsMode)), Group: cmd.Group, SkipConnectionCheck: cmd.SkipConnectionCheck, + CredentialsSource: cmd.CredentialsSource, }, Context: commands.Ctx, } @@ -162,7 +145,7 @@ func init() { AddExternalC.Flag("username", "External username").StringVar(&AddExternal.Username) AddExternalC.Flag("password", "External password").StringVar(&AddExternal.Password) - AddExternalC.Flag("credentials-source", "Credentials provider").ExistingFileVar(&AddExternal.CredentialsSource) + AddExternalC.Flag("credentials-source", "Credentials provider").StringVar(&AddExternal.CredentialsSource) AddExternalC.Flag("scheme", "Scheme to generate URI to exporter metrics endpoints"). PlaceHolder("http or https").StringVar(&AddExternal.Scheme) diff --git a/admin/commands/management/add_external_serverless.go b/admin/commands/management/add_external_serverless.go index 6339630c9a..37f4fd3808 100644 --- a/admin/commands/management/add_external_serverless.go +++ b/admin/commands/management/add_external_serverless.go @@ -75,18 +75,6 @@ type addExternalServerlessCommand struct { SkipConnectionCheck bool } -func (cmd *addExternalServerlessCommand) GetCredentials() error { - creds, err := commands.ReadFromSource(cmd.CredentialsSource) - if err != nil { - return fmt.Errorf("%w", err) - } - - cmd.Password = creds.Password - cmd.Username = creds.Username - - return nil -} - func (cmd *addExternalServerlessCommand) Run() (commands.Result, error) { customLabels, err := commands.ParseCustomLabels(cmd.CustomLabels) if err != nil { @@ -107,12 +95,6 @@ func (cmd *addExternalServerlessCommand) Run() (commands.Result, error) { cmd.MetricsPath = fmt.Sprintf("/%s", cmd.MetricsPath) } - if cmd.CredentialsSource != "" { - if err := cmd.GetCredentials(); err != nil { - return nil, fmt.Errorf("failed to retrieve credentials from %s: %w", cmd.CredentialsSource, err) - } - } - params := &external.AddExternalParams{ Body: external.AddExternalBody{ AddNode: &external.AddExternalParamsBodyAddNode{ @@ -141,6 +123,7 @@ func (cmd *addExternalServerlessCommand) Run() (commands.Result, error) { MetricsMode: pointer.ToString(external.AddExternalBodyMetricsModePULL), Group: cmd.Group, SkipConnectionCheck: cmd.SkipConnectionCheck, + CredentialsSource: cmd.CredentialsSource, }, Context: commands.Ctx, } @@ -224,7 +207,7 @@ func init() { AddExternalServerlessC.Flag("username", "External username").StringVar(&AddExternalServerless.Username) AddExternalServerlessC.Flag("password", "External password").StringVar(&AddExternalServerless.Password) - AddExternalServerlessC.Flag("credentials-source", "Credentials provider").ExistingFileVar(&AddExternalServerless.CredentialsSource) + AddExternalServerlessC.Flag("credentials-source", "Credentials provider").StringVar(&AddExternalServerless.CredentialsSource) AddExternalServerlessC.Flag("address", "External exporter address and port"). PlaceHolder("1.2.3.4:9000").StringVar(&AddExternalServerless.Address) diff --git a/admin/commands/management/add_haproxy.go b/admin/commands/management/add_haproxy.go index 9a375db026..f7a1ed84d4 100644 --- a/admin/commands/management/add_haproxy.go +++ b/admin/commands/management/add_haproxy.go @@ -61,18 +61,6 @@ type addHAProxyCommand struct { SkipConnectionCheck bool } -func (cmd *addHAProxyCommand) GetCredentials() error { - creds, err := commands.ReadFromSource(cmd.CredentialsSource) - if err != nil { - return fmt.Errorf("%w", err) - } - - cmd.Password = creds.Password - cmd.Username = creds.Username - - return nil -} - func (cmd *addHAProxyCommand) Run() (commands.Result, error) { isSupported, err := helpers.IsHAProxySupported() if !isSupported { @@ -98,12 +86,6 @@ func (cmd *addHAProxyCommand) Run() (commands.Result, error) { cmd.MetricsPath = fmt.Sprintf("/%s", cmd.MetricsPath) } - if cmd.CredentialsSource != "" { - if err := cmd.GetCredentials(); err != nil { - return nil, fmt.Errorf("failed to retrieve credentials from %s: %w", cmd.CredentialsSource, err) - } - } - params := &ha_proxy.AddHAProxyParams{ Body: ha_proxy.AddHAProxyBody{ ServiceName: cmd.ServiceName, @@ -119,6 +101,7 @@ func (cmd *addHAProxyCommand) Run() (commands.Result, error) { CustomLabels: customLabels, MetricsMode: pointer.ToString(strings.ToUpper(cmd.MetricsMode)), SkipConnectionCheck: cmd.SkipConnectionCheck, + CredentialsSource: cmd.CredentialsSource, }, Context: commands.Ctx, } @@ -146,7 +129,7 @@ func init() { AddHAProxyC.Flag("username", "HAProxy username").StringVar(&AddHAProxy.Username) AddHAProxyC.Flag("password", "HAProxy password").StringVar(&AddHAProxy.Password) - AddHAProxyC.Flag("credentials-source", "Credentials provider").ExistingFileVar(&AddHAProxy.CredentialsSource) + AddHAProxyC.Flag("credentials-source", "Credentials provider").StringVar(&AddHAProxy.CredentialsSource) AddHAProxyC.Flag("scheme", "Scheme to generate URI to exporter metrics endpoints"). PlaceHolder("http or https").StringVar(&AddHAProxy.Scheme) diff --git a/admin/commands/management/add_mongodb.go b/admin/commands/management/add_mongodb.go index ce74938547..3c976f7cc3 100644 --- a/admin/commands/management/add_mongodb.go +++ b/admin/commands/management/add_mongodb.go @@ -97,19 +97,6 @@ func (cmd *addMongoDBCommand) GetSocket() string { return cmd.Socket } -func (cmd *addMongoDBCommand) GetCredentials() error { - creds, err := commands.ReadFromSource(cmd.CredentialsSource) - if err != nil { - return fmt.Errorf("%w", err) - } - - cmd.AgentPassword = creds.AgentPassword - cmd.Password = creds.Password - cmd.Username = creds.Username - - return nil -} - func (cmd *addMongoDBCommand) Run() (commands.Result, error) { customLabels, err := commands.ParseCustomLabels(cmd.CustomLabels) if err != nil { @@ -143,26 +130,21 @@ func (cmd *addMongoDBCommand) Run() (commands.Result, error) { return nil, err } - if cmd.CredentialsSource != "" { - if err := cmd.GetCredentials(); err != nil { - return nil, fmt.Errorf("failed to retrieve credentials from %s: %w", cmd.CredentialsSource, err) - } - } - params := &mongodb.AddMongoDBParams{ Body: mongodb.AddMongoDBBody{ - NodeID: cmd.NodeID, - ServiceName: serviceName, - Address: host, - Port: int64(port), - Socket: socket, - PMMAgentID: cmd.PMMAgentID, - Environment: cmd.Environment, - Cluster: cmd.Cluster, - ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, + NodeID: cmd.NodeID, + ServiceName: serviceName, + Address: host, + Port: int64(port), + Socket: socket, + PMMAgentID: cmd.PMMAgentID, + Environment: cmd.Environment, + Cluster: cmd.Cluster, + ReplicationSet: cmd.ReplicationSet, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CredentialsSource: cmd.CredentialsSource, QANMongodbProfiler: cmd.QuerySource == mongodbQuerySourceProfiler, @@ -216,7 +198,7 @@ func init() { AddMongoDBC.Flag("username", "MongoDB username").StringVar(&AddMongoDB.Username) AddMongoDBC.Flag("password", "MongoDB password").StringVar(&AddMongoDB.Password) AddMongoDBC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddMongoDB.AgentPassword) - AddMongoDBC.Flag("credentials-source", "Credentials provider").ExistingFileVar(&AddMongoDB.CredentialsSource) + AddMongoDBC.Flag("credentials-source", "Credentials provider").StringVar(&AddMongoDB.CredentialsSource) querySources := []string{mongodbQuerySourceProfiler, mongodbQuerySourceNone} // TODO add "auto" querySourceHelp := fmt.Sprintf("Source of queries, one of: %s (default: %s)", strings.Join(querySources, ", "), querySources[0]) diff --git a/admin/commands/management/add_mysql.go b/admin/commands/management/add_mysql.go index a119759d34..d47b3eb6af 100644 --- a/admin/commands/management/add_mysql.go +++ b/admin/commands/management/add_mysql.go @@ -94,6 +94,7 @@ type addMySQLCommand struct { Username string Password string AgentPassword string + CredentialsSource string Environment string Cluster string ReplicationSet string @@ -190,19 +191,20 @@ func (cmd *addMySQLCommand) Run() (commands.Result, error) { params := &mysql.AddMySQLParams{ Body: mysql.AddMySQLBody{ - NodeID: cmd.NodeID, - ServiceName: serviceName, - Address: host, - Socket: socket, - Port: int64(port), - PMMAgentID: cmd.PMMAgentID, - Environment: cmd.Environment, - Cluster: cmd.Cluster, - ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CustomLabels: customLabels, + NodeID: cmd.NodeID, + ServiceName: serviceName, + Address: host, + Socket: socket, + Port: int64(port), + PMMAgentID: cmd.PMMAgentID, + Environment: cmd.Environment, + Cluster: cmd.Cluster, + ReplicationSet: cmd.ReplicationSet, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CredentialsSource: cmd.CredentialsSource, + CustomLabels: customLabels, QANMysqlSlowlog: cmd.QuerySource == mysqlQuerySourceSlowLog, QANMysqlPerfschema: cmd.QuerySource == mysqlQuerySourcePerfSchema, @@ -255,6 +257,7 @@ func init() { AddMySQLC.Flag("username", "MySQL username").Default("root").StringVar(&AddMySQL.Username) AddMySQLC.Flag("password", "MySQL password").StringVar(&AddMySQL.Password) AddMySQLC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddMySQL.AgentPassword) + AddMySQLC.Flag("credentials-source", "Credentials provider").StringVar(&AddMySQL.CredentialsSource) querySources := []string{mysqlQuerySourceSlowLog, mysqlQuerySourcePerfSchema, mysqlQuerySourceNone} // TODO add "auto", make it default querySourceHelp := fmt.Sprintf("Source of SQL queries, one of: %s (default: %s)", strings.Join(querySources, ", "), querySources[0]) diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index 5012a8a456..c30eac5d19 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -89,19 +89,6 @@ func (cmd *addPostgreSQLCommand) GetSocket() string { return cmd.Socket } -func (cmd *addPostgreSQLCommand) GetCredentials() error { - creds, err := commands.ReadFromSource(cmd.CredentialsSource) - if err != nil { - return fmt.Errorf("%w", err) - } - - cmd.AgentPassword = creds.AgentPassword - cmd.Password = creds.Password - cmd.Username = creds.Username - - return nil -} - func (cmd *addPostgreSQLCommand) Run() (commands.Result, error) { customLabels, err := commands.ParseCustomLabels(cmd.CustomLabels) if err != nil { @@ -156,12 +143,6 @@ func (cmd *addPostgreSQLCommand) Run() (commands.Result, error) { } } - if cmd.CredentialsSource != "" { - if err := cmd.GetCredentials(); err != nil { - return nil, fmt.Errorf("failed to retrieve credentials from %s: %w", cmd.CredentialsSource, err) - } - } - params := &postgresql.AddPostgreSQLParams{ Body: postgresql.AddPostgreSQLBody{ NodeID: cmd.NodeID, @@ -175,6 +156,7 @@ func (cmd *addPostgreSQLCommand) Run() (commands.Result, error) { AgentPassword: cmd.AgentPassword, Socket: socket, SkipConnectionCheck: cmd.SkipConnectionCheck, + CredentialsSource: cmd.CredentialsSource, PMMAgentID: cmd.PMMAgentID, Environment: cmd.Environment, @@ -226,7 +208,7 @@ func init() { AddPostgreSQLC.Flag("password", "PostgreSQL password").StringVar(&AddPostgreSQL.Password) AddPostgreSQLC.Flag("database", "PostgreSQL database").StringVar(&AddPostgreSQL.Database) AddPostgreSQLC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddPostgreSQL.AgentPassword) - AddPostgreSQLC.Flag("credentials-source", "Credentials provider").ExistingFileVar(&AddPostgreSQL.CredentialsSource) + AddPostgreSQLC.Flag("credentials-source", "Credentials provider").StringVar(&AddPostgreSQL.CredentialsSource) AddPostgreSQLC.Flag("node-id", "Node ID (default is autodetected)").StringVar(&AddPostgreSQL.NodeID) AddPostgreSQLC.Flag("pmm-agent-id", "The pmm-agent identifier which runs this instance (default is autodetected)").StringVar(&AddPostgreSQL.PMMAgentID) diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index 69ce68b31d..0eb2c312e6 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -81,19 +81,6 @@ func (cmd *addProxySQLCommand) GetSocket() string { return cmd.Socket } -func (cmd *addProxySQLCommand) GetCredentials() error { - creds, err := commands.ReadFromSource(cmd.CredentialsSource) - if err != nil { - return fmt.Errorf("%w", err) - } - - cmd.AgentPassword = creds.AgentPassword - cmd.Password = creds.Password - cmd.Username = creds.Username - - return nil -} - func (cmd *addProxySQLCommand) Run() (commands.Result, error) { customLabels, err := commands.ParseCustomLabels(cmd.CustomLabels) if err != nil { @@ -118,26 +105,21 @@ func (cmd *addProxySQLCommand) Run() (commands.Result, error) { return nil, err } - if cmd.CredentialsSource != "" { - if err := cmd.GetCredentials(); err != nil { - return nil, fmt.Errorf("failed to retrieve credentials from %s: %w", cmd.CredentialsSource, err) - } - } - params := &proxysql.AddProxySQLParams{ Body: proxysql.AddProxySQLBody{ - NodeID: cmd.NodeID, - ServiceName: serviceName, - Address: host, - Port: int64(port), - Socket: socket, - PMMAgentID: cmd.PMMAgentID, - Environment: cmd.Environment, - Cluster: cmd.Cluster, - ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, + NodeID: cmd.NodeID, + ServiceName: serviceName, + Address: host, + Port: int64(port), + Socket: socket, + PMMAgentID: cmd.PMMAgentID, + Environment: cmd.Environment, + Cluster: cmd.Cluster, + ReplicationSet: cmd.ReplicationSet, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CredentialsSource: cmd.CredentialsSource, CustomLabels: customLabels, SkipConnectionCheck: cmd.SkipConnectionCheck, @@ -180,7 +162,7 @@ func init() { AddProxySQLC.Flag("username", "ProxySQL username").Default("admin").StringVar(&AddProxySQL.Username) AddProxySQLC.Flag("password", "ProxySQL password").Default("admin").StringVar(&AddProxySQL.Password) AddProxySQLC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddProxySQL.AgentPassword) - AddProxySQLC.Flag("credentials-source", "Credentials provider").ExistingFileVar(&AddProxySQL.CredentialsSource) + AddProxySQLC.Flag("credentials-source", "Credentials provider").StringVar(&AddProxySQL.CredentialsSource) AddProxySQLC.Flag("environment", "Environment name").StringVar(&AddProxySQL.Environment) AddProxySQLC.Flag("cluster", "Cluster name").StringVar(&AddProxySQL.Cluster) diff --git a/api/managementpb/external.pb.go b/api/managementpb/external.pb.go index c50d9b7e50..7ec8f4d733 100644 --- a/api/managementpb/external.pb.go +++ b/api/managementpb/external.pb.go @@ -78,6 +78,8 @@ type AddExternalRequest struct { MetricsMode MetricsMode `protobuf:"varint,17,opt,name=metrics_mode,json=metricsMode,proto3,enum=management.MetricsMode" json:"metrics_mode,omitempty"` // Skip connection check. SkipConnectionCheck bool `protobuf:"varint,21,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` + // Credentials provider + CredentialsSource string `protobuf:"bytes,22,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` } func (x *AddExternalRequest) Reset() { @@ -238,6 +240,13 @@ func (x *AddExternalRequest) GetSkipConnectionCheck() bool { return false } +func (x *AddExternalRequest) GetCredentialsSource() string { + if x != nil { + return x.CredentialsSource + } + return "" +} + type AddExternalResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -313,7 +322,7 @@ var file_managementpb_external_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x06, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x06, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0f, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, @@ -358,56 +367,59 @@ var file_managementpb_external_proto_rawDesc = []byte{ 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x1a, 0x3f, - 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, - 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0x8d, 0x03, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x80, 0x03, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x02, 0x92, 0x41, 0x85, 0x02, 0x12, 0x14, 0x41, 0x64, - 0x64, 0x20, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x1a, 0xec, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61, - 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, - 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, - 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, - 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, - 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, - 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x2d, + 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, + 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, + 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0x8d, 0x03, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x12, 0x80, 0x03, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x02, 0x92, 0x41, 0x85, 0x02, 0x12, 0x14, 0x41, 0x64, 0x64, + 0x20, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x1a, 0xec, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61, 0x64, + 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, + 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, + 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, + 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, + 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, + 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, + 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x72, + 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, + 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, + 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/api/managementpb/external.proto b/api/managementpb/external.proto index b4a75d6c33..4877735bed 100644 --- a/api/managementpb/external.proto +++ b/api/managementpb/external.proto @@ -71,6 +71,8 @@ message AddExternalRequest { MetricsMode metrics_mode = 17; // Skip connection check. bool skip_connection_check = 21; + // Credentials provider + string credentials_source = 22; } message AddExternalResponse { diff --git a/api/managementpb/haproxy.pb.go b/api/managementpb/haproxy.pb.go index 8fcb419b5d..a0e50c1bd3 100644 --- a/api/managementpb/haproxy.pb.go +++ b/api/managementpb/haproxy.pb.go @@ -72,6 +72,8 @@ type AddHAProxyRequest struct { MetricsMode MetricsMode `protobuf:"varint,16,opt,name=metrics_mode,json=metricsMode,proto3,enum=management.MetricsMode" json:"metrics_mode,omitempty"` // Skip connection check. SkipConnectionCheck bool `protobuf:"varint,21,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` + // Credentials provider + CredentialsSource string `protobuf:"bytes,22,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` } func (x *AddHAProxyRequest) Reset() { @@ -218,6 +220,13 @@ func (x *AddHAProxyRequest) GetSkipConnectionCheck() bool { return false } +func (x *AddHAProxyRequest) GetCredentialsSource() string { + if x != nil { + return x.CredentialsSource + } + return "" +} + type AddHAProxyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -293,7 +302,7 @@ var file_managementpb_haproxy_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x05, 0x0a, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x05, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, @@ -334,52 +343,55 @@ var file_managementpb_haproxy_proto_rawDesc = []byte{ 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x1a, 0x3f, - 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x93, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xd1, 0x02, 0x0a, 0x07, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x12, 0xc5, 0x02, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, - 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, - 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xf7, 0x01, 0x92, 0x41, 0xce, 0x01, 0x12, 0x0b, 0x41, 0x64, 0x64, 0x20, 0x48, 0x41, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x1a, 0xbe, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x48, 0x41, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, - 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, - 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x48, 0x41, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, - 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x48, 0x61, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, - 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x2d, + 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, + 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x93, + 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x32, 0xd1, 0x02, 0x0a, 0x07, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x12, 0xc5, 0x02, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, + 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, + 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x48, + 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf7, + 0x01, 0x92, 0x41, 0xce, 0x01, 0x12, 0x0b, 0x41, 0x64, 0x64, 0x20, 0x48, 0x41, 0x50, 0x72, 0x6f, + 0x78, 0x79, 0x1a, 0xbe, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2e, + 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, + 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, + 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, + 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, + 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, + 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, + 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x48, 0x61, 0x70, + 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, + 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/api/managementpb/haproxy.proto b/api/managementpb/haproxy.proto index e4fa446e51..5dba2fff37 100644 --- a/api/managementpb/haproxy.proto +++ b/api/managementpb/haproxy.proto @@ -65,6 +65,8 @@ message AddHAProxyRequest { MetricsMode metrics_mode = 16; // Skip connection check. bool skip_connection_check = 21; + // Credentials provider + string credentials_source = 22; } message AddHAProxyResponse { diff --git a/api/managementpb/json/client/external/add_external_responses.go b/api/managementpb/json/client/external/add_external_responses.go index 9c224659a8..56760e62f6 100644 --- a/api/managementpb/json/client/external/add_external_responses.go +++ b/api/managementpb/json/client/external/add_external_responses.go @@ -180,6 +180,9 @@ type AddExternalBody struct { // Skip connection check. SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + // Credentials provider + CredentialsSource string `json:"credentials_source,omitempty"` + // add node AddNode *AddExternalParamsBodyAddNode `json:"add_node,omitempty"` } diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go index a9abf55bcc..d27ac04c28 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go @@ -172,6 +172,9 @@ type AddHAProxyBody struct { // Skip connection check. SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + // Credentials provider + CredentialsSource string `json:"credentials_source,omitempty"` + // add node AddNode *AddHAProxyParamsBodyAddNode `json:"add_node,omitempty"` } diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go index f04c9cb214..ee1ff556c5 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go @@ -220,6 +220,9 @@ type AddMongoDBBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `json:"credentials_source,omitempty"` + // add node AddNode *AddMongoDBParamsBodyAddNode `json:"add_node,omitempty"` } diff --git a/api/managementpb/json/client/my_sql/add_my_sql_responses.go b/api/managementpb/json/client/my_sql/add_my_sql_responses.go index 8e54f71fc5..80a8feacfd 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_responses.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_responses.go @@ -218,6 +218,9 @@ type AddMySQLBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `json:"credentials_source,omitempty"` + // add node AddNode *AddMySQLParamsBodyAddNode `json:"add_node,omitempty"` } diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go index 61ec9cdb44..0b86aa2ee7 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go @@ -211,6 +211,9 @@ type AddPostgreSQLBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `json:"credentials_source,omitempty"` + // add node AddNode *AddPostgreSQLParamsBodyAddNode `json:"add_node,omitempty"` } diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go index ddfa16299e..cbe9a3f4d4 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go @@ -190,6 +190,9 @@ type AddProxySQLBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `json:"credentials_source,omitempty"` + // add node AddNode *AddProxySQLParamsBodyAddNode `json:"add_node,omitempty"` } diff --git a/api/managementpb/json/managementpb.json b/api/managementpb/json/managementpb.json index 0f7e7c0cd5..d340dbf8f6 100644 --- a/api/managementpb/json/managementpb.json +++ b/api/managementpb/json/managementpb.json @@ -1528,6 +1528,11 @@ "type": "string", "x-order": 12 }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 18 + }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -1871,6 +1876,11 @@ "type": "string", "x-order": 11 }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 16 + }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -2220,6 +2230,11 @@ "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", "x-order": 27 }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 30 + }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -2774,6 +2789,11 @@ "type": "string", "x-order": 9 }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 29 + }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -3789,6 +3809,11 @@ "type": "string", "x-order": 10 }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 28 + }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -4420,6 +4445,11 @@ "type": "string", "x-order": 9 }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 21 + }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", diff --git a/api/managementpb/mongodb.pb.go b/api/managementpb/mongodb.pb.go index 1205bde7bb..0f3aaac317 100644 --- a/api/managementpb/mongodb.pb.go +++ b/api/managementpb/mongodb.pb.go @@ -102,6 +102,8 @@ type AddMongoDBRequest struct { EnableAllCollectors bool `protobuf:"varint,30,opt,name=enable_all_collectors,json=enableAllCollectors,proto3" json:"enable_all_collectors,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,31,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `protobuf:"bytes,32,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` } func (x *AddMongoDBRequest) Reset() { @@ -346,6 +348,13 @@ func (x *AddMongoDBRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } +func (x *AddMongoDBRequest) GetCredentialsSource() string { + if x != nil { + return x.CredentialsSource + } + return "" +} + type AddMongoDBResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -431,7 +440,7 @@ var file_managementpb_mongodb_proto_rawDesc = []byte{ 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x0a, 0x0a, 0x11, 0x41, 0x64, + 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf4, 0x0a, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, @@ -512,60 +521,63 @@ var file_managementpb_mongodb_proto_rawDesc = []byte{ 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0xe6, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, - 0x10, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, - 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, - 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x32, 0x93, 0x03, 0x0a, 0x07, 0x4d, - 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x12, 0x87, 0x03, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x4d, 0x6f, - 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x02, 0x92, 0x41, 0x90, 0x02, 0x12, 0x0b, 0x41, 0x64, 0x64, - 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x1a, 0x80, 0x02, 0x41, 0x64, 0x64, 0x73, 0x20, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, - 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, - 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, - 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, - 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, - 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, + 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, + 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, + 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xe6, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, - 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2f, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, - 0x42, 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, - 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, - 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, + 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, + 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, + 0x62, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x32, 0x93, 0x03, 0x0a, 0x07, 0x4d, 0x6f, + 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x12, 0x87, 0x03, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x02, 0x92, 0x41, 0x90, 0x02, 0x12, 0x0b, 0x41, 0x64, 0x64, 0x20, + 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x1a, 0x80, 0x02, 0x41, 0x64, 0x64, 0x73, 0x20, 0x4d, + 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, + 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, + 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, + 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, + 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, + 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, + 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x6d, + 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, + 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, + 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, + 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2f, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, + 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x42, 0x0c, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, + 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, + 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, + 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/mongodb.proto b/api/managementpb/mongodb.proto index 5e9acaeda6..e5a4225b9f 100644 --- a/api/managementpb/mongodb.proto +++ b/api/managementpb/mongodb.proto @@ -98,6 +98,8 @@ message AddMongoDBRequest { bool enable_all_collectors = 30; // Exporter log level inventory.LogLevel log_level = 31; + // Credentials provider + string credentials_source = 32; } message AddMongoDBResponse { diff --git a/api/managementpb/mysql.pb.go b/api/managementpb/mysql.pb.go index bda48dc396..ded205dc33 100644 --- a/api/managementpb/mysql.pb.go +++ b/api/managementpb/mysql.pb.go @@ -101,6 +101,8 @@ type AddMySQLRequest struct { AgentPassword string `protobuf:"bytes,28,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,29,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `protobuf:"bytes,30,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` } func (x *AddMySQLRequest) Reset() { @@ -338,6 +340,13 @@ func (x *AddMySQLRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } +func (x *AddMySQLRequest) GetCredentialsSource() string { + if x != nil { + return x.CredentialsSource + } + return "" +} + type AddMySQLResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -440,7 +449,7 @@ var file_managementpb_mysql_proto_rawDesc = []byte{ 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x09, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, + 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x0a, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, @@ -514,65 +523,68 @@ var file_managementpb_mysql_proto_rawDesc = []byte{ 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0xcd, 0x02, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x79, 0x73, - 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, - 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, - 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x0f, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, - 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x32, 0x84, 0x03, 0x0a, 0x05, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xfa, 0x02, 0x0a, 0x08, - 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1b, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xb2, 0x02, 0x92, 0x41, 0x8b, 0x02, 0x12, 0x09, 0x41, 0x64, 0x64, 0x20, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xfd, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, - 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, - 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, - 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, - 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, - 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, - 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8d, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x4d, 0x79, 0x73, - 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, - 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, + 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, + 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0xcd, 0x02, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, + 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, + 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, + 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, 0x79, + 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, + 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, + 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, + 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, + 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x0f, + 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x12, + 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x32, 0x84, 0x03, 0x0a, 0x05, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xfa, 0x02, 0x0a, 0x08, 0x41, + 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1b, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xb2, 0x02, 0x92, 0x41, 0x8b, 0x02, 0x12, 0x09, 0x41, 0x64, 0x64, 0x20, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xfd, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x4d, 0x79, 0x53, 0x51, + 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, + 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, + 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, + 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, + 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, + 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, + 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8d, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x4d, 0x79, 0x73, 0x71, + 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, + 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/mysql.proto b/api/managementpb/mysql.proto index f8c70895bd..14c68843ba 100644 --- a/api/managementpb/mysql.proto +++ b/api/managementpb/mysql.proto @@ -98,6 +98,8 @@ message AddMySQLRequest { string agent_password = 28; // Exporter log level inventory.LogLevel log_level = 29; + // Credentials provider + string credentials_source = 30; } message AddMySQLResponse { diff --git a/api/managementpb/postgresql.pb.go b/api/managementpb/postgresql.pb.go index c641c68b00..ea1a7faa10 100644 --- a/api/managementpb/postgresql.pb.go +++ b/api/managementpb/postgresql.pb.go @@ -95,6 +95,8 @@ type AddPostgreSQLRequest struct { AgentPassword string `protobuf:"bytes,26,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,28,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `protobuf:"bytes,29,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` } func (x *AddPostgreSQLRequest) Reset() { @@ -325,6 +327,13 @@ func (x *AddPostgreSQLRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } +func (x *AddPostgreSQLRequest) GetCredentialsSource() string { + if x != nil { + return x.CredentialsSource + } + return "" +} + type AddPostgreSQLResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -418,7 +427,7 @@ var file_managementpb_postgresql_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x09, 0x0a, + 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x09, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, @@ -491,69 +500,72 @@ var file_managementpb_postgresql_proto_rawDesc = []byte{ 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x88, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, - 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x74, - 0x0a, 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, - 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x12, 0x77, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, - 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, - 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, - 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, - 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, - 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x32, 0x81, 0x03, - 0x0a, 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0xf2, 0x02, 0x0a, - 0x0d, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0x20, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, - 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x02, 0x92, 0x41, 0xef, 0x01, 0x12, 0x0e, 0x41, 0x64, 0x64, 0x20, - 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x1a, 0xdc, 0x01, 0x41, 0x64, 0x64, - 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, - 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, - 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, - 0x64, 0x73, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, - 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, - 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, - 0x2a, 0x42, 0x92, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, - 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, + 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x88, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, + 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x74, 0x0a, + 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, + 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, + 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, + 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x77, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, + 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, 0x6e, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, + 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x32, 0x81, 0x03, 0x0a, + 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0xf2, 0x02, 0x0a, 0x0d, + 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0x20, 0x2e, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, + 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x21, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x9b, 0x02, 0x92, 0x41, 0xef, 0x01, 0x12, 0x0e, 0x41, 0x64, 0x64, 0x20, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x1a, 0xdc, 0x01, 0x41, 0x64, 0x64, 0x73, + 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x70, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, + 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, + 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, + 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, + 0x73, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, + 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, + 0x42, 0x92, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, + 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, + 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/postgresql.proto b/api/managementpb/postgresql.proto index d0afa80a90..e074e792a6 100644 --- a/api/managementpb/postgresql.proto +++ b/api/managementpb/postgresql.proto @@ -92,6 +92,8 @@ message AddPostgreSQLRequest { string agent_password = 26; // Exporter log level inventory.LogLevel log_level = 28; + // Credentials provider + string credentials_source = 29; } message AddPostgreSQLResponse { diff --git a/api/managementpb/proxysql.pb.go b/api/managementpb/proxysql.pb.go index 30847c4453..be1dff6f1f 100644 --- a/api/managementpb/proxysql.pb.go +++ b/api/managementpb/proxysql.pb.go @@ -81,6 +81,8 @@ type AddProxySQLRequest struct { AgentPassword string `protobuf:"bytes,20,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,21,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` + // Credentials provider + CredentialsSource string `protobuf:"bytes,22,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` } func (x *AddProxySQLRequest) Reset() { @@ -262,6 +264,13 @@ func (x *AddProxySQLRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } +func (x *AddProxySQLRequest) GetCredentialsSource() string { + if x != nil { + return x.CredentialsSource + } + return "" +} + type AddProxySQLResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -339,7 +348,7 @@ var file_managementpb_proxysql_proto_rawDesc = []byte{ 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x07, 0x0a, 0x12, 0x41, + 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x07, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, @@ -392,53 +401,56 @@ var file_managementpb_proxysql_proto_rawDesc = []byte{ 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, - 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, - 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, - 0xf0, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xe3, 0x02, 0x0a, - 0x0b, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x02, - 0x92, 0x41, 0xe8, 0x01, 0x12, 0x0c, 0x41, 0x64, 0x64, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, - 0x51, 0x4c, 0x1a, 0xd7, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, - 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, - 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, - 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x2f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, - 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, - 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, - 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x72, + 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, + 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, + 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, + 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xf0, + 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xe3, 0x02, 0x0a, 0x0b, + 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, + 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x02, 0x92, + 0x41, 0xe8, 0x01, 0x12, 0x0c, 0x41, 0x64, 0x64, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x1a, 0xd7, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, + 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, + 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, + 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, + 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, + 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/proxysql.proto b/api/managementpb/proxysql.proto index 2dbda40988..63e672291f 100644 --- a/api/managementpb/proxysql.proto +++ b/api/managementpb/proxysql.proto @@ -78,6 +78,9 @@ message AddProxySQLRequest { string agent_password = 20; // Exporter log level inventory.LogLevel log_level = 21; + // Credentials provider + string credentials_source = 22; + } message AddProxySQLResponse { diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index c724553f55..44e374ccf2 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -21172,6 +21172,11 @@ "description": "Skip connection check.", "type": "boolean", "x-order": 17 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 18 } } } @@ -21505,6 +21510,11 @@ "description": "Skip connection check.", "type": "boolean", "x-order": 15 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 16 } } } @@ -21919,6 +21929,11 @@ "debug" ], "x-order": 29 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 30 } } } @@ -22482,6 +22497,11 @@ "debug" ], "x-order": 28 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 29 } } } @@ -23490,6 +23510,11 @@ "debug" ], "x-order": 27 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 28 } } } @@ -24086,6 +24111,11 @@ "debug" ], "x-order": 20 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 21 } } } diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 9b3ef43756..f06e8a38ae 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -15084,6 +15084,11 @@ "description": "Skip connection check.", "type": "boolean", "x-order": 17 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 18 } } } @@ -15417,6 +15422,11 @@ "description": "Skip connection check.", "type": "boolean", "x-order": 15 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 16 } } } @@ -15831,6 +15841,11 @@ "debug" ], "x-order": 29 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 30 } } } @@ -16394,6 +16409,11 @@ "debug" ], "x-order": 28 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 29 } } } @@ -17402,6 +17422,11 @@ "debug" ], "x-order": 27 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 28 } } } @@ -17998,6 +18023,11 @@ "debug" ], "x-order": 20 + }, + "credentials_source": { + "type": "string", + "title": "Credentials provider", + "x-order": 21 } } } From cddfb8a019f8ea9c582e8ef0df7c06292df7f431 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 2 Aug 2022 22:08:03 +0200 Subject: [PATCH 02/29] PMM-10231 Credentials source implementation. API + agent --- agent/client/channel/channel.go | 4 +- agent/client/client.go | 36 +- agent/client/deps.go | 6 +- .../mock_credentials_source_parser_test.go | 30 + .../client/mock_defaults_file_parser_test.go | 30 - agent/defaultsfile/defaults_file.go | 20 +- agent/defaultsfile/defaults_file_test.go | 14 +- api/agentpb/agent.go | 72 +- api/agentpb/agent.pb.go | 919 +++++++++--------- api/agentpb/agent.proto | 16 +- api/agentpb/agent.validator.pb.go | 20 +- managed/cmd/pmm-managed/main.go | 4 +- managed/services/agents/channel/channel.go | 4 +- ...go => credentials_source_agent_invoker.go} | 20 +- ... credentials_source_agent_invoker_test.go} | 0 15 files changed, 599 insertions(+), 596 deletions(-) create mode 100644 agent/client/mock_credentials_source_parser_test.go delete mode 100644 agent/client/mock_defaults_file_parser_test.go rename managed/services/agents/{parse_defaults_file.go => credentials_source_agent_invoker.go} (76%) rename managed/services/agents/{parse_defaults_file_test.go => credentials_source_agent_invoker_test.go} (100%) diff --git a/agent/client/channel/channel.go b/agent/client/channel/channel.go index e4857c709d..79131cbe66 100644 --- a/agent/client/channel/channel.go +++ b/agent/client/channel/channel.go @@ -277,10 +277,10 @@ func (c *Channel) runReceiver() { ID: msg.Id, Payload: p.PbmSwitchPitr, } - case *agentpb.ServerMessage_ParseDefaultsFile: + case *agentpb.ServerMessage_ParseCredentialsSource: c.requests <- &ServerRequest{ ID: msg.Id, - Payload: p.ParseDefaultsFile, + Payload: p.ParseCredentialsSource, } // responses diff --git a/agent/client/client.go b/agent/client/client.go index 02ada80e96..b7bb7f1c82 100644 --- a/agent/client/client.go +++ b/agent/client/client.go @@ -54,11 +54,11 @@ const ( // Client represents pmm-agent's connection to nginx/pmm-managed. type Client struct { - cfg *config.Config - supervisor supervisor - connectionChecker connectionChecker - softwareVersioner softwareVersioner - defaultsFileParser defaultsFileParser + cfg *config.Config + supervisor supervisor + connectionChecker connectionChecker + softwareVersioner softwareVersioner + credentialsSourceParser credentialsSourceParser l *logrus.Entry backoff *backoff.Backoff @@ -77,18 +77,18 @@ type Client struct { // New creates new client. // // Caller should call Run. -func New(cfg *config.Config, supervisor supervisor, connectionChecker connectionChecker, sv softwareVersioner, dfp defaultsFileParser) *Client { +func New(cfg *config.Config, supervisor supervisor, connectionChecker connectionChecker, sv softwareVersioner, dfp credentialsSourceParser) *Client { return &Client{ - cfg: cfg, - supervisor: supervisor, - connectionChecker: connectionChecker, - softwareVersioner: sv, - l: logrus.WithField("component", "client"), - backoff: backoff.New(backoffMinDelay, backoffMaxDelay), - done: make(chan struct{}), - dialTimeout: dialTimeout, - runner: runner.New(cfg.RunnerCapacity), - defaultsFileParser: dfp, + cfg: cfg, + supervisor: supervisor, + connectionChecker: connectionChecker, + softwareVersioner: sv, + l: logrus.WithField("component", "client"), + backoff: backoff.New(backoffMinDelay, backoffMaxDelay), + done: make(chan struct{}), + dialTimeout: dialTimeout, + runner: runner.New(cfg.RunnerCapacity), + credentialsSourceParser: dfp, } } @@ -331,8 +331,8 @@ func (c *Client) processChannelRequests(ctx context.Context) { resp.Error = err.Error() } responsePayload = &resp - case *agentpb.ParseDefaultsFileRequest: - responsePayload = c.defaultsFileParser.ParseDefaultsFile(p) + case *agentpb.ParseCredentialsSourceRequest: + responsePayload = c.credentialsSourceParser.ParseCredentialsSource(p) default: c.l.Errorf("Unhandled server request: %v.", req) } diff --git a/agent/client/deps.go b/agent/client/deps.go index 44a60379ce..0e5c0492c2 100644 --- a/agent/client/deps.go +++ b/agent/client/deps.go @@ -24,7 +24,7 @@ import ( //go:generate ../../bin/mockery -name=connectionChecker -case=snake -inpkg -testonly //go:generate ../../bin/mockery -name=supervisor -case=snake -inpkg -testonly -//go:generate ../../bin/mockery -name=defaultsFileParser -case=snake -inpkg -testonly +//go:generate ../../bin/mockery -name=credentialsSourceParser -case=snake -inpkg -testonly // connectionChecker is a subset of methods of connectionchecker.ConnectionChecker used by this package. // We use it instead of real type for testing and to avoid dependency cycle. @@ -49,6 +49,6 @@ type supervisor interface { // Collector added to use client as Prometheus collector prometheus.Collector } -type defaultsFileParser interface { - ParseDefaultsFile(req *agentpb.ParseDefaultsFileRequest) *agentpb.ParseDefaultsFileResponse +type credentialsSourceParser interface { + ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse } diff --git a/agent/client/mock_credentials_source_parser_test.go b/agent/client/mock_credentials_source_parser_test.go new file mode 100644 index 0000000000..6554644bc7 --- /dev/null +++ b/agent/client/mock_credentials_source_parser_test.go @@ -0,0 +1,30 @@ +// Code generated by mockery v1.0.0. DO NOT EDIT. + +package client + +import ( + mock "github.com/stretchr/testify/mock" + + agentpb "github.com/percona/pmm/api/agentpb" +) + +// mockCredentialsSourceParser is an autogenerated mock type for the credentialsSourceParser type +type mockCredentialsSourceParser struct { + mock.Mock +} + +// ParseCredentialsSource provides a mock function with given fields: req +func (_m *mockCredentialsSourceParser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { + ret := _m.Called(req) + + var r0 *agentpb.ParseCredentialsSourceResponse + if rf, ok := ret.Get(0).(func(*agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse); ok { + r0 = rf(req) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*agentpb.ParseCredentialsSourceResponse) + } + } + + return r0 +} diff --git a/agent/client/mock_defaults_file_parser_test.go b/agent/client/mock_defaults_file_parser_test.go deleted file mode 100644 index cd04e795e8..0000000000 --- a/agent/client/mock_defaults_file_parser_test.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. - -package client - -import ( - mock "github.com/stretchr/testify/mock" - - agentpb "github.com/percona/pmm/api/agentpb" -) - -// mockDefaultsFileParser is an autogenerated mock type for the defaultsFileParser type -type mockDefaultsFileParser struct { - mock.Mock -} - -// ParseDefaultsFile provides a mock function with given fields: req -func (_m *mockDefaultsFileParser) ParseDefaultsFile(req *agentpb.ParseDefaultsFileRequest) *agentpb.ParseDefaultsFileResponse { - ret := _m.Called(req) - - var r0 *agentpb.ParseDefaultsFileResponse - if rf, ok := ret.Get(0).(func(*agentpb.ParseDefaultsFileRequest) *agentpb.ParseDefaultsFileResponse); ok { - r0 = rf(req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*agentpb.ParseDefaultsFileResponse) - } - } - - return r0 -} diff --git a/agent/defaultsfile/defaults_file.go b/agent/defaultsfile/defaults_file.go index 82d3c59376..2b9184e370 100644 --- a/agent/defaultsfile/defaults_file.go +++ b/agent/defaultsfile/defaults_file.go @@ -44,25 +44,25 @@ type defaultsFile struct { socket string } -// ParseDefaultsFile parses given defaultsFile in request. It returns the database specs. -func (d *Parser) ParseDefaultsFile(req *agentpb.ParseDefaultsFileRequest) *agentpb.ParseDefaultsFileResponse { - var res agentpb.ParseDefaultsFileResponse - defaultsFile, err := parseDefaultsFile(req.ConfigPath, req.ServiceType) +// ParseCredentialsSource parses given file in request. It returns the database specs. +func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { + var res agentpb.ParseCredentialsSourceResponse + credentialsSource, err := parseCredentialsSourceFile(req.FilePath, req.ServiceType) if err != nil { res.Error = err.Error() return &res } - res.Username = defaultsFile.username - res.Password = defaultsFile.password - res.Host = defaultsFile.host - res.Port = defaultsFile.port - res.Socket = defaultsFile.socket + res.Username = credentialsSource.username + res.Password = credentialsSource.password + res.Host = credentialsSource.host + res.Port = credentialsSource.port + res.Socket = credentialsSource.socket return &res } -func parseDefaultsFile(configPath string, serviceType inventorypb.ServiceType) (*defaultsFile, error) { +func parseCredentialsSourceFile(configPath string, serviceType inventorypb.ServiceType) (*defaultsFile, error) { if len(configPath) == 0 { return nil, errors.New("configPath for DefaultsFile is empty") } diff --git a/agent/defaultsfile/defaults_file_test.go b/agent/defaultsfile/defaults_file_test.go index 1106dd1131..569a661225 100644 --- a/agent/defaultsfile/defaults_file_test.go +++ b/agent/defaultsfile/defaults_file_test.go @@ -32,29 +32,29 @@ func TestDefaultsFileParser(t *testing.T) { testCases := []struct { name string - req *agentpb.ParseDefaultsFileRequest + req *agentpb.ParseCredentialsSourceRequest expectedErr string }{ { name: "Valid MySQL file", - req: &agentpb.ParseDefaultsFileRequest{ + req: &agentpb.ParseCredentialsSourceRequest{ ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, - ConfigPath: cnfFilePath, + FilePath: cnfFilePath, }, }, { name: "File not found", - req: &agentpb.ParseDefaultsFileRequest{ + req: &agentpb.ParseCredentialsSourceRequest{ ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, - ConfigPath: "path/to/invalid/file.cnf", + FilePath: "path/to/invalid/file.cnf", }, expectedErr: `no such file or directory`, }, { name: "Service type not supported", - req: &agentpb.ParseDefaultsFileRequest{ + req: &agentpb.ParseCredentialsSourceRequest{ ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, - ConfigPath: cnfFilePath, + FilePath: cnfFilePath, }, expectedErr: `unimplemented service type HAPROXY_SERVICE`, }, diff --git a/api/agentpb/agent.go b/api/agentpb/agent.go index 31cacbc044..660ed2e121 100644 --- a/api/agentpb/agent.go +++ b/api/agentpb/agent.go @@ -130,8 +130,8 @@ func (m *PBMSwitchPITRResponse) AgentMessageResponsePayload() isAgentMessage_Pay return &AgentMessage_PbmSwitchPitr{PbmSwitchPitr: m} } -func (m *ParseDefaultsFileResponse) AgentMessageResponsePayload() isAgentMessage_Payload { - return &AgentMessage_ParseDefaultsFile{ParseDefaultsFile: m} +func (m *ParseCredentialsSourceResponse) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_ParseCredentialsSource{ParseCredentialsSource: m} } // A list of ServerMessage response payloads. @@ -194,41 +194,41 @@ func (m *PBMSwitchPITRRequest) ServerMessageRequestPayload() isServerMessage_Pay return &ServerMessage_PbmSwitchPitr{PbmSwitchPitr: m} } -func (m *ParseDefaultsFileRequest) ServerMessageRequestPayload() isServerMessage_Payload { - return &ServerMessage_ParseDefaultsFile{ParseDefaultsFile: m} +func (m *ParseCredentialsSourceRequest) ServerMessageRequestPayload() isServerMessage_Payload { + return &ServerMessage_ParseCredentialsSource{ParseCredentialsSource: m} } // in alphabetical order -func (*ActionResultRequest) sealed() {} -func (*ActionResultResponse) sealed() {} -func (*CheckConnectionRequest) sealed() {} -func (*CheckConnectionResponse) sealed() {} -func (*JobProgress) sealed() {} -func (*JobResult) sealed() {} -func (*JobStatusRequest) sealed() {} -func (*JobStatusResponse) sealed() {} -func (*ParseDefaultsFileRequest) sealed() {} -func (*ParseDefaultsFileResponse) sealed() {} -func (*Ping) sealed() {} -func (*Pong) sealed() {} -func (*QANCollectRequest) sealed() {} -func (*QANCollectResponse) sealed() {} -func (*SetStateRequest) sealed() {} -func (*SetStateResponse) sealed() {} -func (*StartActionRequest) sealed() {} -func (*StartActionResponse) sealed() {} -func (*StartJobRequest) sealed() {} -func (*StartJobResponse) sealed() {} -func (*StateChangedRequest) sealed() {} -func (*StateChangedResponse) sealed() {} -func (*StopActionRequest) sealed() {} -func (*StopActionResponse) sealed() {} -func (*StopJobRequest) sealed() {} -func (*StopJobResponse) sealed() {} -func (*GetVersionsRequest) sealed() {} -func (*GetVersionsResponse) sealed() {} -func (*PBMSwitchPITRRequest) sealed() {} -func (*PBMSwitchPITRResponse) sealed() {} +func (*ActionResultRequest) sealed() {} +func (*ActionResultResponse) sealed() {} +func (*CheckConnectionRequest) sealed() {} +func (*CheckConnectionResponse) sealed() {} +func (*JobProgress) sealed() {} +func (*JobResult) sealed() {} +func (*JobStatusRequest) sealed() {} +func (*JobStatusResponse) sealed() {} +func (*ParseCredentialsSourceRequest) sealed() {} +func (*ParseCredentialsSourceResponse) sealed() {} +func (*Ping) sealed() {} +func (*Pong) sealed() {} +func (*QANCollectRequest) sealed() {} +func (*QANCollectResponse) sealed() {} +func (*SetStateRequest) sealed() {} +func (*SetStateResponse) sealed() {} +func (*StartActionRequest) sealed() {} +func (*StartActionResponse) sealed() {} +func (*StartJobRequest) sealed() {} +func (*StartJobResponse) sealed() {} +func (*StateChangedRequest) sealed() {} +func (*StateChangedResponse) sealed() {} +func (*StopActionRequest) sealed() {} +func (*StopActionResponse) sealed() {} +func (*StopJobRequest) sealed() {} +func (*StopJobResponse) sealed() {} +func (*GetVersionsRequest) sealed() {} +func (*GetVersionsResponse) sealed() {} +func (*PBMSwitchPITRRequest) sealed() {} +func (*PBMSwitchPITRResponse) sealed() {} // check interfaces var ( @@ -250,7 +250,7 @@ var ( _ AgentResponsePayload = (*StopJobResponse)(nil) _ AgentResponsePayload = (*JobStatusResponse)(nil) _ AgentResponsePayload = (*GetVersionsResponse)(nil) - _ AgentResponsePayload = (*ParseDefaultsFileResponse)(nil) + _ AgentResponsePayload = (*ParseCredentialsSourceResponse)(nil) // A list of ServerMessage response payloads. _ ServerResponsePayload = (*Pong)(nil) @@ -269,7 +269,7 @@ var ( _ ServerRequestPayload = (*JobStatusRequest)(nil) _ ServerRequestPayload = (*GetVersionsRequest)(nil) _ ServerRequestPayload = (*PBMSwitchPITRRequest)(nil) - _ ServerRequestPayload = (*ParseDefaultsFileRequest)(nil) + _ ServerRequestPayload = (*ParseCredentialsSourceRequest)(nil) ) //go-sumtype:decl AgentParams diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index f75aef0900..300671ce9b 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -1649,20 +1649,20 @@ func (x *PBMSwitchPITRResponse) GetError() string { return "" } -// ParseDefaultsFileRequest is an ServerMessage asking pmm-agent to parse defaults file. -type ParseDefaultsFileRequest struct { +// ParseCredentialsSourceRequest is an ServerMessage asking pmm-agent to parse credentials source file. +type ParseCredentialsSourceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Service type. ServiceType inventorypb.ServiceType `protobuf:"varint,1,opt,name=service_type,json=serviceType,proto3,enum=inventory.ServiceType" json:"service_type,omitempty"` - // Defaults config path - ConfigPath string `protobuf:"bytes,2,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"` + // Defaults file path + FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` } -func (x *ParseDefaultsFileRequest) Reset() { - *x = ParseDefaultsFileRequest{} +func (x *ParseCredentialsSourceRequest) Reset() { + *x = ParseCredentialsSourceRequest{} if protoimpl.UnsafeEnabled { mi := &file_agentpb_agent_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1670,13 +1670,13 @@ func (x *ParseDefaultsFileRequest) Reset() { } } -func (x *ParseDefaultsFileRequest) String() string { +func (x *ParseCredentialsSourceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParseDefaultsFileRequest) ProtoMessage() {} +func (*ParseCredentialsSourceRequest) ProtoMessage() {} -func (x *ParseDefaultsFileRequest) ProtoReflect() protoreflect.Message { +func (x *ParseCredentialsSourceRequest) ProtoReflect() protoreflect.Message { mi := &file_agentpb_agent_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1688,27 +1688,27 @@ func (x *ParseDefaultsFileRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParseDefaultsFileRequest.ProtoReflect.Descriptor instead. -func (*ParseDefaultsFileRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ParseCredentialsSourceRequest.ProtoReflect.Descriptor instead. +func (*ParseCredentialsSourceRequest) Descriptor() ([]byte, []int) { return file_agentpb_agent_proto_rawDescGZIP(), []int{22} } -func (x *ParseDefaultsFileRequest) GetServiceType() inventorypb.ServiceType { +func (x *ParseCredentialsSourceRequest) GetServiceType() inventorypb.ServiceType { if x != nil { return x.ServiceType } return inventorypb.ServiceType(0) } -func (x *ParseDefaultsFileRequest) GetConfigPath() string { +func (x *ParseCredentialsSourceRequest) GetFilePath() string { if x != nil { - return x.ConfigPath + return x.FilePath } return "" } -// ParseDefaultsFileResponse is an AgentMessage containing a result of parding defaults file. -type ParseDefaultsFileResponse struct { +// ParseDefaultsFileResponse is an AgentMessage containing a result of parsing credentials source file. +type ParseCredentialsSourceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1722,8 +1722,8 @@ type ParseDefaultsFileResponse struct { Socket string `protobuf:"bytes,6,opt,name=socket,proto3" json:"socket,omitempty"` } -func (x *ParseDefaultsFileResponse) Reset() { - *x = ParseDefaultsFileResponse{} +func (x *ParseCredentialsSourceResponse) Reset() { + *x = ParseCredentialsSourceResponse{} if protoimpl.UnsafeEnabled { mi := &file_agentpb_agent_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1731,13 +1731,13 @@ func (x *ParseDefaultsFileResponse) Reset() { } } -func (x *ParseDefaultsFileResponse) String() string { +func (x *ParseCredentialsSourceResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParseDefaultsFileResponse) ProtoMessage() {} +func (*ParseCredentialsSourceResponse) ProtoMessage() {} -func (x *ParseDefaultsFileResponse) ProtoReflect() protoreflect.Message { +func (x *ParseCredentialsSourceResponse) ProtoReflect() protoreflect.Message { mi := &file_agentpb_agent_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1749,47 +1749,47 @@ func (x *ParseDefaultsFileResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParseDefaultsFileResponse.ProtoReflect.Descriptor instead. -func (*ParseDefaultsFileResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ParseCredentialsSourceResponse.ProtoReflect.Descriptor instead. +func (*ParseCredentialsSourceResponse) Descriptor() ([]byte, []int) { return file_agentpb_agent_proto_rawDescGZIP(), []int{23} } -func (x *ParseDefaultsFileResponse) GetError() string { +func (x *ParseCredentialsSourceResponse) GetError() string { if x != nil { return x.Error } return "" } -func (x *ParseDefaultsFileResponse) GetUsername() string { +func (x *ParseCredentialsSourceResponse) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *ParseDefaultsFileResponse) GetPassword() string { +func (x *ParseCredentialsSourceResponse) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *ParseDefaultsFileResponse) GetHost() string { +func (x *ParseCredentialsSourceResponse) GetHost() string { if x != nil { return x.Host } return "" } -func (x *ParseDefaultsFileResponse) GetPort() uint32 { +func (x *ParseCredentialsSourceResponse) GetPort() uint32 { if x != nil { return x.Port } return 0 } -func (x *ParseDefaultsFileResponse) GetSocket() string { +func (x *ParseCredentialsSourceResponse) GetSocket() string { if x != nil { return x.Socket } @@ -2750,7 +2750,7 @@ type AgentMessage struct { // *AgentMessage_JobProgress // *AgentMessage_GetVersions // *AgentMessage_PbmSwitchPitr - // *AgentMessage_ParseDefaultsFile + // *AgentMessage_ParseCredentialsSource Payload isAgentMessage_Payload `protobuf_oneof:"payload"` } @@ -2919,9 +2919,9 @@ func (x *AgentMessage) GetPbmSwitchPitr() *PBMSwitchPITRResponse { return nil } -func (x *AgentMessage) GetParseDefaultsFile() *ParseDefaultsFileResponse { - if x, ok := x.GetPayload().(*AgentMessage_ParseDefaultsFile); ok { - return x.ParseDefaultsFile +func (x *AgentMessage) GetParseCredentialsSource() *ParseCredentialsSourceResponse { + if x, ok := x.GetPayload().(*AgentMessage_ParseCredentialsSource); ok { + return x.ParseCredentialsSource } return nil } @@ -2996,8 +2996,8 @@ type AgentMessage_PbmSwitchPitr struct { PbmSwitchPitr *PBMSwitchPITRResponse `protobuf:"bytes,19,opt,name=pbm_switch_pitr,json=pbmSwitchPitr,proto3,oneof"` } -type AgentMessage_ParseDefaultsFile struct { - ParseDefaultsFile *ParseDefaultsFileResponse `protobuf:"bytes,20,opt,name=parse_defaults_file,json=parseDefaultsFile,proto3,oneof"` +type AgentMessage_ParseCredentialsSource struct { + ParseCredentialsSource *ParseCredentialsSourceResponse `protobuf:"bytes,20,opt,name=parse_credentials_source,json=parseCredentialsSource,proto3,oneof"` } func (*AgentMessage_Ping) isAgentMessage_Payload() {} @@ -3032,7 +3032,7 @@ func (*AgentMessage_GetVersions) isAgentMessage_Payload() {} func (*AgentMessage_PbmSwitchPitr) isAgentMessage_Payload() {} -func (*AgentMessage_ParseDefaultsFile) isAgentMessage_Payload() {} +func (*AgentMessage_ParseCredentialsSource) isAgentMessage_Payload() {} type ServerMessage struct { state protoimpl.MessageState @@ -3061,7 +3061,7 @@ type ServerMessage struct { // *ServerMessage_JobStatus // *ServerMessage_GetVersions // *ServerMessage_PbmSwitchPitr - // *ServerMessage_ParseDefaultsFile + // *ServerMessage_ParseCredentialsSource Payload isServerMessage_Payload `protobuf_oneof:"payload"` } @@ -3216,9 +3216,9 @@ func (x *ServerMessage) GetPbmSwitchPitr() *PBMSwitchPITRRequest { return nil } -func (x *ServerMessage) GetParseDefaultsFile() *ParseDefaultsFileRequest { - if x, ok := x.GetPayload().(*ServerMessage_ParseDefaultsFile); ok { - return x.ParseDefaultsFile +func (x *ServerMessage) GetParseCredentialsSource() *ParseCredentialsSourceRequest { + if x, ok := x.GetPayload().(*ServerMessage_ParseCredentialsSource); ok { + return x.ParseCredentialsSource } return nil } @@ -3285,8 +3285,8 @@ type ServerMessage_PbmSwitchPitr struct { PbmSwitchPitr *PBMSwitchPITRRequest `protobuf:"bytes,17,opt,name=pbm_switch_pitr,json=pbmSwitchPitr,proto3,oneof"` } -type ServerMessage_ParseDefaultsFile struct { - ParseDefaultsFile *ParseDefaultsFileRequest `protobuf:"bytes,18,opt,name=parse_defaults_file,json=parseDefaultsFile,proto3,oneof"` +type ServerMessage_ParseCredentialsSource struct { + ParseCredentialsSource *ParseCredentialsSourceRequest `protobuf:"bytes,18,opt,name=parse_credentials_source,json=parseCredentialsSource,proto3,oneof"` } func (*ServerMessage_Pong) isServerMessage_Payload() {} @@ -3317,7 +3317,7 @@ func (*ServerMessage_GetVersions) isServerMessage_Payload() {} func (*ServerMessage_PbmSwitchPitr) isServerMessage_Payload() {} -func (*ServerMessage_ParseDefaultsFile) isServerMessage_Payload() {} +func (*ServerMessage_ParseCredentialsSource) isServerMessage_Payload() {} // AgentProcess describes desired configuration of a single agent process started by pmm-agent. type SetStateRequest_AgentProcess struct { @@ -6604,414 +6604,417 @@ var file_agentpb_agent_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x2d, 0x0a, 0x15, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x76, 0x0a, 0x18, - 0x50, 0x61, 0x72, 0x73, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x70, 0x61, - 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x50, 0x61, 0x74, 0x68, 0x22, 0xa9, 0x01, 0x0a, 0x19, 0x50, 0x61, 0x72, 0x73, 0x65, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x22, 0xe4, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, - 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2f, - 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x46, - 0x69, 0x6c, 0x65, 0x73, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, - 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, - 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0x95, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x28, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, - 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, - 0x29, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, - 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x61, 0x6c, 0x69, 0x76, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x10, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, - 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x63, 0x6b, 0x65, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, - 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0xf3, 0x0a, 0x0a, 0x0f, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, - 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, - 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, - 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, - 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x12, 0x4d, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x12, 0x63, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, - 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, - 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, - 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0xe2, 0x01, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, - 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, - 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x92, 0x01, 0x0a, 0x12, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, - 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x1a, 0x85, 0x02, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x69, 0x74, 0x72, 0x12, 0x36, 0x0a, - 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xae, 0x02, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, - 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, - 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x70, - 0x69, 0x74, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0d, 0x70, 0x69, 0x74, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, - 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, - 0x22, 0x28, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, - 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, - 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, - 0x62, 0x49, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x04, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, - 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x57, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, - 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, - 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, - 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, - 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x16, 0x6d, 0x6f, - 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, - 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0f, 0x0a, 0x0d, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x0d, 0x0a, - 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x77, 0x0a, 0x1d, + 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, + 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0xae, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, + 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xe4, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x64, 0x73, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, 0x12, + 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x69, 0x6c, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x54, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, + 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, + 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, + 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0x95, 0x01, + 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x28, 0x0a, 0x05, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, + 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x10, + 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, + 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, + 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x22, 0xf3, 0x0a, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x12, 0x47, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, + 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x14, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x1a, 0x16, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, - 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x22, 0xa7, 0x03, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x59, 0x0a, 0x14, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, - 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x14, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x48, 0x00, 0x52, 0x04, - 0x6c, 0x6f, 0x67, 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x49, 0x0a, 0x04, 0x4c, 0x6f, 0x67, - 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, - 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9b, - 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x52, 0x09, 0x73, 0x6f, - 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x08, 0x0a, 0x06, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x64, 0x1a, 0x0c, 0x0a, 0x0a, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, - 0x09, 0x0a, 0x07, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x1a, 0x08, 0x0a, 0x06, 0x51, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x1a, 0x95, 0x02, 0x0a, 0x08, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, - 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x64, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x12, 0x46, 0x0a, - 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x74, 0x72, - 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x3d, 0x0a, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x48, 0x00, 0x52, 0x07, 0x78, 0x62, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x22, 0x90, 0x01, 0x0a, - 0x13, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, - 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, - 0xd4, 0x08, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, - 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, - 0x12, 0x41, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, - 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x12, 0x41, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, - 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, - 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x3c, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, - 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, - 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, - 0x6f, 0x62, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, - 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, - 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, - 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, - 0x00, 0x52, 0x0b, 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3f, - 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x46, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, - 0x74, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, - 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x52, 0x0a, 0x13, 0x70, 0x61, 0x72, 0x73, 0x65, - 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x14, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, - 0x73, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x11, 0x70, 0x61, 0x72, 0x73, 0x65, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xe2, 0x07, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, - 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0b, - 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, - 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, - 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, - 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, - 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, - 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x38, 0x0a, 0x0a, - 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, + 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x4d, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, + 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, + 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x63, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, + 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0xe2, 0x01, 0x0a, + 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, + 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, + 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, + 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x1a, 0x92, 0x01, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, + 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x85, 0x02, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, + 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x74, + 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, + 0x69, 0x74, 0x72, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, + 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xae, + 0x02, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x69, 0x74, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x70, 0x69, 0x74, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, + 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x28, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, + 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x04, 0x0a, + 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, + 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, + 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0c, 0x6d, + 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, + 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x57, + 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, + 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, + 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, + 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x12, 0x5d, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, + 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, + 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x1a, 0x0f, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x16, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, + 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xa7, 0x03, 0x0a, 0x0b, 0x4a, + 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, + 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, + 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x6d, + 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x12, 0x59, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x04, 0x6c, + 0x6f, 0x67, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f, + 0x67, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, + 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, + 0x49, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x75, 0x6e, 0x6b, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x75, 0x6e, 0x6b, + 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9b, 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x73, + 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, + 0x72, 0x65, 0x52, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x08, 0x0a, + 0x06, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x1a, 0x0c, 0x0a, 0x0a, 0x58, 0x74, 0x72, 0x61, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x1a, 0x08, 0x0a, 0x06, 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x95, 0x02, 0x0a, 0x08, 0x53, + 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, + 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x3d, 0x0a, 0x07, 0x78, + 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x48, + 0x00, 0x52, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x71, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x06, + 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, + 0x72, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, - 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, - 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, - 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x51, 0x0a, - 0x13, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x5f, - 0x66, 0x69, 0x6c, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, - 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x11, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x46, 0x69, 0x6c, 0x65, - 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0xc4, 0x01, 0x0a, 0x18, - 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, - 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, - 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, - 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, - 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x4d, 0x59, - 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, - 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, - 0x12, 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, - 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, - 0x54, 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, - 0x10, 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x6f, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, - 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x05, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0xca, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x11, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xe3, 0x08, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, + 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, + 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x41, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, + 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, + 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, + 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, + 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, + 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, + 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, + 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x61, 0x0a, + 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x16, 0x70, 0x61, 0x72, 0x73, 0x65, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xf1, 0x07, 0x0a, 0x0d, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, + 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, + 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, + 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, + 0x42, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, + 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, + 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, + 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, + 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x0a, + 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, + 0x62, 0x12, 0x38, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x67, + 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, + 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x70, + 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x11, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, + 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, + 0x74, 0x72, 0x12, 0x60, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x12, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, + 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x16, 0x70, 0x61, + 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, + 0xc4, 0x01, 0x0a, 0x18, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, + 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, + 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, + 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, + 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, + 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, + 0x0a, 0x20, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, + 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, + 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, + 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, + 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, + 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, + 0x38, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, + 0x14, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x6f, 0x0a, 0x09, 0x63, 0x6f, 0x6d, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, + 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xe2, 0x02, + 0x11, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -7053,8 +7056,8 @@ var ( (*ActionResultResponse)(nil), // 20: agent.ActionResultResponse (*PBMSwitchPITRRequest)(nil), // 21: agent.PBMSwitchPITRRequest (*PBMSwitchPITRResponse)(nil), // 22: agent.PBMSwitchPITRResponse - (*ParseDefaultsFileRequest)(nil), // 23: agent.ParseDefaultsFileRequest - (*ParseDefaultsFileResponse)(nil), // 24: agent.ParseDefaultsFileResponse + (*ParseCredentialsSourceRequest)(nil), // 23: agent.ParseCredentialsSourceRequest + (*ParseCredentialsSourceResponse)(nil), // 24: agent.ParseCredentialsSourceResponse (*CheckConnectionRequest)(nil), // 25: agent.CheckConnectionRequest (*CheckConnectionResponse)(nil), // 26: agent.CheckConnectionResponse (*JobStatusRequest)(nil), // 27: agent.JobStatusRequest @@ -7163,7 +7166,7 @@ var file_agentpb_agent_proto_depIdxs = []int32{ 66, // 33: agent.StartActionRequest.mongodb_query_getdiagnosticdata_params:type_name -> agent.StartActionRequest.MongoDBQueryGetDiagnosticDataParams 89, // 34: agent.StartActionRequest.timeout:type_name -> google.protobuf.Duration 1, // 35: agent.PBMSwitchPITRRequest.text_files:type_name -> agent.TextFiles - 90, // 36: agent.ParseDefaultsFileRequest.service_type:type_name -> inventory.ServiceType + 90, // 36: agent.ParseCredentialsSourceRequest.service_type:type_name -> inventory.ServiceType 90, // 37: agent.CheckConnectionRequest.type:type_name -> inventory.ServiceType 89, // 38: agent.CheckConnectionRequest.timeout:type_name -> google.protobuf.Duration 1, // 39: agent.CheckConnectionRequest.text_files:type_name -> agent.TextFiles @@ -7202,7 +7205,7 @@ var file_agentpb_agent_proto_depIdxs = []int32{ 35, // 72: agent.AgentMessage.job_progress:type_name -> agent.JobProgress 37, // 73: agent.AgentMessage.get_versions:type_name -> agent.GetVersionsResponse 22, // 74: agent.AgentMessage.pbm_switch_pitr:type_name -> agent.PBMSwitchPITRResponse - 24, // 75: agent.AgentMessage.parse_defaults_file:type_name -> agent.ParseDefaultsFileResponse + 24, // 75: agent.AgentMessage.parse_credentials_source:type_name -> agent.ParseCredentialsSourceResponse 91, // 76: agent.ServerMessage.status:type_name -> google.rpc.Status 3, // 77: agent.ServerMessage.pong:type_name -> agent.Pong 7, // 78: agent.ServerMessage.state_changed:type_name -> agent.StateChangedResponse @@ -7218,7 +7221,7 @@ var file_agentpb_agent_proto_depIdxs = []int32{ 27, // 88: agent.ServerMessage.job_status:type_name -> agent.JobStatusRequest 36, // 89: agent.ServerMessage.get_versions:type_name -> agent.GetVersionsRequest 21, // 90: agent.ServerMessage.pbm_switch_pitr:type_name -> agent.PBMSwitchPITRRequest - 23, // 91: agent.ServerMessage.parse_defaults_file:type_name -> agent.ParseDefaultsFileRequest + 23, // 91: agent.ServerMessage.parse_credentials_source:type_name -> agent.ParseCredentialsSourceRequest 92, // 92: agent.SetStateRequest.AgentProcess.type:type_name -> inventory.AgentType 45, // 93: agent.SetStateRequest.AgentProcess.text_files:type_name -> agent.SetStateRequest.AgentProcess.TextFilesEntry 41, // 94: agent.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.SetStateRequest.AgentProcess @@ -7533,7 +7536,7 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParseDefaultsFileRequest); i { + switch v := v.(*ParseCredentialsSourceRequest); i { case 0: return &v.state case 1: @@ -7545,7 +7548,7 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParseDefaultsFileResponse); i { + switch v := v.(*ParseCredentialsSourceResponse); i { case 0: return &v.state case 1: @@ -8298,7 +8301,7 @@ func file_agentpb_agent_proto_init() { (*AgentMessage_JobProgress)(nil), (*AgentMessage_GetVersions)(nil), (*AgentMessage_PbmSwitchPitr)(nil), - (*AgentMessage_ParseDefaultsFile)(nil), + (*AgentMessage_ParseCredentialsSource)(nil), } file_agentpb_agent_proto_msgTypes[38].OneofWrappers = []interface{}{ (*ServerMessage_Pong)(nil), @@ -8315,7 +8318,7 @@ func file_agentpb_agent_proto_init() { (*ServerMessage_JobStatus)(nil), (*ServerMessage_GetVersions)(nil), (*ServerMessage_PbmSwitchPitr)(nil), - (*ServerMessage_ParseDefaultsFile)(nil), + (*ServerMessage_ParseCredentialsSource)(nil), } file_agentpb_agent_proto_msgTypes[67].OneofWrappers = []interface{}{ (*StartJobRequest_MySQLBackup_S3Config)(nil), diff --git a/api/agentpb/agent.proto b/api/agentpb/agent.proto index 271fa6c5f2..5a1ef3d384 100644 --- a/api/agentpb/agent.proto +++ b/api/agentpb/agent.proto @@ -392,17 +392,17 @@ message PBMSwitchPITRResponse { // Error message. string error = 1; } -// ParseDefaultsFileRequest is an ServerMessage asking pmm-agent to parse defaults file. -message ParseDefaultsFileRequest { +// ParseCredentialsSourceRequest is an ServerMessage asking pmm-agent to parse credentials source file. +message ParseCredentialsSourceRequest { // Service type. inventory.ServiceType service_type = 1; - // Defaults config path - string config_path = 2; + // Defaults file path + string file_path = 2; } -// ParseDefaultsFileResponse is an AgentMessage containing a result of parding defaults file. -message ParseDefaultsFileResponse { +// ParseDefaultsFileResponse is an AgentMessage containing a result of parsing credentials source file. +message ParseCredentialsSourceResponse { // Error message if parse failed. string error = 1; @@ -675,7 +675,7 @@ message AgentMessage { JobProgress job_progress = 17; GetVersionsResponse get_versions = 18; PBMSwitchPITRResponse pbm_switch_pitr = 19; - ParseDefaultsFileResponse parse_defaults_file = 20; + ParseCredentialsSourceResponse parse_credentials_source = 20; } } @@ -706,7 +706,7 @@ message ServerMessage { JobStatusRequest job_status = 15; GetVersionsRequest get_versions = 16; PBMSwitchPITRRequest pbm_switch_pitr = 17; - ParseDefaultsFileRequest parse_defaults_file = 18; + ParseCredentialsSourceRequest parse_credentials_source = 18; } } diff --git a/api/agentpb/agent.validator.pb.go b/api/agentpb/agent.validator.pb.go index 652f3ce517..55b00f5724 100644 --- a/api/agentpb/agent.validator.pb.go +++ b/api/agentpb/agent.validator.pb.go @@ -501,11 +501,11 @@ func (this *PBMSwitchPITRResponse) Validate() error { return nil } -func (this *ParseDefaultsFileRequest) Validate() error { +func (this *ParseCredentialsSourceRequest) Validate() error { return nil } -func (this *ParseDefaultsFileResponse) Validate() error { +func (this *ParseCredentialsSourceResponse) Validate() error { return nil } @@ -944,10 +944,10 @@ func (this *AgentMessage) Validate() error { } } } - if oneOfNester, ok := this.GetPayload().(*AgentMessage_ParseDefaultsFile); ok { - if oneOfNester.ParseDefaultsFile != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseDefaultsFile); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("ParseDefaultsFile", err) + if oneOfNester, ok := this.GetPayload().(*AgentMessage_ParseCredentialsSource); ok { + if oneOfNester.ParseCredentialsSource != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseCredentialsSource); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("ParseCredentialsSource", err) } } } @@ -1058,10 +1058,10 @@ func (this *ServerMessage) Validate() error { } } } - if oneOfNester, ok := this.GetPayload().(*ServerMessage_ParseDefaultsFile); ok { - if oneOfNester.ParseDefaultsFile != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseDefaultsFile); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("ParseDefaultsFile", err) + if oneOfNester, ok := this.GetPayload().(*ServerMessage_ParseCredentialsSource); ok { + if oneOfNester.ParseCredentialsSource != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseCredentialsSource); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("ParseCredentialsSource", err) } } } diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index 0fa73f76a0..5a11be9155 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -158,7 +158,7 @@ type gRPCServerDeps struct { actions *agents.ActionsService agentsStateUpdater *agents.StateUpdater connectionCheck *agents.ConnectionChecker - defaultsFileParser *agents.DefaultsFileParser + defaultsFileParser *agents.CredentialsSourceAgentInvoker grafanaClient *grafana.Client checksService *checks.Service dbaasClient *dbaas.Client @@ -769,7 +769,7 @@ func main() { schedulerService := scheduler.New(db, backupService) versionCache := versioncache.New(db, versioner) emailer := alertmanager.NewEmailer(logrus.WithField("component", "alertmanager-emailer").Logger) - defaultsFileParser := agents.NewDefaultsFileParser(agentsRegistry) + defaultsFileParser := agents.NewCredentialsSourceAgentInvoker(agentsRegistry) componentsService := managementdbaas.NewComponentsService(db, dbaasClient, versionService) diff --git a/managed/services/agents/channel/channel.go b/managed/services/agents/channel/channel.go index ffe46c0458..9ff7896919 100644 --- a/managed/services/agents/channel/channel.go +++ b/managed/services/agents/channel/channel.go @@ -274,8 +274,8 @@ func (c *Channel) runReceiver() { c.publish(msg.Id, msg.Status, p.GetVersions) case *agentpb.AgentMessage_PbmSwitchPitr: c.publish(msg.Id, msg.Status, p.PbmSwitchPitr) - case *agentpb.AgentMessage_ParseDefaultsFile: - c.publish(msg.Id, msg.Status, p.ParseDefaultsFile) + case *agentpb.AgentMessage_ParseCredentialsSource: + c.publish(msg.Id, msg.Status, p.ParseCredentialsSource) case nil: c.cancel(msg.Id, errors.Errorf("unimplemented: failed to handle received message %s", msg)) diff --git a/managed/services/agents/parse_defaults_file.go b/managed/services/agents/credentials_source_agent_invoker.go similarity index 76% rename from managed/services/agents/parse_defaults_file.go rename to managed/services/agents/credentials_source_agent_invoker.go index ce42d5e6b1..81abf92d49 100644 --- a/managed/services/agents/parse_defaults_file.go +++ b/managed/services/agents/credentials_source_agent_invoker.go @@ -27,20 +27,20 @@ import ( "github.com/percona/pmm/managed/utils/logger" ) -// DefaultsFileParser requests from agent to parse defaultsFile. -type DefaultsFileParser struct { +// CredentialsSourceAgentInvoker requests from agent to parse defaultsFile. +type CredentialsSourceAgentInvoker struct { r *Registry } -// NewDefaultsFileParser creates new ParseDefaultsFile request. -func NewDefaultsFileParser(r *Registry) *DefaultsFileParser { - return &DefaultsFileParser{ +// NewCredentialsSourceAgentInvoker creates new CredentialsSourceAgentInvoker request. +func NewCredentialsSourceAgentInvoker(r *Registry) *CredentialsSourceAgentInvoker { + return &CredentialsSourceAgentInvoker{ r: r, } } // ParseDefaultsFile sends request (with file path) to pmm-agent to parse defaults file. -func (p *DefaultsFileParser) ParseDefaultsFile(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.ParseDefaultsFileResult, error) { +func (p *CredentialsSourceAgentInvoker) ParseDefaultsFile(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.ParseDefaultsFileResult, error) { l := logger.Get(ctx) pmmAgent, err := p.r.get(pmmAgentID) @@ -67,7 +67,7 @@ func (p *DefaultsFileParser) ParseDefaultsFile(ctx context.Context, pmmAgentID, } l.Infof("ParseDefaultsFile response from agent: %+v.", resp) - parserResponse, ok := resp.(*agentpb.ParseDefaultsFileResponse) + parserResponse, ok := resp.(*agentpb.ParseCredentialsSourceResponse) if !ok { return nil, errors.New("wrong response from agent (not ParseDefaultsFileResponse model)") } @@ -84,11 +84,11 @@ func (p *DefaultsFileParser) ParseDefaultsFile(ctx context.Context, pmmAgentID, }, nil } -func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseDefaultsFileRequest, error) { +func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseCredentialsSourceRequest, error) { if serviceType == models.MySQLServiceType { - request := &agentpb.ParseDefaultsFileRequest{ + request := &agentpb.ParseCredentialsSourceRequest{ ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, - ConfigPath: configPath, + FilePath: configPath, } return request, nil } else { diff --git a/managed/services/agents/parse_defaults_file_test.go b/managed/services/agents/credentials_source_agent_invoker_test.go similarity index 100% rename from managed/services/agents/parse_defaults_file_test.go rename to managed/services/agents/credentials_source_agent_invoker_test.go From a9049abba1b4d8331037d4200a4b46e34b405804 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Wed, 3 Aug 2022 23:17:03 +0200 Subject: [PATCH 03/29] PMM-10231 Credentials source implementation. --- agent/defaultsfile/defaults_file_test.go | 2 +- api/agentpb/agent.go | 2 + api/agentpb/agent.pb.go | 2 +- api/agentpb/agent.proto | 2 +- managed/cmd/pmm-managed/main.go | 120 +++++++++--------- ...s_file.go => credentials_source_result.go} | 4 +- .../services/agents/channel/channel_test.go | 10 +- .../credentials_source_agent_invoker.go | 53 ++++++-- .../credentials_source_agent_invoker_test.go | 6 +- managed/services/management/deps.go | 8 +- ..._credentials_source_agent_invoker_test.go} | 14 +- managed/services/management/mysql.go | 6 +- 12 files changed, 128 insertions(+), 101 deletions(-) rename managed/models/{defaults_file.go => credentials_source_result.go} (86%) rename managed/services/management/{mock_defaults_file_parser_test.go => mock_credentials_source_agent_invoker_test.go} (50%) diff --git a/agent/defaultsfile/defaults_file_test.go b/agent/defaultsfile/defaults_file_test.go index 569a661225..1d5b39e23d 100644 --- a/agent/defaultsfile/defaults_file_test.go +++ b/agent/defaultsfile/defaults_file_test.go @@ -65,7 +65,7 @@ func TestDefaultsFileParser(t *testing.T) { t.Run(testCase.name, func(t *testing.T) { t.Parallel() c := New() - resp := c.ParseDefaultsFile(testCase.req) + resp := c.ParseCredentialsSource(testCase.req) require.NotNil(t, resp) if testCase.expectedErr == "" { assert.Empty(t, resp.Error) diff --git a/api/agentpb/agent.go b/api/agentpb/agent.go index 660ed2e121..8d99ce602b 100644 --- a/api/agentpb/agent.go +++ b/api/agentpb/agent.go @@ -130,6 +130,7 @@ func (m *PBMSwitchPITRResponse) AgentMessageResponsePayload() isAgentMessage_Pay return &AgentMessage_PbmSwitchPitr{PbmSwitchPitr: m} } +// AgentMessageResponsePayload AgentMessage_ParseCredentialsSource payload func (m *ParseCredentialsSourceResponse) AgentMessageResponsePayload() isAgentMessage_Payload { return &AgentMessage_ParseCredentialsSource{ParseCredentialsSource: m} } @@ -194,6 +195,7 @@ func (m *PBMSwitchPITRRequest) ServerMessageRequestPayload() isServerMessage_Pay return &ServerMessage_PbmSwitchPitr{PbmSwitchPitr: m} } +// ServerMessageRequestPayload ParseCredentialsSource payload. func (m *ParseCredentialsSourceRequest) ServerMessageRequestPayload() isServerMessage_Payload { return &ServerMessage_ParseCredentialsSource{ParseCredentialsSource: m} } diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index f191135e51..9171050846 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -1707,7 +1707,7 @@ func (x *ParseCredentialsSourceRequest) GetFilePath() string { return "" } -// ParseDefaultsFileResponse is an AgentMessage containing a result of parsing credentials source file. +// ParseCredentialsSourceResponse is an AgentMessage containing a result of parsing credentials source file. type ParseCredentialsSourceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/agentpb/agent.proto b/api/agentpb/agent.proto index 5a1ef3d384..7eade13362 100644 --- a/api/agentpb/agent.proto +++ b/api/agentpb/agent.proto @@ -401,7 +401,7 @@ message ParseCredentialsSourceRequest { string file_path = 2; } -// ParseDefaultsFileResponse is an AgentMessage containing a result of parsing credentials source file. +// ParseCredentialsSourceResponse is an AgentMessage containing a result of parsing credentials source file. message ParseCredentialsSourceResponse { // Error message if parse failed. diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index 5a11be9155..abc7bbdb5d 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -149,35 +149,35 @@ func addLogsHandler(mux *http.ServeMux, logs *supervisord.Logs) { } type gRPCServerDeps struct { - db *reform.DB - vmdb *victoriametrics.Service - platformClient *platformClient.Client - server *server.Server - agentsRegistry *agents.Registry - handler *agents.Handler - actions *agents.ActionsService - agentsStateUpdater *agents.StateUpdater - connectionCheck *agents.ConnectionChecker - defaultsFileParser *agents.CredentialsSourceAgentInvoker - grafanaClient *grafana.Client - checksService *checks.Service - dbaasClient *dbaas.Client - alertmanager *alertmanager.Service - vmalert *vmalert.Service - settings *models.Settings - alertsService *ia.AlertsService - templatesService *ia.TemplatesService - rulesService *ia.RulesService - jobsService *agents.JobsService - versionServiceClient *managementdbaas.VersionServiceClient - schedulerService *scheduler.Service - backupService *backup.Service - backupRemovalService *backup.RemovalService - minioService *minio.Service - versionCache *versioncache.Service - supervisord *supervisord.Service - config *config.Config - componentsService *managementdbaas.ComponentsService + db *reform.DB + vmdb *victoriametrics.Service + platformClient *platformClient.Client + server *server.Server + agentsRegistry *agents.Registry + handler *agents.Handler + actions *agents.ActionsService + agentsStateUpdater *agents.StateUpdater + connectionCheck *agents.ConnectionChecker + credentialsSourceAgentInvoker *agents.CredentialsSourceAgentInvoker + grafanaClient *grafana.Client + checksService *checks.Service + dbaasClient *dbaas.Client + alertmanager *alertmanager.Service + vmalert *vmalert.Service + settings *models.Settings + alertsService *ia.AlertsService + templatesService *ia.TemplatesService + rulesService *ia.RulesService + jobsService *agents.JobsService + versionServiceClient *managementdbaas.VersionServiceClient + schedulerService *scheduler.Service + backupService *backup.Service + backupRemovalService *backup.RemovalService + minioService *minio.Service + versionCache *versioncache.Service + supervisord *supervisord.Service + config *config.Config + componentsService *managementdbaas.ComponentsService } // runGRPCServer runs gRPC server until context is canceled, then gracefully stops it. @@ -212,7 +212,7 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { nodeSvc := management.NewNodeService(deps.db) serviceSvc := management.NewServiceService(deps.db, deps.agentsStateUpdater, deps.vmdb) - mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.defaultsFileParser) + mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.credentialsSourceAgentInvoker) mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck) postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck) proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck) @@ -769,7 +769,7 @@ func main() { schedulerService := scheduler.New(db, backupService) versionCache := versioncache.New(db, versioner) emailer := alertmanager.NewEmailer(logrus.WithField("component", "alertmanager-emailer").Logger) - defaultsFileParser := agents.NewCredentialsSourceAgentInvoker(agentsRegistry) + credentialsSourceAgentInvoker := agents.NewCredentialsSourceAgentInvoker(agentsRegistry) componentsService := managementdbaas.NewComponentsService(db, dbaasClient, versionService) @@ -946,35 +946,35 @@ func main() { defer wg.Done() runGRPCServer(ctx, &gRPCServerDeps{ - db: db, - vmdb: vmdb, - platformClient: platformClient, - server: server, - agentsRegistry: agentsRegistry, - handler: agentsHandler, - actions: actionsService, - agentsStateUpdater: agentsStateUpdater, - connectionCheck: connectionCheck, - grafanaClient: grafanaClient, - checksService: checksService, - dbaasClient: dbaasClient, - alertmanager: alertManager, - vmalert: vmalert, - settings: settings, - alertsService: alertsService, - templatesService: templatesService, - rulesService: rulesService, - jobsService: jobsService, - versionServiceClient: versionService, - schedulerService: schedulerService, - backupService: backupService, - backupRemovalService: backupRemovalService, - minioService: minioService, - versionCache: versionCache, - supervisord: supervisord, - config: &cfg.Config, - defaultsFileParser: defaultsFileParser, - componentsService: componentsService, + db: db, + vmdb: vmdb, + platformClient: platformClient, + server: server, + agentsRegistry: agentsRegistry, + handler: agentsHandler, + actions: actionsService, + agentsStateUpdater: agentsStateUpdater, + connectionCheck: connectionCheck, + grafanaClient: grafanaClient, + checksService: checksService, + dbaasClient: dbaasClient, + alertmanager: alertManager, + vmalert: vmalert, + settings: settings, + alertsService: alertsService, + templatesService: templatesService, + rulesService: rulesService, + jobsService: jobsService, + versionServiceClient: versionService, + schedulerService: schedulerService, + backupService: backupService, + backupRemovalService: backupRemovalService, + minioService: minioService, + versionCache: versionCache, + supervisord: supervisord, + config: &cfg.Config, + credentialsSourceAgentInvoker: credentialsSourceAgentInvoker, + componentsService: componentsService, }) }() diff --git a/managed/models/defaults_file.go b/managed/models/credentials_source_result.go similarity index 86% rename from managed/models/defaults_file.go rename to managed/models/credentials_source_result.go index c015bde25f..1571a4edf7 100644 --- a/managed/models/defaults_file.go +++ b/managed/models/credentials_source_result.go @@ -15,8 +15,8 @@ package models -// ParseDefaultsFileResult contains result of parsing defaults file. -type ParseDefaultsFileResult struct { +// CredentialsSourceParsingResult contains result of parsing defaults file. +type CredentialsSourceParsingResult struct { Username string Password string Host string diff --git a/managed/services/agents/channel/channel_test.go b/managed/services/agents/channel/channel_test.go index 524e23ac46..49bb5a6909 100644 --- a/managed/services/agents/channel/channel_test.go +++ b/managed/services/agents/channel/channel_test.go @@ -356,7 +356,7 @@ func TestUnexpectedResponsePayloadFromAgent(t *testing.T) { <-stop } -func TestChannelForDefaultsFileParser(t *testing.T) { +func TestChannelForCredentialsSourceParser(t *testing.T) { const count = 50 require.True(t, count > agentRequestsCap) @@ -364,9 +364,9 @@ func TestChannelForDefaultsFileParser(t *testing.T) { testValue := "test" testPort := uint32(123123) for i := uint32(1); i <= count; i++ { - resp, err := ch.SendAndWaitResponse(&agentpb.ParseDefaultsFileRequest{}) + resp, err := ch.SendAndWaitResponse(&agentpb.ParseCredentialsSourceRequest{}) assert.NotNil(t, resp) - parserResponse := resp.(*agentpb.ParseDefaultsFileResponse) + parserResponse := resp.(*agentpb.ParseCredentialsSourceResponse) assert.Equal(t, parserResponse.Username, testValue) assert.Equal(t, parserResponse.Password, testValue) assert.Equal(t, parserResponse.Socket, testValue) @@ -385,11 +385,11 @@ func TestChannelForDefaultsFileParser(t *testing.T) { msg, err := stream.Recv() assert.NoError(t, err) assert.Equal(t, i, msg.Id) - assert.NotNil(t, msg.GetParseDefaultsFile()) + assert.NotNil(t, msg.GetParseCredentialsSource()) err = stream.Send(&agentpb.AgentMessage{ Id: i, - Payload: (&agentpb.ParseDefaultsFileResponse{ + Payload: (&agentpb.ParseCredentialsSourceResponse{ Username: "test", Password: "test", Port: 123123, diff --git a/managed/services/agents/credentials_source_agent_invoker.go b/managed/services/agents/credentials_source_agent_invoker.go index 81abf92d49..92b2b2cc0a 100644 --- a/managed/services/agents/credentials_source_agent_invoker.go +++ b/managed/services/agents/credentials_source_agent_invoker.go @@ -27,7 +27,7 @@ import ( "github.com/percona/pmm/managed/utils/logger" ) -// CredentialsSourceAgentInvoker requests from agent to parse defaultsFile. +// CredentialsSourceAgentInvoker requests from agent to parse credentials-source passed in request. type CredentialsSourceAgentInvoker struct { r *Registry } @@ -39,8 +39,8 @@ func NewCredentialsSourceAgentInvoker(r *Registry) *CredentialsSourceAgentInvoke } } -// ParseDefaultsFile sends request (with file path) to pmm-agent to parse defaults file. -func (p *CredentialsSourceAgentInvoker) ParseDefaultsFile(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.ParseDefaultsFileResult, error) { +// InvokeAgent sends request (with file path) to pmm-agent to parse credentials-source file. +func (p *CredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { l := logger.Get(ctx) pmmAgent, err := p.r.get(pmmAgentID) @@ -51,13 +51,13 @@ func (p *CredentialsSourceAgentInvoker) ParseDefaultsFile(ctx context.Context, p start := time.Now() defer func() { if dur := time.Since(start); dur > 5*time.Second { - l.Warnf("ParseDefaultsFile took %s.", dur) + l.Warnf("Invoking agent took %s.", dur) } }() request, err := createRequest(filePath, serviceType) if err != nil { - l.Debugf("can't create ParseDefaultsFileRequest %s", err) + l.Debugf("can't create ParseCredentialsSourceRequest %s", err) return nil, err } @@ -66,16 +66,16 @@ func (p *CredentialsSourceAgentInvoker) ParseDefaultsFile(ctx context.Context, p return nil, err } - l.Infof("ParseDefaultsFile response from agent: %+v.", resp) + l.Infof("ParseCredentialsSource response from agent: %+v.", resp) parserResponse, ok := resp.(*agentpb.ParseCredentialsSourceResponse) if !ok { - return nil, errors.New("wrong response from agent (not ParseDefaultsFileResponse model)") + return nil, errors.New("wrong response from agent (not ParseCredentialsSourceResponse model)") } if parserResponse.Error != "" { return nil, errors.New(parserResponse.Error) } - return &models.ParseDefaultsFileResult{ + return &models.CredentialsSourceParsingResult{ Username: parserResponse.Username, Password: parserResponse.Password, Host: parserResponse.Host, @@ -85,13 +85,38 @@ func (p *CredentialsSourceAgentInvoker) ParseDefaultsFile(ctx context.Context, p } func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseCredentialsSourceRequest, error) { - if serviceType == models.MySQLServiceType { - request := &agentpb.ParseCredentialsSourceRequest{ + switch serviceType { + case models.MySQLServiceType: + return &agentpb.ParseCredentialsSourceRequest{ ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, FilePath: configPath, - } - return request, nil - } else { - return nil, errors.Errorf("unhandled service type %s", serviceType) + }, nil + case models.PostgreSQLServiceType: + return &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypb.ServiceType_POSTGRESQL_SERVICE, + FilePath: configPath, + }, nil + case models.HAProxyServiceType: + return &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, + FilePath: configPath, + }, nil + case models.ExternalServiceType: + return &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypb.ServiceType_EXTERNAL_SERVICE, + FilePath: configPath, + }, nil + case models.MongoDBServiceType: + return &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypb.ServiceType_MONGODB_SERVICE, + FilePath: configPath, + }, nil + case models.ProxySQLServiceType: + return &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypb.ServiceType_PROXYSQL_SERVICE, + FilePath: configPath, + }, nil } + + return nil, errors.Errorf("unhandled service type %s", serviceType) } diff --git a/managed/services/agents/credentials_source_agent_invoker_test.go b/managed/services/agents/credentials_source_agent_invoker_test.go index 8d03ab9daf..e6d7be92d9 100644 --- a/managed/services/agents/credentials_source_agent_invoker_test.go +++ b/managed/services/agents/credentials_source_agent_invoker_test.go @@ -28,13 +28,13 @@ func TestCreateRequest(t *testing.T) { response, err := createRequest("/path/to/file", models.MySQLServiceType) require.NoError(t, err) - require.NotNil(t, response, "ParseDefaultsFileRequest is nil") + require.NotNil(t, response, "ParseCredentialsSourceRequest is nil") } func TestCreateRequestNotSupported(t *testing.T) { t.Parallel() - response, err := createRequest("/path/to/file", models.PostgreSQLServiceType) + response, err := createRequest("/path/to/file", "unsupported") require.Error(t, err) - require.Nil(t, response, "ParseDefaultsFileRequest is not nil") + require.Nil(t, response, "ParseCredentialsSourceRequest is not nil") } diff --git a/managed/services/management/deps.go b/managed/services/management/deps.go index abbd8423f2..4c1d8a6b42 100644 --- a/managed/services/management/deps.go +++ b/managed/services/management/deps.go @@ -33,7 +33,7 @@ import ( //go:generate ../../../bin/mockery -name=grafanaClient -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=jobsService -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=connectionChecker -case=snake -inpkg -testonly -//go:generate ../../../bin/mockery -name=defaultsFileParser -case=snake -inpkg -testonly +//go:generate ../../../bin/mockery -name=credentialsSourceAgentInvoker -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=versionCache -case=snake -inpkg -testonly // agentsRegistry is a subset of methods of agents.Registry used by this package. @@ -95,8 +95,8 @@ type versionCache interface { RequestSoftwareVersionsUpdate() } -// defaultsFileParser is a subset of methods of agents.ParseDefaultsFile. +// credentialsSourceAgentInvoker is a subset of methods of agents.ParseCredentialsSource. // We use it instead of real type for testing and to avoid dependency cycle. -type defaultsFileParser interface { - ParseDefaultsFile(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.ParseDefaultsFileResult, error) +type credentialsSourceAgentInvoker interface { + InvokeAgent(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) } diff --git a/managed/services/management/mock_defaults_file_parser_test.go b/managed/services/management/mock_credentials_source_agent_invoker_test.go similarity index 50% rename from managed/services/management/mock_defaults_file_parser_test.go rename to managed/services/management/mock_credentials_source_agent_invoker_test.go index 7988d33a5f..2702f9b4b4 100644 --- a/managed/services/management/mock_defaults_file_parser_test.go +++ b/managed/services/management/mock_credentials_source_agent_invoker_test.go @@ -10,21 +10,21 @@ import ( models "github.com/percona/pmm/managed/models" ) -// mockDefaultsFileParser is an autogenerated mock type for the defaultsFileParser type -type mockDefaultsFileParser struct { +// mockCredentialsSourceAgentInvoker is an autogenerated mock type for the credentialsSourceAgentInvoker type +type mockCredentialsSourceAgentInvoker struct { mock.Mock } -// ParseDefaultsFile provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType -func (_m *mockDefaultsFileParser) ParseDefaultsFile(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.ParseDefaultsFileResult, error) { +// InvokeAgent provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType +func (_m *mockCredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { ret := _m.Called(ctx, pmmAgentID, filePath, serviceType) - var r0 *models.ParseDefaultsFileResult - if rf, ok := ret.Get(0).(func(context.Context, string, string, models.ServiceType) *models.ParseDefaultsFileResult); ok { + var r0 *models.CredentialsSourceParsingResult + if rf, ok := ret.Get(0).(func(context.Context, string, string, models.ServiceType) *models.CredentialsSourceParsingResult); ok { r0 = rf(ctx, pmmAgentID, filePath, serviceType) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*models.ParseDefaultsFileResult) + r0 = ret.Get(0).(*models.CredentialsSourceParsingResult) } } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index b0b584ee23..92d0d377f2 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -38,17 +38,17 @@ type MySQLService struct { state agentsStateUpdater cc connectionChecker vc versionCache - dfp defaultsFileParser + csai credentialsSourceAgentInvoker } // NewMySQLService creates new MySQL Management Service. -func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, vc versionCache, dfp defaultsFileParser) *MySQLService { +func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, vc versionCache, csai credentialsSourceAgentInvoker) *MySQLService { return &MySQLService{ db: db, state: state, cc: cc, vc: vc, - dfp: dfp, + csai: csai, } } From a0b3f8592ef047509aceb951b3b5c61b3b8ec662 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Mon, 8 Aug 2022 16:48:02 +0200 Subject: [PATCH 04/29] PMM-10231 Credentials source implementation. --- agent/commands/run.go | 6 +- agent/credentialssource/credentials_source.go | 238 ++++++ .../credentials_source_test.go} | 4 +- agent/defaultsfile/defaults_file.go | 131 --- api/agentpb/agent.pb.go | 784 +++++++++--------- api/agentpb/agent.proto | 7 +- managed/models/credentials_source_result.go | 11 +- .../credentials_source_agent_invoker.go | 11 +- managed/services/management/mysql.go | 33 + 9 files changed, 689 insertions(+), 536 deletions(-) create mode 100644 agent/credentialssource/credentials_source.go rename agent/{defaultsfile/defaults_file_test.go => credentialssource/credentials_source_test.go} (96%) delete mode 100644 agent/defaultsfile/defaults_file.go diff --git a/agent/commands/run.go b/agent/commands/run.go index 85cd37567f..fdc452448d 100644 --- a/agent/commands/run.go +++ b/agent/commands/run.go @@ -31,7 +31,7 @@ import ( "github.com/percona/pmm/agent/config" "github.com/percona/pmm/agent/connectionchecker" "github.com/percona/pmm/agent/connectionuptime" - "github.com/percona/pmm/agent/defaultsfile" + "github.com/percona/pmm/agent/credentialssource" "github.com/percona/pmm/agent/tailog" "github.com/percona/pmm/agent/versioner" "github.com/percona/pmm/api/inventorypb" @@ -112,9 +112,9 @@ func run(ctx context.Context, cfg *config.Config, configFilepath string, cs *con supervisor := supervisor.NewSupervisor(ctx, &cfg.Paths, &cfg.Ports, &cfg.Server, int(cfg.LogLinesCount)) connectionChecker := connectionchecker.New(&cfg.Paths) - defaultsFileParser := defaultsfile.New() + credentialsSourceParser := credentialssource.New() v := versioner.New(&versioner.RealExecFunctions{}) - client := client.New(cfg, supervisor, connectionChecker, v, defaultsFileParser, cs) + client := client.New(cfg, supervisor, connectionChecker, v, credentialsSourceParser, cs) localServer := agentlocal.NewServer(cfg, supervisor, client, configFilepath, logStore) go func() { diff --git a/agent/credentialssource/credentials_source.go b/agent/credentialssource/credentials_source.go new file mode 100644 index 0000000000..149d30b9d5 --- /dev/null +++ b/agent/credentialssource/credentials_source.go @@ -0,0 +1,238 @@ +// Copyright 2019 Percona LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package credentialssource provides managing of defaults file. +package credentialssource + +import ( + "encoding/json" + "fmt" + "net/http" + "os" + "os/user" + "path/filepath" + "strings" + + "github.com/pkg/errors" + "gopkg.in/ini.v1" + + "github.com/percona/pmm/api/agentpb" + "github.com/percona/pmm/api/inventorypb" +) + +// Parser is a struct which is responsible for parsing credentials source/defaults file. +type Parser struct{} + +// New creates new Parser. +func New() *Parser { + return &Parser{} +} + +type credentialsSource struct { + username string + password string + host string + agetnPassword string + port uint32 + socket string +} + +// credentials provides access to an external provider so that +// the username, password, or agent password can be managed +// externally, e.g. HashiCorp Vault, Ansible Vault, etc. +type credentials struct { + AgentPassword string `json:"agentpassword"` + Password string `json:"password"` + Username string `json:"username"` +} + +// ParseCredentialsSource parses given file in request. It returns the database specs. +func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { + var res agentpb.ParseCredentialsSourceResponse + creds, err := parseCredentialsSourceFile(req.FilePath, req.ServiceType) + if err != nil { + res.Error = err.Error() + return &res + } + + res.Username = creds.username + res.Password = creds.password + res.Host = creds.host + res.Port = creds.port + res.Socket = creds.socket + + return &res +} + +func parseCredentialsSourceFile(filePath string, serviceType inventorypb.ServiceType) (*credentialsSource, error) { + if len(filePath) == 0 { + return nil, errors.New("configPath for parseCredentialsSourceFile is empty") + } + + filePath, err := expandPath(filePath) + if err != nil { + return nil, fmt.Errorf("fail to normalize path: %w", err) + } + + // open file + file, err := os.Open(filePath) + if err != nil { + return nil, err + } + + defer file.Close() + + contentType, err := getFileContentType(file) + if err != nil { + return nil, err + } + + switch contentType { + case "application/json": + return parseJsonFile(filePath) + case "application/ini": + return parseIniFile(filePath, serviceType) + default: + return nil, errors.Errorf("unsupported file type %s", contentType) + } +} + +func parseJsonFile(filePath string) (*credentialsSource, error) { + creds, err := readCredentialsFromSource(filePath) + if err != nil { + return nil, err + } + + return &credentialsSource{ + username: creds.Username, + password: creds.Password, + agetnPassword: creds.AgentPassword, + }, nil +} + +func parseIniFile(filePath string, serviceType inventorypb.ServiceType) (*credentialsSource, error) { + switch serviceType { + case inventorypb.ServiceType_MYSQL_SERVICE: + return parseMySQLDefaultsFile(filePath) + case inventorypb.ServiceType_EXTERNAL_SERVICE: + case inventorypb.ServiceType_HAPROXY_SERVICE: + case inventorypb.ServiceType_MONGODB_SERVICE: + case inventorypb.ServiceType_POSTGRESQL_SERVICE: + case inventorypb.ServiceType_PROXYSQL_SERVICE: + case inventorypb.ServiceType_SERVICE_TYPE_INVALID: + return nil, errors.Errorf("unimplemented service type %s", serviceType) + } + + return nil, errors.Errorf("unimplemented service type %s", serviceType) +} + +func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { + cfg, err := ini.Load(configPath) + if err != nil { + return nil, fmt.Errorf("fail to read config file: %w", err) + } + + cfgSection := cfg.Section("client") + port, _ := cfgSection.Key("port").Uint() + + parsedData := &credentialsSource{ + username: cfgSection.Key("user").String(), + password: cfgSection.Key("password").String(), + host: cfgSection.Key("host").String(), + port: uint32(port), + socket: cfgSection.Key("socket").String(), + } + + err = validateDefaultsFileResults(parsedData) + if err != nil { + return nil, err + } + + return parsedData, nil +} + +func validateDefaultsFileResults(data *credentialsSource) error { + if data.username == "" && data.password == "" && data.host == "" && data.port == 0 && data.socket == "" { + return errors.New("no data found in defaults file") + } + return nil +} + +func expandPath(path string) (string, error) { + if strings.HasPrefix(path, "~/") { + usr, err := user.Current() + if err != nil { + return "", fmt.Errorf("failed to expand path: %w", err) + } + return filepath.Join(usr.HomeDir, path[2:]), nil + } + return path, nil +} + +// readCredentialsFromSource parses a JSON file src and return +// a credentials pointer containing the data. +func readCredentialsFromSource(src string) (*credentials, error) { + creds := credentials{"", "", ""} + + f, err := os.Lstat(src) + if err != nil { + return nil, fmt.Errorf("%w", err) + } + + if f.Mode()&0o111 != 0 { + return nil, fmt.Errorf("%w: %s", errors.New("execution is not supported"), src) + } + + // Read the file + content, err := readFile(src) + if err != nil { + return nil, fmt.Errorf("%w", err) + } + + if err := json.Unmarshal([]byte(content), &creds); err != nil { + return nil, fmt.Errorf("%w", err) + } + + return &creds, nil +} + +// readFile reads file from filepath if filepath is not empty. +func readFile(filePath string) (string, error) { + if filePath == "" { + return "", nil + } + + content, err := os.ReadFile(filepath.Clean(filePath)) + if err != nil { + return "", errors.Wrapf(err, "cannot load file in path %q", filePath) + } + + return string(content), nil +} + +// +func getFileContentType(file *os.File) (string, error) { + + buf := make([]byte, 512) + + _, err := file.Read(buf) + + if err != nil { + return "", err + } + + contentType := http.DetectContentType(buf) + + return contentType, nil +} diff --git a/agent/defaultsfile/defaults_file_test.go b/agent/credentialssource/credentials_source_test.go similarity index 96% rename from agent/defaultsfile/defaults_file_test.go rename to agent/credentialssource/credentials_source_test.go index 1d5b39e23d..fc6042d286 100644 --- a/agent/defaultsfile/defaults_file_test.go +++ b/agent/credentialssource/credentials_source_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package defaultsfile +package credentialssource import ( "path/filepath" @@ -27,7 +27,7 @@ import ( func TestDefaultsFileParser(t *testing.T) { t.Parallel() - cnfFilePath, err := filepath.Abs("../utils/tests/testdata/defaultsfile/.my.cnf") + cnfFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/.my.cnf") assert.NoError(t, err) testCases := []struct { diff --git a/agent/defaultsfile/defaults_file.go b/agent/defaultsfile/defaults_file.go deleted file mode 100644 index 2b9184e370..0000000000 --- a/agent/defaultsfile/defaults_file.go +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2019 Percona LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package defaultsfile provides managing of defaults file. -package defaultsfile - -import ( - "fmt" - "os/user" - "path/filepath" - "strings" - - "github.com/pkg/errors" - "gopkg.in/ini.v1" - - "github.com/percona/pmm/api/agentpb" - "github.com/percona/pmm/api/inventorypb" -) - -// Parser is a struct which is responsible for parsing defaults file. -type Parser struct{} - -// New creates new DefaultsFileParser. -func New() *Parser { - return &Parser{} -} - -type defaultsFile struct { - username string - password string - host string - port uint32 - socket string -} - -// ParseCredentialsSource parses given file in request. It returns the database specs. -func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { - var res agentpb.ParseCredentialsSourceResponse - credentialsSource, err := parseCredentialsSourceFile(req.FilePath, req.ServiceType) - if err != nil { - res.Error = err.Error() - return &res - } - - res.Username = credentialsSource.username - res.Password = credentialsSource.password - res.Host = credentialsSource.host - res.Port = credentialsSource.port - res.Socket = credentialsSource.socket - - return &res -} - -func parseCredentialsSourceFile(configPath string, serviceType inventorypb.ServiceType) (*defaultsFile, error) { - if len(configPath) == 0 { - return nil, errors.New("configPath for DefaultsFile is empty") - } - - switch serviceType { - case inventorypb.ServiceType_MYSQL_SERVICE: - return parseMySQLDefaultsFile(configPath) - case inventorypb.ServiceType_EXTERNAL_SERVICE: - case inventorypb.ServiceType_HAPROXY_SERVICE: - case inventorypb.ServiceType_MONGODB_SERVICE: - case inventorypb.ServiceType_POSTGRESQL_SERVICE: - case inventorypb.ServiceType_PROXYSQL_SERVICE: - case inventorypb.ServiceType_SERVICE_TYPE_INVALID: - return nil, errors.Errorf("unimplemented service type %s", serviceType) - } - - return nil, errors.Errorf("unimplemented service type %s", serviceType) -} - -func parseMySQLDefaultsFile(configPath string) (*defaultsFile, error) { - configPath, err := expandPath(configPath) - if err != nil { - return nil, fmt.Errorf("fail to normalize path: %w", err) - } - - cfg, err := ini.Load(configPath) - if err != nil { - return nil, fmt.Errorf("fail to read config file: %w", err) - } - - cfgSection := cfg.Section("client") - port, _ := cfgSection.Key("port").Uint() - - parsedData := &defaultsFile{ - username: cfgSection.Key("user").String(), - password: cfgSection.Key("password").String(), - host: cfgSection.Key("host").String(), - port: uint32(port), - socket: cfgSection.Key("socket").String(), - } - - err = validateDefaultsFileResults(parsedData) - if err != nil { - return nil, err - } - - return parsedData, nil -} - -func validateDefaultsFileResults(data *defaultsFile) error { - if data.username == "" && data.password == "" && data.host == "" && data.port == 0 && data.socket == "" { - return errors.New("no data found in defaults file") - } - return nil -} - -func expandPath(path string) (string, error) { - if strings.HasPrefix(path, "~/") { - usr, err := user.Current() - if err != nil { - return "", fmt.Errorf("failed to expand path: %w", err) - } - return filepath.Join(usr.HomeDir, path[2:]), nil - } - return path, nil -} diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index 9171050846..14e73037b5 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -1714,12 +1714,13 @@ type ParseCredentialsSourceResponse struct { unknownFields protoimpl.UnknownFields // Error message if parse failed. - Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` - Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` - Socket string `protobuf:"bytes,6,opt,name=socket,proto3" json:"socket,omitempty"` + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + AgentPassword string `protobuf:"bytes,4,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` + Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` + Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"` + Socket string `protobuf:"bytes,7,opt,name=socket,proto3" json:"socket,omitempty"` } func (x *ParseCredentialsSourceResponse) Reset() { @@ -1775,6 +1776,13 @@ func (x *ParseCredentialsSourceResponse) GetPassword() string { return "" } +func (x *ParseCredentialsSourceResponse) GetAgentPassword() string { + if x != nil { + return x.AgentPassword + } + return "" +} + func (x *ParseCredentialsSourceResponse) GetHost() string { if x != nil { return x.Host @@ -6612,409 +6620,411 @@ var file_agentpb_agent_proto_rawDesc = []byte{ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, - 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0xae, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0xd5, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, - 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xe4, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x64, 0x73, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, 0x12, - 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, - 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x69, 0x6c, - 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x54, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, - 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, - 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, - 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0x95, 0x01, - 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, - 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x28, 0x0a, 0x05, 0x53, - 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, - 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x10, - 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, - 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, - 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, - 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x22, 0xf3, 0x0a, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, - 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x12, 0x47, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x14, 0x6d, 0x79, 0x73, - 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x4d, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, - 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, - 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x63, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0xe4, 0x01, + 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x74, + 0x65, 0x78, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x52, 0x09, 0x74, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, + 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x22, 0x95, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x73, 0x1a, 0x28, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x10, + 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, + 0x76, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x10, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, + 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, + 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0xf3, 0x0a, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, + 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x12, 0x5d, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, + 0x4d, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, - 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0xe2, 0x01, 0x0a, - 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, - 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x1a, 0x92, 0x01, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, + 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, + 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x63, + 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, + 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x1a, 0xe2, 0x01, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, + 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x92, 0x01, 0x0a, 0x12, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, + 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, + 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, + 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x85, 0x02, + 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, + 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x69, 0x74, 0x72, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xae, 0x02, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, + 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, + 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, + 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x69, 0x74, 0x72, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x70, 0x69, + 0x74, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x85, 0x02, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, - 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x74, - 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, - 0x69, 0x74, 0x72, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, - 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, - 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xae, - 0x02, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x69, 0x74, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x70, 0x69, 0x74, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, - 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x28, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, - 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, - 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x04, 0x0a, - 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, - 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, - 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0c, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, - 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x57, - 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, - 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, - 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x12, 0x5d, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, - 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, - 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x1a, 0x0f, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x16, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, - 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xa7, 0x03, 0x0a, 0x0b, 0x4a, - 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, - 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, - 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x12, 0x59, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x04, 0x6c, - 0x6f, 0x67, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f, - 0x67, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x28, 0x0a, + 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x70, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, + 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x04, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x57, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, + 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x47, + 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, + 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, + 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, + 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, + 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0f, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, - 0x49, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9b, 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x73, - 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, - 0x72, 0x65, 0x52, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x08, 0x0a, - 0x06, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x1a, 0x0c, 0x0a, 0x0a, 0x58, 0x74, 0x72, 0x61, 0x62, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x1a, 0x08, 0x0a, 0x06, 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x95, 0x02, 0x0a, 0x08, 0x53, - 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x79, 0x73, - 0x71, 0x6c, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x16, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x22, 0xa7, 0x03, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, + 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x59, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, + 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, + 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, + 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x6f, 0x67, + 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x49, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x19, + 0x0a, 0x08, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, + 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9b, 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, - 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x3d, 0x0a, 0x07, 0x78, - 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x48, - 0x00, 0x52, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x71, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x06, - 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, - 0x72, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xe3, 0x08, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, - 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, - 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x41, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, - 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, - 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, - 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, - 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, - 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, - 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, - 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, - 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, - 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, - 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, - 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x61, 0x0a, - 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x16, 0x70, 0x61, 0x72, 0x73, 0x65, 0x43, - 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xf1, 0x07, 0x0a, 0x0d, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, + 0x73, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x52, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, + 0x61, 0x72, 0x65, 0x73, 0x1a, 0x08, 0x0a, 0x06, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x1a, 0x0c, + 0x0a, 0x0a, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x09, 0x0a, 0x07, + 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x1a, 0x08, 0x0a, 0x06, 0x51, 0x70, 0x72, 0x65, 0x73, + 0x73, 0x1a, 0x95, 0x02, 0x0a, 0x08, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x12, 0x3a, + 0x0a, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, + 0x48, 0x00, 0x52, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x78, 0x74, + 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x12, 0x3d, 0x0a, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, + 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x48, 0x00, 0x52, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x51, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x42, 0x0a, 0x0a, + 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xe3, 0x08, 0x0a, + 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, + 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, - 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, - 0x42, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, - 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, - 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, - 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, - 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, + 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, + 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x41, 0x0a, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, + 0x6f, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x0b, + 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, + 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x0a, - 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, - 0x62, 0x12, 0x38, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, - 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x67, - 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, - 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x70, - 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x11, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, - 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, - 0x74, 0x72, 0x12, 0x60, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x12, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, - 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x16, 0x70, 0x61, - 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, - 0xc4, 0x01, 0x0a, 0x18, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, + 0x33, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, + 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x31, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0b, + 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x0a, 0x0c, 0x67, + 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x0f, + 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, + 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, + 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x50, 0x69, 0x74, 0x72, 0x12, 0x61, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, + 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x16, 0x70, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x22, 0xf1, 0x07, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, + 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, + 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, + 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, + 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, + 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, + 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x38, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, + 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, + 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, + 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x60, 0x0a, 0x18, 0x70, 0x61, 0x72, + 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x16, 0x70, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0xc4, 0x01, 0x0a, 0x18, 0x4d, 0x79, 0x73, 0x71, 0x6c, + 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, + 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, + 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, - 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, - 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, + 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, + 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, - 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, - 0x0a, 0x20, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, - 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, - 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, - 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, - 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, - 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, - 0x38, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, - 0x14, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x6f, 0x0a, 0x09, 0x63, 0x6f, 0x6d, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, - 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xe2, 0x02, - 0x11, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4d, + 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, + 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, + 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x03, 0x32, 0x41, 0x0a, + 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, + 0x42, 0x6f, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, + 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, + 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x05, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x11, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/agentpb/agent.proto b/api/agentpb/agent.proto index 7eade13362..3375fe8307 100644 --- a/api/agentpb/agent.proto +++ b/api/agentpb/agent.proto @@ -409,9 +409,10 @@ message ParseCredentialsSourceResponse { string username = 2; string password = 3; - string host = 4; - uint32 port = 5; - string socket = 6; + string agent_password = 4; + string host = 5; + uint32 port = 6; + string socket = 7; } // CheckConnectionRequest is a ServerMessage asking pmm-agent to check connection with Service. diff --git a/managed/models/credentials_source_result.go b/managed/models/credentials_source_result.go index 1571a4edf7..47a6662a00 100644 --- a/managed/models/credentials_source_result.go +++ b/managed/models/credentials_source_result.go @@ -17,9 +17,10 @@ package models // CredentialsSourceParsingResult contains result of parsing defaults file. type CredentialsSourceParsingResult struct { - Username string - Password string - Host string - Port uint32 - Socket string + Username string + Password string + AgentPassword string + Host string + Port uint32 + Socket string } diff --git a/managed/services/agents/credentials_source_agent_invoker.go b/managed/services/agents/credentials_source_agent_invoker.go index 92b2b2cc0a..916737b10e 100644 --- a/managed/services/agents/credentials_source_agent_invoker.go +++ b/managed/services/agents/credentials_source_agent_invoker.go @@ -76,11 +76,12 @@ func (p *CredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgen } return &models.CredentialsSourceParsingResult{ - Username: parserResponse.Username, - Password: parserResponse.Password, - Host: parserResponse.Host, - Port: parserResponse.Port, - Socket: parserResponse.Socket, + Username: parserResponse.Username, + Password: parserResponse.Password, + AgentPassword: parserResponse.AgentPassword, + Host: parserResponse.Host, + Port: parserResponse.Port, + Socket: parserResponse.Socket, }, nil } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index 92d0d377f2..cdfd22e30b 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -17,8 +17,11 @@ package management import ( "context" + "fmt" "github.com/AlekSi/pointer" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "gopkg.in/reform.v1" "github.com/percona/pmm/api/inventorypb" @@ -75,6 +78,36 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques maxSlowlogFileSize = 0 } + if req.CredentialsSource != "" { + result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.MySQLServiceType) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.AgentPassword == "" && result.AgentPassword != "" { + req.AgentPassword = result.AgentPassword + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } + + if req.Port == 0 && result.Port > 0 { + req.Port = result.Port + } + + if req.Socket == "" && result.Socket != "" { + req.Socket = result.Socket + } + } + nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err From aee4176595fe85224721382116ba255e73319e14 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 9 Aug 2022 16:28:33 +0200 Subject: [PATCH 05/29] PMM-10231 Credentials source implementation. --- agent/credentialssource/credentials_source.go | 137 ++++++------------ .../credentials_source_test.go | 6 +- managed/cmd/pmm-managed/main.go | 6 +- managed/services/management/mongodb.go | 37 ++++- managed/services/management/postgresql.go | 44 +++++- managed/services/management/proxysql.go | 44 +++++- 6 files changed, 173 insertions(+), 101 deletions(-) diff --git a/agent/credentialssource/credentials_source.go b/agent/credentialssource/credentials_source.go index 149d30b9d5..b23a1ec0c2 100644 --- a/agent/credentialssource/credentials_source.go +++ b/agent/credentialssource/credentials_source.go @@ -18,7 +18,6 @@ package credentialssource import ( "encoding/json" "fmt" - "net/http" "os" "os/user" "path/filepath" @@ -31,7 +30,7 @@ import ( "github.com/percona/pmm/api/inventorypb" ) -// Parser is a struct which is responsible for parsing credentials source/defaults file. +// Parser is a struct which is responsible for parsing credentialsJson source/defaults file. type Parser struct{} // New creates new Parser. @@ -43,15 +42,15 @@ type credentialsSource struct { username string password string host string - agetnPassword string + agentPassword string port uint32 socket string } -// credentials provides access to an external provider so that +// credentialsJson provides access to an external provider so that // the username, password, or agent password can be managed // externally, e.g. HashiCorp Vault, Ansible Vault, etc. -type credentials struct { +type credentialsJson struct { AgentPassword string `json:"agentpassword"` Password string `json:"password"` Username string `json:"username"` @@ -60,17 +59,18 @@ type credentials struct { // ParseCredentialsSource parses given file in request. It returns the database specs. func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { var res agentpb.ParseCredentialsSourceResponse - creds, err := parseCredentialsSourceFile(req.FilePath, req.ServiceType) + parsedData, err := parseCredentialsSourceFile(req.FilePath, req.ServiceType) if err != nil { res.Error = err.Error() return &res } - res.Username = creds.username - res.Password = creds.password - res.Host = creds.host - res.Port = creds.port - res.Socket = creds.socket + res.Username = parsedData.username + res.Password = parsedData.password + res.AgentPassword = parsedData.agentPassword + res.Host = parsedData.host + res.Port = parsedData.port + res.Socket = parsedData.socket return &res } @@ -85,56 +85,52 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service return nil, fmt.Errorf("fail to normalize path: %w", err) } - // open file - file, err := os.Open(filePath) - if err != nil { - return nil, err + credentialsJsonFile, err := parseJsonFile(filePath) + if err == nil { + return credentialsJsonFile, nil } - defer file.Close() + if serviceType == inventorypb.ServiceType_MYSQL_SERVICE { + return parseMySQLDefaultsFile(filePath) + } + + return nil, fmt.Errorf("unrecognized file type %s", filePath) +} + +func parseJsonFile(filePath string) (*credentialsSource, error) { + creds := credentialsJson{"", "", ""} - contentType, err := getFileContentType(file) + f, err := os.Lstat(filePath) if err != nil { - return nil, err + return nil, fmt.Errorf("%w", err) } - switch contentType { - case "application/json": - return parseJsonFile(filePath) - case "application/ini": - return parseIniFile(filePath, serviceType) - default: - return nil, errors.Errorf("unsupported file type %s", contentType) + if f.Mode()&0o111 != 0 { + return nil, fmt.Errorf("%w: %s", errors.New("file execution is not supported"), filePath) } -} -func parseJsonFile(filePath string) (*credentialsSource, error) { - creds, err := readCredentialsFromSource(filePath) + // Read the file + content, err := readFile(filePath) if err != nil { - return nil, err + return nil, fmt.Errorf("%w", err) } - return &credentialsSource{ + if err := json.Unmarshal([]byte(content), &creds); err != nil { + return nil, fmt.Errorf("%w", err) + } + + parsedData := &credentialsSource{ username: creds.Username, password: creds.Password, - agetnPassword: creds.AgentPassword, - }, nil -} + agentPassword: creds.AgentPassword, + } -func parseIniFile(filePath string, serviceType inventorypb.ServiceType) (*credentialsSource, error) { - switch serviceType { - case inventorypb.ServiceType_MYSQL_SERVICE: - return parseMySQLDefaultsFile(filePath) - case inventorypb.ServiceType_EXTERNAL_SERVICE: - case inventorypb.ServiceType_HAPROXY_SERVICE: - case inventorypb.ServiceType_MONGODB_SERVICE: - case inventorypb.ServiceType_POSTGRESQL_SERVICE: - case inventorypb.ServiceType_PROXYSQL_SERVICE: - case inventorypb.ServiceType_SERVICE_TYPE_INVALID: - return nil, errors.Errorf("unimplemented service type %s", serviceType) + err = validateResults(parsedData) + if err != nil { + return nil, err } - return nil, errors.Errorf("unimplemented service type %s", serviceType) + return parsedData, nil } func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { @@ -154,7 +150,7 @@ func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { socket: cfgSection.Key("socket").String(), } - err = validateDefaultsFileResults(parsedData) + err = validateResults(parsedData) if err != nil { return nil, err } @@ -162,9 +158,9 @@ func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { return parsedData, nil } -func validateDefaultsFileResults(data *credentialsSource) error { - if data.username == "" && data.password == "" && data.host == "" && data.port == 0 && data.socket == "" { - return errors.New("no data found in defaults file") +func validateResults(data *credentialsSource) error { + if data.username == "" && data.password == "" && data.host == "" && data.port == 0 && data.socket == "" && data.agentPassword == "" { + return errors.New("no data found in file") } return nil } @@ -180,33 +176,6 @@ func expandPath(path string) (string, error) { return path, nil } -// readCredentialsFromSource parses a JSON file src and return -// a credentials pointer containing the data. -func readCredentialsFromSource(src string) (*credentials, error) { - creds := credentials{"", "", ""} - - f, err := os.Lstat(src) - if err != nil { - return nil, fmt.Errorf("%w", err) - } - - if f.Mode()&0o111 != 0 { - return nil, fmt.Errorf("%w: %s", errors.New("execution is not supported"), src) - } - - // Read the file - content, err := readFile(src) - if err != nil { - return nil, fmt.Errorf("%w", err) - } - - if err := json.Unmarshal([]byte(content), &creds); err != nil { - return nil, fmt.Errorf("%w", err) - } - - return &creds, nil -} - // readFile reads file from filepath if filepath is not empty. func readFile(filePath string) (string, error) { if filePath == "" { @@ -220,19 +189,3 @@ func readFile(filePath string) (string, error) { return string(content), nil } - -// -func getFileContentType(file *os.File) (string, error) { - - buf := make([]byte, 512) - - _, err := file.Read(buf) - - if err != nil { - return "", err - } - - contentType := http.DetectContentType(buf) - - return contentType, nil -} diff --git a/agent/credentialssource/credentials_source_test.go b/agent/credentialssource/credentials_source_test.go index fc6042d286..dfd519c417 100644 --- a/agent/credentialssource/credentials_source_test.go +++ b/agent/credentialssource/credentials_source_test.go @@ -81,7 +81,7 @@ func TestValidateResults(t *testing.T) { t.Parallel() t.Run("validation error", func(t *testing.T) { t.Parallel() - err := validateDefaultsFileResults(&defaultsFile{ + err := validateResults(&defaultsFile{ "", "", "", @@ -94,7 +94,7 @@ func TestValidateResults(t *testing.T) { t.Run("validation ok - user and password", func(t *testing.T) { t.Parallel() - err := validateDefaultsFileResults(&defaultsFile{ + err := validateResults(&defaultsFile{ "root", "root123", "", @@ -107,7 +107,7 @@ func TestValidateResults(t *testing.T) { t.Run("validation ok - only port", func(t *testing.T) { t.Parallel() - err := validateDefaultsFileResults(&defaultsFile{ + err := validateResults(&defaultsFile{ "", "", "", diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index abc7bbdb5d..1d385cf038 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -213,9 +213,9 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { nodeSvc := management.NewNodeService(deps.db) serviceSvc := management.NewServiceService(deps.db, deps.agentsStateUpdater, deps.vmdb) mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.credentialsSourceAgentInvoker) - mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck) - postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck) - proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck) + mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker) + postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker) + proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker) managementpb.RegisterNodeServer(gRPCServer, managementgrpc.NewManagementNodeServer(nodeSvc)) managementpb.RegisterServiceServer(gRPCServer, managementgrpc.NewManagementServiceServer(serviceSvc)) diff --git a/managed/services/management/mongodb.go b/managed/services/management/mongodb.go index f7b68e6ab2..3574d8171f 100644 --- a/managed/services/management/mongodb.go +++ b/managed/services/management/mongodb.go @@ -17,6 +17,9 @@ package management import ( "context" + "fmt" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "github.com/AlekSi/pointer" "gopkg.in/reform.v1" @@ -33,14 +36,16 @@ type MongoDBService struct { db *reform.DB state agentsStateUpdater cc connectionChecker + csai credentialsSourceAgentInvoker } // NewMongoDBService creates new MongoDB Management Service. -func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChecker) *MongoDBService { +func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *MongoDBService { return &MongoDBService{ db: db, state: state, cc: cc, + csai: csai, } } @@ -49,6 +54,36 @@ func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRe res := &managementpb.AddMongoDBResponse{} if e := s.db.InTransaction(func(tx *reform.TX) error { + if req.CredentialsSource != "" { + result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.MongoDBServiceType) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.AgentPassword == "" && result.AgentPassword != "" { + req.AgentPassword = result.AgentPassword + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } + + if req.Port == 0 && result.Port > 0 { + req.Port = result.Port + } + + if req.Socket == "" && result.Socket != "" { + req.Socket = result.Socket + } + } + nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err diff --git a/managed/services/management/postgresql.go b/managed/services/management/postgresql.go index 87d2e9fb80..c38c24a677 100644 --- a/managed/services/management/postgresql.go +++ b/managed/services/management/postgresql.go @@ -17,6 +17,9 @@ package management import ( "context" + "fmt" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "github.com/AlekSi/pointer" "gopkg.in/reform.v1" @@ -32,14 +35,16 @@ type PostgreSQLService struct { db *reform.DB state agentsStateUpdater cc connectionChecker + csai credentialsSourceAgentInvoker } // NewPostgreSQLService creates new PostgreSQL Management Service. -func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker) *PostgreSQLService { +func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *PostgreSQLService { return &PostgreSQLService{ db: db, state: state, cc: cc, + csai: csai, } } @@ -48,6 +53,15 @@ func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgr res := &managementpb.AddPostgreSQLResponse{} if e := s.db.InTransaction(func(tx *reform.TX) error { + if req.CredentialsSource != "" { + result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.PostgreSQLServiceType) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + + s.applyCredentialsSource(req, result) + } + nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err @@ -162,3 +176,31 @@ func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgr s.state.RequestStateUpdate(ctx, req.PmmAgentId) return res, nil } + +// applyCredentialsSource apply strategy: passed username/password/...etc in request have higher priority than +// credentials from credentialsSource file +func (s *PostgreSQLService) applyCredentialsSource(req *managementpb.AddPostgreSQLRequest, result *models.CredentialsSourceParsingResult) { + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.AgentPassword == "" && result.AgentPassword != "" { + req.AgentPassword = result.AgentPassword + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } + + if req.Port == 0 && result.Port > 0 { + req.Port = result.Port + } + + if req.Socket == "" && result.Socket != "" { + req.Socket = result.Socket + } +} diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 84d2586185..92e654af50 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -17,6 +17,9 @@ package management import ( "context" + "fmt" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "github.com/AlekSi/pointer" "gopkg.in/reform.v1" @@ -32,14 +35,16 @@ type ProxySQLService struct { db *reform.DB state agentsStateUpdater cc connectionChecker + csai credentialsSourceAgentInvoker } // NewProxySQLService creates new ProxySQL Management Service. -func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker) *ProxySQLService { +func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *ProxySQLService { return &ProxySQLService{ db: db, state: state, cc: cc, + csai: csai, } } @@ -48,6 +53,15 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL res := &managementpb.AddProxySQLResponse{} if e := s.db.InTransaction(func(tx *reform.TX) error { + if req.CredentialsSource != "" { + result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.ProxySQLServiceType) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + + s.applyCredentialsSource(req, result) + } + nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err @@ -114,3 +128,31 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL s.state.RequestStateUpdate(ctx, req.PmmAgentId) return res, nil } + +// applyCredentialsSource apply strategy: passed username/password/...etc in request have higher priority than +// credentials from credentialsSource file +func (s *ProxySQLService) applyCredentialsSource(req *managementpb.AddProxySQLRequest, result *models.CredentialsSourceParsingResult) { + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.AgentPassword == "" && result.AgentPassword != "" { + req.AgentPassword = result.AgentPassword + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } + + if req.Port == 0 && result.Port > 0 { + req.Port = result.Port + } + + if req.Socket == "" && result.Socket != "" { + req.Socket = result.Socket + } +} From 79b6193b56399aa96fa650d91125093157ea79d2 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 9 Aug 2022 17:31:52 +0200 Subject: [PATCH 06/29] PMM-10231 Credentials source implementation. --- agent/credentialssource/credentials_source.go | 5 ++ .../credentials_source_test.go | 21 ++++++-- .../.my.cnf | 0 .../credentialssource/credentials.json | 5 ++ managed/cmd/pmm-managed/main.go | 4 +- managed/services/management/external.go | 31 ++++++++++- managed/services/management/haproxy.go | 32 ++++++++++- managed/services/management/mongodb.go | 53 ++++++++++--------- managed/services/management/mysql.go | 49 +++++++++-------- managed/services/management/postgresql.go | 4 +- managed/services/management/proxysql.go | 4 +- 11 files changed, 149 insertions(+), 59 deletions(-) rename agent/utils/tests/testdata/{defaultsfile => credentialssource}/.my.cnf (100%) create mode 100644 agent/utils/tests/testdata/credentialssource/credentials.json diff --git a/agent/credentialssource/credentials_source.go b/agent/credentialssource/credentials_source.go index b23a1ec0c2..b9e6d8d810 100644 --- a/agent/credentialssource/credentials_source.go +++ b/agent/credentialssource/credentials_source.go @@ -85,6 +85,11 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service return nil, fmt.Errorf("fail to normalize path: %w", err) } + // check if file exist + if _, err := os.Stat(filePath); errors.Is(err, os.ErrNotExist) { + return nil, fmt.Errorf("file doesn't exist: %s", filePath) + } + credentialsJsonFile, err := parseJsonFile(filePath) if err == nil { return credentialsJsonFile, nil diff --git a/agent/credentialssource/credentials_source_test.go b/agent/credentialssource/credentials_source_test.go index dfd519c417..9fef27df88 100644 --- a/agent/credentialssource/credentials_source_test.go +++ b/agent/credentialssource/credentials_source_test.go @@ -29,12 +29,20 @@ func TestDefaultsFileParser(t *testing.T) { t.Parallel() cnfFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/.my.cnf") assert.NoError(t, err) + jsonFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/credentials.json") testCases := []struct { name string req *agentpb.ParseCredentialsSourceRequest expectedErr string }{ + { + name: "Test json parser", + req: &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, + FilePath: jsonFilePath, + }, + }, { name: "Valid MySQL file", req: &agentpb.ParseCredentialsSourceRequest{ @@ -51,12 +59,12 @@ func TestDefaultsFileParser(t *testing.T) { expectedErr: `no such file or directory`, }, { - name: "Service type not supported", + name: "Unrecognized file type (haproxy not implemented yet)", req: &agentpb.ParseCredentialsSourceRequest{ ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, FilePath: cnfFilePath, }, - expectedErr: `unimplemented service type HAPROXY_SERVICE`, + expectedErr: `unrecognized file type`, }, } @@ -81,7 +89,8 @@ func TestValidateResults(t *testing.T) { t.Parallel() t.Run("validation error", func(t *testing.T) { t.Parallel() - err := validateResults(&defaultsFile{ + err := validateResults(&credentialsSource{ + "", "", "", "", @@ -94,10 +103,11 @@ func TestValidateResults(t *testing.T) { t.Run("validation ok - user and password", func(t *testing.T) { t.Parallel() - err := validateResults(&defaultsFile{ + err := validateResults(&credentialsSource{ "root", "root123", "", + "", 0, "", }) @@ -107,7 +117,8 @@ func TestValidateResults(t *testing.T) { t.Run("validation ok - only port", func(t *testing.T) { t.Parallel() - err := validateResults(&defaultsFile{ + err := validateResults(&credentialsSource{ + "", "", "", "", diff --git a/agent/utils/tests/testdata/defaultsfile/.my.cnf b/agent/utils/tests/testdata/credentialssource/.my.cnf similarity index 100% rename from agent/utils/tests/testdata/defaultsfile/.my.cnf rename to agent/utils/tests/testdata/credentialssource/.my.cnf diff --git a/agent/utils/tests/testdata/credentialssource/credentials.json b/agent/utils/tests/testdata/credentialssource/credentials.json new file mode 100644 index 0000000000..27e4af1864 --- /dev/null +++ b/agent/utils/tests/testdata/credentialssource/credentials.json @@ -0,0 +1,5 @@ +{ + "agentPassword1": "agentPassword", + "username": "username", + "password": "password" +} diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index 1d385cf038..3fbb1e6724 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -226,8 +226,8 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { managementpb.RegisterActionsServer(gRPCServer, managementgrpc.NewActionsServer(deps.actions, deps.db)) managementpb.RegisterRDSServer(gRPCServer, management.NewRDSService(deps.db, deps.agentsStateUpdater, deps.connectionCheck)) azurev1beta1.RegisterAzureDatabaseServer(gRPCServer, management.NewAzureDatabaseService(deps.db, deps.agentsRegistry, deps.agentsStateUpdater, deps.connectionCheck)) - managementpb.RegisterHAProxyServer(gRPCServer, management.NewHAProxyService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck)) - managementpb.RegisterExternalServer(gRPCServer, management.NewExternalService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck)) + managementpb.RegisterHAProxyServer(gRPCServer, management.NewHAProxyService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker)) + managementpb.RegisterExternalServer(gRPCServer, management.NewExternalService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker)) managementpb.RegisterAnnotationServer(gRPCServer, managementgrpc.NewAnnotationServer(deps.db, deps.grafanaClient)) managementpb.RegisterSecurityChecksServer(gRPCServer, management.NewChecksAPIService(deps.checksService)) diff --git a/managed/services/management/external.go b/managed/services/management/external.go index 12793a49db..956649082c 100644 --- a/managed/services/management/external.go +++ b/managed/services/management/external.go @@ -17,6 +17,7 @@ package management import ( "context" + "fmt" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -35,17 +36,19 @@ type ExternalService struct { vmdb prometheusService state agentsStateUpdater cc connectionChecker + csai credentialsSourceAgentInvoker managementpb.UnimplementedExternalServer } // NewExternalService creates new External Management Service. -func NewExternalService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker) *ExternalService { +func NewExternalService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *ExternalService { return &ExternalService{ db: db, vmdb: vmdb, state: state, cc: cc, + csai: csai, } } @@ -68,6 +71,18 @@ func (e *ExternalService) AddExternal(ctx context.Context, req *managementpb.Add if req.AddNode != nil && runsOnNodeId == "" { runsOnNodeId = nodeID } + if req.CredentialsSource != "" { + agentIDs, err := models.FindPMMAgentsRunningOnNode(tx.Querier, req.RunsOnNodeId) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("cannot find agents: %s.", err)) + } + result, err := e.csai.InvokeAgent(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + + e.applyCredentialsSource(req, result) + } service, err := models.AddNewService(tx.Querier, models.ExternalServiceType, &models.AddDBMSServiceParams{ ServiceName: req.ServiceName, @@ -143,3 +158,17 @@ func (e *ExternalService) AddExternal(ctx context.Context, req *managementpb.Add } return res, nil } + +func (e *ExternalService) applyCredentialsSource(req *managementpb.AddExternalRequest, result *models.CredentialsSourceParsingResult) { + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } +} diff --git a/managed/services/management/haproxy.go b/managed/services/management/haproxy.go index fd32e56cf7..d1f973e366 100644 --- a/managed/services/management/haproxy.go +++ b/managed/services/management/haproxy.go @@ -17,6 +17,7 @@ package management import ( "context" + "fmt" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -34,17 +35,19 @@ type HAProxyService struct { vmdb prometheusService state agentsStateUpdater cc connectionChecker + csai credentialsSourceAgentInvoker managementpb.UnimplementedHAProxyServer } // NewHAProxyService creates new HAProxy Management Service. -func NewHAProxyService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker) *HAProxyService { +func NewHAProxyService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *HAProxyService { return &HAProxyService{ db: db, vmdb: vmdb, state: state, cc: cc, + csai: csai, } } @@ -60,6 +63,19 @@ func (e HAProxyService) AddHAProxy(ctx context.Context, req *managementpb.AddHAP return err } + if req.CredentialsSource != "" { + agentIDs, err := models.FindPMMAgentsRunningOnNode(tx.Querier, req.NodeId) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("cannot find agents: %s.", err)) + } + result, err := e.csai.InvokeAgent(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) + if err != nil { + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + + e.applyCredentialsSource(req, result) + } + service, err := models.AddNewService(tx.Querier, models.HAProxyServiceType, &models.AddDBMSServiceParams{ ServiceName: req.ServiceName, NodeID: nodeID, @@ -133,3 +149,17 @@ func (e HAProxyService) AddHAProxy(ctx context.Context, req *managementpb.AddHAP } return res, nil } + +func (e HAProxyService) applyCredentialsSource(req *managementpb.AddHAProxyRequest, result *models.CredentialsSourceParsingResult) { + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } +} diff --git a/managed/services/management/mongodb.go b/managed/services/management/mongodb.go index 3574d8171f..83d99c3315 100644 --- a/managed/services/management/mongodb.go +++ b/managed/services/management/mongodb.go @@ -18,10 +18,10 @@ package management import ( "context" "fmt" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" "github.com/AlekSi/pointer" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "gopkg.in/reform.v1" "github.com/percona/pmm/api/inventorypb" @@ -59,29 +59,8 @@ func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRe if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } - if req.Username == "" && result.Username != "" { - req.Username = result.Username - } - - if req.Password == "" && result.Password != "" { - req.Password = result.Password - } - if req.AgentPassword == "" && result.AgentPassword != "" { - req.AgentPassword = result.AgentPassword - } - - if req.Address == "" && result.Host != "" { - req.Address = result.Host - } - - if req.Port == 0 && result.Port > 0 { - req.Port = result.Port - } - - if req.Socket == "" && result.Socket != "" { - req.Socket = result.Socket - } + s.applyCredentialsSource(req, result) } nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) @@ -176,3 +155,29 @@ func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRe s.state.RequestStateUpdate(ctx, req.PmmAgentId) return res, nil } + +func (s *MongoDBService) applyCredentialsSource(req *managementpb.AddMongoDBRequest, result *models.CredentialsSourceParsingResult) { + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.AgentPassword == "" && result.AgentPassword != "" { + req.AgentPassword = result.AgentPassword + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } + + if req.Port == 0 && result.Port > 0 { + req.Port = result.Port + } + + if req.Socket == "" && result.Socket != "" { + req.Socket = result.Socket + } +} diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index cdfd22e30b..8a47336adc 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -83,29 +83,8 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } - if req.Username == "" && result.Username != "" { - req.Username = result.Username - } - - if req.Password == "" && result.Password != "" { - req.Password = result.Password - } - - if req.AgentPassword == "" && result.AgentPassword != "" { - req.AgentPassword = result.AgentPassword - } - - if req.Address == "" && result.Host != "" { - req.Address = result.Host - } - - if req.Port == 0 && result.Port > 0 { - req.Port = result.Port - } - if req.Socket == "" && result.Socket != "" { - req.Socket = result.Socket - } + s.applyCredentialsSource(req, result) } nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) @@ -227,3 +206,29 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques return res, nil } + +func (s *MySQLService) applyCredentialsSource(req *managementpb.AddMySQLRequest, result *models.CredentialsSourceParsingResult) { + if req.Username == "" && result.Username != "" { + req.Username = result.Username + } + + if req.Password == "" && result.Password != "" { + req.Password = result.Password + } + + if req.AgentPassword == "" && result.AgentPassword != "" { + req.AgentPassword = result.AgentPassword + } + + if req.Address == "" && result.Host != "" { + req.Address = result.Host + } + + if req.Port == 0 && result.Port > 0 { + req.Port = result.Port + } + + if req.Socket == "" && result.Socket != "" { + req.Socket = result.Socket + } +} diff --git a/managed/services/management/postgresql.go b/managed/services/management/postgresql.go index c38c24a677..d5186d8865 100644 --- a/managed/services/management/postgresql.go +++ b/managed/services/management/postgresql.go @@ -18,10 +18,10 @@ package management import ( "context" "fmt" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" "github.com/AlekSi/pointer" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "gopkg.in/reform.v1" "github.com/percona/pmm/api/inventorypb" diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 92e654af50..8b89c2d2c6 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -18,10 +18,10 @@ package management import ( "context" "fmt" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" "github.com/AlekSi/pointer" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" "gopkg.in/reform.v1" "github.com/percona/pmm/api/inventorypb" From d8b291afbf8ec95540dc673fbf57139904ef68c4 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 9 Aug 2022 18:00:05 +0200 Subject: [PATCH 07/29] PMM-10231 Credentials source implementation. Fixing tests. --- agent/credentialssource/credentials_source_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/credentialssource/credentials_source_test.go b/agent/credentialssource/credentials_source_test.go index 9fef27df88..057305c624 100644 --- a/agent/credentialssource/credentials_source_test.go +++ b/agent/credentialssource/credentials_source_test.go @@ -30,6 +30,7 @@ func TestDefaultsFileParser(t *testing.T) { cnfFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/.my.cnf") assert.NoError(t, err) jsonFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/credentials.json") + assert.NoError(t, err) testCases := []struct { name string @@ -56,7 +57,7 @@ func TestDefaultsFileParser(t *testing.T) { ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, FilePath: "path/to/invalid/file.cnf", }, - expectedErr: `no such file or directory`, + expectedErr: `file doesn't exist`, }, { name: "Unrecognized file type (haproxy not implemented yet)", From 304e811e9a2f292c73a8d144cb87f7fd17e77b6a Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 9 Aug 2022 18:23:31 +0200 Subject: [PATCH 08/29] PMM-10231 Credentials source implementation. Fixing tests. --- agent/credentialssource/credentials_source.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/agent/credentialssource/credentials_source.go b/agent/credentialssource/credentials_source.go index b9e6d8d810..371907a7bc 100644 --- a/agent/credentialssource/credentials_source.go +++ b/agent/credentialssource/credentials_source.go @@ -30,7 +30,7 @@ import ( "github.com/percona/pmm/api/inventorypb" ) -// Parser is a struct which is responsible for parsing credentialsJson source/defaults file. +// Parser is a struct which is responsible for parsing credentialsJSON source/defaults file. type Parser struct{} // New creates new Parser. @@ -47,10 +47,10 @@ type credentialsSource struct { socket string } -// credentialsJson provides access to an external provider so that +// credentialsJSON provides access to an external provider so that // the username, password, or agent password can be managed // externally, e.g. HashiCorp Vault, Ansible Vault, etc. -type credentialsJson struct { +type credentialsJSON struct { AgentPassword string `json:"agentpassword"` Password string `json:"password"` Username string `json:"username"` @@ -87,23 +87,23 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service // check if file exist if _, err := os.Stat(filePath); errors.Is(err, os.ErrNotExist) { - return nil, fmt.Errorf("file doesn't exist: %s", filePath) + return nil, errors.Errorf("file doesn't exist: %s", filePath) } - credentialsJsonFile, err := parseJsonFile(filePath) + credentialsJSONFile, err := parseJsonFile(filePath) if err == nil { - return credentialsJsonFile, nil + return credentialsJSONFile, nil } if serviceType == inventorypb.ServiceType_MYSQL_SERVICE { return parseMySQLDefaultsFile(filePath) } - return nil, fmt.Errorf("unrecognized file type %s", filePath) + return nil, errors.Errorf("unrecognized file type %s", filePath) } func parseJsonFile(filePath string) (*credentialsSource, error) { - creds := credentialsJson{"", "", ""} + creds := credentialsJSON{"", "", ""} f, err := os.Lstat(filePath) if err != nil { From c469a5bd50c0857b15911a7591e2e0a8155c7419 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 9 Aug 2022 18:49:00 +0200 Subject: [PATCH 09/29] PMM-10231 Credentials source implementation. Change admin's defaults. --- admin/commands/management/add_mongodb.go | 5 +++++ admin/commands/management/add_mysql.go | 5 +++++ admin/commands/management/add_postgresql.go | 5 +++++ admin/commands/management/add_proxysql.go | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/admin/commands/management/add_mongodb.go b/admin/commands/management/add_mongodb.go index 3c976f7cc3..4f3b01c023 100644 --- a/admin/commands/management/add_mongodb.go +++ b/admin/commands/management/add_mongodb.go @@ -90,6 +90,11 @@ func (cmd *addMongoDBCommand) GetAddress() string { } func (cmd *addMongoDBCommand) GetDefaultAddress() string { + if cmd.CredentialsSource != "" { + // address might be specified in credentials source file + return "" + } + return "127.0.0.1:27017" } diff --git a/admin/commands/management/add_mysql.go b/admin/commands/management/add_mysql.go index d47b3eb6af..d2595880ce 100644 --- a/admin/commands/management/add_mysql.go +++ b/admin/commands/management/add_mysql.go @@ -126,6 +126,11 @@ func (cmd *addMySQLCommand) GetAddress() string { } func (cmd *addMySQLCommand) GetDefaultAddress() string { + if cmd.CredentialsSource != "" { + // address might be specified in credentials source file + return "" + } + return "127.0.0.1:3306" } diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index c30eac5d19..7264c37451 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -82,6 +82,11 @@ func (cmd *addPostgreSQLCommand) GetAddress() string { } func (cmd *addPostgreSQLCommand) GetDefaultAddress() string { + if cmd.CredentialsSource != "" { + // address might be specified in credentials source file + return "" + } + return "127.0.0.1:5432" } diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index 0eb2c312e6..6261c5a9f5 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -74,6 +74,11 @@ func (cmd *addProxySQLCommand) GetAddress() string { } func (cmd *addProxySQLCommand) GetDefaultAddress() string { + if cmd.CredentialsSource != "" { + // address might be specified in credentials source file + return "" + } + return "127.0.0.1:6032" } From cdc336a4fc7b172eb0732215656e0d357435d09c Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 18 Aug 2022 22:07:24 +0200 Subject: [PATCH 10/29] PMM-10231 Defaults set for username/passwords in case when credentials-source is not passed. --- admin/commands/management/add_mysql.go | 10 +- admin/commands/management/add_postgresql.go | 10 +- admin/commands/management/add_proxysql.go | 22 +- api/managementpb/mysql.pb.go | 224 +++++++++---------- api/managementpb/mysql.proto | 6 +- api/managementpb/mysql.validator.pb.go | 3 - api/managementpb/postgresql.pb.go | 226 ++++++++++---------- api/managementpb/postgresql.proto | 6 +- api/managementpb/postgresql.validator.pb.go | 3 - api/managementpb/proxysql.pb.go | 160 +++++++------- api/managementpb/proxysql.proto | 6 +- api/managementpb/proxysql.validator.pb.go | 3 - 12 files changed, 346 insertions(+), 333 deletions(-) diff --git a/admin/commands/management/add_mysql.go b/admin/commands/management/add_mysql.go index d2595880ce..5c01e3483f 100644 --- a/admin/commands/management/add_mysql.go +++ b/admin/commands/management/add_mysql.go @@ -134,6 +134,10 @@ func (cmd *addMySQLCommand) GetDefaultAddress() string { return "127.0.0.1:3306" } +func (cmd *addMySQLCommand) GetDefaultUsername() string { + return "root" +} + func (cmd *addMySQLCommand) GetSocket() string { return cmd.Socket } @@ -194,6 +198,10 @@ func (cmd *addMySQLCommand) Run() (commands.Result, error) { tablestatsGroupTableLimit = -1 } + if cmd.CredentialsSource == "" && cmd.Username == "" { + cmd.Username = cmd.GetDefaultUsername() + } + params := &mysql.AddMySQLParams{ Body: mysql.AddMySQLBody{ NodeID: cmd.NodeID, @@ -259,7 +267,7 @@ func init() { AddMySQLC.Flag("node-id", "Node ID (default is autodetected)").StringVar(&AddMySQL.NodeID) AddMySQLC.Flag("pmm-agent-id", "The pmm-agent identifier which runs this instance (default is autodetected)").StringVar(&AddMySQL.PMMAgentID) - AddMySQLC.Flag("username", "MySQL username").Default("root").StringVar(&AddMySQL.Username) + AddMySQLC.Flag("username", "MySQL username").StringVar(&AddMySQL.Username) AddMySQLC.Flag("password", "MySQL password").StringVar(&AddMySQL.Password) AddMySQLC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddMySQL.AgentPassword) AddMySQLC.Flag("credentials-source", "Credentials provider").StringVar(&AddMySQL.CredentialsSource) diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index 7264c37451..285c1c3725 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -90,6 +90,10 @@ func (cmd *addPostgreSQLCommand) GetDefaultAddress() string { return "127.0.0.1:5432" } +func (cmd *addPostgreSQLCommand) GetDefaultUsername() string { + return "root" +} + func (cmd *addPostgreSQLCommand) GetSocket() string { return cmd.Socket } @@ -148,6 +152,10 @@ func (cmd *addPostgreSQLCommand) Run() (commands.Result, error) { } } + if cmd.CredentialsSource == "" && cmd.Username == "" { + cmd.Username = cmd.GetDefaultUsername() + } + params := &postgresql.AddPostgreSQLParams{ Body: postgresql.AddPostgreSQLBody{ NodeID: cmd.NodeID, @@ -209,7 +217,7 @@ func init() { AddPostgreSQLC.Arg("address", "PostgreSQL address and port (default: 127.0.0.1:5432)").StringVar(&AddPostgreSQL.Address) AddPostgreSQLC.Flag("socket", "Path to socket").StringVar(&AddPostgreSQL.Socket) - AddPostgreSQLC.Flag("username", "PostgreSQL username").Default("postgres").StringVar(&AddPostgreSQL.Username) + AddPostgreSQLC.Flag("username", "PostgreSQL username").StringVar(&AddPostgreSQL.Username) AddPostgreSQLC.Flag("password", "PostgreSQL password").StringVar(&AddPostgreSQL.Password) AddPostgreSQLC.Flag("database", "PostgreSQL database").StringVar(&AddPostgreSQL.Database) AddPostgreSQLC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddPostgreSQL.AgentPassword) diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index 6261c5a9f5..6e8d2e221c 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -82,6 +82,14 @@ func (cmd *addProxySQLCommand) GetDefaultAddress() string { return "127.0.0.1:6032" } +func (cmd *addProxySQLCommand) GetDefaultUsername() string { + return "admin" +} + +func (cmd *addProxySQLCommand) GetDefaultPassword() string { + return "admin" +} + func (cmd *addProxySQLCommand) GetSocket() string { return cmd.Socket } @@ -105,6 +113,16 @@ func (cmd *addProxySQLCommand) Run() (commands.Result, error) { } } + if cmd.CredentialsSource == "" { + if cmd.Username == "" { + cmd.Username = cmd.GetDefaultUsername() + } + + if cmd.Password == "" { + cmd.Password = cmd.GetDefaultPassword() + } + } + serviceName, socket, host, port, err := processGlobalAddFlagsWithSocket(cmd) if err != nil { return nil, err @@ -164,8 +182,8 @@ func init() { AddProxySQLC.Flag("node-id", "Node ID (default is autodetected)").StringVar(&AddProxySQL.NodeID) AddProxySQLC.Flag("pmm-agent-id", "The pmm-agent identifier which runs this instance (default is autodetected)").StringVar(&AddProxySQL.PMMAgentID) - AddProxySQLC.Flag("username", "ProxySQL username").Default("admin").StringVar(&AddProxySQL.Username) - AddProxySQLC.Flag("password", "ProxySQL password").Default("admin").StringVar(&AddProxySQL.Password) + AddProxySQLC.Flag("username", "ProxySQL username").StringVar(&AddProxySQL.Username) + AddProxySQLC.Flag("password", "ProxySQL password").StringVar(&AddProxySQL.Password) AddProxySQLC.Flag("agent-password", "Custom password for /metrics endpoint").StringVar(&AddProxySQL.AgentPassword) AddProxySQLC.Flag("credentials-source", "Credentials provider").StringVar(&AddProxySQL.CredentialsSource) diff --git a/api/managementpb/mysql.pb.go b/api/managementpb/mysql.pb.go index a3511dab85..6e838fc2f0 100644 --- a/api/managementpb/mysql.pb.go +++ b/api/managementpb/mysql.pb.go @@ -449,7 +449,7 @@ var file_managementpb_mysql_proto_rawDesc = []byte{ 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x0a, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, + 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x09, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, @@ -473,118 +473,118 @@ var file_managementpb_mysql_proto_rawDesc = []byte{ 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, - 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, - 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, - 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, - 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x2a, 0x0a, 0x11, 0x71, 0x61, 0x6e, - 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x0e, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, - 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x12, 0x52, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6d, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, + 0x30, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, + 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x71, + 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x12, 0x2a, 0x0a, 0x11, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x73, + 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x71, 0x61, + 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x12, 0x52, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0f, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x6d, + 0x61, 0x78, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x53, + 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x10, + 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, + 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, + 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, + 0x63, 0x61, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x1a, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, + 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, + 0x4b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x74, 0x61, 0x74, + 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x73, 0x74, 0x61, 0x74, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3a, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, + 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, + 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, + 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, + 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, + 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, + 0x76, 0x65, 0x6c, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, + 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1e, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcd, 0x02, 0x0a, 0x10, 0x41, 0x64, 0x64, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, + 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, + 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, + 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, + 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x71, 0x61, + 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, + 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x0f, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, + 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x84, 0x03, 0x0a, 0x05, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x12, 0xfa, 0x02, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, + 0x1b, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, - 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x34, 0x0a, - 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, - 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, - 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, - 0x6f, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x46, 0x69, - 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x13, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, - 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x14, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, - 0x65, 0x72, 0x74, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, - 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x1b, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x1c, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x19, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x74, 0x61, 0x74, 0x73, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3a, 0x0a, 0x0c, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x17, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x18, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, - 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1d, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, - 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, - 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, - 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0xcd, 0x02, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, - 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, - 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, - 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, - 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, - 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, - 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x0f, - 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x12, - 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x32, 0x84, 0x03, 0x0a, 0x05, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xfa, 0x02, 0x0a, 0x08, 0x41, - 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1b, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xb2, 0x02, 0x92, 0x41, 0x8b, 0x02, 0x12, 0x09, 0x41, 0x64, 0x64, 0x20, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xfd, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, - 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, - 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, - 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, - 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, - 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, - 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4d, 0x79, 0x53, 0x51, 0x4c, - 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8d, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x4d, 0x79, 0x73, 0x71, - 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, - 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb2, 0x02, 0x92, 0x41, 0x8b, + 0x02, 0x12, 0x09, 0x41, 0x64, 0x64, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xfd, 0x01, 0x41, + 0x64, 0x64, 0x73, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, + 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, + 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, + 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, + 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, + 0x20, 0x22, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x20, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, + 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x2f, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, + 0x8d, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x42, 0x0a, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, + 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, + 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/mysql.proto b/api/managementpb/mysql.proto index 14c68843ba..1434dda96b 100644 --- a/api/managementpb/mysql.proto +++ b/api/managementpb/mysql.proto @@ -53,11 +53,7 @@ message AddMySQLRequest { // Replication set name. string replication_set = 10; // MySQL username for scraping metrics. - string username = 11 [ - (validator.field) = { - string_not_empty: true - } - ]; + string username = 11; // MySQL password for scraping metrics. string password = 12; // If true, adds qan-mysql-perfschema-agent for provided service. diff --git a/api/managementpb/mysql.validator.pb.go b/api/managementpb/mysql.validator.pb.go index 76ae27412a..6f8cc41447 100644 --- a/api/managementpb/mysql.validator.pb.go +++ b/api/managementpb/mysql.validator.pb.go @@ -36,9 +36,6 @@ func (this *AddMySQLRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) } - if this.Username == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Username", fmt.Errorf(`value '%v' must not be an empty string`, this.Username)) - } // Validation of proto3 map<> fields is unsupported. return nil } diff --git a/api/managementpb/postgresql.pb.go b/api/managementpb/postgresql.pb.go index 949488d226..be6ffe9934 100644 --- a/api/managementpb/postgresql.pb.go +++ b/api/managementpb/postgresql.pb.go @@ -427,7 +427,7 @@ var file_managementpb_postgresql_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x09, 0x0a, + 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x09, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, @@ -453,119 +453,119 @@ var file_managementpb_postgresql_proto_rawDesc = []byte{ 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x22, 0x0a, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x49, 0x0a, - 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, - 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, - 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, - 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x13, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x0d, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, - 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0f, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, - 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x12, 0x3a, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x6d, 0x6f, - 0x64, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, - 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, - 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x15, 0x0a, - 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, - 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, - 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, - 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, - 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1c, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, - 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, - 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x88, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, - 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x74, 0x0a, - 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, - 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, - 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, - 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0x77, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, - 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, - 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, 0x6e, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x49, 0x0a, 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, + 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x4b, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, + 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1f, 0x71, 0x61, + 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, + 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, + 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x65, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x64, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, + 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, + 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, + 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3a, 0x0a, 0x0c, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x16, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x18, + 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x12, 0x19, 0x0a, 0x08, + 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x74, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, + 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, + 0x72, 0x64, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, + 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x03, 0x0a, 0x15, 0x41, 0x64, + 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x74, 0x0a, 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, - 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x32, 0x81, 0x03, 0x0a, - 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0xf2, 0x02, 0x0a, 0x0d, - 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0x20, 0x2e, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x21, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, - 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x9b, 0x02, 0x92, 0x41, 0xef, 0x01, 0x12, 0x0e, 0x41, 0x64, 0x64, 0x20, 0x50, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x1a, 0xdc, 0x01, 0x41, 0x64, 0x64, 0x73, - 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x70, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, - 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, - 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, - 0x73, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, - 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, - 0x42, 0x92, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, - 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, - 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x77, 0x0a, 0x22, 0x71, + 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, + 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, + 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, + 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x32, 0x81, 0x03, 0x0a, 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x53, 0x51, 0x4c, 0x12, 0xf2, 0x02, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0x20, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, + 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x02, 0x92, 0x41, 0xef, + 0x01, 0x12, 0x0e, 0x41, 0x64, 0x64, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, + 0x4c, 0x1a, 0xdc, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, + 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, + 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, + 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, + 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, + 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, + 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x67, + 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, + 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, + 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, + 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, + 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x92, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, + 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x50, 0x6f, 0x73, + 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, + 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, + 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/postgresql.proto b/api/managementpb/postgresql.proto index e074e792a6..e6eb4f9b45 100644 --- a/api/managementpb/postgresql.proto +++ b/api/managementpb/postgresql.proto @@ -55,11 +55,7 @@ message AddPostgreSQLRequest { // Replication set name. string replication_set = 10; // PostgreSQL username for scraping metrics. - string username = 11 [ - (validator.field) = { - string_not_empty: true - } - ]; + string username = 11; // PostgreSQL password for scraping metrics. string password = 12; // If true, adds qan-postgresql-pgstatements-agent for provided service. diff --git a/api/managementpb/postgresql.validator.pb.go b/api/managementpb/postgresql.validator.pb.go index 72a2f18d9e..8a3c495040 100644 --- a/api/managementpb/postgresql.validator.pb.go +++ b/api/managementpb/postgresql.validator.pb.go @@ -36,9 +36,6 @@ func (this *AddPostgreSQLRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) } - if this.Username == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Username", fmt.Errorf(`value '%v' must not be an empty string`, this.Username)) - } // Validation of proto3 map<> fields is unsupported. return nil } diff --git a/api/managementpb/proxysql.pb.go b/api/managementpb/proxysql.pb.go index cb79c35364..d00e3ae6cf 100644 --- a/api/managementpb/proxysql.pb.go +++ b/api/managementpb/proxysql.pb.go @@ -348,7 +348,7 @@ var file_managementpb_proxysql_proto_rawDesc = []byte{ 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x07, 0x0a, 0x12, 0x41, + 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x07, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, @@ -372,85 +372,85 @@ var file_managementpb_proxysql_proto_rawDesc = []byte{ 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x22, 0x0a, - 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x55, 0x0a, - 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0d, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0e, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, - 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, - 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x10, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x12, 0x3a, 0x0a, 0x0c, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x6d, 0x6f, - 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, - 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, - 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x25, 0x0a, - 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, - 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, - 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, - 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xf0, - 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xe3, 0x02, 0x0a, 0x0b, - 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x02, 0x92, - 0x41, 0xe8, 0x01, 0x12, 0x0c, 0x41, 0x64, 0x64, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, - 0x4c, 0x1a, 0xd7, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, - 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, - 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, - 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, - 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, - 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x55, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, + 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x15, + 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, + 0x70, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x12, 0x10, 0x0a, 0x03, 0x74, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x74, + 0x6c, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, + 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x3a, 0x0a, 0x0c, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x17, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x6d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x13, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x09, + 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2d, + 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, + 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, + 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, + 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, + 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xf0, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x53, 0x51, 0x4c, 0x12, 0xe3, 0x02, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x02, 0x92, 0x41, 0xe8, 0x01, 0x12, 0x0c, 0x41, 0x64, 0x64, + 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xd7, 0x01, 0x41, 0x64, 0x64, 0x73, + 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, + 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, + 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, + 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, + 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, + 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x72, + 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, + 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, + 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, + 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, + 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, + 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x50, 0x72, + 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, + 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/managementpb/proxysql.proto b/api/managementpb/proxysql.proto index 63e672291f..39547558e6 100644 --- a/api/managementpb/proxysql.proto +++ b/api/managementpb/proxysql.proto @@ -53,11 +53,7 @@ message AddProxySQLRequest { // Replication set name. string replication_set = 10; // ProxySQL username for scraping metrics. - string username = 11 [ - (validator.field) = { - string_not_empty: true - } - ]; + string username = 11; // ProxySQL password for scraping metrics. string password = 12; // Custom user-assigned labels for Service. diff --git a/api/managementpb/proxysql.validator.pb.go b/api/managementpb/proxysql.validator.pb.go index 62d7c623f7..de50b0e141 100644 --- a/api/managementpb/proxysql.validator.pb.go +++ b/api/managementpb/proxysql.validator.pb.go @@ -36,9 +36,6 @@ func (this *AddProxySQLRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) } - if this.Username == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Username", fmt.Errorf(`value '%v' must not be an empty string`, this.Username)) - } // Validation of proto3 map<> fields is unsupported. return nil } From fb675b68e11ed74ecfebebf3700f8ce20e6f1cea Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 18 Aug 2022 23:30:39 +0200 Subject: [PATCH 11/29] PMM-10231 Fixing api-tests. --- api-tests/management/mysql_test.go | 10 ++++++++-- api-tests/management/proxysql_test.go | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/api-tests/management/mysql_test.go b/api-tests/management/mysql_test.go index e168fb5da3..1af4c7c09d 100644 --- a/api-tests/management/mysql_test.go +++ b/api-tests/management/mysql_test.go @@ -595,6 +595,7 @@ func TestAddMySQL(t *testing.T) { assert.Nil(t, addMySQLOK) }) + // according to credentials-source parameter, passing empty username is allowed t.Run("Empty username", func(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") nodeID, pmmAgentID := RegisterGenericNode(t, node.RegisterNodeBody{ @@ -613,11 +614,16 @@ func TestAddMySQL(t *testing.T) { Address: "10.10.10.10", Port: 3306, PMMAgentID: pmmAgentID, + + SkipConnectionCheck: true, }, } addMySQLOK, err := client.Default.MySQL.AddMySQL(params) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") - assert.Nil(t, addMySQLOK) + require.NoError(t, err) + require.NotNil(t, addMySQLOK) + require.NotNil(t, addMySQLOK.Payload.Service) + serviceID := addMySQLOK.Payload.Service.ServiceID + defer pmmapitests.RemoveServices(t, serviceID) }) t.Run("With MetricsModePush", func(t *testing.T) { diff --git a/api-tests/management/proxysql_test.go b/api-tests/management/proxysql_test.go index 9b5fcf330f..342fb47531 100644 --- a/api-tests/management/proxysql_test.go +++ b/api-tests/management/proxysql_test.go @@ -565,6 +565,7 @@ func TestAddProxySQL(t *testing.T) { assert.Nil(t, addProxySQLOK) }) + // according to credentials-source parameter, passing empty username is allowed t.Run("Empty username", func(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") nodeID, pmmAgentID := RegisterGenericNode(t, node.RegisterNodeBody{ @@ -583,11 +584,16 @@ func TestAddProxySQL(t *testing.T) { Address: "10.10.10.10", Port: 3306, PMMAgentID: pmmAgentID, + + SkipConnectionCheck: true, }, } addProxySQLOK, err := client.Default.ProxySQL.AddProxySQL(params) - pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") - assert.Nil(t, addProxySQLOK) + require.NoError(t, err) + require.NotNil(t, addProxySQLOK) + require.NotNil(t, addProxySQLOK.Payload.Service) + serviceID := addProxySQLOK.Payload.Service.ServiceID + defer pmmapitests.RemoveServices(t, serviceID) }) } From b02b19a28272ac4c44ec9ca2725d2c7da8380b9b Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 23 Aug 2022 17:59:14 +0200 Subject: [PATCH 12/29] PMM-10231 Commands fix. --- admin/commands/management/add_mongodb.go | 5 ----- admin/commands/management/add_postgresql.go | 7 +------ admin/commands/management/add_proxysql.go | 5 ----- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/admin/commands/management/add_mongodb.go b/admin/commands/management/add_mongodb.go index a8f34804eb..2429da5ea6 100644 --- a/admin/commands/management/add_mongodb.go +++ b/admin/commands/management/add_mongodb.go @@ -90,11 +90,6 @@ func (cmd *addMongoDBCommand) GetAddress() string { } func (cmd *addMongoDBCommand) GetDefaultAddress() string { - if cmd.CredentialsSource != "" { - // address might be specified in credentials source file - return "" - } - return "127.0.0.1:27017" } diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index 21c545859b..24b71f85ee 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -82,16 +82,11 @@ func (cmd *addPostgreSQLCommand) GetAddress() string { } func (cmd *addPostgreSQLCommand) GetDefaultAddress() string { - if cmd.CredentialsSource != "" { - // address might be specified in credentials source file - return "" - } - return "127.0.0.1:5432" } func (cmd *addPostgreSQLCommand) GetDefaultUsername() string { - return "root" + return "postgres" } func (cmd *addPostgreSQLCommand) GetSocket() string { diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index 08824b3658..88e2b98de6 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -74,11 +74,6 @@ func (cmd *addProxySQLCommand) GetAddress() string { } func (cmd *addProxySQLCommand) GetDefaultAddress() string { - if cmd.CredentialsSource != "" { - // address might be specified in credentials source file - return "" - } - return "127.0.0.1:6032" } From 147733461dd7b0429d3af3d71a764c5a657aec42 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Wed, 24 Aug 2022 22:42:52 +0200 Subject: [PATCH 13/29] PMM-10231 Codereview fixes. --- .../{credentials_source.go => parser.go} | 47 +++++++------------ ...dentials_source_test.go => parser_test.go} | 0 api/agentpb/agent.pb.go | 36 +++++++------- api/agentpb/agent.proto | 8 ++-- .../credentials_source_agent_invoker.go | 7 ++- managed/services/management/mongodb.go | 16 +++---- 6 files changed, 49 insertions(+), 65 deletions(-) rename agent/credentialssource/{credentials_source.go => parser.go} (84%) rename agent/credentialssource/{credentials_source_test.go => parser_test.go} (100%) diff --git a/agent/credentialssource/credentials_source.go b/agent/credentialssource/parser.go similarity index 84% rename from agent/credentialssource/credentials_source.go rename to agent/credentialssource/parser.go index 371907a7bc..6cb500f43d 100644 --- a/agent/credentialssource/credentials_source.go +++ b/agent/credentialssource/parser.go @@ -17,7 +17,6 @@ package credentialssource import ( "encoding/json" - "fmt" "os" "os/user" "path/filepath" @@ -65,6 +64,12 @@ func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceReque return &res } + err = validateResults(parsedData) + if err != nil { + res.Error = err.Error() + return &res + } + res.Username = parsedData.username res.Password = parsedData.password res.AgentPassword = parsedData.agentPassword @@ -76,13 +81,13 @@ func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceReque } func parseCredentialsSourceFile(filePath string, serviceType inventorypb.ServiceType) (*credentialsSource, error) { - if len(filePath) == 0 { + if filePath == "" { return nil, errors.New("configPath for parseCredentialsSourceFile is empty") } filePath, err := expandPath(filePath) if err != nil { - return nil, fmt.Errorf("fail to normalize path: %w", err) + return nil, errors.Wrapf(err, "fail to normalize path: %s", filePath) } // check if file exist @@ -90,7 +95,7 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service return nil, errors.Errorf("file doesn't exist: %s", filePath) } - credentialsJSONFile, err := parseJsonFile(filePath) + credentialsJSONFile, err := parseJSONFile(filePath) if err == nil { return credentialsJSONFile, nil } @@ -99,29 +104,19 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service return parseMySQLDefaultsFile(filePath) } - return nil, errors.Errorf("unrecognized file type %s", filePath) + return nil, errors.Wrapf(err, "unrecognized file type %s", filePath) } -func parseJsonFile(filePath string) (*credentialsSource, error) { - creds := credentialsJSON{"", "", ""} - - f, err := os.Lstat(filePath) - if err != nil { - return nil, fmt.Errorf("%w", err) - } - - if f.Mode()&0o111 != 0 { - return nil, fmt.Errorf("%w: %s", errors.New("file execution is not supported"), filePath) - } - +func parseJSONFile(filePath string) (*credentialsSource, error) { // Read the file content, err := readFile(filePath) if err != nil { - return nil, fmt.Errorf("%w", err) + return nil, errors.Wrapf(err, "cannot read file %s", filePath) } + var creds credentialsJSON if err := json.Unmarshal([]byte(content), &creds); err != nil { - return nil, fmt.Errorf("%w", err) + return nil, errors.Wrapf(err, "cannot umarshal file %s", filePath) } parsedData := &credentialsSource{ @@ -130,18 +125,13 @@ func parseJsonFile(filePath string) (*credentialsSource, error) { agentPassword: creds.AgentPassword, } - err = validateResults(parsedData) - if err != nil { - return nil, err - } - return parsedData, nil } func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { cfg, err := ini.Load(configPath) if err != nil { - return nil, fmt.Errorf("fail to read config file: %w", err) + return nil, errors.Wrapf(err, "fail to read config file: %s", configPath) } cfgSection := cfg.Section("client") @@ -155,11 +145,6 @@ func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { socket: cfgSection.Key("socket").String(), } - err = validateResults(parsedData) - if err != nil { - return nil, err - } - return parsedData, nil } @@ -174,7 +159,7 @@ func expandPath(path string) (string, error) { if strings.HasPrefix(path, "~/") { usr, err := user.Current() if err != nil { - return "", fmt.Errorf("failed to expand path: %w", err) + return "", errors.Wrapf(err, "failed to expand path: %s", path) } return filepath.Join(usr.HomeDir, path[2:]), nil } diff --git a/agent/credentialssource/credentials_source_test.go b/agent/credentialssource/parser_test.go similarity index 100% rename from agent/credentialssource/credentials_source_test.go rename to agent/credentialssource/parser_test.go diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index aadfb6af4f..b3655e404a 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -1717,10 +1717,10 @@ type ParseCredentialsSourceResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` - AgentPassword string `protobuf:"bytes,4,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` - Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` - Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"` - Socket string `protobuf:"bytes,7,opt,name=socket,proto3" json:"socket,omitempty"` + Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` + Port uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"` + Socket string `protobuf:"bytes,6,opt,name=socket,proto3" json:"socket,omitempty"` + AgentPassword string `protobuf:"bytes,7,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` } func (x *ParseCredentialsSourceResponse) Reset() { @@ -1776,13 +1776,6 @@ func (x *ParseCredentialsSourceResponse) GetPassword() string { return "" } -func (x *ParseCredentialsSourceResponse) GetAgentPassword() string { - if x != nil { - return x.AgentPassword - } - return "" -} - func (x *ParseCredentialsSourceResponse) GetHost() string { if x != nil { return x.Host @@ -1804,6 +1797,13 @@ func (x *ParseCredentialsSourceResponse) GetSocket() string { return "" } +func (x *ParseCredentialsSourceResponse) GetAgentPassword() string { + if x != nil { + return x.AgentPassword + } + return "" +} + // AgentLogsRequest is an ServerMessage asking logs by Agent ID. type AgentLogsRequest struct { state protoimpl.MessageState @@ -6767,13 +6767,13 @@ var file_agentpb_agent_proto_rawDesc = []byte{ 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x43, 0x0a, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x43, 0x0a, 0x10, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, diff --git a/api/agentpb/agent.proto b/api/agentpb/agent.proto index e5e761e9a2..8d08c938c3 100644 --- a/api/agentpb/agent.proto +++ b/api/agentpb/agent.proto @@ -409,10 +409,10 @@ message ParseCredentialsSourceResponse { string username = 2; string password = 3; - string agent_password = 4; - string host = 5; - uint32 port = 6; - string socket = 7; + string host = 4; + uint32 port = 5; + string socket = 6; + string agent_password = 7; } // AgentLogsRequest is an ServerMessage asking logs by Agent ID. diff --git a/managed/services/agents/credentials_source_agent_invoker.go b/managed/services/agents/credentials_source_agent_invoker.go index 916737b10e..710ae45188 100644 --- a/managed/services/agents/credentials_source_agent_invoker.go +++ b/managed/services/agents/credentials_source_agent_invoker.go @@ -48,12 +48,11 @@ func (p *CredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgen return nil, err } - start := time.Now() - defer func() { - if dur := time.Since(start); dur > 5*time.Second { + defer func(t time.Time) { + if dur := time.Since(t); dur > 5*time.Second { l.Warnf("Invoking agent took %s.", dur) } - }() + }(time.Now()) request, err := createRequest(filePath, serviceType) if err != nil { diff --git a/managed/services/management/mongodb.go b/managed/services/management/mongodb.go index 83d99c3315..0c45b9048d 100644 --- a/managed/services/management/mongodb.go +++ b/managed/services/management/mongodb.go @@ -53,16 +53,16 @@ func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChe func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRequest) (*managementpb.AddMongoDBResponse, error) { res := &managementpb.AddMongoDBResponse{} - if e := s.db.InTransaction(func(tx *reform.TX) error { - if req.CredentialsSource != "" { - result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.MongoDBServiceType) - if err != nil { - return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) - } - - s.applyCredentialsSource(req, result) + if req.CredentialsSource != "" { + result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.MongoDBServiceType) + if err != nil { + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } + s.applyCredentialsSource(req, result) + } + + if e := s.db.InTransaction(func(tx *reform.TX) error { nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err From dec0d4cf9b8feeaa44c21d09a138f40fef88d85f Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Fri, 26 Aug 2022 18:25:24 +0200 Subject: [PATCH 14/29] PMM-10231 Codereview fixes. --- managed/cmd/pmm-managed/main.go | 130 +++++++++--------- ...nvoker.go => credentials_source_loader.go} | 62 ++++----- ...t.go => credentials_source_loader_test.go} | 0 managed/services/management/deps.go | 8 +- managed/services/management/external.go | 8 +- managed/services/management/haproxy.go | 8 +- ...=> mock_credentials_source_loader_test.go} | 8 +- managed/services/management/mongodb.go | 8 +- managed/services/management/mysql.go | 8 +- managed/services/management/postgresql.go | 8 +- managed/services/management/proxysql.go | 8 +- 11 files changed, 120 insertions(+), 136 deletions(-) rename managed/services/agents/{credentials_source_agent_invoker.go => credentials_source_loader.go} (55%) rename managed/services/agents/{credentials_source_agent_invoker_test.go => credentials_source_loader_test.go} (100%) rename managed/services/management/{mock_credentials_source_agent_invoker_test.go => mock_credentials_source_loader_test.go} (64%) diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index eec93f13f4..6f57027faa 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -162,35 +162,35 @@ func addLogsHandler(mux *http.ServeMux, logs *supervisord.Logs) { } type gRPCServerDeps struct { - db *reform.DB - vmdb *victoriametrics.Service - platformClient *platformClient.Client - server *server.Server - agentsRegistry *agents.Registry - handler *agents.Handler - actions *agents.ActionsService - agentsStateUpdater *agents.StateUpdater - connectionCheck *agents.ConnectionChecker - credentialsSourceAgentInvoker *agents.CredentialsSourceAgentInvoker - grafanaClient *grafana.Client - checksService *checks.Service - dbaasClient *dbaas.Client - alertmanager *alertmanager.Service - vmalert *vmalert.Service - settings *models.Settings - alertsService *ia.AlertsService - templatesService *ia.TemplatesService - rulesService *ia.RulesService - jobsService *agents.JobsService - versionServiceClient *managementdbaas.VersionServiceClient - schedulerService *scheduler.Service - backupService *backup.Service - backupRemovalService *backup.RemovalService - minioService *minio.Service - versionCache *versioncache.Service - supervisord *supervisord.Service - config *config.Config - componentsService *managementdbaas.ComponentsService + db *reform.DB + vmdb *victoriametrics.Service + platformClient *platformClient.Client + server *server.Server + agentsRegistry *agents.Registry + handler *agents.Handler + actions *agents.ActionsService + agentsStateUpdater *agents.StateUpdater + connectionCheck *agents.ConnectionChecker + credentialsSourceLoader *agents.CredentialsSourceLoader + grafanaClient *grafana.Client + checksService *checks.Service + dbaasClient *dbaas.Client + alertmanager *alertmanager.Service + vmalert *vmalert.Service + settings *models.Settings + alertsService *ia.AlertsService + templatesService *ia.TemplatesService + rulesService *ia.RulesService + jobsService *agents.JobsService + versionServiceClient *managementdbaas.VersionServiceClient + schedulerService *scheduler.Service + backupService *backup.Service + backupRemovalService *backup.RemovalService + minioService *minio.Service + versionCache *versioncache.Service + supervisord *supervisord.Service + config *config.Config + componentsService *managementdbaas.ComponentsService } // runGRPCServer runs gRPC server until context is canceled, then gracefully stops it. @@ -225,10 +225,10 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { nodeSvc := management.NewNodeService(deps.db) serviceSvc := management.NewServiceService(deps.db, deps.agentsStateUpdater, deps.vmdb) - mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.credentialsSourceAgentInvoker) - mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker) - postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker) - proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker) + mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.credentialsSourceLoader) + mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader) + postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader) + proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader) managementpb.RegisterNodeServer(gRPCServer, managementgrpc.NewManagementNodeServer(nodeSvc)) managementpb.RegisterServiceServer(gRPCServer, managementgrpc.NewManagementServiceServer(serviceSvc)) @@ -239,8 +239,8 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { managementpb.RegisterActionsServer(gRPCServer, managementgrpc.NewActionsServer(deps.actions, deps.db)) managementpb.RegisterRDSServer(gRPCServer, management.NewRDSService(deps.db, deps.agentsStateUpdater, deps.connectionCheck)) azurev1beta1.RegisterAzureDatabaseServer(gRPCServer, management.NewAzureDatabaseService(deps.db, deps.agentsRegistry, deps.agentsStateUpdater, deps.connectionCheck)) - managementpb.RegisterHAProxyServer(gRPCServer, management.NewHAProxyService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker)) - managementpb.RegisterExternalServer(gRPCServer, management.NewExternalService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceAgentInvoker)) + managementpb.RegisterHAProxyServer(gRPCServer, management.NewHAProxyService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader)) + managementpb.RegisterExternalServer(gRPCServer, management.NewExternalService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader)) managementpb.RegisterAnnotationServer(gRPCServer, managementgrpc.NewAnnotationServer(deps.db, deps.grafanaClient)) managementpb.RegisterSecurityChecksServer(gRPCServer, management.NewChecksAPIService(deps.checksService)) @@ -782,7 +782,7 @@ func main() { schedulerService := scheduler.New(db, backupService) versionCache := versioncache.New(db, versioner) emailer := alertmanager.NewEmailer(logrus.WithField("component", "alertmanager-emailer").Logger) - credentialsSourceAgentInvoker := agents.NewCredentialsSourceAgentInvoker(agentsRegistry) + credentialsSourceLoader := agents.NewCredentialsSourceLoader(agentsRegistry) componentsService := managementdbaas.NewComponentsService(db, dbaasClient, versionService) @@ -959,35 +959,35 @@ func main() { defer wg.Done() runGRPCServer(ctx, &gRPCServerDeps{ - db: db, - vmdb: vmdb, - platformClient: platformClient, - server: server, - agentsRegistry: agentsRegistry, - handler: agentsHandler, - actions: actionsService, - agentsStateUpdater: agentsStateUpdater, - connectionCheck: connectionCheck, - grafanaClient: grafanaClient, - checksService: checksService, - dbaasClient: dbaasClient, - alertmanager: alertManager, - vmalert: vmalert, - settings: settings, - alertsService: alertsService, - templatesService: templatesService, - rulesService: rulesService, - jobsService: jobsService, - versionServiceClient: versionService, - schedulerService: schedulerService, - backupService: backupService, - backupRemovalService: backupRemovalService, - minioService: minioService, - versionCache: versionCache, - supervisord: supervisord, - config: &cfg.Config, - credentialsSourceAgentInvoker: credentialsSourceAgentInvoker, - componentsService: componentsService, + db: db, + vmdb: vmdb, + platformClient: platformClient, + server: server, + agentsRegistry: agentsRegistry, + handler: agentsHandler, + actions: actionsService, + agentsStateUpdater: agentsStateUpdater, + connectionCheck: connectionCheck, + grafanaClient: grafanaClient, + checksService: checksService, + dbaasClient: dbaasClient, + alertmanager: alertManager, + vmalert: vmalert, + settings: settings, + alertsService: alertsService, + templatesService: templatesService, + rulesService: rulesService, + jobsService: jobsService, + versionServiceClient: versionService, + schedulerService: schedulerService, + backupService: backupService, + backupRemovalService: backupRemovalService, + minioService: minioService, + versionCache: versionCache, + supervisord: supervisord, + config: &cfg.Config, + credentialsSourceLoader: credentialsSourceLoader, + componentsService: componentsService, }) }() diff --git a/managed/services/agents/credentials_source_agent_invoker.go b/managed/services/agents/credentials_source_loader.go similarity index 55% rename from managed/services/agents/credentials_source_agent_invoker.go rename to managed/services/agents/credentials_source_loader.go index 710ae45188..3a14701516 100644 --- a/managed/services/agents/credentials_source_agent_invoker.go +++ b/managed/services/agents/credentials_source_loader.go @@ -27,20 +27,29 @@ import ( "github.com/percona/pmm/managed/utils/logger" ) -// CredentialsSourceAgentInvoker requests from agent to parse credentials-source passed in request. -type CredentialsSourceAgentInvoker struct { +// CredentialsSourceLoader requests from agent to parse credentials-source passed in request. +type CredentialsSourceLoader struct { r *Registry } -// NewCredentialsSourceAgentInvoker creates new CredentialsSourceAgentInvoker request. -func NewCredentialsSourceAgentInvoker(r *Registry) *CredentialsSourceAgentInvoker { - return &CredentialsSourceAgentInvoker{ +var serviceTypes = map[models.ServiceType]inventorypb.ServiceType{ + models.MySQLServiceType: inventorypb.ServiceType_MYSQL_SERVICE, + models.MongoDBServiceType: inventorypb.ServiceType_MONGODB_SERVICE, + models.PostgreSQLServiceType: inventorypb.ServiceType_POSTGRESQL_SERVICE, + models.ProxySQLServiceType: inventorypb.ServiceType_PROXYSQL_SERVICE, + models.HAProxyServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, + models.ExternalServiceType: inventorypb.ServiceType_EXTERNAL_SERVICE, +} + +// NewCredentialsSourceLoader creates new CredentialsSourceLoader request. +func NewCredentialsSourceLoader(r *Registry) *CredentialsSourceLoader { + return &CredentialsSourceLoader{ r: r, } } -// InvokeAgent sends request (with file path) to pmm-agent to parse credentials-source file. -func (p *CredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { +// GetCredentials sends request (with file path) to pmm-agent to parse credentials-source file. +func (p *CredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { l := logger.Get(ctx) pmmAgent, err := p.r.get(pmmAgentID) @@ -85,38 +94,13 @@ func (p *CredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgen } func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseCredentialsSourceRequest, error) { - switch serviceType { - case models.MySQLServiceType: - return &agentpb.ParseCredentialsSourceRequest{ - ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, - FilePath: configPath, - }, nil - case models.PostgreSQLServiceType: - return &agentpb.ParseCredentialsSourceRequest{ - ServiceType: inventorypb.ServiceType_POSTGRESQL_SERVICE, - FilePath: configPath, - }, nil - case models.HAProxyServiceType: - return &agentpb.ParseCredentialsSourceRequest{ - ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, - FilePath: configPath, - }, nil - case models.ExternalServiceType: - return &agentpb.ParseCredentialsSourceRequest{ - ServiceType: inventorypb.ServiceType_EXTERNAL_SERVICE, - FilePath: configPath, - }, nil - case models.MongoDBServiceType: - return &agentpb.ParseCredentialsSourceRequest{ - ServiceType: inventorypb.ServiceType_MONGODB_SERVICE, - FilePath: configPath, - }, nil - case models.ProxySQLServiceType: - return &agentpb.ParseCredentialsSourceRequest{ - ServiceType: inventorypb.ServiceType_PROXYSQL_SERVICE, - FilePath: configPath, - }, nil + inventorypbServiceType, serviceTypeExist := serviceTypes[serviceType] + if !serviceTypeExist { + return nil, errors.Errorf("unhandled service type %s", serviceType) } - return nil, errors.Errorf("unhandled service type %s", serviceType) + return &agentpb.ParseCredentialsSourceRequest{ + ServiceType: inventorypbServiceType, + FilePath: configPath, + }, nil } diff --git a/managed/services/agents/credentials_source_agent_invoker_test.go b/managed/services/agents/credentials_source_loader_test.go similarity index 100% rename from managed/services/agents/credentials_source_agent_invoker_test.go rename to managed/services/agents/credentials_source_loader_test.go diff --git a/managed/services/management/deps.go b/managed/services/management/deps.go index 4c1d8a6b42..3472174610 100644 --- a/managed/services/management/deps.go +++ b/managed/services/management/deps.go @@ -33,7 +33,7 @@ import ( //go:generate ../../../bin/mockery -name=grafanaClient -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=jobsService -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=connectionChecker -case=snake -inpkg -testonly -//go:generate ../../../bin/mockery -name=credentialsSourceAgentInvoker -case=snake -inpkg -testonly +//go:generate ../../../bin/mockery -name=credentialsSourceLoader -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=versionCache -case=snake -inpkg -testonly // agentsRegistry is a subset of methods of agents.Registry used by this package. @@ -95,8 +95,8 @@ type versionCache interface { RequestSoftwareVersionsUpdate() } -// credentialsSourceAgentInvoker is a subset of methods of agents.ParseCredentialsSource. +// credentialsSourceLoader is a subset of methods of agents.ParseCredentialsSource. // We use it instead of real type for testing and to avoid dependency cycle. -type credentialsSourceAgentInvoker interface { - InvokeAgent(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) +type credentialsSourceLoader interface { + GetCredentials(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) } diff --git a/managed/services/management/external.go b/managed/services/management/external.go index 956649082c..554a71b9f2 100644 --- a/managed/services/management/external.go +++ b/managed/services/management/external.go @@ -36,19 +36,19 @@ type ExternalService struct { vmdb prometheusService state agentsStateUpdater cc connectionChecker - csai credentialsSourceAgentInvoker + csl credentialsSourceLoader managementpb.UnimplementedExternalServer } // NewExternalService creates new External Management Service. -func NewExternalService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *ExternalService { +func NewExternalService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *ExternalService { return &ExternalService{ db: db, vmdb: vmdb, state: state, cc: cc, - csai: csai, + csl: csl, } } @@ -76,7 +76,7 @@ func (e *ExternalService) AddExternal(ctx context.Context, req *managementpb.Add if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("cannot find agents: %s.", err)) } - result, err := e.csai.InvokeAgent(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) + result, err := e.csl.GetCredentials(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } diff --git a/managed/services/management/haproxy.go b/managed/services/management/haproxy.go index d1f973e366..06dc1c9b8a 100644 --- a/managed/services/management/haproxy.go +++ b/managed/services/management/haproxy.go @@ -35,19 +35,19 @@ type HAProxyService struct { vmdb prometheusService state agentsStateUpdater cc connectionChecker - csai credentialsSourceAgentInvoker + csl credentialsSourceLoader managementpb.UnimplementedHAProxyServer } // NewHAProxyService creates new HAProxy Management Service. -func NewHAProxyService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *HAProxyService { +func NewHAProxyService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *HAProxyService { return &HAProxyService{ db: db, vmdb: vmdb, state: state, cc: cc, - csai: csai, + csl: csl, } } @@ -68,7 +68,7 @@ func (e HAProxyService) AddHAProxy(ctx context.Context, req *managementpb.AddHAP if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("cannot find agents: %s.", err)) } - result, err := e.csai.InvokeAgent(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) + result, err := e.csl.GetCredentials(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } diff --git a/managed/services/management/mock_credentials_source_agent_invoker_test.go b/managed/services/management/mock_credentials_source_loader_test.go similarity index 64% rename from managed/services/management/mock_credentials_source_agent_invoker_test.go rename to managed/services/management/mock_credentials_source_loader_test.go index 2702f9b4b4..c97a959463 100644 --- a/managed/services/management/mock_credentials_source_agent_invoker_test.go +++ b/managed/services/management/mock_credentials_source_loader_test.go @@ -10,13 +10,13 @@ import ( models "github.com/percona/pmm/managed/models" ) -// mockCredentialsSourceAgentInvoker is an autogenerated mock type for the credentialsSourceAgentInvoker type -type mockCredentialsSourceAgentInvoker struct { +// mockCredentialsSourceLoader is an autogenerated mock type for the credentialsSourceLoader type +type mockCredentialsSourceLoader struct { mock.Mock } -// InvokeAgent provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType -func (_m *mockCredentialsSourceAgentInvoker) InvokeAgent(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { +// GetCredentials provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType +func (_m *mockCredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { ret := _m.Called(ctx, pmmAgentID, filePath, serviceType) var r0 *models.CredentialsSourceParsingResult diff --git a/managed/services/management/mongodb.go b/managed/services/management/mongodb.go index 0c45b9048d..39ea93d6bc 100644 --- a/managed/services/management/mongodb.go +++ b/managed/services/management/mongodb.go @@ -36,16 +36,16 @@ type MongoDBService struct { db *reform.DB state agentsStateUpdater cc connectionChecker - csai credentialsSourceAgentInvoker + csl credentialsSourceLoader } // NewMongoDBService creates new MongoDB Management Service. -func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *MongoDBService { +func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *MongoDBService { return &MongoDBService{ db: db, state: state, cc: cc, - csai: csai, + csl: csl, } } @@ -54,7 +54,7 @@ func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRe res := &managementpb.AddMongoDBResponse{} if req.CredentialsSource != "" { - result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.MongoDBServiceType) + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.MongoDBServiceType) if err != nil { return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index 8a47336adc..a7cbe8e52b 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -41,17 +41,17 @@ type MySQLService struct { state agentsStateUpdater cc connectionChecker vc versionCache - csai credentialsSourceAgentInvoker + csl credentialsSourceLoader } // NewMySQLService creates new MySQL Management Service. -func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, vc versionCache, csai credentialsSourceAgentInvoker) *MySQLService { +func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, vc versionCache, csl credentialsSourceLoader) *MySQLService { return &MySQLService{ db: db, state: state, cc: cc, vc: vc, - csai: csai, + csl: csl, } } @@ -79,7 +79,7 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques } if req.CredentialsSource != "" { - result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.MySQLServiceType) + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.MySQLServiceType) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } diff --git a/managed/services/management/postgresql.go b/managed/services/management/postgresql.go index d5186d8865..be2e8a1614 100644 --- a/managed/services/management/postgresql.go +++ b/managed/services/management/postgresql.go @@ -35,16 +35,16 @@ type PostgreSQLService struct { db *reform.DB state agentsStateUpdater cc connectionChecker - csai credentialsSourceAgentInvoker + csl credentialsSourceLoader } // NewPostgreSQLService creates new PostgreSQL Management Service. -func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *PostgreSQLService { +func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *PostgreSQLService { return &PostgreSQLService{ db: db, state: state, cc: cc, - csai: csai, + csl: csl, } } @@ -54,7 +54,7 @@ func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgr if e := s.db.InTransaction(func(tx *reform.TX) error { if req.CredentialsSource != "" { - result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.PostgreSQLServiceType) + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.PostgreSQLServiceType) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 8b89c2d2c6..e73fea8375 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -35,16 +35,16 @@ type ProxySQLService struct { db *reform.DB state agentsStateUpdater cc connectionChecker - csai credentialsSourceAgentInvoker + csl credentialsSourceLoader } // NewProxySQLService creates new ProxySQL Management Service. -func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csai credentialsSourceAgentInvoker) *ProxySQLService { +func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *ProxySQLService { return &ProxySQLService{ db: db, state: state, cc: cc, - csai: csai, + csl: csl, } } @@ -54,7 +54,7 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL if e := s.db.InTransaction(func(tx *reform.TX) error { if req.CredentialsSource != "" { - result, err := s.csai.InvokeAgent(ctx, req.PmmAgentId, req.CredentialsSource, models.ProxySQLServiceType) + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.ProxySQLServiceType) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } From 17d442e03847b355927b5a31704b6e8af2bc718c Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Fri, 26 Aug 2022 19:35:07 +0200 Subject: [PATCH 15/29] PMM-10231 Codereview fixes. --- api-tests/management/mysql_test.go | 10 ++-------- api-tests/management/proxysql_test.go | 10 ++-------- managed/services/management/mysql.go | 4 ++++ managed/services/management/proxysql.go | 4 ++++ 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/api-tests/management/mysql_test.go b/api-tests/management/mysql_test.go index 1af4c7c09d..e168fb5da3 100644 --- a/api-tests/management/mysql_test.go +++ b/api-tests/management/mysql_test.go @@ -595,7 +595,6 @@ func TestAddMySQL(t *testing.T) { assert.Nil(t, addMySQLOK) }) - // according to credentials-source parameter, passing empty username is allowed t.Run("Empty username", func(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") nodeID, pmmAgentID := RegisterGenericNode(t, node.RegisterNodeBody{ @@ -614,16 +613,11 @@ func TestAddMySQL(t *testing.T) { Address: "10.10.10.10", Port: 3306, PMMAgentID: pmmAgentID, - - SkipConnectionCheck: true, }, } addMySQLOK, err := client.Default.MySQL.AddMySQL(params) - require.NoError(t, err) - require.NotNil(t, addMySQLOK) - require.NotNil(t, addMySQLOK.Payload.Service) - serviceID := addMySQLOK.Payload.Service.ServiceID - defer pmmapitests.RemoveServices(t, serviceID) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + assert.Nil(t, addMySQLOK) }) t.Run("With MetricsModePush", func(t *testing.T) { diff --git a/api-tests/management/proxysql_test.go b/api-tests/management/proxysql_test.go index 342fb47531..9b5fcf330f 100644 --- a/api-tests/management/proxysql_test.go +++ b/api-tests/management/proxysql_test.go @@ -565,7 +565,6 @@ func TestAddProxySQL(t *testing.T) { assert.Nil(t, addProxySQLOK) }) - // according to credentials-source parameter, passing empty username is allowed t.Run("Empty username", func(t *testing.T) { nodeName := pmmapitests.TestString(t, "node-name") nodeID, pmmAgentID := RegisterGenericNode(t, node.RegisterNodeBody{ @@ -584,16 +583,11 @@ func TestAddProxySQL(t *testing.T) { Address: "10.10.10.10", Port: 3306, PMMAgentID: pmmAgentID, - - SkipConnectionCheck: true, }, } addProxySQLOK, err := client.Default.ProxySQL.AddProxySQL(params) - require.NoError(t, err) - require.NotNil(t, addProxySQLOK) - require.NotNil(t, addProxySQLOK.Payload.Service) - serviceID := addProxySQLOK.Payload.Service.ServiceID - defer pmmapitests.RemoveServices(t, serviceID) + pmmapitests.AssertAPIErrorf(t, err, 400, codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + assert.Nil(t, addProxySQLOK) }) } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index a7cbe8e52b..3d416b9489 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -87,6 +87,10 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques s.applyCredentialsSource(req, result) } + if req.Username == "" { + return status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + } + nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index e73fea8375..67c3e9d025 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -62,6 +62,10 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL s.applyCredentialsSource(req, result) } + if req.Username == "" { + return status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + } + nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err From e7911cf8191373c345da5b729a33035fe32ce342 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Mon, 5 Sep 2022 21:36:39 +0200 Subject: [PATCH 16/29] PMM-10231 Updates for code review. --- .../agents/credentials_source_loader.go | 4 +-- managed/services/management/mysql.go | 28 +++++++++---------- managed/services/management/postgresql.go | 21 ++++++++------ managed/services/management/proxysql.go | 23 ++++++++------- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/managed/services/agents/credentials_source_loader.go b/managed/services/agents/credentials_source_loader.go index 3a14701516..9e0c96c3e1 100644 --- a/managed/services/agents/credentials_source_loader.go +++ b/managed/services/agents/credentials_source_loader.go @@ -94,8 +94,8 @@ func (p *CredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID } func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseCredentialsSourceRequest, error) { - inventorypbServiceType, serviceTypeExist := serviceTypes[serviceType] - if !serviceTypeExist { + inventorypbServiceType, ok := serviceTypes[serviceType] + if !ok { return nil, errors.Errorf("unhandled service type %s", serviceType) } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index 3d416b9489..520cc3c991 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -18,7 +18,6 @@ package management import ( "context" "fmt" - "github.com/AlekSi/pointer" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -59,6 +58,19 @@ func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionCheck func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLRequest) (*managementpb.AddMySQLResponse, error) { res := &managementpb.AddMySQLResponse{} + if req.CredentialsSource != "" { + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.MySQLServiceType) + if err != nil { + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + } + + s.applyCredentialsSource(req, result) + } + + if req.Username == "" { + return nil, status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + } + if e := s.db.InTransaction(func(tx *reform.TX) error { // tweak according to API docs tablestatsGroupTableLimit := req.TablestatsGroupTableLimit @@ -77,20 +89,6 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques if maxSlowlogFileSize < 0 { maxSlowlogFileSize = 0 } - - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.MySQLServiceType) - if err != nil { - return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) - } - - s.applyCredentialsSource(req, result) - } - - if req.Username == "" { - return status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") - } - nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err diff --git a/managed/services/management/postgresql.go b/managed/services/management/postgresql.go index be2e8a1614..1e84ce2162 100644 --- a/managed/services/management/postgresql.go +++ b/managed/services/management/postgresql.go @@ -18,7 +18,6 @@ package management import ( "context" "fmt" - "github.com/AlekSi/pointer" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -52,16 +51,20 @@ func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connection func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgreSQLRequest) (*managementpb.AddPostgreSQLResponse, error) { res := &managementpb.AddPostgreSQLResponse{} - if e := s.db.InTransaction(func(tx *reform.TX) error { - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.PostgreSQLServiceType) - if err != nil { - return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) - } - - s.applyCredentialsSource(req, result) + if req.CredentialsSource != "" { + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.PostgreSQLServiceType) + if err != nil { + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } + s.applyCredentialsSource(req, result) + } + + if req.Username == "" { + return nil, status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + } + + if e := s.db.InTransaction(func(tx *reform.TX) error { nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 67c3e9d025..395811807b 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -18,7 +18,6 @@ package management import ( "context" "fmt" - "github.com/AlekSi/pointer" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -52,20 +51,20 @@ func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionCh func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQLRequest) (*managementpb.AddProxySQLResponse, error) { res := &managementpb.AddProxySQLResponse{} - if e := s.db.InTransaction(func(tx *reform.TX) error { - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.ProxySQLServiceType) - if err != nil { - return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) - } - - s.applyCredentialsSource(req, result) + if req.CredentialsSource != "" { + result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.ProxySQLServiceType) + if err != nil { + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } - if req.Username == "" { - return status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") - } + s.applyCredentialsSource(req, result) + } + if req.Username == "" { + return nil, status.Errorf(codes.InvalidArgument, "invalid field Username: value '' must not be an empty string") + } + + if e := s.db.InTransaction(func(tx *reform.TX) error { nodeID, err := nodeID(tx, req.NodeId, req.NodeName, req.AddNode, req.Address) if err != nil { return err From 000f9c70edb1eb3d06991a2a2989837f9f377ace Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Mon, 5 Sep 2022 21:43:50 +0200 Subject: [PATCH 17/29] PMM-10231 Updates for code review. --- managed/services/management/mysql.go | 1 + managed/services/management/postgresql.go | 1 + managed/services/management/proxysql.go | 1 + 3 files changed, 3 insertions(+) diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index 520cc3c991..219965c29b 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -18,6 +18,7 @@ package management import ( "context" "fmt" + "github.com/AlekSi/pointer" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/managed/services/management/postgresql.go b/managed/services/management/postgresql.go index 1e84ce2162..88582aff2e 100644 --- a/managed/services/management/postgresql.go +++ b/managed/services/management/postgresql.go @@ -18,6 +18,7 @@ package management import ( "context" "fmt" + "github.com/AlekSi/pointer" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 395811807b..ef249c1f5a 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -18,6 +18,7 @@ package management import ( "context" "fmt" + "github.com/AlekSi/pointer" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" From 8e5a3f1d8c833943d8d6e27ad0ed08d9a639d1fe Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Fri, 9 Sep 2022 23:59:00 +0200 Subject: [PATCH 18/29] PMM-10231 Updating descriptor.bin --- descriptor.bin | Bin 652473 -> 653621 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/descriptor.bin b/descriptor.bin index 3a0d49cd0363b6c300264054deba722fc0304028..5f8d74324707e15288ba645c3ca9abe99f3e5eaa 100644 GIT binary patch delta 42088 zcmbuocYIbw_CNm2y>st<@+71@A??YN@Ps6!kq~+>A@mRegdzrnfT5Eh0n4I3R=|p7 zab#H*QBf)O5-WDrUJ+0id++Y9ySlpieV>`R_Xa=i?(6mY{gKxzXYQOcXJ*cvIp@ro zdG7nPZ^;ZVn?Ls_;N3;!;ZzIa*7$`j`=YHMA*Y{|Mc z&1;vnwPt_n#8_!!p9y01I94HU9l;WZjiYL{ooh`GOVne^!Y!dt%c*NyTH8UUJ-a$) zg3MT-j5ud7iw++a3jben;U1xs)y->{&R^ZUrg_!;*5*|$*}cFRBX_G8LZTz)ab=4c};a=$n{g$dEtz;=j~sq6}I?NnCZ@y%4WhNaxDnzh2_B%@p8 zI&so;Rws5hvIQM^jjYa0*{Rw{2%Gba%E*=Clv!-6Sl`0NcFdm5c12Tfq+ar{y~zk% zZLrAI9Z7511lh5((v1sv$7`EdenLt+*hw&)Fn`cAG9xX*xPna(byu*cSb7Cpu0JP) z`6KG{yYA4NPVp4 z#1og1fHkj-N!f|5Y&p4QWo-4Dw$&|b)-G#lkF9HOIWcz1(w5fPl9tvM635mhv9(KE zVhyWXT5G0GjGf#Es4H8lLZL1p3w&qWl6qGcWCUiEN-&PkCczcGLa)aR?6{kho`O89SSpmzMsuQ(a=UCWK&<`kXXKf z^H}5`ELO8}ZOfWg4Cu*VgBDW@;2144HQut3=5~BryVS2x6`Qy?*50zVCmLPW9y?{( z%9WwmLd_Ct)6^_#TeW&6sQFl$Y@Fs%;;GpN0k@TA*-pqusfx|S_{hrWY4gc#%TA0f zZ9bW%zj+->bbm2W$1*6JY7fO0x2=h_o!qi!W%KIQghaLC?HHSskV9i(1S~lgoeD5q z8+c;GuK`)v!1KC=lBC$?g!v|J^w)xw133d&>hli*^s8=^Ve#*LiFabo{Y zHf~ZVwx(tE8VFD8TB)4%bfX?Rgo;5$#ULu%c!F98_zI4;@vQ97NJ$hQw~K~rSxv9) z+{n@>j7oWSu?qraJ1;E@-C?2=iDCOD9@y9M@U`rAmU0sh=7tu4R3h=WSH!Pp3w!P5 zMxMk)AxQ1z`8`|^r1tW%^3ZEUDk*Gt@W59csk_)g*0qBNGee{|lc0g^`?>KjH^n1+ zSW}!6mHWAq7)pi!<1@AO0OuKUiX@B*C`k1S3@S+P>S3V5gPf;(6{wFWNcIbW@gPqN zdl-Npl5Ly_NufpzprFKW#E?}wHGqFp+w9uc$mM~8G{1@1wIA_0R>sviJ@j16YBXv@z5T&sPZ5; zY$@<41lBy69F6puA4AMT#Sdprc~wKDM;#D2EbKoX`Lq<(A`uREdWYLtEtp zQ}5puFYja9s^0ZGLqqVc-x&^^cd0X1D;(&Z55*sDW`C&q&}Yp8&WAi9qT8{6^C8d6 z4_&Wtpglho3vXdJRDSB?*ueReCxkVQ4V+JTMrLTX><%oFFGT-a*_`+nK8gdBFL*+V zMsa}h1+6nu*-1t)%)jJDKm9R?Mgc07jgLV6(pA|2f%+xy(>JsYI+u3|+duNaMvFx* z=CB4^7Oh*eZ0%{&TTWWHY>gN>j#)Q`Z(~OGkE90oQ_#j?Mp2f$t?0dL+=*B z+-jGmu6Xq>c3aA&RxmlV64aB4`sLz^yIE_u%Pk{A53nJ|`;<@~Z2R_>+BGdF zVvk$ayt2KqZQYth;%)s1G0-1Yo3f3;oHl#Zcq=Kn{yT8Ul`M-(VBF^txr#82@pVGGG#EwVsIfebHWAM5BpJu!{lnt|}y=DF)pON|P z#7RqbSLqHFS4sS;-)?exOZ#g0JS`If(=#QZUw5b_JUA4R6y~pNThgALA&F*dqT-s3 zyqxXrcy=S-U@lnjUziC?yrTcX%t`B7+SmR^UOKM5h%aS{=lxszPj4yzsiW)?{^xPU zYaue3Vf$h;aD~Yti(|jpVUc=}5A4xtuwrVkT=P5;22Umg=VCKhEEXN)^?BVPVVR`D zE;r%$bd8N^S=_vC<=S?MAznPl3kNDyfJ!7{CRD*`U?nSTZ!rVcfRz=$%}R^7`~@Br zqh8~Yigq&o{ySG$U}1|H?9s9QHGV!DN2(*sfUekK8c`|YfUqn9D%%PmFm{*;%5DM( z?sk}w+)zEZ%MRPunSmQb;$c2Hew`W2mbxgLR?_wGm?S|!AP7(q1PFrHn+a*|R}j43 z#5P8}WYZAsGL3ZokpUH;i%Q$(E;Aw7{R-4wCd`>>;Kj)a+q=!cK5_IgpBmq726H6E z9AajVX{ZGZ2wDiBa-jgCfjwrTVg?`@*kgtj=K#^b9y2GRDdFQ@(<)OC`;_Y_RC=e$dh`pcztz;X{fC}V$cTL zVJ4~J0!Wo;xO&T0Fw*y7;6=@iyvHEgks}7jn4wHr4gi6FpXs>xwAtQA_=_-PxncVu zGjKo*d6O>;KV$~Gg@%D@E^R#zo5o|}mN)s(w1-V>FMVM!qnrlwQSq-gdH>#z!Yh~i zjx0takD4K6NXr5=^Qf7f6B;S4628d>!F|{=S5Y0Se!WyVUGkIbA1vBsxni=jl<0*`H)A%z;}2~+FK;bF^D{>(Kx>&n&08w`@RDgTZ+6aMw{=L ziOMIF1!(mhl8z#chzjqCJsX`J7qv8vVR80Zf~%Da4Q zzYjVi(hz@OCMqwB5NTLHpuKFAMg;tkDNg^04;>OPXp}#4mnv1KasJ4J1xbMmSs?3U z-PLP+jP)m``1T_{0gTf~f6}>q8tYF;o4fcl+MkeYq`pJJ2x4qBn`u@#lUb)ME zGZU49139^({zeK;^;){i--)UZcx>Qzoe^oCzw>*IdSL83zt@a<{ZEtsV2TA_@WLj* z!1$-%d3e!b{=MIM!00>*+|DaE`+L9hC_o$EQ|Cv^&cn<8$uuq(=7+o{?I$yorDa=s z**}wPM~C2l%-hdC>&oT+*=HREAp5f~;c_=Si;KM<^5TAHA+)3iALZ!6S=f<@Af8824JF*t9p50n`G`04Mc~rsn4}uPI#;Su4~QEmSfJ)t^0-Ot{G3O?umy%U zbw(%I-o!m+fEqyGM2_PiDOYmNE)-9G%!drPkn^C&Fj;;Vl9R3^8})#AA-U;8G$P#8 zi#hKpQm5FJqup8#L;$5x4~_iRi+Ns&UjRB6^YRM4xC|1rOF6$xT>l9#pLr?w7MDR@ z?Pl&RF2Ep;0$09J0OFgux42LM;+r|-YnqfVGi+bUjT=Par+jMKl^jE+bf-zWbBj3d zQ{KJb7Js-<41!zy;X(ljZlU2)y3-^95K^+b4FQ1R7M<})zJxDdr~!Q8%a=)OW~-Jj z0Knhc8K1~+_2mmSfWOt3FO%SHBwxb@fluZOW zY0&MRTPIoD?#mi#0DZeJYbNo#gJdl>Xh&y6lCmA0hmE9c2MrsUXWdNL6JfrS^WKp{ z@$$z!Tcmx#vj?CcPm2XAfW%Io-_tJuiJiPxwU!f;GOrd>zUJWx_fiO+M!A4mxX+z)KxhG=Y5^cxxX+z) zfN0@9nsREPJA&lmrmy+5)Q32XwrUg=hV4gq;0=-R4eu3xga^|g_na4!DTna)6JpXg zywCKFlWdS&N+|>lK06aWSnqaIXjn4u%0Oi-H@{R!l^%Xj9q16yC zq~-7`H(uAv0Whk+$`P4Uq|vE^6mTaevQRDufC(;$x(8`s^;eKS$irPVDxlZgl~gEK z13-KA7Wit-58D+!PS)k*>g+#~Kv0tnP2w31ds28+V>Q6BhK z{O~v4mU5H_)1^C61R3OSi&Os2N2RcO@JUCI+CAaDeiwmT-VT{oIxCA`);!^1smn z4j8q+a0R@GOoA_6DFp<|U-GyXQ^2VFrK|7(g7lY4;Zu(QedS6iAm9R2QVI~LU%65W zP*&DbT0{c=H66Us$^isafbL)vl7xTlp19yMaKGlM;ZO@itvGD|od+%w>;K75O!+$x zMndy2yu~DH{}5mOlh0522M?u&Cd)$5`9aM6o=-{nfrq+=#>ql-`6qGT_k2RiPdt={ zXab?5iC;wO4}4r0M+vFYge!)kvd^)M3&heN5ZF7%3Wf2-MrBT;dalJcS(cn_S%S9C zr79#aD4_X1&$5-=N*J9)fjWhd1;9AZJ%x}3VB$PW%Pke4!ugi1+_$(a01cF=^FCQ1 ztEA<+Y{=O^-^%aiv4P%huxxeSP8c-BC{SW53qWFnm8_gNSpYURSa9Opo&erx#XEI{ zrg~%NuFzy}?A#R^&yCa-lKo;DiwiA7SrvdV`v6rW6dn(kj3J?^px3r2ZA!wJyRhSzPh6SLCNdpA=U6#(904OVCBc}l_A%$`S z22XdM6beAKZ_me9;ND7lGe{`>vtqxuR0(Y-f;*JlJVD?$OR1;1BEk}YQ z_gTdyy4euSZHxEOs3D*NRMJ^ugn)Xp6^-|FKLht>t5m{nBQt?Po%_10xCeIBme^SR;#P>L;%Ktd#k1GrxK$}nBV40Ll@uz zRMLQtz`f1NRErTHP;axeJ62*Ox;5u-F}dYIqijd5Qi9k_tqK~4wmJ^mo41NR;pWKv?KNIf3oqZAcDSs5u?q{T`}i#-LglLHP2r~uU}oevnePr1t!AaI|u;Mgl% z4A;|sv!ulUy3LXnd)jZ7wAj-Ynk6k(N+!XxV!Q)2_N?DYQe)5hog_8(tlvqfvFBV# zDV0GFfNFID1nP6{77h@o&tVJKj6#h)Z*e7%r82GtP<1j67`V?{SxP|y1n%=zk5Y{b zHTHr(K%~Y1Dw!*lYU~A9%L4@J3s#XkK2T#XS~@yWid;*jbZ?=?UV%xZ#eviqK&3rPr5bz1%IM~P1?nqS_aco7HTJ4M$fU*qszEN5YV1{i zj7g2XD#w`ASg8RucF^KgnlPy`fUYEw8ars^sGS6LfqT%ZsMO6ujlE{^Q5u!h7(lo4 zq{d#ex({)`0`)a(_(+WkHFjv2-&;~+hy31>8aw3oHVwFksJ9D4hK(isrWJTg6ostj zlsBzlm(YnJZcEGWsQ7)zT0HzH8NASkRETwQ)Jm44NFWyYQ7c2TNFZ80YW0+x9f4@( zXve@r>xMrX|Fp#0H(Ku{T*OIs0)b4K{4P=-wX#A(Lxu(I!3b%tu z0O(>QqjtMn8;S@;3A(ndkkmzTgW*a8i`9Fqq46{@kq8Qmm1JY7kJ+ zg-|o2BXzI!z0J>?6Dkt#-e_ft1y4B19o2VOk0mEuF;v|+I7hrR)XtzWZ@J)anHq#I!)etJCAx5epFqZ~RdIEMQj9f;b zySVr<>xATtU^LVdq~yqDiSHk?s>+dxBC*r}W;t{;Z&3}<$b!?*Pu2(d95MBAYe0F9 z>LzN?IOZgz>iXD+%p5ofePn%%K(4s$ajRc>u1B9{H`k$16w$}NV&)>yNT*kffIN}> zgf*r-&!bO+nup8_RUcc6nFrZX^m*9qCQg3>^t*ZV(N(jXM<3gX+0CPm>kkFu4bZPD z@aSU`F$+BU*h9<$(4UGi!y+mUl(Wc~m}t1m$`H*@S_6}dgL!iBD1>8{(BPGd7oN22 z@)FH~JWMl7^a#q6G_ypHAnmbc8I54Is5$_oGR+1)&=)<7fWSr>hH*65z-p}wj29;y zutuj=B0Ng|zDZ_9FQc!x?SM6IYA;O%rJ&LajtC7FAW-QAKZI;1K-i*sh5MRVcR>mM z^dm@D^FCH+pd<+y>2D0?kuvelvyjxef41`L`g^2_!Ty>-c?x6p2ZM?wm4TI><31_?@S4n=lpG)Yiu;lxB`eXPQMu_~gCUMpA%J%7Fe1m`aNfj={L`-Po(B~tx#v@d947LZ}fnQMwKg=&Zpc(|WXM{?{V#>14<8KL&9vk^qT6K=dh_+;Is3Yi*Ab**ff> zQv&N%>omrvK-1HXYg6l|BF;xB05IpLYEc0M;-@0Yr@sO1R0R1n1mel3!b2dZ%O;+F zC*FF=DjEAb%?-+^Fk8(%ARzn>bDxN@z+J>M0_QQs4o%@1V24f>9I#`>jdMl)%T~`g zwS*GLRa_4+Ak>cQ0R{x3aSTkdsu=`w_*`ZprW+(osjBU>7(a(uau}e>H?Tkfm_S4r zTfzp0^vWb~ln}NzvA`CvM4u?SvWcaFsY)=F0H*87v-pTApPt|m8WH!?%UdhihwL7)uqS}Z0rdv0Xd4u(NGaO+_&3*5>Wa_q(} zqYHxKqysRTPI%2pkCVVqfNC$(XOQyl!9J#QngL<)0aQtm>IT9-)|D` zg6v(cKmde5+{ME8YJs2vDG+xv-T{H=CR+hx_cJnxGKZ)p=(Oy9hOJwJvI2}F4Wfzr z8MesogiX<)2buA>c;S#$kn$jdRYX=!G7ZLl@$(@ouW~=r!E6+Q)PA2^8if7CEh*My zf*uhQ4qN&0M73I``Hs zK4Y-(-K9mI%41AtkmD<8J*KAK;3;AI01Lb>mt}^@$!R~pkeE(3V+v-1KPCQk*owuU za>pKpsPh!l>7oEZ?kR?JQ8EitsH@LFFZYF4sG))moIz+U-+md5umKA^%y`9 zdWMFD?9UV$$>$)FkuVVwTaQ>dm4IDbYUeqoWfGNv`y7cR%|Z%6FNn8~Sb0@1_$V}_ zFEE{%i#k+^;pAz&M8S~0#Kc+eIwQn2`yC`FNOSBZy*5FUf^07_jw zVNm#%0Y14u8KN$bPqit&1y0A{t zMx~#aakg0gmNjYIPYkEQYJkZL|B0o^=smhe`rs#4IZ}@aJxTCy#?OLLsK%RX+Em!_ zueYq(hs>ulL!$XpyIV*5-S!kC;pH?H=^7|{|IMzDx*eJWL9VOrwTH?W7u_8;9VAYX zv`W7$LEz)Eay)H-ZA6A$P$NMmK1m2BRsxhtt*nnviK6U2du(|kG=QoP?O`Tr2S!dT z(!sli=(z+H025c=XRj;o;?akQm|c)?qOdVpW*02};~~h9T?&B>yx%@PISoA0-4Geb zNf$frxBHf-YZ@w$lMY=^G*lob9r}v)6YTQ{O^KiGw+qTMy!ymrhCFwr`Vc-d1Cg^4 zXcJSA6DSblAFxNH<{%Y|Xvp|St`QMG-*4xLTOP3Oid@}Y6#>ajP!5iYfaJpdc#saY z4Qe}Iy#0W^zh}OOKyBwkK@zX1fwuFZA8GfJerwFg5|?K>+0vzySt@4C!zF?--27Cy zG*&T$TW};p!ONmRg~)iw9-dreg-LnB^@TOxLo9g6o*3Py00gD{$Qgi}yOwM%JEH|Q&0WtCIJqXSE~?b>Ly@*9<%W>({x>vCz*frma~(!=)3Xdlgkw9d>v;Nf&x1C8_( zuRLs@8SSUT1~Ad65PJ4_Sp!2cK&*Vko|``ar}P*fv_ek)fWo4MHXf%~+txR9X~u`UmZ^PtV{(Z9}zXD2Q$R2uiAq$>39ocnHUJONbguJ-e_oRZD|!J-4M(Z zxd-jUxb)a))g(eXyeMT7uAR`NV94R0;F_!pp<)uYHvJ7;CPBCr8a{RL&?pGd#X}<* z>EfZ0jL@1Ow78s*WEJ(L6$QLx50B&{8AhFIj^ra5Hl1n?K#GTkLx_IRNr|S5l)K|Ey6xPk5fi$ldV>Nh29Od# zMhnr*^#+B;H`f~!RE&CDB0&(4i$;NfsK@0*inc^OHW6*fGb%KjNO}O|;*rOmhXYa7 z1q!<4;b8JOrA!L~#p0>M_Hpq7gmZ~=sZ6`;hz$Vrqr0cyXkB&pBEzs?&F%)uLy!jHWaqr zl0Z)tk)YWt2^NG(z&!<{%`&4{^ge1Ah~(F8Kd!AJ(q##56qL9x!*r2nfFN?%tPl-v z*g42eB<3qL6M*QGUh68@T!FPtOu+Q53REj5NEE7q6fdDz6PV~_(2=T)Izohcc>z6& z()98IdNiQDa#aXO#UM+2=@<}9;XZ+ZiaJS5AKa6qF3Jd0KevnB-ar@oX=YU*s-Nzn z3PknOU6g^S0o28A@c~|a>f8X`In=(6&f}Gn1zv=Q9z(I zGC_$nAkZ3_8%EZBn9& zi~^#nQKh5-fy$(kQYppgWPMiR~GBo&kW*8MvWJod87N!fKuYf$j{< zbHWfTHw1iV2Z(1G@iS)!ai)u6M9$^}7AgKIo;wGtkocER4mBC`760;KAuo&%2sN8D z|MFQOvq|$02>dq{&sY2tDEXhuPf+}ai2nsT#ts1dFVOr0qHkekZUO@T3t%O|EFp$4 z*Ug673;_VI*~256&0!Vi$2Z_L!~P;|f|uXI=0asw5dgG>9vbPsg>W-z@bHal!gR#* z6}Vhrwgh^}(L&I$%xno3%HcvpZ%N>HYPb;5GnXKsN5dswfLUg&lEc*q2-CexPq%ys z#$2X{OTGhRF4MyW2*b6kc$FG10_AWm=PNCFM*(lZgn66ME}nkdo?74Lk))AoLo|d~ zm+!=wZSY%2f&hVJTW-5cQXk^2=4&jRN)xYe1J)U*iN){O4U5)!Bxw-W>Fo)1FdFOR zN+Xiwwy(=L%_V6lE>GsCs!%gBK~4|E)vzEuXr8WbrBig!JX1v8wfo5}O2!AxGxY?> z@Su67mRA`aG|z;*l3XG|(9wA;utDs2*Irn69)q}2JWvLW z&Swx08UjGj{{Y>%4dfM|euzc|kIrY1kTwuZ4ciy6z$Iexdv5?fZUr@TEG{J zXWp})ns70Lnjpd`1f`2v`9v4QR(dg;Tn{D;T(hw^v%nQP*i0!Qn^~|&=nPOxBWjn6 zH{Q47RhKh;83cu>b2+O}2`KBJoTrlI0 z;`0yexw8aA-ZMC(a?Gk=Ih}Ju1RFlPQ#|8p#B zWy;J_0zvyuHgJljP4SGoDDeC1c!n-ib7_Tb#C{)UCf-35Q(v_+#fVSrnsN6tTSoXm z)Pkv&zN6ka^AyHlF^bkLOVsGg9 z*mAB;O4!&}`G&9hz9Gf_$&e+ohi;yUWdj1EU7eZfSqPl8VSNS2jENWpW~5nsQ|#o5V3t##jpb#M zQlz`;s6omo$}=KS@zQs8w)i^3Nvn=(i$;D%^(cbhWGzS-oJ64lD>XVk=Zor0r&o2p zwmGO4Y2y40y1%HfXxGY@xr?e%a2^wzGo2oNW4M~-)*@vaL#WGxffa-CxK?%sYN5!e zFe8h_)E-WZIy0?n5e%tn$%*tCd!Qo)sw3xTIhoZxypAZpv4__Yz#!hk>j+#z3X7m4 zWdoG!Sn72LFn#p80~olaUU%R!A|gWFi4Da6*yYN-P5}mPxz{Pcz%56oE+>T=pv72) zOqa8>oy)sc;R-}A*&FFHRiigC>P?myo`c?0d%eMDP_6cQ0~l1Rz23-1`^et(!~fXd z`*^(p4BS3mZvX?g4|+pqAW|Osi+6II{GR>2fE~5gUkA@n1NHkOct(3XraEj6G?K;H z-JSgYwDF<@?F}?6xeY5(7--9UH~I$Lfyj3|U-q5`ZiqM|;%qE;Eq>@eP#mHUodE%1 z2!^YtYz)9KQI+dd4Iidb=s=PTmSGq<)i@a}!{7?iehG;g8JMhgVCwY9V2Na!iKDZf zGBN)jwq0MNw|XTYHQFFi;!&dw5kc{SItWW_MBkAGejXLqi0xYxY zsAJcS_vli~s-3pDw)71k)b2CX+z*Rady<1n%n^9X@;a| zOcQTMo&54?x)CK0(>#BeW@s7)LDfh5jiMwE^&7qV#8jhKpJt^I_31Q1M%iYHwmc^i zpXt@7NtvlTq5S5V=!B{dHrS$laqnz)#A|>Cc9y3=*c9hpWxBDR32p|xeJ9L;N1pj${ zpiL1X|9L)aE)rAnpLw&KA&Zkb}oWYp3f?JhVXcvOAfU*iSk0{@UTq`w*q~9OgHjHx`aCy0e=&N@83uB z2|E&rAD1#qOzGj2=a__Z5liaou?xKtMq-F$calpRg<$uR&g`NHsF!qR7e#395@NTv zZVsm9WilB=ROdR~#eyQ7`Ow5%#*)&#CP|s_D^!zX-6m0pCa>t+q*O2{>NG+qLX%fe zligI4L~Dx>#ZJM1Eety#1wAl9lG`l|IbU7@5Vz1dHQ69k18fP#Q)v?^9z^>GfsR+7 zMhe+0iGBeH2!>=n+WUzBcG0b(u7}g7?^dQCjg-Ye+{(JBdy=vMh+8RJ#6<+WP22{= zen?SK7lWxD78TqA_E-Q-2o`nr1r_zx%~57DG#%qygJIqtni_ol-4abkcC! zDcORycWMBx7#x9YZ*H6c@?08aelO{CWe3fcON9*G9du4kxAko5^tIwIB~J0;Yw_Zy z+)+>nq-z;M!L-2u1j@Axv0zfO2$Ah#&__WPw|>lSU`aHVVL0T%cHW;`px70$?}13qn%ivvDwl7Is~ZSo!e z%#hvTdPlDBs0$amzT@-Ecm+P#^q6=#&B+vxRXF3uJ@5NqWVk->`(U&_p7(t)@*-bg z{AI5d*NddWjwwBz4LSU!LGIby=VP7bP{K=v%Ky5dlmB%h!~+t5vpI3|RHrFN?pd^5 zCnA+W*`N5_1rHmxOmj*_^gSzesC#mS36p1NBo~-3Y%pE2)6@n-pxj`Rd8$Q^;E|J; z5r~Q-)112G3@aL%21jQPMM} zR9*=fFMc-z7H2VzJIU;(O#+tzj?8eXa1X$>?PwNC65T^>8tf9B1kyVu(u64!)ia&` zbIZK?)NEOzO2b7B)Tb)|WT)WYo;nIk#!OEgg_UO^`nW)yh4ctr%s`)$U)$RlBp#jV zTpaF=J+};66{W;yUtU5dHF@InSx!=QU+prvHPn(Y+Vxn2*-U<3}q$$>HgX>f<6s{=NC1NIO&Xr#ljaSRVkQN|mc;S7hVObfvh z_y1s*2|B!);+}D+!<&)XvQ>vSBefL=2rFV_ajjYr1j-dLijTHr+83Sf@Ug~3F1~4U za;5Jl9A|A)y;q+^r9MF=7hBSssK=Tkc>-Hu*er`zU8iHF4TO>P0?Ja z`33~O7Zxv8d=n`7Uc_5e+#07J%K|G^gLL|_45v4g6N6(5B)^NVnw)|$E3_P-3^i70 zIRJ#2S^+sANyP=sRyW@r=LKdf?syU7ND4+Kys=g>4hW2|){Fx}&DEN5K%lo;GY$xh zuP$Dz7$;CNeiCn2jN=^Ql)&kVaXN=M1qt>@ib13vjGrdnn(Is~KTTh_K^bbC24{gL z0uUNH4ffemSs$O)i)r(m<>l+W`Xun{lhiScI$T%}JF-by8CD$c8h;k*khY8e*b(3ih+Z^PLg1HZ$A3j7i4FX4ZX-Hk!!z*vuN%=vK)1kWPu) zifer6LN5{TDrRgGD;7BQv#(-!2t`?7WO7`^atF8|XkW!@=4skwa=>f&gVzJs7+LJsu-;=ebqZbYWXMlsIX(v zLT7Wjab;=8-`6?$jP378KgD^`s0vqx!ku2&b{|R4#Jl7P)6+VAQSZ1ne__>j6#dSb zXe7KFQE7b5qWM*)pBUBV6o|_P2NT6Nn-Mhl>U1Z8)pdM-x`U(@+EO4vbZlD?$&A(d zkFvYJ(6dHu*{Fn-Hc78EKoHYO3FTJ#)6KFO->?<&$gvCgo&jt%nr-rXo5gzcCXQTGO>pE zalFYU_nbbe0|8Z}rkiTa<@0S!wDY0B6JqR_jy)GTm;Ha6@Y64G5{-n^f;b3I4uP>5WUID4xzC#@bYInb|A(L99tG~;;j`Bvxk71NM43n8IW zO!YJ*&1wj}nTDKMe)H4#pfJ5)l}e3^+g@MwmHuxC3Fl>9?22%NcxLy z{hiFD68NRsCrJ@aH#vj;V|t)EhX%KpiC?D&y3uM9(ufELYN=F5 zBT*fMRtFpFOuV+w8Br0_ zww6k!i#bZesbsns-ei)$*n^Zgq>PCXH#-+pxLIW?jjm9q1OY+=h482@Q$2vz>LLDm zvvWm753dJgU-r;OE0ebsd%$Rwha0$d1Q$o#dJ7IW+>6jC143DXitYkJ3uOqE=rrWY zK!35|R%b+VrM`e8J+EG3->uH1crR^<$WWZw3-9RDFvuvJ*$Z<@i%%NSI_H)E^s!p= z3J6VCduhugLe-Q%K1qWeJW?V*ts+dCnmSXQC`-smHZy0p^!ic4>EMl|>J z*rQqM>#;|()YoGVv(!&t55&vFXvfVn0|c~wUZOKOh5aBsgCVHci3bHniptxa!SO)| z+Yrk#D{rtm3MBxf2J3lO=L3TsB`4~9U@+u_QX-IT7v@8Z5nK))ATZ?mV1Phn2rlQ) zzybn8L*&zt5&}a*vMQB}gOAuAhUAP;rYM2Z6dlTkTT(w@HyIt6Ai{SzH4{hcWHjmb z)oPXjps`vnicdCUt!7y{e6?V?1uV;(!(-*ooK@b5&Ht`DoVxO{dV25?h-3AdPzMd< zharkX(}RO2QFfs{GcP8D z#Upn)PMn<0Iz9UE7Q^Ob-4y`n%4FRYK&UubcLfkyn5;)1o*^s?W11R$K)~}II_gQi zj!P(yvL5;dI$L^_g}}_1rpB8*OgY|D_*6?iPlSl%%)kla(z~4D@tJs>h(rVj6Jc|f zW)c7zo28iqgvMrRCINxTS(-^4K9GUYq?iN*yxDrV0ReBeeop}q@aPPSm;?lwn4K1H zQcMyonLLgkud=)-Vr$OT!5jckD09_292BSp;kjK@mYNLPnsaq9$EHb|=Uu9$Gqrj8 zObwraHV@i@L>3Tgrp&{#*+&W<4sUZ{tvGVGvoEz7dn#Fqa8oG>D_gvKGGZjZv?JBi zP07M15L>2GHvxgzGJWzYec2UseZ4BaLJx-WWmo7KQ@-p9%owdRhu$n$X`EzA#sGox zO0Yol;?OXx;wm>90ES@|UfiM{07Au8cyLQYU}2R`w{~b4T6tMqf1|9mRy^pVYSK8g zA{{_OR29jHsyVFjHm^B~4zzjAkgSwnM>rK%^Rqh)r4ytMR(A zYK}Gv@=~j1?@+T{^uE{WGrC=in?pCo%yyms4hZ$zp;^e*hRmECI8E7KTzadIAKr)A5oabqx@RC!da8lgK9?CA#s2%8s_FPoC8x=-0za1yU}$N{xB@^3 z7ab}9#G%5uEMucSRGvOa3(F?^!_TlNGw@{d>9@NH2&Xd_wNC(gZoP z2^mFb0cC0u00QAE_nIa^kiLqJpJ-O`Q>YZBsX)%~9~qMDtPs6QEVDp&id7Fe z4V626x-`Q(UCEJw8i0@-nkbp&c^wJG=)U+LyT*0ybO8k7b?$TlL~pNiMMM5(;4Tu4 z$(2ahQ$m44pzLym0w7R!xk8bIPy@e_go4_F+M(O!N(=!4@kYNbn&%r`(MY0s-c6!0 zMqKu=V^`v=P0cR80B^S|9{_>3o8$v0Lg*aY*ef1?*clz)>&gcTfwI??4}d_~OY%X= z2PvwzumEM@s~haM&^rJ$ySNXIBe{F@>{6~Nj^v^UZ_|}$%XzzuFGa)7}v3e>~` zWZ@G4>zM_N7H@ZF79eK!c9wm&o>?l8GkXWay>S)D!((Rmx@^%k=zEE+N$NcB0ftuy z-+RQF7=D1Rv#K;oaP$zv&pZu()R{2rAwQ-AN0C3|$8?C3hy0ihMb>aN{82Ba;~wGZ zLcGraXA{TvPcY+Y@#dq>fLTxYS2ro1_Jn_R6B-YocXgBEX-_iT#&+XHZahsFs^dW% z;XTXntD#FC!|~v={xw`uM9=!ya7h%O^{?Sl4C^_@U-W3ZQ8ZnsXhR*o!i>Y>2hg7J zicg!OXs`IRNoHU1X;T#KRfem|F5hkxO%-}B@|MOBUXypC9lIWP?np^^Q0Gp5=y}Qo z;+|KXF=SZM*;*J^ybio-^&W}%sC;BCjMp8oG0}M%k{G?TNZNeTy<3Uo=cmI*!D}?? zs4YX>d(bJ3>RX*uh8kq;;T8*>rXjOY{B+PMi$;`zL}gTn8iOF!V1zCw)w~9;y+GeJ zlMHnCyl&bHyKAEipTJIcJk&sYAs}pO-8(z$h59H?IqR+)2?%I~+DHThv_cq(v=2)j zi*UJ4-t|<@x_dbZ5b%ohJyAfwE5eZ)C3s^Ilm>=~o`;-8siiRYNSTqV&dZG|dYfUC zc>9oJi+e`esY5&8i7nR&HmD0jqdZ)tY*PZIZCb%A)gxB$*WnL}>cdW~XSLqcRcx+W zKO&_(`f8X*^e6!R+7Itz4E7(TlE3$ZD@E#2D!B7-;KZK8PPDuq5-Vr~mBZi9ONFBj z_5*|TP=Iv!2Z(PDJ9*^;aA>FMlT|lBpBbVC>JNY>C-VsIeApZ$1|C6H+aRw#nRA1* z1E(DRL71;H3?PJlc;G}4KjM^48;%^bEYOhN^+^0qeMmi!Fma5RxJJ%`dy1wU?vdKg zRSx$^u#qE4pv4;T%{xv8u7){wc@5Mc@s7EqFJ8tR2|*3|S|O1zHnn2J>rQ2PtyiBW zpw?@I#-Y(^$2jrQn+|ev(Nd#_Ne5z$`uQu=1!f~&Kc*F7;KfmMra1mDPIu%@ zx}4F$*UU_}CA>3g&O}QpZ!(D-%Od1WHn!mR*zqg6p7`O(QG9Y~&{@`O{e+fbB!R|k zw3#Q{>_X3vl|@oxwd>l~wylb-Y+l&1QvCQACpkXHBS5!L=6J({$CJ%Dc%7Br;4<)b zGOjRnk0it<6DIu*yc$G2KZ*}73$OspCjBZGa6q964>!}oHSqK({Lzv~a;&DcwN3r> zI+4-0+3^%9KD%_Vo163WYhAzuoq2fdRV_w@wdacmk2*Pn+_%aM1Fwl0^X2ifL+6Y}mFPF`K z%PAVYNC#3;hWd;2%U`6;0AcFLY{HhgIIv9lY_tp)!#pA3kwK}Y%4fs>Xnmp6n&2cbMZW|i zBR}op;M>lu@^-B&RLG}Y>k1X}X@{;@E$ah$otW{Cv!>j=RfX^k72;Q7iF+05S%;Jg zQm8UF;1p7*x#g#L^hr0KqIHYP4LAk5g$|{0@=s^G{oi#8aJFk}iZm&wXNsSrT>lzRc<3L;@+d=H+YXgx=+af1ch_m zr(^(v!nu^ON2l`^6ed4k-1@##J{yBV$D6t`} zWCu8qb@@uIxH=Bl9}()yEEg@Xe4^QF4Iw}R-(H5--z=T)gGO%?|M&!*yUm?Q8Fzzkjw|sb^)m1V zQ12|rbw4YdQvY?v9bxd3&tA zWzEUU7PTO&LF9kt3=2O>PrX5>%VT2uab`RvR(|G;orSbnd2FB#iuvRI(@msU9`~Pa zBLDvh#{ca3x~~7P3kSLWKORbZQ8=GF17{&^*1hUT{{J)nRY&swpYg9clK=lK!>eYl zAMN`8x=_)E|Nk;G4vF6rZ6wROv`KHg?9(Ql@Ul-E%Nnjdf6b%q`v1BRIZWs~{C_+q zc2pF6;Vi+kVjgYs|Bv{zNn;%GX_No|I^%!wXuJNuE>wJ@(%a1VK)m&ZGjPV+K5cTd z-u7veR(ac}O*u60F#f(r+s&a-ghP*HV1rq3e zboeW%0U$}#eC_lV59P2hX@3-Ae@+&ceeG04lU0C#%1|>IzCGUP0|e6|RUG~rmlKyq zSX#*I(B6*lH_rK1!gf3(LC?_Fc}X6L;_dGcB`Jo6!OoZ(C=iwZaH37p?4mBDLd3&R zt+IDvBQs*fJTDbxutvh#NK#!6>(g{VU^fis7qJsygH%^Ix;e24;>&xSsL0&RGvn%L zUj-<-s?kvaicF*M|9T}D6<9Bs+ImsJicD?2s9;4V_5pG#wy0F=}B|&B&K7!+HY=dOh$+3)x`~L~EF5)#whFL@#W~hPsc<5O75JM3a*7r^+ z@(Yw1h)WizA9duD_@GFZSrm6hRKgTE$rrP~hs&GqrB09wo3AZ?{8TgQ)16f{f^cDD z;s($k9rNmw(;D;YlhYd0S-Q|6`_^Sz%coLI@63hDmz7Tx~kTrj9N_HUY2lwoFi zYZp$rLA}H3bV<2Ey>YliS>rfFN2Y*y=U-0$n!eh&Mi~|A2VVezjlLKfN|!~K2L!sw zl|phc0O4u1Z{U%cIx*`pUV^)TB2CKH8WhM*QS7#YZEJ5Z$G4F*L$xmAOq27#@uzLhP0V!Lq5P=VMeFn%)vr zkzZpxpXlZ$!T5wlLj|5LxoFU@($H45wJzz%{bKhx0iG5amLwl2oGN$bP3sBuGg&!Yc7xW zbiaX(<@nuT^0{T$a)mKmeyLf!n((aRM@gF^BRewDAZ0{2dJ`dS+X?WWA&oU}Ha za|s2(#o}v^k-N3W$lcmwi86T76yoUMS-6_Hsns%LNng17EY*%kHc95+p{E9%$f zs1`6XDQzjL>~*1hXj! z8#L_OHEK3cXL@6q4b+*q&!8-hY@p7>&+W;lI|D`z;-cc=6~X(fav&OW)DPdFA20#U zIXK2wNI5{7lh;i@hZ;d7R7`!v7%Cp_6$}k((%W9Zh@jmjz3l-4i6)ht41y7mXhORq zIWpu_lVqMQM?M2yXTh^YxC(Oyi%g8w zpVl~SvUsTm*|WWBg1MrhPcS>J6;}Qg-j303oZfM2pJ13RXt(9{I#>?0?%Px3+!6%R z?PY_tRYCi~T7Jr}cMMtN?--}@^~dfQDCqdCZ?HVs*wU{fb98VxW1n@*s105t_l7|o z{l*5b`;Xf~-hbN`awY_;&4k+v)V8qpx3&cs!_wnP3(W0!yDm7~PJ*3=l|dT;wuZ9l z!Q*rZ4mgIQWa{fU=&b(9;^Lj@K^wob<36`aXB$I3H9}__L!m|}RIPRkk=huXRsQR} zK|Q3X_lAl}dKDY><=${vV{o?MDZy0y{-Rn+ax=isFDjibH-oep!BU*{x$0Bx0j^G$ zdjM3l+Hm9^AU7O3j;QrE96FAu^)?*24|p36wt=yoHXORQG1hC0_JgtBhC}9+nA9-aXjEwt%)9JiRG52~TgzO#*sT zZ7*_@Xqz1@@}5C)w+7dvlv@L~BYHtUU|?rx+_Krs)VmRF4DNd<_=rxr@1X#~pf*B` zl=8&BFmuaMGgl+#0MUIIMQsi3?eWD4KVFZzy2UM$zPHcG@VKe9eA> z`|x3$H17$pJ3P%kA5XL?-A0;yzJDtj73b%>589G)nvWmb^)&l}V=jX%IOa0Qf@3a& zEWl+Dg$8xk)@)4E&5;@2>@`k)Vspi0_ZymPZkXz8_Ju~H{zRI6q4$C)92&_1BtM7Wp;W_?lxiF%@{W`weBG++%Eaykvc9$CpjPQpRrY$eb5EN9*S! zCj>XK|K#fZ*DGe%E(rEC63)(5`nlyd^>f74&kY?XE(-qDN}?a<@l5v{Pd9ohZG1v$ zu!sJpb@%Xh-EVJ|25mCvV_FlEDksx>Fx0nec1!i`X+f#JJuOJaekU#XTQy(XL0<7|UGAE~QkVPc4$6EinTY$5h@tXq zltDk%Q+1@s$9k$x+Vj4uLn0KEvda*u_3@snlV-lB>ZF>7H{=cH;D7t`Sa0#K+SnjmKz{#$&We<1yN#(Y;29tloIdB=xs&hYJLxik8748z5QdzFFb=~I2aq^qlq5k6FJ4$gOo(7; z6DG_cBBEDa49J=TC?YB*R$axcyX)(&tA4-g?sM+oyWjVJp8vO>&*Q^XpRVfe>gwvM z>gv7^|4{bW$+C6(*aKC@PurpoR$@^GsCe8-;H}TiMUauWO41@-I(w2qL?61E<;Nup7BG1n>U?h+ z>7h%+huc{b`cr;0n_y(_X6R2KXs_qKD>(~c@UtegFA#@MXWhj^JJ_=1_1qsHc-jPs z07zUK?RE!yh817R;}Zgj0SkpbhGGI2pt}J~65q^?oX`}Jc^4aweoniK<=3Ieuj(6A ze>0CucR`cDtn9!*iH?t3xKR=6CTdP+MPk4uEFg~E#ZtPWG)to}St+~J1wmm8FYglA zYho<%LHh>oyE&S9H+zsJ-@yI3fmxs&PaWGX-nxg)?z){D`4Sg}Ahn$rbap|I+RnRF z1dbA^grI#d_k9#ya4&n41@Gnl%)lIwN`REwySVY7XxYhTM|N>1K9Cf!shk?QpYx1B za==kA=%XMdR$x#;TDpgU3cEQ^^D5BbP>>WW0LE^f8uTy#KM-qUs?RWhf|6JxhOE+| z5e#b&=jk3z6BsB+juil74-cjVCddJ@puLY9kBUonvGI|8+=b zMFA*19P2Kl&OO3;s%{FfDoBVG0OJv!oZ__sIEpo*E7UMKK$IkUC^Wz*Pe~1IqD7g& zji9}s8_#evv_{lC$ktrDo5e@=$0o+0em@ao8esGS1uoA}0FqC{CPudTB6qLkJRFw`Wn3$(I&+!_ei9vxoQ-)!J=+m@3l!O@u z5Ap*YF*q<#5W@g7P>_|K6lf>j(8!KEMgn;`k{g1deJ0_6qj;ADw{#$Oikd)Vo9FUL@b4=?k$MBR!3 zl$UAt=1UYnhq#dtnk+W&V!g%TJ*=Vz1zguAmK@@iRCoSL{<8dL~js=`!Jij1thr$8hj*G|k zvb(B}$8c=m9OrRCjbj7nIM2uoOp*hG=Kerj{t%mT<_9qp2Phx#xMYpu0ObQ(cnK24 zALJi$qr3j-N235sTo9-q^3tv@2-FXGU47t2s9l~Iw7=%QfAHv-eJsaF|C$uvlhpM@ zY_sa%y&JJXcXUk?y{X6o}#w+dREZB#`N8S)~EfC*5`?? zZ}7Zp-{V8E>cbHK7w8*n*cz2jan*PXu3eZKRZRQR$ zF3J50)H_V<{$tS>Cnsp%WBPWAx8CDpBKMg797!>UI&-gSs1*SSix^-)k^qPX?lt38 zX8@vsd(EKgIY2aUubC6ll<@IB)2Ps>)Hi^tZ#h!+-)F`t!z&XoaPKo=c`ZigLP2}C z>3dB4@qK<~@@~^#5Xi@9L)5oDqQ?ikuzHWFO*j;yojqoDo@@so2<*;3G^m{gmzF& zIl=obI_NSJg+My!N*O?)93&|t0nH@={Syoi$u>aPg#fAz7@+*>SDQINp#I6kW+>l1F`b5zdDs2nbRIP)QX)5PZ?pJ0d_3e9^>?*bIXCLHkwH zcSzj$XMS4qtFFN36T#O^Ly0sX5Co_u03ZmyW;#kz0D|CaBq@y`SP-<|Fnw=}+K>6r z$Qy1C3y9zmcR2$BL4c}<073AGyPN@n;1PE@7ZA7JG>vRII6y!J=%Nz0-ZbOXV#imY zzG-G=Nk&Hs$R0cz!!>{l(8VRnM`O4ozDHf$0)pOxlGM$bKn3WclK8%5Y9|YIWo2ke zn%@GlnT|nxduv<{T)-|a$?q{UPRTDS1NRuoFKM8{pncr*Js|G;gpUaxH~m?G0iak& zQv1GXd?OM*<^5CNCus~rYEe#%{ZNelg6H+d-)QJVIFeF!Y8>I08e=64fg%9cesk_>!9x?V)6ZR8%c(Q;h($Z)0;w_A}DOE;@1dGm@nOjgFq4G{xetcuqf`VM(Y1!^lWI*^yynrk*5*RVsWx zX5veee=T19j8{zj(hTHCTaS8*W&D+CclMgLRe|zwWCala%FGJKYJm7xW^pOTMw1M$ z@H^A^hZyxaAC>u?8ORGX$wsAD_=Cwqq27Y6G}6TMCLSkV`kYsEN2xp8%2)isj8~cp z6EG^;Ewfu!7yr}+{ zSZ|ew`Ae*~C;-7Fi5Nbi0jEKQKBsewtneF)myjo_78B|L@e=Yy`)EXXV3%=TC0fVX)ne+`JfSDR zJg+|aVwds!vRDBKT*fOZ^=dLmpf+>9MQr~X0=1cYtI06nsa?T6fdUMHLV+t#C;;&* zxVM^60OD702-H|9P-f8H#*I5g-ZxOC+c>zSRHjKP^J*?yzu>uj06;LVjTJEV%)Bygq+*6$JN2Z#v_U^ImS zS71;8j2$t7K>^y>K>|a&b|HzyU0fScfG{?IYSRV?fZ62eLO1UXs}P}zZn((>NLgJJh8P~fgnId5FiLX>P|605PXzomwro~eF0miu?>K-A+>aQSuga^|#Dxf#rg;OkrAD~;8g#S$*(JKd^Wo@}~h#BC} zQFq}0f&>Fp3kM)@kGcy7AW)BTy>N<2FTUk296&$?s1^=DpuXiUoMNMur2j2<>{e!m#PmoOXl!Y+6KH93T2rx5}A+Lcm3zy+wJ6d+K)cBK@ctgNN9garH>I$olc0|=-9U1k)M zgn#3nBj7V|zu_st07V~5gZ5v!?^3bqUwm%zU%5XNm=5-qlBoS%eD*IsGx_g4kP;Xr z3qj{6G4U5ZI{7CaNDmB`g&6YBV(%|}Wb)5Ekcwylp`(dkMcl85(fms2WV)3?QQ7M) z<6_bNE5dN=tw0c8Y$_+N{=wp#EKAO|EJ0g;peiIVD4_Y?VA)D;C5%C$K!x080WdaL zI^-@3&M+YLGU7g_~{UNjg}qqD$o?8 zK#3`lpjI|oNy=N31?a{`3*MSL62KQ(kq$$lslKS=P-wC*>NphQ=S4IWlKoQR#U+-Z zj0ixOeSj)%2@upSv0$i@FaQLtORRKtatjcYF0sO$5&{=s_B+E)w|v)J)5ltyw%Nkb z$F&R%bf(SjO3S$FnwP9=B3D|NRq8v6spYMf-s>ccb%z4A^ko5>+iGbyN*18Otrqq= zmjo(ov-DXnRUqwwf*1)}fZMEiH7lLlsS0Rpvv4p=!|zO;xY{z5xdI5o2dIV*5W~Nk zIzYn*2x3=TX=-r;1f{EKKKozSpAxXJoLjM4&)dUa( zZ?NK2z!M+{-eBR3>{mL*DWloHHM%U$I**A#+_FdAYH33UpXi&FuA-~}fqAQy-wBKX zA}xX2EaMSN*^Piv`!>s;94MA_A$L2(Hg1(hc3664mq}UMVd(=xfS|a;(i*aipgSzC z_HjVq3qX|&01)Kwuyis2Kv^04IB~d)^vRvzp5_4Q6M$;lo{6u(z0=C<F9@%)2Z!O9vQbw3hA>*H{+J?bsk`qr4|JNZKgxi479& z!MzqQ)?Fdz0HBJPmPyy(UMr)({R-53txiRHkZ?usi*=M7QGlwWkuvFr-e+a2LqveU zz0WFh8HAjUofa?GgyVn@X=SPP2@t3|tqm2jZ{Z^-9jhcXT2unL2Wkv!} z0V*W{5U9JYbme#ei~x7HrR}FOBN2%bF>y!)EZdXy zz*zs8ny65d`W!t3dg00D-#C>fTeMrXl~s<8i%_23)`{ zlhc6vaE!@mz9YN}6Nf%VmrMpjw>(f%>w$g#!fY%hGens=W;$T7AvRjkvQG0Pbs+Hdo6HsIfz?(gp-vfbM8XjU9@O zmeklGE3A}uxdAnH*y3vI0R&WlYO@Cj)Why(50KQ@VXGjlM+-IfI!q!h4y48aD(zV= z)!6G+Mxpx^sIOZ^B^niK?2Q>t>U(HZsIjB{ zVxuKBb~H9xQe#JBqfG_wQ5x;+fMH_^ziav47x~Fnd-A)MKQS;jz-?*!y(cy&Tl4$B zM+PtSAr)esyk{jzE)s|Z{+^W~=Z8SF`kqxKH#-8+%zM$=6zi^=_#f>+kvQ;(l_|d4 zWxW)4h?5BUeA$%!S{aB03=66&&X*#7y5FjsS~ny-p|!C!ykyzg^TLZ(g;y;LBas8i z9^tu*R?M5TYT1f&!(CA{=S-x4gqJOyGcP=NOjCH#%JA9Us#mURpS^fq0RNd5^pP27 zB?T%1+(L(fX1o}@+p3DhBSM%Eu&4~0IUd3A6j=k+6OGi687>Xz@6dlJN^l|6PE1bG zwE-j>NvOTjtqt9VqBva}`p-;GNDTDF@Gt{uzHAoiN_iLJtKC-jNE$j8k7gNlEFFiG z)FS|(k*@m(2sF~sKUEQ*GI08?DpJ=naGt9nRLqE@bP=KmAXE2Rp4tF%bVd0M)jF%1 zNbb!t67@GISU`Rk0+p=jvkzE5+3cUuCm*p+CdFOcPbDsI6nmbvE{uPI5|c1>X}%0G z;5ln}W8LEa`>7M(`>oRPy=rT_$ywyYkuL@Vr%15mJ1lGSCP)bjWWJ1R5c@Gu>r< ze99BoK5z9Dqt0+rLMgfuHbpZJ{z{#!1f~^;AD_3nR}^?eNiGT;ii;6ZY;tA+f}C__ z#s~~m%qQm5$ipjjlIc>(l`Jo*@)S>(~j-ewkg^pT5Q zBEm0%eu+mP;%Jt5^s%9tC7?eBjKYd8_f?B4UbMy}mHYE0qbQ7IRuH4gYwikf$wL2ZE0a-ALnAds(vH$*%F1fq3thRALMgl)1e*we&9^-J(y zKcl63-opy?l7t}-4Msm6>LO0;v@^x+FIxqoVwIiJS9MaJ_m~anq@st^eBO}J&!xxw zl3s7#*Fp%EI*LgjAmU%K!c_y*`lK>+a6p1fkmh*+2&(!31{oRRz`IViSoVr#R}J#e zXzmAjXf*eOfEK1^U~lmuMw7S=4J8eMst(DiH$*9Ho50=ny>`W^Txp22YD(3o5v(3(ZT@)V4PU?n$?&$PKhIxQ6aP-W*HEAGeI1B z&FY;uL2FHvp~eJw@LgmLu&zy%9I`6&+Pqe<2Fy0JLWdf#DNpyECC)r#jSrsgPoa&3 zQ*_FlhRYK9qT9PpuK4nhl~^%N%OyUd=hL)Y0zx0AK`u$*P)y34A>Q9-#h&hlCTFk5_n*s5umtp)`eu%yk| z@k&tw0`}}&vMDY4MhGRPfzGmzV98uD`gN{e@;Im5y*0gyBf*1N5=$wI( zw#%O2zRhB>H%Z;?qXmR*0tFzdC#Ht^%+?zlc&E|4%0%00Bn;g++Fr?*i2>vHv`%f7)_wYWI8uAPEHk1mt`z zSAf9n^AUd3-+*>LqK_H^@$=!iltKvu5#QE|fBf0$G#Y;cZLRJTAo`T8#03!0*2=gI zk~xF+I_BHN7X@gKpV>V8%t_%A+vpNKvB*%tM)Sc>x094-8z^U$F`N zfq^~AswE!NuEIOU&4HyWb5QyUBZyEnSe=(3)+`4-*viU zaV#4-5!AD4^em2gwwW1Q8FzKW8E;vM6H%l(h6p}Vxvb9MvpSL5wI1Y9zDLIk*i{jU{3>qpzs<|yPAD9s_U@qel{IbO&3rqVICjkG7J+D3G}gPBm5j+z z7B#@d`+`|x~S9O7TFN3iR8No*)1W+b&5{SA;T9*g<00G^{3>lRo z2zBpc`B)4JSAE9T(GL=Wy9T?NZ?AacZL4o&H`Ax0GWGufrgNeJVbuXtX_)E)zymB% z*)agYvIm&XiB6>E_Anh`287uLsAe0W{Hl-A0RnXogB6HD@*#=TwFj9_i~s~&fG#dk zevs+xQhWvOgAC_)lnjb%2M;sf^WwF4tf6TSLuvveL6NQ<*imNuk&$)QPt1DP3QPp7 zD60DhQCIc=f@0L2dw`hxC=32k&pj2$xqp=L$1(SXvH|qz2}~LpN$GuQ0Vm1BJCvz# zJV03mwvzseMxJ2UHj4Td1<2gp=Qf7{-~z?j#CKJc`^Svk6U53diobVz;f;$cMYLzNiL#70OIu=I!+e9{>@G+7#HN0?fKphkheBMb?Y#9e@( zbA-W?&>-j>VK5~~Q76+fILgG9Pn{C6?xe%(Q3CX%T6ItbpdV#0eH1#y{*E$iP6{1$ zkBO!atgh9^w0Z#w#r}>lSU(DdVt>a7g|2=kQ-;$!V&Gq#IcSRxFy4tF()RWa%T&=j zd@3cU<)S&!f;ymZoCQ_*8XzbfXE3SBtUz?>1LmVG z-Q*NZ`hem1cY%rkonXF=V&{j}{NM=&D|e!f0NEciWEB*DWKC%MnAtL9r=va}v-ENr zpAPeU%<4zdrb-~reLrFRGiC?U0&%in&rAD@yh2=>Lm@V=FPQPIc=aQzSKAlNb|Xrp zZogm|6`D2)*%z!wv!=~J`%A{Z@n|!yXzRjBk~Xp-zGudd;`9?%Tif?B+9adj$7qw- zeIKKZRcimh_}@L+hNi6xM@!n+gnwejFT(z_)zbD;j5ggs{3%A8r1hs5Z8{782jl

n%?FXjjHxtYbJ7ejBjg?)x7L zzsbN&91_7u@}=t+FRt8gFA{I#C?`beTry|_b1xnWX{f9OOE6IsKVc6O=e=#aAr{CB zDkVapu9TJF5G9LkPuQy~uu3!;h?JR(+!;j_lWQhJTbvHThpZ#?Cb~UopPrP4-q7t7 z8T-i)*FS03S7m4#D)y6s&4FmB*iQx&9PLIh1Sm3=Bepzc=hOm%*OTSpK{c9L@<5sJ zsIOTF*$qJ3n7UkFu^9Z6Js>F;*=0mahEwvz=BMmVmHAMS)S3#Ui$Df>w;Muajdgi2ND)MywQm9{?V1tZ-0v|WN2k=pLNCZ|q$q%gfGE?S3+r)NlW4?XEF8V}lw^SbMvU>Z=PJ9_e8vIc;j;+2E; z1$jMn_yOh{6+$teE^B}x4PySE>}k0T$Tk3%&CnBABFS7Z6yG zgxykpi_kW2CPDrc9=;`ecqF>m8Z;G>qGT6OiY_f1g@(bWs6aHD!&V8%MI&KKfxW1@ zLc){+b5Wt0!HAja;o;5=AQ`0w6$(70IxZds9#TC#_?1Bzw~8c;B0w%0#UFw?z9}`J z8HB8>=1?)sYYoZFfXZDwa-Y+@<|q!4hUR)HrI6(di*@hVy&_q#&54$jyljI`f#mv! zkD9I7ro=Bhr_lWdQrSht8V#-F7%Ij9xdU2`herI($x(3(r5bWze5lsI-w@CusyQ4a z0#vgrT?;eh;SqyF9v*;PLxmh5qCm^_(1^deIc`^ozqtr^sOG@mJcIH!XmGHS0Lj)O z1OhKFM}_eK0WS|>JcS3A=6g(`XkotB9Pu~bV+!#%-(w0Y7I?j+;7);uM$v@=ua`{} z-6`<8iRezDQK`F0!JI-5kAgXcIQ~^bfPG{Z;uvLIalCwiFH;wE_TWrJfR{=`6*SRs9V;D1~>X&@i2yA&8^Y zH=54Q9v-ci&U(E-?*Oke1d+@#?B-p3H7e>tv)9GnDNu%PAc!3_E5(EF+enm`ov+l? z0HI!GoEvndwO)zYB4-1E>!4X}WQS71ZSz*FL}Vo)1Glo;`5u)K#>(#Gf z-ql$B)GZj;wZ1yltz{$~wf-VGP8t2|W|T`70Dx3=^P-Ft4eI7a8L6Aya#g5FMMAsj zP!r7V?!Ml!5Lb8H?4&`<5LZtcbeBj^-AfhX>ZymTLR>xdaAkizU^0fBly40kA) z37dbAuSMMVfjxA@AT6B~zA^{njTI6X8Mp$Z)T@kJnSDPI9vKQZjxy~~O5R^1A87-26pW!a!mIRPbgvPaavlt-jj#YH<5uFs!D!4HNm-Zy zT_8_6hS?)17@`^hjV7cFXc`g8-zIp@E>Yre6PA?+qmd>oEEgYZX*r6d&~v*C8yJQb^ux+|X$nr^hq?&A2Il-qPIK7dejx?V7V(9U$-e?aK}^wM_Ke*$Iy zXYg67{{ia%Y#sOqfd0?c{Rc$fg33k(1iG_fV8usdhcLBs47EQ7C>I)#8aE)|%?YZ* z2SC7^1JjMPCZ3wWS%R|22msn#4~^8}TsX7DJba^?usw-gcphtkue0O|5=gq33;e}$ zb`daK+UQjzMNMi0x_} zgV2(2B28ukgVa()fs*?+Fo-Q(;76G1BIdhTw0>&OZoY^?W+@0M15}$BWQ1q|!Y%;N zjS)d;0qUn^RG?}TgP1G>!IU6H+qZ~+eQGaFL7crf@EkctDYR&>5a<2HeqrPl461<$ zqY#v?U=>X+h(2GzMzx?52JRNwTbb`_9l55&n61p;Ij|PgQia0sUSR+c5Rh6qF(x3b=2JA^$DO~1nnAGl!;UDzaP zBkXZEGj@rePue5f?q;@3G6gXbr@L8RgKi3f190dpO`F0V_b|TGqwR)0bRq66fd;}J zyP5Hjxc&>fv28cAWq^swL3=j~b=R~h?6I2-JYCbKu*U<8@AYWAVGmu{ENP?C!_0VG z)PHH8HuYg<%fKCIlkfa6%apmX1cLU%tk-Bwo5CKCF#ecF+YNi@LNyOo(B99C1I!Gy zgvEiwIO+f9OMCF}{mho}K#;Z2%6^vLM~{Hwd;8h2Il2`jo7qn={eZ4LQQa+N}Z-`QYKg&W)5O1%dmcYWSZm| z#p0=KXPHdZrR(-6#kxXD%zzxHy0$2Lpg@!-Y@`zXt_5G_U zT9~y)5Ajv5vo)m_S30`N!AO^=PHfI|y4BWsV^H2uoi_&M57l{Nko$Lc8bjBb?q2s% zitcy!x(^s#=#K8wL5ZC7UZOeQDX8n^1?fm!dg(wJYM_2E1j=ZK#*_xl-pHoQ4Ud^T zR2=ByWcQ%WQ%!wu!;)L6n)u$f%&?DHQt)ocP88DtiyK$@&-o&Z%CI^)Udh9_@P&l)=8yYBwbw z4EC4FF_5UhHXosE$mD<8cFRz`eJe2;s*MaKBtx~40SMdo(9#iV`zBBt8I63n73hSH zk__=CqeUEOM7l`?beo$zy3~OtokyS~s0lGk+6V!GZd0(urK>HC)A%SdUZjE@>pNY1 zRp^XK8jCT|yh#ZeFHQ?P1(ET(5hWkvJ-3(UZ9I6P>ZARMU}7@O8*(yNu3WQh#a!)g zg8LBLi5?y5>_m?a&E7=Nq4NzHjGKg$sCY?d;j)#h#AjhAv0{>kOfxx2k5u{4lQ2?+ z3`$c(K_@3PWQrCxOf~9H@v9^{KvV@uZZv^V^3!}X)dW(lY5sEgLXz~kXNdDUIkk;5 zbU;UW+cSz9q#ytSof&=mNjh+n+kIy#I^-j_!>l4O)PZkl%G?HoaV}NaSoj8Dxmfd? z-CuMqaqMZ!b!1Lu5-r#1Cn}R@Iocu{9TUIOM`pR3#X=4>#ht9xzB{!oN`au&nrY-| zOS^Y#iBmq>wR@FYy+-p(xz%elzW|ZlTdM6|0wuqs-AluzoD*xUv7X75GZi2@wN~>< zr=4g%>9iB{JqgSJ?^=k!Y5^cIRw}BbA!?DWsYp_MJv%Wk?A zn5o+szXlvpYPS?G>u_ zh=dTol{=mK35M-cHzvD^H-A<515+Ro1s#l&(Lx32&Gn3@#3l~AFv3JAb37`<*6SIb zdvM7@rJ(@ng=9Ps73{+|iif&5b@ewg{bHmn2I7q@QQaGr1wg!!a#CDGz}rQ31rWDW zYJ%GU)D@Cw;0AgHRFQHGTtq0PTf|x*Hr&z?k#?)Q9?>4?+k#z2drF3fWW?kA!tl{ z6hPqK!4Nej#f(51@_Hz&u9Cg(W`2so7##T`_cGre?Y7Y|_r2t7(lsNB+}Jyr@ql=> z(kY4HFLgl#<*2rkL8DPi0MXJ;It{1nFN)j{TEPQY;*|YG1+>KNT?{@9nHw_6YcKOX ztXrjvetXGT9E?_xlZ6Xi4DT=2hlicB9G4R2%?+=Zw^A&xa=O*vgUV4sHDK+dRYaWt zh)(QdFnZdQ`}ipH9TkVFoQYYFGMrv|?&IUkcuKh~OVgmLm)cH(m|5-Aw>{2mnOOke zh4PplXN3cZG=U)fIBQx&<0BBh%O4qk((_$>+IP`~{augr0Fq?H=haTXwgabnqz6v* zNDrLqkv_wam*O5eyB?`7gb#rpV5z^rj90~ZHO|1c7h<$YKwgN^CJA^UMw>j+7a4!W zqwRX6x^TAZks`n3O_AKyX&-(l=FgGgdno45kw}~ zIfm#R9nj>Q9f%Vp%9FcCd2;u3IOI#8;7pzVAMoTL^xBC^MB0V2gCSSRcpmKH2~K%) z?3@l_)Zv^CQ!S6TNv1H<*aefb)0EXfpxgyhc+jHf0m=K!@)d}mCpgV%Syo=)H0j{M zC(AL)L;b_zL@S)Zl@p!nyc|OY>){O2@oEmD*N{g*XggQzpXki&l+H%Y;;^#?DO+^ntSD%`#j8`eesDb*GXqJp3{8^*pykvORK!=gulcz2E_<;<`T4K8@VS>bKE)~P z*$ek_-CES&UP<(Hg2JL6_rei>fmUwHXYT$(O_*l0>YvhTsllG8Up2_8NwSanbAfk zOMC>*S^jIP6K)=%rxvAXd_=swJx0mY=;8<{b6SUhKypM*vrAIDTO;{tR$!^@EBM$V zKAY++uV~RCYDocVLDZ8t00;zI5U^Px>jP*N>!&%ZrnY+ZNo-o1teeEASb_QIHx68I;2;i8cNR{at{nw+Br_e)jnX*Pk<4^>W7Kb? z;m`8HVT2~66Pa25O4)DRR-Nrzr20)~BC`?or74#??_6V{?Drx-nDV*0-*US(=jwjT z-PW9|`wa;Fo?E(5^_xK1?|FQI%Js%s%bC8VszEwyITJ@il&^zBlAyUnq|S6YH7?PD zfHKrrq6GmErfLZUfn*i;U6=dTC^|TuFqh-%8g-l!qxlNsY}Ii<==ciVaX_fKLU$Yx z=&jHl2ZWBVC_P(soIu&}m3+18I8HszbrbjL)Z<)S7(fmW&IQo%^97sbG}WE2?-!vA zHO`0cK@$N84V@1oaG|V^Piu`(Xli)E!g(TjmXjg2&T?8R*Luh#{%aG|36MJ1SPPqV znzCiqGv7VJ-|mbTYezW#to0NRpCNZ^X7fX-m5^Wa@_4zD>5whS7^6_Um#EE0;dU&_KV zmQNsBxs)|8))o_`7hcA2R^YbcS~a>5ZlAJhwld>d<@SBsf{4sdvz-BLTbb?NgC+ZB zD=TW$b{W|>TUqN0-3r+^+sFfQTXF3hUFanmUdN2>;_^98%cScV-k?!N9@#h7v0Qmc z7@Z;e<~lZbx~5I`4IGr4Jld{(qYJknhyX0qx}6z!M{DOgNo@G-aBDPm+7@qT(7>uO zauIH4-G*uE6m#Ff_+1`#H|9=-(F^A}Thfec%Ay(PIt2`GxOYF#Ib;a-J{uBUwbp4e z;$|mz&%^aeu;TM@eYaNec{p}wi(oAGAE zJ1}^N2SMIyOcwr|op&OwNP@)-Q7PEmiX2!Cfz7Q*fsHY73?Kh{Hp`+|jR}0xscfbK zkIhHN1PV@J^P={ybE30uaiR%v>w76j;9U{k<+Q{j*escv=t~uAb~z3IPqY2JELm(8 zzt8s5v1y&{r}L1cwVtfgmjD1S=0(tKC+qmDRDWi&hXw|x=v4)K9%#SM_H(;JHcAQt zC6^H&ux8B+UzJ#VzjIk~2CV2C$!vvyAU{snyPfTo*?NmpB9!e}+0sSoyH$C87k9*cCZ$=%86zK7(Bas4(k3xa^ zp7qQ)x|g)*K)-5XL6nPu53%Ns+jJk29e1_xG$-mWfJ}E5hqi^7nNZv8+^N zKImLh>E?@}3?nGji9CSNKq>r|E7b^~kjlkN4?5c_@l=P_L}a;@YjcpvdynNX2j%$& zE+xT{5S#Woo5bJq;!;8?REuJetwdZyCmeV6^%4yaIRnzW>bpA9sp)3qhWdtwh^@PD zcDQz*Qyh`WT6$+!K2A40>~B)BOd6{?>VE%QQuGloBG* zFhlh^BLwk!pw)Y5FcI_3dOc1R%&*5diSyD1?jh#ya|X2c@VZB4Zx63~G*dmi?qQ~S z>br!7j61ujV}O9x(@T0L_p2u)s5b-`TU#IBU|~J%^p5mFn2O9`Pv{j#c+ z1A&iF{{3dA1&^c4*Qvw2=Gxgc3^Z}R1tL_o}jnla>5a=&OA82A6;=?koQkwyQ56kd87!3gsDpJaUhR~5^I$PQ?@GOwI94{uRZ)2zblWrSS$T#E9j{6I9J%5ufEXN6z(GUUQ^X&hnZgt#X#v9EQ4rt1N3rzO7KP z0x!s_=4dxqftQyx1U&NbYUSwAz-ke<->Dno-tBhiCK>K_yMv@O>D5pjWGX{w&heeE zOgM6y&w;5-$FYcF)es>XBW^Tq7T|-8mSq@GulxL3fHRBSo^$DkD z9R54TphbtIHGVNd|Hzg>B{X!INPW^7 zS$!G9138Kib@Vcpq*D203M4>mT!^Ux1>VzU(d`*$cs>5c2yx+C9mN9#BCd3+R{{ZI zgqs-*Xw?>=E#fz7YfG#xtWq4Ed2K;D0ivyuvMo3cTSehPrx9&II^kieYsu&a8D(2p zisB|fAZ{gYQWy^LU`lfP@+qgZ8A)!o9v2zwUdw#f>r)VV zua0<%+lrX3%k%dQD75GXR1(%`-sE^LCc)UNNTvInVlv zIlZVX6F7H>K?j`H>K!q6$NTa0kYr>z2PIK&M~=|Viy0LK-l>d!IbWwHBNr)S%9v0I%Kih3?~tCK=e&&6(aQYh+q#$WPi zyP+sus1EONz=jLjZ-_q6;qdO&*bQA$M6bqf=#t#M8oQxO;h)zSZd3n00Hq5RZK%UH znemQz1+>S#8KX@Bs5fJ@NnGEI(WU^@QO4i)XuAO@Rp`0f??+F6-Z`8ccVTzsT7O2a zb+fqOnA3_}TzO`dj_X-?-l6tC=3dL!;L`C#1a>w$;zEX_mnccQSB7_qk%A2waATl{ zEFamQW|kQ7wo{&`uYA&x7^=`UBive1$6tBkvbT{>nWu~_ecna8Xagh?T9U3O9e&$s z7*VWmo5>!Oc#b;lrX||2!zZ*^f@dITHwA>fy2NwT@u}2E6@zCPxnos4UAgk5uqkQN zmZx!@y_a8sJ@$eDFQ|~(Asyc0( zsBm1Jey&P+`gO3V=xG7^y&~S-=u59SgfamEy}N$;N(KRX@}PMA6)Rn|9(U}Dp2(F@ zeWZ4JdVQpk_Cz1)#Q_-$Xb_R(PJUGb4$oA5GKw4Yp`D5a(EDFxRKe2^ntgbtn1Kf} z#Rt?(9}kUe!9Lo(Qz3yqn5iycC>F{<-+Ynup3`OQK;)rifs}N`2jlm-1M0zrrbaJQ zj$Dnwn#0N+AFPdJ<&FW^K!@O3AN5i~Uh)2WFimDG_geZ9*^<4)M;)41k^tA>+R0Uo*y@dc*I|v8y{P&%% za1hn~OXYqyX#*Az>Nnx6f$R_&4`>!|zVDP)G<*Fa1G(9wPvMeg(5DOA(%^3q#UD8J z-r*U_P`||+FB!-!7_X|2U`eZ3hx!ez-oY$gCv1&Z2aE>2v}(4N^_KGw2-vOt`s-t0 z97>H9Uw+`!G>rAI@z{bn77t61yvUy}GRNYv1`PpwEX--LiVS)wYP=Zxq0_lyybhqE z46TjNb=#(wqQ>K;D3UM3z)MjR#cdxt1r-y$`g8;}QNOu`8mK=J&pXqSFz}?RIZ2%S z&?$;c^6od%QPZSMmp&d+H79|-N{>t+Z?putmE-4~J#WRLRp)wAhc{L6$sH4&9!=5j zb{R$jXiPzy`LfMK+&(h8;9}v>)hkymTM}N}j_13?r5`y-k*OX5x?D2VV+vk}HmBnG zS$g=(z~j)kqEz(zhrdvcE=>0*z*sP+>xaMa4HTy1WolZs2HsYM6I=H0AO6Bu(3$Dc z!NzaS%vA0ozJbn6yk@J`U6ov&1lOZz$B;p!rCRa;U@0%vLjwfjOYy^FB^2uWaaY-5V8CTCU&rQZc3FFgPg_)CyWFeHX(Olp8Z@`! zT#r8K!gIAQQ3vtoLYL41Fpk;j9Q9A1IGrla_aas_9p`J^rViri9F=xWi*(^yk^HGM zvSF>}Bg(+XwOV@s0`^)h=77+^T5Ncff@0Bz9icaAYAPanPEdyW5v>gXp?(BxB+YA) z-M*e)q3KeOzX@=klmUoceZBh@4M51#diO0Fi{7HyKyT43szxHKdN2otK-u8FLIV&e z8|W1pbw3xI`$lo}FHVHMV5Sq8ovarEC7I@u+e>m1|TSGq`W&i1h=3Y`6kil zGpAw_E`PZc;@|^picz3cyG;lYOOpa9ps~rL);DNa<%y*ZjMq}SXkBrglNEG$LWijI#5&qoC z8Hc}=iz4G*@ThfkK?c46f*^UF0O6r*Wf|9K4}}V(hl2CntKp&G;Yn0NLqc5kxl>s! zVsy#t6z>`@PCEZbL<9|OBHMvCP9PFGq{8KmxH;Z9QJg3vw8M+#47w*Y{wlHlP1!TXr+AuV_$ z@b|fbhwvGtp&EPeejx0`dGs=uG!)6e#z(Y{uSytY;0>S_Mj3ensD%+AgmD+k*rSD! z3ZyXJ&+xFEr4wqf(71@t5;|Y=cwUZOUUupy@LiCtB0u>>8%pCzhjNmbr@q``$ z703}h&Tv!DOMrRW?G6Qzo~G`MQx5+@=KGAXP@}ZBSB6*4TXFUxycaIc{MD%uN56Jb zf(Pk6IOuJ8_G~}PjF-fJf9(uwLw2h?Nl>TH{Mp#^P80}uHuk&|1p=O9c!|w*sNFz- zE^KfE0k1IQb+PRmr&k-YTitt(6bN`FcF&Rc{7USeBLxCpW&E&5+YJQhLPZ;afFsO! zTNHi^+Q@EoX_L;t<7e(2O40{MVzjZi;p5|RGPmDuCW+W@ zZj3es0^W_$ra-{EG1?ReIL`3Mm`mFY1n5H5Z&W(LjK7FQ-#NV|oQTmT-|0k*HmQ{p zG1`=e@@K|B^=P|!D5}s4GTdVYM7O`;xbvLnkv*ONy>mAERXj0)=ZPynwX)(j7&h27SdW zloKAjc;1Rt$a`Oo)OVz(tW*Uxf&XZ3bP($^h}{VM3dZ5N_soz5eJE}X`18XZLnP^N zyb-cNJuo>FPIgXsq^LP;<%x;6+L`*fb`>khR7_W~l5BduI6VUH!bHo~9)t>&WNT+g zg-Wuqvym@Divn-;q{EjPkN1aHyN?*7927#@qy&V1gmC48OlLrZgsquON;wO8xQrVN z4_&ro_M)Zp=86~p>7-ZWdCilBn5Qj7R0nb%c4aj_ScnC}`PnJ=-k8Vr4b;aCM%@@$ zhy}QZLcTWrsx_|CPWc(WcGyetAm2HxoetDMeY!xa=)-p|68C`qkRq=>HcYd~t54o? zkxtHq#x3=gD?6U7?ou4jsJIDYY-P$xK_Cd7DDwh7v<}L&lY(!cR;KqBEd2`iK^&UM z3Z0!KLnoCwu?PUfIF@lu#A6xPM7&Zz;;e!vNtLku$w`p`uxj}XaTERqTD9(zik?(! zS4Blnsxjf(4XgF_jJaX8IBt_!AJPx27oC1_E@`M&t4Svg)N5Z-`D67#buy;>v3eYg zQT8~F_>spT{``y6V{i{`>Z=ri9{L>_KwwP|u!b^aG2{kcq4bwXIvNmCSGyb@uW1pJ ze|5&C^hI=0=~gV#{>BjT_^(bwVgFO|sQRChN7cW2px8dlUz{*iZ&SR{7$pY%=1h$= zA~6uMOHpj-henl|O%VFjh_pah1_Z%48b&YAs4O?VL8+oxjV9jgre85mS#DI|>6^{H zewXF8WZBXM4~P6^j6EA2!u*ycQockY;iI4jf#x{G56oO}N^aYNj=60Mjc#&PAutJfS*TZp3R*7At8%}M z1XmW~$BxOPmXXOtMt}W{7T_Xvxq?2SxkV-FLaEA9T7(OwIwfuiMpYj2Pf1;ZgKy!b z91ELezrR)Zt9^dQj>xO#Mkii+)44tNudI7Qa!VoKV3APmA5}5ft51=u z!H!DCKn>I%j9)jyDG=%-ay3*GUhMR!q$t%;Psvl1YN(Evp%!q4B3?#{%4ejAnN#nzglLt zI4Ycu8mQlrm@HGed`3EAt45wUw8^Lw-v<45O*;D4>Y=6swbgMG4AX(ynv<(pmqC%( zkJ9`-YBGQ`)|=N1;EeS)*9_o{#jzv>*?dMO#b2+i^_L+2s^Ui|Lw)xSJ0R2_4>?f7 z$wF{d4F0=Ot~r;5mfTzGJ|hd56Lpjv5HKgEWdt5moXbXxR6KBn|6%c6H@{u!UO)F4 z*}$5DD+Fru&j!{M{GgzG(9>t+Agn1m)%l;Sn67?&2c6CV!gL(>D})>%OwTXW&!UD9 zz7%J@hGUTAv;20y5O#u@db{x%A@p{p-fjSa%uJP#45A^BnTd7>NWSC-5%?T?mcL(3 zE^yjC-sA$OUB}9NMlNvLLwWM;0iThF=%x6s-d`M<<2|#Ohx&8yON*+jd8j`Jabnsj zVGGRnE$OI#%kUS;5|P``}G3vT|cRRz1IiH7+8S37^O$i(n6yvwM6d}Dg~@~ zq!n;(h3p0(;4Q4K`TwhbRdb+mhS5t?Bx~*ro&Ca$Fqv~_bgFYdQq>+k1AV|*c|x>U ztn1X$_^ z)qfsed#dV3LG;O9{)!~yKz;O!VgCM%9gLQb@ZWlhl8-{kKcw}0`Y3;`8FyhPwHco+ z^}9IS>W^bHqVKl)``d}VrPSemN^he-7vG*|)R2M}BE?@)sg!#HlzZ>2{;qOQP|Cdz z?`M%20|6!#EjG6K`#>|hOId1WPo+!EjHOJ!kFGWI$u@u6|Ip0kaw4>5uB@h4u2ElV z=0%hIlPZRK>PTv3N2QEut&AUiR7w_S2g9V2l|MHE6^w=Sd-d!pS*f0(Gu0j-)idn@ zHFR1q!rKF+V)pg`IxQIC?E%osP2!fx{xa`S4Kok1YVx)K(#uWQ0zAFktn_lTHyYB* z&8O()X6R+y+r;RhmvJXTEc?KiC3a8o2P$LgoOE)_DLT0YI$7&4sg$9=9&DoI&8eB!!p6f@tzKoy4urWQddKVDcvr0^(`M6Aw2>APFK4w zm(fq?V_8GD~WCs;6Q}El>4SEY$LJQn7`RTyS%`r)EhlPxsU; zspaW0H9O0F7m!@8S=gtQ0)v`u$J=E}=a8Chk6o!n#r6XC1z1uV?f5ZXPtDFY>LVJD z)a>k2?r_YG-QfVH&tYf?peNHrE zmcN{_OQQqY{eL(`aVqQhr`i6CnX-<*pX;wO;@;GEqUI~>IOJN#W1XD%GK_ zWAWe;f16gE{|BqMr<8WGibd*De?!^-mo2Q?NEDH3e?tv^C=)iZI^febu&0}(ruB4_ zw1J_UiffV}>A$ywT@zK>!JdAS+7@Hu8ey?#|+fmxVp6y5)x1;UY_1~#n*LIXD zH>RhcbDPM{dR*$)A_95uSi)GTaoR2?x`yh1)FYJ<&WO7 JD(>0~{}=0di|+sc From 38e0f3d479bc1d315d9a04f3317ea28693532d66 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Wed, 19 Oct 2022 19:50:57 +0200 Subject: [PATCH 19/29] PMM-10231 api regenerate --- api/agentlocalpb/agentlocal.pb.gw.go | 3 +-- api/agentlocalpb/agentlocal.validator.pb.go | 3 +-- api/agentpb/agent.validator.pb.go | 3 +-- api/agentpb/collector.validator.pb.go | 3 +-- api/inventorypb/agent_status.validator.pb.go | 3 +-- api/inventorypb/agents.pb.gw.go | 3 +-- api/inventorypb/agents.validator.pb.go | 3 +-- api/inventorypb/log_level.validator.pb.go | 3 +-- api/inventorypb/nodes.pb.gw.go | 3 +-- api/inventorypb/nodes.validator.pb.go | 3 +-- api/inventorypb/services.pb.gw.go | 3 +-- api/inventorypb/services.validator.pb.go | 3 +-- api/managementpb/actions.pb.gw.go | 3 +-- api/managementpb/actions.validator.pb.go | 3 +-- api/managementpb/alerting/alerting.pb.gw.go | 3 +-- api/managementpb/alerting/alerting.validator.pb.go | 3 +-- api/managementpb/alerting/params.validator.pb.go | 3 +-- api/managementpb/annotation.pb.gw.go | 3 +-- api/managementpb/annotation.validator.pb.go | 3 +-- api/managementpb/azure/azure.pb.gw.go | 3 +-- api/managementpb/azure/azure.validator.pb.go | 3 +-- api/managementpb/backup/artifacts.pb.gw.go | 3 +-- api/managementpb/backup/artifacts.validator.pb.go | 3 +-- api/managementpb/backup/backups.pb.gw.go | 3 +-- api/managementpb/backup/backups.validator.pb.go | 3 +-- api/managementpb/backup/common.validator.pb.go | 3 +-- api/managementpb/backup/errors.validator.pb.go | 3 +-- api/managementpb/backup/locations.pb.gw.go | 3 +-- api/managementpb/backup/locations.validator.pb.go | 3 +-- api/managementpb/backup/restores.pb.gw.go | 3 +-- api/managementpb/backup/restores.validator.pb.go | 3 +-- api/managementpb/boolean_flag.validator.pb.go | 3 +-- api/managementpb/checks.pb.gw.go | 3 +-- api/managementpb/checks.validator.pb.go | 3 +-- api/managementpb/dbaas/components.pb.gw.go | 3 +-- api/managementpb/dbaas/components.validator.pb.go | 3 +-- api/managementpb/dbaas/db_clusters.pb.gw.go | 3 +-- api/managementpb/dbaas/db_clusters.validator.pb.go | 3 +-- api/managementpb/dbaas/dbaas.validator.pb.go | 3 +-- api/managementpb/dbaas/kubernetes.pb.gw.go | 3 +-- api/managementpb/dbaas/kubernetes.validator.pb.go | 3 +-- api/managementpb/dbaas/logs.pb.gw.go | 3 +-- api/managementpb/dbaas/logs.validator.pb.go | 3 +-- api/managementpb/dbaas/psmdb_clusters.pb.gw.go | 3 +-- api/managementpb/dbaas/psmdb_clusters.validator.pb.go | 3 +-- api/managementpb/dbaas/pxc_clusters.pb.gw.go | 3 +-- api/managementpb/dbaas/pxc_clusters.validator.pb.go | 3 +-- api/managementpb/external.pb.gw.go | 3 +-- api/managementpb/external.validator.pb.go | 3 +-- api/managementpb/haproxy.pb.gw.go | 3 +-- api/managementpb/haproxy.validator.pb.go | 3 +-- api/managementpb/ia/alerts.pb.gw.go | 3 +-- api/managementpb/ia/alerts.validator.pb.go | 3 +-- api/managementpb/ia/channels.pb.gw.go | 3 +-- api/managementpb/ia/channels.validator.pb.go | 3 +-- api/managementpb/ia/rules.pb.gw.go | 3 +-- api/managementpb/ia/rules.validator.pb.go | 3 +-- api/managementpb/ia/status.validator.pb.go | 3 +-- api/managementpb/metrics.validator.pb.go | 3 +-- api/managementpb/mongodb.pb.gw.go | 3 +-- api/managementpb/mongodb.validator.pb.go | 3 +-- api/managementpb/mysql.pb.gw.go | 3 +-- api/managementpb/mysql.validator.pb.go | 3 +-- api/managementpb/node.pb.gw.go | 3 +-- api/managementpb/node.validator.pb.go | 3 +-- api/managementpb/pagination.validator.pb.go | 3 +-- api/managementpb/postgresql.pb.gw.go | 3 +-- api/managementpb/postgresql.validator.pb.go | 3 +-- api/managementpb/proxysql.pb.gw.go | 3 +-- api/managementpb/proxysql.validator.pb.go | 3 +-- api/managementpb/rds.pb.gw.go | 3 +-- api/managementpb/rds.validator.pb.go | 3 +-- api/managementpb/service.pb.gw.go | 3 +-- api/managementpb/service.validator.pb.go | 3 +-- api/managementpb/severity.validator.pb.go | 3 +-- api/platformpb/platform.pb.gw.go | 3 +-- api/platformpb/platform.validator.pb.go | 3 +-- api/qanpb/collector.validator.pb.go | 3 +-- api/qanpb/filters.pb.gw.go | 3 +-- api/qanpb/filters.validator.pb.go | 3 +-- api/qanpb/metrics_names.pb.gw.go | 3 +-- api/qanpb/metrics_names.validator.pb.go | 3 +-- api/qanpb/object_details.pb.gw.go | 3 +-- api/qanpb/object_details.validator.pb.go | 3 +-- api/qanpb/profile.pb.gw.go | 3 +-- api/qanpb/profile.validator.pb.go | 3 +-- api/qanpb/qan.validator.pb.go | 3 +-- api/serverpb/httperror.validator.pb.go | 3 +-- api/serverpb/server.pb.gw.go | 3 +-- api/serverpb/server.validator.pb.go | 3 +-- api/userpb/user.pb.gw.go | 3 +-- api/userpb/user.validator.pb.go | 3 +-- 92 files changed, 92 insertions(+), 184 deletions(-) diff --git a/api/agentlocalpb/agentlocal.pb.gw.go b/api/agentlocalpb/agentlocal.pb.gw.go index 22e2787bd2..9056dcea80 100644 --- a/api/agentlocalpb/agentlocal.pb.gw.go +++ b/api/agentlocalpb/agentlocal.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/agentlocalpb/agentlocal.validator.pb.go b/api/agentlocalpb/agentlocal.validator.pb.go index 297ffe97d0..c7d1f87664 100644 --- a/api/agentlocalpb/agentlocal.validator.pb.go +++ b/api/agentlocalpb/agentlocal.validator.pb.go @@ -16,9 +16,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/agentpb/agent.validator.pb.go b/api/agentpb/agent.validator.pb.go index 605779546c..f9cc298ed6 100644 --- a/api/agentpb/agent.validator.pb.go +++ b/api/agentpb/agent.validator.pb.go @@ -18,9 +18,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/agentpb/collector.validator.pb.go b/api/agentpb/collector.validator.pb.go index fbaf49c1eb..a2636b9f1c 100644 --- a/api/agentpb/collector.validator.pb.go +++ b/api/agentpb/collector.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/inventorypb/agent_status.validator.pb.go b/api/inventorypb/agent_status.validator.pb.go index 90bfea2594..42b48185ac 100644 --- a/api/inventorypb/agent_status.validator.pb.go +++ b/api/inventorypb/agent_status.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/inventorypb/agents.pb.gw.go b/api/inventorypb/agents.pb.gw.go index 4d3afdfa3e..4c935e5831 100644 --- a/api/inventorypb/agents.pb.gw.go +++ b/api/inventorypb/agents.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/inventorypb/agents.validator.pb.go b/api/inventorypb/agents.validator.pb.go index ec7daf689d..41006983d7 100644 --- a/api/inventorypb/agents.validator.pb.go +++ b/api/inventorypb/agents.validator.pb.go @@ -15,9 +15,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/inventorypb/log_level.validator.pb.go b/api/inventorypb/log_level.validator.pb.go index ae782916f8..8e94d8ba3a 100644 --- a/api/inventorypb/log_level.validator.pb.go +++ b/api/inventorypb/log_level.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/inventorypb/nodes.pb.gw.go b/api/inventorypb/nodes.pb.gw.go index ae2e9a7490..3e9c1e5645 100644 --- a/api/inventorypb/nodes.pb.gw.go +++ b/api/inventorypb/nodes.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/inventorypb/nodes.validator.pb.go b/api/inventorypb/nodes.validator.pb.go index 84c27f7866..6f39b65c25 100644 --- a/api/inventorypb/nodes.validator.pb.go +++ b/api/inventorypb/nodes.validator.pb.go @@ -15,9 +15,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/inventorypb/services.pb.gw.go b/api/inventorypb/services.pb.gw.go index 88530755b9..59bb9c8043 100644 --- a/api/inventorypb/services.pb.gw.go +++ b/api/inventorypb/services.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/inventorypb/services.validator.pb.go b/api/inventorypb/services.validator.pb.go index 0479d8424e..f92d456df3 100644 --- a/api/inventorypb/services.validator.pb.go +++ b/api/inventorypb/services.validator.pb.go @@ -15,9 +15,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/actions.pb.gw.go b/api/managementpb/actions.pb.gw.go index 6488a28f6a..d1254c1060 100644 --- a/api/managementpb/actions.pb.gw.go +++ b/api/managementpb/actions.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/actions.validator.pb.go b/api/managementpb/actions.validator.pb.go index 5d047c01c7..6ac28644d2 100644 --- a/api/managementpb/actions.validator.pb.go +++ b/api/managementpb/actions.validator.pb.go @@ -15,9 +15,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/alerting/alerting.pb.gw.go b/api/managementpb/alerting/alerting.pb.gw.go index 340821a884..46c09f2214 100644 --- a/api/managementpb/alerting/alerting.pb.gw.go +++ b/api/managementpb/alerting/alerting.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/alerting/alerting.validator.pb.go b/api/managementpb/alerting/alerting.validator.pb.go index 052a7320f3..89effe6e7e 100644 --- a/api/managementpb/alerting/alerting.validator.pb.go +++ b/api/managementpb/alerting/alerting.validator.pb.go @@ -18,9 +18,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/alerting/params.validator.pb.go b/api/managementpb/alerting/params.validator.pb.go index 60a61a3f77..dc3ebf3e63 100644 --- a/api/managementpb/alerting/params.validator.pb.go +++ b/api/managementpb/alerting/params.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/annotation.pb.gw.go b/api/managementpb/annotation.pb.gw.go index 4a33b5d3f8..ef9049548f 100644 --- a/api/managementpb/annotation.pb.gw.go +++ b/api/managementpb/annotation.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/annotation.validator.pb.go b/api/managementpb/annotation.validator.pb.go index 6d8327bc46..99793fab68 100644 --- a/api/managementpb/annotation.validator.pb.go +++ b/api/managementpb/annotation.validator.pb.go @@ -15,9 +15,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/azure/azure.pb.gw.go b/api/managementpb/azure/azure.pb.gw.go index e804fd8c8a..30c6d2b5d2 100644 --- a/api/managementpb/azure/azure.pb.gw.go +++ b/api/managementpb/azure/azure.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/azure/azure.validator.pb.go b/api/managementpb/azure/azure.validator.pb.go index 2b2a6295f3..b0a3d93a8e 100644 --- a/api/managementpb/azure/azure.validator.pb.go +++ b/api/managementpb/azure/azure.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/backup/artifacts.pb.gw.go b/api/managementpb/backup/artifacts.pb.gw.go index 6074631eb6..ca3cd17335 100644 --- a/api/managementpb/backup/artifacts.pb.gw.go +++ b/api/managementpb/backup/artifacts.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/backup/artifacts.validator.pb.go b/api/managementpb/backup/artifacts.validator.pb.go index a86a9629b3..953763345e 100644 --- a/api/managementpb/backup/artifacts.validator.pb.go +++ b/api/managementpb/backup/artifacts.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/backup/backups.pb.gw.go b/api/managementpb/backup/backups.pb.gw.go index d3ed4f4c85..5588af913b 100644 --- a/api/managementpb/backup/backups.pb.gw.go +++ b/api/managementpb/backup/backups.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/backup/backups.validator.pb.go b/api/managementpb/backup/backups.validator.pb.go index 22742a5f07..cdddc8947d 100644 --- a/api/managementpb/backup/backups.validator.pb.go +++ b/api/managementpb/backup/backups.validator.pb.go @@ -20,9 +20,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/backup/common.validator.pb.go b/api/managementpb/backup/common.validator.pb.go index 11efb72ffd..793e08bce3 100644 --- a/api/managementpb/backup/common.validator.pb.go +++ b/api/managementpb/backup/common.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/backup/errors.validator.pb.go b/api/managementpb/backup/errors.validator.pb.go index 66137274ab..cedf20614a 100644 --- a/api/managementpb/backup/errors.validator.pb.go +++ b/api/managementpb/backup/errors.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/backup/locations.pb.gw.go b/api/managementpb/backup/locations.pb.gw.go index 7bd54e382d..1551fc8548 100644 --- a/api/managementpb/backup/locations.pb.gw.go +++ b/api/managementpb/backup/locations.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/backup/locations.validator.pb.go b/api/managementpb/backup/locations.validator.pb.go index 087c11b9aa..23252104e5 100644 --- a/api/managementpb/backup/locations.validator.pb.go +++ b/api/managementpb/backup/locations.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/backup/restores.pb.gw.go b/api/managementpb/backup/restores.pb.gw.go index a44b21f54d..c564f3251b 100644 --- a/api/managementpb/backup/restores.pb.gw.go +++ b/api/managementpb/backup/restores.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/backup/restores.validator.pb.go b/api/managementpb/backup/restores.validator.pb.go index b4eca86e43..e9080d17b4 100644 --- a/api/managementpb/backup/restores.validator.pb.go +++ b/api/managementpb/backup/restores.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/boolean_flag.validator.pb.go b/api/managementpb/boolean_flag.validator.pb.go index 82ba1d5452..5484086337 100644 --- a/api/managementpb/boolean_flag.validator.pb.go +++ b/api/managementpb/boolean_flag.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/checks.pb.gw.go b/api/managementpb/checks.pb.gw.go index 6af03515ec..ad8af336d9 100644 --- a/api/managementpb/checks.pb.gw.go +++ b/api/managementpb/checks.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/checks.validator.pb.go b/api/managementpb/checks.validator.pb.go index 4cc072b627..60dc874e6f 100644 --- a/api/managementpb/checks.validator.pb.go +++ b/api/managementpb/checks.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/components.pb.gw.go b/api/managementpb/dbaas/components.pb.gw.go index f0c34060c2..15e795334d 100644 --- a/api/managementpb/dbaas/components.pb.gw.go +++ b/api/managementpb/dbaas/components.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/dbaas/components.validator.pb.go b/api/managementpb/dbaas/components.validator.pb.go index 73afcc1fae..828945e1c5 100644 --- a/api/managementpb/dbaas/components.validator.pb.go +++ b/api/managementpb/dbaas/components.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/db_clusters.pb.gw.go b/api/managementpb/dbaas/db_clusters.pb.gw.go index f11c64e523..a880463bfc 100644 --- a/api/managementpb/dbaas/db_clusters.pb.gw.go +++ b/api/managementpb/dbaas/db_clusters.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/dbaas/db_clusters.validator.pb.go b/api/managementpb/dbaas/db_clusters.validator.pb.go index 222bec2fbc..6a5f3c74ac 100644 --- a/api/managementpb/dbaas/db_clusters.validator.pb.go +++ b/api/managementpb/dbaas/db_clusters.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/dbaas.validator.pb.go b/api/managementpb/dbaas/dbaas.validator.pb.go index 494a4348bd..db33c288d5 100644 --- a/api/managementpb/dbaas/dbaas.validator.pb.go +++ b/api/managementpb/dbaas/dbaas.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/kubernetes.pb.gw.go b/api/managementpb/dbaas/kubernetes.pb.gw.go index f700bf0991..c58034b17c 100644 --- a/api/managementpb/dbaas/kubernetes.pb.gw.go +++ b/api/managementpb/dbaas/kubernetes.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/dbaas/kubernetes.validator.pb.go b/api/managementpb/dbaas/kubernetes.validator.pb.go index 749480d245..8bf5793ffd 100644 --- a/api/managementpb/dbaas/kubernetes.validator.pb.go +++ b/api/managementpb/dbaas/kubernetes.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/logs.pb.gw.go b/api/managementpb/dbaas/logs.pb.gw.go index 3abc6e2936..c60f668a9c 100644 --- a/api/managementpb/dbaas/logs.pb.gw.go +++ b/api/managementpb/dbaas/logs.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/dbaas/logs.validator.pb.go b/api/managementpb/dbaas/logs.validator.pb.go index 7819d5b050..ddf6b90767 100644 --- a/api/managementpb/dbaas/logs.validator.pb.go +++ b/api/managementpb/dbaas/logs.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/psmdb_clusters.pb.gw.go b/api/managementpb/dbaas/psmdb_clusters.pb.gw.go index c41bde40a0..ec3c123ef8 100644 --- a/api/managementpb/dbaas/psmdb_clusters.pb.gw.go +++ b/api/managementpb/dbaas/psmdb_clusters.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/dbaas/psmdb_clusters.validator.pb.go b/api/managementpb/dbaas/psmdb_clusters.validator.pb.go index e67f3701e2..234b7fe254 100644 --- a/api/managementpb/dbaas/psmdb_clusters.validator.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/dbaas/pxc_clusters.pb.gw.go b/api/managementpb/dbaas/pxc_clusters.pb.gw.go index 1e6be95f1c..aa73aa9d3e 100644 --- a/api/managementpb/dbaas/pxc_clusters.pb.gw.go +++ b/api/managementpb/dbaas/pxc_clusters.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/dbaas/pxc_clusters.validator.pb.go b/api/managementpb/dbaas/pxc_clusters.validator.pb.go index 2f2b06ea75..4fe0c0d0be 100644 --- a/api/managementpb/dbaas/pxc_clusters.validator.pb.go +++ b/api/managementpb/dbaas/pxc_clusters.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/external.pb.gw.go b/api/managementpb/external.pb.gw.go index 7d5647842f..b14e33434d 100644 --- a/api/managementpb/external.pb.gw.go +++ b/api/managementpb/external.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/external.validator.pb.go b/api/managementpb/external.validator.pb.go index 8ab3eecdac..0a5eeaa6b5 100644 --- a/api/managementpb/external.validator.pb.go +++ b/api/managementpb/external.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/haproxy.pb.gw.go b/api/managementpb/haproxy.pb.gw.go index ee0d6ca964..537c208178 100644 --- a/api/managementpb/haproxy.pb.gw.go +++ b/api/managementpb/haproxy.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/haproxy.validator.pb.go b/api/managementpb/haproxy.validator.pb.go index c0a1c84703..d2818d0e5d 100644 --- a/api/managementpb/haproxy.validator.pb.go +++ b/api/managementpb/haproxy.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/ia/alerts.pb.gw.go b/api/managementpb/ia/alerts.pb.gw.go index 7bf8bc7020..ec6ec8cacd 100644 --- a/api/managementpb/ia/alerts.pb.gw.go +++ b/api/managementpb/ia/alerts.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/ia/alerts.validator.pb.go b/api/managementpb/ia/alerts.validator.pb.go index 11559e837f..d41186729f 100644 --- a/api/managementpb/ia/alerts.validator.pb.go +++ b/api/managementpb/ia/alerts.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/ia/channels.pb.gw.go b/api/managementpb/ia/channels.pb.gw.go index ac3448458b..16251041d6 100644 --- a/api/managementpb/ia/channels.pb.gw.go +++ b/api/managementpb/ia/channels.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/ia/channels.validator.pb.go b/api/managementpb/ia/channels.validator.pb.go index 66a356a95b..fc4912c225 100644 --- a/api/managementpb/ia/channels.validator.pb.go +++ b/api/managementpb/ia/channels.validator.pb.go @@ -16,9 +16,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/ia/rules.pb.gw.go b/api/managementpb/ia/rules.pb.gw.go index 2f526e30d7..f1189e3a26 100644 --- a/api/managementpb/ia/rules.pb.gw.go +++ b/api/managementpb/ia/rules.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/ia/rules.validator.pb.go b/api/managementpb/ia/rules.validator.pb.go index 8ab77a5de1..468097fe11 100644 --- a/api/managementpb/ia/rules.validator.pb.go +++ b/api/managementpb/ia/rules.validator.pb.go @@ -19,9 +19,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/ia/status.validator.pb.go b/api/managementpb/ia/status.validator.pb.go index e6f863aa3f..5fa248f4e8 100644 --- a/api/managementpb/ia/status.validator.pb.go +++ b/api/managementpb/ia/status.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/metrics.validator.pb.go b/api/managementpb/metrics.validator.pb.go index f3aa686d6e..ea97904062 100644 --- a/api/managementpb/metrics.validator.pb.go +++ b/api/managementpb/metrics.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/mongodb.pb.gw.go b/api/managementpb/mongodb.pb.gw.go index c61e0b9cec..bece3f062a 100644 --- a/api/managementpb/mongodb.pb.gw.go +++ b/api/managementpb/mongodb.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/mongodb.validator.pb.go b/api/managementpb/mongodb.validator.pb.go index 61686d2c28..c2c089f6a4 100644 --- a/api/managementpb/mongodb.validator.pb.go +++ b/api/managementpb/mongodb.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/mysql.pb.gw.go b/api/managementpb/mysql.pb.gw.go index cc67561b90..a586eb6377 100644 --- a/api/managementpb/mysql.pb.gw.go +++ b/api/managementpb/mysql.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/mysql.validator.pb.go b/api/managementpb/mysql.validator.pb.go index 6f8cc41447..3ca0022510 100644 --- a/api/managementpb/mysql.validator.pb.go +++ b/api/managementpb/mysql.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/node.pb.gw.go b/api/managementpb/node.pb.gw.go index 637a15679f..337f41af22 100644 --- a/api/managementpb/node.pb.gw.go +++ b/api/managementpb/node.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/node.validator.pb.go b/api/managementpb/node.validator.pb.go index 9492548f16..00b38b52c8 100644 --- a/api/managementpb/node.validator.pb.go +++ b/api/managementpb/node.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/pagination.validator.pb.go b/api/managementpb/pagination.validator.pb.go index 92df671747..dc7c891f82 100644 --- a/api/managementpb/pagination.validator.pb.go +++ b/api/managementpb/pagination.validator.pb.go @@ -13,9 +13,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/postgresql.pb.gw.go b/api/managementpb/postgresql.pb.gw.go index 7c88d45840..0355b4b1ea 100644 --- a/api/managementpb/postgresql.pb.gw.go +++ b/api/managementpb/postgresql.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/postgresql.validator.pb.go b/api/managementpb/postgresql.validator.pb.go index 8a3c495040..aa082f9cf3 100644 --- a/api/managementpb/postgresql.validator.pb.go +++ b/api/managementpb/postgresql.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/proxysql.pb.gw.go b/api/managementpb/proxysql.pb.gw.go index b8411f52a2..ac0fa323f5 100644 --- a/api/managementpb/proxysql.pb.gw.go +++ b/api/managementpb/proxysql.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/proxysql.validator.pb.go b/api/managementpb/proxysql.validator.pb.go index de50b0e141..74132036a6 100644 --- a/api/managementpb/proxysql.validator.pb.go +++ b/api/managementpb/proxysql.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/rds.pb.gw.go b/api/managementpb/rds.pb.gw.go index 17829d6c79..e36ec258d6 100644 --- a/api/managementpb/rds.pb.gw.go +++ b/api/managementpb/rds.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/rds.validator.pb.go b/api/managementpb/rds.validator.pb.go index 8432e50718..ab0748ef61 100644 --- a/api/managementpb/rds.validator.pb.go +++ b/api/managementpb/rds.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/service.pb.gw.go b/api/managementpb/service.pb.gw.go index 143f7106aa..fc6ec296a3 100644 --- a/api/managementpb/service.pb.gw.go +++ b/api/managementpb/service.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/managementpb/service.validator.pb.go b/api/managementpb/service.validator.pb.go index b5086d6794..0e224d523e 100644 --- a/api/managementpb/service.validator.pb.go +++ b/api/managementpb/service.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/managementpb/severity.validator.pb.go b/api/managementpb/severity.validator.pb.go index 10f30aed32..cc779b7912 100644 --- a/api/managementpb/severity.validator.pb.go +++ b/api/managementpb/severity.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/platformpb/platform.pb.gw.go b/api/platformpb/platform.pb.gw.go index 010818e53d..3d3c9a1603 100644 --- a/api/platformpb/platform.pb.gw.go +++ b/api/platformpb/platform.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/platformpb/platform.validator.pb.go b/api/platformpb/platform.validator.pb.go index ff8dbc6adb..5dd682deb5 100644 --- a/api/platformpb/platform.validator.pb.go +++ b/api/platformpb/platform.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/qanpb/collector.validator.pb.go b/api/qanpb/collector.validator.pb.go index ded18f11d1..fd692bfdc4 100644 --- a/api/qanpb/collector.validator.pb.go +++ b/api/qanpb/collector.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/qanpb/filters.pb.gw.go b/api/qanpb/filters.pb.gw.go index 0df96764b4..52080f2c03 100644 --- a/api/qanpb/filters.pb.gw.go +++ b/api/qanpb/filters.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/qanpb/filters.validator.pb.go b/api/qanpb/filters.validator.pb.go index b3bb0e7ed2..87ba839a42 100644 --- a/api/qanpb/filters.validator.pb.go +++ b/api/qanpb/filters.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/qanpb/metrics_names.pb.gw.go b/api/qanpb/metrics_names.pb.gw.go index b1999b04d8..de0d7a111f 100644 --- a/api/qanpb/metrics_names.pb.gw.go +++ b/api/qanpb/metrics_names.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/qanpb/metrics_names.validator.pb.go b/api/qanpb/metrics_names.validator.pb.go index 64e6a6fb71..72c3e5ca01 100644 --- a/api/qanpb/metrics_names.validator.pb.go +++ b/api/qanpb/metrics_names.validator.pb.go @@ -12,9 +12,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/qanpb/object_details.pb.gw.go b/api/qanpb/object_details.pb.gw.go index 6cb0e325d7..36f4a871da 100644 --- a/api/qanpb/object_details.pb.gw.go +++ b/api/qanpb/object_details.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/qanpb/object_details.validator.pb.go b/api/qanpb/object_details.validator.pb.go index a7d7da7435..146a5749d2 100644 --- a/api/qanpb/object_details.validator.pb.go +++ b/api/qanpb/object_details.validator.pb.go @@ -15,9 +15,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/qanpb/profile.pb.gw.go b/api/qanpb/profile.pb.gw.go index 02394e9461..c73b09e786 100644 --- a/api/qanpb/profile.pb.gw.go +++ b/api/qanpb/profile.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/qanpb/profile.validator.pb.go b/api/qanpb/profile.validator.pb.go index 9f78e94d04..bec3aaa958 100644 --- a/api/qanpb/profile.validator.pb.go +++ b/api/qanpb/profile.validator.pb.go @@ -14,9 +14,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/qanpb/qan.validator.pb.go b/api/qanpb/qan.validator.pb.go index d589c27909..8154fb42d8 100644 --- a/api/qanpb/qan.validator.pb.go +++ b/api/qanpb/qan.validator.pb.go @@ -11,9 +11,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/serverpb/httperror.validator.pb.go b/api/serverpb/httperror.validator.pb.go index 2d2d0fe75b..2bbc32fedc 100644 --- a/api/serverpb/httperror.validator.pb.go +++ b/api/serverpb/httperror.validator.pb.go @@ -13,9 +13,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/serverpb/server.pb.gw.go b/api/serverpb/server.pb.gw.go index 976a5e12cf..5b7f9b2a37 100644 --- a/api/serverpb/server.pb.gw.go +++ b/api/serverpb/server.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/serverpb/server.validator.pb.go b/api/serverpb/server.validator.pb.go index 2eae8b2b43..a05ccba7e8 100644 --- a/api/serverpb/server.validator.pb.go +++ b/api/serverpb/server.validator.pb.go @@ -17,9 +17,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) diff --git a/api/userpb/user.pb.gw.go b/api/userpb/user.pb.gw.go index 661472d51c..3e0f29eda6 100644 --- a/api/userpb/user.pb.gw.go +++ b/api/userpb/user.pb.gw.go @@ -24,9 +24,8 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code - var ( + _ codes.Code _ io.Reader _ status.Status _ = runtime.String diff --git a/api/userpb/user.validator.pb.go b/api/userpb/user.validator.pb.go index de6237f2e2..a86cccacd7 100644 --- a/api/userpb/user.validator.pb.go +++ b/api/userpb/user.validator.pb.go @@ -16,9 +16,8 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal - var ( + _ = proto.Marshal _ = fmt.Errorf _ = math.Inf ) From ab22a333fe07c684dfdbaf7c295e46263dc4a41f Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Wed, 19 Oct 2022 21:18:54 +0200 Subject: [PATCH 20/29] PMM-10231 api regenerate --- .../client/agent_local/agent_local_client.go | 6 +- .../client/agent_local/reload_parameters.go | 8 +- .../client/agent_local/reload_responses.go | 12 +- .../client/agent_local/status2_parameters.go | 8 +- .../client/agent_local/status2_responses.go | 21 ++- .../client/agent_local/status_parameters.go | 8 +- .../client/agent_local/status_responses.go | 24 ++-- api/agentpb/agent.pb.go | 28 ++-- api/agentpb/collector.pb.go | 4 - api/inventorypb/agents.pb.go | 3 +- .../add_azure_database_exporter_parameters.go | 8 +- .../add_azure_database_exporter_responses.go | 21 ++- .../add_external_exporter_parameters.go | 8 +- .../agents/add_external_exporter_responses.go | 21 ++- .../add_mongo_db_exporter_parameters.go | 8 +- .../agents/add_mongo_db_exporter_responses.go | 21 ++- .../add_my_s_q_ld_exporter_parameters.go | 8 +- .../add_my_s_q_ld_exporter_responses.go | 21 ++- .../agents/add_node_exporter_parameters.go | 8 +- .../agents/add_node_exporter_responses.go | 21 ++- .../client/agents/add_pmm_agent_parameters.go | 8 +- .../client/agents/add_pmm_agent_responses.go | 21 ++- .../add_postgres_exporter_parameters.go | 8 +- .../agents/add_postgres_exporter_responses.go | 21 ++- .../add_proxy_sql_exporter_parameters.go | 8 +- .../add_proxy_sql_exporter_responses.go | 21 ++- ..._qan_mongo_db_profiler_agent_parameters.go | 8 +- ...d_qan_mongo_db_profiler_agent_responses.go | 21 ++- ...qan_my_sql_perf_schema_agent_parameters.go | 8 +- ..._qan_my_sql_perf_schema_agent_responses.go | 21 ++- ...add_qan_my_sql_slowlog_agent_parameters.go | 8 +- .../add_qan_my_sql_slowlog_agent_responses.go | 21 ++- ...re_sql_pg_stat_monitor_agent_parameters.go | 8 +- ...gre_sql_pg_stat_monitor_agent_responses.go | 21 ++- ...tgre_sql_pg_statements_agent_parameters.go | 8 +- ...stgre_sql_pg_statements_agent_responses.go | 21 ++- .../agents/add_rds_exporter_parameters.go | 8 +- .../agents/add_rds_exporter_responses.go | 21 ++- .../json/client/agents/agents_client.go | 124 +++++++++--------- ...ange_azure_database_exporter_parameters.go | 8 +- ...hange_azure_database_exporter_responses.go | 24 ++-- .../change_external_exporter_parameters.go | 8 +- .../change_external_exporter_responses.go | 24 ++-- .../change_mongo_db_exporter_parameters.go | 8 +- .../change_mongo_db_exporter_responses.go | 24 ++-- .../change_my_s_q_ld_exporter_parameters.go | 8 +- .../change_my_s_q_ld_exporter_responses.go | 24 ++-- .../agents/change_node_exporter_parameters.go | 8 +- .../agents/change_node_exporter_responses.go | 24 ++-- .../change_postgres_exporter_parameters.go | 8 +- .../change_postgres_exporter_responses.go | 24 ++-- .../change_proxy_sql_exporter_parameters.go | 8 +- .../change_proxy_sql_exporter_responses.go | 24 ++-- ..._qan_mongo_db_profiler_agent_parameters.go | 8 +- ...e_qan_mongo_db_profiler_agent_responses.go | 24 ++-- ...qan_my_sql_perf_schema_agent_parameters.go | 8 +- ..._qan_my_sql_perf_schema_agent_responses.go | 24 ++-- ...nge_qan_my_sql_slowlog_agent_parameters.go | 8 +- ...ange_qan_my_sql_slowlog_agent_responses.go | 24 ++-- ...re_sql_pg_stat_monitor_agent_parameters.go | 8 +- ...gre_sql_pg_stat_monitor_agent_responses.go | 24 ++-- ...tgre_sql_pg_statements_agent_parameters.go | 8 +- ...stgre_sql_pg_statements_agent_responses.go | 24 ++-- .../agents/change_rds_exporter_parameters.go | 8 +- .../agents/change_rds_exporter_responses.go | 24 ++-- .../agents/get_agent_logs_parameters.go | 8 +- .../client/agents/get_agent_logs_responses.go | 18 ++- .../client/agents/get_agent_parameters.go | 8 +- .../json/client/agents/get_agent_responses.go | 63 ++++++--- .../client/agents/list_agents_parameters.go | 8 +- .../client/agents/list_agents_responses.go | 63 ++++++--- .../client/agents/remove_agent_parameters.go | 8 +- .../client/agents/remove_agent_responses.go | 15 ++- .../nodes/add_container_node_parameters.go | 8 +- .../nodes/add_container_node_responses.go | 21 ++- .../nodes/add_generic_node_parameters.go | 8 +- .../nodes/add_generic_node_responses.go | 21 ++- ...d_remote_azure_database_node_parameters.go | 8 +- ...dd_remote_azure_database_node_responses.go | 21 ++- .../nodes/add_remote_node_parameters.go | 8 +- .../client/nodes/add_remote_node_responses.go | 21 ++- .../nodes/add_remote_rds_node_parameters.go | 8 +- .../nodes/add_remote_rds_node_responses.go | 21 ++- .../json/client/nodes/get_node_parameters.go | 8 +- .../json/client/nodes/get_node_responses.go | 33 +++-- .../client/nodes/list_nodes_parameters.go | 8 +- .../json/client/nodes/list_nodes_responses.go | 33 +++-- .../json/client/nodes/nodes_client.go | 32 ++--- .../client/nodes/remove_node_parameters.go | 8 +- .../client/nodes/remove_node_responses.go | 15 ++- .../add_external_service_parameters.go | 8 +- .../add_external_service_responses.go | 21 ++- .../add_ha_proxy_service_parameters.go | 8 +- .../add_ha_proxy_service_responses.go | 21 ++- .../add_mongo_db_service_parameters.go | 8 +- .../add_mongo_db_service_responses.go | 21 ++- .../services/add_my_sql_service_parameters.go | 8 +- .../services/add_my_sql_service_responses.go | 21 ++- .../add_postgre_sql_service_parameters.go | 8 +- .../add_postgre_sql_service_responses.go | 21 ++- .../add_proxy_sql_service_parameters.go | 8 +- .../add_proxy_sql_service_responses.go | 21 ++- .../client/services/get_service_parameters.go | 8 +- .../client/services/get_service_responses.go | 36 +++-- .../services/list_services_parameters.go | 8 +- .../services/list_services_responses.go | 36 +++-- .../services/remove_service_parameters.go | 8 +- .../services/remove_service_responses.go | 15 ++- .../json/client/services/services_client.go | 36 ++--- api/inventorypb/nodes.pb.go | 1 + api/inventorypb/services.pb.go | 1 + api/managementpb/alerting/alerting.pb.go | 2 + .../json/client/alerting/alerting_client.go | 10 +- .../client/alerting/create_rule_parameters.go | 8 +- .../client/alerting/create_rule_responses.go | 21 ++- .../alerting/create_template_parameters.go | 8 +- .../alerting/create_template_responses.go | 15 ++- .../alerting/delete_template_parameters.go | 8 +- .../alerting/delete_template_responses.go | 15 ++- .../alerting/list_templates_parameters.go | 8 +- .../alerting/list_templates_responses.go | 39 ++++-- .../alerting/update_template_parameters.go | 8 +- .../alerting/update_template_responses.go | 15 ++- .../add_azure_database_parameters.go | 8 +- .../add_azure_database_responses.go | 15 ++- .../azure_database/azure_database_client.go | 4 +- .../discover_azure_database_parameters.go | 8 +- .../discover_azure_database_responses.go | 21 ++- .../json/client/artifacts/artifacts_client.go | 4 +- .../artifacts/delete_artifact_parameters.go | 8 +- .../artifacts/delete_artifact_responses.go | 15 ++- .../artifacts/list_artifacts_parameters.go | 8 +- .../artifacts/list_artifacts_responses.go | 18 ++- .../json/client/backups/backups_client.go | 22 ++-- .../change_scheduled_backup_parameters.go | 8 +- .../change_scheduled_backup_responses.go | 15 ++- .../client/backups/get_logs_parameters.go | 8 +- .../json/client/backups/get_logs_responses.go | 21 ++- ...artifact_compatible_services_parameters.go | 8 +- ..._artifact_compatible_services_responses.go | 24 ++-- .../list_scheduled_backups_parameters.go | 8 +- .../list_scheduled_backups_responses.go | 18 ++- .../remove_scheduled_backup_parameters.go | 8 +- .../remove_scheduled_backup_responses.go | 15 ++- .../backups/restore_backup_parameters.go | 8 +- .../backups/restore_backup_responses.go | 18 ++- .../backups/schedule_backup_parameters.go | 8 +- .../backups/schedule_backup_responses.go | 18 ++- .../client/backups/start_backup_parameters.go | 8 +- .../client/backups/start_backup_responses.go | 18 ++- .../locations/add_location_parameters.go | 8 +- .../locations/add_location_responses.go | 27 ++-- .../locations/change_location_parameters.go | 8 +- .../locations/change_location_responses.go | 24 ++-- .../locations/list_locations_parameters.go | 8 +- .../locations/list_locations_responses.go | 27 ++-- .../json/client/locations/locations_client.go | 10 +- .../locations/remove_location_parameters.go | 8 +- .../locations/remove_location_responses.go | 15 ++- .../test_location_config_parameters.go | 8 +- .../test_location_config_responses.go | 24 ++-- .../list_restore_history_parameters.go | 8 +- .../list_restore_history_responses.go | 18 ++- .../restore_history/restore_history_client.go | 2 +- api/managementpb/backup/locations.pb.go | 1 + .../change_psmdb_components_parameters.go | 8 +- .../change_psmdb_components_responses.go | 21 ++- .../change_pxc_components_parameters.go | 8 +- .../change_pxc_components_responses.go | 33 +++-- .../check_for_operator_update_parameters.go | 8 +- .../check_for_operator_update_responses.go | 21 ++- .../client/components/components_client.go | 12 +- .../get_psmdb_components_parameters.go | 8 +- .../get_psmdb_components_responses.go | 48 ++++--- .../get_pxc_components_parameters.go | 8 +- .../get_pxc_components_responses.go | 48 ++++--- .../components/install_operator_parameters.go | 8 +- .../components/install_operator_responses.go | 18 ++- .../client/db_clusters/db_clusters_client.go | 6 +- .../delete_db_cluster_parameters.go | 8 +- .../delete_db_cluster_responses.go | 15 ++- .../list_db_clusters_parameters.go | 8 +- .../db_clusters/list_db_clusters_responses.go | 60 ++++++--- .../restart_db_cluster_parameters.go | 8 +- .../restart_db_cluster_responses.go | 15 ++- .../get_kubernetes_cluster_parameters.go | 8 +- .../get_kubernetes_cluster_responses.go | 21 ++- .../kubernetes/get_resources_parameters.go | 8 +- .../kubernetes/get_resources_responses.go | 24 ++-- .../client/kubernetes/kubernetes_client.go | 10 +- .../list_kubernetes_clusters_parameters.go | 8 +- .../list_kubernetes_clusters_responses.go | 27 ++-- .../register_kubernetes_cluster_parameters.go | 8 +- .../register_kubernetes_cluster_responses.go | 18 ++- ...nregister_kubernetes_cluster_parameters.go | 8 +- ...unregister_kubernetes_cluster_responses.go | 15 ++- .../client/logs_api/get_logs_parameters.go | 8 +- .../client/logs_api/get_logs_responses.go | 21 ++- .../json/client/logs_api/logs_api_client.go | 2 +- .../create_psmdb_cluster_parameters.go | 8 +- .../create_psmdb_cluster_responses.go | 24 ++-- ...et_psmdb_cluster_credentials_parameters.go | 8 +- ...get_psmdb_cluster_credentials_responses.go | 21 ++- .../get_psmdb_cluster_resources_parameters.go | 8 +- .../get_psmdb_cluster_resources_responses.go | 30 +++-- .../psmdb_clusters/psmdb_clusters_client.go | 8 +- .../update_psmdb_cluster_parameters.go | 8 +- .../update_psmdb_cluster_responses.go | 24 ++-- .../create_pxc_cluster_parameters.go | 8 +- .../create_pxc_cluster_responses.go | 36 +++-- .../get_pxc_cluster_credentials_parameters.go | 8 +- .../get_pxc_cluster_credentials_responses.go | 21 ++- .../get_pxc_cluster_resources_parameters.go | 8 +- .../get_pxc_cluster_resources_responses.go | 42 ++++-- .../pxc_clusters/pxc_clusters_client.go | 8 +- .../update_pxc_cluster_parameters.go | 8 +- .../update_pxc_cluster_responses.go | 36 +++-- api/managementpb/dbaas/kubernetes_grpc.pb.go | 10 +- api/managementpb/ia/channels.pb.go | 1 + .../ia/json/client/alerts/alerts_client.go | 6 +- .../client/alerts/list_alerts_parameters.go | 8 +- .../client/alerts/list_alerts_responses.go | 72 ++++++---- .../client/alerts/toggle_alerts_parameters.go | 8 +- .../client/alerts/toggle_alerts_responses.go | 15 ++- .../client/channels/add_channel_parameters.go | 8 +- .../client/channels/add_channel_responses.go | 39 ++++-- .../channels/change_channel_parameters.go | 8 +- .../channels/change_channel_responses.go | 36 +++-- .../json/client/channels/channels_client.go | 8 +- .../channels/list_channels_parameters.go | 8 +- .../channels/list_channels_responses.go | 48 ++++--- .../channels/remove_channel_parameters.go | 8 +- .../channels/remove_channel_responses.go | 15 ++- .../rules/create_alert_rule_parameters.go | 8 +- .../rules/create_alert_rule_responses.go | 24 ++-- .../rules/delete_alert_rule_parameters.go | 8 +- .../rules/delete_alert_rule_responses.go | 15 ++- .../rules/list_alert_rules_parameters.go | 8 +- .../rules/list_alert_rules_responses.go | 69 ++++++---- .../ia/json/client/rules/rules_client.go | 10 +- .../rules/toggle_alert_rule_parameters.go | 8 +- .../rules/toggle_alert_rule_responses.go | 15 ++- .../rules/update_alert_rule_parameters.go | 8 +- .../rules/update_alert_rule_responses.go | 21 ++- api/managementpb/ia/rules.pb.go | 1 + .../json/client/actions/actions_client.go | 60 ++++----- .../actions/cancel_action_parameters.go | 8 +- .../client/actions/cancel_action_responses.go | 15 ++- .../client/actions/get_action_parameters.go | 8 +- .../client/actions/get_action_responses.go | 18 ++- ...tart_mongo_db_explain_action_parameters.go | 8 +- ...start_mongo_db_explain_action_responses.go | 18 ++- .../start_my_sql_explain_action_parameters.go | 8 +- .../start_my_sql_explain_action_responses.go | 18 ++- ...t_my_sql_explain_json_action_parameters.go | 8 +- ...rt_my_sql_explain_json_action_responses.go | 18 ++- ...lain_traditional_json_action_parameters.go | 8 +- ...plain_traditional_json_action_responses.go | 18 ++- ...sql_show_create_table_action_parameters.go | 8 +- ..._sql_show_create_table_action_responses.go | 18 ++- ...art_my_sql_show_index_action_parameters.go | 8 +- ...tart_my_sql_show_index_action_responses.go | 18 ++- ...sql_show_table_status_action_parameters.go | 8 +- ..._sql_show_table_status_action_responses.go | 18 ++- ...sql_show_create_table_action_parameters.go | 8 +- ..._sql_show_create_table_action_responses.go | 18 ++- ...ostgre_sql_show_index_action_parameters.go | 8 +- ...postgre_sql_show_index_action_responses.go | 18 ++- ...t_pt_mongo_db_summary_action_parameters.go | 8 +- ...rt_pt_mongo_db_summary_action_responses.go | 18 ++- ...art_pt_my_sql_summary_action_parameters.go | 8 +- ...tart_pt_my_sql_summary_action_responses.go | 18 ++- .../start_pt_pg_summary_action_parameters.go | 8 +- .../start_pt_pg_summary_action_responses.go | 18 ++- .../start_pt_summary_action_parameters.go | 8 +- .../start_pt_summary_action_responses.go | 18 ++- .../annotation/add_annotation_parameters.go | 8 +- .../annotation/add_annotation_responses.go | 15 ++- .../client/annotation/annotation_client.go | 4 +- .../external/add_external_parameters.go | 8 +- .../client/external/add_external_responses.go | 27 ++-- .../json/client/external/external_client.go | 4 +- .../ha_proxy/add_ha_proxy_parameters.go | 8 +- .../client/ha_proxy/add_ha_proxy_responses.go | 27 ++-- .../json/client/ha_proxy/ha_proxy_client.go | 4 +- .../mongo_db/add_mongo_db_parameters.go | 8 +- .../client/mongo_db/add_mongo_db_responses.go | 30 +++-- .../json/client/mongo_db/mongo_db_client.go | 4 +- .../client/my_sql/add_my_sql_parameters.go | 8 +- .../client/my_sql/add_my_sql_responses.go | 33 +++-- .../json/client/my_sql/my_sql_client.go | 4 +- .../json/client/node/node_client.go | 4 +- .../client/node/register_node_parameters.go | 8 +- .../client/node/register_node_responses.go | 27 ++-- .../postgre_sql/add_postgre_sql_parameters.go | 8 +- .../postgre_sql/add_postgre_sql_responses.go | 33 +++-- .../client/postgre_sql/postgre_sql_client.go | 4 +- .../proxy_sql/add_proxy_sql_parameters.go | 8 +- .../proxy_sql/add_proxy_sql_responses.go | 27 ++-- .../json/client/proxy_sql/proxy_sql_client.go | 4 +- .../json/client/rds/add_rds_parameters.go | 8 +- .../json/client/rds/add_rds_responses.go | 42 ++++-- .../client/rds/discover_rds_parameters.go | 8 +- .../json/client/rds/discover_rds_responses.go | 21 ++- .../json/client/rds/rds_client.go | 8 +- .../change_security_checks_parameters.go | 8 +- .../change_security_checks_responses.go | 18 ++- .../get_failed_checks_parameters.go | 8 +- .../get_failed_checks_responses.go | 27 ++-- .../get_security_check_results_parameters.go | 8 +- .../get_security_check_results_responses.go | 18 ++- .../list_failed_services_parameters.go | 8 +- .../list_failed_services_responses.go | 18 ++- .../list_security_checks_parameters.go | 8 +- .../list_security_checks_responses.go | 18 ++- .../security_checks/security_checks_client.go | 28 ++-- .../start_security_checks_parameters.go | 8 +- .../start_security_checks_responses.go | 15 ++- .../toggle_check_alert_parameters.go | 8 +- .../toggle_check_alert_responses.go | 15 ++- .../service/remove_service_parameters.go | 8 +- .../service/remove_service_responses.go | 15 ++- .../json/client/service/service_client.go | 4 +- .../client/platform/connect_parameters.go | 8 +- .../json/client/platform/connect_responses.go | 15 ++- .../client/platform/disconnect_parameters.go | 8 +- .../client/platform/disconnect_responses.go | 15 ++- .../get_contact_information_parameters.go | 8 +- .../get_contact_information_responses.go | 18 ++- .../json/client/platform/platform_client.go | 28 ++-- ...ch_organization_entitlements_parameters.go | 8 +- ...rch_organization_entitlements_responses.go | 21 ++- .../search_organization_tickets_parameters.go | 8 +- .../search_organization_tickets_responses.go | 18 ++- .../client/platform/server_info_parameters.go | 8 +- .../client/platform/server_info_responses.go | 15 ++- .../client/platform/user_status_parameters.go | 8 +- .../client/platform/user_status_responses.go | 15 ++- api/qanpb/collector.pb.go | 3 - .../json/client/filters/filters_client.go | 2 +- .../json/client/filters/get_parameters.go | 8 +- .../json/client/filters/get_responses.go | 27 ++-- .../get_metrics_names_parameters.go | 8 +- .../get_metrics_names_responses.go | 15 ++- .../metrics_names/metrics_names_client.go | 2 +- .../get_histogram_parameters.go | 8 +- .../object_details/get_histogram_responses.go | 24 ++-- .../object_details/get_labels_parameters.go | 8 +- .../object_details/get_labels_responses.go | 21 ++- .../object_details/get_metrics_parameters.go | 8 +- .../object_details/get_metrics_responses.go | 30 +++-- .../get_query_example_parameters.go | 8 +- .../get_query_example_responses.go | 24 ++-- .../get_query_plan_parameters.go | 8 +- .../get_query_plan_responses.go | 18 ++- .../object_details/object_details_client.go | 12 +- .../object_details/query_exists_parameters.go | 8 +- .../object_details/query_exists_responses.go | 15 ++- .../client/profile/get_report_parameters.go | 8 +- .../client/profile/get_report_responses.go | 33 +++-- .../json/client/profile/profile_client.go | 2 +- api/qanpb/qan.pb.go | 4 - .../server/aws_instance_check_parameters.go | 8 +- .../server/aws_instance_check_responses.go | 15 ++- .../server/change_settings_parameters.go | 8 +- .../server/change_settings_responses.go | 45 ++++--- .../client/server/check_updates_parameters.go | 8 +- .../client/server/check_updates_responses.go | 24 ++-- .../client/server/get_settings_parameters.go | 8 +- .../client/server/get_settings_responses.go | 30 +++-- .../json/client/server/logs_parameters.go | 8 +- .../json/client/server/logs_responses.go | 9 +- .../client/server/readiness_parameters.go | 8 +- .../json/client/server/readiness_responses.go | 12 +- .../json/client/server/server_client.go | 40 +++--- .../client/server/start_update_parameters.go | 8 +- .../client/server/start_update_responses.go | 15 ++- ...test_email_alerting_settings_parameters.go | 8 +- .../test_email_alerting_settings_responses.go | 18 ++- .../client/server/update_status_parameters.go | 8 +- .../client/server/update_status_responses.go | 18 ++- .../json/client/server/version_parameters.go | 8 +- .../json/client/server/version_responses.go | 21 ++- .../json/client/user/get_user_parameters.go | 8 +- .../json/client/user/get_user_responses.go | 15 ++- .../client/user/update_user_parameters.go | 8 +- .../json/client/user/update_user_responses.go | 18 ++- api/userpb/json/client/user/user_client.go | 8 +- 388 files changed, 3782 insertions(+), 2117 deletions(-) diff --git a/api/agentlocalpb/json/client/agent_local/agent_local_client.go b/api/agentlocalpb/json/client/agent_local/agent_local_client.go index 0cc7d74b16..c5e92c311e 100644 --- a/api/agentlocalpb/json/client/agent_local/agent_local_client.go +++ b/api/agentlocalpb/json/client/agent_local/agent_local_client.go @@ -38,7 +38,7 @@ type ClientService interface { } /* - Reload reloads reloads pmm agent configuration +Reload reloads reloads pmm agent configuration */ func (a *Client) Reload(params *ReloadParams, opts ...ClientOption) (*ReloadOK, error) { // TODO: Validate the params before sending @@ -75,7 +75,7 @@ func (a *Client) Reload(params *ReloadParams, opts ...ClientOption) (*ReloadOK, } /* - Status statuses returns current pmm agent status +Status statuses returns current pmm agent status */ func (a *Client) Status(params *StatusParams, opts ...ClientOption) (*StatusOK, error) { // TODO: Validate the params before sending @@ -112,7 +112,7 @@ func (a *Client) Status(params *StatusParams, opts ...ClientOption) (*StatusOK, } /* - Status2 statuses returns current pmm agent status +Status2 statuses returns current pmm agent status */ func (a *Client) Status2(params *Status2Params, opts ...ClientOption) (*Status2OK, error) { // TODO: Validate the params before sending diff --git a/api/agentlocalpb/json/client/agent_local/reload_parameters.go b/api/agentlocalpb/json/client/agent_local/reload_parameters.go index d5f0585ed5..99cb61bfaf 100644 --- a/api/agentlocalpb/json/client/agent_local/reload_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/reload_parameters.go @@ -52,10 +52,12 @@ func NewReloadParamsWithHTTPClient(client *http.Client) *ReloadParams { } } -/* ReloadParams contains all the parameters to send to the API endpoint - for the reload operation. +/* +ReloadParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the reload operation. + + Typically these are written to a http.Request. */ type ReloadParams struct { // Body. diff --git a/api/agentlocalpb/json/client/agent_local/reload_responses.go b/api/agentlocalpb/json/client/agent_local/reload_responses.go index 572e2110fb..ce4fcb8c03 100644 --- a/api/agentlocalpb/json/client/agent_local/reload_responses.go +++ b/api/agentlocalpb/json/client/agent_local/reload_responses.go @@ -48,7 +48,8 @@ func NewReloadOK() *ReloadOK { return &ReloadOK{} } -/* ReloadOK describes a response with status code 200, with default header values. +/* +ReloadOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewReloadDefault(code int) *ReloadDefault { } } -/* ReloadDefault describes a response with status code -1, with default header values. +/* +ReloadDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ReloadDefault) readResponse(response runtime.ClientResponse, consumer r return nil } -/*ReloadDefaultBody reload default body +/* +ReloadDefaultBody reload default body swagger:model ReloadDefaultBody */ type ReloadDefaultBody struct { @@ -217,7 +220,8 @@ func (o *ReloadDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ReloadDefaultBodyDetailsItems0 reload default body details items0 +/* +ReloadDefaultBodyDetailsItems0 reload default body details items0 swagger:model ReloadDefaultBodyDetailsItems0 */ type ReloadDefaultBodyDetailsItems0 struct { diff --git a/api/agentlocalpb/json/client/agent_local/status2_parameters.go b/api/agentlocalpb/json/client/agent_local/status2_parameters.go index e4329fdcc8..75d8c38d16 100644 --- a/api/agentlocalpb/json/client/agent_local/status2_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/status2_parameters.go @@ -53,10 +53,12 @@ func NewStatus2ParamsWithHTTPClient(client *http.Client) *Status2Params { } } -/* Status2Params contains all the parameters to send to the API endpoint - for the status2 operation. +/* +Status2Params contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the status2 operation. + + Typically these are written to a http.Request. */ type Status2Params struct { /* GetNetworkInfo. diff --git a/api/agentlocalpb/json/client/agent_local/status2_responses.go b/api/agentlocalpb/json/client/agent_local/status2_responses.go index d57416d7ad..e4b3cec66a 100644 --- a/api/agentlocalpb/json/client/agent_local/status2_responses.go +++ b/api/agentlocalpb/json/client/agent_local/status2_responses.go @@ -50,7 +50,8 @@ func NewStatus2OK() *Status2OK { return &Status2OK{} } -/* Status2OK describes a response with status code 200, with default header values. +/* +Status2OK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewStatus2Default(code int) *Status2Default { } } -/* Status2Default describes a response with status code -1, with default header values. +/* +Status2Default describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *Status2Default) readResponse(response runtime.ClientResponse, consumer return nil } -/*Status2DefaultBody status2 default body +/* +Status2DefaultBody status2 default body swagger:model Status2DefaultBody */ type Status2DefaultBody struct { @@ -221,7 +224,8 @@ func (o *Status2DefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*Status2DefaultBodyDetailsItems0 status2 default body details items0 +/* +Status2DefaultBodyDetailsItems0 status2 default body details items0 swagger:model Status2DefaultBodyDetailsItems0 */ type Status2DefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *Status2DefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*Status2OKBody status2 OK body +/* +Status2OKBody status2 OK body swagger:model Status2OKBody */ type Status2OKBody struct { @@ -417,7 +422,8 @@ func (o *Status2OKBody) UnmarshalBinary(b []byte) error { return nil } -/*Status2OKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed by pmm-agent. +/* +Status2OKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed by pmm-agent. swagger:model Status2OKBodyAgentsInfoItems0 */ type Status2OKBodyAgentsInfoItems0 struct { @@ -629,7 +635,8 @@ func (o *Status2OKBodyAgentsInfoItems0) UnmarshalBinary(b []byte) error { return nil } -/*Status2OKBodyServerInfo ServerInfo contains information about the PMM Server. +/* +Status2OKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model Status2OKBodyServerInfo */ type Status2OKBodyServerInfo struct { diff --git a/api/agentlocalpb/json/client/agent_local/status_parameters.go b/api/agentlocalpb/json/client/agent_local/status_parameters.go index c944faebe6..bcd6f41c92 100644 --- a/api/agentlocalpb/json/client/agent_local/status_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/status_parameters.go @@ -52,10 +52,12 @@ func NewStatusParamsWithHTTPClient(client *http.Client) *StatusParams { } } -/* StatusParams contains all the parameters to send to the API endpoint - for the status operation. +/* +StatusParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the status operation. + + Typically these are written to a http.Request. */ type StatusParams struct { // Body. diff --git a/api/agentlocalpb/json/client/agent_local/status_responses.go b/api/agentlocalpb/json/client/agent_local/status_responses.go index 37af0c20bc..fa69048f34 100644 --- a/api/agentlocalpb/json/client/agent_local/status_responses.go +++ b/api/agentlocalpb/json/client/agent_local/status_responses.go @@ -50,7 +50,8 @@ func NewStatusOK() *StatusOK { return &StatusOK{} } -/* StatusOK describes a response with status code 200, with default header values. +/* +StatusOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewStatusDefault(code int) *StatusDefault { } } -/* StatusDefault describes a response with status code -1, with default header values. +/* +StatusDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer r return nil } -/*StatusBody status body +/* +StatusBody status body swagger:model StatusBody */ type StatusBody struct { @@ -154,7 +157,8 @@ func (o *StatusBody) UnmarshalBinary(b []byte) error { return nil } -/*StatusDefaultBody status default body +/* +StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { @@ -257,7 +261,8 @@ func (o *StatusDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StatusDefaultBodyDetailsItems0 status default body details items0 +/* +StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { @@ -293,7 +298,8 @@ func (o *StatusDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*StatusOKBody status OK body +/* +StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { @@ -453,7 +459,8 @@ func (o *StatusOKBody) UnmarshalBinary(b []byte) error { return nil } -/*StatusOKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed by pmm-agent. +/* +StatusOKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed by pmm-agent. swagger:model StatusOKBodyAgentsInfoItems0 */ type StatusOKBodyAgentsInfoItems0 struct { @@ -665,7 +672,8 @@ func (o *StatusOKBodyAgentsInfoItems0) UnmarshalBinary(b []byte) error { return nil } -/*StatusOKBodyServerInfo ServerInfo contains information about the PMM Server. +/* +StatusOKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model StatusOKBodyServerInfo */ type StatusOKBodyServerInfo struct { diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index 48907da964..cae72d5a85 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -537,6 +537,7 @@ type QueryActionValue struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Kind: + // // *QueryActionValue_Nil // *QueryActionValue_Bool // *QueryActionValue_Int64 @@ -950,6 +951,7 @@ type StartActionRequest struct { ActionId string `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"` // Types that are assignable to Params: + // // *StartActionRequest_MysqlExplainParams // *StartActionRequest_MysqlShowCreateTableParams // *StartActionRequest_MysqlShowTableStatusParams @@ -2293,6 +2295,7 @@ type StartJobRequest struct { // Timeout for the job. Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // Types that are assignable to Job: + // // *StartJobRequest_MysqlBackup // *StartJobRequest_MysqlRestoreBackup // *StartJobRequest_MongodbBackup @@ -2553,6 +2556,7 @@ type JobResult struct { JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Types that are assignable to Result: + // // *JobResult_Error_ // *JobResult_MysqlBackup // *JobResult_MysqlRestoreBackup @@ -2692,6 +2696,7 @@ type JobProgress struct { JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Types that are assignable to Result: + // // *JobProgress_MysqlBackup // *JobProgress_MysqlRestoreBackup // *JobProgress_Logs_ @@ -2897,12 +2902,13 @@ type AgentMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The responder sets the status field in two situations: - // 1. When it received a request with the payload field not set. - // That means that responded is older than the requester, and doesn't know about newer payload types. - // Status code UNIMPLEMENTED (12) is reserved for that case. - // 2. When the payload is set, but the request can't be performed due to some error. + // 1. When it received a request with the payload field not set. + // That means that responded is older than the requester, and doesn't know about newer payload types. + // Status code UNIMPLEMENTED (12) is reserved for that case. + // 2. When the payload is set, but the request can't be performed due to some error. Status *status.Status `protobuf:"bytes,2047,opt,name=status,proto3" json:"status,omitempty"` // Types that are assignable to Payload: + // // *AgentMessage_Ping // *AgentMessage_StateChanged // *AgentMessage_QanCollect @@ -3224,12 +3230,13 @@ type ServerMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The responder sets the status field in two situations: - // 1. When it received a request with the payload field not set. - // That means that responded is older than the requester, and doesn't know about newer payload types. - // Status code UNIMPLEMENTED (12) is reserved for that case. - // 2. When the payload is set, but the request can't be performed due to some error. + // 1. When it received a request with the payload field not set. + // That means that responded is older than the requester, and doesn't know about newer payload types. + // Status code UNIMPLEMENTED (12) is reserved for that case. + // 2. When the payload is set, but the request can't be performed due to some error. Status *status.Status `protobuf:"bytes,2047,opt,name=status,proto3" json:"status,omitempty"` // Types that are assignable to Payload: + // // *ServerMessage_Pong // *ServerMessage_StateChanged // *ServerMessage_QanCollect @@ -5170,6 +5177,7 @@ type StartJobRequest_MySQLBackup struct { // Backup target location. // // Types that are assignable to LocationConfig: + // // *StartJobRequest_MySQLBackup_S3Config LocationConfig isStartJobRequest_MySQLBackup_LocationConfig `protobuf_oneof:"location_config"` } @@ -5285,6 +5293,7 @@ type StartJobRequest_MySQLRestoreBackup struct { // Where backup is stored. // // Types that are assignable to LocationConfig: + // // *StartJobRequest_MySQLRestoreBackup_S3Config LocationConfig isStartJobRequest_MySQLRestoreBackup_LocationConfig `protobuf_oneof:"location_config"` } @@ -5385,6 +5394,7 @@ type StartJobRequest_MongoDBBackup struct { // Backup target location. // // Types that are assignable to LocationConfig: + // // *StartJobRequest_MongoDBBackup_S3Config // *StartJobRequest_MongoDBBackup_PmmClientConfig LocationConfig isStartJobRequest_MongoDBBackup_LocationConfig `protobuf_oneof:"location_config"` @@ -5539,6 +5549,7 @@ type StartJobRequest_MongoDBRestoreBackup struct { // Where backup is stored. // // Types that are assignable to LocationConfig: + // // *StartJobRequest_MongoDBRestoreBackup_S3Config // *StartJobRequest_MongoDBRestoreBackup_PmmClientConfig LocationConfig isStartJobRequest_MongoDBRestoreBackup_LocationConfig `protobuf_oneof:"location_config"` @@ -6173,6 +6184,7 @@ type GetVersionsRequest_Software struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Software: + // // *GetVersionsRequest_Software_Mysqld // *GetVersionsRequest_Software_Xtrabackup // *GetVersionsRequest_Software_Xbcloud diff --git a/api/agentpb/collector.pb.go b/api/agentpb/collector.pb.go index ea5c89f9d2..a83128ef5a 100644 --- a/api/agentpb/collector.pb.go +++ b/api/agentpb/collector.pb.go @@ -273,7 +273,6 @@ type MetricsBucket_Common struct { Queryid string `protobuf:"bytes,1,opt,name=queryid,proto3" json:"queryid,omitempty"` // digest_text - query signature. Query without values. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - // // Dimension Group. // // MongoDB or PostgreSQL database. @@ -634,11 +633,9 @@ type MetricsBucket_MySQL struct { MTmpTableSizesMin float32 `protobuf:"fixed32,83,opt,name=m_tmp_table_sizes_min,json=mTmpTableSizesMin,proto3" json:"m_tmp_table_sizes_min,omitempty"` MTmpTableSizesMax float32 `protobuf:"fixed32,84,opt,name=m_tmp_table_sizes_max,json=mTmpTableSizesMax,proto3" json:"m_tmp_table_sizes_max,omitempty"` MTmpTableSizesP99 float32 `protobuf:"fixed32,85,opt,name=m_tmp_table_sizes_p99,json=mTmpTableSizesP99,proto3" json:"m_tmp_table_sizes_p99,omitempty"` - // // Boolean metrics: // - *_cnt - how many times this metric was met. // - *_sum - how many times this metric was true. - // MQcHitCnt float32 `protobuf:"fixed32,86,opt,name=m_qc_hit_cnt,json=mQcHitCnt,proto3" json:"m_qc_hit_cnt,omitempty"` // Query Cache hits. MQcHitSum float32 `protobuf:"fixed32,87,opt,name=m_qc_hit_sum,json=mQcHitSum,proto3" json:"m_qc_hit_sum,omitempty"` @@ -1739,7 +1736,6 @@ type MetricsBucket_PostgreSQL struct { MCpuSysTimeSum float32 `protobuf:"fixed32,30,opt,name=m_cpu_sys_time_sum,json=mCpuSysTimeSum,proto3" json:"m_cpu_sys_time_sum,omitempty"` // Type of SQL command. CmdType string `protobuf:"bytes,43,opt,name=cmd_type,json=cmdType,proto3" json:"cmd_type,omitempty"` - // // pg_stat_monitor 0.9 metrics // // Total number of planned calls. diff --git a/api/inventorypb/agents.pb.go b/api/inventorypb/agents.pb.go index c8fd138634..a068c3e35b 100644 --- a/api/inventorypb/agents.pb.go +++ b/api/inventorypb/agents.pb.go @@ -1374,7 +1374,7 @@ type QANMySQLSlowlogAgent struct { CustomLabels map[string]string `protobuf:"bytes,10,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Actual Agent status. Status AgentStatus `protobuf:"varint,11,opt,name=status,proto3,enum=inventory.AgentStatus" json:"status,omitempty"` - // mod tidy + // mod tidy ProcessExecPath string `protobuf:"bytes,15,opt,name=process_exec_path,json=processExecPath,proto3" json:"process_exec_path,omitempty"` // Log level for exporter. LogLevel LogLevel `protobuf:"varint,16,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` @@ -2806,6 +2806,7 @@ type GetAgentResponse struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Agent: + // // *GetAgentResponse_PmmAgent // *GetAgentResponse_Vmagent // *GetAgentResponse_NodeExporter diff --git a/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go b/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go index 9c9596c73d..3db16b94a2 100644 --- a/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddAzureDatabaseExporterParamsWithHTTPClient(client *http.Client) *AddAz } } -/* AddAzureDatabaseExporterParams contains all the parameters to send to the API endpoint - for the add azure database exporter operation. +/* +AddAzureDatabaseExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add azure database exporter operation. + + Typically these are written to a http.Request. */ type AddAzureDatabaseExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go b/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go index eaa5c705d2..297e128f25 100644 --- a/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddAzureDatabaseExporterOK() *AddAzureDatabaseExporterOK { return &AddAzureDatabaseExporterOK{} } -/* AddAzureDatabaseExporterOK describes a response with status code 200, with default header values. +/* +AddAzureDatabaseExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddAzureDatabaseExporterDefault(code int) *AddAzureDatabaseExporterDefau } } -/* AddAzureDatabaseExporterDefault describes a response with status code -1, with default header values. +/* +AddAzureDatabaseExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddAzureDatabaseExporterDefault) readResponse(response runtime.ClientRe return nil } -/*AddAzureDatabaseExporterBody add azure database exporter body +/* +AddAzureDatabaseExporterBody add azure database exporter body swagger:model AddAzureDatabaseExporterBody */ type AddAzureDatabaseExporterBody struct { @@ -251,7 +254,8 @@ func (o *AddAzureDatabaseExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAzureDatabaseExporterDefaultBody add azure database exporter default body +/* +AddAzureDatabaseExporterDefaultBody add azure database exporter default body swagger:model AddAzureDatabaseExporterDefaultBody */ type AddAzureDatabaseExporterDefaultBody struct { @@ -354,7 +358,8 @@ func (o *AddAzureDatabaseExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAzureDatabaseExporterDefaultBodyDetailsItems0 add azure database exporter default body details items0 +/* +AddAzureDatabaseExporterDefaultBodyDetailsItems0 add azure database exporter default body details items0 swagger:model AddAzureDatabaseExporterDefaultBodyDetailsItems0 */ type AddAzureDatabaseExporterDefaultBodyDetailsItems0 struct { @@ -390,7 +395,8 @@ func (o *AddAzureDatabaseExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []b return nil } -/*AddAzureDatabaseExporterOKBody add azure database exporter OK body +/* +AddAzureDatabaseExporterOKBody add azure database exporter OK body swagger:model AddAzureDatabaseExporterOKBody */ type AddAzureDatabaseExporterOKBody struct { @@ -478,7 +484,8 @@ func (o *AddAzureDatabaseExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. +/* +AddAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. swagger:model AddAzureDatabaseExporterOKBodyAzureDatabaseExporter */ type AddAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { diff --git a/api/inventorypb/json/client/agents/add_external_exporter_parameters.go b/api/inventorypb/json/client/agents/add_external_exporter_parameters.go index fce7d6a636..5a5ae9a946 100644 --- a/api/inventorypb/json/client/agents/add_external_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_external_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddExternalExporterParamsWithHTTPClient(client *http.Client) *AddExterna } } -/* AddExternalExporterParams contains all the parameters to send to the API endpoint - for the add external exporter operation. +/* +AddExternalExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add external exporter operation. + + Typically these are written to a http.Request. */ type AddExternalExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_external_exporter_responses.go b/api/inventorypb/json/client/agents/add_external_exporter_responses.go index b2b33f3c98..33a3d17e6e 100644 --- a/api/inventorypb/json/client/agents/add_external_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_external_exporter_responses.go @@ -48,7 +48,8 @@ func NewAddExternalExporterOK() *AddExternalExporterOK { return &AddExternalExporterOK{} } -/* AddExternalExporterOK describes a response with status code 200, with default header values. +/* +AddExternalExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddExternalExporterDefault(code int) *AddExternalExporterDefault { } } -/* AddExternalExporterDefault describes a response with status code -1, with default header values. +/* +AddExternalExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddExternalExporterDefault) readResponse(response runtime.ClientRespons return nil } -/*AddExternalExporterBody add external exporter body +/* +AddExternalExporterBody add external exporter body swagger:model AddExternalExporterBody */ type AddExternalExporterBody struct { @@ -176,7 +179,8 @@ func (o *AddExternalExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalExporterDefaultBody add external exporter default body +/* +AddExternalExporterDefaultBody add external exporter default body swagger:model AddExternalExporterDefaultBody */ type AddExternalExporterDefaultBody struct { @@ -279,7 +283,8 @@ func (o *AddExternalExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalExporterDefaultBodyDetailsItems0 add external exporter default body details items0 +/* +AddExternalExporterDefaultBodyDetailsItems0 add external exporter default body details items0 swagger:model AddExternalExporterDefaultBodyDetailsItems0 */ type AddExternalExporterDefaultBodyDetailsItems0 struct { @@ -315,7 +320,8 @@ func (o *AddExternalExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*AddExternalExporterOKBody add external exporter OK body +/* +AddExternalExporterOKBody add external exporter OK body swagger:model AddExternalExporterOKBody */ type AddExternalExporterOKBody struct { @@ -403,7 +409,8 @@ func (o *AddExternalExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. +/* +AddExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. swagger:model AddExternalExporterOKBodyExternalExporter */ type AddExternalExporterOKBodyExternalExporter struct { diff --git a/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go b/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go index 68150e60d6..d7083686bf 100644 --- a/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddMongoDBExporterParamsWithHTTPClient(client *http.Client) *AddMongoDBE } } -/* AddMongoDBExporterParams contains all the parameters to send to the API endpoint - for the add mongo DB exporter operation. +/* +AddMongoDBExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add mongo DB exporter operation. + + Typically these are written to a http.Request. */ type AddMongoDBExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go b/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go index 62398a3c85..1396da9ac7 100644 --- a/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddMongoDBExporterOK() *AddMongoDBExporterOK { return &AddMongoDBExporterOK{} } -/* AddMongoDBExporterOK describes a response with status code 200, with default header values. +/* +AddMongoDBExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddMongoDBExporterDefault(code int) *AddMongoDBExporterDefault { } } -/* AddMongoDBExporterDefault describes a response with status code -1, with default header values. +/* +AddMongoDBExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddMongoDBExporterDefault) readResponse(response runtime.ClientResponse return nil } -/*AddMongoDBExporterBody add mongo DB exporter body +/* +AddMongoDBExporterBody add mongo DB exporter body swagger:model AddMongoDBExporterBody */ type AddMongoDBExporterBody struct { @@ -275,7 +278,8 @@ func (o *AddMongoDBExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBExporterDefaultBody add mongo DB exporter default body +/* +AddMongoDBExporterDefaultBody add mongo DB exporter default body swagger:model AddMongoDBExporterDefaultBody */ type AddMongoDBExporterDefaultBody struct { @@ -378,7 +382,8 @@ func (o *AddMongoDBExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBExporterDefaultBodyDetailsItems0 add mongo DB exporter default body details items0 +/* +AddMongoDBExporterDefaultBodyDetailsItems0 add mongo DB exporter default body details items0 swagger:model AddMongoDBExporterDefaultBodyDetailsItems0 */ type AddMongoDBExporterDefaultBodyDetailsItems0 struct { @@ -414,7 +419,8 @@ func (o *AddMongoDBExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*AddMongoDBExporterOKBody add mongo DB exporter OK body +/* +AddMongoDBExporterOKBody add mongo DB exporter OK body swagger:model AddMongoDBExporterOKBody */ type AddMongoDBExporterOKBody struct { @@ -502,7 +508,8 @@ func (o *AddMongoDBExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. +/* +AddMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. swagger:model AddMongoDBExporterOKBodyMongodbExporter */ type AddMongoDBExporterOKBodyMongodbExporter struct { diff --git a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go index 8ebd386eb6..155ca1d3ff 100644 --- a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddMySQLdExporterParamsWithHTTPClient(client *http.Client) *AddMySQLdExp } } -/* AddMySQLdExporterParams contains all the parameters to send to the API endpoint - for the add my s q ld exporter operation. +/* +AddMySQLdExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add my s q ld exporter operation. + + Typically these are written to a http.Request. */ type AddMySQLdExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go index 5638d3e2bd..3b066d1f20 100644 --- a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddMySQLdExporterOK() *AddMySQLdExporterOK { return &AddMySQLdExporterOK{} } -/* AddMySQLdExporterOK describes a response with status code 200, with default header values. +/* +AddMySQLdExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddMySQLdExporterDefault(code int) *AddMySQLdExporterDefault { } } -/* AddMySQLdExporterDefault describes a response with status code -1, with default header values. +/* +AddMySQLdExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddMySQLdExporterDefault) readResponse(response runtime.ClientResponse, return nil } -/*AddMySQLdExporterBody add my s q ld exporter body +/* +AddMySQLdExporterBody add my s q ld exporter body swagger:model AddMySQLdExporterBody */ type AddMySQLdExporterBody struct { @@ -265,7 +268,8 @@ func (o *AddMySQLdExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLdExporterDefaultBody add my s q ld exporter default body +/* +AddMySQLdExporterDefaultBody add my s q ld exporter default body swagger:model AddMySQLdExporterDefaultBody */ type AddMySQLdExporterDefaultBody struct { @@ -368,7 +372,8 @@ func (o *AddMySQLdExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLdExporterDefaultBodyDetailsItems0 add my s q ld exporter default body details items0 +/* +AddMySQLdExporterDefaultBodyDetailsItems0 add my s q ld exporter default body details items0 swagger:model AddMySQLdExporterDefaultBodyDetailsItems0 */ type AddMySQLdExporterDefaultBodyDetailsItems0 struct { @@ -404,7 +409,8 @@ func (o *AddMySQLdExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) er return nil } -/*AddMySQLdExporterOKBody add my s q ld exporter OK body +/* +AddMySQLdExporterOKBody add my s q ld exporter OK body swagger:model AddMySQLdExporterOKBody */ type AddMySQLdExporterOKBody struct { @@ -495,7 +501,8 @@ func (o *AddMySQLdExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +/* +AddMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model AddMySQLdExporterOKBodyMysqldExporter */ type AddMySQLdExporterOKBodyMysqldExporter struct { diff --git a/api/inventorypb/json/client/agents/add_node_exporter_parameters.go b/api/inventorypb/json/client/agents/add_node_exporter_parameters.go index c203a88ca8..534c79bbf6 100644 --- a/api/inventorypb/json/client/agents/add_node_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_node_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddNodeExporterParamsWithHTTPClient(client *http.Client) *AddNodeExporte } } -/* AddNodeExporterParams contains all the parameters to send to the API endpoint - for the add node exporter operation. +/* +AddNodeExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add node exporter operation. + + Typically these are written to a http.Request. */ type AddNodeExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_node_exporter_responses.go b/api/inventorypb/json/client/agents/add_node_exporter_responses.go index d7a03519bc..c36cb227fe 100644 --- a/api/inventorypb/json/client/agents/add_node_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_node_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddNodeExporterOK() *AddNodeExporterOK { return &AddNodeExporterOK{} } -/* AddNodeExporterOK describes a response with status code 200, with default header values. +/* +AddNodeExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddNodeExporterDefault(code int) *AddNodeExporterDefault { } } -/* AddNodeExporterDefault describes a response with status code -1, with default header values. +/* +AddNodeExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddNodeExporterDefault) readResponse(response runtime.ClientResponse, c return nil } -/*AddNodeExporterBody add node exporter body +/* +AddNodeExporterBody add node exporter body swagger:model AddNodeExporterBody */ type AddNodeExporterBody struct { @@ -230,7 +233,8 @@ func (o *AddNodeExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddNodeExporterDefaultBody add node exporter default body +/* +AddNodeExporterDefaultBody add node exporter default body swagger:model AddNodeExporterDefaultBody */ type AddNodeExporterDefaultBody struct { @@ -333,7 +337,8 @@ func (o *AddNodeExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddNodeExporterDefaultBodyDetailsItems0 add node exporter default body details items0 +/* +AddNodeExporterDefaultBodyDetailsItems0 add node exporter default body details items0 swagger:model AddNodeExporterDefaultBodyDetailsItems0 */ type AddNodeExporterDefaultBodyDetailsItems0 struct { @@ -369,7 +374,8 @@ func (o *AddNodeExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*AddNodeExporterOKBody add node exporter OK body +/* +AddNodeExporterOKBody add node exporter OK body swagger:model AddNodeExporterOKBody */ type AddNodeExporterOKBody struct { @@ -457,7 +463,8 @@ func (o *AddNodeExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. +/* +AddNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. swagger:model AddNodeExporterOKBodyNodeExporter */ type AddNodeExporterOKBodyNodeExporter struct { diff --git a/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go b/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go index d328c33e74..b9defeaafd 100644 --- a/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go @@ -52,10 +52,12 @@ func NewAddPMMAgentParamsWithHTTPClient(client *http.Client) *AddPMMAgentParams } } -/* AddPMMAgentParams contains all the parameters to send to the API endpoint - for the add PMM agent operation. +/* +AddPMMAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add PMM agent operation. + + Typically these are written to a http.Request. */ type AddPMMAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_pmm_agent_responses.go b/api/inventorypb/json/client/agents/add_pmm_agent_responses.go index 50dd142184..de99cda787 100644 --- a/api/inventorypb/json/client/agents/add_pmm_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_pmm_agent_responses.go @@ -48,7 +48,8 @@ func NewAddPMMAgentOK() *AddPMMAgentOK { return &AddPMMAgentOK{} } -/* AddPMMAgentOK describes a response with status code 200, with default header values. +/* +AddPMMAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddPMMAgentDefault(code int) *AddPMMAgentDefault { } } -/* AddPMMAgentDefault describes a response with status code -1, with default header values. +/* +AddPMMAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddPMMAgentDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*AddPMMAgentBody add PMM agent body +/* +AddPMMAgentBody add PMM agent body swagger:model AddPMMAgentBody */ type AddPMMAgentBody struct { @@ -155,7 +158,8 @@ func (o *AddPMMAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPMMAgentDefaultBody add PMM agent default body +/* +AddPMMAgentDefaultBody add PMM agent default body swagger:model AddPMMAgentDefaultBody */ type AddPMMAgentDefaultBody struct { @@ -258,7 +262,8 @@ func (o *AddPMMAgentDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPMMAgentDefaultBodyDetailsItems0 add PMM agent default body details items0 +/* +AddPMMAgentDefaultBodyDetailsItems0 add PMM agent default body details items0 swagger:model AddPMMAgentDefaultBodyDetailsItems0 */ type AddPMMAgentDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *AddPMMAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddPMMAgentOKBody add PMM agent OK body +/* +AddPMMAgentOKBody add PMM agent OK body swagger:model AddPMMAgentOKBody */ type AddPMMAgentOKBody struct { @@ -382,7 +388,8 @@ func (o *AddPMMAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPMMAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. +/* +AddPMMAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model AddPMMAgentOKBodyPMMAgent */ type AddPMMAgentOKBodyPMMAgent struct { diff --git a/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go b/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go index 87eae7fad9..48999a85e6 100644 --- a/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddPostgresExporterParamsWithHTTPClient(client *http.Client) *AddPostgre } } -/* AddPostgresExporterParams contains all the parameters to send to the API endpoint - for the add postgres exporter operation. +/* +AddPostgresExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add postgres exporter operation. + + Typically these are written to a http.Request. */ type AddPostgresExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go b/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go index 833deb97e0..a443028e3f 100644 --- a/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddPostgresExporterOK() *AddPostgresExporterOK { return &AddPostgresExporterOK{} } -/* AddPostgresExporterOK describes a response with status code 200, with default header values. +/* +AddPostgresExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddPostgresExporterDefault(code int) *AddPostgresExporterDefault { } } -/* AddPostgresExporterDefault describes a response with status code -1, with default header values. +/* +AddPostgresExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddPostgresExporterDefault) readResponse(response runtime.ClientRespons return nil } -/*AddPostgresExporterBody add postgres exporter body +/* +AddPostgresExporterBody add postgres exporter body swagger:model AddPostgresExporterBody */ type AddPostgresExporterBody struct { @@ -260,7 +263,8 @@ func (o *AddPostgresExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgresExporterDefaultBody add postgres exporter default body +/* +AddPostgresExporterDefaultBody add postgres exporter default body swagger:model AddPostgresExporterDefaultBody */ type AddPostgresExporterDefaultBody struct { @@ -363,7 +367,8 @@ func (o *AddPostgresExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgresExporterDefaultBodyDetailsItems0 add postgres exporter default body details items0 +/* +AddPostgresExporterDefaultBodyDetailsItems0 add postgres exporter default body details items0 swagger:model AddPostgresExporterDefaultBodyDetailsItems0 */ type AddPostgresExporterDefaultBodyDetailsItems0 struct { @@ -399,7 +404,8 @@ func (o *AddPostgresExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*AddPostgresExporterOKBody add postgres exporter OK body +/* +AddPostgresExporterOKBody add postgres exporter OK body swagger:model AddPostgresExporterOKBody */ type AddPostgresExporterOKBody struct { @@ -487,7 +493,8 @@ func (o *AddPostgresExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +/* +AddPostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model AddPostgresExporterOKBodyPostgresExporter */ type AddPostgresExporterOKBodyPostgresExporter struct { diff --git a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go index c9db9f31f3..1d26aff287 100644 --- a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddProxySQLExporterParamsWithHTTPClient(client *http.Client) *AddProxySQ } } -/* AddProxySQLExporterParams contains all the parameters to send to the API endpoint - for the add proxy SQL exporter operation. +/* +AddProxySQLExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add proxy SQL exporter operation. + + Typically these are written to a http.Request. */ type AddProxySQLExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go index a15837de25..dfedefda3c 100644 --- a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddProxySQLExporterOK() *AddProxySQLExporterOK { return &AddProxySQLExporterOK{} } -/* AddProxySQLExporterOK describes a response with status code 200, with default header values. +/* +AddProxySQLExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddProxySQLExporterDefault(code int) *AddProxySQLExporterDefault { } } -/* AddProxySQLExporterDefault describes a response with status code -1, with default header values. +/* +AddProxySQLExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddProxySQLExporterDefault) readResponse(response runtime.ClientRespons return nil } -/*AddProxySQLExporterBody add proxy SQL exporter body +/* +AddProxySQLExporterBody add proxy SQL exporter body swagger:model AddProxySQLExporterBody */ type AddProxySQLExporterBody struct { @@ -251,7 +254,8 @@ func (o *AddProxySQLExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLExporterDefaultBody add proxy SQL exporter default body +/* +AddProxySQLExporterDefaultBody add proxy SQL exporter default body swagger:model AddProxySQLExporterDefaultBody */ type AddProxySQLExporterDefaultBody struct { @@ -354,7 +358,8 @@ func (o *AddProxySQLExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLExporterDefaultBodyDetailsItems0 add proxy SQL exporter default body details items0 +/* +AddProxySQLExporterDefaultBodyDetailsItems0 add proxy SQL exporter default body details items0 swagger:model AddProxySQLExporterDefaultBodyDetailsItems0 */ type AddProxySQLExporterDefaultBodyDetailsItems0 struct { @@ -390,7 +395,8 @@ func (o *AddProxySQLExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*AddProxySQLExporterOKBody add proxy SQL exporter OK body +/* +AddProxySQLExporterOKBody add proxy SQL exporter OK body swagger:model AddProxySQLExporterOKBody */ type AddProxySQLExporterOKBody struct { @@ -478,7 +484,8 @@ func (o *AddProxySQLExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. +/* +AddProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. swagger:model AddProxySQLExporterOKBodyProxysqlExporter */ type AddProxySQLExporterOKBodyProxysqlExporter struct { diff --git a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go index c0181313b4..4ba6b76646 100644 --- a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go @@ -52,10 +52,12 @@ func NewAddQANMongoDBProfilerAgentParamsWithHTTPClient(client *http.Client) *Add } } -/* AddQANMongoDBProfilerAgentParams contains all the parameters to send to the API endpoint - for the add QAN mongo DB profiler agent operation. +/* +AddQANMongoDBProfilerAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add QAN mongo DB profiler agent operation. + + Typically these are written to a http.Request. */ type AddQANMongoDBProfilerAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go index 9dcc7bf53e..4b43b3ab90 100644 --- a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go @@ -50,7 +50,8 @@ func NewAddQANMongoDBProfilerAgentOK() *AddQANMongoDBProfilerAgentOK { return &AddQANMongoDBProfilerAgentOK{} } -/* AddQANMongoDBProfilerAgentOK describes a response with status code 200, with default header values. +/* +AddQANMongoDBProfilerAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddQANMongoDBProfilerAgentDefault(code int) *AddQANMongoDBProfilerAgentD } } -/* AddQANMongoDBProfilerAgentDefault describes a response with status code -1, with default header values. +/* +AddQANMongoDBProfilerAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddQANMongoDBProfilerAgentDefault) readResponse(response runtime.Client return nil } -/*AddQANMongoDBProfilerAgentBody add QAN mongo DB profiler agent body +/* +AddQANMongoDBProfilerAgentBody add QAN mongo DB profiler agent body swagger:model AddQANMongoDBProfilerAgentBody */ type AddQANMongoDBProfilerAgentBody struct { @@ -259,7 +262,8 @@ func (o *AddQANMongoDBProfilerAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMongoDBProfilerAgentDefaultBody add QAN mongo DB profiler agent default body +/* +AddQANMongoDBProfilerAgentDefaultBody add QAN mongo DB profiler agent default body swagger:model AddQANMongoDBProfilerAgentDefaultBody */ type AddQANMongoDBProfilerAgentDefaultBody struct { @@ -362,7 +366,8 @@ func (o *AddQANMongoDBProfilerAgentDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 add QAN mongo DB profiler agent default body details items0 +/* +AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 add QAN mongo DB profiler agent default body details items0 swagger:model AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 */ type AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { @@ -398,7 +403,8 @@ func (o *AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0) UnmarshalBinary(b [ return nil } -/*AddQANMongoDBProfilerAgentOKBody add QAN mongo DB profiler agent OK body +/* +AddQANMongoDBProfilerAgentOKBody add QAN mongo DB profiler agent OK body swagger:model AddQANMongoDBProfilerAgentOKBody */ type AddQANMongoDBProfilerAgentOKBody struct { @@ -486,7 +492,8 @@ func (o *AddQANMongoDBProfilerAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. +/* +AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. swagger:model AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent */ type AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go index 9ad99e9915..c96dd4f37b 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go @@ -52,10 +52,12 @@ func NewAddQANMySQLPerfSchemaAgentParamsWithHTTPClient(client *http.Client) *Add } } -/* AddQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API endpoint - for the add QAN my SQL perf schema agent operation. +/* +AddQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add QAN my SQL perf schema agent operation. + + Typically these are written to a http.Request. */ type AddQANMySQLPerfSchemaAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go index ecf8739f02..2ba5070113 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go @@ -50,7 +50,8 @@ func NewAddQANMySQLPerfSchemaAgentOK() *AddQANMySQLPerfSchemaAgentOK { return &AddQANMySQLPerfSchemaAgentOK{} } -/* AddQANMySQLPerfSchemaAgentOK describes a response with status code 200, with default header values. +/* +AddQANMySQLPerfSchemaAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddQANMySQLPerfSchemaAgentDefault(code int) *AddQANMySQLPerfSchemaAgentD } } -/* AddQANMySQLPerfSchemaAgentDefault describes a response with status code -1, with default header values. +/* +AddQANMySQLPerfSchemaAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.Client return nil } -/*AddQANMySQLPerfSchemaAgentBody add QAN my SQL perf schema agent body +/* +AddQANMySQLPerfSchemaAgentBody add QAN my SQL perf schema agent body swagger:model AddQANMySQLPerfSchemaAgentBody */ type AddQANMySQLPerfSchemaAgentBody struct { @@ -257,7 +260,8 @@ func (o *AddQANMySQLPerfSchemaAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMySQLPerfSchemaAgentDefaultBody add QAN my SQL perf schema agent default body +/* +AddQANMySQLPerfSchemaAgentDefaultBody add QAN my SQL perf schema agent default body swagger:model AddQANMySQLPerfSchemaAgentDefaultBody */ type AddQANMySQLPerfSchemaAgentDefaultBody struct { @@ -360,7 +364,8 @@ func (o *AddQANMySQLPerfSchemaAgentDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 add QAN my SQL perf schema agent default body details items0 +/* +AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 add QAN my SQL perf schema agent default body details items0 swagger:model AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 */ type AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { @@ -396,7 +401,8 @@ func (o *AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0) UnmarshalBinary(b [ return nil } -/*AddQANMySQLPerfSchemaAgentOKBody add QAN my SQL perf schema agent OK body +/* +AddQANMySQLPerfSchemaAgentOKBody add QAN my SQL perf schema agent OK body swagger:model AddQANMySQLPerfSchemaAgentOKBody */ type AddQANMySQLPerfSchemaAgentOKBody struct { @@ -484,7 +490,8 @@ func (o *AddQANMySQLPerfSchemaAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent */ type AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go index 448b0fb9c9..f1f42c5244 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go @@ -52,10 +52,12 @@ func NewAddQANMySQLSlowlogAgentParamsWithHTTPClient(client *http.Client) *AddQAN } } -/* AddQANMySQLSlowlogAgentParams contains all the parameters to send to the API endpoint - for the add QAN my SQL slowlog agent operation. +/* +AddQANMySQLSlowlogAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add QAN my SQL slowlog agent operation. + + Typically these are written to a http.Request. */ type AddQANMySQLSlowlogAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go index 228112a07f..d0164fe1e0 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go @@ -50,7 +50,8 @@ func NewAddQANMySQLSlowlogAgentOK() *AddQANMySQLSlowlogAgentOK { return &AddQANMySQLSlowlogAgentOK{} } -/* AddQANMySQLSlowlogAgentOK describes a response with status code 200, with default header values. +/* +AddQANMySQLSlowlogAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddQANMySQLSlowlogAgentDefault(code int) *AddQANMySQLSlowlogAgentDefault } } -/* AddQANMySQLSlowlogAgentDefault describes a response with status code -1, with default header values. +/* +AddQANMySQLSlowlogAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddQANMySQLSlowlogAgentDefault) readResponse(response runtime.ClientRes return nil } -/*AddQANMySQLSlowlogAgentBody add QAN my SQL slowlog agent body +/* +AddQANMySQLSlowlogAgentBody add QAN my SQL slowlog agent body swagger:model AddQANMySQLSlowlogAgentBody */ type AddQANMySQLSlowlogAgentBody struct { @@ -261,7 +264,8 @@ func (o *AddQANMySQLSlowlogAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMySQLSlowlogAgentDefaultBody add QAN my SQL slowlog agent default body +/* +AddQANMySQLSlowlogAgentDefaultBody add QAN my SQL slowlog agent default body swagger:model AddQANMySQLSlowlogAgentDefaultBody */ type AddQANMySQLSlowlogAgentDefaultBody struct { @@ -364,7 +368,8 @@ func (o *AddQANMySQLSlowlogAgentDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 add QAN my SQL slowlog agent default body details items0 +/* +AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 add QAN my SQL slowlog agent default body details items0 swagger:model AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 */ type AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { @@ -400,7 +405,8 @@ func (o *AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []by return nil } -/*AddQANMySQLSlowlogAgentOKBody add QAN my SQL slowlog agent OK body +/* +AddQANMySQLSlowlogAgentOKBody add QAN my SQL slowlog agent OK body swagger:model AddQANMySQLSlowlogAgentOKBody */ type AddQANMySQLSlowlogAgentOKBody struct { @@ -488,7 +494,8 @@ func (o *AddQANMySQLSlowlogAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent */ type AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go index 2930a10dc8..be2ca5ab96 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go @@ -52,10 +52,12 @@ func NewAddQANPostgreSQLPgStatMonitorAgentParamsWithHTTPClient(client *http.Clie } } -/* AddQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to the API endpoint - for the add QAN postgre SQL pg stat monitor agent operation. +/* +AddQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add QAN postgre SQL pg stat monitor agent operation. + + Typically these are written to a http.Request. */ type AddQANPostgreSQLPgStatMonitorAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go index ce4115e409..6f8f6d40d6 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go @@ -50,7 +50,8 @@ func NewAddQANPostgreSQLPgStatMonitorAgentOK() *AddQANPostgreSQLPgStatMonitorAge return &AddQANPostgreSQLPgStatMonitorAgentOK{} } -/* AddQANPostgreSQLPgStatMonitorAgentOK describes a response with status code 200, with default header values. +/* +AddQANPostgreSQLPgStatMonitorAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddQANPostgreSQLPgStatMonitorAgentDefault(code int) *AddQANPostgreSQLPgS } } -/* AddQANPostgreSQLPgStatMonitorAgentDefault describes a response with status code -1, with default header values. +/* +AddQANPostgreSQLPgStatMonitorAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response runtim return nil } -/*AddQANPostgreSQLPgStatMonitorAgentBody add QAN postgre SQL pg stat monitor agent body +/* +AddQANPostgreSQLPgStatMonitorAgentBody add QAN postgre SQL pg stat monitor agent body swagger:model AddQANPostgreSQLPgStatMonitorAgentBody */ type AddQANPostgreSQLPgStatMonitorAgentBody struct { @@ -257,7 +260,8 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentBody) UnmarshalBinary(b []byte) error return nil } -/*AddQANPostgreSQLPgStatMonitorAgentDefaultBody add QAN postgre SQL pg stat monitor agent default body +/* +AddQANPostgreSQLPgStatMonitorAgentDefaultBody add QAN postgre SQL pg stat monitor agent default body swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBody */ type AddQANPostgreSQLPgStatMonitorAgentDefaultBody struct { @@ -360,7 +364,8 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) UnmarshalBinary(b []byte return nil } -/*AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg stat monitor agent default body details items0 +/* +AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg stat monitor agent default body details items0 swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 */ type AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { @@ -396,7 +401,8 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0) UnmarshalBi return nil } -/*AddQANPostgreSQLPgStatMonitorAgentOKBody add QAN postgre SQL pg stat monitor agent OK body +/* +AddQANPostgreSQLPgStatMonitorAgentOKBody add QAN postgre SQL pg stat monitor agent OK body swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBody */ type AddQANPostgreSQLPgStatMonitorAgentOKBody struct { @@ -484,7 +490,8 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) UnmarshalBinary(b []byte) err return nil } -/*AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go index a46c8ef0dd..6ed493954b 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go @@ -52,10 +52,12 @@ func NewAddQANPostgreSQLPgStatementsAgentParamsWithHTTPClient(client *http.Clien } } -/* AddQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to the API endpoint - for the add QAN postgre SQL pg statements agent operation. +/* +AddQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add QAN postgre SQL pg statements agent operation. + + Typically these are written to a http.Request. */ type AddQANPostgreSQLPgStatementsAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go index e01b8d48ab..9f3dd6e74a 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go @@ -50,7 +50,8 @@ func NewAddQANPostgreSQLPgStatementsAgentOK() *AddQANPostgreSQLPgStatementsAgent return &AddQANPostgreSQLPgStatementsAgentOK{} } -/* AddQANPostgreSQLPgStatementsAgentOK describes a response with status code 200, with default header values. +/* +AddQANPostgreSQLPgStatementsAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddQANPostgreSQLPgStatementsAgentDefault(code int) *AddQANPostgreSQLPgSt } } -/* AddQANPostgreSQLPgStatementsAgentDefault describes a response with status code -1, with default header values. +/* +AddQANPostgreSQLPgStatementsAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefault) readResponse(response runtime return nil } -/*AddQANPostgreSQLPgStatementsAgentBody add QAN postgre SQL pg statements agent body +/* +AddQANPostgreSQLPgStatementsAgentBody add QAN postgre SQL pg statements agent body swagger:model AddQANPostgreSQLPgStatementsAgentBody */ type AddQANPostgreSQLPgStatementsAgentBody struct { @@ -254,7 +257,8 @@ func (o *AddQANPostgreSQLPgStatementsAgentBody) UnmarshalBinary(b []byte) error return nil } -/*AddQANPostgreSQLPgStatementsAgentDefaultBody add QAN postgre SQL pg statements agent default body +/* +AddQANPostgreSQLPgStatementsAgentDefaultBody add QAN postgre SQL pg statements agent default body swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBody */ type AddQANPostgreSQLPgStatementsAgentDefaultBody struct { @@ -357,7 +361,8 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) UnmarshalBinary(b []byte) return nil } -/*AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg statements agent default body details items0 +/* +AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg statements agent default body details items0 swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 */ type AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { @@ -393,7 +398,8 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0) UnmarshalBin return nil } -/*AddQANPostgreSQLPgStatementsAgentOKBody add QAN postgre SQL pg statements agent OK body +/* +AddQANPostgreSQLPgStatementsAgentOKBody add QAN postgre SQL pg statements agent OK body swagger:model AddQANPostgreSQLPgStatementsAgentOKBody */ type AddQANPostgreSQLPgStatementsAgentOKBody struct { @@ -481,7 +487,8 @@ func (o *AddQANPostgreSQLPgStatementsAgentOKBody) UnmarshalBinary(b []byte) erro return nil } -/*AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent */ type AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { diff --git a/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go b/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go index c89b1cf7ed..f8cc041126 100644 --- a/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go @@ -52,10 +52,12 @@ func NewAddRDSExporterParamsWithHTTPClient(client *http.Client) *AddRDSExporterP } } -/* AddRDSExporterParams contains all the parameters to send to the API endpoint - for the add RDS exporter operation. +/* +AddRDSExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add RDS exporter operation. + + Typically these are written to a http.Request. */ type AddRDSExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/add_rds_exporter_responses.go b/api/inventorypb/json/client/agents/add_rds_exporter_responses.go index df6cebe63b..b1ca39b203 100644 --- a/api/inventorypb/json/client/agents/add_rds_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_rds_exporter_responses.go @@ -50,7 +50,8 @@ func NewAddRDSExporterOK() *AddRDSExporterOK { return &AddRDSExporterOK{} } -/* AddRDSExporterOK describes a response with status code 200, with default header values. +/* +AddRDSExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddRDSExporterDefault(code int) *AddRDSExporterDefault { } } -/* AddRDSExporterDefault describes a response with status code -1, with default header values. +/* +AddRDSExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddRDSExporterDefault) readResponse(response runtime.ClientResponse, co return nil } -/*AddRDSExporterBody add RDS exporter body +/* +AddRDSExporterBody add RDS exporter body swagger:model AddRDSExporterBody */ type AddRDSExporterBody struct { @@ -245,7 +248,8 @@ func (o *AddRDSExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSExporterDefaultBody add RDS exporter default body +/* +AddRDSExporterDefaultBody add RDS exporter default body swagger:model AddRDSExporterDefaultBody */ type AddRDSExporterDefaultBody struct { @@ -348,7 +352,8 @@ func (o *AddRDSExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSExporterDefaultBodyDetailsItems0 add RDS exporter default body details items0 +/* +AddRDSExporterDefaultBodyDetailsItems0 add RDS exporter default body details items0 swagger:model AddRDSExporterDefaultBodyDetailsItems0 */ type AddRDSExporterDefaultBodyDetailsItems0 struct { @@ -384,7 +389,8 @@ func (o *AddRDSExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*AddRDSExporterOKBody add RDS exporter OK body +/* +AddRDSExporterOKBody add RDS exporter OK body swagger:model AddRDSExporterOKBody */ type AddRDSExporterOKBody struct { @@ -472,7 +478,8 @@ func (o *AddRDSExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. +/* +AddRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. swagger:model AddRDSExporterOKBodyRDSExporter */ type AddRDSExporterOKBodyRDSExporter struct { diff --git a/api/inventorypb/json/client/agents/agents_client.go b/api/inventorypb/json/client/agents/agents_client.go index 69d36d5228..cf9c1119e2 100644 --- a/api/inventorypb/json/client/agents/agents_client.go +++ b/api/inventorypb/json/client/agents/agents_client.go @@ -94,9 +94,9 @@ type ClientService interface { } /* - AddAzureDatabaseExporter adds azure database exporter +AddAzureDatabaseExporter adds azure database exporter - Adds azure_database_exporter Agent. +Adds azure_database_exporter Agent. */ func (a *Client) AddAzureDatabaseExporter(params *AddAzureDatabaseExporterParams, opts ...ClientOption) (*AddAzureDatabaseExporterOK, error) { // TODO: Validate the params before sending @@ -133,9 +133,9 @@ func (a *Client) AddAzureDatabaseExporter(params *AddAzureDatabaseExporterParams } /* - AddExternalExporter adds external exporter +AddExternalExporter adds external exporter - Adds external_exporter Agent. +Adds external_exporter Agent. */ func (a *Client) AddExternalExporter(params *AddExternalExporterParams, opts ...ClientOption) (*AddExternalExporterOK, error) { // TODO: Validate the params before sending @@ -172,9 +172,9 @@ func (a *Client) AddExternalExporter(params *AddExternalExporterParams, opts ... } /* - AddMongoDBExporter adds mongo DB exporter +AddMongoDBExporter adds mongo DB exporter - Adds mongodb_exporter Agent. +Adds mongodb_exporter Agent. */ func (a *Client) AddMongoDBExporter(params *AddMongoDBExporterParams, opts ...ClientOption) (*AddMongoDBExporterOK, error) { // TODO: Validate the params before sending @@ -211,9 +211,9 @@ func (a *Client) AddMongoDBExporter(params *AddMongoDBExporterParams, opts ...Cl } /* - AddMySQLdExporter adds mysqld exporter +AddMySQLdExporter adds mysqld exporter - Adds mysqld_exporter Agent. +Adds mysqld_exporter Agent. */ func (a *Client) AddMySQLdExporter(params *AddMySQLdExporterParams, opts ...ClientOption) (*AddMySQLdExporterOK, error) { // TODO: Validate the params before sending @@ -250,9 +250,9 @@ func (a *Client) AddMySQLdExporter(params *AddMySQLdExporterParams, opts ...Clie } /* - AddNodeExporter adds node exporter +AddNodeExporter adds node exporter - Adds node_exporter Agent. +Adds node_exporter Agent. */ func (a *Client) AddNodeExporter(params *AddNodeExporterParams, opts ...ClientOption) (*AddNodeExporterOK, error) { // TODO: Validate the params before sending @@ -289,9 +289,9 @@ func (a *Client) AddNodeExporter(params *AddNodeExporterParams, opts ...ClientOp } /* - AddPMMAgent adds PMM agent +AddPMMAgent adds PMM agent - Adds PMM Agent. +Adds PMM Agent. */ func (a *Client) AddPMMAgent(params *AddPMMAgentParams, opts ...ClientOption) (*AddPMMAgentOK, error) { // TODO: Validate the params before sending @@ -328,9 +328,9 @@ func (a *Client) AddPMMAgent(params *AddPMMAgentParams, opts ...ClientOption) (* } /* - AddPostgresExporter adds postgres exporter +AddPostgresExporter adds postgres exporter - Adds postgres_exporter Agent. +Adds postgres_exporter Agent. */ func (a *Client) AddPostgresExporter(params *AddPostgresExporterParams, opts ...ClientOption) (*AddPostgresExporterOK, error) { // TODO: Validate the params before sending @@ -367,9 +367,9 @@ func (a *Client) AddPostgresExporter(params *AddPostgresExporterParams, opts ... } /* - AddProxySQLExporter adds proxy SQL exporter +AddProxySQLExporter adds proxy SQL exporter - Adds proxysql_exporter Agent. +Adds proxysql_exporter Agent. */ func (a *Client) AddProxySQLExporter(params *AddProxySQLExporterParams, opts ...ClientOption) (*AddProxySQLExporterOK, error) { // TODO: Validate the params before sending @@ -406,9 +406,9 @@ func (a *Client) AddProxySQLExporter(params *AddProxySQLExporterParams, opts ... } /* - AddQANMongoDBProfilerAgent adds QAN mongo DB profiler agent +AddQANMongoDBProfilerAgent adds QAN mongo DB profiler agent - Adds 'Query Analytics MongoDB Profiler' Agent. +Adds 'Query Analytics MongoDB Profiler' Agent. */ func (a *Client) AddQANMongoDBProfilerAgent(params *AddQANMongoDBProfilerAgentParams, opts ...ClientOption) (*AddQANMongoDBProfilerAgentOK, error) { // TODO: Validate the params before sending @@ -445,9 +445,9 @@ func (a *Client) AddQANMongoDBProfilerAgent(params *AddQANMongoDBProfilerAgentPa } /* - AddQANMySQLPerfSchemaAgent adds QAN my SQL perf schema agent +AddQANMySQLPerfSchemaAgent adds QAN my SQL perf schema agent - Adds 'Query Analytics MySQL PerfSchema' Agent. +Adds 'Query Analytics MySQL PerfSchema' Agent. */ func (a *Client) AddQANMySQLPerfSchemaAgent(params *AddQANMySQLPerfSchemaAgentParams, opts ...ClientOption) (*AddQANMySQLPerfSchemaAgentOK, error) { // TODO: Validate the params before sending @@ -484,9 +484,9 @@ func (a *Client) AddQANMySQLPerfSchemaAgent(params *AddQANMySQLPerfSchemaAgentPa } /* - AddQANMySQLSlowlogAgent adds QAN my SQL slowlog agent +AddQANMySQLSlowlogAgent adds QAN my SQL slowlog agent - Adds 'Query Analytics MySQL Slowlog' Agent. +Adds 'Query Analytics MySQL Slowlog' Agent. */ func (a *Client) AddQANMySQLSlowlogAgent(params *AddQANMySQLSlowlogAgentParams, opts ...ClientOption) (*AddQANMySQLSlowlogAgentOK, error) { // TODO: Validate the params before sending @@ -523,9 +523,9 @@ func (a *Client) AddQANMySQLSlowlogAgent(params *AddQANMySQLSlowlogAgentParams, } /* - AddQANPostgreSQLPgStatMonitorAgent adds QAN postgre SQL pg stat monitor agent +AddQANPostgreSQLPgStatMonitorAgent adds QAN postgre SQL pg stat monitor agent - Adds 'Query Analytics PostgreSQL pg_stat_monitor' Agent. +Adds 'Query Analytics PostgreSQL pg_stat_monitor' Agent. */ func (a *Client) AddQANPostgreSQLPgStatMonitorAgent(params *AddQANPostgreSQLPgStatMonitorAgentParams, opts ...ClientOption) (*AddQANPostgreSQLPgStatMonitorAgentOK, error) { // TODO: Validate the params before sending @@ -562,9 +562,9 @@ func (a *Client) AddQANPostgreSQLPgStatMonitorAgent(params *AddQANPostgreSQLPgSt } /* - AddQANPostgreSQLPgStatementsAgent adds QAN postgre SQL pg stat statements agent +AddQANPostgreSQLPgStatementsAgent adds QAN postgre SQL pg stat statements agent - Adds 'Query Analytics PostgreSQL pg_stat_statements' Agent. +Adds 'Query Analytics PostgreSQL pg_stat_statements' Agent. */ func (a *Client) AddQANPostgreSQLPgStatementsAgent(params *AddQANPostgreSQLPgStatementsAgentParams, opts ...ClientOption) (*AddQANPostgreSQLPgStatementsAgentOK, error) { // TODO: Validate the params before sending @@ -601,9 +601,9 @@ func (a *Client) AddQANPostgreSQLPgStatementsAgent(params *AddQANPostgreSQLPgSta } /* - AddRDSExporter adds RDS exporter +AddRDSExporter adds RDS exporter - Adds rds_exporter Agent. +Adds rds_exporter Agent. */ func (a *Client) AddRDSExporter(params *AddRDSExporterParams, opts ...ClientOption) (*AddRDSExporterOK, error) { // TODO: Validate the params before sending @@ -640,9 +640,9 @@ func (a *Client) AddRDSExporter(params *AddRDSExporterParams, opts ...ClientOpti } /* - ChangeAzureDatabaseExporter changes azure database exporter +ChangeAzureDatabaseExporter changes azure database exporter - Changes azure_database_exporter Agent. +Changes azure_database_exporter Agent. */ func (a *Client) ChangeAzureDatabaseExporter(params *ChangeAzureDatabaseExporterParams, opts ...ClientOption) (*ChangeAzureDatabaseExporterOK, error) { // TODO: Validate the params before sending @@ -679,9 +679,9 @@ func (a *Client) ChangeAzureDatabaseExporter(params *ChangeAzureDatabaseExporter } /* - ChangeExternalExporter changes external exporter +ChangeExternalExporter changes external exporter - Changes external_exporter Agent. +Changes external_exporter Agent. */ func (a *Client) ChangeExternalExporter(params *ChangeExternalExporterParams, opts ...ClientOption) (*ChangeExternalExporterOK, error) { // TODO: Validate the params before sending @@ -718,9 +718,9 @@ func (a *Client) ChangeExternalExporter(params *ChangeExternalExporterParams, op } /* - ChangeMongoDBExporter changes mongo DB exporter +ChangeMongoDBExporter changes mongo DB exporter - Changes mongodb_exporter Agent. +Changes mongodb_exporter Agent. */ func (a *Client) ChangeMongoDBExporter(params *ChangeMongoDBExporterParams, opts ...ClientOption) (*ChangeMongoDBExporterOK, error) { // TODO: Validate the params before sending @@ -757,9 +757,9 @@ func (a *Client) ChangeMongoDBExporter(params *ChangeMongoDBExporterParams, opts } /* - ChangeMySQLdExporter changes mysqld exporter +ChangeMySQLdExporter changes mysqld exporter - Changes mysqld_exporter Agent. +Changes mysqld_exporter Agent. */ func (a *Client) ChangeMySQLdExporter(params *ChangeMySQLdExporterParams, opts ...ClientOption) (*ChangeMySQLdExporterOK, error) { // TODO: Validate the params before sending @@ -796,9 +796,9 @@ func (a *Client) ChangeMySQLdExporter(params *ChangeMySQLdExporterParams, opts . } /* - ChangeNodeExporter changes node exporter +ChangeNodeExporter changes node exporter - Changes node_exporter Agent. +Changes node_exporter Agent. */ func (a *Client) ChangeNodeExporter(params *ChangeNodeExporterParams, opts ...ClientOption) (*ChangeNodeExporterOK, error) { // TODO: Validate the params before sending @@ -835,9 +835,9 @@ func (a *Client) ChangeNodeExporter(params *ChangeNodeExporterParams, opts ...Cl } /* - ChangePostgresExporter changes postgres exporter +ChangePostgresExporter changes postgres exporter - Changes postgres_exporter Agent. +Changes postgres_exporter Agent. */ func (a *Client) ChangePostgresExporter(params *ChangePostgresExporterParams, opts ...ClientOption) (*ChangePostgresExporterOK, error) { // TODO: Validate the params before sending @@ -874,9 +874,9 @@ func (a *Client) ChangePostgresExporter(params *ChangePostgresExporterParams, op } /* - ChangeProxySQLExporter changes proxy SQL exporter +ChangeProxySQLExporter changes proxy SQL exporter - Changes proxysql_exporter Agent. +Changes proxysql_exporter Agent. */ func (a *Client) ChangeProxySQLExporter(params *ChangeProxySQLExporterParams, opts ...ClientOption) (*ChangeProxySQLExporterOK, error) { // TODO: Validate the params before sending @@ -913,9 +913,9 @@ func (a *Client) ChangeProxySQLExporter(params *ChangeProxySQLExporterParams, op } /* - ChangeQANMongoDBProfilerAgent changes QAN mongo DB profiler agent +ChangeQANMongoDBProfilerAgent changes QAN mongo DB profiler agent - Changes 'Query Analytics MongoDB Profiler' Agent. +Changes 'Query Analytics MongoDB Profiler' Agent. */ func (a *Client) ChangeQANMongoDBProfilerAgent(params *ChangeQANMongoDBProfilerAgentParams, opts ...ClientOption) (*ChangeQANMongoDBProfilerAgentOK, error) { // TODO: Validate the params before sending @@ -952,9 +952,9 @@ func (a *Client) ChangeQANMongoDBProfilerAgent(params *ChangeQANMongoDBProfilerA } /* - ChangeQANMySQLPerfSchemaAgent changes QAN my SQL perf schema agent +ChangeQANMySQLPerfSchemaAgent changes QAN my SQL perf schema agent - Changes 'Query Analytics MySQL PerfSchema' Agent. +Changes 'Query Analytics MySQL PerfSchema' Agent. */ func (a *Client) ChangeQANMySQLPerfSchemaAgent(params *ChangeQANMySQLPerfSchemaAgentParams, opts ...ClientOption) (*ChangeQANMySQLPerfSchemaAgentOK, error) { // TODO: Validate the params before sending @@ -991,9 +991,9 @@ func (a *Client) ChangeQANMySQLPerfSchemaAgent(params *ChangeQANMySQLPerfSchemaA } /* - ChangeQANMySQLSlowlogAgent changes QAN my SQL slowlog agent +ChangeQANMySQLSlowlogAgent changes QAN my SQL slowlog agent - Changes 'Query Analytics MySQL Slowlog' Agent. +Changes 'Query Analytics MySQL Slowlog' Agent. */ func (a *Client) ChangeQANMySQLSlowlogAgent(params *ChangeQANMySQLSlowlogAgentParams, opts ...ClientOption) (*ChangeQANMySQLSlowlogAgentOK, error) { // TODO: Validate the params before sending @@ -1030,9 +1030,9 @@ func (a *Client) ChangeQANMySQLSlowlogAgent(params *ChangeQANMySQLSlowlogAgentPa } /* - ChangeQANPostgreSQLPgStatMonitorAgent changes QAN postgre SQL pg stat monitor agent +ChangeQANPostgreSQLPgStatMonitorAgent changes QAN postgre SQL pg stat monitor agent - Changes 'Query Analytics PostgreSQL pg_stat_monitor' Agent. +Changes 'Query Analytics PostgreSQL pg_stat_monitor' Agent. */ func (a *Client) ChangeQANPostgreSQLPgStatMonitorAgent(params *ChangeQANPostgreSQLPgStatMonitorAgentParams, opts ...ClientOption) (*ChangeQANPostgreSQLPgStatMonitorAgentOK, error) { // TODO: Validate the params before sending @@ -1069,9 +1069,9 @@ func (a *Client) ChangeQANPostgreSQLPgStatMonitorAgent(params *ChangeQANPostgreS } /* - ChangeQANPostgreSQLPgStatementsAgent changes QAN postgre SQL pg stat statements agent +ChangeQANPostgreSQLPgStatementsAgent changes QAN postgre SQL pg stat statements agent - Changes 'Query Analytics PostgreSQL pg_stat_statements' Agent. +Changes 'Query Analytics PostgreSQL pg_stat_statements' Agent. */ func (a *Client) ChangeQANPostgreSQLPgStatementsAgent(params *ChangeQANPostgreSQLPgStatementsAgentParams, opts ...ClientOption) (*ChangeQANPostgreSQLPgStatementsAgentOK, error) { // TODO: Validate the params before sending @@ -1108,9 +1108,9 @@ func (a *Client) ChangeQANPostgreSQLPgStatementsAgent(params *ChangeQANPostgreSQ } /* - ChangeRDSExporter changes RDS exporter +ChangeRDSExporter changes RDS exporter - Changes rds_exporter Agent. +Changes rds_exporter Agent. */ func (a *Client) ChangeRDSExporter(params *ChangeRDSExporterParams, opts ...ClientOption) (*ChangeRDSExporterOK, error) { // TODO: Validate the params before sending @@ -1147,9 +1147,9 @@ func (a *Client) ChangeRDSExporter(params *ChangeRDSExporterParams, opts ...Clie } /* - GetAgent gets agent +GetAgent gets agent - Returns a single Agent by ID. +Returns a single Agent by ID. */ func (a *Client) GetAgent(params *GetAgentParams, opts ...ClientOption) (*GetAgentOK, error) { // TODO: Validate the params before sending @@ -1186,9 +1186,9 @@ func (a *Client) GetAgent(params *GetAgentParams, opts ...ClientOption) (*GetAge } /* - GetAgentLogs gets agent logs +GetAgentLogs gets agent logs - Returns Agent logs by ID. +Returns Agent logs by ID. */ func (a *Client) GetAgentLogs(params *GetAgentLogsParams, opts ...ClientOption) (*GetAgentLogsOK, error) { // TODO: Validate the params before sending @@ -1225,9 +1225,9 @@ func (a *Client) GetAgentLogs(params *GetAgentLogsParams, opts ...ClientOption) } /* - ListAgents lists agents +ListAgents lists agents - Returns a list of all Agents. +Returns a list of all Agents. */ func (a *Client) ListAgents(params *ListAgentsParams, opts ...ClientOption) (*ListAgentsOK, error) { // TODO: Validate the params before sending @@ -1264,9 +1264,9 @@ func (a *Client) ListAgents(params *ListAgentsParams, opts ...ClientOption) (*Li } /* - RemoveAgent removes agent +RemoveAgent removes agent - Removes Agent. +Removes Agent. */ func (a *Client) RemoveAgent(params *RemoveAgentParams, opts ...ClientOption) (*RemoveAgentOK, error) { // TODO: Validate the params before sending diff --git a/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go b/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go index cc3e36310a..49727b75e6 100644 --- a/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeAzureDatabaseExporterParamsWithHTTPClient(client *http.Client) *Ch } } -/* ChangeAzureDatabaseExporterParams contains all the parameters to send to the API endpoint - for the change azure database exporter operation. +/* +ChangeAzureDatabaseExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change azure database exporter operation. + + Typically these are written to a http.Request. */ type ChangeAzureDatabaseExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go b/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go index 5262f886e2..c2ce3e1d82 100644 --- a/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangeAzureDatabaseExporterOK() *ChangeAzureDatabaseExporterOK { return &ChangeAzureDatabaseExporterOK{} } -/* ChangeAzureDatabaseExporterOK describes a response with status code 200, with default header values. +/* +ChangeAzureDatabaseExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeAzureDatabaseExporterDefault(code int) *ChangeAzureDatabaseExporte } } -/* ChangeAzureDatabaseExporterDefault describes a response with status code -1, with default header values. +/* +ChangeAzureDatabaseExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeAzureDatabaseExporterDefault) readResponse(response runtime.Clien return nil } -/*ChangeAzureDatabaseExporterBody change azure database exporter body +/* +ChangeAzureDatabaseExporterBody change azure database exporter body swagger:model ChangeAzureDatabaseExporterBody */ type ChangeAzureDatabaseExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangeAzureDatabaseExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeAzureDatabaseExporterDefaultBody change azure database exporter default body +/* +ChangeAzureDatabaseExporterDefaultBody change azure database exporter default body swagger:model ChangeAzureDatabaseExporterDefaultBody */ type ChangeAzureDatabaseExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeAzureDatabaseExporterDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 change azure database exporter default body details items0 +/* +ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 change azure database exporter default body details items0 swagger:model ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 */ type ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeAzureDatabaseExporterDefaultBodyDetailsItems0) UnmarshalBinary(b return nil } -/*ChangeAzureDatabaseExporterOKBody change azure database exporter OK body +/* +ChangeAzureDatabaseExporterOKBody change azure database exporter OK body swagger:model ChangeAzureDatabaseExporterOKBody */ type ChangeAzureDatabaseExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeAzureDatabaseExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. +/* +ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. swagger:model ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter */ type ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { @@ -638,7 +645,8 @@ func (o *ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter) UnmarshalBinary return nil } -/*ChangeAzureDatabaseExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeAzureDatabaseExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeAzureDatabaseExporterParamsBodyCommon */ type ChangeAzureDatabaseExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_external_exporter_parameters.go b/api/inventorypb/json/client/agents/change_external_exporter_parameters.go index 4ebb8623d4..96ed75e52e 100644 --- a/api/inventorypb/json/client/agents/change_external_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_external_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeExternalExporterParamsWithHTTPClient(client *http.Client) *ChangeE } } -/* ChangeExternalExporterParams contains all the parameters to send to the API endpoint - for the change external exporter operation. +/* +ChangeExternalExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change external exporter operation. + + Typically these are written to a http.Request. */ type ChangeExternalExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_external_exporter_responses.go b/api/inventorypb/json/client/agents/change_external_exporter_responses.go index aeb94a91f0..15dc5e5a58 100644 --- a/api/inventorypb/json/client/agents/change_external_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_external_exporter_responses.go @@ -48,7 +48,8 @@ func NewChangeExternalExporterOK() *ChangeExternalExporterOK { return &ChangeExternalExporterOK{} } -/* ChangeExternalExporterOK describes a response with status code 200, with default header values. +/* +ChangeExternalExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewChangeExternalExporterDefault(code int) *ChangeExternalExporterDefault { } } -/* ChangeExternalExporterDefault describes a response with status code -1, with default header values. +/* +ChangeExternalExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ChangeExternalExporterDefault) readResponse(response runtime.ClientResp return nil } -/*ChangeExternalExporterBody change external exporter body +/* +ChangeExternalExporterBody change external exporter body swagger:model ChangeExternalExporterBody */ type ChangeExternalExporterBody struct { @@ -207,7 +210,8 @@ func (o *ChangeExternalExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeExternalExporterDefaultBody change external exporter default body +/* +ChangeExternalExporterDefaultBody change external exporter default body swagger:model ChangeExternalExporterDefaultBody */ type ChangeExternalExporterDefaultBody struct { @@ -310,7 +314,8 @@ func (o *ChangeExternalExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeExternalExporterDefaultBodyDetailsItems0 change external exporter default body details items0 +/* +ChangeExternalExporterDefaultBodyDetailsItems0 change external exporter default body details items0 swagger:model ChangeExternalExporterDefaultBodyDetailsItems0 */ type ChangeExternalExporterDefaultBodyDetailsItems0 struct { @@ -346,7 +351,8 @@ func (o *ChangeExternalExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*ChangeExternalExporterOKBody change external exporter OK body +/* +ChangeExternalExporterOKBody change external exporter OK body swagger:model ChangeExternalExporterOKBody */ type ChangeExternalExporterOKBody struct { @@ -434,7 +440,8 @@ func (o *ChangeExternalExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. +/* +ChangeExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. swagger:model ChangeExternalExporterOKBodyExternalExporter */ type ChangeExternalExporterOKBodyExternalExporter struct { @@ -500,7 +507,8 @@ func (o *ChangeExternalExporterOKBodyExternalExporter) UnmarshalBinary(b []byte) return nil } -/*ChangeExternalExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeExternalExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeExternalExporterParamsBodyCommon */ type ChangeExternalExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go b/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go index a0a2ecd0e2..dfa26df26f 100644 --- a/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeMongoDBExporterParamsWithHTTPClient(client *http.Client) *ChangeMo } } -/* ChangeMongoDBExporterParams contains all the parameters to send to the API endpoint - for the change mongo DB exporter operation. +/* +ChangeMongoDBExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change mongo DB exporter operation. + + Typically these are written to a http.Request. */ type ChangeMongoDBExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go b/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go index 1c8d7c985f..3e9fd507dc 100644 --- a/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangeMongoDBExporterOK() *ChangeMongoDBExporterOK { return &ChangeMongoDBExporterOK{} } -/* ChangeMongoDBExporterOK describes a response with status code 200, with default header values. +/* +ChangeMongoDBExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeMongoDBExporterDefault(code int) *ChangeMongoDBExporterDefault { } } -/* ChangeMongoDBExporterDefault describes a response with status code -1, with default header values. +/* +ChangeMongoDBExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeMongoDBExporterDefault) readResponse(response runtime.ClientRespo return nil } -/*ChangeMongoDBExporterBody change mongo DB exporter body +/* +ChangeMongoDBExporterBody change mongo DB exporter body swagger:model ChangeMongoDBExporterBody */ type ChangeMongoDBExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangeMongoDBExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeMongoDBExporterDefaultBody change mongo DB exporter default body +/* +ChangeMongoDBExporterDefaultBody change mongo DB exporter default body swagger:model ChangeMongoDBExporterDefaultBody */ type ChangeMongoDBExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeMongoDBExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeMongoDBExporterDefaultBodyDetailsItems0 change mongo DB exporter default body details items0 +/* +ChangeMongoDBExporterDefaultBodyDetailsItems0 change mongo DB exporter default body details items0 swagger:model ChangeMongoDBExporterDefaultBodyDetailsItems0 */ type ChangeMongoDBExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeMongoDBExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte return nil } -/*ChangeMongoDBExporterOKBody change mongo DB exporter OK body +/* +ChangeMongoDBExporterOKBody change mongo DB exporter OK body swagger:model ChangeMongoDBExporterOKBody */ type ChangeMongoDBExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeMongoDBExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. +/* +ChangeMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. swagger:model ChangeMongoDBExporterOKBodyMongodbExporter */ type ChangeMongoDBExporterOKBodyMongodbExporter struct { @@ -654,7 +661,8 @@ func (o *ChangeMongoDBExporterOKBodyMongodbExporter) UnmarshalBinary(b []byte) e return nil } -/*ChangeMongoDBExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeMongoDBExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeMongoDBExporterParamsBodyCommon */ type ChangeMongoDBExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go index 6f44ea785b..c1662cbe59 100644 --- a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeMySQLdExporterParamsWithHTTPClient(client *http.Client) *ChangeMyS } } -/* ChangeMySQLdExporterParams contains all the parameters to send to the API endpoint - for the change my s q ld exporter operation. +/* +ChangeMySQLdExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change my s q ld exporter operation. + + Typically these are written to a http.Request. */ type ChangeMySQLdExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go index cfcb348b26..5cd35eec21 100644 --- a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangeMySQLdExporterOK() *ChangeMySQLdExporterOK { return &ChangeMySQLdExporterOK{} } -/* ChangeMySQLdExporterOK describes a response with status code 200, with default header values. +/* +ChangeMySQLdExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeMySQLdExporterDefault(code int) *ChangeMySQLdExporterDefault { } } -/* ChangeMySQLdExporterDefault describes a response with status code -1, with default header values. +/* +ChangeMySQLdExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeMySQLdExporterDefault) readResponse(response runtime.ClientRespon return nil } -/*ChangeMySQLdExporterBody change my s q ld exporter body +/* +ChangeMySQLdExporterBody change my s q ld exporter body swagger:model ChangeMySQLdExporterBody */ type ChangeMySQLdExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangeMySQLdExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeMySQLdExporterDefaultBody change my s q ld exporter default body +/* +ChangeMySQLdExporterDefaultBody change my s q ld exporter default body swagger:model ChangeMySQLdExporterDefaultBody */ type ChangeMySQLdExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeMySQLdExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeMySQLdExporterDefaultBodyDetailsItems0 change my s q ld exporter default body details items0 +/* +ChangeMySQLdExporterDefaultBodyDetailsItems0 change my s q ld exporter default body details items0 swagger:model ChangeMySQLdExporterDefaultBodyDetailsItems0 */ type ChangeMySQLdExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeMySQLdExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*ChangeMySQLdExporterOKBody change my s q ld exporter OK body +/* +ChangeMySQLdExporterOKBody change my s q ld exporter OK body swagger:model ChangeMySQLdExporterOKBody */ type ChangeMySQLdExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeMySQLdExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +/* +ChangeMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model ChangeMySQLdExporterOKBodyMysqldExporter */ type ChangeMySQLdExporterOKBodyMysqldExporter struct { @@ -661,7 +668,8 @@ func (o *ChangeMySQLdExporterOKBodyMysqldExporter) UnmarshalBinary(b []byte) err return nil } -/*ChangeMySQLdExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeMySQLdExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeMySQLdExporterParamsBodyCommon */ type ChangeMySQLdExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_node_exporter_parameters.go b/api/inventorypb/json/client/agents/change_node_exporter_parameters.go index e997593536..0006c8d16f 100644 --- a/api/inventorypb/json/client/agents/change_node_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_node_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeNodeExporterParamsWithHTTPClient(client *http.Client) *ChangeNodeE } } -/* ChangeNodeExporterParams contains all the parameters to send to the API endpoint - for the change node exporter operation. +/* +ChangeNodeExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change node exporter operation. + + Typically these are written to a http.Request. */ type ChangeNodeExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_node_exporter_responses.go b/api/inventorypb/json/client/agents/change_node_exporter_responses.go index b8d24eb36a..ce55280d3f 100644 --- a/api/inventorypb/json/client/agents/change_node_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_node_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangeNodeExporterOK() *ChangeNodeExporterOK { return &ChangeNodeExporterOK{} } -/* ChangeNodeExporterOK describes a response with status code 200, with default header values. +/* +ChangeNodeExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeNodeExporterDefault(code int) *ChangeNodeExporterDefault { } } -/* ChangeNodeExporterDefault describes a response with status code -1, with default header values. +/* +ChangeNodeExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeNodeExporterDefault) readResponse(response runtime.ClientResponse return nil } -/*ChangeNodeExporterBody change node exporter body +/* +ChangeNodeExporterBody change node exporter body swagger:model ChangeNodeExporterBody */ type ChangeNodeExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangeNodeExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeNodeExporterDefaultBody change node exporter default body +/* +ChangeNodeExporterDefaultBody change node exporter default body swagger:model ChangeNodeExporterDefaultBody */ type ChangeNodeExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeNodeExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeNodeExporterDefaultBodyDetailsItems0 change node exporter default body details items0 +/* +ChangeNodeExporterDefaultBodyDetailsItems0 change node exporter default body details items0 swagger:model ChangeNodeExporterDefaultBodyDetailsItems0 */ type ChangeNodeExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeNodeExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*ChangeNodeExporterOKBody change node exporter OK body +/* +ChangeNodeExporterOKBody change node exporter OK body swagger:model ChangeNodeExporterOKBody */ type ChangeNodeExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeNodeExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. +/* +ChangeNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. swagger:model ChangeNodeExporterOKBodyNodeExporter */ type ChangeNodeExporterOKBodyNodeExporter struct { @@ -632,7 +639,8 @@ func (o *ChangeNodeExporterOKBodyNodeExporter) UnmarshalBinary(b []byte) error { return nil } -/*ChangeNodeExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeNodeExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeNodeExporterParamsBodyCommon */ type ChangeNodeExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go b/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go index 6f6442724a..b6a0e657ec 100644 --- a/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangePostgresExporterParamsWithHTTPClient(client *http.Client) *ChangeP } } -/* ChangePostgresExporterParams contains all the parameters to send to the API endpoint - for the change postgres exporter operation. +/* +ChangePostgresExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change postgres exporter operation. + + Typically these are written to a http.Request. */ type ChangePostgresExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go b/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go index b57aef9f38..f0bcb24ab9 100644 --- a/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangePostgresExporterOK() *ChangePostgresExporterOK { return &ChangePostgresExporterOK{} } -/* ChangePostgresExporterOK describes a response with status code 200, with default header values. +/* +ChangePostgresExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangePostgresExporterDefault(code int) *ChangePostgresExporterDefault { } } -/* ChangePostgresExporterDefault describes a response with status code -1, with default header values. +/* +ChangePostgresExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangePostgresExporterDefault) readResponse(response runtime.ClientResp return nil } -/*ChangePostgresExporterBody change postgres exporter body +/* +ChangePostgresExporterBody change postgres exporter body swagger:model ChangePostgresExporterBody */ type ChangePostgresExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangePostgresExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePostgresExporterDefaultBody change postgres exporter default body +/* +ChangePostgresExporterDefaultBody change postgres exporter default body swagger:model ChangePostgresExporterDefaultBody */ type ChangePostgresExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangePostgresExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePostgresExporterDefaultBodyDetailsItems0 change postgres exporter default body details items0 +/* +ChangePostgresExporterDefaultBodyDetailsItems0 change postgres exporter default body details items0 swagger:model ChangePostgresExporterDefaultBodyDetailsItems0 */ type ChangePostgresExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangePostgresExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*ChangePostgresExporterOKBody change postgres exporter OK body +/* +ChangePostgresExporterOKBody change postgres exporter OK body swagger:model ChangePostgresExporterOKBody */ type ChangePostgresExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangePostgresExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +/* +ChangePostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model ChangePostgresExporterOKBodyPostgresExporter */ type ChangePostgresExporterOKBodyPostgresExporter struct { @@ -644,7 +651,8 @@ func (o *ChangePostgresExporterOKBodyPostgresExporter) UnmarshalBinary(b []byte) return nil } -/*ChangePostgresExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangePostgresExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangePostgresExporterParamsBodyCommon */ type ChangePostgresExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go index 915276a80f..672412700e 100644 --- a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeProxySQLExporterParamsWithHTTPClient(client *http.Client) *ChangeP } } -/* ChangeProxySQLExporterParams contains all the parameters to send to the API endpoint - for the change proxy SQL exporter operation. +/* +ChangeProxySQLExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change proxy SQL exporter operation. + + Typically these are written to a http.Request. */ type ChangeProxySQLExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go index 027ce67106..5aa9e41d5c 100644 --- a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangeProxySQLExporterOK() *ChangeProxySQLExporterOK { return &ChangeProxySQLExporterOK{} } -/* ChangeProxySQLExporterOK describes a response with status code 200, with default header values. +/* +ChangeProxySQLExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeProxySQLExporterDefault(code int) *ChangeProxySQLExporterDefault { } } -/* ChangeProxySQLExporterDefault describes a response with status code -1, with default header values. +/* +ChangeProxySQLExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeProxySQLExporterDefault) readResponse(response runtime.ClientResp return nil } -/*ChangeProxySQLExporterBody change proxy SQL exporter body +/* +ChangeProxySQLExporterBody change proxy SQL exporter body swagger:model ChangeProxySQLExporterBody */ type ChangeProxySQLExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangeProxySQLExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeProxySQLExporterDefaultBody change proxy SQL exporter default body +/* +ChangeProxySQLExporterDefaultBody change proxy SQL exporter default body swagger:model ChangeProxySQLExporterDefaultBody */ type ChangeProxySQLExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeProxySQLExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeProxySQLExporterDefaultBodyDetailsItems0 change proxy SQL exporter default body details items0 +/* +ChangeProxySQLExporterDefaultBodyDetailsItems0 change proxy SQL exporter default body details items0 swagger:model ChangeProxySQLExporterDefaultBodyDetailsItems0 */ type ChangeProxySQLExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeProxySQLExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*ChangeProxySQLExporterOKBody change proxy SQL exporter OK body +/* +ChangeProxySQLExporterOKBody change proxy SQL exporter OK body swagger:model ChangeProxySQLExporterOKBody */ type ChangeProxySQLExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeProxySQLExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. +/* +ChangeProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. swagger:model ChangeProxySQLExporterOKBodyProxysqlExporter */ type ChangeProxySQLExporterOKBodyProxysqlExporter struct { @@ -644,7 +651,8 @@ func (o *ChangeProxySQLExporterOKBodyProxysqlExporter) UnmarshalBinary(b []byte) return nil } -/*ChangeProxySQLExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeProxySQLExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeProxySQLExporterParamsBodyCommon */ type ChangeProxySQLExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go index fd5b008cbe..474f009ca3 100644 --- a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go @@ -52,10 +52,12 @@ func NewChangeQANMongoDBProfilerAgentParamsWithHTTPClient(client *http.Client) * } } -/* ChangeQANMongoDBProfilerAgentParams contains all the parameters to send to the API endpoint - for the change QAN mongo DB profiler agent operation. +/* +ChangeQANMongoDBProfilerAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change QAN mongo DB profiler agent operation. + + Typically these are written to a http.Request. */ type ChangeQANMongoDBProfilerAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go index d0cee6882d..99ed7e54f3 100644 --- a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go @@ -50,7 +50,8 @@ func NewChangeQANMongoDBProfilerAgentOK() *ChangeQANMongoDBProfilerAgentOK { return &ChangeQANMongoDBProfilerAgentOK{} } -/* ChangeQANMongoDBProfilerAgentOK describes a response with status code 200, with default header values. +/* +ChangeQANMongoDBProfilerAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeQANMongoDBProfilerAgentDefault(code int) *ChangeQANMongoDBProfiler } } -/* ChangeQANMongoDBProfilerAgentDefault describes a response with status code -1, with default header values. +/* +ChangeQANMongoDBProfilerAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeQANMongoDBProfilerAgentDefault) readResponse(response runtime.Cli return nil } -/*ChangeQANMongoDBProfilerAgentBody change QAN mongo DB profiler agent body +/* +ChangeQANMongoDBProfilerAgentBody change QAN mongo DB profiler agent body swagger:model ChangeQANMongoDBProfilerAgentBody */ type ChangeQANMongoDBProfilerAgentBody struct { @@ -209,7 +212,8 @@ func (o *ChangeQANMongoDBProfilerAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeQANMongoDBProfilerAgentDefaultBody change QAN mongo DB profiler agent default body +/* +ChangeQANMongoDBProfilerAgentDefaultBody change QAN mongo DB profiler agent default body swagger:model ChangeQANMongoDBProfilerAgentDefaultBody */ type ChangeQANMongoDBProfilerAgentDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeQANMongoDBProfilerAgentDefaultBody) UnmarshalBinary(b []byte) err return nil } -/*ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 change QAN mongo DB profiler agent default body details items0 +/* +ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 change QAN mongo DB profiler agent default body details items0 swagger:model ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 */ type ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0) UnmarshalBinary( return nil } -/*ChangeQANMongoDBProfilerAgentOKBody change QAN mongo DB profiler agent OK body +/* +ChangeQANMongoDBProfilerAgentOKBody change QAN mongo DB profiler agent OK body swagger:model ChangeQANMongoDBProfilerAgentOKBody */ type ChangeQANMongoDBProfilerAgentOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeQANMongoDBProfilerAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. +/* +ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. swagger:model ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent */ type ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { @@ -635,7 +642,8 @@ func (o *ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent) UnmarshalBi return nil } -/*ChangeQANMongoDBProfilerAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeQANMongoDBProfilerAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeQANMongoDBProfilerAgentParamsBodyCommon */ type ChangeQANMongoDBProfilerAgentParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go index af7b26e449..c5c7f64dc9 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go @@ -52,10 +52,12 @@ func NewChangeQANMySQLPerfSchemaAgentParamsWithHTTPClient(client *http.Client) * } } -/* ChangeQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API endpoint - for the change QAN my SQL perf schema agent operation. +/* +ChangeQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change QAN my SQL perf schema agent operation. + + Typically these are written to a http.Request. */ type ChangeQANMySQLPerfSchemaAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go index 064b2aea61..6ba7c53a42 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go @@ -50,7 +50,8 @@ func NewChangeQANMySQLPerfSchemaAgentOK() *ChangeQANMySQLPerfSchemaAgentOK { return &ChangeQANMySQLPerfSchemaAgentOK{} } -/* ChangeQANMySQLPerfSchemaAgentOK describes a response with status code 200, with default header values. +/* +ChangeQANMySQLPerfSchemaAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeQANMySQLPerfSchemaAgentDefault(code int) *ChangeQANMySQLPerfSchema } } -/* ChangeQANMySQLPerfSchemaAgentDefault describes a response with status code -1, with default header values. +/* +ChangeQANMySQLPerfSchemaAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.Cli return nil } -/*ChangeQANMySQLPerfSchemaAgentBody change QAN my SQL perf schema agent body +/* +ChangeQANMySQLPerfSchemaAgentBody change QAN my SQL perf schema agent body swagger:model ChangeQANMySQLPerfSchemaAgentBody */ type ChangeQANMySQLPerfSchemaAgentBody struct { @@ -209,7 +212,8 @@ func (o *ChangeQANMySQLPerfSchemaAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeQANMySQLPerfSchemaAgentDefaultBody change QAN my SQL perf schema agent default body +/* +ChangeQANMySQLPerfSchemaAgentDefaultBody change QAN my SQL perf schema agent default body swagger:model ChangeQANMySQLPerfSchemaAgentDefaultBody */ type ChangeQANMySQLPerfSchemaAgentDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) UnmarshalBinary(b []byte) err return nil } -/*ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 change QAN my SQL perf schema agent default body details items0 +/* +ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 change QAN my SQL perf schema agent default body details items0 swagger:model ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 */ type ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0) UnmarshalBinary( return nil } -/*ChangeQANMySQLPerfSchemaAgentOKBody change QAN my SQL perf schema agent OK body +/* +ChangeQANMySQLPerfSchemaAgentOKBody change QAN my SQL perf schema agent OK body swagger:model ChangeQANMySQLPerfSchemaAgentOKBody */ type ChangeQANMySQLPerfSchemaAgentOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeQANMySQLPerfSchemaAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent */ type ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { @@ -650,7 +657,8 @@ func (o *ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent) UnmarshalBi return nil } -/*ChangeQANMySQLPerfSchemaAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeQANMySQLPerfSchemaAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeQANMySQLPerfSchemaAgentParamsBodyCommon */ type ChangeQANMySQLPerfSchemaAgentParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go index 29939a03a0..dbbe017f33 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go @@ -52,10 +52,12 @@ func NewChangeQANMySQLSlowlogAgentParamsWithHTTPClient(client *http.Client) *Cha } } -/* ChangeQANMySQLSlowlogAgentParams contains all the parameters to send to the API endpoint - for the change QAN my SQL slowlog agent operation. +/* +ChangeQANMySQLSlowlogAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change QAN my SQL slowlog agent operation. + + Typically these are written to a http.Request. */ type ChangeQANMySQLSlowlogAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go index 1e317dfd32..7ba38d2d40 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go @@ -50,7 +50,8 @@ func NewChangeQANMySQLSlowlogAgentOK() *ChangeQANMySQLSlowlogAgentOK { return &ChangeQANMySQLSlowlogAgentOK{} } -/* ChangeQANMySQLSlowlogAgentOK describes a response with status code 200, with default header values. +/* +ChangeQANMySQLSlowlogAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeQANMySQLSlowlogAgentDefault(code int) *ChangeQANMySQLSlowlogAgentD } } -/* ChangeQANMySQLSlowlogAgentDefault describes a response with status code -1, with default header values. +/* +ChangeQANMySQLSlowlogAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeQANMySQLSlowlogAgentDefault) readResponse(response runtime.Client return nil } -/*ChangeQANMySQLSlowlogAgentBody change QAN my SQL slowlog agent body +/* +ChangeQANMySQLSlowlogAgentBody change QAN my SQL slowlog agent body swagger:model ChangeQANMySQLSlowlogAgentBody */ type ChangeQANMySQLSlowlogAgentBody struct { @@ -209,7 +212,8 @@ func (o *ChangeQANMySQLSlowlogAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeQANMySQLSlowlogAgentDefaultBody change QAN my SQL slowlog agent default body +/* +ChangeQANMySQLSlowlogAgentDefaultBody change QAN my SQL slowlog agent default body swagger:model ChangeQANMySQLSlowlogAgentDefaultBody */ type ChangeQANMySQLSlowlogAgentDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeQANMySQLSlowlogAgentDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 change QAN my SQL slowlog agent default body details items0 +/* +ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 change QAN my SQL slowlog agent default body details items0 swagger:model ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 */ type ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0) UnmarshalBinary(b [ return nil } -/*ChangeQANMySQLSlowlogAgentOKBody change QAN my SQL slowlog agent OK body +/* +ChangeQANMySQLSlowlogAgentOKBody change QAN my SQL slowlog agent OK body swagger:model ChangeQANMySQLSlowlogAgentOKBody */ type ChangeQANMySQLSlowlogAgentOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeQANMySQLSlowlogAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent */ type ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { @@ -653,7 +660,8 @@ func (o *ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent) UnmarshalBinary(b return nil } -/*ChangeQANMySQLSlowlogAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeQANMySQLSlowlogAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeQANMySQLSlowlogAgentParamsBodyCommon */ type ChangeQANMySQLSlowlogAgentParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go index 93bd3b2697..b68464b06e 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go @@ -52,10 +52,12 @@ func NewChangeQANPostgreSQLPgStatMonitorAgentParamsWithHTTPClient(client *http.C } } -/* ChangeQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to the API endpoint - for the change QAN postgre SQL pg stat monitor agent operation. +/* +ChangeQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change QAN postgre SQL pg stat monitor agent operation. + + Typically these are written to a http.Request. */ type ChangeQANPostgreSQLPgStatMonitorAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go index 991c333d27..65408d237e 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go @@ -50,7 +50,8 @@ func NewChangeQANPostgreSQLPgStatMonitorAgentOK() *ChangeQANPostgreSQLPgStatMoni return &ChangeQANPostgreSQLPgStatMonitorAgentOK{} } -/* ChangeQANPostgreSQLPgStatMonitorAgentOK describes a response with status code 200, with default header values. +/* +ChangeQANPostgreSQLPgStatMonitorAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeQANPostgreSQLPgStatMonitorAgentDefault(code int) *ChangeQANPostgre } } -/* ChangeQANPostgreSQLPgStatMonitorAgentDefault describes a response with status code -1, with default header values. +/* +ChangeQANPostgreSQLPgStatMonitorAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response run return nil } -/*ChangeQANPostgreSQLPgStatMonitorAgentBody change QAN postgre SQL pg stat monitor agent body +/* +ChangeQANPostgreSQLPgStatMonitorAgentBody change QAN postgre SQL pg stat monitor agent body swagger:model ChangeQANPostgreSQLPgStatMonitorAgentBody */ type ChangeQANPostgreSQLPgStatMonitorAgentBody struct { @@ -209,7 +212,8 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentBody) UnmarshalBinary(b []byte) er return nil } -/*ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody change QAN postgre SQL pg stat monitor agent default body +/* +ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody change QAN postgre SQL pg stat monitor agent default body swagger:model ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody */ type ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) UnmarshalBinary(b []b return nil } -/*ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 change QAN postgre SQL pg stat monitor agent default body details items0 +/* +ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 change QAN postgre SQL pg stat monitor agent default body details items0 swagger:model ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 */ type ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0) Unmarsha return nil } -/*ChangeQANPostgreSQLPgStatMonitorAgentOKBody change QAN postgre SQL pg stat monitor agent OK body +/* +ChangeQANPostgreSQLPgStatMonitorAgentOKBody change QAN postgre SQL pg stat monitor agent OK body swagger:model ChangeQANPostgreSQLPgStatMonitorAgentOKBody */ type ChangeQANPostgreSQLPgStatMonitorAgentOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentOKBody) UnmarshalBinary(b []byte) return nil } -/*ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { @@ -641,7 +648,8 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAg return nil } -/*ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon */ type ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go index 039143278e..e298289e91 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go @@ -52,10 +52,12 @@ func NewChangeQANPostgreSQLPgStatementsAgentParamsWithHTTPClient(client *http.Cl } } -/* ChangeQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to the API endpoint - for the change QAN postgre SQL pg statements agent operation. +/* +ChangeQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change QAN postgre SQL pg statements agent operation. + + Typically these are written to a http.Request. */ type ChangeQANPostgreSQLPgStatementsAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go index 50c5570b0b..8598081f6b 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go @@ -50,7 +50,8 @@ func NewChangeQANPostgreSQLPgStatementsAgentOK() *ChangeQANPostgreSQLPgStatement return &ChangeQANPostgreSQLPgStatementsAgentOK{} } -/* ChangeQANPostgreSQLPgStatementsAgentOK describes a response with status code 200, with default header values. +/* +ChangeQANPostgreSQLPgStatementsAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeQANPostgreSQLPgStatementsAgentDefault(code int) *ChangeQANPostgreS } } -/* ChangeQANPostgreSQLPgStatementsAgentDefault describes a response with status code -1, with default header values. +/* +ChangeQANPostgreSQLPgStatementsAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) readResponse(response runt return nil } -/*ChangeQANPostgreSQLPgStatementsAgentBody change QAN postgre SQL pg statements agent body +/* +ChangeQANPostgreSQLPgStatementsAgentBody change QAN postgre SQL pg statements agent body swagger:model ChangeQANPostgreSQLPgStatementsAgentBody */ type ChangeQANPostgreSQLPgStatementsAgentBody struct { @@ -209,7 +212,8 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentBody) UnmarshalBinary(b []byte) err return nil } -/*ChangeQANPostgreSQLPgStatementsAgentDefaultBody change QAN postgre SQL pg statements agent default body +/* +ChangeQANPostgreSQLPgStatementsAgentDefaultBody change QAN postgre SQL pg statements agent default body swagger:model ChangeQANPostgreSQLPgStatementsAgentDefaultBody */ type ChangeQANPostgreSQLPgStatementsAgentDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) UnmarshalBinary(b []by return nil } -/*ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 change QAN postgre SQL pg statements agent default body details items0 +/* +ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 change QAN postgre SQL pg statements agent default body details items0 swagger:model ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 */ type ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0) Unmarshal return nil } -/*ChangeQANPostgreSQLPgStatementsAgentOKBody change QAN postgre SQL pg statements agent OK body +/* +ChangeQANPostgreSQLPgStatementsAgentOKBody change QAN postgre SQL pg statements agent OK body swagger:model ChangeQANPostgreSQLPgStatementsAgentOKBody */ type ChangeQANPostgreSQLPgStatementsAgentOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentOKBody) UnmarshalBinary(b []byte) e return nil } -/*ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent */ type ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { @@ -638,7 +645,8 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgen return nil } -/*ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon */ type ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go b/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go index 3e7a9d098d..a4c20a2fae 100644 --- a/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go @@ -52,10 +52,12 @@ func NewChangeRDSExporterParamsWithHTTPClient(client *http.Client) *ChangeRDSExp } } -/* ChangeRDSExporterParams contains all the parameters to send to the API endpoint - for the change RDS exporter operation. +/* +ChangeRDSExporterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change RDS exporter operation. + + Typically these are written to a http.Request. */ type ChangeRDSExporterParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/change_rds_exporter_responses.go b/api/inventorypb/json/client/agents/change_rds_exporter_responses.go index 76b74c8162..53eb141dd9 100644 --- a/api/inventorypb/json/client/agents/change_rds_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_rds_exporter_responses.go @@ -50,7 +50,8 @@ func NewChangeRDSExporterOK() *ChangeRDSExporterOK { return &ChangeRDSExporterOK{} } -/* ChangeRDSExporterOK describes a response with status code 200, with default header values. +/* +ChangeRDSExporterOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewChangeRDSExporterDefault(code int) *ChangeRDSExporterDefault { } } -/* ChangeRDSExporterDefault describes a response with status code -1, with default header values. +/* +ChangeRDSExporterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ChangeRDSExporterDefault) readResponse(response runtime.ClientResponse, return nil } -/*ChangeRDSExporterBody change RDS exporter body +/* +ChangeRDSExporterBody change RDS exporter body swagger:model ChangeRDSExporterBody */ type ChangeRDSExporterBody struct { @@ -209,7 +212,8 @@ func (o *ChangeRDSExporterBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeRDSExporterDefaultBody change RDS exporter default body +/* +ChangeRDSExporterDefaultBody change RDS exporter default body swagger:model ChangeRDSExporterDefaultBody */ type ChangeRDSExporterDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ChangeRDSExporterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeRDSExporterDefaultBodyDetailsItems0 change RDS exporter default body details items0 +/* +ChangeRDSExporterDefaultBodyDetailsItems0 change RDS exporter default body details items0 swagger:model ChangeRDSExporterDefaultBodyDetailsItems0 */ type ChangeRDSExporterDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ChangeRDSExporterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) er return nil } -/*ChangeRDSExporterOKBody change RDS exporter OK body +/* +ChangeRDSExporterOKBody change RDS exporter OK body swagger:model ChangeRDSExporterOKBody */ type ChangeRDSExporterOKBody struct { @@ -436,7 +442,8 @@ func (o *ChangeRDSExporterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. +/* +ChangeRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. swagger:model ChangeRDSExporterOKBodyRDSExporter */ type ChangeRDSExporterOKBodyRDSExporter struct { @@ -641,7 +648,8 @@ func (o *ChangeRDSExporterOKBodyRDSExporter) UnmarshalBinary(b []byte) error { return nil } -/*ChangeRDSExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. +/* +ChangeRDSExporterParamsBodyCommon ChangeCommonAgentParams contains parameters that can be changed for all Agents. swagger:model ChangeRDSExporterParamsBodyCommon */ type ChangeRDSExporterParamsBodyCommon struct { diff --git a/api/inventorypb/json/client/agents/get_agent_logs_parameters.go b/api/inventorypb/json/client/agents/get_agent_logs_parameters.go index 26287af83c..78082ad59f 100644 --- a/api/inventorypb/json/client/agents/get_agent_logs_parameters.go +++ b/api/inventorypb/json/client/agents/get_agent_logs_parameters.go @@ -52,10 +52,12 @@ func NewGetAgentLogsParamsWithHTTPClient(client *http.Client) *GetAgentLogsParam } } -/* GetAgentLogsParams contains all the parameters to send to the API endpoint - for the get agent logs operation. +/* +GetAgentLogsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get agent logs operation. + + Typically these are written to a http.Request. */ type GetAgentLogsParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/get_agent_logs_responses.go b/api/inventorypb/json/client/agents/get_agent_logs_responses.go index 66a8968c40..71c2f38be2 100644 --- a/api/inventorypb/json/client/agents/get_agent_logs_responses.go +++ b/api/inventorypb/json/client/agents/get_agent_logs_responses.go @@ -48,7 +48,8 @@ func NewGetAgentLogsOK() *GetAgentLogsOK { return &GetAgentLogsOK{} } -/* GetAgentLogsOK describes a response with status code 200, with default header values. +/* +GetAgentLogsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetAgentLogsDefault(code int) *GetAgentLogsDefault { } } -/* GetAgentLogsDefault describes a response with status code -1, with default header values. +/* +GetAgentLogsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetAgentLogsDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*GetAgentLogsBody get agent logs body +/* +GetAgentLogsBody get agent logs body swagger:model GetAgentLogsBody */ type GetAgentLogsBody struct { @@ -155,7 +158,8 @@ func (o *GetAgentLogsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentLogsDefaultBody get agent logs default body +/* +GetAgentLogsDefaultBody get agent logs default body swagger:model GetAgentLogsDefaultBody */ type GetAgentLogsDefaultBody struct { @@ -258,7 +262,8 @@ func (o *GetAgentLogsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentLogsDefaultBodyDetailsItems0 get agent logs default body details items0 +/* +GetAgentLogsDefaultBodyDetailsItems0 get agent logs default body details items0 swagger:model GetAgentLogsDefaultBodyDetailsItems0 */ type GetAgentLogsDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *GetAgentLogsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentLogsOKBody get agent logs OK body +/* +GetAgentLogsOKBody get agent logs OK body swagger:model GetAgentLogsOKBody */ type GetAgentLogsOKBody struct { diff --git a/api/inventorypb/json/client/agents/get_agent_parameters.go b/api/inventorypb/json/client/agents/get_agent_parameters.go index b7d3386f1e..f546eed4ef 100644 --- a/api/inventorypb/json/client/agents/get_agent_parameters.go +++ b/api/inventorypb/json/client/agents/get_agent_parameters.go @@ -52,10 +52,12 @@ func NewGetAgentParamsWithHTTPClient(client *http.Client) *GetAgentParams { } } -/* GetAgentParams contains all the parameters to send to the API endpoint - for the get agent operation. +/* +GetAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get agent operation. + + Typically these are written to a http.Request. */ type GetAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/get_agent_responses.go b/api/inventorypb/json/client/agents/get_agent_responses.go index f6787926c8..d14219d731 100644 --- a/api/inventorypb/json/client/agents/get_agent_responses.go +++ b/api/inventorypb/json/client/agents/get_agent_responses.go @@ -50,7 +50,8 @@ func NewGetAgentOK() *GetAgentOK { return &GetAgentOK{} } -/* GetAgentOK describes a response with status code 200, with default header values. +/* +GetAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewGetAgentDefault(code int) *GetAgentDefault { } } -/* GetAgentDefault describes a response with status code -1, with default header values. +/* +GetAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *GetAgentDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*GetAgentBody get agent body +/* +GetAgentBody get agent body swagger:model GetAgentBody */ type GetAgentBody struct { @@ -154,7 +157,8 @@ func (o *GetAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentDefaultBody get agent default body +/* +GetAgentDefaultBody get agent default body swagger:model GetAgentDefaultBody */ type GetAgentDefaultBody struct { @@ -257,7 +261,8 @@ func (o *GetAgentDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentDefaultBodyDetailsItems0 get agent default body details items0 +/* +GetAgentDefaultBodyDetailsItems0 get agent default body details items0 swagger:model GetAgentDefaultBodyDetailsItems0 */ type GetAgentDefaultBodyDetailsItems0 struct { @@ -293,7 +298,8 @@ func (o *GetAgentDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBody get agent OK body +/* +GetAgentOKBody get agent OK body swagger:model GetAgentOKBody */ type GetAgentOKBody struct { @@ -1011,7 +1017,8 @@ func (o *GetAgentOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. +/* +GetAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. swagger:model GetAgentOKBodyAzureDatabaseExporter */ type GetAgentOKBodyAzureDatabaseExporter struct { @@ -1213,7 +1220,8 @@ func (o *GetAgentOKBodyAzureDatabaseExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. +/* +GetAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. swagger:model GetAgentOKBodyExternalExporter */ type GetAgentOKBodyExternalExporter struct { @@ -1279,7 +1287,8 @@ func (o *GetAgentOKBodyExternalExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. +/* +GetAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. swagger:model GetAgentOKBodyMongodbExporter */ type GetAgentOKBodyMongodbExporter struct { @@ -1497,7 +1506,8 @@ func (o *GetAgentOKBodyMongodbExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +/* +GetAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model GetAgentOKBodyMysqldExporter */ type GetAgentOKBodyMysqldExporter struct { @@ -1722,7 +1732,8 @@ func (o *GetAgentOKBodyMysqldExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. +/* +GetAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and exposes its metrics. swagger:model GetAgentOKBodyNodeExporter */ type GetAgentOKBodyNodeExporter struct { @@ -1918,7 +1929,8 @@ func (o *GetAgentOKBodyNodeExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. +/* +GetAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model GetAgentOKBodyPMMAgent */ type GetAgentOKBodyPMMAgent struct { @@ -1966,7 +1978,8 @@ func (o *GetAgentOKBodyPMMAgent) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +/* +GetAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model GetAgentOKBodyPostgresExporter */ type GetAgentOKBodyPostgresExporter struct { @@ -2174,7 +2187,8 @@ func (o *GetAgentOKBodyPostgresExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. +/* +GetAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. swagger:model GetAgentOKBodyProxysqlExporter */ type GetAgentOKBodyProxysqlExporter struct { @@ -2382,7 +2396,8 @@ func (o *GetAgentOKBodyProxysqlExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. +/* +GetAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. swagger:model GetAgentOKBodyQANMongodbProfilerAgent */ type GetAgentOKBodyQANMongodbProfilerAgent struct { @@ -2581,7 +2596,8 @@ func (o *GetAgentOKBodyQANMongodbProfilerAgent) UnmarshalBinary(b []byte) error return nil } -/*GetAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +GetAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model GetAgentOKBodyQANMysqlPerfschemaAgent */ type GetAgentOKBodyQANMysqlPerfschemaAgent struct { @@ -2795,7 +2811,8 @@ func (o *GetAgentOKBodyQANMysqlPerfschemaAgent) UnmarshalBinary(b []byte) error return nil } -/*GetAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +GetAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model GetAgentOKBodyQANMysqlSlowlogAgent */ type GetAgentOKBodyQANMysqlSlowlogAgent struct { @@ -3012,7 +3029,8 @@ func (o *GetAgentOKBodyQANMysqlSlowlogAgent) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +GetAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model GetAgentOKBodyQANPostgresqlPgstatementsAgent */ type GetAgentOKBodyQANPostgresqlPgstatementsAgent struct { @@ -3214,7 +3232,8 @@ func (o *GetAgentOKBodyQANPostgresqlPgstatementsAgent) UnmarshalBinary(b []byte) return nil } -/*GetAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +GetAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model GetAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type GetAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { @@ -3419,7 +3438,8 @@ func (o *GetAgentOKBodyQANPostgresqlPgstatmonitorAgent) UnmarshalBinary(b []byte return nil } -/*GetAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. +/* +GetAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. swagger:model GetAgentOKBodyRDSExporter */ type GetAgentOKBodyRDSExporter struct { @@ -3624,7 +3644,8 @@ func (o *GetAgentOKBodyRDSExporter) UnmarshalBinary(b []byte) error { return nil } -/*GetAgentOKBodyVmagent VMAgent runs on Generic or Container Node alongside pmm-agent. +/* +GetAgentOKBodyVmagent VMAgent runs on Generic or Container Node alongside pmm-agent. // It scrapes other exporter Agents that are configured with push_metrics_enabled // and uses Prometheus remote write protocol to push metrics to PMM Server. swagger:model GetAgentOKBodyVmagent diff --git a/api/inventorypb/json/client/agents/list_agents_parameters.go b/api/inventorypb/json/client/agents/list_agents_parameters.go index 8514e2d5cb..45319cd49a 100644 --- a/api/inventorypb/json/client/agents/list_agents_parameters.go +++ b/api/inventorypb/json/client/agents/list_agents_parameters.go @@ -52,10 +52,12 @@ func NewListAgentsParamsWithHTTPClient(client *http.Client) *ListAgentsParams { } } -/* ListAgentsParams contains all the parameters to send to the API endpoint - for the list agents operation. +/* +ListAgentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list agents operation. + + Typically these are written to a http.Request. */ type ListAgentsParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/list_agents_responses.go b/api/inventorypb/json/client/agents/list_agents_responses.go index 3e741e4abb..0826dc2db8 100644 --- a/api/inventorypb/json/client/agents/list_agents_responses.go +++ b/api/inventorypb/json/client/agents/list_agents_responses.go @@ -50,7 +50,8 @@ func NewListAgentsOK() *ListAgentsOK { return &ListAgentsOK{} } -/* ListAgentsOK describes a response with status code 200, with default header values. +/* +ListAgentsOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListAgentsDefault(code int) *ListAgentsDefault { } } -/* ListAgentsDefault describes a response with status code -1, with default header values. +/* +ListAgentsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*ListAgentsBody list agents body +/* +ListAgentsBody list agents body swagger:model ListAgentsBody */ type ListAgentsBody struct { @@ -260,7 +263,8 @@ func (o *ListAgentsBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsDefaultBody list agents default body +/* +ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { @@ -363,7 +367,8 @@ func (o *ListAgentsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 +/* +ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { @@ -399,7 +404,8 @@ func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsOKBody list agents OK body +/* +ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { @@ -1252,7 +1258,8 @@ func (o *ListAgentsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsOKBodyAzureDatabaseExporterItems0 AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. +/* +ListAgentsOKBodyAzureDatabaseExporterItems0 AzureDatabaseExporter runs on Generic or Container Node and exposes RemoteAzure Node metrics. swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0 */ type ListAgentsOKBodyAzureDatabaseExporterItems0 struct { @@ -1454,7 +1461,8 @@ func (o *ListAgentsOKBodyAzureDatabaseExporterItems0) UnmarshalBinary(b []byte) return nil } -/*ListAgentsOKBodyExternalExporterItems0 ExternalExporter runs on any Node type, including Remote Node. +/* +ListAgentsOKBodyExternalExporterItems0 ExternalExporter runs on any Node type, including Remote Node. swagger:model ListAgentsOKBodyExternalExporterItems0 */ type ListAgentsOKBodyExternalExporterItems0 struct { @@ -1520,7 +1528,8 @@ func (o *ListAgentsOKBodyExternalExporterItems0) UnmarshalBinary(b []byte) error return nil } -/*ListAgentsOKBodyMongodbExporterItems0 MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. +/* +ListAgentsOKBodyMongodbExporterItems0 MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. swagger:model ListAgentsOKBodyMongodbExporterItems0 */ type ListAgentsOKBodyMongodbExporterItems0 struct { @@ -1738,7 +1747,8 @@ func (o *ListAgentsOKBodyMongodbExporterItems0) UnmarshalBinary(b []byte) error return nil } -/*ListAgentsOKBodyMysqldExporterItems0 MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +/* +ListAgentsOKBodyMysqldExporterItems0 MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model ListAgentsOKBodyMysqldExporterItems0 */ type ListAgentsOKBodyMysqldExporterItems0 struct { @@ -1963,7 +1973,8 @@ func (o *ListAgentsOKBodyMysqldExporterItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsOKBodyNodeExporterItems0 NodeExporter runs on Generic or Container Node and exposes its metrics. +/* +ListAgentsOKBodyNodeExporterItems0 NodeExporter runs on Generic or Container Node and exposes its metrics. swagger:model ListAgentsOKBodyNodeExporterItems0 */ type ListAgentsOKBodyNodeExporterItems0 struct { @@ -2159,7 +2170,8 @@ func (o *ListAgentsOKBodyNodeExporterItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsOKBodyPMMAgentItems0 PMMAgent runs on Generic or Container Node. +/* +ListAgentsOKBodyPMMAgentItems0 PMMAgent runs on Generic or Container Node. swagger:model ListAgentsOKBodyPMMAgentItems0 */ type ListAgentsOKBodyPMMAgentItems0 struct { @@ -2207,7 +2219,8 @@ func (o *ListAgentsOKBodyPMMAgentItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsOKBodyPostgresExporterItems0 PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +/* +ListAgentsOKBodyPostgresExporterItems0 PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model ListAgentsOKBodyPostgresExporterItems0 */ type ListAgentsOKBodyPostgresExporterItems0 struct { @@ -2415,7 +2428,8 @@ func (o *ListAgentsOKBodyPostgresExporterItems0) UnmarshalBinary(b []byte) error return nil } -/*ListAgentsOKBodyProxysqlExporterItems0 ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. +/* +ListAgentsOKBodyProxysqlExporterItems0 ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. swagger:model ListAgentsOKBodyProxysqlExporterItems0 */ type ListAgentsOKBodyProxysqlExporterItems0 struct { @@ -2623,7 +2637,8 @@ func (o *ListAgentsOKBodyProxysqlExporterItems0) UnmarshalBinary(b []byte) error return nil } -/*ListAgentsOKBodyQANMongodbProfilerAgentItems0 QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. +/* +ListAgentsOKBodyQANMongodbProfilerAgentItems0 QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. swagger:model ListAgentsOKBodyQANMongodbProfilerAgentItems0 */ type ListAgentsOKBodyQANMongodbProfilerAgentItems0 struct { @@ -2822,7 +2837,8 @@ func (o *ListAgentsOKBodyQANMongodbProfilerAgentItems0) UnmarshalBinary(b []byte return nil } -/*ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 */ type ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 struct { @@ -3036,7 +3052,8 @@ func (o *ListAgentsOKBodyQANMysqlPerfschemaAgentItems0) UnmarshalBinary(b []byte return nil } -/*ListAgentsOKBodyQANMysqlSlowlogAgentItems0 QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +ListAgentsOKBodyQANMysqlSlowlogAgentItems0 QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model ListAgentsOKBodyQANMysqlSlowlogAgentItems0 */ type ListAgentsOKBodyQANMysqlSlowlogAgentItems0 struct { @@ -3253,7 +3270,8 @@ func (o *ListAgentsOKBodyQANMysqlSlowlogAgentItems0) UnmarshalBinary(b []byte) e return nil } -/*ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 struct { @@ -3455,7 +3473,8 @@ func (o *ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0) UnmarshalBinary(b return nil } -/*ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 struct { @@ -3660,7 +3679,8 @@ func (o *ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0) UnmarshalBinary( return nil } -/*ListAgentsOKBodyRDSExporterItems0 RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. +/* +ListAgentsOKBodyRDSExporterItems0 RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. swagger:model ListAgentsOKBodyRDSExporterItems0 */ type ListAgentsOKBodyRDSExporterItems0 struct { @@ -3865,7 +3885,8 @@ func (o *ListAgentsOKBodyRDSExporterItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAgentsOKBodyVMAgentItems0 VMAgent runs on Generic or Container Node alongside pmm-agent. +/* +ListAgentsOKBodyVMAgentItems0 VMAgent runs on Generic or Container Node alongside pmm-agent. // It scrapes other exporter Agents that are configured with push_metrics_enabled // and uses Prometheus remote write protocol to push metrics to PMM Server. swagger:model ListAgentsOKBodyVMAgentItems0 diff --git a/api/inventorypb/json/client/agents/remove_agent_parameters.go b/api/inventorypb/json/client/agents/remove_agent_parameters.go index bd5397d817..de9f9fb549 100644 --- a/api/inventorypb/json/client/agents/remove_agent_parameters.go +++ b/api/inventorypb/json/client/agents/remove_agent_parameters.go @@ -52,10 +52,12 @@ func NewRemoveAgentParamsWithHTTPClient(client *http.Client) *RemoveAgentParams } } -/* RemoveAgentParams contains all the parameters to send to the API endpoint - for the remove agent operation. +/* +RemoveAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove agent operation. + + Typically these are written to a http.Request. */ type RemoveAgentParams struct { // Body. diff --git a/api/inventorypb/json/client/agents/remove_agent_responses.go b/api/inventorypb/json/client/agents/remove_agent_responses.go index 3148697e55..00cb211405 100644 --- a/api/inventorypb/json/client/agents/remove_agent_responses.go +++ b/api/inventorypb/json/client/agents/remove_agent_responses.go @@ -48,7 +48,8 @@ func NewRemoveAgentOK() *RemoveAgentOK { return &RemoveAgentOK{} } -/* RemoveAgentOK describes a response with status code 200, with default header values. +/* +RemoveAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRemoveAgentDefault(code int) *RemoveAgentDefault { } } -/* RemoveAgentDefault describes a response with status code -1, with default header values. +/* +RemoveAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RemoveAgentDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*RemoveAgentBody remove agent body +/* +RemoveAgentBody remove agent body swagger:model RemoveAgentBody */ type RemoveAgentBody struct { @@ -153,7 +156,8 @@ func (o *RemoveAgentBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveAgentDefaultBody remove agent default body +/* +RemoveAgentDefaultBody remove agent default body swagger:model RemoveAgentDefaultBody */ type RemoveAgentDefaultBody struct { @@ -256,7 +260,8 @@ func (o *RemoveAgentDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveAgentDefaultBodyDetailsItems0 remove agent default body details items0 +/* +RemoveAgentDefaultBodyDetailsItems0 remove agent default body details items0 swagger:model RemoveAgentDefaultBodyDetailsItems0 */ type RemoveAgentDefaultBodyDetailsItems0 struct { diff --git a/api/inventorypb/json/client/nodes/add_container_node_parameters.go b/api/inventorypb/json/client/nodes/add_container_node_parameters.go index 6eff204e63..733d4a807b 100644 --- a/api/inventorypb/json/client/nodes/add_container_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_container_node_parameters.go @@ -52,10 +52,12 @@ func NewAddContainerNodeParamsWithHTTPClient(client *http.Client) *AddContainerN } } -/* AddContainerNodeParams contains all the parameters to send to the API endpoint - for the add container node operation. +/* +AddContainerNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add container node operation. + + Typically these are written to a http.Request. */ type AddContainerNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/add_container_node_responses.go b/api/inventorypb/json/client/nodes/add_container_node_responses.go index 5571fdea9f..1243859a12 100644 --- a/api/inventorypb/json/client/nodes/add_container_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_container_node_responses.go @@ -48,7 +48,8 @@ func NewAddContainerNodeOK() *AddContainerNodeOK { return &AddContainerNodeOK{} } -/* AddContainerNodeOK describes a response with status code 200, with default header values. +/* +AddContainerNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddContainerNodeDefault(code int) *AddContainerNodeDefault { } } -/* AddContainerNodeDefault describes a response with status code -1, with default header values. +/* +AddContainerNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddContainerNodeDefault) readResponse(response runtime.ClientResponse, return nil } -/*AddContainerNodeBody add container node body +/* +AddContainerNodeBody add container node body swagger:model AddContainerNodeBody */ type AddContainerNodeBody struct { @@ -176,7 +179,8 @@ func (o *AddContainerNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*AddContainerNodeDefaultBody add container node default body +/* +AddContainerNodeDefaultBody add container node default body swagger:model AddContainerNodeDefaultBody */ type AddContainerNodeDefaultBody struct { @@ -279,7 +283,8 @@ func (o *AddContainerNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddContainerNodeDefaultBodyDetailsItems0 add container node default body details items0 +/* +AddContainerNodeDefaultBodyDetailsItems0 add container node default body details items0 swagger:model AddContainerNodeDefaultBodyDetailsItems0 */ type AddContainerNodeDefaultBodyDetailsItems0 struct { @@ -315,7 +320,8 @@ func (o *AddContainerNodeDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) err return nil } -/*AddContainerNodeOKBody add container node OK body +/* +AddContainerNodeOKBody add container node OK body swagger:model AddContainerNodeOKBody */ type AddContainerNodeOKBody struct { @@ -403,7 +409,8 @@ func (o *AddContainerNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddContainerNodeOKBodyContainer ContainerNode represents a Docker container. +/* +AddContainerNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model AddContainerNodeOKBodyContainer */ type AddContainerNodeOKBodyContainer struct { diff --git a/api/inventorypb/json/client/nodes/add_generic_node_parameters.go b/api/inventorypb/json/client/nodes/add_generic_node_parameters.go index 30f2ac4f7e..b8a549c522 100644 --- a/api/inventorypb/json/client/nodes/add_generic_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_generic_node_parameters.go @@ -52,10 +52,12 @@ func NewAddGenericNodeParamsWithHTTPClient(client *http.Client) *AddGenericNodeP } } -/* AddGenericNodeParams contains all the parameters to send to the API endpoint - for the add generic node operation. +/* +AddGenericNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add generic node operation. + + Typically these are written to a http.Request. */ type AddGenericNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/add_generic_node_responses.go b/api/inventorypb/json/client/nodes/add_generic_node_responses.go index 32791018db..97378c70ad 100644 --- a/api/inventorypb/json/client/nodes/add_generic_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_generic_node_responses.go @@ -48,7 +48,8 @@ func NewAddGenericNodeOK() *AddGenericNodeOK { return &AddGenericNodeOK{} } -/* AddGenericNodeOK describes a response with status code 200, with default header values. +/* +AddGenericNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddGenericNodeDefault(code int) *AddGenericNodeDefault { } } -/* AddGenericNodeDefault describes a response with status code -1, with default header values. +/* +AddGenericNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddGenericNodeDefault) readResponse(response runtime.ClientResponse, co return nil } -/*AddGenericNodeBody add generic node body +/* +AddGenericNodeBody add generic node body swagger:model AddGenericNodeBody */ type AddGenericNodeBody struct { @@ -173,7 +176,8 @@ func (o *AddGenericNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*AddGenericNodeDefaultBody add generic node default body +/* +AddGenericNodeDefaultBody add generic node default body swagger:model AddGenericNodeDefaultBody */ type AddGenericNodeDefaultBody struct { @@ -276,7 +280,8 @@ func (o *AddGenericNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddGenericNodeDefaultBodyDetailsItems0 add generic node default body details items0 +/* +AddGenericNodeDefaultBodyDetailsItems0 add generic node default body details items0 swagger:model AddGenericNodeDefaultBodyDetailsItems0 */ type AddGenericNodeDefaultBodyDetailsItems0 struct { @@ -312,7 +317,8 @@ func (o *AddGenericNodeDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*AddGenericNodeOKBody add generic node OK body +/* +AddGenericNodeOKBody add generic node OK body swagger:model AddGenericNodeOKBody */ type AddGenericNodeOKBody struct { @@ -400,7 +406,8 @@ func (o *AddGenericNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddGenericNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machine. +/* +AddGenericNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machine. swagger:model AddGenericNodeOKBodyGeneric */ type AddGenericNodeOKBodyGeneric struct { diff --git a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go index 0e4245e2fa..a26c9249f8 100644 --- a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go @@ -52,10 +52,12 @@ func NewAddRemoteAzureDatabaseNodeParamsWithHTTPClient(client *http.Client) *Add } } -/* AddRemoteAzureDatabaseNodeParams contains all the parameters to send to the API endpoint - for the add remote azure database node operation. +/* +AddRemoteAzureDatabaseNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add remote azure database node operation. + + Typically these are written to a http.Request. */ type AddRemoteAzureDatabaseNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go index 1cd767f179..17c871dc64 100644 --- a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go @@ -48,7 +48,8 @@ func NewAddRemoteAzureDatabaseNodeOK() *AddRemoteAzureDatabaseNodeOK { return &AddRemoteAzureDatabaseNodeOK{} } -/* AddRemoteAzureDatabaseNodeOK describes a response with status code 200, with default header values. +/* +AddRemoteAzureDatabaseNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddRemoteAzureDatabaseNodeDefault(code int) *AddRemoteAzureDatabaseNodeD } } -/* AddRemoteAzureDatabaseNodeDefault describes a response with status code -1, with default header values. +/* +AddRemoteAzureDatabaseNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddRemoteAzureDatabaseNodeDefault) readResponse(response runtime.Client return nil } -/*AddRemoteAzureDatabaseNodeBody add remote azure database node body +/* +AddRemoteAzureDatabaseNodeBody add remote azure database node body swagger:model AddRemoteAzureDatabaseNodeBody */ type AddRemoteAzureDatabaseNodeBody struct { @@ -167,7 +170,8 @@ func (o *AddRemoteAzureDatabaseNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteAzureDatabaseNodeDefaultBody add remote azure database node default body +/* +AddRemoteAzureDatabaseNodeDefaultBody add remote azure database node default body swagger:model AddRemoteAzureDatabaseNodeDefaultBody */ type AddRemoteAzureDatabaseNodeDefaultBody struct { @@ -270,7 +274,8 @@ func (o *AddRemoteAzureDatabaseNodeDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 add remote azure database node default body details items0 +/* +AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 add remote azure database node default body details items0 swagger:model AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 */ type AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 struct { @@ -306,7 +311,8 @@ func (o *AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0) UnmarshalBinary(b [ return nil } -/*AddRemoteAzureDatabaseNodeOKBody add remote azure database node OK body +/* +AddRemoteAzureDatabaseNodeOKBody add remote azure database node OK body swagger:model AddRemoteAzureDatabaseNodeOKBody */ type AddRemoteAzureDatabaseNodeOKBody struct { @@ -394,7 +400,8 @@ func (o *AddRemoteAzureDatabaseNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote AzureDatabase Node. Agents can't run on Remote AzureDatabase Nodes. +/* +AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote AzureDatabase Node. Agents can't run on Remote AzureDatabase Nodes. swagger:model AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase */ type AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase struct { diff --git a/api/inventorypb/json/client/nodes/add_remote_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_node_parameters.go index afee9b6ca6..1cda2acb2a 100644 --- a/api/inventorypb/json/client/nodes/add_remote_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_node_parameters.go @@ -52,10 +52,12 @@ func NewAddRemoteNodeParamsWithHTTPClient(client *http.Client) *AddRemoteNodePar } } -/* AddRemoteNodeParams contains all the parameters to send to the API endpoint - for the add remote node operation. +/* +AddRemoteNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add remote node operation. + + Typically these are written to a http.Request. */ type AddRemoteNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/add_remote_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_node_responses.go index 52eeffc565..59afde419e 100644 --- a/api/inventorypb/json/client/nodes/add_remote_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_node_responses.go @@ -48,7 +48,8 @@ func NewAddRemoteNodeOK() *AddRemoteNodeOK { return &AddRemoteNodeOK{} } -/* AddRemoteNodeOK describes a response with status code 200, with default header values. +/* +AddRemoteNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddRemoteNodeDefault(code int) *AddRemoteNodeDefault { } } -/* AddRemoteNodeDefault describes a response with status code -1, with default header values. +/* +AddRemoteNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddRemoteNodeDefault) readResponse(response runtime.ClientResponse, con return nil } -/*AddRemoteNodeBody add remote node body +/* +AddRemoteNodeBody add remote node body swagger:model AddRemoteNodeBody */ type AddRemoteNodeBody struct { @@ -167,7 +170,8 @@ func (o *AddRemoteNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteNodeDefaultBody add remote node default body +/* +AddRemoteNodeDefaultBody add remote node default body swagger:model AddRemoteNodeDefaultBody */ type AddRemoteNodeDefaultBody struct { @@ -270,7 +274,8 @@ func (o *AddRemoteNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteNodeDefaultBodyDetailsItems0 add remote node default body details items0 +/* +AddRemoteNodeDefaultBodyDetailsItems0 add remote node default body details items0 swagger:model AddRemoteNodeDefaultBodyDetailsItems0 */ type AddRemoteNodeDefaultBodyDetailsItems0 struct { @@ -306,7 +311,8 @@ func (o *AddRemoteNodeDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*AddRemoteNodeOKBody add remote node OK body +/* +AddRemoteNodeOKBody add remote node OK body swagger:model AddRemoteNodeOKBody */ type AddRemoteNodeOKBody struct { @@ -394,7 +400,8 @@ func (o *AddRemoteNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where we don't run pmm-agents. Only external exporters can run on Remote Nodes. +/* +AddRemoteNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where we don't run pmm-agents. Only external exporters can run on Remote Nodes. swagger:model AddRemoteNodeOKBodyRemote */ type AddRemoteNodeOKBodyRemote struct { diff --git a/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go index 2186e68c82..24a2a4aee5 100644 --- a/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go @@ -52,10 +52,12 @@ func NewAddRemoteRDSNodeParamsWithHTTPClient(client *http.Client) *AddRemoteRDSN } } -/* AddRemoteRDSNodeParams contains all the parameters to send to the API endpoint - for the add remote RDS node operation. +/* +AddRemoteRDSNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add remote RDS node operation. + + Typically these are written to a http.Request. */ type AddRemoteRDSNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go index 7c228402d9..614e87de2a 100644 --- a/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go @@ -48,7 +48,8 @@ func NewAddRemoteRDSNodeOK() *AddRemoteRDSNodeOK { return &AddRemoteRDSNodeOK{} } -/* AddRemoteRDSNodeOK describes a response with status code 200, with default header values. +/* +AddRemoteRDSNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddRemoteRDSNodeDefault(code int) *AddRemoteRDSNodeDefault { } } -/* AddRemoteRDSNodeDefault describes a response with status code -1, with default header values. +/* +AddRemoteRDSNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddRemoteRDSNodeDefault) readResponse(response runtime.ClientResponse, return nil } -/*AddRemoteRDSNodeBody add remote RDS node body +/* +AddRemoteRDSNodeBody add remote RDS node body swagger:model AddRemoteRDSNodeBody */ type AddRemoteRDSNodeBody struct { @@ -167,7 +170,8 @@ func (o *AddRemoteRDSNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteRDSNodeDefaultBody add remote RDS node default body +/* +AddRemoteRDSNodeDefaultBody add remote RDS node default body swagger:model AddRemoteRDSNodeDefaultBody */ type AddRemoteRDSNodeDefaultBody struct { @@ -270,7 +274,8 @@ func (o *AddRemoteRDSNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteRDSNodeDefaultBodyDetailsItems0 add remote RDS node default body details items0 +/* +AddRemoteRDSNodeDefaultBodyDetailsItems0 add remote RDS node default body details items0 swagger:model AddRemoteRDSNodeDefaultBodyDetailsItems0 */ type AddRemoteRDSNodeDefaultBodyDetailsItems0 struct { @@ -306,7 +311,8 @@ func (o *AddRemoteRDSNodeDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) err return nil } -/*AddRemoteRDSNodeOKBody add remote RDS node OK body +/* +AddRemoteRDSNodeOKBody add remote RDS node OK body swagger:model AddRemoteRDSNodeOKBody */ type AddRemoteRDSNodeOKBody struct { @@ -394,7 +400,8 @@ func (o *AddRemoteRDSNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRemoteRDSNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. +/* +AddRemoteRDSNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. swagger:model AddRemoteRDSNodeOKBodyRemoteRDS */ type AddRemoteRDSNodeOKBodyRemoteRDS struct { diff --git a/api/inventorypb/json/client/nodes/get_node_parameters.go b/api/inventorypb/json/client/nodes/get_node_parameters.go index 30d9fad649..f6ad37b23f 100644 --- a/api/inventorypb/json/client/nodes/get_node_parameters.go +++ b/api/inventorypb/json/client/nodes/get_node_parameters.go @@ -52,10 +52,12 @@ func NewGetNodeParamsWithHTTPClient(client *http.Client) *GetNodeParams { } } -/* GetNodeParams contains all the parameters to send to the API endpoint - for the get node operation. +/* +GetNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get node operation. + + Typically these are written to a http.Request. */ type GetNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/get_node_responses.go b/api/inventorypb/json/client/nodes/get_node_responses.go index 0cd197f305..6e1a34baf1 100644 --- a/api/inventorypb/json/client/nodes/get_node_responses.go +++ b/api/inventorypb/json/client/nodes/get_node_responses.go @@ -48,7 +48,8 @@ func NewGetNodeOK() *GetNodeOK { return &GetNodeOK{} } -/* GetNodeOK describes a response with status code 200, with default header values. +/* +GetNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetNodeDefault(code int) *GetNodeDefault { } } -/* GetNodeDefault describes a response with status code -1, with default header values. +/* +GetNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*GetNodeBody get node body +/* +GetNodeBody get node body swagger:model GetNodeBody */ type GetNodeBody struct { @@ -152,7 +155,8 @@ func (o *GetNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeDefaultBody get node default body +/* +GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { @@ -255,7 +259,8 @@ func (o *GetNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeDefaultBodyDetailsItems0 get node default body details items0 +/* +GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeOKBody get node OK body +/* +GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { @@ -559,7 +565,8 @@ func (o *GetNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeOKBodyContainer ContainerNode represents a Docker container. +/* +GetNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model GetNodeOKBodyContainer */ type GetNodeOKBodyContainer struct { @@ -622,7 +629,8 @@ func (o *GetNodeOKBodyContainer) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machine. +/* +GetNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machine. swagger:model GetNodeOKBodyGeneric */ type GetNodeOKBodyGeneric struct { @@ -682,7 +690,8 @@ func (o *GetNodeOKBodyGeneric) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where we don't run pmm-agents. Only external exporters can run on Remote Nodes. +/* +GetNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where we don't run pmm-agents. Only external exporters can run on Remote Nodes. swagger:model GetNodeOKBodyRemote */ type GetNodeOKBodyRemote struct { @@ -736,7 +745,8 @@ func (o *GetNodeOKBodyRemote) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote AzureDatabase Node. Agents can't run on Remote AzureDatabase Nodes. +/* +GetNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote AzureDatabase Node. Agents can't run on Remote AzureDatabase Nodes. swagger:model GetNodeOKBodyRemoteAzureDatabase */ type GetNodeOKBodyRemoteAzureDatabase struct { @@ -790,7 +800,8 @@ func (o *GetNodeOKBodyRemoteAzureDatabase) UnmarshalBinary(b []byte) error { return nil } -/*GetNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. +/* +GetNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. swagger:model GetNodeOKBodyRemoteRDS */ type GetNodeOKBodyRemoteRDS struct { diff --git a/api/inventorypb/json/client/nodes/list_nodes_parameters.go b/api/inventorypb/json/client/nodes/list_nodes_parameters.go index 2104852e72..ed94a2202b 100644 --- a/api/inventorypb/json/client/nodes/list_nodes_parameters.go +++ b/api/inventorypb/json/client/nodes/list_nodes_parameters.go @@ -52,10 +52,12 @@ func NewListNodesParamsWithHTTPClient(client *http.Client) *ListNodesParams { } } -/* ListNodesParams contains all the parameters to send to the API endpoint - for the list nodes operation. +/* +ListNodesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list nodes operation. + + Typically these are written to a http.Request. */ type ListNodesParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/list_nodes_responses.go b/api/inventorypb/json/client/nodes/list_nodes_responses.go index 49aaa9779e..e8bf829521 100644 --- a/api/inventorypb/json/client/nodes/list_nodes_responses.go +++ b/api/inventorypb/json/client/nodes/list_nodes_responses.go @@ -50,7 +50,8 @@ func NewListNodesOK() *ListNodesOK { return &ListNodesOK{} } -/* ListNodesOK describes a response with status code 200, with default header values. +/* +ListNodesOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListNodesDefault(code int) *ListNodesDefault { } } -/* ListNodesDefault describes a response with status code -1, with default header values. +/* +ListNodesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consume return nil } -/*ListNodesBody list nodes body +/* +ListNodesBody list nodes body swagger:model ListNodesBody */ type ListNodesBody struct { @@ -218,7 +221,8 @@ func (o *ListNodesBody) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesDefaultBody list nodes default body +/* +ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { @@ -321,7 +325,8 @@ func (o *ListNodesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 +/* +ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { @@ -357,7 +362,8 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesOKBody list nodes OK body +/* +ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { @@ -670,7 +676,8 @@ func (o *ListNodesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesOKBodyContainerItems0 ContainerNode represents a Docker container. +/* +ListNodesOKBodyContainerItems0 ContainerNode represents a Docker container. swagger:model ListNodesOKBodyContainerItems0 */ type ListNodesOKBodyContainerItems0 struct { @@ -733,7 +740,8 @@ func (o *ListNodesOKBodyContainerItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesOKBodyGenericItems0 GenericNode represents a bare metal server or virtual machine. +/* +ListNodesOKBodyGenericItems0 GenericNode represents a bare metal server or virtual machine. swagger:model ListNodesOKBodyGenericItems0 */ type ListNodesOKBodyGenericItems0 struct { @@ -793,7 +801,8 @@ func (o *ListNodesOKBodyGenericItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesOKBodyRemoteAzureDatabaseItems0 RemoteAzureDatabaseNode represents remote AzureDatabase Node. Agents can't run on Remote AzureDatabase Nodes. +/* +ListNodesOKBodyRemoteAzureDatabaseItems0 RemoteAzureDatabaseNode represents remote AzureDatabase Node. Agents can't run on Remote AzureDatabase Nodes. swagger:model ListNodesOKBodyRemoteAzureDatabaseItems0 */ type ListNodesOKBodyRemoteAzureDatabaseItems0 struct { @@ -847,7 +856,8 @@ func (o *ListNodesOKBodyRemoteAzureDatabaseItems0) UnmarshalBinary(b []byte) err return nil } -/*ListNodesOKBodyRemoteItems0 RemoteNode represents generic remote Node. It's a node where we don't run pmm-agents. Only external exporters can run on Remote Nodes. +/* +ListNodesOKBodyRemoteItems0 RemoteNode represents generic remote Node. It's a node where we don't run pmm-agents. Only external exporters can run on Remote Nodes. swagger:model ListNodesOKBodyRemoteItems0 */ type ListNodesOKBodyRemoteItems0 struct { @@ -901,7 +911,8 @@ func (o *ListNodesOKBodyRemoteItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListNodesOKBodyRemoteRDSItems0 RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. +/* +ListNodesOKBodyRemoteRDSItems0 RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. swagger:model ListNodesOKBodyRemoteRDSItems0 */ type ListNodesOKBodyRemoteRDSItems0 struct { diff --git a/api/inventorypb/json/client/nodes/nodes_client.go b/api/inventorypb/json/client/nodes/nodes_client.go index b71b1c15df..48d9df9312 100644 --- a/api/inventorypb/json/client/nodes/nodes_client.go +++ b/api/inventorypb/json/client/nodes/nodes_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - AddContainerNode adds container node +AddContainerNode adds container node - Adds container Node. +Adds container Node. */ func (a *Client) AddContainerNode(params *AddContainerNodeParams, opts ...ClientOption) (*AddContainerNodeOK, error) { // TODO: Validate the params before sending @@ -87,9 +87,9 @@ func (a *Client) AddContainerNode(params *AddContainerNodeParams, opts ...Client } /* - AddGenericNode adds generic node +AddGenericNode adds generic node - Adds generic Node. +Adds generic Node. */ func (a *Client) AddGenericNode(params *AddGenericNodeParams, opts ...ClientOption) (*AddGenericNodeOK, error) { // TODO: Validate the params before sending @@ -126,9 +126,9 @@ func (a *Client) AddGenericNode(params *AddGenericNodeParams, opts ...ClientOpti } /* - AddRemoteAzureDatabaseNode adds remote azure database node +AddRemoteAzureDatabaseNode adds remote azure database node - Adds remote Azure database Node. +Adds remote Azure database Node. */ func (a *Client) AddRemoteAzureDatabaseNode(params *AddRemoteAzureDatabaseNodeParams, opts ...ClientOption) (*AddRemoteAzureDatabaseNodeOK, error) { // TODO: Validate the params before sending @@ -165,9 +165,9 @@ func (a *Client) AddRemoteAzureDatabaseNode(params *AddRemoteAzureDatabaseNodePa } /* - AddRemoteNode adds remote node +AddRemoteNode adds remote node - Adds remote Node. +Adds remote Node. */ func (a *Client) AddRemoteNode(params *AddRemoteNodeParams, opts ...ClientOption) (*AddRemoteNodeOK, error) { // TODO: Validate the params before sending @@ -204,9 +204,9 @@ func (a *Client) AddRemoteNode(params *AddRemoteNodeParams, opts ...ClientOption } /* - AddRemoteRDSNode adds remote RDS node +AddRemoteRDSNode adds remote RDS node - Adds remote RDS Node. +Adds remote RDS Node. */ func (a *Client) AddRemoteRDSNode(params *AddRemoteRDSNodeParams, opts ...ClientOption) (*AddRemoteRDSNodeOK, error) { // TODO: Validate the params before sending @@ -243,9 +243,9 @@ func (a *Client) AddRemoteRDSNode(params *AddRemoteRDSNodeParams, opts ...Client } /* - GetNode gets node +GetNode gets node - Returns a single Node by ID. +Returns a single Node by ID. */ func (a *Client) GetNode(params *GetNodeParams, opts ...ClientOption) (*GetNodeOK, error) { // TODO: Validate the params before sending @@ -282,9 +282,9 @@ func (a *Client) GetNode(params *GetNodeParams, opts ...ClientOption) (*GetNodeO } /* - ListNodes lists nodes +ListNodes lists nodes - Returns a list of all Nodes. +Returns a list of all Nodes. */ func (a *Client) ListNodes(params *ListNodesParams, opts ...ClientOption) (*ListNodesOK, error) { // TODO: Validate the params before sending @@ -321,9 +321,9 @@ func (a *Client) ListNodes(params *ListNodesParams, opts ...ClientOption) (*List } /* - RemoveNode removes node +RemoveNode removes node - Removes Node. +Removes Node. */ func (a *Client) RemoveNode(params *RemoveNodeParams, opts ...ClientOption) (*RemoveNodeOK, error) { // TODO: Validate the params before sending diff --git a/api/inventorypb/json/client/nodes/remove_node_parameters.go b/api/inventorypb/json/client/nodes/remove_node_parameters.go index 1f386d82fc..5948139b98 100644 --- a/api/inventorypb/json/client/nodes/remove_node_parameters.go +++ b/api/inventorypb/json/client/nodes/remove_node_parameters.go @@ -52,10 +52,12 @@ func NewRemoveNodeParamsWithHTTPClient(client *http.Client) *RemoveNodeParams { } } -/* RemoveNodeParams contains all the parameters to send to the API endpoint - for the remove node operation. +/* +RemoveNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove node operation. + + Typically these are written to a http.Request. */ type RemoveNodeParams struct { // Body. diff --git a/api/inventorypb/json/client/nodes/remove_node_responses.go b/api/inventorypb/json/client/nodes/remove_node_responses.go index fc27df1dd2..7de78f1ea0 100644 --- a/api/inventorypb/json/client/nodes/remove_node_responses.go +++ b/api/inventorypb/json/client/nodes/remove_node_responses.go @@ -48,7 +48,8 @@ func NewRemoveNodeOK() *RemoveNodeOK { return &RemoveNodeOK{} } -/* RemoveNodeOK describes a response with status code 200, with default header values. +/* +RemoveNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRemoveNodeDefault(code int) *RemoveNodeDefault { } } -/* RemoveNodeDefault describes a response with status code -1, with default header values. +/* +RemoveNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RemoveNodeDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*RemoveNodeBody remove node body +/* +RemoveNodeBody remove node body swagger:model RemoveNodeBody */ type RemoveNodeBody struct { @@ -153,7 +156,8 @@ func (o *RemoveNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveNodeDefaultBody remove node default body +/* +RemoveNodeDefaultBody remove node default body swagger:model RemoveNodeDefaultBody */ type RemoveNodeDefaultBody struct { @@ -256,7 +260,8 @@ func (o *RemoveNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveNodeDefaultBodyDetailsItems0 remove node default body details items0 +/* +RemoveNodeDefaultBodyDetailsItems0 remove node default body details items0 swagger:model RemoveNodeDefaultBodyDetailsItems0 */ type RemoveNodeDefaultBodyDetailsItems0 struct { diff --git a/api/inventorypb/json/client/services/add_external_service_parameters.go b/api/inventorypb/json/client/services/add_external_service_parameters.go index f40c41a259..53b34253d6 100644 --- a/api/inventorypb/json/client/services/add_external_service_parameters.go +++ b/api/inventorypb/json/client/services/add_external_service_parameters.go @@ -52,10 +52,12 @@ func NewAddExternalServiceParamsWithHTTPClient(client *http.Client) *AddExternal } } -/* AddExternalServiceParams contains all the parameters to send to the API endpoint - for the add external service operation. +/* +AddExternalServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add external service operation. + + Typically these are written to a http.Request. */ type AddExternalServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/add_external_service_responses.go b/api/inventorypb/json/client/services/add_external_service_responses.go index 95063e0eab..7f2cf9fbf2 100644 --- a/api/inventorypb/json/client/services/add_external_service_responses.go +++ b/api/inventorypb/json/client/services/add_external_service_responses.go @@ -48,7 +48,8 @@ func NewAddExternalServiceOK() *AddExternalServiceOK { return &AddExternalServiceOK{} } -/* AddExternalServiceOK describes a response with status code 200, with default header values. +/* +AddExternalServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddExternalServiceDefault(code int) *AddExternalServiceDefault { } } -/* AddExternalServiceDefault describes a response with status code -1, with default header values. +/* +AddExternalServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddExternalServiceDefault) readResponse(response runtime.ClientResponse return nil } -/*AddExternalServiceBody add external service body +/* +AddExternalServiceBody add external service body swagger:model AddExternalServiceBody */ type AddExternalServiceBody struct { @@ -170,7 +173,8 @@ func (o *AddExternalServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalServiceDefaultBody add external service default body +/* +AddExternalServiceDefaultBody add external service default body swagger:model AddExternalServiceDefaultBody */ type AddExternalServiceDefaultBody struct { @@ -273,7 +277,8 @@ func (o *AddExternalServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalServiceDefaultBodyDetailsItems0 add external service default body details items0 +/* +AddExternalServiceDefaultBodyDetailsItems0 add external service default body details items0 swagger:model AddExternalServiceDefaultBodyDetailsItems0 */ type AddExternalServiceDefaultBodyDetailsItems0 struct { @@ -309,7 +314,8 @@ func (o *AddExternalServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*AddExternalServiceOKBody add external service OK body +/* +AddExternalServiceOKBody add external service OK body swagger:model AddExternalServiceOKBody */ type AddExternalServiceOKBody struct { @@ -397,7 +403,8 @@ func (o *AddExternalServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalServiceOKBodyExternal ExternalService represents a generic External service instance. +/* +AddExternalServiceOKBodyExternal ExternalService represents a generic External service instance. swagger:model AddExternalServiceOKBodyExternal */ type AddExternalServiceOKBodyExternal struct { diff --git a/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go b/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go index 7806c7afbe..b90ea92106 100644 --- a/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go +++ b/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go @@ -52,10 +52,12 @@ func NewAddHAProxyServiceParamsWithHTTPClient(client *http.Client) *AddHAProxySe } } -/* AddHAProxyServiceParams contains all the parameters to send to the API endpoint - for the add HA proxy service operation. +/* +AddHAProxyServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add HA proxy service operation. + + Typically these are written to a http.Request. */ type AddHAProxyServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go b/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go index 7d7cbe9c08..812d6866cb 100644 --- a/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go +++ b/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go @@ -48,7 +48,8 @@ func NewAddHAProxyServiceOK() *AddHAProxyServiceOK { return &AddHAProxyServiceOK{} } -/* AddHAProxyServiceOK describes a response with status code 200, with default header values. +/* +AddHAProxyServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddHAProxyServiceDefault(code int) *AddHAProxyServiceDefault { } } -/* AddHAProxyServiceDefault describes a response with status code -1, with default header values. +/* +AddHAProxyServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddHAProxyServiceDefault) readResponse(response runtime.ClientResponse, return nil } -/*AddHAProxyServiceBody add HA proxy service body +/* +AddHAProxyServiceBody add HA proxy service body swagger:model AddHAProxyServiceBody */ type AddHAProxyServiceBody struct { @@ -167,7 +170,8 @@ func (o *AddHAProxyServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyServiceDefaultBody add HA proxy service default body +/* +AddHAProxyServiceDefaultBody add HA proxy service default body swagger:model AddHAProxyServiceDefaultBody */ type AddHAProxyServiceDefaultBody struct { @@ -270,7 +274,8 @@ func (o *AddHAProxyServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyServiceDefaultBodyDetailsItems0 add HA proxy service default body details items0 +/* +AddHAProxyServiceDefaultBodyDetailsItems0 add HA proxy service default body details items0 swagger:model AddHAProxyServiceDefaultBodyDetailsItems0 */ type AddHAProxyServiceDefaultBodyDetailsItems0 struct { @@ -306,7 +311,8 @@ func (o *AddHAProxyServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) er return nil } -/*AddHAProxyServiceOKBody add HA proxy service OK body +/* +AddHAProxyServiceOKBody add HA proxy service OK body swagger:model AddHAProxyServiceOKBody */ type AddHAProxyServiceOKBody struct { @@ -394,7 +400,8 @@ func (o *AddHAProxyServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service instance. +/* +AddHAProxyServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service instance. swagger:model AddHAProxyServiceOKBodyHaproxy */ type AddHAProxyServiceOKBodyHaproxy struct { diff --git a/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go b/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go index afbb188215..c5b0806ad0 100644 --- a/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go +++ b/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go @@ -52,10 +52,12 @@ func NewAddMongoDBServiceParamsWithHTTPClient(client *http.Client) *AddMongoDBSe } } -/* AddMongoDBServiceParams contains all the parameters to send to the API endpoint - for the add mongo DB service operation. +/* +AddMongoDBServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add mongo DB service operation. + + Typically these are written to a http.Request. */ type AddMongoDBServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/add_mongo_db_service_responses.go b/api/inventorypb/json/client/services/add_mongo_db_service_responses.go index 636eca0cc9..2f0a715d74 100644 --- a/api/inventorypb/json/client/services/add_mongo_db_service_responses.go +++ b/api/inventorypb/json/client/services/add_mongo_db_service_responses.go @@ -48,7 +48,8 @@ func NewAddMongoDBServiceOK() *AddMongoDBServiceOK { return &AddMongoDBServiceOK{} } -/* AddMongoDBServiceOK describes a response with status code 200, with default header values. +/* +AddMongoDBServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddMongoDBServiceDefault(code int) *AddMongoDBServiceDefault { } } -/* AddMongoDBServiceDefault describes a response with status code -1, with default header values. +/* +AddMongoDBServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddMongoDBServiceDefault) readResponse(response runtime.ClientResponse, return nil } -/*AddMongoDBServiceBody add mongo DB service body +/* +AddMongoDBServiceBody add mongo DB service body swagger:model AddMongoDBServiceBody */ type AddMongoDBServiceBody struct { @@ -179,7 +182,8 @@ func (o *AddMongoDBServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBServiceDefaultBody add mongo DB service default body +/* +AddMongoDBServiceDefaultBody add mongo DB service default body swagger:model AddMongoDBServiceDefaultBody */ type AddMongoDBServiceDefaultBody struct { @@ -282,7 +286,8 @@ func (o *AddMongoDBServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBServiceDefaultBodyDetailsItems0 add mongo DB service default body details items0 +/* +AddMongoDBServiceDefaultBodyDetailsItems0 add mongo DB service default body details items0 swagger:model AddMongoDBServiceDefaultBodyDetailsItems0 */ type AddMongoDBServiceDefaultBodyDetailsItems0 struct { @@ -318,7 +323,8 @@ func (o *AddMongoDBServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) er return nil } -/*AddMongoDBServiceOKBody add mongo DB service OK body +/* +AddMongoDBServiceOKBody add mongo DB service OK body swagger:model AddMongoDBServiceOKBody */ type AddMongoDBServiceOKBody struct { @@ -406,7 +412,8 @@ func (o *AddMongoDBServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. +/* +AddMongoDBServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model AddMongoDBServiceOKBodyMongodb */ type AddMongoDBServiceOKBodyMongodb struct { diff --git a/api/inventorypb/json/client/services/add_my_sql_service_parameters.go b/api/inventorypb/json/client/services/add_my_sql_service_parameters.go index fbcd18144e..9b3cd35b43 100644 --- a/api/inventorypb/json/client/services/add_my_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_my_sql_service_parameters.go @@ -52,10 +52,12 @@ func NewAddMySQLServiceParamsWithHTTPClient(client *http.Client) *AddMySQLServic } } -/* AddMySQLServiceParams contains all the parameters to send to the API endpoint - for the add my SQL service operation. +/* +AddMySQLServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add my SQL service operation. + + Typically these are written to a http.Request. */ type AddMySQLServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/add_my_sql_service_responses.go b/api/inventorypb/json/client/services/add_my_sql_service_responses.go index b2117a2fc6..d3e8511769 100644 --- a/api/inventorypb/json/client/services/add_my_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_my_sql_service_responses.go @@ -48,7 +48,8 @@ func NewAddMySQLServiceOK() *AddMySQLServiceOK { return &AddMySQLServiceOK{} } -/* AddMySQLServiceOK describes a response with status code 200, with default header values. +/* +AddMySQLServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddMySQLServiceDefault(code int) *AddMySQLServiceDefault { } } -/* AddMySQLServiceDefault describes a response with status code -1, with default header values. +/* +AddMySQLServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddMySQLServiceDefault) readResponse(response runtime.ClientResponse, c return nil } -/*AddMySQLServiceBody add my SQL service body +/* +AddMySQLServiceBody add my SQL service body swagger:model AddMySQLServiceBody */ type AddMySQLServiceBody struct { @@ -179,7 +182,8 @@ func (o *AddMySQLServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLServiceDefaultBody add my SQL service default body +/* +AddMySQLServiceDefaultBody add my SQL service default body swagger:model AddMySQLServiceDefaultBody */ type AddMySQLServiceDefaultBody struct { @@ -282,7 +286,8 @@ func (o *AddMySQLServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLServiceDefaultBodyDetailsItems0 add my SQL service default body details items0 +/* +AddMySQLServiceDefaultBodyDetailsItems0 add my SQL service default body details items0 swagger:model AddMySQLServiceDefaultBodyDetailsItems0 */ type AddMySQLServiceDefaultBodyDetailsItems0 struct { @@ -318,7 +323,8 @@ func (o *AddMySQLServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*AddMySQLServiceOKBody add my SQL service OK body +/* +AddMySQLServiceOKBody add my SQL service OK body swagger:model AddMySQLServiceOKBody */ type AddMySQLServiceOKBody struct { @@ -406,7 +412,8 @@ func (o *AddMySQLServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLServiceOKBodyMysql MySQLService represents a generic MySQL instance. +/* +AddMySQLServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddMySQLServiceOKBodyMysql */ type AddMySQLServiceOKBodyMysql struct { diff --git a/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go b/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go index cce1446528..7f77afbcb7 100644 --- a/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go @@ -52,10 +52,12 @@ func NewAddPostgreSQLServiceParamsWithHTTPClient(client *http.Client) *AddPostgr } } -/* AddPostgreSQLServiceParams contains all the parameters to send to the API endpoint - for the add postgre SQL service operation. +/* +AddPostgreSQLServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add postgre SQL service operation. + + Typically these are written to a http.Request. */ type AddPostgreSQLServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go b/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go index 40e2d6a0c9..c704610153 100644 --- a/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go @@ -48,7 +48,8 @@ func NewAddPostgreSQLServiceOK() *AddPostgreSQLServiceOK { return &AddPostgreSQLServiceOK{} } -/* AddPostgreSQLServiceOK describes a response with status code 200, with default header values. +/* +AddPostgreSQLServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddPostgreSQLServiceDefault(code int) *AddPostgreSQLServiceDefault { } } -/* AddPostgreSQLServiceDefault describes a response with status code -1, with default header values. +/* +AddPostgreSQLServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddPostgreSQLServiceDefault) readResponse(response runtime.ClientRespon return nil } -/*AddPostgreSQLServiceBody add postgre SQL service body +/* +AddPostgreSQLServiceBody add postgre SQL service body swagger:model AddPostgreSQLServiceBody */ type AddPostgreSQLServiceBody struct { @@ -179,7 +182,8 @@ func (o *AddPostgreSQLServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLServiceDefaultBody add postgre SQL service default body +/* +AddPostgreSQLServiceDefaultBody add postgre SQL service default body swagger:model AddPostgreSQLServiceDefaultBody */ type AddPostgreSQLServiceDefaultBody struct { @@ -282,7 +286,8 @@ func (o *AddPostgreSQLServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLServiceDefaultBodyDetailsItems0 add postgre SQL service default body details items0 +/* +AddPostgreSQLServiceDefaultBodyDetailsItems0 add postgre SQL service default body details items0 swagger:model AddPostgreSQLServiceDefaultBodyDetailsItems0 */ type AddPostgreSQLServiceDefaultBodyDetailsItems0 struct { @@ -318,7 +323,8 @@ func (o *AddPostgreSQLServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*AddPostgreSQLServiceOKBody add postgre SQL service OK body +/* +AddPostgreSQLServiceOKBody add postgre SQL service OK body swagger:model AddPostgreSQLServiceOKBody */ type AddPostgreSQLServiceOKBody struct { @@ -406,7 +412,8 @@ func (o *AddPostgreSQLServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. +/* +AddPostgreSQLServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. swagger:model AddPostgreSQLServiceOKBodyPostgresql */ type AddPostgreSQLServiceOKBodyPostgresql struct { diff --git a/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go b/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go index 4673091a58..f41482ed2c 100644 --- a/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go @@ -52,10 +52,12 @@ func NewAddProxySQLServiceParamsWithHTTPClient(client *http.Client) *AddProxySQL } } -/* AddProxySQLServiceParams contains all the parameters to send to the API endpoint - for the add proxy SQL service operation. +/* +AddProxySQLServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add proxy SQL service operation. + + Typically these are written to a http.Request. */ type AddProxySQLServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go b/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go index eacae1bb1a..4bd65d4a30 100644 --- a/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go @@ -48,7 +48,8 @@ func NewAddProxySQLServiceOK() *AddProxySQLServiceOK { return &AddProxySQLServiceOK{} } -/* AddProxySQLServiceOK describes a response with status code 200, with default header values. +/* +AddProxySQLServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddProxySQLServiceDefault(code int) *AddProxySQLServiceDefault { } } -/* AddProxySQLServiceDefault describes a response with status code -1, with default header values. +/* +AddProxySQLServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddProxySQLServiceDefault) readResponse(response runtime.ClientResponse return nil } -/*AddProxySQLServiceBody add proxy SQL service body +/* +AddProxySQLServiceBody add proxy SQL service body swagger:model AddProxySQLServiceBody */ type AddProxySQLServiceBody struct { @@ -179,7 +182,8 @@ func (o *AddProxySQLServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLServiceDefaultBody add proxy SQL service default body +/* +AddProxySQLServiceDefaultBody add proxy SQL service default body swagger:model AddProxySQLServiceDefaultBody */ type AddProxySQLServiceDefaultBody struct { @@ -282,7 +286,8 @@ func (o *AddProxySQLServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLServiceDefaultBodyDetailsItems0 add proxy SQL service default body details items0 +/* +AddProxySQLServiceDefaultBodyDetailsItems0 add proxy SQL service default body details items0 swagger:model AddProxySQLServiceDefaultBodyDetailsItems0 */ type AddProxySQLServiceDefaultBodyDetailsItems0 struct { @@ -318,7 +323,8 @@ func (o *AddProxySQLServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*AddProxySQLServiceOKBody add proxy SQL service OK body +/* +AddProxySQLServiceOKBody add proxy SQL service OK body swagger:model AddProxySQLServiceOKBody */ type AddProxySQLServiceOKBody struct { @@ -406,7 +412,8 @@ func (o *AddProxySQLServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. +/* +AddProxySQLServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model AddProxySQLServiceOKBodyProxysql */ type AddProxySQLServiceOKBodyProxysql struct { diff --git a/api/inventorypb/json/client/services/get_service_parameters.go b/api/inventorypb/json/client/services/get_service_parameters.go index 3c596223f9..45db6f950a 100644 --- a/api/inventorypb/json/client/services/get_service_parameters.go +++ b/api/inventorypb/json/client/services/get_service_parameters.go @@ -52,10 +52,12 @@ func NewGetServiceParamsWithHTTPClient(client *http.Client) *GetServiceParams { } } -/* GetServiceParams contains all the parameters to send to the API endpoint - for the get service operation. +/* +GetServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get service operation. + + Typically these are written to a http.Request. */ type GetServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/get_service_responses.go b/api/inventorypb/json/client/services/get_service_responses.go index f040f6bd19..5249f7e578 100644 --- a/api/inventorypb/json/client/services/get_service_responses.go +++ b/api/inventorypb/json/client/services/get_service_responses.go @@ -48,7 +48,8 @@ func NewGetServiceOK() *GetServiceOK { return &GetServiceOK{} } -/* GetServiceOK describes a response with status code 200, with default header values. +/* +GetServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetServiceDefault(code int) *GetServiceDefault { } } -/* GetServiceDefault describes a response with status code -1, with default header values. +/* +GetServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetServiceDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*GetServiceBody get service body +/* +GetServiceBody get service body swagger:model GetServiceBody */ type GetServiceBody struct { @@ -152,7 +155,8 @@ func (o *GetServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceDefaultBody get service default body +/* +GetServiceDefaultBody get service default body swagger:model GetServiceDefaultBody */ type GetServiceDefaultBody struct { @@ -255,7 +259,8 @@ func (o *GetServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceDefaultBodyDetailsItems0 get service default body details items0 +/* +GetServiceDefaultBodyDetailsItems0 get service default body details items0 swagger:model GetServiceDefaultBodyDetailsItems0 */ type GetServiceDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *GetServiceDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBody get service OK body +/* +GetServiceOKBody get service OK body swagger:model GetServiceOKBody */ type GetServiceOKBody struct { @@ -604,7 +610,8 @@ func (o *GetServiceOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBodyExternal ExternalService represents a generic External service instance. +/* +GetServiceOKBodyExternal ExternalService represents a generic External service instance. swagger:model GetServiceOKBodyExternal */ type GetServiceOKBodyExternal struct { @@ -661,7 +668,8 @@ func (o *GetServiceOKBodyExternal) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service instance. +/* +GetServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service instance. swagger:model GetServiceOKBodyHaproxy */ type GetServiceOKBodyHaproxy struct { @@ -715,7 +723,8 @@ func (o *GetServiceOKBodyHaproxy) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. +/* +GetServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model GetServiceOKBodyMongodb */ type GetServiceOKBodyMongodb struct { @@ -781,7 +790,8 @@ func (o *GetServiceOKBodyMongodb) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBodyMysql MySQLService represents a generic MySQL instance. +/* +GetServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model GetServiceOKBodyMysql */ type GetServiceOKBodyMysql struct { @@ -847,7 +857,8 @@ func (o *GetServiceOKBodyMysql) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. +/* +GetServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. swagger:model GetServiceOKBodyPostgresql */ type GetServiceOKBodyPostgresql struct { @@ -916,7 +927,8 @@ func (o *GetServiceOKBodyPostgresql) UnmarshalBinary(b []byte) error { return nil } -/*GetServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. +/* +GetServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model GetServiceOKBodyProxysql */ type GetServiceOKBodyProxysql struct { diff --git a/api/inventorypb/json/client/services/list_services_parameters.go b/api/inventorypb/json/client/services/list_services_parameters.go index 6947562f3b..152f648dca 100644 --- a/api/inventorypb/json/client/services/list_services_parameters.go +++ b/api/inventorypb/json/client/services/list_services_parameters.go @@ -52,10 +52,12 @@ func NewListServicesParamsWithHTTPClient(client *http.Client) *ListServicesParam } } -/* ListServicesParams contains all the parameters to send to the API endpoint - for the list services operation. +/* +ListServicesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list services operation. + + Typically these are written to a http.Request. */ type ListServicesParams struct { // Body. diff --git a/api/inventorypb/json/client/services/list_services_responses.go b/api/inventorypb/json/client/services/list_services_responses.go index d3e07d43ce..d7d093f09d 100644 --- a/api/inventorypb/json/client/services/list_services_responses.go +++ b/api/inventorypb/json/client/services/list_services_responses.go @@ -50,7 +50,8 @@ func NewListServicesOK() *ListServicesOK { return &ListServicesOK{} } -/* ListServicesOK describes a response with status code 200, with default header values. +/* +ListServicesOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListServicesDefault(code int) *ListServicesDefault { } } -/* ListServicesDefault describes a response with status code -1, with default header values. +/* +ListServicesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*ListServicesBody list services body +/* +ListServicesBody list services body swagger:model ListServicesBody */ type ListServicesBody struct { @@ -227,7 +230,8 @@ func (o *ListServicesBody) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesDefaultBody list services default body +/* +ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { @@ -330,7 +334,8 @@ func (o *ListServicesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesDefaultBodyDetailsItems0 list services default body details items0 +/* +ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { @@ -366,7 +371,8 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBody list services OK body +/* +ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { @@ -733,7 +739,8 @@ func (o *ListServicesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBodyExternalItems0 ExternalService represents a generic External service instance. +/* +ListServicesOKBodyExternalItems0 ExternalService represents a generic External service instance. swagger:model ListServicesOKBodyExternalItems0 */ type ListServicesOKBodyExternalItems0 struct { @@ -790,7 +797,8 @@ func (o *ListServicesOKBodyExternalItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBodyHaproxyItems0 HAProxyService represents a generic HAProxy service instance. +/* +ListServicesOKBodyHaproxyItems0 HAProxyService represents a generic HAProxy service instance. swagger:model ListServicesOKBodyHaproxyItems0 */ type ListServicesOKBodyHaproxyItems0 struct { @@ -844,7 +852,8 @@ func (o *ListServicesOKBodyHaproxyItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBodyMongodbItems0 MongoDBService represents a generic MongoDB instance. +/* +ListServicesOKBodyMongodbItems0 MongoDBService represents a generic MongoDB instance. swagger:model ListServicesOKBodyMongodbItems0 */ type ListServicesOKBodyMongodbItems0 struct { @@ -910,7 +919,8 @@ func (o *ListServicesOKBodyMongodbItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBodyMysqlItems0 MySQLService represents a generic MySQL instance. +/* +ListServicesOKBodyMysqlItems0 MySQLService represents a generic MySQL instance. swagger:model ListServicesOKBodyMysqlItems0 */ type ListServicesOKBodyMysqlItems0 struct { @@ -976,7 +986,8 @@ func (o *ListServicesOKBodyMysqlItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBodyPostgresqlItems0 PostgreSQLService represents a generic PostgreSQL instance. +/* +ListServicesOKBodyPostgresqlItems0 PostgreSQLService represents a generic PostgreSQL instance. swagger:model ListServicesOKBodyPostgresqlItems0 */ type ListServicesOKBodyPostgresqlItems0 struct { @@ -1045,7 +1056,8 @@ func (o *ListServicesOKBodyPostgresqlItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListServicesOKBodyProxysqlItems0 ProxySQLService represents a generic ProxySQL instance. +/* +ListServicesOKBodyProxysqlItems0 ProxySQLService represents a generic ProxySQL instance. swagger:model ListServicesOKBodyProxysqlItems0 */ type ListServicesOKBodyProxysqlItems0 struct { diff --git a/api/inventorypb/json/client/services/remove_service_parameters.go b/api/inventorypb/json/client/services/remove_service_parameters.go index 3021ce9c11..4246b7a5ce 100644 --- a/api/inventorypb/json/client/services/remove_service_parameters.go +++ b/api/inventorypb/json/client/services/remove_service_parameters.go @@ -52,10 +52,12 @@ func NewRemoveServiceParamsWithHTTPClient(client *http.Client) *RemoveServicePar } } -/* RemoveServiceParams contains all the parameters to send to the API endpoint - for the remove service operation. +/* +RemoveServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove service operation. + + Typically these are written to a http.Request. */ type RemoveServiceParams struct { // Body. diff --git a/api/inventorypb/json/client/services/remove_service_responses.go b/api/inventorypb/json/client/services/remove_service_responses.go index 203ab21130..c7bbbf1ce0 100644 --- a/api/inventorypb/json/client/services/remove_service_responses.go +++ b/api/inventorypb/json/client/services/remove_service_responses.go @@ -48,7 +48,8 @@ func NewRemoveServiceOK() *RemoveServiceOK { return &RemoveServiceOK{} } -/* RemoveServiceOK describes a response with status code 200, with default header values. +/* +RemoveServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRemoveServiceDefault(code int) *RemoveServiceDefault { } } -/* RemoveServiceDefault describes a response with status code -1, with default header values. +/* +RemoveServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, con return nil } -/*RemoveServiceBody remove service body +/* +RemoveServiceBody remove service body swagger:model RemoveServiceBody */ type RemoveServiceBody struct { @@ -153,7 +156,8 @@ func (o *RemoveServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveServiceDefaultBody remove service default body +/* +RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { @@ -256,7 +260,8 @@ func (o *RemoveServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 +/* +RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { diff --git a/api/inventorypb/json/client/services/services_client.go b/api/inventorypb/json/client/services/services_client.go index 01ec89cf1d..b3f13fdb59 100644 --- a/api/inventorypb/json/client/services/services_client.go +++ b/api/inventorypb/json/client/services/services_client.go @@ -50,9 +50,9 @@ type ClientService interface { } /* - AddExternalService adds external service +AddExternalService adds external service - Adds External Service. +Adds External Service. */ func (a *Client) AddExternalService(params *AddExternalServiceParams, opts ...ClientOption) (*AddExternalServiceOK, error) { // TODO: Validate the params before sending @@ -89,9 +89,9 @@ func (a *Client) AddExternalService(params *AddExternalServiceParams, opts ...Cl } /* - AddHAProxyService adds HA proxy service +AddHAProxyService adds HA proxy service - Adds HAProxy Service. +Adds HAProxy Service. */ func (a *Client) AddHAProxyService(params *AddHAProxyServiceParams, opts ...ClientOption) (*AddHAProxyServiceOK, error) { // TODO: Validate the params before sending @@ -128,9 +128,9 @@ func (a *Client) AddHAProxyService(params *AddHAProxyServiceParams, opts ...Clie } /* - AddMongoDBService adds mongo DB service +AddMongoDBService adds mongo DB service - Adds MongoDB Service. +Adds MongoDB Service. */ func (a *Client) AddMongoDBService(params *AddMongoDBServiceParams, opts ...ClientOption) (*AddMongoDBServiceOK, error) { // TODO: Validate the params before sending @@ -167,9 +167,9 @@ func (a *Client) AddMongoDBService(params *AddMongoDBServiceParams, opts ...Clie } /* - AddMySQLService adds my SQL service +AddMySQLService adds my SQL service - Adds MySQL Service. +Adds MySQL Service. */ func (a *Client) AddMySQLService(params *AddMySQLServiceParams, opts ...ClientOption) (*AddMySQLServiceOK, error) { // TODO: Validate the params before sending @@ -206,9 +206,9 @@ func (a *Client) AddMySQLService(params *AddMySQLServiceParams, opts ...ClientOp } /* - AddPostgreSQLService adds postgre SQL service +AddPostgreSQLService adds postgre SQL service - Adds PostgreSQL Service. +Adds PostgreSQL Service. */ func (a *Client) AddPostgreSQLService(params *AddPostgreSQLServiceParams, opts ...ClientOption) (*AddPostgreSQLServiceOK, error) { // TODO: Validate the params before sending @@ -245,9 +245,9 @@ func (a *Client) AddPostgreSQLService(params *AddPostgreSQLServiceParams, opts . } /* - AddProxySQLService adds proxy SQL service +AddProxySQLService adds proxy SQL service - Adds ProxySQL Service. +Adds ProxySQL Service. */ func (a *Client) AddProxySQLService(params *AddProxySQLServiceParams, opts ...ClientOption) (*AddProxySQLServiceOK, error) { // TODO: Validate the params before sending @@ -284,9 +284,9 @@ func (a *Client) AddProxySQLService(params *AddProxySQLServiceParams, opts ...Cl } /* - GetService gets service +GetService gets service - Returns a single Service by ID. +Returns a single Service by ID. */ func (a *Client) GetService(params *GetServiceParams, opts ...ClientOption) (*GetServiceOK, error) { // TODO: Validate the params before sending @@ -323,9 +323,9 @@ func (a *Client) GetService(params *GetServiceParams, opts ...ClientOption) (*Ge } /* - ListServices lists services +ListServices lists services - Returns a list of Services filtered by type. +Returns a list of Services filtered by type. */ func (a *Client) ListServices(params *ListServicesParams, opts ...ClientOption) (*ListServicesOK, error) { // TODO: Validate the params before sending @@ -362,9 +362,9 @@ func (a *Client) ListServices(params *ListServicesParams, opts ...ClientOption) } /* - RemoveService removes service +RemoveService removes service - Removes Service. +Removes Service. */ func (a *Client) RemoveService(params *RemoveServiceParams, opts ...ClientOption) (*RemoveServiceOK, error) { // TODO: Validate the params before sending diff --git a/api/inventorypb/nodes.pb.go b/api/inventorypb/nodes.pb.go index 62a4e71358..a95bea1cfb 100644 --- a/api/inventorypb/nodes.pb.go +++ b/api/inventorypb/nodes.pb.go @@ -825,6 +825,7 @@ type GetNodeResponse struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Node: + // // *GetNodeResponse_Generic // *GetNodeResponse_Container // *GetNodeResponse_Remote diff --git a/api/inventorypb/services.pb.go b/api/inventorypb/services.pb.go index 946762f41f..23cfc99220 100644 --- a/api/inventorypb/services.pb.go +++ b/api/inventorypb/services.pb.go @@ -1049,6 +1049,7 @@ type GetServiceResponse struct { unknownFields protoimpl.UnknownFields // Types that are assignable to Service: + // // *GetServiceResponse_Mysql // *GetServiceResponse_Mongodb // *GetServiceResponse_Postgresql diff --git a/api/managementpb/alerting/alerting.pb.go b/api/managementpb/alerting/alerting.pb.go index 3674dfc8ff..3f696d9faa 100644 --- a/api/managementpb/alerting/alerting.pb.go +++ b/api/managementpb/alerting/alerting.pb.go @@ -354,6 +354,7 @@ type ParamDefinition struct { // Parameter value. // // Types that are assignable to Value: + // // *ParamDefinition_Bool // *ParamDefinition_Float // *ParamDefinition_String_ @@ -1068,6 +1069,7 @@ type ParamValue struct { // Parameter value. // // Types that are assignable to Value: + // // *ParamValue_Bool // *ParamValue_Float // *ParamValue_String_ diff --git a/api/managementpb/alerting/json/client/alerting/alerting_client.go b/api/managementpb/alerting/json/client/alerting/alerting_client.go index 1378475ed0..b2cf418170 100644 --- a/api/managementpb/alerting/json/client/alerting/alerting_client.go +++ b/api/managementpb/alerting/json/client/alerting/alerting_client.go @@ -42,7 +42,7 @@ type ClientService interface { } /* - CreateRule creates rule creates alerting rule from the given template +CreateRule creates rule creates alerting rule from the given template */ func (a *Client) CreateRule(params *CreateRuleParams, opts ...ClientOption) (*CreateRuleOK, error) { // TODO: Validate the params before sending @@ -79,7 +79,7 @@ func (a *Client) CreateRule(params *CreateRuleParams, opts ...ClientOption) (*Cr } /* - CreateTemplate creates template creates a new template +CreateTemplate creates template creates a new template */ func (a *Client) CreateTemplate(params *CreateTemplateParams, opts ...ClientOption) (*CreateTemplateOK, error) { // TODO: Validate the params before sending @@ -116,7 +116,7 @@ func (a *Client) CreateTemplate(params *CreateTemplateParams, opts ...ClientOpti } /* - DeleteTemplate deletes template deletes existing previously created via API +DeleteTemplate deletes template deletes existing previously created via API */ func (a *Client) DeleteTemplate(params *DeleteTemplateParams, opts ...ClientOption) (*DeleteTemplateOK, error) { // TODO: Validate the params before sending @@ -153,7 +153,7 @@ func (a *Client) DeleteTemplate(params *DeleteTemplateParams, opts ...ClientOpti } /* - ListTemplates lists templates returns a list of all collected alert rule templates +ListTemplates lists templates returns a list of all collected alert rule templates */ func (a *Client) ListTemplates(params *ListTemplatesParams, opts ...ClientOption) (*ListTemplatesOK, error) { // TODO: Validate the params before sending @@ -190,7 +190,7 @@ func (a *Client) ListTemplates(params *ListTemplatesParams, opts ...ClientOption } /* - UpdateTemplate updates template updates existing template previously created via API +UpdateTemplate updates template updates existing template previously created via API */ func (a *Client) UpdateTemplate(params *UpdateTemplateParams, opts ...ClientOption) (*UpdateTemplateOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go b/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go index bcf128f311..2ed45ff356 100644 --- a/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go @@ -52,10 +52,12 @@ func NewCreateRuleParamsWithHTTPClient(client *http.Client) *CreateRuleParams { } } -/* CreateRuleParams contains all the parameters to send to the API endpoint - for the create rule operation. +/* +CreateRuleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create rule operation. + + Typically these are written to a http.Request. */ type CreateRuleParams struct { // Body. diff --git a/api/managementpb/alerting/json/client/alerting/create_rule_responses.go b/api/managementpb/alerting/json/client/alerting/create_rule_responses.go index 65a0b86f03..645d3f8b71 100644 --- a/api/managementpb/alerting/json/client/alerting/create_rule_responses.go +++ b/api/managementpb/alerting/json/client/alerting/create_rule_responses.go @@ -50,7 +50,8 @@ func NewCreateRuleOK() *CreateRuleOK { return &CreateRuleOK{} } -/* CreateRuleOK describes a response with status code 200, with default header values. +/* +CreateRuleOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewCreateRuleDefault(code int) *CreateRuleDefault { } } -/* CreateRuleDefault describes a response with status code -1, with default header values. +/* +CreateRuleDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *CreateRuleDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*CreateRuleBody create rule body +/* +CreateRuleBody create rule body swagger:model CreateRuleBody */ type CreateRuleBody struct { @@ -356,7 +359,8 @@ func (o *CreateRuleBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateRuleDefaultBody create rule default body +/* +CreateRuleDefaultBody create rule default body swagger:model CreateRuleDefaultBody */ type CreateRuleDefaultBody struct { @@ -459,7 +463,8 @@ func (o *CreateRuleDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateRuleDefaultBodyDetailsItems0 create rule default body details items0 +/* +CreateRuleDefaultBodyDetailsItems0 create rule default body details items0 swagger:model CreateRuleDefaultBodyDetailsItems0 */ type CreateRuleDefaultBodyDetailsItems0 struct { @@ -495,7 +500,8 @@ func (o *CreateRuleDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*CreateRuleParamsBodyFiltersItems0 Filter represents a single filter condition. +/* +CreateRuleParamsBodyFiltersItems0 Filter represents a single filter condition. swagger:model CreateRuleParamsBodyFiltersItems0 */ type CreateRuleParamsBodyFiltersItems0 struct { @@ -592,7 +598,8 @@ func (o *CreateRuleParamsBodyFiltersItems0) UnmarshalBinary(b []byte) error { return nil } -/*CreateRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter value. +/* +CreateRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter value. swagger:model CreateRuleParamsBodyParamsItems0 */ type CreateRuleParamsBodyParamsItems0 struct { diff --git a/api/managementpb/alerting/json/client/alerting/create_template_parameters.go b/api/managementpb/alerting/json/client/alerting/create_template_parameters.go index bd918838b3..02a03694ee 100644 --- a/api/managementpb/alerting/json/client/alerting/create_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/create_template_parameters.go @@ -52,10 +52,12 @@ func NewCreateTemplateParamsWithHTTPClient(client *http.Client) *CreateTemplateP } } -/* CreateTemplateParams contains all the parameters to send to the API endpoint - for the create template operation. +/* +CreateTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create template operation. + + Typically these are written to a http.Request. */ type CreateTemplateParams struct { // Body. diff --git a/api/managementpb/alerting/json/client/alerting/create_template_responses.go b/api/managementpb/alerting/json/client/alerting/create_template_responses.go index ef7ae77707..b7f4dd8f7d 100644 --- a/api/managementpb/alerting/json/client/alerting/create_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/create_template_responses.go @@ -48,7 +48,8 @@ func NewCreateTemplateOK() *CreateTemplateOK { return &CreateTemplateOK{} } -/* CreateTemplateOK describes a response with status code 200, with default header values. +/* +CreateTemplateOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewCreateTemplateDefault(code int) *CreateTemplateDefault { } } -/* CreateTemplateDefault describes a response with status code -1, with default header values. +/* +CreateTemplateDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *CreateTemplateDefault) readResponse(response runtime.ClientResponse, co return nil } -/*CreateTemplateBody create template body +/* +CreateTemplateBody create template body swagger:model CreateTemplateBody */ type CreateTemplateBody struct { @@ -150,7 +153,8 @@ func (o *CreateTemplateBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateTemplateDefaultBody create template default body +/* +CreateTemplateDefaultBody create template default body swagger:model CreateTemplateDefaultBody */ type CreateTemplateDefaultBody struct { @@ -253,7 +257,8 @@ func (o *CreateTemplateDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateTemplateDefaultBodyDetailsItems0 create template default body details items0 +/* +CreateTemplateDefaultBodyDetailsItems0 create template default body details items0 swagger:model CreateTemplateDefaultBodyDetailsItems0 */ type CreateTemplateDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go b/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go index 0dd498d63e..ba1bfb54cd 100644 --- a/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go @@ -52,10 +52,12 @@ func NewDeleteTemplateParamsWithHTTPClient(client *http.Client) *DeleteTemplateP } } -/* DeleteTemplateParams contains all the parameters to send to the API endpoint - for the delete template operation. +/* +DeleteTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete template operation. + + Typically these are written to a http.Request. */ type DeleteTemplateParams struct { // Body. diff --git a/api/managementpb/alerting/json/client/alerting/delete_template_responses.go b/api/managementpb/alerting/json/client/alerting/delete_template_responses.go index 68367744d0..07d858421d 100644 --- a/api/managementpb/alerting/json/client/alerting/delete_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/delete_template_responses.go @@ -48,7 +48,8 @@ func NewDeleteTemplateOK() *DeleteTemplateOK { return &DeleteTemplateOK{} } -/* DeleteTemplateOK describes a response with status code 200, with default header values. +/* +DeleteTemplateOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewDeleteTemplateDefault(code int) *DeleteTemplateDefault { } } -/* DeleteTemplateDefault describes a response with status code -1, with default header values. +/* +DeleteTemplateDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *DeleteTemplateDefault) readResponse(response runtime.ClientResponse, co return nil } -/*DeleteTemplateBody delete template body +/* +DeleteTemplateBody delete template body swagger:model DeleteTemplateBody */ type DeleteTemplateBody struct { @@ -150,7 +153,8 @@ func (o *DeleteTemplateBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteTemplateDefaultBody delete template default body +/* +DeleteTemplateDefaultBody delete template default body swagger:model DeleteTemplateDefaultBody */ type DeleteTemplateDefaultBody struct { @@ -253,7 +257,8 @@ func (o *DeleteTemplateDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteTemplateDefaultBodyDetailsItems0 delete template default body details items0 +/* +DeleteTemplateDefaultBodyDetailsItems0 delete template default body details items0 swagger:model DeleteTemplateDefaultBodyDetailsItems0 */ type DeleteTemplateDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go b/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go index 1e732cefd3..c8054173a2 100644 --- a/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go @@ -52,10 +52,12 @@ func NewListTemplatesParamsWithHTTPClient(client *http.Client) *ListTemplatesPar } } -/* ListTemplatesParams contains all the parameters to send to the API endpoint - for the list templates operation. +/* +ListTemplatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list templates operation. + + Typically these are written to a http.Request. */ type ListTemplatesParams struct { // Body. diff --git a/api/managementpb/alerting/json/client/alerting/list_templates_responses.go b/api/managementpb/alerting/json/client/alerting/list_templates_responses.go index 8f2d2db1ce..cee8c814a3 100644 --- a/api/managementpb/alerting/json/client/alerting/list_templates_responses.go +++ b/api/managementpb/alerting/json/client/alerting/list_templates_responses.go @@ -50,7 +50,8 @@ func NewListTemplatesOK() *ListTemplatesOK { return &ListTemplatesOK{} } -/* ListTemplatesOK describes a response with status code 200, with default header values. +/* +ListTemplatesOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListTemplatesDefault(code int) *ListTemplatesDefault { } } -/* ListTemplatesDefault describes a response with status code -1, with default header values. +/* +ListTemplatesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListTemplatesDefault) readResponse(response runtime.ClientResponse, con return nil } -/*ListTemplatesBody list templates body +/* +ListTemplatesBody list templates body swagger:model ListTemplatesBody */ type ListTemplatesBody struct { @@ -209,7 +212,8 @@ func (o *ListTemplatesBody) UnmarshalBinary(b []byte) error { return nil } -/*ListTemplatesDefaultBody list templates default body +/* +ListTemplatesDefaultBody list templates default body swagger:model ListTemplatesDefaultBody */ type ListTemplatesDefaultBody struct { @@ -312,7 +316,8 @@ func (o *ListTemplatesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListTemplatesDefaultBodyDetailsItems0 list templates default body details items0 +/* +ListTemplatesDefaultBodyDetailsItems0 list templates default body details items0 swagger:model ListTemplatesDefaultBodyDetailsItems0 */ type ListTemplatesDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *ListTemplatesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ListTemplatesOKBody list templates OK body +/* +ListTemplatesOKBody list templates OK body swagger:model ListTemplatesOKBody */ type ListTemplatesOKBody struct { @@ -490,7 +496,8 @@ func (o *ListTemplatesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListTemplatesOKBodyTemplatesItems0 Template represents Alert Template that is used to create Alert Rule. +/* +ListTemplatesOKBodyTemplatesItems0 Template represents Alert Template that is used to create Alert Rule. swagger:model ListTemplatesOKBodyTemplatesItems0 */ type ListTemplatesOKBodyTemplatesItems0 struct { @@ -763,7 +770,8 @@ func (o *ListTemplatesOKBodyTemplatesItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListTemplatesOKBodyTemplatesItems0ParamsItems0 ParamDefinition represents a single query parameter. +/* +ListTemplatesOKBodyTemplatesItems0ParamsItems0 ParamDefinition represents a single query parameter. swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0 */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0 struct { @@ -1060,7 +1068,8 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) UnmarshalBinary(b []byt return nil } -/*ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool BoolParamDefinition represents boolean parameter's default value. +/* +ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool BoolParamDefinition represents boolean parameter's default value. swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool struct { @@ -1156,7 +1165,8 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool) UnmarshalBinary(b [ return nil } -/*ListTemplatesOKBodyTemplatesItems0ParamsItems0Float FloatParamDefinition represents float parameter's default value and valid range. +/* +ListTemplatesOKBodyTemplatesItems0ParamsItems0Float FloatParamDefinition represents float parameter's default value and valid range. swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Float */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Float struct { @@ -1207,7 +1217,8 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0Float) UnmarshalBinary(b return nil } -/*ListTemplatesOKBodyTemplatesItems0ParamsItems0String StringParamDefinition represents string parameter's default value. +/* +ListTemplatesOKBodyTemplatesItems0ParamsItems0String StringParamDefinition represents string parameter's default value. swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0String */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0String struct { @@ -1246,7 +1257,8 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0String) UnmarshalBinary(b return nil } -/*ListTemplatesOKBodyTotals PageTotals represents total values for pagination. +/* +ListTemplatesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListTemplatesOKBodyTotals */ type ListTemplatesOKBodyTotals struct { @@ -1285,7 +1297,8 @@ func (o *ListTemplatesOKBodyTotals) UnmarshalBinary(b []byte) error { return nil } -/*ListTemplatesParamsBodyPageParams PageParams represents page request parameters for pagination. +/* +ListTemplatesParamsBodyPageParams PageParams represents page request parameters for pagination. swagger:model ListTemplatesParamsBodyPageParams */ type ListTemplatesParamsBodyPageParams struct { diff --git a/api/managementpb/alerting/json/client/alerting/update_template_parameters.go b/api/managementpb/alerting/json/client/alerting/update_template_parameters.go index 3f156b4e92..9fa2d67282 100644 --- a/api/managementpb/alerting/json/client/alerting/update_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/update_template_parameters.go @@ -52,10 +52,12 @@ func NewUpdateTemplateParamsWithHTTPClient(client *http.Client) *UpdateTemplateP } } -/* UpdateTemplateParams contains all the parameters to send to the API endpoint - for the update template operation. +/* +UpdateTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update template operation. + + Typically these are written to a http.Request. */ type UpdateTemplateParams struct { // Body. diff --git a/api/managementpb/alerting/json/client/alerting/update_template_responses.go b/api/managementpb/alerting/json/client/alerting/update_template_responses.go index 97088d5651..3d051b737b 100644 --- a/api/managementpb/alerting/json/client/alerting/update_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/update_template_responses.go @@ -48,7 +48,8 @@ func NewUpdateTemplateOK() *UpdateTemplateOK { return &UpdateTemplateOK{} } -/* UpdateTemplateOK describes a response with status code 200, with default header values. +/* +UpdateTemplateOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewUpdateTemplateDefault(code int) *UpdateTemplateDefault { } } -/* UpdateTemplateDefault describes a response with status code -1, with default header values. +/* +UpdateTemplateDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *UpdateTemplateDefault) readResponse(response runtime.ClientResponse, co return nil } -/*UpdateTemplateBody update template body +/* +UpdateTemplateBody update template body swagger:model UpdateTemplateBody */ type UpdateTemplateBody struct { @@ -153,7 +156,8 @@ func (o *UpdateTemplateBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateTemplateDefaultBody update template default body +/* +UpdateTemplateDefaultBody update template default body swagger:model UpdateTemplateDefaultBody */ type UpdateTemplateDefaultBody struct { @@ -256,7 +260,8 @@ func (o *UpdateTemplateDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateTemplateDefaultBodyDetailsItems0 update template default body details items0 +/* +UpdateTemplateDefaultBodyDetailsItems0 update template default body details items0 swagger:model UpdateTemplateDefaultBodyDetailsItems0 */ type UpdateTemplateDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go b/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go index ae528547b2..0eb4da68c3 100644 --- a/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go +++ b/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go @@ -52,10 +52,12 @@ func NewAddAzureDatabaseParamsWithHTTPClient(client *http.Client) *AddAzureDatab } } -/* AddAzureDatabaseParams contains all the parameters to send to the API endpoint - for the add azure database operation. +/* +AddAzureDatabaseParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add azure database operation. + + Typically these are written to a http.Request. */ type AddAzureDatabaseParams struct { // Body. diff --git a/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go b/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go index 44d5ea4924..84dff23137 100644 --- a/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go +++ b/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go @@ -50,7 +50,8 @@ func NewAddAzureDatabaseOK() *AddAzureDatabaseOK { return &AddAzureDatabaseOK{} } -/* AddAzureDatabaseOK describes a response with status code 200, with default header values. +/* +AddAzureDatabaseOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddAzureDatabaseDefault(code int) *AddAzureDatabaseDefault { } } -/* AddAzureDatabaseDefault describes a response with status code -1, with default header values. +/* +AddAzureDatabaseDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddAzureDatabaseDefault) readResponse(response runtime.ClientResponse, return nil } -/*AddAzureDatabaseBody add azure database body +/* +AddAzureDatabaseBody add azure database body swagger:model AddAzureDatabaseBody */ type AddAzureDatabaseBody struct { @@ -285,7 +288,8 @@ func (o *AddAzureDatabaseBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAzureDatabaseDefaultBody add azure database default body +/* +AddAzureDatabaseDefaultBody add azure database default body swagger:model AddAzureDatabaseDefaultBody */ type AddAzureDatabaseDefaultBody struct { @@ -391,7 +395,8 @@ func (o *AddAzureDatabaseDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAzureDatabaseDefaultBodyDetailsItems0 add azure database default body details items0 +/* +AddAzureDatabaseDefaultBodyDetailsItems0 add azure database default body details items0 swagger:model AddAzureDatabaseDefaultBodyDetailsItems0 */ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/azure/json/client/azure_database/azure_database_client.go b/api/managementpb/azure/json/client/azure_database/azure_database_client.go index 19f55b208f..c467458c35 100644 --- a/api/managementpb/azure/json/client/azure_database/azure_database_client.go +++ b/api/managementpb/azure/json/client/azure_database/azure_database_client.go @@ -36,7 +36,7 @@ type ClientService interface { } /* - AddAzureDatabase adds azure database adds azure database instance +AddAzureDatabase adds azure database adds azure database instance */ func (a *Client) AddAzureDatabase(params *AddAzureDatabaseParams, opts ...ClientOption) (*AddAzureDatabaseOK, error) { // TODO: Validate the params before sending @@ -73,7 +73,7 @@ func (a *Client) AddAzureDatabase(params *AddAzureDatabaseParams, opts ...Client } /* - DiscoverAzureDatabase discovers azure database discovers azure database for my SQL maria DB and postgre SQL server instances +DiscoverAzureDatabase discovers azure database discovers azure database for my SQL maria DB and postgre SQL server instances */ func (a *Client) DiscoverAzureDatabase(params *DiscoverAzureDatabaseParams, opts ...ClientOption) (*DiscoverAzureDatabaseOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go b/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go index 78ec987530..a3d93a92e1 100644 --- a/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go +++ b/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go @@ -52,10 +52,12 @@ func NewDiscoverAzureDatabaseParamsWithHTTPClient(client *http.Client) *Discover } } -/* DiscoverAzureDatabaseParams contains all the parameters to send to the API endpoint - for the discover azure database operation. +/* +DiscoverAzureDatabaseParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the discover azure database operation. + + Typically these are written to a http.Request. */ type DiscoverAzureDatabaseParams struct { // Body. diff --git a/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go b/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go index 3e1f727e81..8198487041 100644 --- a/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go +++ b/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go @@ -50,7 +50,8 @@ func NewDiscoverAzureDatabaseOK() *DiscoverAzureDatabaseOK { return &DiscoverAzureDatabaseOK{} } -/* DiscoverAzureDatabaseOK describes a response with status code 200, with default header values. +/* +DiscoverAzureDatabaseOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewDiscoverAzureDatabaseDefault(code int) *DiscoverAzureDatabaseDefault { } } -/* DiscoverAzureDatabaseDefault describes a response with status code -1, with default header values. +/* +DiscoverAzureDatabaseDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *DiscoverAzureDatabaseDefault) readResponse(response runtime.ClientRespo return nil } -/*DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases request. +/* +DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases request. swagger:model DiscoverAzureDatabaseBody */ type DiscoverAzureDatabaseBody struct { @@ -163,7 +166,8 @@ func (o *DiscoverAzureDatabaseBody) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverAzureDatabaseDefaultBody discover azure database default body +/* +DiscoverAzureDatabaseDefaultBody discover azure database default body swagger:model DiscoverAzureDatabaseDefaultBody */ type DiscoverAzureDatabaseDefaultBody struct { @@ -269,7 +273,8 @@ func (o *DiscoverAzureDatabaseDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverAzureDatabaseDefaultBodyDetailsItems0 discover azure database default body details items0 +/* +DiscoverAzureDatabaseDefaultBodyDetailsItems0 discover azure database default body details items0 swagger:model DiscoverAzureDatabaseDefaultBodyDetailsItems0 */ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { @@ -309,7 +314,8 @@ func (o *DiscoverAzureDatabaseDefaultBodyDetailsItems0) UnmarshalBinary(b []byte return nil } -/*DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databases response. +/* +DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databases response. swagger:model DiscoverAzureDatabaseOKBody */ type DiscoverAzureDatabaseOKBody struct { @@ -406,7 +412,8 @@ func (o *DiscoverAzureDatabaseOKBody) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 DiscoverAzureDatabaseInstance models an unique Azure Database instance for the list of instances returned by Discovery. +/* +DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 DiscoverAzureDatabaseInstance models an unique Azure Database instance for the list of instances returned by Discovery. swagger:model DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 */ type DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 struct { diff --git a/api/managementpb/backup/json/client/artifacts/artifacts_client.go b/api/managementpb/backup/json/client/artifacts/artifacts_client.go index e96d88d2f6..dc0ba0e959 100644 --- a/api/managementpb/backup/json/client/artifacts/artifacts_client.go +++ b/api/managementpb/backup/json/client/artifacts/artifacts_client.go @@ -36,7 +36,7 @@ type ClientService interface { } /* - DeleteArtifact deletes artifact deletes specified artifact +DeleteArtifact deletes artifact deletes specified artifact */ func (a *Client) DeleteArtifact(params *DeleteArtifactParams, opts ...ClientOption) (*DeleteArtifactOK, error) { // TODO: Validate the params before sending @@ -73,7 +73,7 @@ func (a *Client) DeleteArtifact(params *DeleteArtifactParams, opts ...ClientOpti } /* - ListArtifacts lists artifacts returns a list of all backup artifacts +ListArtifacts lists artifacts returns a list of all backup artifacts */ func (a *Client) ListArtifacts(params *ListArtifactsParams, opts ...ClientOption) (*ListArtifactsOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go b/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go index d9236db2fe..cdf5c2d89b 100644 --- a/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go +++ b/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go @@ -52,10 +52,12 @@ func NewDeleteArtifactParamsWithHTTPClient(client *http.Client) *DeleteArtifactP } } -/* DeleteArtifactParams contains all the parameters to send to the API endpoint - for the delete artifact operation. +/* +DeleteArtifactParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete artifact operation. + + Typically these are written to a http.Request. */ type DeleteArtifactParams struct { // Body. diff --git a/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go b/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go index 8c93846a7d..03cd4b4f68 100644 --- a/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go +++ b/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go @@ -48,7 +48,8 @@ func NewDeleteArtifactOK() *DeleteArtifactOK { return &DeleteArtifactOK{} } -/* DeleteArtifactOK describes a response with status code 200, with default header values. +/* +DeleteArtifactOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewDeleteArtifactDefault(code int) *DeleteArtifactDefault { } } -/* DeleteArtifactDefault describes a response with status code -1, with default header values. +/* +DeleteArtifactDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *DeleteArtifactDefault) readResponse(response runtime.ClientResponse, co return nil } -/*DeleteArtifactBody delete artifact body +/* +DeleteArtifactBody delete artifact body swagger:model DeleteArtifactBody */ type DeleteArtifactBody struct { @@ -153,7 +156,8 @@ func (o *DeleteArtifactBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteArtifactDefaultBody delete artifact default body +/* +DeleteArtifactDefaultBody delete artifact default body swagger:model DeleteArtifactDefaultBody */ type DeleteArtifactDefaultBody struct { @@ -256,7 +260,8 @@ func (o *DeleteArtifactDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteArtifactDefaultBodyDetailsItems0 delete artifact default body details items0 +/* +DeleteArtifactDefaultBodyDetailsItems0 delete artifact default body details items0 swagger:model DeleteArtifactDefaultBodyDetailsItems0 */ type DeleteArtifactDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go b/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go index f17b936149..5932e115ec 100644 --- a/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go +++ b/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go @@ -52,10 +52,12 @@ func NewListArtifactsParamsWithHTTPClient(client *http.Client) *ListArtifactsPar } } -/* ListArtifactsParams contains all the parameters to send to the API endpoint - for the list artifacts operation. +/* +ListArtifactsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list artifacts operation. + + Typically these are written to a http.Request. */ type ListArtifactsParams struct { // Body. diff --git a/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go b/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go index e3edf6c84d..ddd8dd676b 100644 --- a/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go +++ b/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go @@ -50,7 +50,8 @@ func NewListArtifactsOK() *ListArtifactsOK { return &ListArtifactsOK{} } -/* ListArtifactsOK describes a response with status code 200, with default header values. +/* +ListArtifactsOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListArtifactsDefault(code int) *ListArtifactsDefault { } } -/* ListArtifactsDefault describes a response with status code -1, with default header values. +/* +ListArtifactsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListArtifactsDefault) readResponse(response runtime.ClientResponse, con return nil } -/*ListArtifactsDefaultBody list artifacts default body +/* +ListArtifactsDefaultBody list artifacts default body swagger:model ListArtifactsDefaultBody */ type ListArtifactsDefaultBody struct { @@ -221,7 +224,8 @@ func (o *ListArtifactsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListArtifactsDefaultBodyDetailsItems0 list artifacts default body details items0 +/* +ListArtifactsDefaultBodyDetailsItems0 list artifacts default body details items0 swagger:model ListArtifactsDefaultBodyDetailsItems0 */ type ListArtifactsDefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *ListArtifactsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ListArtifactsOKBody list artifacts OK body +/* +ListArtifactsOKBody list artifacts OK body swagger:model ListArtifactsOKBody */ type ListArtifactsOKBody struct { @@ -354,7 +359,8 @@ func (o *ListArtifactsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListArtifactsOKBodyArtifactsItems0 Artifact represents single backup artifact. +/* +ListArtifactsOKBodyArtifactsItems0 Artifact represents single backup artifact. swagger:model ListArtifactsOKBodyArtifactsItems0 */ type ListArtifactsOKBodyArtifactsItems0 struct { diff --git a/api/managementpb/backup/json/client/backups/backups_client.go b/api/managementpb/backup/json/client/backups/backups_client.go index d7c1212c75..06d8d839e2 100644 --- a/api/managementpb/backup/json/client/backups/backups_client.go +++ b/api/managementpb/backup/json/client/backups/backups_client.go @@ -48,7 +48,7 @@ type ClientService interface { } /* - ChangeScheduledBackup changes scheduled backup changes existing scheduled backup +ChangeScheduledBackup changes scheduled backup changes existing scheduled backup */ func (a *Client) ChangeScheduledBackup(params *ChangeScheduledBackupParams, opts ...ClientOption) (*ChangeScheduledBackupOK, error) { // TODO: Validate the params before sending @@ -85,7 +85,7 @@ func (a *Client) ChangeScheduledBackup(params *ChangeScheduledBackupParams, opts } /* - GetLogs gets logs returns logs for provided artifact +GetLogs gets logs returns logs for provided artifact */ func (a *Client) GetLogs(params *GetLogsParams, opts ...ClientOption) (*GetLogsOK, error) { // TODO: Validate the params before sending @@ -122,7 +122,7 @@ func (a *Client) GetLogs(params *GetLogsParams, opts ...ClientOption) (*GetLogsO } /* - ListArtifactCompatibleServices lists artifact compatible services lists compatible services for restoring a backup +ListArtifactCompatibleServices lists artifact compatible services lists compatible services for restoring a backup */ func (a *Client) ListArtifactCompatibleServices(params *ListArtifactCompatibleServicesParams, opts ...ClientOption) (*ListArtifactCompatibleServicesOK, error) { // TODO: Validate the params before sending @@ -159,7 +159,7 @@ func (a *Client) ListArtifactCompatibleServices(params *ListArtifactCompatibleSe } /* - ListScheduledBackups lists scheduled backups returns all scheduled backups +ListScheduledBackups lists scheduled backups returns all scheduled backups */ func (a *Client) ListScheduledBackups(params *ListScheduledBackupsParams, opts ...ClientOption) (*ListScheduledBackupsOK, error) { // TODO: Validate the params before sending @@ -196,7 +196,7 @@ func (a *Client) ListScheduledBackups(params *ListScheduledBackupsParams, opts . } /* - RemoveScheduledBackup removes scheduled backup removes existing scheduled backup +RemoveScheduledBackup removes scheduled backup removes existing scheduled backup */ func (a *Client) RemoveScheduledBackup(params *RemoveScheduledBackupParams, opts ...ClientOption) (*RemoveScheduledBackupOK, error) { // TODO: Validate the params before sending @@ -233,9 +233,10 @@ func (a *Client) RemoveScheduledBackup(params *RemoveScheduledBackupParams, opts } /* - RestoreBackup restores backup requests the backup restore + RestoreBackup restores backup requests the backup restore + + Could return the Error message in the details containing specific ErrorCode indicating failure reason: - Could return the Error message in the details containing specific ErrorCode indicating failure reason: ERROR_CODE_XTRABACKUP_NOT_INSTALLED - xtrabackup is not installed on the service ERROR_CODE_INVALID_XTRABACKUP - different versions of xtrabackup and xbcloud ERROR_CODE_INCOMPATIBLE_XTRABACKUP - xtrabackup is not compatible with MySQL for taking a backup @@ -276,7 +277,7 @@ func (a *Client) RestoreBackup(params *RestoreBackupParams, opts ...ClientOption } /* - ScheduleBackup schedules backup schedules repeated backup +ScheduleBackup schedules backup schedules repeated backup */ func (a *Client) ScheduleBackup(params *ScheduleBackupParams, opts ...ClientOption) (*ScheduleBackupOK, error) { // TODO: Validate the params before sending @@ -313,9 +314,10 @@ func (a *Client) ScheduleBackup(params *ScheduleBackupParams, opts ...ClientOpti } /* - StartBackup starts backup request backup specified service to location + StartBackup starts backup request backup specified service to location + + Could return the Error message in the details containing specific ErrorCode indicating failure reason: - Could return the Error message in the details containing specific ErrorCode indicating failure reason: ERROR_CODE_XTRABACKUP_NOT_INSTALLED - xtrabackup is not installed on the service ERROR_CODE_INVALID_XTRABACKUP - different versions of xtrabackup and xbcloud ERROR_CODE_INCOMPATIBLE_XTRABACKUP - xtrabackup is not compatible with MySQL for taking a backup diff --git a/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go b/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go index 4e581166be..e372d89f19 100644 --- a/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go @@ -52,10 +52,12 @@ func NewChangeScheduledBackupParamsWithHTTPClient(client *http.Client) *ChangeSc } } -/* ChangeScheduledBackupParams contains all the parameters to send to the API endpoint - for the change scheduled backup operation. +/* +ChangeScheduledBackupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change scheduled backup operation. + + Typically these are written to a http.Request. */ type ChangeScheduledBackupParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go b/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go index 332a51af7a..eaefe8fc84 100644 --- a/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go @@ -49,7 +49,8 @@ func NewChangeScheduledBackupOK() *ChangeScheduledBackupOK { return &ChangeScheduledBackupOK{} } -/* ChangeScheduledBackupOK describes a response with status code 200, with default header values. +/* +ChangeScheduledBackupOK describes a response with status code 200, with default header values. A successful response. */ @@ -81,7 +82,8 @@ func NewChangeScheduledBackupDefault(code int) *ChangeScheduledBackupDefault { } } -/* ChangeScheduledBackupDefault describes a response with status code -1, with default header values. +/* +ChangeScheduledBackupDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -115,7 +117,8 @@ func (o *ChangeScheduledBackupDefault) readResponse(response runtime.ClientRespo return nil } -/*ChangeScheduledBackupBody change scheduled backup body +/* +ChangeScheduledBackupBody change scheduled backup body swagger:model ChangeScheduledBackupBody */ type ChangeScheduledBackupBody struct { @@ -197,7 +200,8 @@ func (o *ChangeScheduledBackupBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeScheduledBackupDefaultBody change scheduled backup default body +/* +ChangeScheduledBackupDefaultBody change scheduled backup default body swagger:model ChangeScheduledBackupDefaultBody */ type ChangeScheduledBackupDefaultBody struct { @@ -300,7 +304,8 @@ func (o *ChangeScheduledBackupDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeScheduledBackupDefaultBodyDetailsItems0 change scheduled backup default body details items0 +/* +ChangeScheduledBackupDefaultBodyDetailsItems0 change scheduled backup default body details items0 swagger:model ChangeScheduledBackupDefaultBodyDetailsItems0 */ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/backup/json/client/backups/get_logs_parameters.go b/api/managementpb/backup/json/client/backups/get_logs_parameters.go index 66a6418173..d6540699d4 100644 --- a/api/managementpb/backup/json/client/backups/get_logs_parameters.go +++ b/api/managementpb/backup/json/client/backups/get_logs_parameters.go @@ -52,10 +52,12 @@ func NewGetLogsParamsWithHTTPClient(client *http.Client) *GetLogsParams { } } -/* GetLogsParams contains all the parameters to send to the API endpoint - for the get logs operation. +/* +GetLogsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get logs operation. + + Typically these are written to a http.Request. */ type GetLogsParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/get_logs_responses.go b/api/managementpb/backup/json/client/backups/get_logs_responses.go index d2d5730166..2b517f0b74 100644 --- a/api/managementpb/backup/json/client/backups/get_logs_responses.go +++ b/api/managementpb/backup/json/client/backups/get_logs_responses.go @@ -48,7 +48,8 @@ func NewGetLogsOK() *GetLogsOK { return &GetLogsOK{} } -/* GetLogsOK describes a response with status code 200, with default header values. +/* +GetLogsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetLogsDefault(code int) *GetLogsDefault { } } -/* GetLogsDefault describes a response with status code -1, with default header values. +/* +GetLogsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*GetLogsBody get logs body +/* +GetLogsBody get logs body swagger:model GetLogsBody */ type GetLogsBody struct { @@ -158,7 +161,8 @@ func (o *GetLogsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsDefaultBody get logs default body +/* +GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { @@ -261,7 +265,8 @@ func (o *GetLogsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsDefaultBodyDetailsItems0 get logs default body details items0 +/* +GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { @@ -297,7 +302,8 @@ func (o *GetLogsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsOKBody get logs OK body +/* +GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { @@ -397,7 +403,8 @@ func (o *GetLogsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsOKBodyLogsItems0 LogChunk represent one chunk of logs. +/* +GetLogsOKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetLogsOKBodyLogsItems0 */ type GetLogsOKBodyLogsItems0 struct { diff --git a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go index 9dbaa3a55f..a5ecbdeece 100644 --- a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go +++ b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go @@ -52,10 +52,12 @@ func NewListArtifactCompatibleServicesParamsWithHTTPClient(client *http.Client) } } -/* ListArtifactCompatibleServicesParams contains all the parameters to send to the API endpoint - for the list artifact compatible services operation. +/* +ListArtifactCompatibleServicesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list artifact compatible services operation. + + Typically these are written to a http.Request. */ type ListArtifactCompatibleServicesParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go index 4f1dd4e37f..cde43dc58d 100644 --- a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go +++ b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go @@ -48,7 +48,8 @@ func NewListArtifactCompatibleServicesOK() *ListArtifactCompatibleServicesOK { return &ListArtifactCompatibleServicesOK{} } -/* ListArtifactCompatibleServicesOK describes a response with status code 200, with default header values. +/* +ListArtifactCompatibleServicesOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewListArtifactCompatibleServicesDefault(code int) *ListArtifactCompatibleS } } -/* ListArtifactCompatibleServicesDefault describes a response with status code -1, with default header values. +/* +ListArtifactCompatibleServicesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ListArtifactCompatibleServicesDefault) readResponse(response runtime.Cl return nil } -/*ListArtifactCompatibleServicesBody list artifact compatible services body +/* +ListArtifactCompatibleServicesBody list artifact compatible services body swagger:model ListArtifactCompatibleServicesBody */ type ListArtifactCompatibleServicesBody struct { @@ -152,7 +155,8 @@ func (o *ListArtifactCompatibleServicesBody) UnmarshalBinary(b []byte) error { return nil } -/*ListArtifactCompatibleServicesDefaultBody list artifact compatible services default body +/* +ListArtifactCompatibleServicesDefaultBody list artifact compatible services default body swagger:model ListArtifactCompatibleServicesDefaultBody */ type ListArtifactCompatibleServicesDefaultBody struct { @@ -255,7 +259,8 @@ func (o *ListArtifactCompatibleServicesDefaultBody) UnmarshalBinary(b []byte) er return nil } -/*ListArtifactCompatibleServicesDefaultBodyDetailsItems0 list artifact compatible services default body details items0 +/* +ListArtifactCompatibleServicesDefaultBodyDetailsItems0 list artifact compatible services default body details items0 swagger:model ListArtifactCompatibleServicesDefaultBodyDetailsItems0 */ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *ListArtifactCompatibleServicesDefaultBodyDetailsItems0) UnmarshalBinary return nil } -/*ListArtifactCompatibleServicesOKBody list artifact compatible services OK body +/* +ListArtifactCompatibleServicesOKBody list artifact compatible services OK body swagger:model ListArtifactCompatibleServicesOKBody */ type ListArtifactCompatibleServicesOKBody struct { @@ -442,7 +448,8 @@ func (o *ListArtifactCompatibleServicesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListArtifactCompatibleServicesOKBodyMongodbItems0 MongoDBService represents a generic MongoDB instance. +/* +ListArtifactCompatibleServicesOKBodyMongodbItems0 MongoDBService represents a generic MongoDB instance. swagger:model ListArtifactCompatibleServicesOKBodyMongodbItems0 */ type ListArtifactCompatibleServicesOKBodyMongodbItems0 struct { @@ -508,7 +515,8 @@ func (o *ListArtifactCompatibleServicesOKBodyMongodbItems0) UnmarshalBinary(b [] return nil } -/*ListArtifactCompatibleServicesOKBodyMysqlItems0 MySQLService represents a generic MySQL instance. +/* +ListArtifactCompatibleServicesOKBodyMysqlItems0 MySQLService represents a generic MySQL instance. swagger:model ListArtifactCompatibleServicesOKBodyMysqlItems0 */ type ListArtifactCompatibleServicesOKBodyMysqlItems0 struct { diff --git a/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go b/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go index 52fc2b2cf9..e906ca98b7 100644 --- a/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go +++ b/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go @@ -52,10 +52,12 @@ func NewListScheduledBackupsParamsWithHTTPClient(client *http.Client) *ListSched } } -/* ListScheduledBackupsParams contains all the parameters to send to the API endpoint - for the list scheduled backups operation. +/* +ListScheduledBackupsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list scheduled backups operation. + + Typically these are written to a http.Request. */ type ListScheduledBackupsParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go b/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go index 9474fa78ed..caccf8b760 100644 --- a/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go +++ b/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go @@ -50,7 +50,8 @@ func NewListScheduledBackupsOK() *ListScheduledBackupsOK { return &ListScheduledBackupsOK{} } -/* ListScheduledBackupsOK describes a response with status code 200, with default header values. +/* +ListScheduledBackupsOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListScheduledBackupsDefault(code int) *ListScheduledBackupsDefault { } } -/* ListScheduledBackupsDefault describes a response with status code -1, with default header values. +/* +ListScheduledBackupsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListScheduledBackupsDefault) readResponse(response runtime.ClientRespon return nil } -/*ListScheduledBackupsDefaultBody list scheduled backups default body +/* +ListScheduledBackupsDefaultBody list scheduled backups default body swagger:model ListScheduledBackupsDefaultBody */ type ListScheduledBackupsDefaultBody struct { @@ -221,7 +224,8 @@ func (o *ListScheduledBackupsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListScheduledBackupsDefaultBodyDetailsItems0 list scheduled backups default body details items0 +/* +ListScheduledBackupsDefaultBodyDetailsItems0 list scheduled backups default body details items0 swagger:model ListScheduledBackupsDefaultBodyDetailsItems0 */ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *ListScheduledBackupsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*ListScheduledBackupsOKBody list scheduled backups OK body +/* +ListScheduledBackupsOKBody list scheduled backups OK body swagger:model ListScheduledBackupsOKBody */ type ListScheduledBackupsOKBody struct { @@ -354,7 +359,8 @@ func (o *ListScheduledBackupsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListScheduledBackupsOKBodyScheduledBackupsItems0 ScheduledBackup represents scheduled task for backup. +/* +ListScheduledBackupsOKBodyScheduledBackupsItems0 ScheduledBackup represents scheduled task for backup. swagger:model ListScheduledBackupsOKBodyScheduledBackupsItems0 */ type ListScheduledBackupsOKBodyScheduledBackupsItems0 struct { diff --git a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go index b39ac69da5..a488611ff2 100644 --- a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go @@ -52,10 +52,12 @@ func NewRemoveScheduledBackupParamsWithHTTPClient(client *http.Client) *RemoveSc } } -/* RemoveScheduledBackupParams contains all the parameters to send to the API endpoint - for the remove scheduled backup operation. +/* +RemoveScheduledBackupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove scheduled backup operation. + + Typically these are written to a http.Request. */ type RemoveScheduledBackupParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go index 42766576de..053d701ed4 100644 --- a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go @@ -48,7 +48,8 @@ func NewRemoveScheduledBackupOK() *RemoveScheduledBackupOK { return &RemoveScheduledBackupOK{} } -/* RemoveScheduledBackupOK describes a response with status code 200, with default header values. +/* +RemoveScheduledBackupOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRemoveScheduledBackupDefault(code int) *RemoveScheduledBackupDefault { } } -/* RemoveScheduledBackupDefault describes a response with status code -1, with default header values. +/* +RemoveScheduledBackupDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RemoveScheduledBackupDefault) readResponse(response runtime.ClientRespo return nil } -/*RemoveScheduledBackupBody remove scheduled backup body +/* +RemoveScheduledBackupBody remove scheduled backup body swagger:model RemoveScheduledBackupBody */ type RemoveScheduledBackupBody struct { @@ -150,7 +153,8 @@ func (o *RemoveScheduledBackupBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveScheduledBackupDefaultBody remove scheduled backup default body +/* +RemoveScheduledBackupDefaultBody remove scheduled backup default body swagger:model RemoveScheduledBackupDefaultBody */ type RemoveScheduledBackupDefaultBody struct { @@ -253,7 +257,8 @@ func (o *RemoveScheduledBackupDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveScheduledBackupDefaultBodyDetailsItems0 remove scheduled backup default body details items0 +/* +RemoveScheduledBackupDefaultBodyDetailsItems0 remove scheduled backup default body details items0 swagger:model RemoveScheduledBackupDefaultBodyDetailsItems0 */ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/backup/json/client/backups/restore_backup_parameters.go b/api/managementpb/backup/json/client/backups/restore_backup_parameters.go index 68c0537f1b..99b307bab3 100644 --- a/api/managementpb/backup/json/client/backups/restore_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/restore_backup_parameters.go @@ -52,10 +52,12 @@ func NewRestoreBackupParamsWithHTTPClient(client *http.Client) *RestoreBackupPar } } -/* RestoreBackupParams contains all the parameters to send to the API endpoint - for the restore backup operation. +/* +RestoreBackupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the restore backup operation. + + Typically these are written to a http.Request. */ type RestoreBackupParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/restore_backup_responses.go b/api/managementpb/backup/json/client/backups/restore_backup_responses.go index 11abca9f6c..608b6e352c 100644 --- a/api/managementpb/backup/json/client/backups/restore_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/restore_backup_responses.go @@ -48,7 +48,8 @@ func NewRestoreBackupOK() *RestoreBackupOK { return &RestoreBackupOK{} } -/* RestoreBackupOK describes a response with status code 200, with default header values. +/* +RestoreBackupOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewRestoreBackupDefault(code int) *RestoreBackupDefault { } } -/* RestoreBackupDefault describes a response with status code -1, with default header values. +/* +RestoreBackupDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *RestoreBackupDefault) readResponse(response runtime.ClientResponse, con return nil } -/*RestoreBackupBody restore backup body +/* +RestoreBackupBody restore backup body swagger:model RestoreBackupBody */ type RestoreBackupBody struct { @@ -155,7 +158,8 @@ func (o *RestoreBackupBody) UnmarshalBinary(b []byte) error { return nil } -/*RestoreBackupDefaultBody restore backup default body +/* +RestoreBackupDefaultBody restore backup default body swagger:model RestoreBackupDefaultBody */ type RestoreBackupDefaultBody struct { @@ -258,7 +262,8 @@ func (o *RestoreBackupDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RestoreBackupDefaultBodyDetailsItems0 restore backup default body details items0 +/* +RestoreBackupDefaultBodyDetailsItems0 restore backup default body details items0 swagger:model RestoreBackupDefaultBodyDetailsItems0 */ type RestoreBackupDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *RestoreBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*RestoreBackupOKBody restore backup OK body +/* +RestoreBackupOKBody restore backup OK body swagger:model RestoreBackupOKBody */ type RestoreBackupOKBody struct { diff --git a/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go b/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go index c69fdf151d..3aec66ead3 100644 --- a/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go @@ -52,10 +52,12 @@ func NewScheduleBackupParamsWithHTTPClient(client *http.Client) *ScheduleBackupP } } -/* ScheduleBackupParams contains all the parameters to send to the API endpoint - for the schedule backup operation. +/* +ScheduleBackupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the schedule backup operation. + + Typically these are written to a http.Request. */ type ScheduleBackupParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/schedule_backup_responses.go b/api/managementpb/backup/json/client/backups/schedule_backup_responses.go index ed44b8da5f..4753ffc4b3 100644 --- a/api/managementpb/backup/json/client/backups/schedule_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/schedule_backup_responses.go @@ -50,7 +50,8 @@ func NewScheduleBackupOK() *ScheduleBackupOK { return &ScheduleBackupOK{} } -/* ScheduleBackupOK describes a response with status code 200, with default header values. +/* +ScheduleBackupOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewScheduleBackupDefault(code int) *ScheduleBackupDefault { } } -/* ScheduleBackupDefault describes a response with status code -1, with default header values. +/* +ScheduleBackupDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ScheduleBackupDefault) readResponse(response runtime.ClientResponse, co return nil } -/*ScheduleBackupBody schedule backup body +/* +ScheduleBackupBody schedule backup body swagger:model ScheduleBackupBody */ type ScheduleBackupBody struct { @@ -312,7 +315,8 @@ func (o *ScheduleBackupBody) UnmarshalBinary(b []byte) error { return nil } -/*ScheduleBackupDefaultBody schedule backup default body +/* +ScheduleBackupDefaultBody schedule backup default body swagger:model ScheduleBackupDefaultBody */ type ScheduleBackupDefaultBody struct { @@ -415,7 +419,8 @@ func (o *ScheduleBackupDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ScheduleBackupDefaultBodyDetailsItems0 schedule backup default body details items0 +/* +ScheduleBackupDefaultBodyDetailsItems0 schedule backup default body details items0 swagger:model ScheduleBackupDefaultBodyDetailsItems0 */ type ScheduleBackupDefaultBodyDetailsItems0 struct { @@ -451,7 +456,8 @@ func (o *ScheduleBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ScheduleBackupOKBody schedule backup OK body +/* +ScheduleBackupOKBody schedule backup OK body swagger:model ScheduleBackupOKBody */ type ScheduleBackupOKBody struct { diff --git a/api/managementpb/backup/json/client/backups/start_backup_parameters.go b/api/managementpb/backup/json/client/backups/start_backup_parameters.go index 57bb0392fd..55fffd3ba5 100644 --- a/api/managementpb/backup/json/client/backups/start_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/start_backup_parameters.go @@ -52,10 +52,12 @@ func NewStartBackupParamsWithHTTPClient(client *http.Client) *StartBackupParams } } -/* StartBackupParams contains all the parameters to send to the API endpoint - for the start backup operation. +/* +StartBackupParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start backup operation. + + Typically these are written to a http.Request. */ type StartBackupParams struct { // Body. diff --git a/api/managementpb/backup/json/client/backups/start_backup_responses.go b/api/managementpb/backup/json/client/backups/start_backup_responses.go index cb1d4302fd..6c4786db9d 100644 --- a/api/managementpb/backup/json/client/backups/start_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/start_backup_responses.go @@ -50,7 +50,8 @@ func NewStartBackupOK() *StartBackupOK { return &StartBackupOK{} } -/* StartBackupOK describes a response with status code 200, with default header values. +/* +StartBackupOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewStartBackupDefault(code int) *StartBackupDefault { } } -/* StartBackupDefault describes a response with status code -1, with default header values. +/* +StartBackupDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *StartBackupDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*StartBackupBody start backup body +/* +StartBackupBody start backup body swagger:model StartBackupBody */ type StartBackupBody struct { @@ -227,7 +230,8 @@ func (o *StartBackupBody) UnmarshalBinary(b []byte) error { return nil } -/*StartBackupDefaultBody start backup default body +/* +StartBackupDefaultBody start backup default body swagger:model StartBackupDefaultBody */ type StartBackupDefaultBody struct { @@ -330,7 +334,8 @@ func (o *StartBackupDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartBackupDefaultBodyDetailsItems0 start backup default body details items0 +/* +StartBackupDefaultBodyDetailsItems0 start backup default body details items0 swagger:model StartBackupDefaultBodyDetailsItems0 */ type StartBackupDefaultBodyDetailsItems0 struct { @@ -366,7 +371,8 @@ func (o *StartBackupDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*StartBackupOKBody start backup OK body +/* +StartBackupOKBody start backup OK body swagger:model StartBackupOKBody */ type StartBackupOKBody struct { diff --git a/api/managementpb/backup/json/client/locations/add_location_parameters.go b/api/managementpb/backup/json/client/locations/add_location_parameters.go index c29995226a..7c8120fc3d 100644 --- a/api/managementpb/backup/json/client/locations/add_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/add_location_parameters.go @@ -52,10 +52,12 @@ func NewAddLocationParamsWithHTTPClient(client *http.Client) *AddLocationParams } } -/* AddLocationParams contains all the parameters to send to the API endpoint - for the add location operation. +/* +AddLocationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add location operation. + + Typically these are written to a http.Request. */ type AddLocationParams struct { // Body. diff --git a/api/managementpb/backup/json/client/locations/add_location_responses.go b/api/managementpb/backup/json/client/locations/add_location_responses.go index 717fb05ca4..541af9a52d 100644 --- a/api/managementpb/backup/json/client/locations/add_location_responses.go +++ b/api/managementpb/backup/json/client/locations/add_location_responses.go @@ -48,7 +48,8 @@ func NewAddLocationOK() *AddLocationOK { return &AddLocationOK{} } -/* AddLocationOK describes a response with status code 200, with default header values. +/* +AddLocationOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddLocationDefault(code int) *AddLocationDefault { } } -/* AddLocationDefault describes a response with status code -1, with default header values. +/* +AddLocationDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddLocationDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*AddLocationBody add location body +/* +AddLocationBody add location body swagger:model AddLocationBody */ type AddLocationBody struct { @@ -300,7 +303,8 @@ func (o *AddLocationBody) UnmarshalBinary(b []byte) error { return nil } -/*AddLocationDefaultBody add location default body +/* +AddLocationDefaultBody add location default body swagger:model AddLocationDefaultBody */ type AddLocationDefaultBody struct { @@ -403,7 +407,8 @@ func (o *AddLocationDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddLocationDefaultBodyDetailsItems0 add location default body details items0 +/* +AddLocationDefaultBodyDetailsItems0 add location default body details items0 swagger:model AddLocationDefaultBodyDetailsItems0 */ type AddLocationDefaultBodyDetailsItems0 struct { @@ -439,7 +444,8 @@ func (o *AddLocationDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddLocationOKBody add location OK body +/* +AddLocationOKBody add location OK body swagger:model AddLocationOKBody */ type AddLocationOKBody struct { @@ -475,7 +481,8 @@ func (o *AddLocationOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. +/* +AddLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model AddLocationParamsBodyPMMClientConfig */ type AddLocationParamsBodyPMMClientConfig struct { @@ -511,7 +518,8 @@ func (o *AddLocationParamsBodyPMMClientConfig) UnmarshalBinary(b []byte) error { return nil } -/*AddLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. +/* +AddLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model AddLocationParamsBodyPMMServerConfig */ type AddLocationParamsBodyPMMServerConfig struct { @@ -547,7 +555,8 @@ func (o *AddLocationParamsBodyPMMServerConfig) UnmarshalBinary(b []byte) error { return nil } -/*AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. +/* +AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. swagger:model AddLocationParamsBodyS3Config */ type AddLocationParamsBodyS3Config struct { diff --git a/api/managementpb/backup/json/client/locations/change_location_parameters.go b/api/managementpb/backup/json/client/locations/change_location_parameters.go index 5560be3ae9..c24f94e848 100644 --- a/api/managementpb/backup/json/client/locations/change_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/change_location_parameters.go @@ -52,10 +52,12 @@ func NewChangeLocationParamsWithHTTPClient(client *http.Client) *ChangeLocationP } } -/* ChangeLocationParams contains all the parameters to send to the API endpoint - for the change location operation. +/* +ChangeLocationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change location operation. + + Typically these are written to a http.Request. */ type ChangeLocationParams struct { // Body. diff --git a/api/managementpb/backup/json/client/locations/change_location_responses.go b/api/managementpb/backup/json/client/locations/change_location_responses.go index e7b0d7c762..9f71cf16f4 100644 --- a/api/managementpb/backup/json/client/locations/change_location_responses.go +++ b/api/managementpb/backup/json/client/locations/change_location_responses.go @@ -48,7 +48,8 @@ func NewChangeLocationOK() *ChangeLocationOK { return &ChangeLocationOK{} } -/* ChangeLocationOK describes a response with status code 200, with default header values. +/* +ChangeLocationOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewChangeLocationDefault(code int) *ChangeLocationDefault { } } -/* ChangeLocationDefault describes a response with status code -1, with default header values. +/* +ChangeLocationDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ChangeLocationDefault) readResponse(response runtime.ClientResponse, co return nil } -/*ChangeLocationBody change location body +/* +ChangeLocationBody change location body swagger:model ChangeLocationBody */ type ChangeLocationBody struct { @@ -301,7 +304,8 @@ func (o *ChangeLocationBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeLocationDefaultBody change location default body +/* +ChangeLocationDefaultBody change location default body swagger:model ChangeLocationDefaultBody */ type ChangeLocationDefaultBody struct { @@ -404,7 +408,8 @@ func (o *ChangeLocationDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeLocationDefaultBodyDetailsItems0 change location default body details items0 +/* +ChangeLocationDefaultBodyDetailsItems0 change location default body details items0 swagger:model ChangeLocationDefaultBodyDetailsItems0 */ type ChangeLocationDefaultBodyDetailsItems0 struct { @@ -440,7 +445,8 @@ func (o *ChangeLocationDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ChangeLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. +/* +ChangeLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model ChangeLocationParamsBodyPMMClientConfig */ type ChangeLocationParamsBodyPMMClientConfig struct { @@ -476,7 +482,8 @@ func (o *ChangeLocationParamsBodyPMMClientConfig) UnmarshalBinary(b []byte) erro return nil } -/*ChangeLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. +/* +ChangeLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model ChangeLocationParamsBodyPMMServerConfig */ type ChangeLocationParamsBodyPMMServerConfig struct { @@ -512,7 +519,8 @@ func (o *ChangeLocationParamsBodyPMMServerConfig) UnmarshalBinary(b []byte) erro return nil } -/*ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. +/* +ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. swagger:model ChangeLocationParamsBodyS3Config */ type ChangeLocationParamsBodyS3Config struct { diff --git a/api/managementpb/backup/json/client/locations/list_locations_parameters.go b/api/managementpb/backup/json/client/locations/list_locations_parameters.go index ed41d5d1e4..070bf3c0d3 100644 --- a/api/managementpb/backup/json/client/locations/list_locations_parameters.go +++ b/api/managementpb/backup/json/client/locations/list_locations_parameters.go @@ -52,10 +52,12 @@ func NewListLocationsParamsWithHTTPClient(client *http.Client) *ListLocationsPar } } -/* ListLocationsParams contains all the parameters to send to the API endpoint - for the list locations operation. +/* +ListLocationsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list locations operation. + + Typically these are written to a http.Request. */ type ListLocationsParams struct { // Body. diff --git a/api/managementpb/backup/json/client/locations/list_locations_responses.go b/api/managementpb/backup/json/client/locations/list_locations_responses.go index 611cd0ac6c..4400e58783 100644 --- a/api/managementpb/backup/json/client/locations/list_locations_responses.go +++ b/api/managementpb/backup/json/client/locations/list_locations_responses.go @@ -48,7 +48,8 @@ func NewListLocationsOK() *ListLocationsOK { return &ListLocationsOK{} } -/* ListLocationsOK describes a response with status code 200, with default header values. +/* +ListLocationsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewListLocationsDefault(code int) *ListLocationsDefault { } } -/* ListLocationsDefault describes a response with status code -1, with default header values. +/* +ListLocationsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ListLocationsDefault) readResponse(response runtime.ClientResponse, con return nil } -/*ListLocationsDefaultBody list locations default body +/* +ListLocationsDefaultBody list locations default body swagger:model ListLocationsDefaultBody */ type ListLocationsDefaultBody struct { @@ -219,7 +222,8 @@ func (o *ListLocationsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListLocationsDefaultBodyDetailsItems0 list locations default body details items0 +/* +ListLocationsDefaultBodyDetailsItems0 list locations default body details items0 swagger:model ListLocationsDefaultBodyDetailsItems0 */ type ListLocationsDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *ListLocationsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ListLocationsOKBody list locations OK body +/* +ListLocationsOKBody list locations OK body swagger:model ListLocationsOKBody */ type ListLocationsOKBody struct { @@ -352,7 +357,8 @@ func (o *ListLocationsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListLocationsOKBodyLocationsItems0 Location represents single Backup Location. +/* +ListLocationsOKBodyLocationsItems0 Location represents single Backup Location. swagger:model ListLocationsOKBodyLocationsItems0 */ type ListLocationsOKBodyLocationsItems0 struct { @@ -539,7 +545,8 @@ func (o *ListLocationsOKBodyLocationsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListLocationsOKBodyLocationsItems0PMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. +/* +ListLocationsOKBodyLocationsItems0PMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model ListLocationsOKBodyLocationsItems0PMMClientConfig */ type ListLocationsOKBodyLocationsItems0PMMClientConfig struct { @@ -575,7 +582,8 @@ func (o *ListLocationsOKBodyLocationsItems0PMMClientConfig) UnmarshalBinary(b [] return nil } -/*ListLocationsOKBodyLocationsItems0PMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. +/* +ListLocationsOKBodyLocationsItems0PMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model ListLocationsOKBodyLocationsItems0PMMServerConfig */ type ListLocationsOKBodyLocationsItems0PMMServerConfig struct { @@ -611,7 +619,8 @@ func (o *ListLocationsOKBodyLocationsItems0PMMServerConfig) UnmarshalBinary(b [] return nil } -/*ListLocationsOKBodyLocationsItems0S3Config S3LocationConfig represents S3 bucket configuration. +/* +ListLocationsOKBodyLocationsItems0S3Config S3LocationConfig represents S3 bucket configuration. swagger:model ListLocationsOKBodyLocationsItems0S3Config */ type ListLocationsOKBodyLocationsItems0S3Config struct { diff --git a/api/managementpb/backup/json/client/locations/locations_client.go b/api/managementpb/backup/json/client/locations/locations_client.go index 79ab67cc7a..67e64a69a1 100644 --- a/api/managementpb/backup/json/client/locations/locations_client.go +++ b/api/managementpb/backup/json/client/locations/locations_client.go @@ -42,7 +42,7 @@ type ClientService interface { } /* - AddLocation adds location adds backup location +AddLocation adds location adds backup location */ func (a *Client) AddLocation(params *AddLocationParams, opts ...ClientOption) (*AddLocationOK, error) { // TODO: Validate the params before sending @@ -79,7 +79,7 @@ func (a *Client) AddLocation(params *AddLocationParams, opts ...ClientOption) (* } /* - ChangeLocation changes location changes backup location +ChangeLocation changes location changes backup location */ func (a *Client) ChangeLocation(params *ChangeLocationParams, opts ...ClientOption) (*ChangeLocationOK, error) { // TODO: Validate the params before sending @@ -116,7 +116,7 @@ func (a *Client) ChangeLocation(params *ChangeLocationParams, opts ...ClientOpti } /* - ListLocations lists locations returns a list of all backup locations +ListLocations lists locations returns a list of all backup locations */ func (a *Client) ListLocations(params *ListLocationsParams, opts ...ClientOption) (*ListLocationsOK, error) { // TODO: Validate the params before sending @@ -153,7 +153,7 @@ func (a *Client) ListLocations(params *ListLocationsParams, opts ...ClientOption } /* - RemoveLocation removes location removes existing backup location +RemoveLocation removes location removes existing backup location */ func (a *Client) RemoveLocation(params *RemoveLocationParams, opts ...ClientOption) (*RemoveLocationOK, error) { // TODO: Validate the params before sending @@ -190,7 +190,7 @@ func (a *Client) RemoveLocation(params *RemoveLocationParams, opts ...ClientOpti } /* - TestLocationConfig tests location config tests backup location and credentials +TestLocationConfig tests location config tests backup location and credentials */ func (a *Client) TestLocationConfig(params *TestLocationConfigParams, opts ...ClientOption) (*TestLocationConfigOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/backup/json/client/locations/remove_location_parameters.go b/api/managementpb/backup/json/client/locations/remove_location_parameters.go index a9fc0e18e7..593dd04ecd 100644 --- a/api/managementpb/backup/json/client/locations/remove_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/remove_location_parameters.go @@ -52,10 +52,12 @@ func NewRemoveLocationParamsWithHTTPClient(client *http.Client) *RemoveLocationP } } -/* RemoveLocationParams contains all the parameters to send to the API endpoint - for the remove location operation. +/* +RemoveLocationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove location operation. + + Typically these are written to a http.Request. */ type RemoveLocationParams struct { // Body. diff --git a/api/managementpb/backup/json/client/locations/remove_location_responses.go b/api/managementpb/backup/json/client/locations/remove_location_responses.go index f5e2c4eb32..9177250956 100644 --- a/api/managementpb/backup/json/client/locations/remove_location_responses.go +++ b/api/managementpb/backup/json/client/locations/remove_location_responses.go @@ -48,7 +48,8 @@ func NewRemoveLocationOK() *RemoveLocationOK { return &RemoveLocationOK{} } -/* RemoveLocationOK describes a response with status code 200, with default header values. +/* +RemoveLocationOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRemoveLocationDefault(code int) *RemoveLocationDefault { } } -/* RemoveLocationDefault describes a response with status code -1, with default header values. +/* +RemoveLocationDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RemoveLocationDefault) readResponse(response runtime.ClientResponse, co return nil } -/*RemoveLocationBody remove location body +/* +RemoveLocationBody remove location body swagger:model RemoveLocationBody */ type RemoveLocationBody struct { @@ -153,7 +156,8 @@ func (o *RemoveLocationBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveLocationDefaultBody remove location default body +/* +RemoveLocationDefaultBody remove location default body swagger:model RemoveLocationDefaultBody */ type RemoveLocationDefaultBody struct { @@ -256,7 +260,8 @@ func (o *RemoveLocationDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveLocationDefaultBodyDetailsItems0 remove location default body details items0 +/* +RemoveLocationDefaultBodyDetailsItems0 remove location default body details items0 swagger:model RemoveLocationDefaultBodyDetailsItems0 */ type RemoveLocationDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/backup/json/client/locations/test_location_config_parameters.go b/api/managementpb/backup/json/client/locations/test_location_config_parameters.go index 4fd8b49856..b694abba5e 100644 --- a/api/managementpb/backup/json/client/locations/test_location_config_parameters.go +++ b/api/managementpb/backup/json/client/locations/test_location_config_parameters.go @@ -52,10 +52,12 @@ func NewTestLocationConfigParamsWithHTTPClient(client *http.Client) *TestLocatio } } -/* TestLocationConfigParams contains all the parameters to send to the API endpoint - for the test location config operation. +/* +TestLocationConfigParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the test location config operation. + + Typically these are written to a http.Request. */ type TestLocationConfigParams struct { // Body. diff --git a/api/managementpb/backup/json/client/locations/test_location_config_responses.go b/api/managementpb/backup/json/client/locations/test_location_config_responses.go index 5a830465d5..30b30ae21d 100644 --- a/api/managementpb/backup/json/client/locations/test_location_config_responses.go +++ b/api/managementpb/backup/json/client/locations/test_location_config_responses.go @@ -48,7 +48,8 @@ func NewTestLocationConfigOK() *TestLocationConfigOK { return &TestLocationConfigOK{} } -/* TestLocationConfigOK describes a response with status code 200, with default header values. +/* +TestLocationConfigOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewTestLocationConfigDefault(code int) *TestLocationConfigDefault { } } -/* TestLocationConfigDefault describes a response with status code -1, with default header values. +/* +TestLocationConfigDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *TestLocationConfigDefault) readResponse(response runtime.ClientResponse return nil } -/*TestLocationConfigBody test location config body +/* +TestLocationConfigBody test location config body swagger:model TestLocationConfigBody */ type TestLocationConfigBody struct { @@ -292,7 +295,8 @@ func (o *TestLocationConfigBody) UnmarshalBinary(b []byte) error { return nil } -/*TestLocationConfigDefaultBody test location config default body +/* +TestLocationConfigDefaultBody test location config default body swagger:model TestLocationConfigDefaultBody */ type TestLocationConfigDefaultBody struct { @@ -395,7 +399,8 @@ func (o *TestLocationConfigDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*TestLocationConfigDefaultBodyDetailsItems0 test location config default body details items0 +/* +TestLocationConfigDefaultBodyDetailsItems0 test location config default body details items0 swagger:model TestLocationConfigDefaultBodyDetailsItems0 */ type TestLocationConfigDefaultBodyDetailsItems0 struct { @@ -431,7 +436,8 @@ func (o *TestLocationConfigDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*TestLocationConfigParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. +/* +TestLocationConfigParamsBodyPMMClientConfig PMMClientLocationConfig represents file system config inside pmm-client. swagger:model TestLocationConfigParamsBodyPMMClientConfig */ type TestLocationConfigParamsBodyPMMClientConfig struct { @@ -467,7 +473,8 @@ func (o *TestLocationConfigParamsBodyPMMClientConfig) UnmarshalBinary(b []byte) return nil } -/*TestLocationConfigParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. +/* +TestLocationConfigParamsBodyPMMServerConfig PMMServerLocationConfig represents file system config inside pmm-server. swagger:model TestLocationConfigParamsBodyPMMServerConfig */ type TestLocationConfigParamsBodyPMMServerConfig struct { @@ -503,7 +510,8 @@ func (o *TestLocationConfigParamsBodyPMMServerConfig) UnmarshalBinary(b []byte) return nil } -/*TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. +/* +TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket configuration. swagger:model TestLocationConfigParamsBodyS3Config */ type TestLocationConfigParamsBodyS3Config struct { diff --git a/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go b/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go index 7da97422b3..e9058f4280 100644 --- a/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go +++ b/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go @@ -52,10 +52,12 @@ func NewListRestoreHistoryParamsWithHTTPClient(client *http.Client) *ListRestore } } -/* ListRestoreHistoryParams contains all the parameters to send to the API endpoint - for the list restore history operation. +/* +ListRestoreHistoryParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list restore history operation. + + Typically these are written to a http.Request. */ type ListRestoreHistoryParams struct { // Body. diff --git a/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go b/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go index bb872332fe..e981d190f7 100644 --- a/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go +++ b/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go @@ -50,7 +50,8 @@ func NewListRestoreHistoryOK() *ListRestoreHistoryOK { return &ListRestoreHistoryOK{} } -/* ListRestoreHistoryOK describes a response with status code 200, with default header values. +/* +ListRestoreHistoryOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListRestoreHistoryDefault(code int) *ListRestoreHistoryDefault { } } -/* ListRestoreHistoryDefault describes a response with status code -1, with default header values. +/* +ListRestoreHistoryDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListRestoreHistoryDefault) readResponse(response runtime.ClientResponse return nil } -/*ListRestoreHistoryDefaultBody list restore history default body +/* +ListRestoreHistoryDefaultBody list restore history default body swagger:model ListRestoreHistoryDefaultBody */ type ListRestoreHistoryDefaultBody struct { @@ -221,7 +224,8 @@ func (o *ListRestoreHistoryDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListRestoreHistoryDefaultBodyDetailsItems0 list restore history default body details items0 +/* +ListRestoreHistoryDefaultBodyDetailsItems0 list restore history default body details items0 swagger:model ListRestoreHistoryDefaultBodyDetailsItems0 */ type ListRestoreHistoryDefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *ListRestoreHistoryDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*ListRestoreHistoryOKBody list restore history OK body +/* +ListRestoreHistoryOKBody list restore history OK body swagger:model ListRestoreHistoryOKBody */ type ListRestoreHistoryOKBody struct { @@ -354,7 +359,8 @@ func (o *ListRestoreHistoryOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListRestoreHistoryOKBodyItemsItems0 RestoreHistoryItem represents single backup restore item. +/* +ListRestoreHistoryOKBodyItemsItems0 RestoreHistoryItem represents single backup restore item. swagger:model ListRestoreHistoryOKBodyItemsItems0 */ type ListRestoreHistoryOKBodyItemsItems0 struct { diff --git a/api/managementpb/backup/json/client/restore_history/restore_history_client.go b/api/managementpb/backup/json/client/restore_history/restore_history_client.go index b458ade6ab..17014b5fe2 100644 --- a/api/managementpb/backup/json/client/restore_history/restore_history_client.go +++ b/api/managementpb/backup/json/client/restore_history/restore_history_client.go @@ -34,7 +34,7 @@ type ClientService interface { } /* - ListRestoreHistory lists restore history returns a list of all backup restore history items +ListRestoreHistory lists restore history returns a list of all backup restore history items */ func (a *Client) ListRestoreHistory(params *ListRestoreHistoryParams, opts ...ClientOption) (*ListRestoreHistoryOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/backup/locations.pb.go b/api/managementpb/backup/locations.pb.go index c9b2631123..1acd5309f7 100644 --- a/api/managementpb/backup/locations.pb.go +++ b/api/managementpb/backup/locations.pb.go @@ -204,6 +204,7 @@ type Location struct { // Short description Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Types that are assignable to Config: + // // *Location_PmmClientConfig // *Location_PmmServerConfig // *Location_S3Config diff --git a/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go b/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go index 86de44fccf..994b10c916 100644 --- a/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go @@ -52,10 +52,12 @@ func NewChangePSMDBComponentsParamsWithHTTPClient(client *http.Client) *ChangePS } } -/* ChangePSMDBComponentsParams contains all the parameters to send to the API endpoint - for the change PSMDB components operation. +/* +ChangePSMDBComponentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change PSMDB components operation. + + Typically these are written to a http.Request. */ type ChangePSMDBComponentsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go b/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go index 1265ba6c86..e0109e186b 100644 --- a/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go @@ -48,7 +48,8 @@ func NewChangePSMDBComponentsOK() *ChangePSMDBComponentsOK { return &ChangePSMDBComponentsOK{} } -/* ChangePSMDBComponentsOK describes a response with status code 200, with default header values. +/* +ChangePSMDBComponentsOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewChangePSMDBComponentsDefault(code int) *ChangePSMDBComponentsDefault { } } -/* ChangePSMDBComponentsDefault describes a response with status code -1, with default header values. +/* +ChangePSMDBComponentsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ChangePSMDBComponentsDefault) readResponse(response runtime.ClientRespo return nil } -/*ChangePSMDBComponentsBody change PSMDB components body +/* +ChangePSMDBComponentsBody change PSMDB components body swagger:model ChangePSMDBComponentsBody */ type ChangePSMDBComponentsBody struct { @@ -205,7 +208,8 @@ func (o *ChangePSMDBComponentsBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePSMDBComponentsDefaultBody change PSMDB components default body +/* +ChangePSMDBComponentsDefaultBody change PSMDB components default body swagger:model ChangePSMDBComponentsDefaultBody */ type ChangePSMDBComponentsDefaultBody struct { @@ -308,7 +312,8 @@ func (o *ChangePSMDBComponentsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePSMDBComponentsDefaultBodyDetailsItems0 change PSMDB components default body details items0 +/* +ChangePSMDBComponentsDefaultBodyDetailsItems0 change PSMDB components default body details items0 swagger:model ChangePSMDBComponentsDefaultBodyDetailsItems0 */ type ChangePSMDBComponentsDefaultBodyDetailsItems0 struct { @@ -344,7 +349,8 @@ func (o *ChangePSMDBComponentsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte return nil } -/*ChangePSMDBComponentsParamsBodyMongod ChangeComponent contains fields to manage components. +/* +ChangePSMDBComponentsParamsBodyMongod ChangeComponent contains fields to manage components. swagger:model ChangePSMDBComponentsParamsBodyMongod */ type ChangePSMDBComponentsParamsBodyMongod struct { @@ -444,7 +450,8 @@ func (o *ChangePSMDBComponentsParamsBodyMongod) UnmarshalBinary(b []byte) error return nil } -/*ChangePSMDBComponentsParamsBodyMongodVersionsItems0 ComponentVersion contains operations which should be done with component version. +/* +ChangePSMDBComponentsParamsBodyMongodVersionsItems0 ComponentVersion contains operations which should be done with component version. swagger:model ChangePSMDBComponentsParamsBodyMongodVersionsItems0 */ type ChangePSMDBComponentsParamsBodyMongodVersionsItems0 struct { diff --git a/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go b/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go index effd5a30b7..70fe656ec4 100644 --- a/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go @@ -52,10 +52,12 @@ func NewChangePXCComponentsParamsWithHTTPClient(client *http.Client) *ChangePXCC } } -/* ChangePXCComponentsParams contains all the parameters to send to the API endpoint - for the change PXC components operation. +/* +ChangePXCComponentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change PXC components operation. + + Typically these are written to a http.Request. */ type ChangePXCComponentsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go b/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go index 65af7cd30b..859e985218 100644 --- a/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go @@ -48,7 +48,8 @@ func NewChangePXCComponentsOK() *ChangePXCComponentsOK { return &ChangePXCComponentsOK{} } -/* ChangePXCComponentsOK describes a response with status code 200, with default header values. +/* +ChangePXCComponentsOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewChangePXCComponentsDefault(code int) *ChangePXCComponentsDefault { } } -/* ChangePXCComponentsDefault describes a response with status code -1, with default header values. +/* +ChangePXCComponentsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ChangePXCComponentsDefault) readResponse(response runtime.ClientRespons return nil } -/*ChangePXCComponentsBody change PXC components body +/* +ChangePXCComponentsBody change PXC components body swagger:model ChangePXCComponentsBody */ type ChangePXCComponentsBody struct { @@ -295,7 +298,8 @@ func (o *ChangePXCComponentsBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePXCComponentsDefaultBody change PXC components default body +/* +ChangePXCComponentsDefaultBody change PXC components default body swagger:model ChangePXCComponentsDefaultBody */ type ChangePXCComponentsDefaultBody struct { @@ -398,7 +402,8 @@ func (o *ChangePXCComponentsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangePXCComponentsDefaultBodyDetailsItems0 change PXC components default body details items0 +/* +ChangePXCComponentsDefaultBodyDetailsItems0 change PXC components default body details items0 swagger:model ChangePXCComponentsDefaultBodyDetailsItems0 */ type ChangePXCComponentsDefaultBodyDetailsItems0 struct { @@ -434,7 +439,8 @@ func (o *ChangePXCComponentsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*ChangePXCComponentsParamsBodyHaproxy ChangeComponent contains fields to manage components. +/* +ChangePXCComponentsParamsBodyHaproxy ChangeComponent contains fields to manage components. swagger:model ChangePXCComponentsParamsBodyHaproxy */ type ChangePXCComponentsParamsBodyHaproxy struct { @@ -534,7 +540,8 @@ func (o *ChangePXCComponentsParamsBodyHaproxy) UnmarshalBinary(b []byte) error { return nil } -/*ChangePXCComponentsParamsBodyHaproxyVersionsItems0 ComponentVersion contains operations which should be done with component version. +/* +ChangePXCComponentsParamsBodyHaproxyVersionsItems0 ComponentVersion contains operations which should be done with component version. swagger:model ChangePXCComponentsParamsBodyHaproxyVersionsItems0 */ type ChangePXCComponentsParamsBodyHaproxyVersionsItems0 struct { @@ -576,7 +583,8 @@ func (o *ChangePXCComponentsParamsBodyHaproxyVersionsItems0) UnmarshalBinary(b [ return nil } -/*ChangePXCComponentsParamsBodyPXC ChangeComponent contains fields to manage components. +/* +ChangePXCComponentsParamsBodyPXC ChangeComponent contains fields to manage components. swagger:model ChangePXCComponentsParamsBodyPXC */ type ChangePXCComponentsParamsBodyPXC struct { @@ -676,7 +684,8 @@ func (o *ChangePXCComponentsParamsBodyPXC) UnmarshalBinary(b []byte) error { return nil } -/*ChangePXCComponentsParamsBodyPXCVersionsItems0 ComponentVersion contains operations which should be done with component version. +/* +ChangePXCComponentsParamsBodyPXCVersionsItems0 ComponentVersion contains operations which should be done with component version. swagger:model ChangePXCComponentsParamsBodyPXCVersionsItems0 */ type ChangePXCComponentsParamsBodyPXCVersionsItems0 struct { @@ -718,7 +727,8 @@ func (o *ChangePXCComponentsParamsBodyPXCVersionsItems0) UnmarshalBinary(b []byt return nil } -/*ChangePXCComponentsParamsBodyProxysql ChangeComponent contains fields to manage components. +/* +ChangePXCComponentsParamsBodyProxysql ChangeComponent contains fields to manage components. swagger:model ChangePXCComponentsParamsBodyProxysql */ type ChangePXCComponentsParamsBodyProxysql struct { @@ -818,7 +828,8 @@ func (o *ChangePXCComponentsParamsBodyProxysql) UnmarshalBinary(b []byte) error return nil } -/*ChangePXCComponentsParamsBodyProxysqlVersionsItems0 ComponentVersion contains operations which should be done with component version. +/* +ChangePXCComponentsParamsBodyProxysqlVersionsItems0 ComponentVersion contains operations which should be done with component version. swagger:model ChangePXCComponentsParamsBodyProxysqlVersionsItems0 */ type ChangePXCComponentsParamsBodyProxysqlVersionsItems0 struct { diff --git a/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go b/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go index e221135ade..dab12d01aa 100644 --- a/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go +++ b/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go @@ -52,10 +52,12 @@ func NewCheckForOperatorUpdateParamsWithHTTPClient(client *http.Client) *CheckFo } } -/* CheckForOperatorUpdateParams contains all the parameters to send to the API endpoint - for the check for operator update operation. +/* +CheckForOperatorUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the check for operator update operation. + + Typically these are written to a http.Request. */ type CheckForOperatorUpdateParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go b/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go index 1355caede1..796a42c153 100644 --- a/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go +++ b/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go @@ -48,7 +48,8 @@ func NewCheckForOperatorUpdateOK() *CheckForOperatorUpdateOK { return &CheckForOperatorUpdateOK{} } -/* CheckForOperatorUpdateOK describes a response with status code 200, with default header values. +/* +CheckForOperatorUpdateOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewCheckForOperatorUpdateDefault(code int) *CheckForOperatorUpdateDefault { } } -/* CheckForOperatorUpdateDefault describes a response with status code -1, with default header values. +/* +CheckForOperatorUpdateDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *CheckForOperatorUpdateDefault) readResponse(response runtime.ClientResp return nil } -/*CheckForOperatorUpdateDefaultBody check for operator update default body +/* +CheckForOperatorUpdateDefaultBody check for operator update default body swagger:model CheckForOperatorUpdateDefaultBody */ type CheckForOperatorUpdateDefaultBody struct { @@ -219,7 +222,8 @@ func (o *CheckForOperatorUpdateDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CheckForOperatorUpdateDefaultBodyDetailsItems0 check for operator update default body details items0 +/* +CheckForOperatorUpdateDefaultBodyDetailsItems0 check for operator update default body details items0 swagger:model CheckForOperatorUpdateDefaultBodyDetailsItems0 */ type CheckForOperatorUpdateDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *CheckForOperatorUpdateDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*CheckForOperatorUpdateOKBody check for operator update OK body +/* +CheckForOperatorUpdateOKBody check for operator update OK body swagger:model CheckForOperatorUpdateOKBody */ type CheckForOperatorUpdateOKBody struct { @@ -347,7 +352,8 @@ func (o *CheckForOperatorUpdateOKBody) UnmarshalBinary(b []byte) error { return nil } -/*CheckForOperatorUpdateOKBodyClusterToComponentsAnon ComponentsUpdateInformation contains info about components and their available latest versions. +/* +CheckForOperatorUpdateOKBodyClusterToComponentsAnon ComponentsUpdateInformation contains info about components and their available latest versions. swagger:model CheckForOperatorUpdateOKBodyClusterToComponentsAnon */ type CheckForOperatorUpdateOKBodyClusterToComponentsAnon struct { @@ -440,7 +446,8 @@ func (o *CheckForOperatorUpdateOKBodyClusterToComponentsAnon) UnmarshalBinary(b return nil } -/*CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon ComponentUpdateInformation contains version we can update to for certain component. +/* +CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon ComponentUpdateInformation contains version we can update to for certain component. swagger:model CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon */ type CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon struct { diff --git a/api/managementpb/dbaas/json/client/components/components_client.go b/api/managementpb/dbaas/json/client/components/components_client.go index 6199f868e6..f8e2158d82 100644 --- a/api/managementpb/dbaas/json/client/components/components_client.go +++ b/api/managementpb/dbaas/json/client/components/components_client.go @@ -44,7 +44,7 @@ type ClientService interface { } /* - ChangePSMDBComponents changes PSMDB components manages PSMDB related components +ChangePSMDBComponents changes PSMDB components manages PSMDB related components */ func (a *Client) ChangePSMDBComponents(params *ChangePSMDBComponentsParams, opts ...ClientOption) (*ChangePSMDBComponentsOK, error) { // TODO: Validate the params before sending @@ -81,7 +81,7 @@ func (a *Client) ChangePSMDBComponents(params *ChangePSMDBComponentsParams, opts } /* - ChangePXCComponents changes PXC components manages PXC related components +ChangePXCComponents changes PXC components manages PXC related components */ func (a *Client) ChangePXCComponents(params *ChangePXCComponentsParams, opts ...ClientOption) (*ChangePXCComponentsOK, error) { // TODO: Validate the params before sending @@ -118,7 +118,7 @@ func (a *Client) ChangePXCComponents(params *ChangePXCComponentsParams, opts ... } /* - CheckForOperatorUpdate checks for operator update checks if a new version of an operator is available +CheckForOperatorUpdate checks for operator update checks if a new version of an operator is available */ func (a *Client) CheckForOperatorUpdate(params *CheckForOperatorUpdateParams, opts ...ClientOption) (*CheckForOperatorUpdateOK, error) { // TODO: Validate the params before sending @@ -155,7 +155,7 @@ func (a *Client) CheckForOperatorUpdate(params *CheckForOperatorUpdateParams, op } /* - GetPSMDBComponents gets PSMDB components returns list of available components for PSMDB clusters +GetPSMDBComponents gets PSMDB components returns list of available components for PSMDB clusters */ func (a *Client) GetPSMDBComponents(params *GetPSMDBComponentsParams, opts ...ClientOption) (*GetPSMDBComponentsOK, error) { // TODO: Validate the params before sending @@ -192,7 +192,7 @@ func (a *Client) GetPSMDBComponents(params *GetPSMDBComponentsParams, opts ...Cl } /* - GetPXCComponents gets PXC components returns list of available components for PXC clusters +GetPXCComponents gets PXC components returns list of available components for PXC clusters */ func (a *Client) GetPXCComponents(params *GetPXCComponentsParams, opts ...ClientOption) (*GetPXCComponentsOK, error) { // TODO: Validate the params before sending @@ -229,7 +229,7 @@ func (a *Client) GetPXCComponents(params *GetPXCComponentsParams, opts ...Client } /* - InstallOperator installs operator installs given operator in given version +InstallOperator installs operator installs given operator in given version */ func (a *Client) InstallOperator(params *InstallOperatorParams, opts ...ClientOption) (*InstallOperatorOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go b/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go index 469423d21b..0aab5f9ce7 100644 --- a/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go @@ -52,10 +52,12 @@ func NewGetPSMDBComponentsParamsWithHTTPClient(client *http.Client) *GetPSMDBCom } } -/* GetPSMDBComponentsParams contains all the parameters to send to the API endpoint - for the get PSMDB components operation. +/* +GetPSMDBComponentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get PSMDB components operation. + + Typically these are written to a http.Request. */ type GetPSMDBComponentsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go b/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go index a114ee1499..5af5569de2 100644 --- a/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go @@ -48,7 +48,8 @@ func NewGetPSMDBComponentsOK() *GetPSMDBComponentsOK { return &GetPSMDBComponentsOK{} } -/* GetPSMDBComponentsOK describes a response with status code 200, with default header values. +/* +GetPSMDBComponentsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetPSMDBComponentsDefault(code int) *GetPSMDBComponentsDefault { } } -/* GetPSMDBComponentsDefault describes a response with status code -1, with default header values. +/* +GetPSMDBComponentsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetPSMDBComponentsDefault) readResponse(response runtime.ClientResponse return nil } -/*GetPSMDBComponentsBody get PSMDB components body +/* +GetPSMDBComponentsBody get PSMDB components body swagger:model GetPSMDBComponentsBody */ type GetPSMDBComponentsBody struct { @@ -155,7 +158,8 @@ func (o *GetPSMDBComponentsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBComponentsDefaultBody get PSMDB components default body +/* +GetPSMDBComponentsDefaultBody get PSMDB components default body swagger:model GetPSMDBComponentsDefaultBody */ type GetPSMDBComponentsDefaultBody struct { @@ -258,7 +262,8 @@ func (o *GetPSMDBComponentsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBComponentsDefaultBodyDetailsItems0 get PSMDB components default body details items0 +/* +GetPSMDBComponentsDefaultBodyDetailsItems0 get PSMDB components default body details items0 swagger:model GetPSMDBComponentsDefaultBodyDetailsItems0 */ type GetPSMDBComponentsDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *GetPSMDBComponentsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*GetPSMDBComponentsOKBody get PSMDB components OK body +/* +GetPSMDBComponentsOKBody get PSMDB components OK body swagger:model GetPSMDBComponentsOKBody */ type GetPSMDBComponentsOKBody struct { @@ -391,7 +397,8 @@ func (o *GetPSMDBComponentsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0 OperatorVersion contains information about operator and components matrix. +/* +GetPSMDBComponentsOKBodyVersionsItems0 OperatorVersion contains information about operator and components matrix. swagger:model GetPSMDBComponentsOKBodyVersionsItems0 */ type GetPSMDBComponentsOKBodyVersionsItems0 struct { @@ -485,7 +492,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0) UnmarshalBinary(b []byte) error return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0Matrix Matrix contains all available components. +/* +GetPSMDBComponentsOKBodyVersionsItems0Matrix Matrix contains all available components. swagger:model GetPSMDBComponentsOKBodyVersionsItems0Matrix */ type GetPSMDBComponentsOKBodyVersionsItems0Matrix struct { @@ -920,7 +928,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) UnmarshalBinary(b []byte) return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon struct { @@ -971,7 +980,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon) UnmarshalBinary return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon struct { @@ -1022,7 +1032,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon) UnmarshalBinar return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon struct { @@ -1073,7 +1084,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon) Unmarshal return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon struct { @@ -1124,7 +1136,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon) UnmarshalBinary return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon struct { @@ -1175,7 +1188,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon) UnmarshalBina return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon struct { @@ -1226,7 +1240,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon) UnmarshalBinary(b return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon struct { @@ -1277,7 +1292,8 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon) UnmarshalBinary(b return nil } -/*GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains information about component. +/* +GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains information about component. swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon struct { diff --git a/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go b/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go index 0f49108305..ee70826a03 100644 --- a/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go @@ -52,10 +52,12 @@ func NewGetPXCComponentsParamsWithHTTPClient(client *http.Client) *GetPXCCompone } } -/* GetPXCComponentsParams contains all the parameters to send to the API endpoint - for the get PXC components operation. +/* +GetPXCComponentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get PXC components operation. + + Typically these are written to a http.Request. */ type GetPXCComponentsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go b/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go index 8b282dfbd0..cd2e68f28c 100644 --- a/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go @@ -48,7 +48,8 @@ func NewGetPXCComponentsOK() *GetPXCComponentsOK { return &GetPXCComponentsOK{} } -/* GetPXCComponentsOK describes a response with status code 200, with default header values. +/* +GetPXCComponentsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetPXCComponentsDefault(code int) *GetPXCComponentsDefault { } } -/* GetPXCComponentsDefault describes a response with status code -1, with default header values. +/* +GetPXCComponentsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetPXCComponentsDefault) readResponse(response runtime.ClientResponse, return nil } -/*GetPXCComponentsBody get PXC components body +/* +GetPXCComponentsBody get PXC components body swagger:model GetPXCComponentsBody */ type GetPXCComponentsBody struct { @@ -155,7 +158,8 @@ func (o *GetPXCComponentsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCComponentsDefaultBody get PXC components default body +/* +GetPXCComponentsDefaultBody get PXC components default body swagger:model GetPXCComponentsDefaultBody */ type GetPXCComponentsDefaultBody struct { @@ -258,7 +262,8 @@ func (o *GetPXCComponentsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCComponentsDefaultBodyDetailsItems0 get PXC components default body details items0 +/* +GetPXCComponentsDefaultBodyDetailsItems0 get PXC components default body details items0 swagger:model GetPXCComponentsDefaultBodyDetailsItems0 */ type GetPXCComponentsDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *GetPXCComponentsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) err return nil } -/*GetPXCComponentsOKBody get PXC components OK body +/* +GetPXCComponentsOKBody get PXC components OK body swagger:model GetPXCComponentsOKBody */ type GetPXCComponentsOKBody struct { @@ -391,7 +397,8 @@ func (o *GetPXCComponentsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCComponentsOKBodyVersionsItems0 OperatorVersion contains information about operator and components matrix. +/* +GetPXCComponentsOKBodyVersionsItems0 OperatorVersion contains information about operator and components matrix. swagger:model GetPXCComponentsOKBodyVersionsItems0 */ type GetPXCComponentsOKBodyVersionsItems0 struct { @@ -485,7 +492,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCComponentsOKBodyVersionsItems0Matrix Matrix contains all available components. +/* +GetPXCComponentsOKBodyVersionsItems0Matrix Matrix contains all available components. swagger:model GetPXCComponentsOKBodyVersionsItems0Matrix */ type GetPXCComponentsOKBodyVersionsItems0Matrix struct { @@ -920,7 +928,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) UnmarshalBinary(b []byte) e return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon struct { @@ -971,7 +980,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon) UnmarshalBinary(b return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon struct { @@ -1022,7 +1032,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon) UnmarshalBinary( return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon struct { @@ -1073,7 +1084,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon) UnmarshalBi return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon struct { @@ -1124,7 +1136,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon) UnmarshalBinary(b return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon struct { @@ -1175,7 +1188,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon) UnmarshalBinary return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon struct { @@ -1226,7 +1240,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon) UnmarshalBinary(b [] return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon struct { @@ -1277,7 +1292,8 @@ func (o *GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon) UnmarshalBinary(b [] return nil } -/*GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains information about component. +/* +GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains information about component. swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon struct { diff --git a/api/managementpb/dbaas/json/client/components/install_operator_parameters.go b/api/managementpb/dbaas/json/client/components/install_operator_parameters.go index bd677a03bb..87b1582722 100644 --- a/api/managementpb/dbaas/json/client/components/install_operator_parameters.go +++ b/api/managementpb/dbaas/json/client/components/install_operator_parameters.go @@ -52,10 +52,12 @@ func NewInstallOperatorParamsWithHTTPClient(client *http.Client) *InstallOperato } } -/* InstallOperatorParams contains all the parameters to send to the API endpoint - for the install operator operation. +/* +InstallOperatorParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the install operator operation. + + Typically these are written to a http.Request. */ type InstallOperatorParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/components/install_operator_responses.go b/api/managementpb/dbaas/json/client/components/install_operator_responses.go index 809733ef67..b9bb44b457 100644 --- a/api/managementpb/dbaas/json/client/components/install_operator_responses.go +++ b/api/managementpb/dbaas/json/client/components/install_operator_responses.go @@ -50,7 +50,8 @@ func NewInstallOperatorOK() *InstallOperatorOK { return &InstallOperatorOK{} } -/* InstallOperatorOK describes a response with status code 200, with default header values. +/* +InstallOperatorOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewInstallOperatorDefault(code int) *InstallOperatorDefault { } } -/* InstallOperatorDefault describes a response with status code -1, with default header values. +/* +InstallOperatorDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *InstallOperatorDefault) readResponse(response runtime.ClientResponse, c return nil } -/*InstallOperatorBody install operator body +/* +InstallOperatorBody install operator body swagger:model InstallOperatorBody */ type InstallOperatorBody struct { @@ -160,7 +163,8 @@ func (o *InstallOperatorBody) UnmarshalBinary(b []byte) error { return nil } -/*InstallOperatorDefaultBody install operator default body +/* +InstallOperatorDefaultBody install operator default body swagger:model InstallOperatorDefaultBody */ type InstallOperatorDefaultBody struct { @@ -263,7 +267,8 @@ func (o *InstallOperatorDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*InstallOperatorDefaultBodyDetailsItems0 install operator default body details items0 +/* +InstallOperatorDefaultBodyDetailsItems0 install operator default body details items0 swagger:model InstallOperatorDefaultBodyDetailsItems0 */ type InstallOperatorDefaultBodyDetailsItems0 struct { @@ -299,7 +304,8 @@ func (o *InstallOperatorDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*InstallOperatorOKBody install operator OK body +/* +InstallOperatorOKBody install operator OK body swagger:model InstallOperatorOKBody */ type InstallOperatorOKBody struct { diff --git a/api/managementpb/dbaas/json/client/db_clusters/db_clusters_client.go b/api/managementpb/dbaas/json/client/db_clusters/db_clusters_client.go index 606dffd5c7..9087e2179e 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/db_clusters_client.go +++ b/api/managementpb/dbaas/json/client/db_clusters/db_clusters_client.go @@ -38,7 +38,7 @@ type ClientService interface { } /* - DeleteDBCluster deletes DB cluster deletes DB cluster +DeleteDBCluster deletes DB cluster deletes DB cluster */ func (a *Client) DeleteDBCluster(params *DeleteDBClusterParams, opts ...ClientOption) (*DeleteDBClusterOK, error) { // TODO: Validate the params before sending @@ -75,7 +75,7 @@ func (a *Client) DeleteDBCluster(params *DeleteDBClusterParams, opts ...ClientOp } /* - ListDBClusters lists DB clusters returns a list of DB clusters +ListDBClusters lists DB clusters returns a list of DB clusters */ func (a *Client) ListDBClusters(params *ListDBClustersParams, opts ...ClientOption) (*ListDBClustersOK, error) { // TODO: Validate the params before sending @@ -112,7 +112,7 @@ func (a *Client) ListDBClusters(params *ListDBClustersParams, opts ...ClientOpti } /* - RestartDBCluster restarts DB cluster restarts DB cluster +RestartDBCluster restarts DB cluster restarts DB cluster */ func (a *Client) RestartDBCluster(params *RestartDBClusterParams, opts ...ClientOption) (*RestartDBClusterOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go index 64824edee0..0f817bf42e 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go @@ -52,10 +52,12 @@ func NewDeleteDBClusterParamsWithHTTPClient(client *http.Client) *DeleteDBCluste } } -/* DeleteDBClusterParams contains all the parameters to send to the API endpoint - for the delete DB cluster operation. +/* +DeleteDBClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete DB cluster operation. + + Typically these are written to a http.Request. */ type DeleteDBClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go index f0d6876544..dded2a9a91 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go @@ -50,7 +50,8 @@ func NewDeleteDBClusterOK() *DeleteDBClusterOK { return &DeleteDBClusterOK{} } -/* DeleteDBClusterOK describes a response with status code 200, with default header values. +/* +DeleteDBClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewDeleteDBClusterDefault(code int) *DeleteDBClusterDefault { } } -/* DeleteDBClusterDefault describes a response with status code -1, with default header values. +/* +DeleteDBClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *DeleteDBClusterDefault) readResponse(response runtime.ClientResponse, c return nil } -/*DeleteDBClusterBody delete DB cluster body +/* +DeleteDBClusterBody delete DB cluster body swagger:model DeleteDBClusterBody */ type DeleteDBClusterBody struct { @@ -217,7 +220,8 @@ func (o *DeleteDBClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteDBClusterDefaultBody delete DB cluster default body +/* +DeleteDBClusterDefaultBody delete DB cluster default body swagger:model DeleteDBClusterDefaultBody */ type DeleteDBClusterDefaultBody struct { @@ -320,7 +324,8 @@ func (o *DeleteDBClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteDBClusterDefaultBodyDetailsItems0 delete DB cluster default body details items0 +/* +DeleteDBClusterDefaultBodyDetailsItems0 delete DB cluster default body details items0 swagger:model DeleteDBClusterDefaultBodyDetailsItems0 */ type DeleteDBClusterDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go index 9480c516af..ec41e02f95 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go @@ -52,10 +52,12 @@ func NewListDBClustersParamsWithHTTPClient(client *http.Client) *ListDBClustersP } } -/* ListDBClustersParams contains all the parameters to send to the API endpoint - for the list DB clusters operation. +/* +ListDBClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list DB clusters operation. + + Typically these are written to a http.Request. */ type ListDBClustersParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go index e793a97f61..3c14d3c057 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go @@ -50,7 +50,8 @@ func NewListDBClustersOK() *ListDBClustersOK { return &ListDBClustersOK{} } -/* ListDBClustersOK describes a response with status code 200, with default header values. +/* +ListDBClustersOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListDBClustersDefault(code int) *ListDBClustersDefault { } } -/* ListDBClustersDefault describes a response with status code -1, with default header values. +/* +ListDBClustersDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListDBClustersDefault) readResponse(response runtime.ClientResponse, co return nil } -/*ListDBClustersBody list DB clusters body +/* +ListDBClustersBody list DB clusters body swagger:model ListDBClustersBody */ type ListDBClustersBody struct { @@ -154,7 +157,8 @@ func (o *ListDBClustersBody) UnmarshalBinary(b []byte) error { return nil } -/*ListDBClustersDefaultBody list DB clusters default body +/* +ListDBClustersDefaultBody list DB clusters default body swagger:model ListDBClustersDefaultBody */ type ListDBClustersDefaultBody struct { @@ -257,7 +261,8 @@ func (o *ListDBClustersDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListDBClustersDefaultBodyDetailsItems0 list DB clusters default body details items0 +/* +ListDBClustersDefaultBodyDetailsItems0 list DB clusters default body details items0 swagger:model ListDBClustersDefaultBodyDetailsItems0 */ type ListDBClustersDefaultBodyDetailsItems0 struct { @@ -293,7 +298,8 @@ func (o *ListDBClustersDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ListDBClustersOKBody list DB clusters OK body +/* +ListDBClustersOKBody list DB clusters OK body swagger:model ListDBClustersOKBody */ type ListDBClustersOKBody struct { @@ -444,7 +450,8 @@ func (o *ListDBClustersOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListDBClustersOKBodyPSMDBClustersItems0 PSMDBCluster represents PSMDB cluster information. +/* +ListDBClustersOKBodyPSMDBClustersItems0 PSMDBCluster represents PSMDB cluster information. swagger:model ListDBClustersOKBodyPSMDBClustersItems0 */ type ListDBClustersOKBodyPSMDBClustersItems0 struct { @@ -664,7 +671,8 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0) UnmarshalBinary(b []byte) erro return nil } -/*ListDBClustersOKBodyPSMDBClustersItems0Operation RunningOperation respresents a long-running operation. +/* +ListDBClustersOKBodyPSMDBClustersItems0Operation RunningOperation respresents a long-running operation. swagger:model ListDBClustersOKBodyPSMDBClustersItems0Operation */ type ListDBClustersOKBodyPSMDBClustersItems0Operation struct { @@ -706,7 +714,8 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0Operation) UnmarshalBinary(b []b return nil } -/*ListDBClustersOKBodyPSMDBClustersItems0Params PSMDBClusterParams represents PSMDB cluster parameters that can be updated. +/* +ListDBClustersOKBodyPSMDBClustersItems0Params PSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model ListDBClustersOKBodyPSMDBClustersItems0Params */ type ListDBClustersOKBodyPSMDBClustersItems0Params struct { @@ -800,7 +809,8 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0Params) UnmarshalBinary(b []byte return nil } -/*ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset ReplicaSet container parameters. +/* +ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset ReplicaSet container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset */ @@ -892,7 +902,8 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset) UnmarshalBinar return nil } -/*ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. +/* +ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources */ type ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources struct { @@ -931,7 +942,8 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources return nil } -/*ListDBClustersOKBodyPXCClustersItems0 PXCCluster represents PXC cluster information. +/* +ListDBClustersOKBodyPXCClustersItems0 PXCCluster represents PXC cluster information. swagger:model ListDBClustersOKBodyPXCClustersItems0 */ type ListDBClustersOKBodyPXCClustersItems0 struct { @@ -1151,7 +1163,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0) UnmarshalBinary(b []byte) error return nil } -/*ListDBClustersOKBodyPXCClustersItems0Operation RunningOperation respresents a long-running operation. +/* +ListDBClustersOKBodyPXCClustersItems0Operation RunningOperation respresents a long-running operation. swagger:model ListDBClustersOKBodyPXCClustersItems0Operation */ type ListDBClustersOKBodyPXCClustersItems0Operation struct { @@ -1193,7 +1206,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Operation) UnmarshalBinary(b []byt return nil } -/*ListDBClustersOKBodyPXCClustersItems0Params PXCClusterParams represents PXC cluster parameters that can be updated. +/* +ListDBClustersOKBodyPXCClustersItems0Params PXCClusterParams represents PXC cluster parameters that can be updated. swagger:model ListDBClustersOKBodyPXCClustersItems0Params */ type ListDBClustersOKBodyPXCClustersItems0Params struct { @@ -1374,7 +1388,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) UnmarshalBinary(b []byte) return nil } -/*ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy HAProxy container parameters. +/* +ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy HAProxy container parameters. // NOTE: HAProxy does not need disk size as ProxySQL does because the container does not require it. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy */ @@ -1466,7 +1481,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy) UnmarshalBinary(b [ return nil } -/*ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. +/* +ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources struct { @@ -1505,7 +1521,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources) Unm return nil } -/*ListDBClustersOKBodyPXCClustersItems0ParamsPXC PXC container parameters. +/* +ListDBClustersOKBodyPXCClustersItems0ParamsPXC PXC container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsPXC */ @@ -1600,7 +1617,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsPXC) UnmarshalBinary(b []byt return nil } -/*ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. +/* +ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources struct { @@ -1639,7 +1657,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources) Unmarsh return nil } -/*ListDBClustersOKBodyPXCClustersItems0ParamsProxysql ProxySQL container parameters. +/* +ListDBClustersOKBodyPXCClustersItems0ParamsProxysql ProxySQL container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsProxysql */ @@ -1734,7 +1753,8 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsProxysql) UnmarshalBinary(b return nil } -/*ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. +/* +ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources struct { diff --git a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go index 5bec54aa56..43b6755cc5 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go @@ -52,10 +52,12 @@ func NewRestartDBClusterParamsWithHTTPClient(client *http.Client) *RestartDBClus } } -/* RestartDBClusterParams contains all the parameters to send to the API endpoint - for the restart DB cluster operation. +/* +RestartDBClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the restart DB cluster operation. + + Typically these are written to a http.Request. */ type RestartDBClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go index da842b29af..99bd494ffb 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go @@ -50,7 +50,8 @@ func NewRestartDBClusterOK() *RestartDBClusterOK { return &RestartDBClusterOK{} } -/* RestartDBClusterOK describes a response with status code 200, with default header values. +/* +RestartDBClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewRestartDBClusterDefault(code int) *RestartDBClusterDefault { } } -/* RestartDBClusterDefault describes a response with status code -1, with default header values. +/* +RestartDBClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *RestartDBClusterDefault) readResponse(response runtime.ClientResponse, return nil } -/*RestartDBClusterBody restart DB cluster body +/* +RestartDBClusterBody restart DB cluster body swagger:model RestartDBClusterBody */ type RestartDBClusterBody struct { @@ -217,7 +220,8 @@ func (o *RestartDBClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*RestartDBClusterDefaultBody restart DB cluster default body +/* +RestartDBClusterDefaultBody restart DB cluster default body swagger:model RestartDBClusterDefaultBody */ type RestartDBClusterDefaultBody struct { @@ -320,7 +324,8 @@ func (o *RestartDBClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RestartDBClusterDefaultBodyDetailsItems0 restart DB cluster default body details items0 +/* +RestartDBClusterDefaultBodyDetailsItems0 restart DB cluster default body details items0 swagger:model RestartDBClusterDefaultBodyDetailsItems0 */ type RestartDBClusterDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go index 267bd64509..ffa4c86bad 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go @@ -52,10 +52,12 @@ func NewGetKubernetesClusterParamsWithHTTPClient(client *http.Client) *GetKubern } } -/* GetKubernetesClusterParams contains all the parameters to send to the API endpoint - for the get kubernetes cluster operation. +/* +GetKubernetesClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get kubernetes cluster operation. + + Typically these are written to a http.Request. */ type GetKubernetesClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go index 8f17dedb6c..28755b99e1 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go @@ -48,7 +48,8 @@ func NewGetKubernetesClusterOK() *GetKubernetesClusterOK { return &GetKubernetesClusterOK{} } -/* GetKubernetesClusterOK describes a response with status code 200, with default header values. +/* +GetKubernetesClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetKubernetesClusterDefault(code int) *GetKubernetesClusterDefault { } } -/* GetKubernetesClusterDefault describes a response with status code -1, with default header values. +/* +GetKubernetesClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetKubernetesClusterDefault) readResponse(response runtime.ClientRespon return nil } -/*GetKubernetesClusterBody get kubernetes cluster body +/* +GetKubernetesClusterBody get kubernetes cluster body swagger:model GetKubernetesClusterBody */ type GetKubernetesClusterBody struct { @@ -152,7 +155,8 @@ func (o *GetKubernetesClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*GetKubernetesClusterDefaultBody get kubernetes cluster default body +/* +GetKubernetesClusterDefaultBody get kubernetes cluster default body swagger:model GetKubernetesClusterDefaultBody */ type GetKubernetesClusterDefaultBody struct { @@ -255,7 +259,8 @@ func (o *GetKubernetesClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetKubernetesClusterDefaultBodyDetailsItems0 get kubernetes cluster default body details items0 +/* +GetKubernetesClusterDefaultBodyDetailsItems0 get kubernetes cluster default body details items0 swagger:model GetKubernetesClusterDefaultBodyDetailsItems0 */ type GetKubernetesClusterDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *GetKubernetesClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*GetKubernetesClusterOKBody get kubernetes cluster OK body +/* +GetKubernetesClusterOKBody get kubernetes cluster OK body swagger:model GetKubernetesClusterOKBody */ type GetKubernetesClusterOKBody struct { @@ -379,7 +385,8 @@ func (o *GetKubernetesClusterOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetKubernetesClusterOKBodyKubeAuth KubeAuth represents Kubernetes / kubectl authentication and authorization information. +/* +GetKubernetesClusterOKBodyKubeAuth KubeAuth represents Kubernetes / kubectl authentication and authorization information. swagger:model GetKubernetesClusterOKBodyKubeAuth */ type GetKubernetesClusterOKBodyKubeAuth struct { diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go index f127c502b1..c973499d64 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go @@ -52,10 +52,12 @@ func NewGetResourcesParamsWithHTTPClient(client *http.Client) *GetResourcesParam } } -/* GetResourcesParams contains all the parameters to send to the API endpoint - for the get resources operation. +/* +GetResourcesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get resources operation. + + Typically these are written to a http.Request. */ type GetResourcesParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go b/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go index 989539d193..0c057ab4cd 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go @@ -48,7 +48,8 @@ func NewGetResourcesOK() *GetResourcesOK { return &GetResourcesOK{} } -/* GetResourcesOK describes a response with status code 200, with default header values. +/* +GetResourcesOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetResourcesDefault(code int) *GetResourcesDefault { } } -/* GetResourcesDefault describes a response with status code -1, with default header values. +/* +GetResourcesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetResourcesDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*GetResourcesBody get resources body +/* +GetResourcesBody get resources body swagger:model GetResourcesBody */ type GetResourcesBody struct { @@ -152,7 +155,8 @@ func (o *GetResourcesBody) UnmarshalBinary(b []byte) error { return nil } -/*GetResourcesDefaultBody get resources default body +/* +GetResourcesDefaultBody get resources default body swagger:model GetResourcesDefaultBody */ type GetResourcesDefaultBody struct { @@ -255,7 +259,8 @@ func (o *GetResourcesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetResourcesDefaultBodyDetailsItems0 get resources default body details items0 +/* +GetResourcesDefaultBodyDetailsItems0 get resources default body details items0 swagger:model GetResourcesDefaultBodyDetailsItems0 */ type GetResourcesDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *GetResourcesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetResourcesOKBody get resources OK body +/* +GetResourcesOKBody get resources OK body swagger:model GetResourcesOKBody */ type GetResourcesOKBody struct { @@ -424,7 +430,8 @@ func (o *GetResourcesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetResourcesOKBodyAll Resources contains Kubernetes cluster resources. +/* +GetResourcesOKBodyAll Resources contains Kubernetes cluster resources. swagger:model GetResourcesOKBodyAll */ type GetResourcesOKBodyAll struct { @@ -467,7 +474,8 @@ func (o *GetResourcesOKBodyAll) UnmarshalBinary(b []byte) error { return nil } -/*GetResourcesOKBodyAvailable Resources contains Kubernetes cluster resources. +/* +GetResourcesOKBodyAvailable Resources contains Kubernetes cluster resources. swagger:model GetResourcesOKBodyAvailable */ type GetResourcesOKBodyAvailable struct { diff --git a/api/managementpb/dbaas/json/client/kubernetes/kubernetes_client.go b/api/managementpb/dbaas/json/client/kubernetes/kubernetes_client.go index c83058b5bf..7779821252 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/kubernetes_client.go +++ b/api/managementpb/dbaas/json/client/kubernetes/kubernetes_client.go @@ -42,7 +42,7 @@ type ClientService interface { } /* - GetKubernetesCluster gets kubernetes cluster return kube auth with kubernetes config +GetKubernetesCluster gets kubernetes cluster return kube auth with kubernetes config */ func (a *Client) GetKubernetesCluster(params *GetKubernetesClusterParams, opts ...ClientOption) (*GetKubernetesClusterOK, error) { // TODO: Validate the params before sending @@ -79,7 +79,7 @@ func (a *Client) GetKubernetesCluster(params *GetKubernetesClusterParams, opts . } /* - GetResources gets resources returns all and available resources of a kubernetes cluster n o t e the user defined in kubeconfig for the cluster has to have rights to list and get pods from all namespaces also getting and listing nodes has to be allowed +GetResources gets resources returns all and available resources of a kubernetes cluster n o t e the user defined in kubeconfig for the cluster has to have rights to list and get pods from all namespaces also getting and listing nodes has to be allowed */ func (a *Client) GetResources(params *GetResourcesParams, opts ...ClientOption) (*GetResourcesOK, error) { // TODO: Validate the params before sending @@ -116,7 +116,7 @@ func (a *Client) GetResources(params *GetResourcesParams, opts ...ClientOption) } /* - ListKubernetesClusters lists kubernetes clusters returns a list of all registered kubernetes clusters +ListKubernetesClusters lists kubernetes clusters returns a list of all registered kubernetes clusters */ func (a *Client) ListKubernetesClusters(params *ListKubernetesClustersParams, opts ...ClientOption) (*ListKubernetesClustersOK, error) { // TODO: Validate the params before sending @@ -153,7 +153,7 @@ func (a *Client) ListKubernetesClusters(params *ListKubernetesClustersParams, op } /* - RegisterKubernetesCluster registers kubernetes cluster registers an existing kubernetes cluster in PMM +RegisterKubernetesCluster registers kubernetes cluster registers an existing kubernetes cluster in PMM */ func (a *Client) RegisterKubernetesCluster(params *RegisterKubernetesClusterParams, opts ...ClientOption) (*RegisterKubernetesClusterOK, error) { // TODO: Validate the params before sending @@ -190,7 +190,7 @@ func (a *Client) RegisterKubernetesCluster(params *RegisterKubernetesClusterPara } /* - UnregisterKubernetesCluster unregisters kubernetes cluster removes a registered kubernetes cluster from PMM +UnregisterKubernetesCluster unregisters kubernetes cluster removes a registered kubernetes cluster from PMM */ func (a *Client) UnregisterKubernetesCluster(params *UnregisterKubernetesClusterParams, opts ...ClientOption) (*UnregisterKubernetesClusterOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go index 4d8f6ea584..fc2546bdc7 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go @@ -52,10 +52,12 @@ func NewListKubernetesClustersParamsWithHTTPClient(client *http.Client) *ListKub } } -/* ListKubernetesClustersParams contains all the parameters to send to the API endpoint - for the list kubernetes clusters operation. +/* +ListKubernetesClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list kubernetes clusters operation. + + Typically these are written to a http.Request. */ type ListKubernetesClustersParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go index 873ecf7935..ebb6c37919 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go @@ -50,7 +50,8 @@ func NewListKubernetesClustersOK() *ListKubernetesClustersOK { return &ListKubernetesClustersOK{} } -/* ListKubernetesClustersOK describes a response with status code 200, with default header values. +/* +ListKubernetesClustersOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListKubernetesClustersDefault(code int) *ListKubernetesClustersDefault { } } -/* ListKubernetesClustersDefault describes a response with status code -1, with default header values. +/* +ListKubernetesClustersDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListKubernetesClustersDefault) readResponse(response runtime.ClientResp return nil } -/*ListKubernetesClustersDefaultBody list kubernetes clusters default body +/* +ListKubernetesClustersDefaultBody list kubernetes clusters default body swagger:model ListKubernetesClustersDefaultBody */ type ListKubernetesClustersDefaultBody struct { @@ -221,7 +224,8 @@ func (o *ListKubernetesClustersDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListKubernetesClustersDefaultBodyDetailsItems0 list kubernetes clusters default body details items0 +/* +ListKubernetesClustersDefaultBodyDetailsItems0 list kubernetes clusters default body details items0 swagger:model ListKubernetesClustersDefaultBodyDetailsItems0 */ type ListKubernetesClustersDefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *ListKubernetesClustersDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*ListKubernetesClustersOKBody list kubernetes clusters OK body +/* +ListKubernetesClustersOKBody list kubernetes clusters OK body swagger:model ListKubernetesClustersOKBody */ type ListKubernetesClustersOKBody struct { @@ -354,7 +359,8 @@ func (o *ListKubernetesClustersOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListKubernetesClustersOKBodyKubernetesClustersItems0 Cluster contains public info about Kubernetes cluster. +/* +ListKubernetesClustersOKBodyKubernetesClustersItems0 Cluster contains public info about Kubernetes cluster. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0 */ @@ -503,7 +509,8 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0) UnmarshalBinary(b return nil } -/*ListKubernetesClustersOKBodyKubernetesClustersItems0Operators Operators contains list of operators installed in Kubernetes cluster. +/* +ListKubernetesClustersOKBodyKubernetesClustersItems0Operators Operators contains list of operators installed in Kubernetes cluster. swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0Operators */ type ListKubernetesClustersOKBodyKubernetesClustersItems0Operators struct { @@ -636,7 +643,8 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) Unmarsha return nil } -/*ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB Operator contains all information about operator installed in Kubernetes cluster. +/* +ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB Operator contains all information about operator installed in Kubernetes cluster. swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB */ type ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB struct { @@ -738,7 +746,8 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB) Unm return nil } -/*ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC Operator contains all information about operator installed in Kubernetes cluster. +/* +ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC Operator contains all information about operator installed in Kubernetes cluster. swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC */ type ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC struct { diff --git a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go index 337bf005d4..c672e66248 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go @@ -52,10 +52,12 @@ func NewRegisterKubernetesClusterParamsWithHTTPClient(client *http.Client) *Regi } } -/* RegisterKubernetesClusterParams contains all the parameters to send to the API endpoint - for the register kubernetes cluster operation. +/* +RegisterKubernetesClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the register kubernetes cluster operation. + + Typically these are written to a http.Request. */ type RegisterKubernetesClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go index 9126255443..019fabe844 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go @@ -48,7 +48,8 @@ func NewRegisterKubernetesClusterOK() *RegisterKubernetesClusterOK { return &RegisterKubernetesClusterOK{} } -/* RegisterKubernetesClusterOK describes a response with status code 200, with default header values. +/* +RegisterKubernetesClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRegisterKubernetesClusterDefault(code int) *RegisterKubernetesClusterDef } } -/* RegisterKubernetesClusterDefault describes a response with status code -1, with default header values. +/* +RegisterKubernetesClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RegisterKubernetesClusterDefault) readResponse(response runtime.ClientR return nil } -/*RegisterKubernetesClusterBody register kubernetes cluster body +/* +RegisterKubernetesClusterBody register kubernetes cluster body swagger:model RegisterKubernetesClusterBody */ type RegisterKubernetesClusterBody struct { @@ -211,7 +214,8 @@ func (o *RegisterKubernetesClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*RegisterKubernetesClusterDefaultBody register kubernetes cluster default body +/* +RegisterKubernetesClusterDefaultBody register kubernetes cluster default body swagger:model RegisterKubernetesClusterDefaultBody */ type RegisterKubernetesClusterDefaultBody struct { @@ -314,7 +318,8 @@ func (o *RegisterKubernetesClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RegisterKubernetesClusterDefaultBodyDetailsItems0 register kubernetes cluster default body details items0 +/* +RegisterKubernetesClusterDefaultBodyDetailsItems0 register kubernetes cluster default body details items0 swagger:model RegisterKubernetesClusterDefaultBodyDetailsItems0 */ type RegisterKubernetesClusterDefaultBodyDetailsItems0 struct { @@ -350,7 +355,8 @@ func (o *RegisterKubernetesClusterDefaultBodyDetailsItems0) UnmarshalBinary(b [] return nil } -/*RegisterKubernetesClusterParamsBodyKubeAuth KubeAuth represents Kubernetes / kubectl authentication and authorization information. +/* +RegisterKubernetesClusterParamsBodyKubeAuth KubeAuth represents Kubernetes / kubectl authentication and authorization information. swagger:model RegisterKubernetesClusterParamsBodyKubeAuth */ type RegisterKubernetesClusterParamsBodyKubeAuth struct { diff --git a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go index eb853cabef..bc66be521f 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go @@ -52,10 +52,12 @@ func NewUnregisterKubernetesClusterParamsWithHTTPClient(client *http.Client) *Un } } -/* UnregisterKubernetesClusterParams contains all the parameters to send to the API endpoint - for the unregister kubernetes cluster operation. +/* +UnregisterKubernetesClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the unregister kubernetes cluster operation. + + Typically these are written to a http.Request. */ type UnregisterKubernetesClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go index 4ce9453d4f..2429e1e295 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go @@ -48,7 +48,8 @@ func NewUnregisterKubernetesClusterOK() *UnregisterKubernetesClusterOK { return &UnregisterKubernetesClusterOK{} } -/* UnregisterKubernetesClusterOK describes a response with status code 200, with default header values. +/* +UnregisterKubernetesClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewUnregisterKubernetesClusterDefault(code int) *UnregisterKubernetesCluste } } -/* UnregisterKubernetesClusterDefault describes a response with status code -1, with default header values. +/* +UnregisterKubernetesClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *UnregisterKubernetesClusterDefault) readResponse(response runtime.Clien return nil } -/*UnregisterKubernetesClusterBody unregister kubernetes cluster body +/* +UnregisterKubernetesClusterBody unregister kubernetes cluster body swagger:model UnregisterKubernetesClusterBody */ type UnregisterKubernetesClusterBody struct { @@ -154,7 +157,8 @@ func (o *UnregisterKubernetesClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*UnregisterKubernetesClusterDefaultBody unregister kubernetes cluster default body +/* +UnregisterKubernetesClusterDefaultBody unregister kubernetes cluster default body swagger:model UnregisterKubernetesClusterDefaultBody */ type UnregisterKubernetesClusterDefaultBody struct { @@ -257,7 +261,8 @@ func (o *UnregisterKubernetesClusterDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*UnregisterKubernetesClusterDefaultBodyDetailsItems0 unregister kubernetes cluster default body details items0 +/* +UnregisterKubernetesClusterDefaultBodyDetailsItems0 unregister kubernetes cluster default body details items0 swagger:model UnregisterKubernetesClusterDefaultBodyDetailsItems0 */ type UnregisterKubernetesClusterDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go b/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go index a5a0f1e42a..66f2f1ca9d 100644 --- a/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go +++ b/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go @@ -52,10 +52,12 @@ func NewGetLogsParamsWithHTTPClient(client *http.Client) *GetLogsParams { } } -/* GetLogsParams contains all the parameters to send to the API endpoint - for the get logs operation. +/* +GetLogsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get logs operation. + + Typically these are written to a http.Request. */ type GetLogsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go b/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go index 97ad2be16d..21d5f7525a 100644 --- a/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go +++ b/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go @@ -48,7 +48,8 @@ func NewGetLogsOK() *GetLogsOK { return &GetLogsOK{} } -/* GetLogsOK describes a response with status code 200, with default header values. +/* +GetLogsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetLogsDefault(code int) *GetLogsDefault { } } -/* GetLogsDefault describes a response with status code -1, with default header values. +/* +GetLogsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*GetLogsBody get logs body +/* +GetLogsBody get logs body swagger:model GetLogsBody */ type GetLogsBody struct { @@ -155,7 +158,8 @@ func (o *GetLogsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsDefaultBody get logs default body +/* +GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { @@ -258,7 +262,8 @@ func (o *GetLogsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsDefaultBodyDetailsItems0 get logs default body details items0 +/* +GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *GetLogsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsOKBody get logs OK body +/* +GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { @@ -392,7 +398,8 @@ func (o *GetLogsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLogsOKBodyLogsItems0 Logs contain logs for certain pod's container. If container is an empty +/* +GetLogsOKBodyLogsItems0 Logs contain logs for certain pod's container. If container is an empty // string, logs contain pod's events. swagger:model GetLogsOKBodyLogsItems0 */ diff --git a/api/managementpb/dbaas/json/client/logs_api/logs_api_client.go b/api/managementpb/dbaas/json/client/logs_api/logs_api_client.go index 764f1a5c12..da9cf3caf6 100644 --- a/api/managementpb/dbaas/json/client/logs_api/logs_api_client.go +++ b/api/managementpb/dbaas/json/client/logs_api/logs_api_client.go @@ -34,7 +34,7 @@ type ClientService interface { } /* - GetLogs gets logs gets all logs from db cluster +GetLogs gets logs gets all logs from db cluster */ func (a *Client) GetLogs(params *GetLogsParams, opts ...ClientOption) (*GetLogsOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go index 9d1e8f0c0f..0998427faa 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go @@ -52,10 +52,12 @@ func NewCreatePSMDBClusterParamsWithHTTPClient(client *http.Client) *CreatePSMDB } } -/* CreatePSMDBClusterParams contains all the parameters to send to the API endpoint - for the create PSMDB cluster operation. +/* +CreatePSMDBClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create PSMDB cluster operation. + + Typically these are written to a http.Request. */ type CreatePSMDBClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go index 25b69f714d..f06a99099b 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go @@ -48,7 +48,8 @@ func NewCreatePSMDBClusterOK() *CreatePSMDBClusterOK { return &CreatePSMDBClusterOK{} } -/* CreatePSMDBClusterOK describes a response with status code 200, with default header values. +/* +CreatePSMDBClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewCreatePSMDBClusterDefault(code int) *CreatePSMDBClusterDefault { } } -/* CreatePSMDBClusterDefault describes a response with status code -1, with default header values. +/* +CreatePSMDBClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *CreatePSMDBClusterDefault) readResponse(response runtime.ClientResponse return nil } -/*CreatePSMDBClusterBody create PSMDB cluster body +/* +CreatePSMDBClusterBody create PSMDB cluster body swagger:model CreatePSMDBClusterBody */ type CreatePSMDBClusterBody struct { @@ -214,7 +217,8 @@ func (o *CreatePSMDBClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*CreatePSMDBClusterDefaultBody create PSMDB cluster default body +/* +CreatePSMDBClusterDefaultBody create PSMDB cluster default body swagger:model CreatePSMDBClusterDefaultBody */ type CreatePSMDBClusterDefaultBody struct { @@ -317,7 +321,8 @@ func (o *CreatePSMDBClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CreatePSMDBClusterDefaultBodyDetailsItems0 create PSMDB cluster default body details items0 +/* +CreatePSMDBClusterDefaultBodyDetailsItems0 create PSMDB cluster default body details items0 swagger:model CreatePSMDBClusterDefaultBodyDetailsItems0 */ type CreatePSMDBClusterDefaultBodyDetailsItems0 struct { @@ -353,7 +358,8 @@ func (o *CreatePSMDBClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*CreatePSMDBClusterParamsBodyParams PSMDBClusterParams represents PSMDB cluster parameters that can be updated. +/* +CreatePSMDBClusterParamsBodyParams PSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model CreatePSMDBClusterParamsBodyParams */ type CreatePSMDBClusterParamsBodyParams struct { @@ -447,7 +453,8 @@ func (o *CreatePSMDBClusterParamsBodyParams) UnmarshalBinary(b []byte) error { return nil } -/*CreatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. +/* +CreatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model CreatePSMDBClusterParamsBodyParamsReplicaset */ @@ -539,7 +546,8 @@ func (o *CreatePSMDBClusterParamsBodyParamsReplicaset) UnmarshalBinary(b []byte) return nil } -/*CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. +/* +CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources */ type CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct { diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go index ae0018e691..f51b6e79fc 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go @@ -52,10 +52,12 @@ func NewGetPSMDBClusterCredentialsParamsWithHTTPClient(client *http.Client) *Get } } -/* GetPSMDBClusterCredentialsParams contains all the parameters to send to the API endpoint - for the get PSMDB cluster credentials operation. +/* +GetPSMDBClusterCredentialsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get PSMDB cluster credentials operation. + + Typically these are written to a http.Request. */ type GetPSMDBClusterCredentialsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go index 0563f469a4..0c53037935 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go @@ -48,7 +48,8 @@ func NewGetPSMDBClusterCredentialsOK() *GetPSMDBClusterCredentialsOK { return &GetPSMDBClusterCredentialsOK{} } -/* GetPSMDBClusterCredentialsOK describes a response with status code 200, with default header values. +/* +GetPSMDBClusterCredentialsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetPSMDBClusterCredentialsDefault(code int) *GetPSMDBClusterCredentialsD } } -/* GetPSMDBClusterCredentialsDefault describes a response with status code -1, with default header values. +/* +GetPSMDBClusterCredentialsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetPSMDBClusterCredentialsDefault) readResponse(response runtime.Client return nil } -/*GetPSMDBClusterCredentialsBody get PSMDB cluster credentials body +/* +GetPSMDBClusterCredentialsBody get PSMDB cluster credentials body swagger:model GetPSMDBClusterCredentialsBody */ type GetPSMDBClusterCredentialsBody struct { @@ -155,7 +158,8 @@ func (o *GetPSMDBClusterCredentialsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBClusterCredentialsDefaultBody get PSMDB cluster credentials default body +/* +GetPSMDBClusterCredentialsDefaultBody get PSMDB cluster credentials default body swagger:model GetPSMDBClusterCredentialsDefaultBody */ type GetPSMDBClusterCredentialsDefaultBody struct { @@ -258,7 +262,8 @@ func (o *GetPSMDBClusterCredentialsDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 get PSMDB cluster credentials default body details items0 +/* +GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 get PSMDB cluster credentials default body details items0 swagger:model GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 */ type GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *GetPSMDBClusterCredentialsDefaultBodyDetailsItems0) UnmarshalBinary(b [ return nil } -/*GetPSMDBClusterCredentialsOKBody get PSMDB cluster credentials OK body +/* +GetPSMDBClusterCredentialsOKBody get PSMDB cluster credentials OK body swagger:model GetPSMDBClusterCredentialsOKBody */ type GetPSMDBClusterCredentialsOKBody struct { @@ -382,7 +388,8 @@ func (o *GetPSMDBClusterCredentialsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBClusterCredentialsOKBodyConnectionCredentials PSMDBCredentials is a credentials to connect to PSMDB. +/* +GetPSMDBClusterCredentialsOKBodyConnectionCredentials PSMDBCredentials is a credentials to connect to PSMDB. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model GetPSMDBClusterCredentialsOKBodyConnectionCredentials */ diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go index 44318f47ab..74b6e68f61 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go @@ -52,10 +52,12 @@ func NewGetPSMDBClusterResourcesParamsWithHTTPClient(client *http.Client) *GetPS } } -/* GetPSMDBClusterResourcesParams contains all the parameters to send to the API endpoint - for the get PSMDB cluster resources operation. +/* +GetPSMDBClusterResourcesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get PSMDB cluster resources operation. + + Typically these are written to a http.Request. */ type GetPSMDBClusterResourcesParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go index 951808ddac..2058b4f9af 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go @@ -48,7 +48,8 @@ func NewGetPSMDBClusterResourcesOK() *GetPSMDBClusterResourcesOK { return &GetPSMDBClusterResourcesOK{} } -/* GetPSMDBClusterResourcesOK describes a response with status code 200, with default header values. +/* +GetPSMDBClusterResourcesOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetPSMDBClusterResourcesDefault(code int) *GetPSMDBClusterResourcesDefau } } -/* GetPSMDBClusterResourcesDefault describes a response with status code -1, with default header values. +/* +GetPSMDBClusterResourcesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetPSMDBClusterResourcesDefault) readResponse(response runtime.ClientRe return nil } -/*GetPSMDBClusterResourcesBody get PSMDB cluster resources body +/* +GetPSMDBClusterResourcesBody get PSMDB cluster resources body swagger:model GetPSMDBClusterResourcesBody */ type GetPSMDBClusterResourcesBody struct { @@ -204,7 +207,8 @@ func (o *GetPSMDBClusterResourcesBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBClusterResourcesDefaultBody get PSMDB cluster resources default body +/* +GetPSMDBClusterResourcesDefaultBody get PSMDB cluster resources default body swagger:model GetPSMDBClusterResourcesDefaultBody */ type GetPSMDBClusterResourcesDefaultBody struct { @@ -307,7 +311,8 @@ func (o *GetPSMDBClusterResourcesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBClusterResourcesDefaultBodyDetailsItems0 get PSMDB cluster resources default body details items0 +/* +GetPSMDBClusterResourcesDefaultBodyDetailsItems0 get PSMDB cluster resources default body details items0 swagger:model GetPSMDBClusterResourcesDefaultBodyDetailsItems0 */ type GetPSMDBClusterResourcesDefaultBodyDetailsItems0 struct { @@ -343,7 +348,8 @@ func (o *GetPSMDBClusterResourcesDefaultBodyDetailsItems0) UnmarshalBinary(b []b return nil } -/*GetPSMDBClusterResourcesOKBody get PSMDB cluster resources OK body +/* +GetPSMDBClusterResourcesOKBody get PSMDB cluster resources OK body swagger:model GetPSMDBClusterResourcesOKBody */ type GetPSMDBClusterResourcesOKBody struct { @@ -431,7 +437,8 @@ func (o *GetPSMDBClusterResourcesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPSMDBClusterResourcesOKBodyExpected Resources contains Kubernetes cluster resources. +/* +GetPSMDBClusterResourcesOKBodyExpected Resources contains Kubernetes cluster resources. swagger:model GetPSMDBClusterResourcesOKBodyExpected */ type GetPSMDBClusterResourcesOKBodyExpected struct { @@ -474,7 +481,8 @@ func (o *GetPSMDBClusterResourcesOKBodyExpected) UnmarshalBinary(b []byte) error return nil } -/*GetPSMDBClusterResourcesParamsBodyParams PSMDBClusterParams represents PSMDB cluster parameters that can be updated. +/* +GetPSMDBClusterResourcesParamsBodyParams PSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model GetPSMDBClusterResourcesParamsBodyParams */ type GetPSMDBClusterResourcesParamsBodyParams struct { @@ -568,7 +576,8 @@ func (o *GetPSMDBClusterResourcesParamsBodyParams) UnmarshalBinary(b []byte) err return nil } -/*GetPSMDBClusterResourcesParamsBodyParamsReplicaset ReplicaSet container parameters. +/* +GetPSMDBClusterResourcesParamsBodyParamsReplicaset ReplicaSet container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model GetPSMDBClusterResourcesParamsBodyParamsReplicaset */ @@ -660,7 +669,8 @@ func (o *GetPSMDBClusterResourcesParamsBodyParamsReplicaset) UnmarshalBinary(b [ return nil } -/*GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. +/* +GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources */ type GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources struct { diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/psmdb_clusters_client.go b/api/managementpb/dbaas/json/client/psmdb_clusters/psmdb_clusters_client.go index d342970c4e..d4987b997f 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/psmdb_clusters_client.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/psmdb_clusters_client.go @@ -40,7 +40,7 @@ type ClientService interface { } /* - CreatePSMDBCluster creates PSMDB cluster creates a new PSMDB cluster +CreatePSMDBCluster creates PSMDB cluster creates a new PSMDB cluster */ func (a *Client) CreatePSMDBCluster(params *CreatePSMDBClusterParams, opts ...ClientOption) (*CreatePSMDBClusterOK, error) { // TODO: Validate the params before sending @@ -77,7 +77,7 @@ func (a *Client) CreatePSMDBCluster(params *CreatePSMDBClusterParams, opts ...Cl } /* - GetPSMDBClusterCredentials gets PSMDB cluster credentials returns a PSMDB cluster credentials by cluster name +GetPSMDBClusterCredentials gets PSMDB cluster credentials returns a PSMDB cluster credentials by cluster name */ func (a *Client) GetPSMDBClusterCredentials(params *GetPSMDBClusterCredentialsParams, opts ...ClientOption) (*GetPSMDBClusterCredentialsOK, error) { // TODO: Validate the params before sending @@ -114,7 +114,7 @@ func (a *Client) GetPSMDBClusterCredentials(params *GetPSMDBClusterCredentialsPa } /* - GetPSMDBClusterResources gets PSMDB cluster resources returns expected resources to be consumed by the cluster +GetPSMDBClusterResources gets PSMDB cluster resources returns expected resources to be consumed by the cluster */ func (a *Client) GetPSMDBClusterResources(params *GetPSMDBClusterResourcesParams, opts ...ClientOption) (*GetPSMDBClusterResourcesOK, error) { // TODO: Validate the params before sending @@ -151,7 +151,7 @@ func (a *Client) GetPSMDBClusterResources(params *GetPSMDBClusterResourcesParams } /* - UpdatePSMDBCluster updates PSMDB cluster updates existing PSMDB cluster +UpdatePSMDBCluster updates PSMDB cluster updates existing PSMDB cluster */ func (a *Client) UpdatePSMDBCluster(params *UpdatePSMDBClusterParams, opts ...ClientOption) (*UpdatePSMDBClusterOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go index 8fc76eaae3..23c76e1316 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go @@ -52,10 +52,12 @@ func NewUpdatePSMDBClusterParamsWithHTTPClient(client *http.Client) *UpdatePSMDB } } -/* UpdatePSMDBClusterParams contains all the parameters to send to the API endpoint - for the update PSMDB cluster operation. +/* +UpdatePSMDBClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update PSMDB cluster operation. + + Typically these are written to a http.Request. */ type UpdatePSMDBClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go index 0ebc71cb5d..806134b7f8 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go @@ -48,7 +48,8 @@ func NewUpdatePSMDBClusterOK() *UpdatePSMDBClusterOK { return &UpdatePSMDBClusterOK{} } -/* UpdatePSMDBClusterOK describes a response with status code 200, with default header values. +/* +UpdatePSMDBClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewUpdatePSMDBClusterDefault(code int) *UpdatePSMDBClusterDefault { } } -/* UpdatePSMDBClusterDefault describes a response with status code -1, with default header values. +/* +UpdatePSMDBClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *UpdatePSMDBClusterDefault) readResponse(response runtime.ClientResponse return nil } -/*UpdatePSMDBClusterBody update PSMDB cluster body +/* +UpdatePSMDBClusterBody update PSMDB cluster body swagger:model UpdatePSMDBClusterBody */ type UpdatePSMDBClusterBody struct { @@ -208,7 +211,8 @@ func (o *UpdatePSMDBClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePSMDBClusterDefaultBody update PSMDB cluster default body +/* +UpdatePSMDBClusterDefaultBody update PSMDB cluster default body swagger:model UpdatePSMDBClusterDefaultBody */ type UpdatePSMDBClusterDefaultBody struct { @@ -311,7 +315,8 @@ func (o *UpdatePSMDBClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePSMDBClusterDefaultBodyDetailsItems0 update PSMDB cluster default body details items0 +/* +UpdatePSMDBClusterDefaultBodyDetailsItems0 update PSMDB cluster default body details items0 swagger:model UpdatePSMDBClusterDefaultBodyDetailsItems0 */ type UpdatePSMDBClusterDefaultBodyDetailsItems0 struct { @@ -347,7 +352,8 @@ func (o *UpdatePSMDBClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*UpdatePSMDBClusterParamsBodyParams UpdatePSMDBClusterParams represents PSMDB cluster parameters that can be updated. +/* +UpdatePSMDBClusterParamsBodyParams UpdatePSMDBClusterParams represents PSMDB cluster parameters that can be updated. swagger:model UpdatePSMDBClusterParamsBodyParams */ type UpdatePSMDBClusterParamsBodyParams struct { @@ -448,7 +454,8 @@ func (o *UpdatePSMDBClusterParamsBodyParams) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. +/* +UpdatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. swagger:model UpdatePSMDBClusterParamsBodyParamsReplicaset */ type UpdatePSMDBClusterParamsBodyParamsReplicaset struct { @@ -536,7 +543,8 @@ func (o *UpdatePSMDBClusterParamsBodyParamsReplicaset) UnmarshalBinary(b []byte) return nil } -/*UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. +/* +UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources represents container computer resources requests or limits. swagger:model UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources */ type UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct { diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go index 4888d2a12c..7beb33eddb 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go @@ -52,10 +52,12 @@ func NewCreatePXCClusterParamsWithHTTPClient(client *http.Client) *CreatePXCClus } } -/* CreatePXCClusterParams contains all the parameters to send to the API endpoint - for the create PXC cluster operation. +/* +CreatePXCClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create PXC cluster operation. + + Typically these are written to a http.Request. */ type CreatePXCClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go index c57e3746aa..f8220f1e67 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go @@ -48,7 +48,8 @@ func NewCreatePXCClusterOK() *CreatePXCClusterOK { return &CreatePXCClusterOK{} } -/* CreatePXCClusterOK describes a response with status code 200, with default header values. +/* +CreatePXCClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewCreatePXCClusterDefault(code int) *CreatePXCClusterDefault { } } -/* CreatePXCClusterDefault describes a response with status code -1, with default header values. +/* +CreatePXCClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *CreatePXCClusterDefault) readResponse(response runtime.ClientResponse, return nil } -/*CreatePXCClusterBody create PXC cluster body +/* +CreatePXCClusterBody create PXC cluster body swagger:model CreatePXCClusterBody */ type CreatePXCClusterBody struct { @@ -214,7 +217,8 @@ func (o *CreatePXCClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*CreatePXCClusterDefaultBody create PXC cluster default body +/* +CreatePXCClusterDefaultBody create PXC cluster default body swagger:model CreatePXCClusterDefaultBody */ type CreatePXCClusterDefaultBody struct { @@ -317,7 +321,8 @@ func (o *CreatePXCClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CreatePXCClusterDefaultBodyDetailsItems0 create PXC cluster default body details items0 +/* +CreatePXCClusterDefaultBodyDetailsItems0 create PXC cluster default body details items0 swagger:model CreatePXCClusterDefaultBodyDetailsItems0 */ type CreatePXCClusterDefaultBodyDetailsItems0 struct { @@ -353,7 +358,8 @@ func (o *CreatePXCClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) err return nil } -/*CreatePXCClusterParamsBodyParams PXCClusterParams represents PXC cluster parameters that can be updated. +/* +CreatePXCClusterParamsBodyParams PXCClusterParams represents PXC cluster parameters that can be updated. swagger:model CreatePXCClusterParamsBodyParams */ type CreatePXCClusterParamsBodyParams struct { @@ -534,7 +540,8 @@ func (o *CreatePXCClusterParamsBodyParams) UnmarshalBinary(b []byte) error { return nil } -/*CreatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. +/* +CreatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. // NOTE: HAProxy does not need disk size as ProxySQL does because the container does not require it. swagger:model CreatePXCClusterParamsBodyParamsHaproxy */ @@ -626,7 +633,8 @@ func (o *CreatePXCClusterParamsBodyParamsHaproxy) UnmarshalBinary(b []byte) erro return nil } -/*CreatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. +/* +CreatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. swagger:model CreatePXCClusterParamsBodyParamsHaproxyComputeResources */ type CreatePXCClusterParamsBodyParamsHaproxyComputeResources struct { @@ -665,7 +673,8 @@ func (o *CreatePXCClusterParamsBodyParamsHaproxyComputeResources) UnmarshalBinar return nil } -/*CreatePXCClusterParamsBodyParamsPXC PXC container parameters. +/* +CreatePXCClusterParamsBodyParamsPXC PXC container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model CreatePXCClusterParamsBodyParamsPXC */ @@ -760,7 +769,8 @@ func (o *CreatePXCClusterParamsBodyParamsPXC) UnmarshalBinary(b []byte) error { return nil } -/*CreatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. +/* +CreatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. swagger:model CreatePXCClusterParamsBodyParamsPXCComputeResources */ type CreatePXCClusterParamsBodyParamsPXCComputeResources struct { @@ -799,7 +809,8 @@ func (o *CreatePXCClusterParamsBodyParamsPXCComputeResources) UnmarshalBinary(b return nil } -/*CreatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. +/* +CreatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model CreatePXCClusterParamsBodyParamsProxysql */ @@ -894,7 +905,8 @@ func (o *CreatePXCClusterParamsBodyParamsProxysql) UnmarshalBinary(b []byte) err return nil } -/*CreatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. +/* +CreatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. swagger:model CreatePXCClusterParamsBodyParamsProxysqlComputeResources */ type CreatePXCClusterParamsBodyParamsProxysqlComputeResources struct { diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go index 22814232f3..7c4d2afb1e 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go @@ -52,10 +52,12 @@ func NewGetPXCClusterCredentialsParamsWithHTTPClient(client *http.Client) *GetPX } } -/* GetPXCClusterCredentialsParams contains all the parameters to send to the API endpoint - for the get PXC cluster credentials operation. +/* +GetPXCClusterCredentialsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get PXC cluster credentials operation. + + Typically these are written to a http.Request. */ type GetPXCClusterCredentialsParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go index ece64eb42d..6273b03f15 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go @@ -48,7 +48,8 @@ func NewGetPXCClusterCredentialsOK() *GetPXCClusterCredentialsOK { return &GetPXCClusterCredentialsOK{} } -/* GetPXCClusterCredentialsOK describes a response with status code 200, with default header values. +/* +GetPXCClusterCredentialsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetPXCClusterCredentialsDefault(code int) *GetPXCClusterCredentialsDefau } } -/* GetPXCClusterCredentialsDefault describes a response with status code -1, with default header values. +/* +GetPXCClusterCredentialsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetPXCClusterCredentialsDefault) readResponse(response runtime.ClientRe return nil } -/*GetPXCClusterCredentialsBody get PXC cluster credentials body +/* +GetPXCClusterCredentialsBody get PXC cluster credentials body swagger:model GetPXCClusterCredentialsBody */ type GetPXCClusterCredentialsBody struct { @@ -155,7 +158,8 @@ func (o *GetPXCClusterCredentialsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterCredentialsDefaultBody get PXC cluster credentials default body +/* +GetPXCClusterCredentialsDefaultBody get PXC cluster credentials default body swagger:model GetPXCClusterCredentialsDefaultBody */ type GetPXCClusterCredentialsDefaultBody struct { @@ -258,7 +262,8 @@ func (o *GetPXCClusterCredentialsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterCredentialsDefaultBodyDetailsItems0 get PXC cluster credentials default body details items0 +/* +GetPXCClusterCredentialsDefaultBodyDetailsItems0 get PXC cluster credentials default body details items0 swagger:model GetPXCClusterCredentialsDefaultBodyDetailsItems0 */ type GetPXCClusterCredentialsDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *GetPXCClusterCredentialsDefaultBodyDetailsItems0) UnmarshalBinary(b []b return nil } -/*GetPXCClusterCredentialsOKBody get PXC cluster credentials OK body +/* +GetPXCClusterCredentialsOKBody get PXC cluster credentials OK body swagger:model GetPXCClusterCredentialsOKBody */ type GetPXCClusterCredentialsOKBody struct { @@ -382,7 +388,8 @@ func (o *GetPXCClusterCredentialsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterCredentialsOKBodyConnectionCredentials PXCClusterConnectionCredentials is cluster connection credentials. +/* +GetPXCClusterCredentialsOKBodyConnectionCredentials PXCClusterConnectionCredentials is cluster connection credentials. swagger:model GetPXCClusterCredentialsOKBodyConnectionCredentials */ type GetPXCClusterCredentialsOKBodyConnectionCredentials struct { diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go index 8819aa3298..12e6ed514f 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go @@ -52,10 +52,12 @@ func NewGetPXCClusterResourcesParamsWithHTTPClient(client *http.Client) *GetPXCC } } -/* GetPXCClusterResourcesParams contains all the parameters to send to the API endpoint - for the get PXC cluster resources operation. +/* +GetPXCClusterResourcesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get PXC cluster resources operation. + + Typically these are written to a http.Request. */ type GetPXCClusterResourcesParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go index 55f0c674d3..21c3637db3 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go @@ -48,7 +48,8 @@ func NewGetPXCClusterResourcesOK() *GetPXCClusterResourcesOK { return &GetPXCClusterResourcesOK{} } -/* GetPXCClusterResourcesOK describes a response with status code 200, with default header values. +/* +GetPXCClusterResourcesOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetPXCClusterResourcesDefault(code int) *GetPXCClusterResourcesDefault { } } -/* GetPXCClusterResourcesDefault describes a response with status code -1, with default header values. +/* +GetPXCClusterResourcesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetPXCClusterResourcesDefault) readResponse(response runtime.ClientResp return nil } -/*GetPXCClusterResourcesBody get PXC cluster resources body +/* +GetPXCClusterResourcesBody get PXC cluster resources body swagger:model GetPXCClusterResourcesBody */ type GetPXCClusterResourcesBody struct { @@ -204,7 +207,8 @@ func (o *GetPXCClusterResourcesBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterResourcesDefaultBody get PXC cluster resources default body +/* +GetPXCClusterResourcesDefaultBody get PXC cluster resources default body swagger:model GetPXCClusterResourcesDefaultBody */ type GetPXCClusterResourcesDefaultBody struct { @@ -307,7 +311,8 @@ func (o *GetPXCClusterResourcesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterResourcesDefaultBodyDetailsItems0 get PXC cluster resources default body details items0 +/* +GetPXCClusterResourcesDefaultBodyDetailsItems0 get PXC cluster resources default body details items0 swagger:model GetPXCClusterResourcesDefaultBodyDetailsItems0 */ type GetPXCClusterResourcesDefaultBodyDetailsItems0 struct { @@ -343,7 +348,8 @@ func (o *GetPXCClusterResourcesDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*GetPXCClusterResourcesOKBody get PXC cluster resources OK body +/* +GetPXCClusterResourcesOKBody get PXC cluster resources OK body swagger:model GetPXCClusterResourcesOKBody */ type GetPXCClusterResourcesOKBody struct { @@ -431,7 +437,8 @@ func (o *GetPXCClusterResourcesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterResourcesOKBodyExpected Resources contains Kubernetes cluster resources. +/* +GetPXCClusterResourcesOKBodyExpected Resources contains Kubernetes cluster resources. swagger:model GetPXCClusterResourcesOKBodyExpected */ type GetPXCClusterResourcesOKBodyExpected struct { @@ -474,7 +481,8 @@ func (o *GetPXCClusterResourcesOKBodyExpected) UnmarshalBinary(b []byte) error { return nil } -/*GetPXCClusterResourcesParamsBodyParams PXCClusterParams represents PXC cluster parameters that can be updated. +/* +GetPXCClusterResourcesParamsBodyParams PXCClusterParams represents PXC cluster parameters that can be updated. swagger:model GetPXCClusterResourcesParamsBodyParams */ type GetPXCClusterResourcesParamsBodyParams struct { @@ -655,7 +663,8 @@ func (o *GetPXCClusterResourcesParamsBodyParams) UnmarshalBinary(b []byte) error return nil } -/*GetPXCClusterResourcesParamsBodyParamsHaproxy HAProxy container parameters. +/* +GetPXCClusterResourcesParamsBodyParamsHaproxy HAProxy container parameters. // NOTE: HAProxy does not need disk size as ProxySQL does because the container does not require it. swagger:model GetPXCClusterResourcesParamsBodyParamsHaproxy */ @@ -747,7 +756,8 @@ func (o *GetPXCClusterResourcesParamsBodyParamsHaproxy) UnmarshalBinary(b []byte return nil } -/*GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. +/* +GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. swagger:model GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources */ type GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources struct { @@ -786,7 +796,8 @@ func (o *GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources) Unmarsha return nil } -/*GetPXCClusterResourcesParamsBodyParamsPXC PXC container parameters. +/* +GetPXCClusterResourcesParamsBodyParamsPXC PXC container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model GetPXCClusterResourcesParamsBodyParamsPXC */ @@ -881,7 +892,8 @@ func (o *GetPXCClusterResourcesParamsBodyParamsPXC) UnmarshalBinary(b []byte) er return nil } -/*GetPXCClusterResourcesParamsBodyParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. +/* +GetPXCClusterResourcesParamsBodyParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. swagger:model GetPXCClusterResourcesParamsBodyParamsPXCComputeResources */ type GetPXCClusterResourcesParamsBodyParamsPXCComputeResources struct { @@ -920,7 +932,8 @@ func (o *GetPXCClusterResourcesParamsBodyParamsPXCComputeResources) UnmarshalBin return nil } -/*GetPXCClusterResourcesParamsBodyParamsProxysql ProxySQL container parameters. +/* +GetPXCClusterResourcesParamsBodyParamsProxysql ProxySQL container parameters. // TODO Do not use inner messages in all public APIs (for consistency). swagger:model GetPXCClusterResourcesParamsBodyParamsProxysql */ @@ -1015,7 +1028,8 @@ func (o *GetPXCClusterResourcesParamsBodyParamsProxysql) UnmarshalBinary(b []byt return nil } -/*GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. +/* +GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. swagger:model GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources */ type GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources struct { diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/pxc_clusters_client.go b/api/managementpb/dbaas/json/client/pxc_clusters/pxc_clusters_client.go index e7214edfe4..42f0d9fa72 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/pxc_clusters_client.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/pxc_clusters_client.go @@ -40,7 +40,7 @@ type ClientService interface { } /* - CreatePXCCluster creates PXC cluster creates a new PXC cluster +CreatePXCCluster creates PXC cluster creates a new PXC cluster */ func (a *Client) CreatePXCCluster(params *CreatePXCClusterParams, opts ...ClientOption) (*CreatePXCClusterOK, error) { // TODO: Validate the params before sending @@ -77,7 +77,7 @@ func (a *Client) CreatePXCCluster(params *CreatePXCClusterParams, opts ...Client } /* - GetPXCClusterCredentials gets PXC cluster credentials returns a PXC cluster credentials by cluster name +GetPXCClusterCredentials gets PXC cluster credentials returns a PXC cluster credentials by cluster name */ func (a *Client) GetPXCClusterCredentials(params *GetPXCClusterCredentialsParams, opts ...ClientOption) (*GetPXCClusterCredentialsOK, error) { // TODO: Validate the params before sending @@ -114,7 +114,7 @@ func (a *Client) GetPXCClusterCredentials(params *GetPXCClusterCredentialsParams } /* - GetPXCClusterResources gets PXC cluster resources returns expected resources to be consumed by the cluster +GetPXCClusterResources gets PXC cluster resources returns expected resources to be consumed by the cluster */ func (a *Client) GetPXCClusterResources(params *GetPXCClusterResourcesParams, opts ...ClientOption) (*GetPXCClusterResourcesOK, error) { // TODO: Validate the params before sending @@ -151,7 +151,7 @@ func (a *Client) GetPXCClusterResources(params *GetPXCClusterResourcesParams, op } /* - UpdatePXCCluster updates PXC cluster updates existing PXC cluster +UpdatePXCCluster updates PXC cluster updates existing PXC cluster */ func (a *Client) UpdatePXCCluster(params *UpdatePXCClusterParams, opts ...ClientOption) (*UpdatePXCClusterOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go index f0e7d0e725..61a4122345 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go @@ -52,10 +52,12 @@ func NewUpdatePXCClusterParamsWithHTTPClient(client *http.Client) *UpdatePXCClus } } -/* UpdatePXCClusterParams contains all the parameters to send to the API endpoint - for the update PXC cluster operation. +/* +UpdatePXCClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update PXC cluster operation. + + Typically these are written to a http.Request. */ type UpdatePXCClusterParams struct { // Body. diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go index 6e446aafd9..20379f5bc2 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go @@ -48,7 +48,8 @@ func NewUpdatePXCClusterOK() *UpdatePXCClusterOK { return &UpdatePXCClusterOK{} } -/* UpdatePXCClusterOK describes a response with status code 200, with default header values. +/* +UpdatePXCClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewUpdatePXCClusterDefault(code int) *UpdatePXCClusterDefault { } } -/* UpdatePXCClusterDefault describes a response with status code -1, with default header values. +/* +UpdatePXCClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *UpdatePXCClusterDefault) readResponse(response runtime.ClientResponse, return nil } -/*UpdatePXCClusterBody update PXC cluster body +/* +UpdatePXCClusterBody update PXC cluster body swagger:model UpdatePXCClusterBody */ type UpdatePXCClusterBody struct { @@ -208,7 +211,8 @@ func (o *UpdatePXCClusterBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePXCClusterDefaultBody update PXC cluster default body +/* +UpdatePXCClusterDefaultBody update PXC cluster default body swagger:model UpdatePXCClusterDefaultBody */ type UpdatePXCClusterDefaultBody struct { @@ -311,7 +315,8 @@ func (o *UpdatePXCClusterDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePXCClusterDefaultBodyDetailsItems0 update PXC cluster default body details items0 +/* +UpdatePXCClusterDefaultBodyDetailsItems0 update PXC cluster default body details items0 swagger:model UpdatePXCClusterDefaultBodyDetailsItems0 */ type UpdatePXCClusterDefaultBodyDetailsItems0 struct { @@ -347,7 +352,8 @@ func (o *UpdatePXCClusterDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) err return nil } -/*UpdatePXCClusterParamsBodyParams UpdatePXCClusterParams represents PXC cluster parameters that can be updated. +/* +UpdatePXCClusterParamsBodyParams UpdatePXCClusterParams represents PXC cluster parameters that can be updated. swagger:model UpdatePXCClusterParamsBodyParams */ type UpdatePXCClusterParamsBodyParams struct { @@ -534,7 +540,8 @@ func (o *UpdatePXCClusterParamsBodyParams) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. +/* +UpdatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. swagger:model UpdatePXCClusterParamsBodyParamsHaproxy */ type UpdatePXCClusterParamsBodyParamsHaproxy struct { @@ -622,7 +629,8 @@ func (o *UpdatePXCClusterParamsBodyParamsHaproxy) UnmarshalBinary(b []byte) erro return nil } -/*UpdatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. +/* +UpdatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represents container computer resources requests or limits. swagger:model UpdatePXCClusterParamsBodyParamsHaproxyComputeResources */ type UpdatePXCClusterParamsBodyParamsHaproxyComputeResources struct { @@ -661,7 +669,8 @@ func (o *UpdatePXCClusterParamsBodyParamsHaproxyComputeResources) UnmarshalBinar return nil } -/*UpdatePXCClusterParamsBodyParamsPXC PXC container parameters. +/* +UpdatePXCClusterParamsBodyParamsPXC PXC container parameters. swagger:model UpdatePXCClusterParamsBodyParamsPXC */ type UpdatePXCClusterParamsBodyParamsPXC struct { @@ -753,7 +762,8 @@ func (o *UpdatePXCClusterParamsBodyParamsPXC) UnmarshalBinary(b []byte) error { return nil } -/*UpdatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. +/* +UpdatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents container computer resources requests or limits. swagger:model UpdatePXCClusterParamsBodyParamsPXCComputeResources */ type UpdatePXCClusterParamsBodyParamsPXCComputeResources struct { @@ -792,7 +802,8 @@ func (o *UpdatePXCClusterParamsBodyParamsPXCComputeResources) UnmarshalBinary(b return nil } -/*UpdatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. +/* +UpdatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. swagger:model UpdatePXCClusterParamsBodyParamsProxysql */ type UpdatePXCClusterParamsBodyParamsProxysql struct { @@ -880,7 +891,8 @@ func (o *UpdatePXCClusterParamsBodyParamsProxysql) UnmarshalBinary(b []byte) err return nil } -/*UpdatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. +/* +UpdatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources represents container computer resources requests or limits. swagger:model UpdatePXCClusterParamsBodyParamsProxysqlComputeResources */ type UpdatePXCClusterParamsBodyParamsProxysqlComputeResources struct { diff --git a/api/managementpb/dbaas/kubernetes_grpc.pb.go b/api/managementpb/dbaas/kubernetes_grpc.pb.go index bd1893db81..2cd9633c08 100644 --- a/api/managementpb/dbaas/kubernetes_grpc.pb.go +++ b/api/managementpb/dbaas/kubernetes_grpc.pb.go @@ -33,8 +33,9 @@ type KubernetesClient interface { GetKubernetesCluster(ctx context.Context, in *GetKubernetesClusterRequest, opts ...grpc.CallOption) (*GetKubernetesClusterResponse, error) // GetResources returns all and available resources of a Kubernetes cluster. // NOTE: The user defined in kubeconfig for the cluster has to have rights to - // list and get Pods from all Namespaces. Also getting and listing Nodes - // has to be allowed. + // + // list and get Pods from all Namespaces. Also getting and listing Nodes + // has to be allowed. GetResources(ctx context.Context, in *GetResourcesRequest, opts ...grpc.CallOption) (*GetResourcesResponse, error) } @@ -105,8 +106,9 @@ type KubernetesServer interface { GetKubernetesCluster(context.Context, *GetKubernetesClusterRequest) (*GetKubernetesClusterResponse, error) // GetResources returns all and available resources of a Kubernetes cluster. // NOTE: The user defined in kubeconfig for the cluster has to have rights to - // list and get Pods from all Namespaces. Also getting and listing Nodes - // has to be allowed. + // + // list and get Pods from all Namespaces. Also getting and listing Nodes + // has to be allowed. GetResources(context.Context, *GetResourcesRequest) (*GetResourcesResponse, error) mustEmbedUnimplementedKubernetesServer() } diff --git a/api/managementpb/ia/channels.pb.go b/api/managementpb/ia/channels.pb.go index 5a016a8291..5810f4bf49 100644 --- a/api/managementpb/ia/channels.pb.go +++ b/api/managementpb/ia/channels.pb.go @@ -551,6 +551,7 @@ type Channel struct { // Short human-readable summary. Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` // Types that are assignable to Channel: + // // *Channel_EmailConfig // *Channel_PagerdutyConfig // *Channel_SlackConfig diff --git a/api/managementpb/ia/json/client/alerts/alerts_client.go b/api/managementpb/ia/json/client/alerts/alerts_client.go index 87c65c5682..ddd570bb7a 100644 --- a/api/managementpb/ia/json/client/alerts/alerts_client.go +++ b/api/managementpb/ia/json/client/alerts/alerts_client.go @@ -36,7 +36,7 @@ type ClientService interface { } /* - ListAlerts lists alerts returns a list of all alerts +ListAlerts lists alerts returns a list of all alerts */ func (a *Client) ListAlerts(params *ListAlertsParams, opts ...ClientOption) (*ListAlertsOK, error) { // TODO: Validate the params before sending @@ -73,9 +73,9 @@ func (a *Client) ListAlerts(params *ListAlertsParams, opts ...ClientOption) (*Li } /* - ToggleAlerts toggles alerts allows to switch alerts state between silenced and unsilenced +ToggleAlerts toggles alerts allows to switch alerts state between silenced and unsilenced - Pass empty list to apply toggle action to all existing alerts +Pass empty list to apply toggle action to all existing alerts */ func (a *Client) ToggleAlerts(params *ToggleAlertsParams, opts ...ClientOption) (*ToggleAlertsOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go b/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go index cec89731ed..b2937ec92e 100644 --- a/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go +++ b/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go @@ -52,10 +52,12 @@ func NewListAlertsParamsWithHTTPClient(client *http.Client) *ListAlertsParams { } } -/* ListAlertsParams contains all the parameters to send to the API endpoint - for the list alerts operation. +/* +ListAlertsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list alerts operation. + + Typically these are written to a http.Request. */ type ListAlertsParams struct { // Body. diff --git a/api/managementpb/ia/json/client/alerts/list_alerts_responses.go b/api/managementpb/ia/json/client/alerts/list_alerts_responses.go index 699c4e0978..aa522bddd0 100644 --- a/api/managementpb/ia/json/client/alerts/list_alerts_responses.go +++ b/api/managementpb/ia/json/client/alerts/list_alerts_responses.go @@ -50,7 +50,8 @@ func NewListAlertsOK() *ListAlertsOK { return &ListAlertsOK{} } -/* ListAlertsOK describes a response with status code 200, with default header values. +/* +ListAlertsOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListAlertsDefault(code int) *ListAlertsDefault { } } -/* ListAlertsDefault describes a response with status code -1, with default header values. +/* +ListAlertsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListAlertsDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*ListAlertsBody list alerts body +/* +ListAlertsBody list alerts body swagger:model ListAlertsBody */ type ListAlertsBody struct { @@ -206,7 +209,8 @@ func (o *ListAlertsBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsDefaultBody list alerts default body +/* +ListAlertsDefaultBody list alerts default body swagger:model ListAlertsDefaultBody */ type ListAlertsDefaultBody struct { @@ -309,7 +313,8 @@ func (o *ListAlertsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsDefaultBodyDetailsItems0 list alerts default body details items0 +/* +ListAlertsDefaultBodyDetailsItems0 list alerts default body details items0 swagger:model ListAlertsDefaultBodyDetailsItems0 */ type ListAlertsDefaultBodyDetailsItems0 struct { @@ -345,7 +350,8 @@ func (o *ListAlertsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsOKBody list alerts OK body +/* +ListAlertsOKBody list alerts OK body swagger:model ListAlertsOKBody */ type ListAlertsOKBody struct { @@ -487,7 +493,8 @@ func (o *ListAlertsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsOKBodyAlertsItems0 Alert represents Alert. +/* +ListAlertsOKBodyAlertsItems0 Alert represents Alert. swagger:model ListAlertsOKBodyAlertsItems0 */ type ListAlertsOKBodyAlertsItems0 struct { @@ -759,7 +766,8 @@ func (o *ListAlertsOKBodyAlertsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsOKBodyAlertsItems0Rule Rule represents Alert Rule. +/* +ListAlertsOKBodyAlertsItems0Rule Rule represents Alert Rule. swagger:model ListAlertsOKBodyAlertsItems0Rule */ type ListAlertsOKBodyAlertsItems0Rule struct { @@ -1216,7 +1224,8 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0 Channel represents a single Notification Channel. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0 Channel represents a single Notification Channel. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0 */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0 struct { @@ -1448,7 +1457,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) UnmarshalBinary(b []byt return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig EmailConfig represents email configuration. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig EmailConfig represents email configuration. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig struct { @@ -1487,7 +1497,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig) UnmarshalBin return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig struct { @@ -1529,7 +1540,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig) Unmarsha return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig SlackConfig represents Slack configuration. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig SlackConfig represents Slack configuration. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig struct { @@ -1568,7 +1580,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig) UnmarshalBin return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig struct { @@ -1665,7 +1678,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig) UnmarshalB return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig struct { @@ -1807,7 +1821,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { @@ -1849,7 +1864,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBa return nil } -/*ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager +/* +ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager // https://prometheus.io/docs/alerting/latest/configuration/#tls_config swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig */ @@ -1913,7 +1929,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTL return nil } -/*ListAlertsOKBodyAlertsItems0RuleFiltersItems0 Filter repsents a single filter condition. +/* +ListAlertsOKBodyAlertsItems0RuleFiltersItems0 Filter repsents a single filter condition. swagger:model ListAlertsOKBodyAlertsItems0RuleFiltersItems0 */ type ListAlertsOKBodyAlertsItems0RuleFiltersItems0 struct { @@ -2013,7 +2030,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleFiltersItems0) UnmarshalBinary(b []byte return nil } -/*ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 ParamDefinition represents a single query parameter. +/* +ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 ParamDefinition represents a single query parameter. swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 struct { @@ -2310,7 +2328,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) UnmarshalBinar return nil } -/*ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool BoolParamDefinition represents boolean parameter's default value. +/* +ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool BoolParamDefinition represents boolean parameter's default value. swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool struct { @@ -2406,7 +2425,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool) UnmarshalB return nil } -/*ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float FloatParamDefinition represents float parameter's default value and valid range. +/* +ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float FloatParamDefinition represents float parameter's default value and valid range. swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float struct { @@ -2457,7 +2477,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float) Unmarshal return nil } -/*ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String StringParamDefinition represents string parameter's default value. +/* +ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String StringParamDefinition represents string parameter's default value. swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String struct { @@ -2496,7 +2517,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String) Unmarsha return nil } -/*ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. +/* +ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. swagger:model ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 */ type ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 struct { @@ -2602,7 +2624,8 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0) UnmarshalBinary(b [ return nil } -/*ListAlertsOKBodyTotals PageTotals represents total values for pagination. +/* +ListAlertsOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertsOKBodyTotals */ type ListAlertsOKBodyTotals struct { @@ -2641,7 +2664,8 @@ func (o *ListAlertsOKBodyTotals) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertsParamsBodyPageParams PageParams represents page request parameters for pagination. +/* +ListAlertsParamsBodyPageParams PageParams represents page request parameters for pagination. swagger:model ListAlertsParamsBodyPageParams */ type ListAlertsParamsBodyPageParams struct { diff --git a/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go b/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go index 04ead119ce..91f845542b 100644 --- a/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go +++ b/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go @@ -52,10 +52,12 @@ func NewToggleAlertsParamsWithHTTPClient(client *http.Client) *ToggleAlertsParam } } -/* ToggleAlertsParams contains all the parameters to send to the API endpoint - for the toggle alerts operation. +/* +ToggleAlertsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the toggle alerts operation. + + Typically these are written to a http.Request. */ type ToggleAlertsParams struct { // Body. diff --git a/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go b/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go index 785ac59371..bba76b097d 100644 --- a/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go +++ b/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go @@ -50,7 +50,8 @@ func NewToggleAlertsOK() *ToggleAlertsOK { return &ToggleAlertsOK{} } -/* ToggleAlertsOK describes a response with status code 200, with default header values. +/* +ToggleAlertsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewToggleAlertsDefault(code int) *ToggleAlertsDefault { } } -/* ToggleAlertsDefault describes a response with status code -1, with default header values. +/* +ToggleAlertsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ToggleAlertsDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*ToggleAlertsBody toggle alerts body +/* +ToggleAlertsBody toggle alerts body swagger:model ToggleAlertsBody */ type ToggleAlertsBody struct { @@ -216,7 +219,8 @@ func (o *ToggleAlertsBody) UnmarshalBinary(b []byte) error { return nil } -/*ToggleAlertsDefaultBody toggle alerts default body +/* +ToggleAlertsDefaultBody toggle alerts default body swagger:model ToggleAlertsDefaultBody */ type ToggleAlertsDefaultBody struct { @@ -319,7 +323,8 @@ func (o *ToggleAlertsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ToggleAlertsDefaultBodyDetailsItems0 toggle alerts default body details items0 +/* +ToggleAlertsDefaultBodyDetailsItems0 toggle alerts default body details items0 swagger:model ToggleAlertsDefaultBodyDetailsItems0 */ type ToggleAlertsDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/ia/json/client/channels/add_channel_parameters.go b/api/managementpb/ia/json/client/channels/add_channel_parameters.go index 6effa7e9c8..dda611d4a5 100644 --- a/api/managementpb/ia/json/client/channels/add_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/add_channel_parameters.go @@ -52,10 +52,12 @@ func NewAddChannelParamsWithHTTPClient(client *http.Client) *AddChannelParams { } } -/* AddChannelParams contains all the parameters to send to the API endpoint - for the add channel operation. +/* +AddChannelParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add channel operation. + + Typically these are written to a http.Request. */ type AddChannelParams struct { // Body. diff --git a/api/managementpb/ia/json/client/channels/add_channel_responses.go b/api/managementpb/ia/json/client/channels/add_channel_responses.go index 29c393d10b..96a7a1f087 100644 --- a/api/managementpb/ia/json/client/channels/add_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/add_channel_responses.go @@ -48,7 +48,8 @@ func NewAddChannelOK() *AddChannelOK { return &AddChannelOK{} } -/* AddChannelOK describes a response with status code 200, with default header values. +/* +AddChannelOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewAddChannelDefault(code int) *AddChannelDefault { } } -/* AddChannelDefault describes a response with status code -1, with default header values. +/* +AddChannelDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *AddChannelDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*AddChannelBody add channel body +/* +AddChannelBody add channel body swagger:model AddChannelBody */ type AddChannelBody struct { @@ -345,7 +348,8 @@ func (o *AddChannelBody) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelDefaultBody add channel default body +/* +AddChannelDefaultBody add channel default body swagger:model AddChannelDefaultBody */ type AddChannelDefaultBody struct { @@ -448,7 +452,8 @@ func (o *AddChannelDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelDefaultBodyDetailsItems0 add channel default body details items0 +/* +AddChannelDefaultBodyDetailsItems0 add channel default body details items0 swagger:model AddChannelDefaultBodyDetailsItems0 */ type AddChannelDefaultBodyDetailsItems0 struct { @@ -484,7 +489,8 @@ func (o *AddChannelDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelOKBody add channel OK body +/* +AddChannelOKBody add channel OK body swagger:model AddChannelOKBody */ type AddChannelOKBody struct { @@ -520,7 +526,8 @@ func (o *AddChannelOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelParamsBodyEmailConfig EmailConfig represents email configuration. +/* +AddChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model AddChannelParamsBodyEmailConfig */ type AddChannelParamsBodyEmailConfig struct { @@ -559,7 +566,8 @@ func (o *AddChannelParamsBodyEmailConfig) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configuration. +/* +AddChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model AddChannelParamsBodyPagerdutyConfig */ type AddChannelParamsBodyPagerdutyConfig struct { @@ -601,7 +609,8 @@ func (o *AddChannelParamsBodyPagerdutyConfig) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelParamsBodySlackConfig SlackConfig represents Slack configuration. +/* +AddChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model AddChannelParamsBodySlackConfig */ type AddChannelParamsBodySlackConfig struct { @@ -640,7 +649,8 @@ func (o *AddChannelParamsBodySlackConfig) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration. +/* +AddChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration. swagger:model AddChannelParamsBodyWebhookConfig */ type AddChannelParamsBodyWebhookConfig struct { @@ -737,7 +747,8 @@ func (o *AddChannelParamsBodyWebhookConfig) UnmarshalBinary(b []byte) error { return nil } -/*AddChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. +/* +AddChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model AddChannelParamsBodyWebhookConfigHTTPConfig */ type AddChannelParamsBodyWebhookConfigHTTPConfig struct { @@ -879,7 +890,8 @@ func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) UnmarshalBinary(b []byte) return nil } -/*AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. +/* +AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth */ type AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct { @@ -921,7 +933,8 @@ func (o *AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) UnmarshalBinary(b return nil } -/*AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager +/* +AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager // https://prometheus.io/docs/alerting/latest/configuration/#tls_config swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig */ diff --git a/api/managementpb/ia/json/client/channels/change_channel_parameters.go b/api/managementpb/ia/json/client/channels/change_channel_parameters.go index e5e929d18a..569379c6b6 100644 --- a/api/managementpb/ia/json/client/channels/change_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/change_channel_parameters.go @@ -52,10 +52,12 @@ func NewChangeChannelParamsWithHTTPClient(client *http.Client) *ChangeChannelPar } } -/* ChangeChannelParams contains all the parameters to send to the API endpoint - for the change channel operation. +/* +ChangeChannelParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change channel operation. + + Typically these are written to a http.Request. */ type ChangeChannelParams struct { // Body. diff --git a/api/managementpb/ia/json/client/channels/change_channel_responses.go b/api/managementpb/ia/json/client/channels/change_channel_responses.go index fb8d8f6fff..d4fb8eea19 100644 --- a/api/managementpb/ia/json/client/channels/change_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/change_channel_responses.go @@ -48,7 +48,8 @@ func NewChangeChannelOK() *ChangeChannelOK { return &ChangeChannelOK{} } -/* ChangeChannelOK describes a response with status code 200, with default header values. +/* +ChangeChannelOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewChangeChannelDefault(code int) *ChangeChannelDefault { } } -/* ChangeChannelDefault describes a response with status code -1, with default header values. +/* +ChangeChannelDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ChangeChannelDefault) readResponse(response runtime.ClientResponse, con return nil } -/*ChangeChannelBody change channel body +/* +ChangeChannelBody change channel body swagger:model ChangeChannelBody */ type ChangeChannelBody struct { @@ -346,7 +349,8 @@ func (o *ChangeChannelBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeChannelDefaultBody change channel default body +/* +ChangeChannelDefaultBody change channel default body swagger:model ChangeChannelDefaultBody */ type ChangeChannelDefaultBody struct { @@ -449,7 +453,8 @@ func (o *ChangeChannelDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeChannelDefaultBodyDetailsItems0 change channel default body details items0 +/* +ChangeChannelDefaultBodyDetailsItems0 change channel default body details items0 swagger:model ChangeChannelDefaultBodyDetailsItems0 */ type ChangeChannelDefaultBodyDetailsItems0 struct { @@ -485,7 +490,8 @@ func (o *ChangeChannelDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ChangeChannelParamsBodyEmailConfig EmailConfig represents email configuration. +/* +ChangeChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model ChangeChannelParamsBodyEmailConfig */ type ChangeChannelParamsBodyEmailConfig struct { @@ -524,7 +530,8 @@ func (o *ChangeChannelParamsBodyEmailConfig) UnmarshalBinary(b []byte) error { return nil } -/*ChangeChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configuration. +/* +ChangeChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model ChangeChannelParamsBodyPagerdutyConfig */ type ChangeChannelParamsBodyPagerdutyConfig struct { @@ -566,7 +573,8 @@ func (o *ChangeChannelParamsBodyPagerdutyConfig) UnmarshalBinary(b []byte) error return nil } -/*ChangeChannelParamsBodySlackConfig SlackConfig represents Slack configuration. +/* +ChangeChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model ChangeChannelParamsBodySlackConfig */ type ChangeChannelParamsBodySlackConfig struct { @@ -605,7 +613,8 @@ func (o *ChangeChannelParamsBodySlackConfig) UnmarshalBinary(b []byte) error { return nil } -/*ChangeChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration. +/* +ChangeChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration. swagger:model ChangeChannelParamsBodyWebhookConfig */ type ChangeChannelParamsBodyWebhookConfig struct { @@ -702,7 +711,8 @@ func (o *ChangeChannelParamsBodyWebhookConfig) UnmarshalBinary(b []byte) error { return nil } -/*ChangeChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. +/* +ChangeChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfig */ type ChangeChannelParamsBodyWebhookConfigHTTPConfig struct { @@ -844,7 +854,8 @@ func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) UnmarshalBinary(b []byt return nil } -/*ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. +/* +ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth */ type ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct { @@ -886,7 +897,8 @@ func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth) UnmarshalBinar return nil } -/*ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager +/* +ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager // https://prometheus.io/docs/alerting/latest/configuration/#tls_config swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig */ diff --git a/api/managementpb/ia/json/client/channels/channels_client.go b/api/managementpb/ia/json/client/channels/channels_client.go index 3a7a378ee6..801236e6ab 100644 --- a/api/managementpb/ia/json/client/channels/channels_client.go +++ b/api/managementpb/ia/json/client/channels/channels_client.go @@ -40,7 +40,7 @@ type ClientService interface { } /* - AddChannel adds channel adds notification channel +AddChannel adds channel adds notification channel */ func (a *Client) AddChannel(params *AddChannelParams, opts ...ClientOption) (*AddChannelOK, error) { // TODO: Validate the params before sending @@ -77,7 +77,7 @@ func (a *Client) AddChannel(params *AddChannelParams, opts ...ClientOption) (*Ad } /* - ChangeChannel changes channel changes notification channel +ChangeChannel changes channel changes notification channel */ func (a *Client) ChangeChannel(params *ChangeChannelParams, opts ...ClientOption) (*ChangeChannelOK, error) { // TODO: Validate the params before sending @@ -114,7 +114,7 @@ func (a *Client) ChangeChannel(params *ChangeChannelParams, opts ...ClientOption } /* - ListChannels lists channels returns a list of all notifation channels +ListChannels lists channels returns a list of all notifation channels */ func (a *Client) ListChannels(params *ListChannelsParams, opts ...ClientOption) (*ListChannelsOK, error) { // TODO: Validate the params before sending @@ -151,7 +151,7 @@ func (a *Client) ListChannels(params *ListChannelsParams, opts ...ClientOption) } /* - RemoveChannel removes channel removes notification channel +RemoveChannel removes channel removes notification channel */ func (a *Client) RemoveChannel(params *RemoveChannelParams, opts ...ClientOption) (*RemoveChannelOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/ia/json/client/channels/list_channels_parameters.go b/api/managementpb/ia/json/client/channels/list_channels_parameters.go index 31730b467a..4f6948c977 100644 --- a/api/managementpb/ia/json/client/channels/list_channels_parameters.go +++ b/api/managementpb/ia/json/client/channels/list_channels_parameters.go @@ -52,10 +52,12 @@ func NewListChannelsParamsWithHTTPClient(client *http.Client) *ListChannelsParam } } -/* ListChannelsParams contains all the parameters to send to the API endpoint - for the list channels operation. +/* +ListChannelsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list channels operation. + + Typically these are written to a http.Request. */ type ListChannelsParams struct { // Body. diff --git a/api/managementpb/ia/json/client/channels/list_channels_responses.go b/api/managementpb/ia/json/client/channels/list_channels_responses.go index a52f68eb43..ec672a76db 100644 --- a/api/managementpb/ia/json/client/channels/list_channels_responses.go +++ b/api/managementpb/ia/json/client/channels/list_channels_responses.go @@ -48,7 +48,8 @@ func NewListChannelsOK() *ListChannelsOK { return &ListChannelsOK{} } -/* ListChannelsOK describes a response with status code 200, with default header values. +/* +ListChannelsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewListChannelsDefault(code int) *ListChannelsDefault { } } -/* ListChannelsDefault describes a response with status code -1, with default header values. +/* +ListChannelsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ListChannelsDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*ListChannelsBody list channels body +/* +ListChannelsBody list channels body swagger:model ListChannelsBody */ type ListChannelsBody struct { @@ -204,7 +207,8 @@ func (o *ListChannelsBody) UnmarshalBinary(b []byte) error { return nil } -/*ListChannelsDefaultBody list channels default body +/* +ListChannelsDefaultBody list channels default body swagger:model ListChannelsDefaultBody */ type ListChannelsDefaultBody struct { @@ -307,7 +311,8 @@ func (o *ListChannelsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListChannelsDefaultBodyDetailsItems0 list channels default body details items0 +/* +ListChannelsDefaultBodyDetailsItems0 list channels default body details items0 swagger:model ListChannelsDefaultBodyDetailsItems0 */ type ListChannelsDefaultBodyDetailsItems0 struct { @@ -343,7 +348,8 @@ func (o *ListChannelsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListChannelsOKBody list channels OK body +/* +ListChannelsOKBody list channels OK body swagger:model ListChannelsOKBody */ type ListChannelsOKBody struct { @@ -485,7 +491,8 @@ func (o *ListChannelsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListChannelsOKBodyChannelsItems0 Channel represents a single Notification Channel. +/* +ListChannelsOKBodyChannelsItems0 Channel represents a single Notification Channel. swagger:model ListChannelsOKBodyChannelsItems0 */ type ListChannelsOKBodyChannelsItems0 struct { @@ -717,7 +724,8 @@ func (o *ListChannelsOKBodyChannelsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListChannelsOKBodyChannelsItems0EmailConfig EmailConfig represents email configuration. +/* +ListChannelsOKBodyChannelsItems0EmailConfig EmailConfig represents email configuration. swagger:model ListChannelsOKBodyChannelsItems0EmailConfig */ type ListChannelsOKBodyChannelsItems0EmailConfig struct { @@ -756,7 +764,8 @@ func (o *ListChannelsOKBodyChannelsItems0EmailConfig) UnmarshalBinary(b []byte) return nil } -/*ListChannelsOKBodyChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. +/* +ListChannelsOKBodyChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model ListChannelsOKBodyChannelsItems0PagerdutyConfig */ type ListChannelsOKBodyChannelsItems0PagerdutyConfig struct { @@ -798,7 +807,8 @@ func (o *ListChannelsOKBodyChannelsItems0PagerdutyConfig) UnmarshalBinary(b []by return nil } -/*ListChannelsOKBodyChannelsItems0SlackConfig SlackConfig represents Slack configuration. +/* +ListChannelsOKBodyChannelsItems0SlackConfig SlackConfig represents Slack configuration. swagger:model ListChannelsOKBodyChannelsItems0SlackConfig */ type ListChannelsOKBodyChannelsItems0SlackConfig struct { @@ -837,7 +847,8 @@ func (o *ListChannelsOKBodyChannelsItems0SlackConfig) UnmarshalBinary(b []byte) return nil } -/*ListChannelsOKBodyChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. +/* +ListChannelsOKBodyChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. swagger:model ListChannelsOKBodyChannelsItems0WebhookConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfig struct { @@ -934,7 +945,8 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfig) UnmarshalBinary(b []byte return nil } -/*ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. +/* +ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig struct { @@ -1076,7 +1088,8 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) UnmarshalBinar return nil } -/*ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. +/* +ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { @@ -1118,7 +1131,8 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth) Unmar return nil } -/*ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager +/* +ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager // https://prometheus.io/docs/alerting/latest/configuration/#tls_config swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig */ @@ -1182,7 +1196,8 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig) Unmar return nil } -/*ListChannelsOKBodyTotals PageTotals represents total values for pagination. +/* +ListChannelsOKBodyTotals PageTotals represents total values for pagination. swagger:model ListChannelsOKBodyTotals */ type ListChannelsOKBodyTotals struct { @@ -1221,7 +1236,8 @@ func (o *ListChannelsOKBodyTotals) UnmarshalBinary(b []byte) error { return nil } -/*ListChannelsParamsBodyPageParams PageParams represents page request parameters for pagination. +/* +ListChannelsParamsBodyPageParams PageParams represents page request parameters for pagination. swagger:model ListChannelsParamsBodyPageParams */ type ListChannelsParamsBodyPageParams struct { diff --git a/api/managementpb/ia/json/client/channels/remove_channel_parameters.go b/api/managementpb/ia/json/client/channels/remove_channel_parameters.go index 7e760f6c70..bc094beef7 100644 --- a/api/managementpb/ia/json/client/channels/remove_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/remove_channel_parameters.go @@ -52,10 +52,12 @@ func NewRemoveChannelParamsWithHTTPClient(client *http.Client) *RemoveChannelPar } } -/* RemoveChannelParams contains all the parameters to send to the API endpoint - for the remove channel operation. +/* +RemoveChannelParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove channel operation. + + Typically these are written to a http.Request. */ type RemoveChannelParams struct { // Body. diff --git a/api/managementpb/ia/json/client/channels/remove_channel_responses.go b/api/managementpb/ia/json/client/channels/remove_channel_responses.go index 07f2a0ff7b..eb6aa49b30 100644 --- a/api/managementpb/ia/json/client/channels/remove_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/remove_channel_responses.go @@ -48,7 +48,8 @@ func NewRemoveChannelOK() *RemoveChannelOK { return &RemoveChannelOK{} } -/* RemoveChannelOK describes a response with status code 200, with default header values. +/* +RemoveChannelOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewRemoveChannelDefault(code int) *RemoveChannelDefault { } } -/* RemoveChannelDefault describes a response with status code -1, with default header values. +/* +RemoveChannelDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *RemoveChannelDefault) readResponse(response runtime.ClientResponse, con return nil } -/*RemoveChannelBody remove channel body +/* +RemoveChannelBody remove channel body swagger:model RemoveChannelBody */ type RemoveChannelBody struct { @@ -150,7 +153,8 @@ func (o *RemoveChannelBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveChannelDefaultBody remove channel default body +/* +RemoveChannelDefaultBody remove channel default body swagger:model RemoveChannelDefaultBody */ type RemoveChannelDefaultBody struct { @@ -253,7 +257,8 @@ func (o *RemoveChannelDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveChannelDefaultBodyDetailsItems0 remove channel default body details items0 +/* +RemoveChannelDefaultBodyDetailsItems0 remove channel default body details items0 swagger:model RemoveChannelDefaultBodyDetailsItems0 */ type RemoveChannelDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go index 5766dd1ca1..c361a3c197 100644 --- a/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go @@ -52,10 +52,12 @@ func NewCreateAlertRuleParamsWithHTTPClient(client *http.Client) *CreateAlertRul } } -/* CreateAlertRuleParams contains all the parameters to send to the API endpoint - for the create alert rule operation. +/* +CreateAlertRuleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the create alert rule operation. + + Typically these are written to a http.Request. */ type CreateAlertRuleParams struct { // Body. diff --git a/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go index 81df58b806..6ff0249456 100644 --- a/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go @@ -50,7 +50,8 @@ func NewCreateAlertRuleOK() *CreateAlertRuleOK { return &CreateAlertRuleOK{} } -/* CreateAlertRuleOK describes a response with status code 200, with default header values. +/* +CreateAlertRuleOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewCreateAlertRuleDefault(code int) *CreateAlertRuleDefault { } } -/* CreateAlertRuleDefault describes a response with status code -1, with default header values. +/* +CreateAlertRuleDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *CreateAlertRuleDefault) readResponse(response runtime.ClientResponse, c return nil } -/*CreateAlertRuleBody create alert rule body +/* +CreateAlertRuleBody create alert rule body swagger:model CreateAlertRuleBody */ type CreateAlertRuleBody struct { @@ -361,7 +364,8 @@ func (o *CreateAlertRuleBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateAlertRuleDefaultBody create alert rule default body +/* +CreateAlertRuleDefaultBody create alert rule default body swagger:model CreateAlertRuleDefaultBody */ type CreateAlertRuleDefaultBody struct { @@ -464,7 +468,8 @@ func (o *CreateAlertRuleDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateAlertRuleDefaultBodyDetailsItems0 create alert rule default body details items0 +/* +CreateAlertRuleDefaultBodyDetailsItems0 create alert rule default body details items0 swagger:model CreateAlertRuleDefaultBodyDetailsItems0 */ type CreateAlertRuleDefaultBodyDetailsItems0 struct { @@ -500,7 +505,8 @@ func (o *CreateAlertRuleDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*CreateAlertRuleOKBody create alert rule OK body +/* +CreateAlertRuleOKBody create alert rule OK body swagger:model CreateAlertRuleOKBody */ type CreateAlertRuleOKBody struct { @@ -536,7 +542,8 @@ func (o *CreateAlertRuleOKBody) UnmarshalBinary(b []byte) error { return nil } -/*CreateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition. +/* +CreateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition. swagger:model CreateAlertRuleParamsBodyFiltersItems0 */ type CreateAlertRuleParamsBodyFiltersItems0 struct { @@ -636,7 +643,8 @@ func (o *CreateAlertRuleParamsBodyFiltersItems0) UnmarshalBinary(b []byte) error return nil } -/*CreateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. +/* +CreateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. swagger:model CreateAlertRuleParamsBodyParamsItems0 */ type CreateAlertRuleParamsBodyParamsItems0 struct { diff --git a/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go index 50f7a6d0ae..7b24bccb74 100644 --- a/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go @@ -52,10 +52,12 @@ func NewDeleteAlertRuleParamsWithHTTPClient(client *http.Client) *DeleteAlertRul } } -/* DeleteAlertRuleParams contains all the parameters to send to the API endpoint - for the delete alert rule operation. +/* +DeleteAlertRuleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the delete alert rule operation. + + Typically these are written to a http.Request. */ type DeleteAlertRuleParams struct { // Body. diff --git a/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go index 4fa1459301..accdebbdc8 100644 --- a/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go @@ -48,7 +48,8 @@ func NewDeleteAlertRuleOK() *DeleteAlertRuleOK { return &DeleteAlertRuleOK{} } -/* DeleteAlertRuleOK describes a response with status code 200, with default header values. +/* +DeleteAlertRuleOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewDeleteAlertRuleDefault(code int) *DeleteAlertRuleDefault { } } -/* DeleteAlertRuleDefault describes a response with status code -1, with default header values. +/* +DeleteAlertRuleDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *DeleteAlertRuleDefault) readResponse(response runtime.ClientResponse, c return nil } -/*DeleteAlertRuleBody delete alert rule body +/* +DeleteAlertRuleBody delete alert rule body swagger:model DeleteAlertRuleBody */ type DeleteAlertRuleBody struct { @@ -150,7 +153,8 @@ func (o *DeleteAlertRuleBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteAlertRuleDefaultBody delete alert rule default body +/* +DeleteAlertRuleDefaultBody delete alert rule default body swagger:model DeleteAlertRuleDefaultBody */ type DeleteAlertRuleDefaultBody struct { @@ -253,7 +257,8 @@ func (o *DeleteAlertRuleDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DeleteAlertRuleDefaultBodyDetailsItems0 delete alert rule default body details items0 +/* +DeleteAlertRuleDefaultBodyDetailsItems0 delete alert rule default body details items0 swagger:model DeleteAlertRuleDefaultBodyDetailsItems0 */ type DeleteAlertRuleDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go b/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go index 9a6ea5045c..324b22bb8c 100644 --- a/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go +++ b/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go @@ -52,10 +52,12 @@ func NewListAlertRulesParamsWithHTTPClient(client *http.Client) *ListAlertRulesP } } -/* ListAlertRulesParams contains all the parameters to send to the API endpoint - for the list alert rules operation. +/* +ListAlertRulesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list alert rules operation. + + Typically these are written to a http.Request. */ type ListAlertRulesParams struct { // Body. diff --git a/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go b/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go index da11ca435e..1d63410d83 100644 --- a/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go +++ b/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go @@ -50,7 +50,8 @@ func NewListAlertRulesOK() *ListAlertRulesOK { return &ListAlertRulesOK{} } -/* ListAlertRulesOK describes a response with status code 200, with default header values. +/* +ListAlertRulesOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListAlertRulesDefault(code int) *ListAlertRulesDefault { } } -/* ListAlertRulesDefault describes a response with status code -1, with default header values. +/* +ListAlertRulesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListAlertRulesDefault) readResponse(response runtime.ClientResponse, co return nil } -/*ListAlertRulesBody list alert rules body +/* +ListAlertRulesBody list alert rules body swagger:model ListAlertRulesBody */ type ListAlertRulesBody struct { @@ -206,7 +209,8 @@ func (o *ListAlertRulesBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertRulesDefaultBody list alert rules default body +/* +ListAlertRulesDefaultBody list alert rules default body swagger:model ListAlertRulesDefaultBody */ type ListAlertRulesDefaultBody struct { @@ -309,7 +313,8 @@ func (o *ListAlertRulesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertRulesDefaultBodyDetailsItems0 list alert rules default body details items0 +/* +ListAlertRulesDefaultBodyDetailsItems0 list alert rules default body details items0 swagger:model ListAlertRulesDefaultBodyDetailsItems0 */ type ListAlertRulesDefaultBodyDetailsItems0 struct { @@ -345,7 +350,8 @@ func (o *ListAlertRulesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ListAlertRulesOKBody list alert rules OK body +/* +ListAlertRulesOKBody list alert rules OK body swagger:model ListAlertRulesOKBody */ type ListAlertRulesOKBody struct { @@ -487,7 +493,8 @@ func (o *ListAlertRulesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertRulesOKBodyRulesItems0 Rule represents Alert Rule. +/* +ListAlertRulesOKBodyRulesItems0 Rule represents Alert Rule. swagger:model ListAlertRulesOKBodyRulesItems0 */ type ListAlertRulesOKBodyRulesItems0 struct { @@ -944,7 +951,8 @@ func (o *ListAlertRulesOKBodyRulesItems0) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0 Channel represents a single Notification Channel. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0 Channel represents a single Notification Channel. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0 */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0 struct { @@ -1176,7 +1184,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) UnmarshalBinary(b []byte return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig EmailConfig represents email configuration. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig EmailConfig represents email configuration. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig struct { @@ -1215,7 +1224,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig) UnmarshalBina return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig PagerDutyConfig represents PagerDuty configuration. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig struct { @@ -1257,7 +1267,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig) Unmarshal return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig SlackConfig represents Slack configuration. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig SlackConfig represents Slack configuration. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig struct { @@ -1296,7 +1307,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig) UnmarshalBina return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig WebhookConfig represents webhook configuration. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig struct { @@ -1393,7 +1405,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig) UnmarshalBi return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HTTP client configuration. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig struct { @@ -1535,7 +1548,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) U return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth represents basic HTTP auth configuration. swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { @@ -1577,7 +1591,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBas return nil } -/*ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager +/* +ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS configuration for alertmanager // https://prometheus.io/docs/alerting/latest/configuration/#tls_config swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig */ @@ -1641,7 +1656,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLS return nil } -/*ListAlertRulesOKBodyRulesItems0FiltersItems0 Filter repsents a single filter condition. +/* +ListAlertRulesOKBodyRulesItems0FiltersItems0 Filter repsents a single filter condition. swagger:model ListAlertRulesOKBodyRulesItems0FiltersItems0 */ type ListAlertRulesOKBodyRulesItems0FiltersItems0 struct { @@ -1741,7 +1757,8 @@ func (o *ListAlertRulesOKBodyRulesItems0FiltersItems0) UnmarshalBinary(b []byte) return nil } -/*ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 ParamDefinition represents a single query parameter. +/* +ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 ParamDefinition represents a single query parameter. swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 struct { @@ -2038,7 +2055,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) UnmarshalBinary return nil } -/*ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool BoolParamDefinition represents boolean parameter's default value. +/* +ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool BoolParamDefinition represents boolean parameter's default value. swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool struct { @@ -2134,7 +2152,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool) UnmarshalBi return nil } -/*ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float FloatParamDefinition represents float parameter's default value and valid range. +/* +ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float FloatParamDefinition represents float parameter's default value and valid range. swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float struct { @@ -2185,7 +2204,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float) UnmarshalB return nil } -/*ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String StringParamDefinition represents string parameter's default value. +/* +ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String StringParamDefinition represents string parameter's default value. swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String struct { @@ -2224,7 +2244,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String) Unmarshal return nil } -/*ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. +/* +ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. swagger:model ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 */ type ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 struct { @@ -2330,7 +2351,8 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsValuesItems0) UnmarshalBinary(b [] return nil } -/*ListAlertRulesOKBodyTotals PageTotals represents total values for pagination. +/* +ListAlertRulesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertRulesOKBodyTotals */ type ListAlertRulesOKBodyTotals struct { @@ -2369,7 +2391,8 @@ func (o *ListAlertRulesOKBodyTotals) UnmarshalBinary(b []byte) error { return nil } -/*ListAlertRulesParamsBodyPageParams PageParams represents page request parameters for pagination. +/* +ListAlertRulesParamsBodyPageParams PageParams represents page request parameters for pagination. swagger:model ListAlertRulesParamsBodyPageParams */ type ListAlertRulesParamsBodyPageParams struct { diff --git a/api/managementpb/ia/json/client/rules/rules_client.go b/api/managementpb/ia/json/client/rules/rules_client.go index 4c46d0b150..5a14a8e792 100644 --- a/api/managementpb/ia/json/client/rules/rules_client.go +++ b/api/managementpb/ia/json/client/rules/rules_client.go @@ -42,7 +42,7 @@ type ClientService interface { } /* - CreateAlertRule creates alert rule creates alerting rule +CreateAlertRule creates alert rule creates alerting rule */ func (a *Client) CreateAlertRule(params *CreateAlertRuleParams, opts ...ClientOption) (*CreateAlertRuleOK, error) { // TODO: Validate the params before sending @@ -79,7 +79,7 @@ func (a *Client) CreateAlertRule(params *CreateAlertRuleParams, opts ...ClientOp } /* - DeleteAlertRule deletes alert rule deletes alerting rule +DeleteAlertRule deletes alert rule deletes alerting rule */ func (a *Client) DeleteAlertRule(params *DeleteAlertRuleParams, opts ...ClientOption) (*DeleteAlertRuleOK, error) { // TODO: Validate the params before sending @@ -116,7 +116,7 @@ func (a *Client) DeleteAlertRule(params *DeleteAlertRuleParams, opts ...ClientOp } /* - ListAlertRules lists alert rules returns a list of all alerting rules +ListAlertRules lists alert rules returns a list of all alerting rules */ func (a *Client) ListAlertRules(params *ListAlertRulesParams, opts ...ClientOption) (*ListAlertRulesOK, error) { // TODO: Validate the params before sending @@ -153,7 +153,7 @@ func (a *Client) ListAlertRules(params *ListAlertRulesParams, opts ...ClientOpti } /* - ToggleAlertRule toggles alert rule allows to switch between disabled and enabled states of an alert rule +ToggleAlertRule toggles alert rule allows to switch between disabled and enabled states of an alert rule */ func (a *Client) ToggleAlertRule(params *ToggleAlertRuleParams, opts ...ClientOption) (*ToggleAlertRuleOK, error) { // TODO: Validate the params before sending @@ -190,7 +190,7 @@ func (a *Client) ToggleAlertRule(params *ToggleAlertRuleParams, opts ...ClientOp } /* - UpdateAlertRule updates alert rule updates alerting rule +UpdateAlertRule updates alert rule updates alerting rule */ func (a *Client) UpdateAlertRule(params *UpdateAlertRuleParams, opts ...ClientOption) (*UpdateAlertRuleOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go index ee5b41d2ba..98c9657468 100644 --- a/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go @@ -52,10 +52,12 @@ func NewToggleAlertRuleParamsWithHTTPClient(client *http.Client) *ToggleAlertRul } } -/* ToggleAlertRuleParams contains all the parameters to send to the API endpoint - for the toggle alert rule operation. +/* +ToggleAlertRuleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the toggle alert rule operation. + + Typically these are written to a http.Request. */ type ToggleAlertRuleParams struct { // Body. diff --git a/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go index bd11025fd3..afbd371436 100644 --- a/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go @@ -50,7 +50,8 @@ func NewToggleAlertRuleOK() *ToggleAlertRuleOK { return &ToggleAlertRuleOK{} } -/* ToggleAlertRuleOK describes a response with status code 200, with default header values. +/* +ToggleAlertRuleOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewToggleAlertRuleDefault(code int) *ToggleAlertRuleDefault { } } -/* ToggleAlertRuleDefault describes a response with status code -1, with default header values. +/* +ToggleAlertRuleDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ToggleAlertRuleDefault) readResponse(response runtime.ClientResponse, c return nil } -/*ToggleAlertRuleBody toggle alert rule body +/* +ToggleAlertRuleBody toggle alert rule body swagger:model ToggleAlertRuleBody */ type ToggleAlertRuleBody struct { @@ -215,7 +218,8 @@ func (o *ToggleAlertRuleBody) UnmarshalBinary(b []byte) error { return nil } -/*ToggleAlertRuleDefaultBody toggle alert rule default body +/* +ToggleAlertRuleDefaultBody toggle alert rule default body swagger:model ToggleAlertRuleDefaultBody */ type ToggleAlertRuleDefaultBody struct { @@ -318,7 +322,8 @@ func (o *ToggleAlertRuleDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ToggleAlertRuleDefaultBodyDetailsItems0 toggle alert rule default body details items0 +/* +ToggleAlertRuleDefaultBodyDetailsItems0 toggle alert rule default body details items0 swagger:model ToggleAlertRuleDefaultBodyDetailsItems0 */ type ToggleAlertRuleDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go index 7e660fdba8..0e0b4d7bc6 100644 --- a/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go @@ -52,10 +52,12 @@ func NewUpdateAlertRuleParamsWithHTTPClient(client *http.Client) *UpdateAlertRul } } -/* UpdateAlertRuleParams contains all the parameters to send to the API endpoint - for the update alert rule operation. +/* +UpdateAlertRuleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update alert rule operation. + + Typically these are written to a http.Request. */ type UpdateAlertRuleParams struct { // Body. diff --git a/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go index 5c133158ae..a4026d6252 100644 --- a/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go @@ -50,7 +50,8 @@ func NewUpdateAlertRuleOK() *UpdateAlertRuleOK { return &UpdateAlertRuleOK{} } -/* UpdateAlertRuleOK describes a response with status code 200, with default header values. +/* +UpdateAlertRuleOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewUpdateAlertRuleDefault(code int) *UpdateAlertRuleDefault { } } -/* UpdateAlertRuleDefault describes a response with status code -1, with default header values. +/* +UpdateAlertRuleDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *UpdateAlertRuleDefault) readResponse(response runtime.ClientResponse, c return nil } -/*UpdateAlertRuleBody update alert rule body +/* +UpdateAlertRuleBody update alert rule body swagger:model UpdateAlertRuleBody */ type UpdateAlertRuleBody struct { @@ -356,7 +359,8 @@ func (o *UpdateAlertRuleBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateAlertRuleDefaultBody update alert rule default body +/* +UpdateAlertRuleDefaultBody update alert rule default body swagger:model UpdateAlertRuleDefaultBody */ type UpdateAlertRuleDefaultBody struct { @@ -459,7 +463,8 @@ func (o *UpdateAlertRuleDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateAlertRuleDefaultBodyDetailsItems0 update alert rule default body details items0 +/* +UpdateAlertRuleDefaultBodyDetailsItems0 update alert rule default body details items0 swagger:model UpdateAlertRuleDefaultBodyDetailsItems0 */ type UpdateAlertRuleDefaultBodyDetailsItems0 struct { @@ -495,7 +500,8 @@ func (o *UpdateAlertRuleDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*UpdateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition. +/* +UpdateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition. swagger:model UpdateAlertRuleParamsBodyFiltersItems0 */ type UpdateAlertRuleParamsBodyFiltersItems0 struct { @@ -595,7 +601,8 @@ func (o *UpdateAlertRuleParamsBodyFiltersItems0) UnmarshalBinary(b []byte) error return nil } -/*UpdateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. +/* +UpdateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter value for List, Change and Update APIs. swagger:model UpdateAlertRuleParamsBodyParamsItems0 */ type UpdateAlertRuleParamsBodyParamsItems0 struct { diff --git a/api/managementpb/ia/rules.pb.go b/api/managementpb/ia/rules.pb.go index c469c7b1cf..3788f388ba 100644 --- a/api/managementpb/ia/rules.pb.go +++ b/api/managementpb/ia/rules.pb.go @@ -157,6 +157,7 @@ type ParamValue struct { // Parameter value. // // Types that are assignable to Value: + // // *ParamValue_Bool // *ParamValue_Float // *ParamValue_String_ diff --git a/api/managementpb/json/client/actions/actions_client.go b/api/managementpb/json/client/actions/actions_client.go index 691c6c00ad..c062467ec3 100644 --- a/api/managementpb/json/client/actions/actions_client.go +++ b/api/managementpb/json/client/actions/actions_client.go @@ -62,9 +62,9 @@ type ClientService interface { } /* - CancelAction cancels action +CancelAction cancels action - Stops an Action. +Stops an Action. */ func (a *Client) CancelAction(params *CancelActionParams, opts ...ClientOption) (*CancelActionOK, error) { // TODO: Validate the params before sending @@ -101,9 +101,9 @@ func (a *Client) CancelAction(params *CancelActionParams, opts ...ClientOption) } /* - GetAction gets action +GetAction gets action - Gets the result of a given Action. +Gets the result of a given Action. */ func (a *Client) GetAction(params *GetActionParams, opts ...ClientOption) (*GetActionOK, error) { // TODO: Validate the params before sending @@ -140,9 +140,9 @@ func (a *Client) GetAction(params *GetActionParams, opts ...ClientOption) (*GetA } /* - StartMongoDBExplainAction starts mongo DB e x p l a i n action +StartMongoDBExplainAction starts mongo DB e x p l a i n action - Starts 'MongoDB EXPLAIN' Action. +Starts 'MongoDB EXPLAIN' Action. */ func (a *Client) StartMongoDBExplainAction(params *StartMongoDBExplainActionParams, opts ...ClientOption) (*StartMongoDBExplainActionOK, error) { // TODO: Validate the params before sending @@ -179,9 +179,9 @@ func (a *Client) StartMongoDBExplainAction(params *StartMongoDBExplainActionPara } /* - StartMySQLExplainAction starts my SQL e x p l a i n action +StartMySQLExplainAction starts my SQL e x p l a i n action - Starts 'MySQL EXPLAIN' Action with traditional output. +Starts 'MySQL EXPLAIN' Action with traditional output. */ func (a *Client) StartMySQLExplainAction(params *StartMySQLExplainActionParams, opts ...ClientOption) (*StartMySQLExplainActionOK, error) { // TODO: Validate the params before sending @@ -218,9 +218,9 @@ func (a *Client) StartMySQLExplainAction(params *StartMySQLExplainActionParams, } /* - StartMySQLExplainJSONAction starts my SQL e x p l a i n JSON action +StartMySQLExplainJSONAction starts my SQL e x p l a i n JSON action - Starts 'MySQL EXPLAIN' Action with JSON output. +Starts 'MySQL EXPLAIN' Action with JSON output. */ func (a *Client) StartMySQLExplainJSONAction(params *StartMySQLExplainJSONActionParams, opts ...ClientOption) (*StartMySQLExplainJSONActionOK, error) { // TODO: Validate the params before sending @@ -257,9 +257,9 @@ func (a *Client) StartMySQLExplainJSONAction(params *StartMySQLExplainJSONAction } /* - StartMySQLExplainTraditionalJSONAction starts my SQL e x p l a i n traditional JSON action +StartMySQLExplainTraditionalJSONAction starts my SQL e x p l a i n traditional JSON action - Starts 'MySQL EXPLAIN' Action with traditional JSON output. +Starts 'MySQL EXPLAIN' Action with traditional JSON output. */ func (a *Client) StartMySQLExplainTraditionalJSONAction(params *StartMySQLExplainTraditionalJSONActionParams, opts ...ClientOption) (*StartMySQLExplainTraditionalJSONActionOK, error) { // TODO: Validate the params before sending @@ -296,9 +296,9 @@ func (a *Client) StartMySQLExplainTraditionalJSONAction(params *StartMySQLExplai } /* - StartMySQLShowCreateTableAction starts my SQL s h o w c r e a t e t a b l e action +StartMySQLShowCreateTableAction starts my SQL s h o w c r e a t e t a b l e action - Starts 'MySQL SHOW CREATE TABLE' Action. +Starts 'MySQL SHOW CREATE TABLE' Action. */ func (a *Client) StartMySQLShowCreateTableAction(params *StartMySQLShowCreateTableActionParams, opts ...ClientOption) (*StartMySQLShowCreateTableActionOK, error) { // TODO: Validate the params before sending @@ -335,9 +335,9 @@ func (a *Client) StartMySQLShowCreateTableAction(params *StartMySQLShowCreateTab } /* - StartMySQLShowIndexAction starts my SQL s h o w i n d e x action +StartMySQLShowIndexAction starts my SQL s h o w i n d e x action - Starts 'MySQL SHOW INDEX' Action. +Starts 'MySQL SHOW INDEX' Action. */ func (a *Client) StartMySQLShowIndexAction(params *StartMySQLShowIndexActionParams, opts ...ClientOption) (*StartMySQLShowIndexActionOK, error) { // TODO: Validate the params before sending @@ -374,9 +374,9 @@ func (a *Client) StartMySQLShowIndexAction(params *StartMySQLShowIndexActionPara } /* - StartMySQLShowTableStatusAction starts my SQL s h o w t a b l e s t a t u s action +StartMySQLShowTableStatusAction starts my SQL s h o w t a b l e s t a t u s action - Starts 'MySQL SHOW TABLE STATUS' Action. +Starts 'MySQL SHOW TABLE STATUS' Action. */ func (a *Client) StartMySQLShowTableStatusAction(params *StartMySQLShowTableStatusActionParams, opts ...ClientOption) (*StartMySQLShowTableStatusActionOK, error) { // TODO: Validate the params before sending @@ -413,9 +413,9 @@ func (a *Client) StartMySQLShowTableStatusAction(params *StartMySQLShowTableStat } /* - StartPTMongoDBSummaryAction starts PT mongo DB summary action +StartPTMongoDBSummaryAction starts PT mongo DB summary action - Starts 'Percona Toolkit MongoDB Summary' Action. +Starts 'Percona Toolkit MongoDB Summary' Action. */ func (a *Client) StartPTMongoDBSummaryAction(params *StartPTMongoDBSummaryActionParams, opts ...ClientOption) (*StartPTMongoDBSummaryActionOK, error) { // TODO: Validate the params before sending @@ -452,9 +452,9 @@ func (a *Client) StartPTMongoDBSummaryAction(params *StartPTMongoDBSummaryAction } /* - StartPTMySQLSummaryAction starts PT my SQL summary action +StartPTMySQLSummaryAction starts PT my SQL summary action - Starts 'Percona Toolkit MySQL Summary' Action. +Starts 'Percona Toolkit MySQL Summary' Action. */ func (a *Client) StartPTMySQLSummaryAction(params *StartPTMySQLSummaryActionParams, opts ...ClientOption) (*StartPTMySQLSummaryActionOK, error) { // TODO: Validate the params before sending @@ -491,9 +491,9 @@ func (a *Client) StartPTMySQLSummaryAction(params *StartPTMySQLSummaryActionPara } /* - StartPTPgSummaryAction starts PT postgre SQL summary action +StartPTPgSummaryAction starts PT postgre SQL summary action - Starts 'Percona Toolkit PostgreSQL Summary' Action. +Starts 'Percona Toolkit PostgreSQL Summary' Action. */ func (a *Client) StartPTPgSummaryAction(params *StartPTPgSummaryActionParams, opts ...ClientOption) (*StartPTPgSummaryActionOK, error) { // TODO: Validate the params before sending @@ -530,9 +530,9 @@ func (a *Client) StartPTPgSummaryAction(params *StartPTPgSummaryActionParams, op } /* - StartPTSummaryAction starts PT summary action +StartPTSummaryAction starts PT summary action - Starts 'Percona Toolkit Summary' Action. +Starts 'Percona Toolkit Summary' Action. */ func (a *Client) StartPTSummaryAction(params *StartPTSummaryActionParams, opts ...ClientOption) (*StartPTSummaryActionOK, error) { // TODO: Validate the params before sending @@ -569,9 +569,9 @@ func (a *Client) StartPTSummaryAction(params *StartPTSummaryActionParams, opts . } /* - StartPostgreSQLShowCreateTableAction starts postgre SQL s h o w c r e a t e t a b l e action +StartPostgreSQLShowCreateTableAction starts postgre SQL s h o w c r e a t e t a b l e action - Starts 'PostgreSQL SHOW CREATE TABLE' Action. +Starts 'PostgreSQL SHOW CREATE TABLE' Action. */ func (a *Client) StartPostgreSQLShowCreateTableAction(params *StartPostgreSQLShowCreateTableActionParams, opts ...ClientOption) (*StartPostgreSQLShowCreateTableActionOK, error) { // TODO: Validate the params before sending @@ -608,9 +608,9 @@ func (a *Client) StartPostgreSQLShowCreateTableAction(params *StartPostgreSQLSho } /* - StartPostgreSQLShowIndexAction starts postgre SQL s h o w i n d e x action +StartPostgreSQLShowIndexAction starts postgre SQL s h o w i n d e x action - Starts 'PostgreSQL SHOW INDEX' Action. +Starts 'PostgreSQL SHOW INDEX' Action. */ func (a *Client) StartPostgreSQLShowIndexAction(params *StartPostgreSQLShowIndexActionParams, opts ...ClientOption) (*StartPostgreSQLShowIndexActionOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/actions/cancel_action_parameters.go b/api/managementpb/json/client/actions/cancel_action_parameters.go index ddc8ad737f..f89e277a27 100644 --- a/api/managementpb/json/client/actions/cancel_action_parameters.go +++ b/api/managementpb/json/client/actions/cancel_action_parameters.go @@ -52,10 +52,12 @@ func NewCancelActionParamsWithHTTPClient(client *http.Client) *CancelActionParam } } -/* CancelActionParams contains all the parameters to send to the API endpoint - for the cancel action operation. +/* +CancelActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the cancel action operation. + + Typically these are written to a http.Request. */ type CancelActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/cancel_action_responses.go b/api/managementpb/json/client/actions/cancel_action_responses.go index b89229254b..0816b2f0b2 100644 --- a/api/managementpb/json/client/actions/cancel_action_responses.go +++ b/api/managementpb/json/client/actions/cancel_action_responses.go @@ -48,7 +48,8 @@ func NewCancelActionOK() *CancelActionOK { return &CancelActionOK{} } -/* CancelActionOK describes a response with status code 200, with default header values. +/* +CancelActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewCancelActionDefault(code int) *CancelActionDefault { } } -/* CancelActionDefault describes a response with status code -1, with default header values. +/* +CancelActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *CancelActionDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*CancelActionBody cancel action body +/* +CancelActionBody cancel action body swagger:model CancelActionBody */ type CancelActionBody struct { @@ -150,7 +153,8 @@ func (o *CancelActionBody) UnmarshalBinary(b []byte) error { return nil } -/*CancelActionDefaultBody cancel action default body +/* +CancelActionDefaultBody cancel action default body swagger:model CancelActionDefaultBody */ type CancelActionDefaultBody struct { @@ -253,7 +257,8 @@ func (o *CancelActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CancelActionDefaultBodyDetailsItems0 cancel action default body details items0 +/* +CancelActionDefaultBodyDetailsItems0 cancel action default body details items0 swagger:model CancelActionDefaultBodyDetailsItems0 */ type CancelActionDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/json/client/actions/get_action_parameters.go b/api/managementpb/json/client/actions/get_action_parameters.go index ae626e9078..b3a87a7fcb 100644 --- a/api/managementpb/json/client/actions/get_action_parameters.go +++ b/api/managementpb/json/client/actions/get_action_parameters.go @@ -52,10 +52,12 @@ func NewGetActionParamsWithHTTPClient(client *http.Client) *GetActionParams { } } -/* GetActionParams contains all the parameters to send to the API endpoint - for the get action operation. +/* +GetActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get action operation. + + Typically these are written to a http.Request. */ type GetActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/get_action_responses.go b/api/managementpb/json/client/actions/get_action_responses.go index f9558ec76a..f8819af27a 100644 --- a/api/managementpb/json/client/actions/get_action_responses.go +++ b/api/managementpb/json/client/actions/get_action_responses.go @@ -48,7 +48,8 @@ func NewGetActionOK() *GetActionOK { return &GetActionOK{} } -/* GetActionOK describes a response with status code 200, with default header values. +/* +GetActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetActionDefault(code int) *GetActionDefault { } } -/* GetActionDefault describes a response with status code -1, with default header values. +/* +GetActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetActionDefault) readResponse(response runtime.ClientResponse, consume return nil } -/*GetActionBody get action body +/* +GetActionBody get action body swagger:model GetActionBody */ type GetActionBody struct { @@ -152,7 +155,8 @@ func (o *GetActionBody) UnmarshalBinary(b []byte) error { return nil } -/*GetActionDefaultBody get action default body +/* +GetActionDefaultBody get action default body swagger:model GetActionDefaultBody */ type GetActionDefaultBody struct { @@ -255,7 +259,8 @@ func (o *GetActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetActionDefaultBodyDetailsItems0 get action default body details items0 +/* +GetActionDefaultBodyDetailsItems0 get action default body details items0 swagger:model GetActionDefaultBodyDetailsItems0 */ type GetActionDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *GetActionDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetActionOKBody get action OK body +/* +GetActionOKBody get action OK body swagger:model GetActionOKBody */ type GetActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go b/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go index e5c0d0c787..dfe69462d0 100644 --- a/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go +++ b/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMongoDBExplainActionParamsWithHTTPClient(client *http.Client) *Star } } -/* StartMongoDBExplainActionParams contains all the parameters to send to the API endpoint - for the start mongo DB explain action operation. +/* +StartMongoDBExplainActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start mongo DB explain action operation. + + Typically these are written to a http.Request. */ type StartMongoDBExplainActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go b/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go index 87c6f4e930..68531bf73c 100644 --- a/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go +++ b/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go @@ -48,7 +48,8 @@ func NewStartMongoDBExplainActionOK() *StartMongoDBExplainActionOK { return &StartMongoDBExplainActionOK{} } -/* StartMongoDBExplainActionOK describes a response with status code 200, with default header values. +/* +StartMongoDBExplainActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMongoDBExplainActionDefault(code int) *StartMongoDBExplainActionDef } } -/* StartMongoDBExplainActionDefault describes a response with status code -1, with default header values. +/* +StartMongoDBExplainActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMongoDBExplainActionDefault) readResponse(response runtime.ClientR return nil } -/*StartMongoDBExplainActionBody start mongo DB explain action body +/* +StartMongoDBExplainActionBody start mongo DB explain action body swagger:model StartMongoDBExplainActionBody */ type StartMongoDBExplainActionBody struct { @@ -158,7 +161,8 @@ func (o *StartMongoDBExplainActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMongoDBExplainActionDefaultBody start mongo DB explain action default body +/* +StartMongoDBExplainActionDefaultBody start mongo DB explain action default body swagger:model StartMongoDBExplainActionDefaultBody */ type StartMongoDBExplainActionDefaultBody struct { @@ -261,7 +265,8 @@ func (o *StartMongoDBExplainActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMongoDBExplainActionDefaultBodyDetailsItems0 start mongo DB explain action default body details items0 +/* +StartMongoDBExplainActionDefaultBodyDetailsItems0 start mongo DB explain action default body details items0 swagger:model StartMongoDBExplainActionDefaultBodyDetailsItems0 */ type StartMongoDBExplainActionDefaultBodyDetailsItems0 struct { @@ -297,7 +302,8 @@ func (o *StartMongoDBExplainActionDefaultBodyDetailsItems0) UnmarshalBinary(b [] return nil } -/*StartMongoDBExplainActionOKBody start mongo DB explain action OK body +/* +StartMongoDBExplainActionOKBody start mongo DB explain action OK body swagger:model StartMongoDBExplainActionOKBody */ type StartMongoDBExplainActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go index 97a01b4f11..c6046f432b 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMySQLExplainActionParamsWithHTTPClient(client *http.Client) *StartM } } -/* StartMySQLExplainActionParams contains all the parameters to send to the API endpoint - for the start my SQL explain action operation. +/* +StartMySQLExplainActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start my SQL explain action operation. + + Typically these are written to a http.Request. */ type StartMySQLExplainActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go index 8267eb6d68..3a9b33a8a5 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go @@ -48,7 +48,8 @@ func NewStartMySQLExplainActionOK() *StartMySQLExplainActionOK { return &StartMySQLExplainActionOK{} } -/* StartMySQLExplainActionOK describes a response with status code 200, with default header values. +/* +StartMySQLExplainActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMySQLExplainActionDefault(code int) *StartMySQLExplainActionDefault } } -/* StartMySQLExplainActionDefault describes a response with status code -1, with default header values. +/* +StartMySQLExplainActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMySQLExplainActionDefault) readResponse(response runtime.ClientRes return nil } -/*StartMySQLExplainActionBody start my SQL explain action body +/* +StartMySQLExplainActionBody start my SQL explain action body swagger:model StartMySQLExplainActionBody */ type StartMySQLExplainActionBody struct { @@ -161,7 +164,8 @@ func (o *StartMySQLExplainActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLExplainActionDefaultBody start my SQL explain action default body +/* +StartMySQLExplainActionDefaultBody start my SQL explain action default body swagger:model StartMySQLExplainActionDefaultBody */ type StartMySQLExplainActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartMySQLExplainActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLExplainActionDefaultBodyDetailsItems0 start my SQL explain action default body details items0 +/* +StartMySQLExplainActionDefaultBodyDetailsItems0 start my SQL explain action default body details items0 swagger:model StartMySQLExplainActionDefaultBodyDetailsItems0 */ type StartMySQLExplainActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartMySQLExplainActionDefaultBodyDetailsItems0) UnmarshalBinary(b []by return nil } -/*StartMySQLExplainActionOKBody start my SQL explain action OK body +/* +StartMySQLExplainActionOKBody start my SQL explain action OK body swagger:model StartMySQLExplainActionOKBody */ type StartMySQLExplainActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go index 6971f51605..03d9f224b7 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMySQLExplainJSONActionParamsWithHTTPClient(client *http.Client) *St } } -/* StartMySQLExplainJSONActionParams contains all the parameters to send to the API endpoint - for the start my SQL explain JSON action operation. +/* +StartMySQLExplainJSONActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start my SQL explain JSON action operation. + + Typically these are written to a http.Request. */ type StartMySQLExplainJSONActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go index f085df5ff0..273216b710 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go @@ -48,7 +48,8 @@ func NewStartMySQLExplainJSONActionOK() *StartMySQLExplainJSONActionOK { return &StartMySQLExplainJSONActionOK{} } -/* StartMySQLExplainJSONActionOK describes a response with status code 200, with default header values. +/* +StartMySQLExplainJSONActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMySQLExplainJSONActionDefault(code int) *StartMySQLExplainJSONActio } } -/* StartMySQLExplainJSONActionDefault describes a response with status code -1, with default header values. +/* +StartMySQLExplainJSONActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMySQLExplainJSONActionDefault) readResponse(response runtime.Clien return nil } -/*StartMySQLExplainJSONActionBody start my SQL explain JSON action body +/* +StartMySQLExplainJSONActionBody start my SQL explain JSON action body swagger:model StartMySQLExplainJSONActionBody */ type StartMySQLExplainJSONActionBody struct { @@ -161,7 +164,8 @@ func (o *StartMySQLExplainJSONActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLExplainJSONActionDefaultBody start my SQL explain JSON action default body +/* +StartMySQLExplainJSONActionDefaultBody start my SQL explain JSON action default body swagger:model StartMySQLExplainJSONActionDefaultBody */ type StartMySQLExplainJSONActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartMySQLExplainJSONActionDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*StartMySQLExplainJSONActionDefaultBodyDetailsItems0 start my SQL explain JSON action default body details items0 +/* +StartMySQLExplainJSONActionDefaultBodyDetailsItems0 start my SQL explain JSON action default body details items0 swagger:model StartMySQLExplainJSONActionDefaultBodyDetailsItems0 */ type StartMySQLExplainJSONActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartMySQLExplainJSONActionDefaultBodyDetailsItems0) UnmarshalBinary(b return nil } -/*StartMySQLExplainJSONActionOKBody start my SQL explain JSON action OK body +/* +StartMySQLExplainJSONActionOKBody start my SQL explain JSON action OK body swagger:model StartMySQLExplainJSONActionOKBody */ type StartMySQLExplainJSONActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go index 8e16f55242..d182205d2b 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMySQLExplainTraditionalJSONActionParamsWithHTTPClient(client *http. } } -/* StartMySQLExplainTraditionalJSONActionParams contains all the parameters to send to the API endpoint - for the start my SQL explain traditional JSON action operation. +/* +StartMySQLExplainTraditionalJSONActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start my SQL explain traditional JSON action operation. + + Typically these are written to a http.Request. */ type StartMySQLExplainTraditionalJSONActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go index 8c6ceb18b6..ebea881b94 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go @@ -48,7 +48,8 @@ func NewStartMySQLExplainTraditionalJSONActionOK() *StartMySQLExplainTraditional return &StartMySQLExplainTraditionalJSONActionOK{} } -/* StartMySQLExplainTraditionalJSONActionOK describes a response with status code 200, with default header values. +/* +StartMySQLExplainTraditionalJSONActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMySQLExplainTraditionalJSONActionDefault(code int) *StartMySQLExpla } } -/* StartMySQLExplainTraditionalJSONActionDefault describes a response with status code -1, with default header values. +/* +StartMySQLExplainTraditionalJSONActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMySQLExplainTraditionalJSONActionDefault) readResponse(response ru return nil } -/*StartMySQLExplainTraditionalJSONActionBody start my SQL explain traditional JSON action body +/* +StartMySQLExplainTraditionalJSONActionBody start my SQL explain traditional JSON action body swagger:model StartMySQLExplainTraditionalJSONActionBody */ type StartMySQLExplainTraditionalJSONActionBody struct { @@ -161,7 +164,8 @@ func (o *StartMySQLExplainTraditionalJSONActionBody) UnmarshalBinary(b []byte) e return nil } -/*StartMySQLExplainTraditionalJSONActionDefaultBody start my SQL explain traditional JSON action default body +/* +StartMySQLExplainTraditionalJSONActionDefaultBody start my SQL explain traditional JSON action default body swagger:model StartMySQLExplainTraditionalJSONActionDefaultBody */ type StartMySQLExplainTraditionalJSONActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) UnmarshalBinary(b [] return nil } -/*StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 start my SQL explain traditional JSON action default body details items0 +/* +StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 start my SQL explain traditional JSON action default body details items0 swagger:model StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 */ type StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0) Unmarsh return nil } -/*StartMySQLExplainTraditionalJSONActionOKBody start my SQL explain traditional JSON action OK body +/* +StartMySQLExplainTraditionalJSONActionOKBody start my SQL explain traditional JSON action OK body swagger:model StartMySQLExplainTraditionalJSONActionOKBody */ type StartMySQLExplainTraditionalJSONActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go index c5677e6d68..cdb30a1274 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMySQLShowCreateTableActionParamsWithHTTPClient(client *http.Client) } } -/* StartMySQLShowCreateTableActionParams contains all the parameters to send to the API endpoint - for the start my SQL show create table action operation. +/* +StartMySQLShowCreateTableActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start my SQL show create table action operation. + + Typically these are written to a http.Request. */ type StartMySQLShowCreateTableActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go index 10a54a904c..3115a5efbf 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go @@ -48,7 +48,8 @@ func NewStartMySQLShowCreateTableActionOK() *StartMySQLShowCreateTableActionOK { return &StartMySQLShowCreateTableActionOK{} } -/* StartMySQLShowCreateTableActionOK describes a response with status code 200, with default header values. +/* +StartMySQLShowCreateTableActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMySQLShowCreateTableActionDefault(code int) *StartMySQLShowCreateTa } } -/* StartMySQLShowCreateTableActionDefault describes a response with status code -1, with default header values. +/* +StartMySQLShowCreateTableActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMySQLShowCreateTableActionDefault) readResponse(response runtime.C return nil } -/*StartMySQLShowCreateTableActionBody start my SQL show create table action body +/* +StartMySQLShowCreateTableActionBody start my SQL show create table action body swagger:model StartMySQLShowCreateTableActionBody */ type StartMySQLShowCreateTableActionBody struct { @@ -161,7 +164,8 @@ func (o *StartMySQLShowCreateTableActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLShowCreateTableActionDefaultBody start my SQL show create table action default body +/* +StartMySQLShowCreateTableActionDefaultBody start my SQL show create table action default body swagger:model StartMySQLShowCreateTableActionDefaultBody */ type StartMySQLShowCreateTableActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartMySQLShowCreateTableActionDefaultBody) UnmarshalBinary(b []byte) e return nil } -/*StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 start my SQL show create table action default body details items0 +/* +StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 start my SQL show create table action default body details items0 swagger:model StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 */ type StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartMySQLShowCreateTableActionDefaultBodyDetailsItems0) UnmarshalBinar return nil } -/*StartMySQLShowCreateTableActionOKBody start my SQL show create table action OK body +/* +StartMySQLShowCreateTableActionOKBody start my SQL show create table action OK body swagger:model StartMySQLShowCreateTableActionOKBody */ type StartMySQLShowCreateTableActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go index d2e69438cc..a21d88fb3a 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMySQLShowIndexActionParamsWithHTTPClient(client *http.Client) *Star } } -/* StartMySQLShowIndexActionParams contains all the parameters to send to the API endpoint - for the start my SQL show index action operation. +/* +StartMySQLShowIndexActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start my SQL show index action operation. + + Typically these are written to a http.Request. */ type StartMySQLShowIndexActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go index 2aedd6b9cd..b82022dd6d 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go @@ -48,7 +48,8 @@ func NewStartMySQLShowIndexActionOK() *StartMySQLShowIndexActionOK { return &StartMySQLShowIndexActionOK{} } -/* StartMySQLShowIndexActionOK describes a response with status code 200, with default header values. +/* +StartMySQLShowIndexActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMySQLShowIndexActionDefault(code int) *StartMySQLShowIndexActionDef } } -/* StartMySQLShowIndexActionDefault describes a response with status code -1, with default header values. +/* +StartMySQLShowIndexActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMySQLShowIndexActionDefault) readResponse(response runtime.ClientR return nil } -/*StartMySQLShowIndexActionBody start my SQL show index action body +/* +StartMySQLShowIndexActionBody start my SQL show index action body swagger:model StartMySQLShowIndexActionBody */ type StartMySQLShowIndexActionBody struct { @@ -161,7 +164,8 @@ func (o *StartMySQLShowIndexActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLShowIndexActionDefaultBody start my SQL show index action default body +/* +StartMySQLShowIndexActionDefaultBody start my SQL show index action default body swagger:model StartMySQLShowIndexActionDefaultBody */ type StartMySQLShowIndexActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartMySQLShowIndexActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLShowIndexActionDefaultBodyDetailsItems0 start my SQL show index action default body details items0 +/* +StartMySQLShowIndexActionDefaultBodyDetailsItems0 start my SQL show index action default body details items0 swagger:model StartMySQLShowIndexActionDefaultBodyDetailsItems0 */ type StartMySQLShowIndexActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartMySQLShowIndexActionDefaultBodyDetailsItems0) UnmarshalBinary(b [] return nil } -/*StartMySQLShowIndexActionOKBody start my SQL show index action OK body +/* +StartMySQLShowIndexActionOKBody start my SQL show index action OK body swagger:model StartMySQLShowIndexActionOKBody */ type StartMySQLShowIndexActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go index d1afee7ffb..9aca846274 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go @@ -52,10 +52,12 @@ func NewStartMySQLShowTableStatusActionParamsWithHTTPClient(client *http.Client) } } -/* StartMySQLShowTableStatusActionParams contains all the parameters to send to the API endpoint - for the start my SQL show table status action operation. +/* +StartMySQLShowTableStatusActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start my SQL show table status action operation. + + Typically these are written to a http.Request. */ type StartMySQLShowTableStatusActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go index 101614c748..d3403dc057 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go @@ -48,7 +48,8 @@ func NewStartMySQLShowTableStatusActionOK() *StartMySQLShowTableStatusActionOK { return &StartMySQLShowTableStatusActionOK{} } -/* StartMySQLShowTableStatusActionOK describes a response with status code 200, with default header values. +/* +StartMySQLShowTableStatusActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartMySQLShowTableStatusActionDefault(code int) *StartMySQLShowTableSta } } -/* StartMySQLShowTableStatusActionDefault describes a response with status code -1, with default header values. +/* +StartMySQLShowTableStatusActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartMySQLShowTableStatusActionDefault) readResponse(response runtime.C return nil } -/*StartMySQLShowTableStatusActionBody start my SQL show table status action body +/* +StartMySQLShowTableStatusActionBody start my SQL show table status action body swagger:model StartMySQLShowTableStatusActionBody */ type StartMySQLShowTableStatusActionBody struct { @@ -161,7 +164,8 @@ func (o *StartMySQLShowTableStatusActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartMySQLShowTableStatusActionDefaultBody start my SQL show table status action default body +/* +StartMySQLShowTableStatusActionDefaultBody start my SQL show table status action default body swagger:model StartMySQLShowTableStatusActionDefaultBody */ type StartMySQLShowTableStatusActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartMySQLShowTableStatusActionDefaultBody) UnmarshalBinary(b []byte) e return nil } -/*StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 start my SQL show table status action default body details items0 +/* +StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 start my SQL show table status action default body details items0 swagger:model StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 */ type StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartMySQLShowTableStatusActionDefaultBodyDetailsItems0) UnmarshalBinar return nil } -/*StartMySQLShowTableStatusActionOKBody start my SQL show table status action OK body +/* +StartMySQLShowTableStatusActionOKBody start my SQL show table status action OK body swagger:model StartMySQLShowTableStatusActionOKBody */ type StartMySQLShowTableStatusActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go index 8472931ca9..bd14d9a514 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go @@ -52,10 +52,12 @@ func NewStartPostgreSQLShowCreateTableActionParamsWithHTTPClient(client *http.Cl } } -/* StartPostgreSQLShowCreateTableActionParams contains all the parameters to send to the API endpoint - for the start postgre SQL show create table action operation. +/* +StartPostgreSQLShowCreateTableActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start postgre SQL show create table action operation. + + Typically these are written to a http.Request. */ type StartPostgreSQLShowCreateTableActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go index d3969a24e7..97260190f8 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go @@ -48,7 +48,8 @@ func NewStartPostgreSQLShowCreateTableActionOK() *StartPostgreSQLShowCreateTable return &StartPostgreSQLShowCreateTableActionOK{} } -/* StartPostgreSQLShowCreateTableActionOK describes a response with status code 200, with default header values. +/* +StartPostgreSQLShowCreateTableActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartPostgreSQLShowCreateTableActionDefault(code int) *StartPostgreSQLSh } } -/* StartPostgreSQLShowCreateTableActionDefault describes a response with status code -1, with default header values. +/* +StartPostgreSQLShowCreateTableActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartPostgreSQLShowCreateTableActionDefault) readResponse(response runt return nil } -/*StartPostgreSQLShowCreateTableActionBody start postgre SQL show create table action body +/* +StartPostgreSQLShowCreateTableActionBody start postgre SQL show create table action body swagger:model StartPostgreSQLShowCreateTableActionBody */ type StartPostgreSQLShowCreateTableActionBody struct { @@ -161,7 +164,8 @@ func (o *StartPostgreSQLShowCreateTableActionBody) UnmarshalBinary(b []byte) err return nil } -/*StartPostgreSQLShowCreateTableActionDefaultBody start postgre SQL show create table action default body +/* +StartPostgreSQLShowCreateTableActionDefaultBody start postgre SQL show create table action default body swagger:model StartPostgreSQLShowCreateTableActionDefaultBody */ type StartPostgreSQLShowCreateTableActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartPostgreSQLShowCreateTableActionDefaultBody) UnmarshalBinary(b []by return nil } -/*StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 start postgre SQL show create table action default body details items0 +/* +StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 start postgre SQL show create table action default body details items0 swagger:model StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 */ type StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0) Unmarshal return nil } -/*StartPostgreSQLShowCreateTableActionOKBody start postgre SQL show create table action OK body +/* +StartPostgreSQLShowCreateTableActionOKBody start postgre SQL show create table action OK body swagger:model StartPostgreSQLShowCreateTableActionOKBody */ type StartPostgreSQLShowCreateTableActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go index f5e7d39b85..c124c400d3 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go @@ -52,10 +52,12 @@ func NewStartPostgreSQLShowIndexActionParamsWithHTTPClient(client *http.Client) } } -/* StartPostgreSQLShowIndexActionParams contains all the parameters to send to the API endpoint - for the start postgre SQL show index action operation. +/* +StartPostgreSQLShowIndexActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start postgre SQL show index action operation. + + Typically these are written to a http.Request. */ type StartPostgreSQLShowIndexActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go index bbc0cf0580..767c1aa85a 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go @@ -48,7 +48,8 @@ func NewStartPostgreSQLShowIndexActionOK() *StartPostgreSQLShowIndexActionOK { return &StartPostgreSQLShowIndexActionOK{} } -/* StartPostgreSQLShowIndexActionOK describes a response with status code 200, with default header values. +/* +StartPostgreSQLShowIndexActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartPostgreSQLShowIndexActionDefault(code int) *StartPostgreSQLShowInde } } -/* StartPostgreSQLShowIndexActionDefault describes a response with status code -1, with default header values. +/* +StartPostgreSQLShowIndexActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartPostgreSQLShowIndexActionDefault) readResponse(response runtime.Cl return nil } -/*StartPostgreSQLShowIndexActionBody start postgre SQL show index action body +/* +StartPostgreSQLShowIndexActionBody start postgre SQL show index action body swagger:model StartPostgreSQLShowIndexActionBody */ type StartPostgreSQLShowIndexActionBody struct { @@ -161,7 +164,8 @@ func (o *StartPostgreSQLShowIndexActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPostgreSQLShowIndexActionDefaultBody start postgre SQL show index action default body +/* +StartPostgreSQLShowIndexActionDefaultBody start postgre SQL show index action default body swagger:model StartPostgreSQLShowIndexActionDefaultBody */ type StartPostgreSQLShowIndexActionDefaultBody struct { @@ -264,7 +268,8 @@ func (o *StartPostgreSQLShowIndexActionDefaultBody) UnmarshalBinary(b []byte) er return nil } -/*StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 start postgre SQL show index action default body details items0 +/* +StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 start postgre SQL show index action default body details items0 swagger:model StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 */ type StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 struct { @@ -300,7 +305,8 @@ func (o *StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0) UnmarshalBinary return nil } -/*StartPostgreSQLShowIndexActionOKBody start postgre SQL show index action OK body +/* +StartPostgreSQLShowIndexActionOKBody start postgre SQL show index action OK body swagger:model StartPostgreSQLShowIndexActionOKBody */ type StartPostgreSQLShowIndexActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go index c4ec509ca8..c970df2211 100644 --- a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go @@ -52,10 +52,12 @@ func NewStartPTMongoDBSummaryActionParamsWithHTTPClient(client *http.Client) *St } } -/* StartPTMongoDBSummaryActionParams contains all the parameters to send to the API endpoint - for the start PT mongo DB summary action operation. +/* +StartPTMongoDBSummaryActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start PT mongo DB summary action operation. + + Typically these are written to a http.Request. */ type StartPTMongoDBSummaryActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go index ec6c159f0d..506059ad1f 100644 --- a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go @@ -48,7 +48,8 @@ func NewStartPTMongoDBSummaryActionOK() *StartPTMongoDBSummaryActionOK { return &StartPTMongoDBSummaryActionOK{} } -/* StartPTMongoDBSummaryActionOK describes a response with status code 200, with default header values. +/* +StartPTMongoDBSummaryActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartPTMongoDBSummaryActionDefault(code int) *StartPTMongoDBSummaryActio } } -/* StartPTMongoDBSummaryActionDefault describes a response with status code -1, with default header values. +/* +StartPTMongoDBSummaryActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartPTMongoDBSummaryActionDefault) readResponse(response runtime.Clien return nil } -/*StartPTMongoDBSummaryActionBody Message to prepare pt-mongodb-summary data +/* +StartPTMongoDBSummaryActionBody Message to prepare pt-mongodb-summary data swagger:model StartPTMongoDBSummaryActionBody */ type StartPTMongoDBSummaryActionBody struct { @@ -155,7 +158,8 @@ func (o *StartPTMongoDBSummaryActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTMongoDBSummaryActionDefaultBody start PT mongo DB summary action default body +/* +StartPTMongoDBSummaryActionDefaultBody start PT mongo DB summary action default body swagger:model StartPTMongoDBSummaryActionDefaultBody */ type StartPTMongoDBSummaryActionDefaultBody struct { @@ -258,7 +262,8 @@ func (o *StartPTMongoDBSummaryActionDefaultBody) UnmarshalBinary(b []byte) error return nil } -/*StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 start PT mongo DB summary action default body details items0 +/* +StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 start PT mongo DB summary action default body details items0 swagger:model StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 */ type StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *StartPTMongoDBSummaryActionDefaultBodyDetailsItems0) UnmarshalBinary(b return nil } -/*StartPTMongoDBSummaryActionOKBody Message to retrieve the prepared pt-mongodb-summary data +/* +StartPTMongoDBSummaryActionOKBody Message to retrieve the prepared pt-mongodb-summary data swagger:model StartPTMongoDBSummaryActionOKBody */ type StartPTMongoDBSummaryActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go index 08a74344ca..ae4ddbcf89 100644 --- a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go @@ -52,10 +52,12 @@ func NewStartPTMySQLSummaryActionParamsWithHTTPClient(client *http.Client) *Star } } -/* StartPTMySQLSummaryActionParams contains all the parameters to send to the API endpoint - for the start PT my SQL summary action operation. +/* +StartPTMySQLSummaryActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start PT my SQL summary action operation. + + Typically these are written to a http.Request. */ type StartPTMySQLSummaryActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go index 600d3d98d5..dcd6b0a240 100644 --- a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go @@ -48,7 +48,8 @@ func NewStartPTMySQLSummaryActionOK() *StartPTMySQLSummaryActionOK { return &StartPTMySQLSummaryActionOK{} } -/* StartPTMySQLSummaryActionOK describes a response with status code 200, with default header values. +/* +StartPTMySQLSummaryActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartPTMySQLSummaryActionDefault(code int) *StartPTMySQLSummaryActionDef } } -/* StartPTMySQLSummaryActionDefault describes a response with status code -1, with default header values. +/* +StartPTMySQLSummaryActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartPTMySQLSummaryActionDefault) readResponse(response runtime.ClientR return nil } -/*StartPTMySQLSummaryActionBody Message to prepare pt-mysql-summary data +/* +StartPTMySQLSummaryActionBody Message to prepare pt-mysql-summary data swagger:model StartPTMySQLSummaryActionBody */ type StartPTMySQLSummaryActionBody struct { @@ -155,7 +158,8 @@ func (o *StartPTMySQLSummaryActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTMySQLSummaryActionDefaultBody start PT my SQL summary action default body +/* +StartPTMySQLSummaryActionDefaultBody start PT my SQL summary action default body swagger:model StartPTMySQLSummaryActionDefaultBody */ type StartPTMySQLSummaryActionDefaultBody struct { @@ -258,7 +262,8 @@ func (o *StartPTMySQLSummaryActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTMySQLSummaryActionDefaultBodyDetailsItems0 start PT my SQL summary action default body details items0 +/* +StartPTMySQLSummaryActionDefaultBodyDetailsItems0 start PT my SQL summary action default body details items0 swagger:model StartPTMySQLSummaryActionDefaultBodyDetailsItems0 */ type StartPTMySQLSummaryActionDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *StartPTMySQLSummaryActionDefaultBodyDetailsItems0) UnmarshalBinary(b [] return nil } -/*StartPTMySQLSummaryActionOKBody Message to retrieve the prepared pt-mysql-summary data +/* +StartPTMySQLSummaryActionOKBody Message to retrieve the prepared pt-mysql-summary data swagger:model StartPTMySQLSummaryActionOKBody */ type StartPTMySQLSummaryActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go index 09ff534836..f2eff89d17 100644 --- a/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go @@ -52,10 +52,12 @@ func NewStartPTPgSummaryActionParamsWithHTTPClient(client *http.Client) *StartPT } } -/* StartPTPgSummaryActionParams contains all the parameters to send to the API endpoint - for the start PT pg summary action operation. +/* +StartPTPgSummaryActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start PT pg summary action operation. + + Typically these are written to a http.Request. */ type StartPTPgSummaryActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go index a489af26a7..92cf81cfbf 100644 --- a/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go @@ -48,7 +48,8 @@ func NewStartPTPgSummaryActionOK() *StartPTPgSummaryActionOK { return &StartPTPgSummaryActionOK{} } -/* StartPTPgSummaryActionOK describes a response with status code 200, with default header values. +/* +StartPTPgSummaryActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartPTPgSummaryActionDefault(code int) *StartPTPgSummaryActionDefault { } } -/* StartPTPgSummaryActionDefault describes a response with status code -1, with default header values. +/* +StartPTPgSummaryActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartPTPgSummaryActionDefault) readResponse(response runtime.ClientResp return nil } -/*StartPTPgSummaryActionBody Message to prepare pt-pg-summary data +/* +StartPTPgSummaryActionBody Message to prepare pt-pg-summary data swagger:model StartPTPgSummaryActionBody */ type StartPTPgSummaryActionBody struct { @@ -155,7 +158,8 @@ func (o *StartPTPgSummaryActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTPgSummaryActionDefaultBody start PT pg summary action default body +/* +StartPTPgSummaryActionDefaultBody start PT pg summary action default body swagger:model StartPTPgSummaryActionDefaultBody */ type StartPTPgSummaryActionDefaultBody struct { @@ -258,7 +262,8 @@ func (o *StartPTPgSummaryActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTPgSummaryActionDefaultBodyDetailsItems0 start PT pg summary action default body details items0 +/* +StartPTPgSummaryActionDefaultBodyDetailsItems0 start PT pg summary action default body details items0 swagger:model StartPTPgSummaryActionDefaultBodyDetailsItems0 */ type StartPTPgSummaryActionDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *StartPTPgSummaryActionDefaultBodyDetailsItems0) UnmarshalBinary(b []byt return nil } -/*StartPTPgSummaryActionOKBody Message to retrieve the prepared pt-pg-summary data +/* +StartPTPgSummaryActionOKBody Message to retrieve the prepared pt-pg-summary data swagger:model StartPTPgSummaryActionOKBody */ type StartPTPgSummaryActionOKBody struct { diff --git a/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go index 05002cedbd..816c3e8e05 100644 --- a/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go @@ -52,10 +52,12 @@ func NewStartPTSummaryActionParamsWithHTTPClient(client *http.Client) *StartPTSu } } -/* StartPTSummaryActionParams contains all the parameters to send to the API endpoint - for the start PT summary action operation. +/* +StartPTSummaryActionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start PT summary action operation. + + Typically these are written to a http.Request. */ type StartPTSummaryActionParams struct { // Body. diff --git a/api/managementpb/json/client/actions/start_pt_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_summary_action_responses.go index 52b85c99e0..d935512a5c 100644 --- a/api/managementpb/json/client/actions/start_pt_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_summary_action_responses.go @@ -48,7 +48,8 @@ func NewStartPTSummaryActionOK() *StartPTSummaryActionOK { return &StartPTSummaryActionOK{} } -/* StartPTSummaryActionOK describes a response with status code 200, with default header values. +/* +StartPTSummaryActionOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartPTSummaryActionDefault(code int) *StartPTSummaryActionDefault { } } -/* StartPTSummaryActionDefault describes a response with status code -1, with default header values. +/* +StartPTSummaryActionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartPTSummaryActionDefault) readResponse(response runtime.ClientRespon return nil } -/*StartPTSummaryActionBody start PT summary action body +/* +StartPTSummaryActionBody start PT summary action body swagger:model StartPTSummaryActionBody */ type StartPTSummaryActionBody struct { @@ -155,7 +158,8 @@ func (o *StartPTSummaryActionBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTSummaryActionDefaultBody start PT summary action default body +/* +StartPTSummaryActionDefaultBody start PT summary action default body swagger:model StartPTSummaryActionDefaultBody */ type StartPTSummaryActionDefaultBody struct { @@ -258,7 +262,8 @@ func (o *StartPTSummaryActionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartPTSummaryActionDefaultBodyDetailsItems0 start PT summary action default body details items0 +/* +StartPTSummaryActionDefaultBodyDetailsItems0 start PT summary action default body details items0 swagger:model StartPTSummaryActionDefaultBodyDetailsItems0 */ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { @@ -294,7 +299,8 @@ func (o *StartPTSummaryActionDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*StartPTSummaryActionOKBody start PT summary action OK body +/* +StartPTSummaryActionOKBody start PT summary action OK body swagger:model StartPTSummaryActionOKBody */ type StartPTSummaryActionOKBody struct { diff --git a/api/managementpb/json/client/annotation/add_annotation_parameters.go b/api/managementpb/json/client/annotation/add_annotation_parameters.go index f6fd477af1..dfd1c36bc5 100644 --- a/api/managementpb/json/client/annotation/add_annotation_parameters.go +++ b/api/managementpb/json/client/annotation/add_annotation_parameters.go @@ -52,10 +52,12 @@ func NewAddAnnotationParamsWithHTTPClient(client *http.Client) *AddAnnotationPar } } -/* AddAnnotationParams contains all the parameters to send to the API endpoint - for the add annotation operation. +/* +AddAnnotationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add annotation operation. + + Typically these are written to a http.Request. */ type AddAnnotationParams struct { /* Body. diff --git a/api/managementpb/json/client/annotation/add_annotation_responses.go b/api/managementpb/json/client/annotation/add_annotation_responses.go index 1e3bfe7753..6f9cf3e3e1 100644 --- a/api/managementpb/json/client/annotation/add_annotation_responses.go +++ b/api/managementpb/json/client/annotation/add_annotation_responses.go @@ -48,7 +48,8 @@ func NewAddAnnotationOK() *AddAnnotationOK { return &AddAnnotationOK{} } -/* AddAnnotationOK describes a response with status code 200, with default header values. +/* +AddAnnotationOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewAddAnnotationDefault(code int) *AddAnnotationDefault { } } -/* AddAnnotationDefault describes a response with status code -1, with default header values. +/* +AddAnnotationDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *AddAnnotationDefault) readResponse(response runtime.ClientResponse, con return nil } -/*AddAnnotationBody AddAnnotationRequest is a params to add new annotation. +/* +AddAnnotationBody AddAnnotationRequest is a params to add new annotation. swagger:model AddAnnotationBody */ type AddAnnotationBody struct { @@ -159,7 +162,8 @@ func (o *AddAnnotationBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAnnotationDefaultBody add annotation default body +/* +AddAnnotationDefaultBody add annotation default body swagger:model AddAnnotationDefaultBody */ type AddAnnotationDefaultBody struct { @@ -262,7 +266,8 @@ func (o *AddAnnotationDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddAnnotationDefaultBodyDetailsItems0 add annotation default body details items0 +/* +AddAnnotationDefaultBodyDetailsItems0 add annotation default body details items0 swagger:model AddAnnotationDefaultBodyDetailsItems0 */ type AddAnnotationDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/json/client/annotation/annotation_client.go b/api/managementpb/json/client/annotation/annotation_client.go index 542184ed13..774af2f2e9 100644 --- a/api/managementpb/json/client/annotation/annotation_client.go +++ b/api/managementpb/json/client/annotation/annotation_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddAnnotation adds annotation +AddAnnotation adds annotation - Adds annotation. +Adds annotation. */ func (a *Client) AddAnnotation(params *AddAnnotationParams, opts ...ClientOption) (*AddAnnotationOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/external/add_external_parameters.go b/api/managementpb/json/client/external/add_external_parameters.go index 98b07aa5b6..f58a91ff4f 100644 --- a/api/managementpb/json/client/external/add_external_parameters.go +++ b/api/managementpb/json/client/external/add_external_parameters.go @@ -52,10 +52,12 @@ func NewAddExternalParamsWithHTTPClient(client *http.Client) *AddExternalParams } } -/* AddExternalParams contains all the parameters to send to the API endpoint - for the add external operation. +/* +AddExternalParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add external operation. + + Typically these are written to a http.Request. */ type AddExternalParams struct { // Body. diff --git a/api/managementpb/json/client/external/add_external_responses.go b/api/managementpb/json/client/external/add_external_responses.go index 56760e62f6..2b0fed5178 100644 --- a/api/managementpb/json/client/external/add_external_responses.go +++ b/api/managementpb/json/client/external/add_external_responses.go @@ -50,7 +50,8 @@ func NewAddExternalOK() *AddExternalOK { return &AddExternalOK{} } -/* AddExternalOK describes a response with status code 200, with default header values. +/* +AddExternalOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddExternalDefault(code int) *AddExternalDefault { } } -/* AddExternalDefault describes a response with status code -1, with default header values. +/* +AddExternalDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddExternalDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*AddExternalBody add external body +/* +AddExternalBody add external body swagger:model AddExternalBody */ type AddExternalBody struct { @@ -316,7 +319,8 @@ func (o *AddExternalBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalDefaultBody add external default body +/* +AddExternalDefaultBody add external default body swagger:model AddExternalDefaultBody */ type AddExternalDefaultBody struct { @@ -419,7 +423,8 @@ func (o *AddExternalDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalDefaultBodyDetailsItems0 add external default body details items0 +/* +AddExternalDefaultBodyDetailsItems0 add external default body details items0 swagger:model AddExternalDefaultBodyDetailsItems0 */ type AddExternalDefaultBodyDetailsItems0 struct { @@ -455,7 +460,8 @@ func (o *AddExternalDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalOKBody add external OK body +/* +AddExternalOKBody add external OK body swagger:model AddExternalOKBody */ type AddExternalOKBody struct { @@ -588,7 +594,8 @@ func (o *AddExternalOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. +/* +AddExternalOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. swagger:model AddExternalOKBodyExternalExporter */ type AddExternalOKBodyExternalExporter struct { @@ -654,7 +661,8 @@ func (o *AddExternalOKBodyExternalExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalOKBodyService ExternalService represents a generic External service instance. +/* +AddExternalOKBodyService ExternalService represents a generic External service instance. swagger:model AddExternalOKBodyService */ type AddExternalOKBodyService struct { @@ -711,7 +719,8 @@ func (o *AddExternalOKBodyService) UnmarshalBinary(b []byte) error { return nil } -/*AddExternalParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. +/* +AddExternalParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddExternalParamsBodyAddNode */ type AddExternalParamsBodyAddNode struct { diff --git a/api/managementpb/json/client/external/external_client.go b/api/managementpb/json/client/external/external_client.go index 1c86edcf93..b9047bc892 100644 --- a/api/managementpb/json/client/external/external_client.go +++ b/api/managementpb/json/client/external/external_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddExternal adds external service +AddExternal adds external service - Adds external service and adds external exporter. It automatically adds a service to inventory, which is running on provided "node_id", then adds an "external exporter" agent to inventory, which is running on provided "runs_on_node_id". +Adds external service and adds external exporter. It automatically adds a service to inventory, which is running on provided "node_id", then adds an "external exporter" agent to inventory, which is running on provided "runs_on_node_id". */ func (a *Client) AddExternal(params *AddExternalParams, opts ...ClientOption) (*AddExternalOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go index d4da4d9dd6..ac06a0fc9d 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go @@ -52,10 +52,12 @@ func NewAddHAProxyParamsWithHTTPClient(client *http.Client) *AddHAProxyParams { } } -/* AddHAProxyParams contains all the parameters to send to the API endpoint - for the add HA proxy operation. +/* +AddHAProxyParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add HA proxy operation. + + Typically these are written to a http.Request. */ type AddHAProxyParams struct { // Body. diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go index d27ac04c28..160c4bdc7c 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go @@ -50,7 +50,8 @@ func NewAddHAProxyOK() *AddHAProxyOK { return &AddHAProxyOK{} } -/* AddHAProxyOK describes a response with status code 200, with default header values. +/* +AddHAProxyOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddHAProxyDefault(code int) *AddHAProxyDefault { } } -/* AddHAProxyDefault describes a response with status code -1, with default header values. +/* +AddHAProxyDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddHAProxyDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*AddHAProxyBody add HA proxy body +/* +AddHAProxyBody add HA proxy body swagger:model AddHAProxyBody */ type AddHAProxyBody struct { @@ -308,7 +311,8 @@ func (o *AddHAProxyBody) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyDefaultBody add HA proxy default body +/* +AddHAProxyDefaultBody add HA proxy default body swagger:model AddHAProxyDefaultBody */ type AddHAProxyDefaultBody struct { @@ -411,7 +415,8 @@ func (o *AddHAProxyDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyDefaultBodyDetailsItems0 add HA proxy default body details items0 +/* +AddHAProxyDefaultBodyDetailsItems0 add HA proxy default body details items0 swagger:model AddHAProxyDefaultBodyDetailsItems0 */ type AddHAProxyDefaultBodyDetailsItems0 struct { @@ -447,7 +452,8 @@ func (o *AddHAProxyDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyOKBody add HA proxy OK body +/* +AddHAProxyOKBody add HA proxy OK body swagger:model AddHAProxyOKBody */ type AddHAProxyOKBody struct { @@ -580,7 +586,8 @@ func (o *AddHAProxyOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. +/* +AddHAProxyOKBodyExternalExporter ExternalExporter runs on any Node type, including Remote Node. swagger:model AddHAProxyOKBodyExternalExporter */ type AddHAProxyOKBodyExternalExporter struct { @@ -646,7 +653,8 @@ func (o *AddHAProxyOKBodyExternalExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyOKBodyService HAProxyService represents a generic HAProxy service instance. +/* +AddHAProxyOKBodyService HAProxyService represents a generic HAProxy service instance. swagger:model AddHAProxyOKBodyService */ type AddHAProxyOKBodyService struct { @@ -700,7 +708,8 @@ func (o *AddHAProxyOKBodyService) UnmarshalBinary(b []byte) error { return nil } -/*AddHAProxyParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. +/* +AddHAProxyParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddHAProxyParamsBodyAddNode */ type AddHAProxyParamsBodyAddNode struct { diff --git a/api/managementpb/json/client/ha_proxy/ha_proxy_client.go b/api/managementpb/json/client/ha_proxy/ha_proxy_client.go index 43d6ab1b3b..35fd8f854f 100644 --- a/api/managementpb/json/client/ha_proxy/ha_proxy_client.go +++ b/api/managementpb/json/client/ha_proxy/ha_proxy_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddHAProxy adds HA proxy +AddHAProxy adds HA proxy - Adds HAProxy service and external exporter. It automatically adds a service to inventory, which is running on the provided "node_id", then adds an "external exporter" agent to the inventory. +Adds HAProxy service and external exporter. It automatically adds a service to inventory, which is running on the provided "node_id", then adds an "external exporter" agent to the inventory. */ func (a *Client) AddHAProxy(params *AddHAProxyParams, opts ...ClientOption) (*AddHAProxyOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go b/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go index 429fb592a7..d232151552 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go @@ -52,10 +52,12 @@ func NewAddMongoDBParamsWithHTTPClient(client *http.Client) *AddMongoDBParams { } } -/* AddMongoDBParams contains all the parameters to send to the API endpoint - for the add mongo DB operation. +/* +AddMongoDBParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add mongo DB operation. + + Typically these are written to a http.Request. */ type AddMongoDBParams struct { // Body. diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go index ee1ff556c5..5e60898976 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go @@ -50,7 +50,8 @@ func NewAddMongoDBOK() *AddMongoDBOK { return &AddMongoDBOK{} } -/* AddMongoDBOK describes a response with status code 200, with default header values. +/* +AddMongoDBOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddMongoDBDefault(code int) *AddMongoDBDefault { } } -/* AddMongoDBDefault describes a response with status code -1, with default header values. +/* +AddMongoDBDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddMongoDBDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*AddMongoDBBody add mongo DB body +/* +AddMongoDBBody add mongo DB body swagger:model AddMongoDBBody */ type AddMongoDBBody struct { @@ -414,7 +417,8 @@ func (o *AddMongoDBBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBDefaultBody add mongo DB default body +/* +AddMongoDBDefaultBody add mongo DB default body swagger:model AddMongoDBDefaultBody */ type AddMongoDBDefaultBody struct { @@ -517,7 +521,8 @@ func (o *AddMongoDBDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBDefaultBodyDetailsItems0 add mongo DB default body details items0 +/* +AddMongoDBDefaultBodyDetailsItems0 add mongo DB default body details items0 swagger:model AddMongoDBDefaultBodyDetailsItems0 */ type AddMongoDBDefaultBodyDetailsItems0 struct { @@ -553,7 +558,8 @@ func (o *AddMongoDBDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBOKBody add mongo DB OK body +/* +AddMongoDBOKBody add mongo DB OK body swagger:model AddMongoDBOKBody */ type AddMongoDBOKBody struct { @@ -731,7 +737,8 @@ func (o *AddMongoDBOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. +/* +AddMongoDBOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node and exposes MongoDB Service metrics. swagger:model AddMongoDBOKBodyMongodbExporter */ type AddMongoDBOKBodyMongodbExporter struct { @@ -949,7 +956,8 @@ func (o *AddMongoDBOKBodyMongodbExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBOKBodyQANMongodbProfiler QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. +/* +AddMongoDBOKBodyQANMongodbProfiler QANMongoDBProfilerAgent runs within pmm-agent and sends MongoDB Query Analytics data to the PMM Server. swagger:model AddMongoDBOKBodyQANMongodbProfiler */ type AddMongoDBOKBodyQANMongodbProfiler struct { @@ -1148,7 +1156,8 @@ func (o *AddMongoDBOKBodyQANMongodbProfiler) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBOKBodyService MongoDBService represents a generic MongoDB instance. +/* +AddMongoDBOKBodyService MongoDBService represents a generic MongoDB instance. swagger:model AddMongoDBOKBodyService */ type AddMongoDBOKBodyService struct { @@ -1214,7 +1223,8 @@ func (o *AddMongoDBOKBodyService) UnmarshalBinary(b []byte) error { return nil } -/*AddMongoDBParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. +/* +AddMongoDBParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddMongoDBParamsBodyAddNode */ type AddMongoDBParamsBodyAddNode struct { diff --git a/api/managementpb/json/client/mongo_db/mongo_db_client.go b/api/managementpb/json/client/mongo_db/mongo_db_client.go index 55a01fa449..228699c0bb 100644 --- a/api/managementpb/json/client/mongo_db/mongo_db_client.go +++ b/api/managementpb/json/client/mongo_db/mongo_db_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddMongoDB adds mongo DB +AddMongoDB adds mongo DB - Adds MongoDB Service and starts several Agents. It automatically adds a service to inventory, which is running on the provided "node_id", then adds "mongodb_exporter", and "qan_mongodb_profiler" agents with the provided "pmm_agent_id" and other parameters. +Adds MongoDB Service and starts several Agents. It automatically adds a service to inventory, which is running on the provided "node_id", then adds "mongodb_exporter", and "qan_mongodb_profiler" agents with the provided "pmm_agent_id" and other parameters. */ func (a *Client) AddMongoDB(params *AddMongoDBParams, opts ...ClientOption) (*AddMongoDBOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/my_sql/add_my_sql_parameters.go b/api/managementpb/json/client/my_sql/add_my_sql_parameters.go index 609e53e79a..6055393fdc 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_parameters.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_parameters.go @@ -52,10 +52,12 @@ func NewAddMySQLParamsWithHTTPClient(client *http.Client) *AddMySQLParams { } } -/* AddMySQLParams contains all the parameters to send to the API endpoint - for the add my SQL operation. +/* +AddMySQLParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add my SQL operation. + + Typically these are written to a http.Request. */ type AddMySQLParams struct { // Body. diff --git a/api/managementpb/json/client/my_sql/add_my_sql_responses.go b/api/managementpb/json/client/my_sql/add_my_sql_responses.go index ed52e24819..7d5ff03e53 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_responses.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_responses.go @@ -50,7 +50,8 @@ func NewAddMySQLOK() *AddMySQLOK { return &AddMySQLOK{} } -/* AddMySQLOK describes a response with status code 200, with default header values. +/* +AddMySQLOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddMySQLDefault(code int) *AddMySQLDefault { } } -/* AddMySQLDefault describes a response with status code -1, with default header values. +/* +AddMySQLDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddMySQLDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*AddMySQLBody add my SQL body +/* +AddMySQLBody add my SQL body swagger:model AddMySQLBody */ type AddMySQLBody struct { @@ -415,7 +418,8 @@ func (o *AddMySQLBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLDefaultBody add my SQL default body +/* +AddMySQLDefaultBody add my SQL default body swagger:model AddMySQLDefaultBody */ type AddMySQLDefaultBody struct { @@ -518,7 +522,8 @@ func (o *AddMySQLDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLDefaultBodyDetailsItems0 add my SQL default body details items0 +/* +AddMySQLDefaultBodyDetailsItems0 add my SQL default body details items0 swagger:model AddMySQLDefaultBodyDetailsItems0 */ type AddMySQLDefaultBodyDetailsItems0 struct { @@ -554,7 +559,8 @@ func (o *AddMySQLDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLOKBody add my SQL OK body +/* +AddMySQLOKBody add my SQL OK body swagger:model AddMySQLOKBody */ type AddMySQLOKBody struct { @@ -780,7 +786,8 @@ func (o *AddMySQLOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +/* +AddMySQLOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model AddMySQLOKBodyMysqldExporter */ type AddMySQLOKBodyMysqldExporter struct { @@ -1005,7 +1012,8 @@ func (o *AddMySQLOKBodyMysqldExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +AddMySQLOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddMySQLOKBodyQANMysqlPerfschema */ type AddMySQLOKBodyQANMysqlPerfschema struct { @@ -1219,7 +1227,8 @@ func (o *AddMySQLOKBodyQANMysqlPerfschema) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLOKBodyQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +AddMySQLOKBodyQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddMySQLOKBodyQANMysqlSlowlog */ type AddMySQLOKBodyQANMysqlSlowlog struct { @@ -1436,7 +1445,8 @@ func (o *AddMySQLOKBodyQANMysqlSlowlog) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLOKBodyService MySQLService represents a generic MySQL instance. +/* +AddMySQLOKBodyService MySQLService represents a generic MySQL instance. swagger:model AddMySQLOKBodyService */ type AddMySQLOKBodyService struct { @@ -1502,7 +1512,8 @@ func (o *AddMySQLOKBodyService) UnmarshalBinary(b []byte) error { return nil } -/*AddMySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. +/* +AddMySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddMySQLParamsBodyAddNode */ type AddMySQLParamsBodyAddNode struct { diff --git a/api/managementpb/json/client/my_sql/my_sql_client.go b/api/managementpb/json/client/my_sql/my_sql_client.go index 6a8c0f6f58..17f4b7155a 100644 --- a/api/managementpb/json/client/my_sql/my_sql_client.go +++ b/api/managementpb/json/client/my_sql/my_sql_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddMySQL adds my SQL +AddMySQL adds my SQL - Adds MySQL Service and starts several Agents. It automatically adds a service to inventory, which is running on the provided "node_id", then adds "mysqld_exporter", and "qan_mysql_perfschema" agents with the provided "pmm_agent_id" and other parameters. +Adds MySQL Service and starts several Agents. It automatically adds a service to inventory, which is running on the provided "node_id", then adds "mysqld_exporter", and "qan_mysql_perfschema" agents with the provided "pmm_agent_id" and other parameters. */ func (a *Client) AddMySQL(params *AddMySQLParams, opts ...ClientOption) (*AddMySQLOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/node/node_client.go b/api/managementpb/json/client/node/node_client.go index 63c7e29da3..49d79d9e66 100644 --- a/api/managementpb/json/client/node/node_client.go +++ b/api/managementpb/json/client/node/node_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - RegisterNode registers node +RegisterNode registers node - Registers a new Node and pmm-agent. +Registers a new Node and pmm-agent. */ func (a *Client) RegisterNode(params *RegisterNodeParams, opts ...ClientOption) (*RegisterNodeOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/node/register_node_parameters.go b/api/managementpb/json/client/node/register_node_parameters.go index 777a70de69..df5bbc15e6 100644 --- a/api/managementpb/json/client/node/register_node_parameters.go +++ b/api/managementpb/json/client/node/register_node_parameters.go @@ -52,10 +52,12 @@ func NewRegisterNodeParamsWithHTTPClient(client *http.Client) *RegisterNodeParam } } -/* RegisterNodeParams contains all the parameters to send to the API endpoint - for the register node operation. +/* +RegisterNodeParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the register node operation. + + Typically these are written to a http.Request. */ type RegisterNodeParams struct { // Body. diff --git a/api/managementpb/json/client/node/register_node_responses.go b/api/managementpb/json/client/node/register_node_responses.go index e8e9648364..b5b0980938 100644 --- a/api/managementpb/json/client/node/register_node_responses.go +++ b/api/managementpb/json/client/node/register_node_responses.go @@ -50,7 +50,8 @@ func NewRegisterNodeOK() *RegisterNodeOK { return &RegisterNodeOK{} } -/* RegisterNodeOK describes a response with status code 200, with default header values. +/* +RegisterNodeOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewRegisterNodeDefault(code int) *RegisterNodeDefault { } } -/* RegisterNodeDefault describes a response with status code -1, with default header values. +/* +RegisterNodeDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *RegisterNodeDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*RegisterNodeBody register node body +/* +RegisterNodeBody register node body swagger:model RegisterNodeBody */ type RegisterNodeBody struct { @@ -311,7 +314,8 @@ func (o *RegisterNodeBody) UnmarshalBinary(b []byte) error { return nil } -/*RegisterNodeDefaultBody register node default body +/* +RegisterNodeDefaultBody register node default body swagger:model RegisterNodeDefaultBody */ type RegisterNodeDefaultBody struct { @@ -414,7 +418,8 @@ func (o *RegisterNodeDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RegisterNodeDefaultBodyDetailsItems0 register node default body details items0 +/* +RegisterNodeDefaultBodyDetailsItems0 register node default body details items0 swagger:model RegisterNodeDefaultBodyDetailsItems0 */ type RegisterNodeDefaultBodyDetailsItems0 struct { @@ -450,7 +455,8 @@ func (o *RegisterNodeDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*RegisterNodeOKBody register node OK body +/* +RegisterNodeOKBody register node OK body swagger:model RegisterNodeOKBody */ type RegisterNodeOKBody struct { @@ -628,7 +634,8 @@ func (o *RegisterNodeOKBody) UnmarshalBinary(b []byte) error { return nil } -/*RegisterNodeOKBodyContainerNode ContainerNode represents a Docker container. +/* +RegisterNodeOKBodyContainerNode ContainerNode represents a Docker container. swagger:model RegisterNodeOKBodyContainerNode */ type RegisterNodeOKBodyContainerNode struct { @@ -691,7 +698,8 @@ func (o *RegisterNodeOKBodyContainerNode) UnmarshalBinary(b []byte) error { return nil } -/*RegisterNodeOKBodyGenericNode GenericNode represents a bare metal server or virtual machine. +/* +RegisterNodeOKBodyGenericNode GenericNode represents a bare metal server or virtual machine. swagger:model RegisterNodeOKBodyGenericNode */ type RegisterNodeOKBodyGenericNode struct { @@ -751,7 +759,8 @@ func (o *RegisterNodeOKBodyGenericNode) UnmarshalBinary(b []byte) error { return nil } -/*RegisterNodeOKBodyPMMAgent PMMAgent runs on Generic or Container Node. +/* +RegisterNodeOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model RegisterNodeOKBodyPMMAgent */ type RegisterNodeOKBodyPMMAgent struct { diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go index 426606d1c0..35e261e3fe 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go @@ -52,10 +52,12 @@ func NewAddPostgreSQLParamsWithHTTPClient(client *http.Client) *AddPostgreSQLPar } } -/* AddPostgreSQLParams contains all the parameters to send to the API endpoint - for the add postgre SQL operation. +/* +AddPostgreSQLParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add postgre SQL operation. + + Typically these are written to a http.Request. */ type AddPostgreSQLParams struct { // Body. diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go index c4992b7823..4ec036a9ef 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go @@ -50,7 +50,8 @@ func NewAddPostgreSQLOK() *AddPostgreSQLOK { return &AddPostgreSQLOK{} } -/* AddPostgreSQLOK describes a response with status code 200, with default header values. +/* +AddPostgreSQLOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddPostgreSQLDefault(code int) *AddPostgreSQLDefault { } } -/* AddPostgreSQLDefault describes a response with status code -1, with default header values. +/* +AddPostgreSQLDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddPostgreSQLDefault) readResponse(response runtime.ClientResponse, con return nil } -/*AddPostgreSQLBody add postgre SQL body +/* +AddPostgreSQLBody add postgre SQL body swagger:model AddPostgreSQLBody */ type AddPostgreSQLBody struct { @@ -408,7 +411,8 @@ func (o *AddPostgreSQLBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLDefaultBody add postgre SQL default body +/* +AddPostgreSQLDefaultBody add postgre SQL default body swagger:model AddPostgreSQLDefaultBody */ type AddPostgreSQLDefaultBody struct { @@ -511,7 +515,8 @@ func (o *AddPostgreSQLDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLDefaultBodyDetailsItems0 add postgre SQL default body details items0 +/* +AddPostgreSQLDefaultBodyDetailsItems0 add postgre SQL default body details items0 swagger:model AddPostgreSQLDefaultBodyDetailsItems0 */ type AddPostgreSQLDefaultBodyDetailsItems0 struct { @@ -547,7 +552,8 @@ func (o *AddPostgreSQLDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*AddPostgreSQLOKBody add postgre SQL OK body +/* +AddPostgreSQLOKBody add postgre SQL OK body swagger:model AddPostgreSQLOKBody */ type AddPostgreSQLOKBody struct { @@ -770,7 +776,8 @@ func (o *AddPostgreSQLOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +/* +AddPostgreSQLOKBodyPostgresExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model AddPostgreSQLOKBodyPostgresExporter */ type AddPostgreSQLOKBodyPostgresExporter struct { @@ -978,7 +985,8 @@ func (o *AddPostgreSQLOKBodyPostgresExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent */ type AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent struct { @@ -1180,7 +1188,8 @@ func (o *AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent) UnmarshalBinary(b [] return nil } -/*AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent */ type AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent struct { @@ -1385,7 +1394,8 @@ func (o *AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent) UnmarshalBinary(b [ return nil } -/*AddPostgreSQLOKBodyService PostgreSQLService represents a generic PostgreSQL instance. +/* +AddPostgreSQLOKBodyService PostgreSQLService represents a generic PostgreSQL instance. swagger:model AddPostgreSQLOKBodyService */ type AddPostgreSQLOKBodyService struct { @@ -1454,7 +1464,8 @@ func (o *AddPostgreSQLOKBodyService) UnmarshalBinary(b []byte) error { return nil } -/*AddPostgreSQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. +/* +AddPostgreSQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddPostgreSQLParamsBodyAddNode */ type AddPostgreSQLParamsBodyAddNode struct { diff --git a/api/managementpb/json/client/postgre_sql/postgre_sql_client.go b/api/managementpb/json/client/postgre_sql/postgre_sql_client.go index 57e99fd901..eaa9637cbb 100644 --- a/api/managementpb/json/client/postgre_sql/postgre_sql_client.go +++ b/api/managementpb/json/client/postgre_sql/postgre_sql_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddPostgreSQL adds postgre SQL +AddPostgreSQL adds postgre SQL - Adds PostgreSQL Service and starts postgres exporter. It automatically adds a service to inventory, which is running on provided "node_id", then adds "postgres_exporter" with provided "pmm_agent_id" and other parameters. +Adds PostgreSQL Service and starts postgres exporter. It automatically adds a service to inventory, which is running on provided "node_id", then adds "postgres_exporter" with provided "pmm_agent_id" and other parameters. */ func (a *Client) AddPostgreSQL(params *AddPostgreSQLParams, opts ...ClientOption) (*AddPostgreSQLOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go index d8dc108bc7..7857dd35b2 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go @@ -52,10 +52,12 @@ func NewAddProxySQLParamsWithHTTPClient(client *http.Client) *AddProxySQLParams } } -/* AddProxySQLParams contains all the parameters to send to the API endpoint - for the add proxy SQL operation. +/* +AddProxySQLParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add proxy SQL operation. + + Typically these are written to a http.Request. */ type AddProxySQLParams struct { // Body. diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go index cbe9a3f4d4..754c69c0a8 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go @@ -50,7 +50,8 @@ func NewAddProxySQLOK() *AddProxySQLOK { return &AddProxySQLOK{} } -/* AddProxySQLOK describes a response with status code 200, with default header values. +/* +AddProxySQLOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddProxySQLDefault(code int) *AddProxySQLDefault { } } -/* AddProxySQLDefault describes a response with status code -1, with default header values. +/* +AddProxySQLDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddProxySQLDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*AddProxySQLBody add proxy SQL body +/* +AddProxySQLBody add proxy SQL body swagger:model AddProxySQLBody */ type AddProxySQLBody struct { @@ -384,7 +387,8 @@ func (o *AddProxySQLBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLDefaultBody add proxy SQL default body +/* +AddProxySQLDefaultBody add proxy SQL default body swagger:model AddProxySQLDefaultBody */ type AddProxySQLDefaultBody struct { @@ -487,7 +491,8 @@ func (o *AddProxySQLDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLDefaultBodyDetailsItems0 add proxy SQL default body details items0 +/* +AddProxySQLDefaultBodyDetailsItems0 add proxy SQL default body details items0 swagger:model AddProxySQLDefaultBodyDetailsItems0 */ type AddProxySQLDefaultBodyDetailsItems0 struct { @@ -523,7 +528,8 @@ func (o *AddProxySQLDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLOKBody add proxy SQL OK body +/* +AddProxySQLOKBody add proxy SQL OK body swagger:model AddProxySQLOKBody */ type AddProxySQLOKBody struct { @@ -656,7 +662,8 @@ func (o *AddProxySQLOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. +/* +AddProxySQLOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Node and exposes ProxySQL Service metrics. swagger:model AddProxySQLOKBodyProxysqlExporter */ type AddProxySQLOKBodyProxysqlExporter struct { @@ -864,7 +871,8 @@ func (o *AddProxySQLOKBodyProxysqlExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLOKBodyService ProxySQLService represents a generic ProxySQL instance. +/* +AddProxySQLOKBodyService ProxySQLService represents a generic ProxySQL instance. swagger:model AddProxySQLOKBodyService */ type AddProxySQLOKBodyService struct { @@ -930,7 +938,8 @@ func (o *AddProxySQLOKBodyService) UnmarshalBinary(b []byte) error { return nil } -/*AddProxySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. +/* +AddProxySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory while adding new service. swagger:model AddProxySQLParamsBodyAddNode */ type AddProxySQLParamsBodyAddNode struct { diff --git a/api/managementpb/json/client/proxy_sql/proxy_sql_client.go b/api/managementpb/json/client/proxy_sql/proxy_sql_client.go index 657dc3e1d2..0c3871ba63 100644 --- a/api/managementpb/json/client/proxy_sql/proxy_sql_client.go +++ b/api/managementpb/json/client/proxy_sql/proxy_sql_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - AddProxySQL adds proxy SQL +AddProxySQL adds proxy SQL - Adds ProxySQL Service and starts several Agents. It automatically adds a service to inventory, which is running on provided "node_id", then adds "proxysql_exporter" with provided "pmm_agent_id" and other parameters. +Adds ProxySQL Service and starts several Agents. It automatically adds a service to inventory, which is running on provided "node_id", then adds "proxysql_exporter" with provided "pmm_agent_id" and other parameters. */ func (a *Client) AddProxySQL(params *AddProxySQLParams, opts ...ClientOption) (*AddProxySQLOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/rds/add_rds_parameters.go b/api/managementpb/json/client/rds/add_rds_parameters.go index 8afb7b7152..a2dc2089bf 100644 --- a/api/managementpb/json/client/rds/add_rds_parameters.go +++ b/api/managementpb/json/client/rds/add_rds_parameters.go @@ -52,10 +52,12 @@ func NewAddRDSParamsWithHTTPClient(client *http.Client) *AddRDSParams { } } -/* AddRDSParams contains all the parameters to send to the API endpoint - for the add RDS operation. +/* +AddRDSParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the add RDS operation. + + Typically these are written to a http.Request. */ type AddRDSParams struct { // Body. diff --git a/api/managementpb/json/client/rds/add_rds_responses.go b/api/managementpb/json/client/rds/add_rds_responses.go index 0c2f76ec24..1a736d7172 100644 --- a/api/managementpb/json/client/rds/add_rds_responses.go +++ b/api/managementpb/json/client/rds/add_rds_responses.go @@ -50,7 +50,8 @@ func NewAddRDSOK() *AddRDSOK { return &AddRDSOK{} } -/* AddRDSOK describes a response with status code 200, with default header values. +/* +AddRDSOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewAddRDSDefault(code int) *AddRDSDefault { } } -/* AddRDSDefault describes a response with status code -1, with default header values. +/* +AddRDSDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *AddRDSDefault) readResponse(response runtime.ClientResponse, consumer r return nil } -/*AddRDSBody add RDS body +/* +AddRDSBody add RDS body swagger:model AddRDSBody */ type AddRDSBody struct { @@ -346,7 +349,8 @@ func (o *AddRDSBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSDefaultBody add RDS default body +/* +AddRDSDefaultBody add RDS default body swagger:model AddRDSDefaultBody */ type AddRDSDefaultBody struct { @@ -449,7 +453,8 @@ func (o *AddRDSDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSDefaultBodyDetailsItems0 add RDS default body details items0 +/* +AddRDSDefaultBodyDetailsItems0 add RDS default body details items0 swagger:model AddRDSDefaultBodyDetailsItems0 */ type AddRDSDefaultBodyDetailsItems0 struct { @@ -485,7 +490,8 @@ func (o *AddRDSDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBody add RDS OK body +/* +AddRDSOKBody add RDS OK body swagger:model AddRDSOKBody */ type AddRDSOKBody struct { @@ -891,7 +897,8 @@ func (o *AddRDSOKBody) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyMysql MySQLService represents a generic MySQL instance. +/* +AddRDSOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddRDSOKBodyMysql */ type AddRDSOKBodyMysql struct { @@ -957,7 +964,8 @@ func (o *AddRDSOKBodyMysql) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. +/* +AddRDSOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and exposes MySQL Service metrics. swagger:model AddRDSOKBodyMysqldExporter */ type AddRDSOKBodyMysqldExporter struct { @@ -1182,7 +1190,8 @@ func (o *AddRDSOKBodyMysqldExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyNode RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. +/* +AddRDSOKBodyNode RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. swagger:model AddRDSOKBodyNode */ type AddRDSOKBodyNode struct { @@ -1236,7 +1245,8 @@ func (o *AddRDSOKBodyNode) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. +/* +AddRDSOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instance. swagger:model AddRDSOKBodyPostgresql */ type AddRDSOKBodyPostgresql struct { @@ -1305,7 +1315,8 @@ func (o *AddRDSOKBodyPostgresql) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyPostgresqlExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. +/* +AddRDSOKBodyPostgresqlExporter PostgresExporter runs on Generic or Container Node and exposes PostgreSQL Service metrics. swagger:model AddRDSOKBodyPostgresqlExporter */ type AddRDSOKBodyPostgresqlExporter struct { @@ -1513,7 +1524,8 @@ func (o *AddRDSOKBodyPostgresqlExporter) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. +/* +AddRDSOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and sends MySQL Query Analytics data to the PMM Server. swagger:model AddRDSOKBodyQANMysqlPerfschema */ type AddRDSOKBodyQANMysqlPerfschema struct { @@ -1727,7 +1739,8 @@ func (o *AddRDSOKBodyQANMysqlPerfschema) UnmarshalBinary(b []byte) error { return nil } -/*AddRDSOKBodyQANPostgresqlPgstatements QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. +/* +AddRDSOKBodyQANPostgresqlPgstatements QANPostgreSQLPgStatementsAgent runs within pmm-agent and sends PostgreSQL Query Analytics data to the PMM Server. swagger:model AddRDSOKBodyQANPostgresqlPgstatements */ type AddRDSOKBodyQANPostgresqlPgstatements struct { @@ -1929,7 +1942,8 @@ func (o *AddRDSOKBodyQANPostgresqlPgstatements) UnmarshalBinary(b []byte) error return nil } -/*AddRDSOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. +/* +AddRDSOKBodyRDSExporter RDSExporter runs on Generic or Container Node and exposes RemoteRDS Node metrics. swagger:model AddRDSOKBodyRDSExporter */ type AddRDSOKBodyRDSExporter struct { diff --git a/api/managementpb/json/client/rds/discover_rds_parameters.go b/api/managementpb/json/client/rds/discover_rds_parameters.go index 2224e9501a..2866e7202c 100644 --- a/api/managementpb/json/client/rds/discover_rds_parameters.go +++ b/api/managementpb/json/client/rds/discover_rds_parameters.go @@ -52,10 +52,12 @@ func NewDiscoverRDSParamsWithHTTPClient(client *http.Client) *DiscoverRDSParams } } -/* DiscoverRDSParams contains all the parameters to send to the API endpoint - for the discover RDS operation. +/* +DiscoverRDSParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the discover RDS operation. + + Typically these are written to a http.Request. */ type DiscoverRDSParams struct { // Body. diff --git a/api/managementpb/json/client/rds/discover_rds_responses.go b/api/managementpb/json/client/rds/discover_rds_responses.go index 9b4bf2b556..aab13344e2 100644 --- a/api/managementpb/json/client/rds/discover_rds_responses.go +++ b/api/managementpb/json/client/rds/discover_rds_responses.go @@ -50,7 +50,8 @@ func NewDiscoverRDSOK() *DiscoverRDSOK { return &DiscoverRDSOK{} } -/* DiscoverRDSOK describes a response with status code 200, with default header values. +/* +DiscoverRDSOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewDiscoverRDSDefault(code int) *DiscoverRDSDefault { } } -/* DiscoverRDSDefault describes a response with status code -1, with default header values. +/* +DiscoverRDSDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *DiscoverRDSDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*DiscoverRDSBody discover RDS body +/* +DiscoverRDSBody discover RDS body swagger:model DiscoverRDSBody */ type DiscoverRDSBody struct { @@ -157,7 +160,8 @@ func (o *DiscoverRDSBody) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverRDSDefaultBody discover RDS default body +/* +DiscoverRDSDefaultBody discover RDS default body swagger:model DiscoverRDSDefaultBody */ type DiscoverRDSDefaultBody struct { @@ -260,7 +264,8 @@ func (o *DiscoverRDSDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverRDSDefaultBodyDetailsItems0 discover RDS default body details items0 +/* +DiscoverRDSDefaultBodyDetailsItems0 discover RDS default body details items0 swagger:model DiscoverRDSDefaultBodyDetailsItems0 */ type DiscoverRDSDefaultBodyDetailsItems0 struct { @@ -296,7 +301,8 @@ func (o *DiscoverRDSDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverRDSOKBody discover RDS OK body +/* +DiscoverRDSOKBody discover RDS OK body swagger:model DiscoverRDSOKBody */ type DiscoverRDSOKBody struct { @@ -393,7 +399,8 @@ func (o *DiscoverRDSOKBody) UnmarshalBinary(b []byte) error { return nil } -/*DiscoverRDSOKBodyRDSInstancesItems0 DiscoverRDSInstance models an unique RDS instance for the list of instances returned by Discovery. +/* +DiscoverRDSOKBodyRDSInstancesItems0 DiscoverRDSInstance models an unique RDS instance for the list of instances returned by Discovery. swagger:model DiscoverRDSOKBodyRDSInstancesItems0 */ type DiscoverRDSOKBodyRDSInstancesItems0 struct { diff --git a/api/managementpb/json/client/rds/rds_client.go b/api/managementpb/json/client/rds/rds_client.go index 59c417d0ec..76a963474b 100644 --- a/api/managementpb/json/client/rds/rds_client.go +++ b/api/managementpb/json/client/rds/rds_client.go @@ -36,9 +36,9 @@ type ClientService interface { } /* - AddRDS adds RDS +AddRDS adds RDS - Adds RDS instance. +Adds RDS instance. */ func (a *Client) AddRDS(params *AddRDSParams, opts ...ClientOption) (*AddRDSOK, error) { // TODO: Validate the params before sending @@ -75,9 +75,9 @@ func (a *Client) AddRDS(params *AddRDSParams, opts ...ClientOption) (*AddRDSOK, } /* - DiscoverRDS discovers RDS +DiscoverRDS discovers RDS - Discovers RDS instances. +Discovers RDS instances. */ func (a *Client) DiscoverRDS(params *DiscoverRDSParams, opts ...ClientOption) (*DiscoverRDSOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/security_checks/change_security_checks_parameters.go b/api/managementpb/json/client/security_checks/change_security_checks_parameters.go index a45235ac2e..36cfeac04a 100644 --- a/api/managementpb/json/client/security_checks/change_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/change_security_checks_parameters.go @@ -52,10 +52,12 @@ func NewChangeSecurityChecksParamsWithHTTPClient(client *http.Client) *ChangeSec } } -/* ChangeSecurityChecksParams contains all the parameters to send to the API endpoint - for the change security checks operation. +/* +ChangeSecurityChecksParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change security checks operation. + + Typically these are written to a http.Request. */ type ChangeSecurityChecksParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/change_security_checks_responses.go b/api/managementpb/json/client/security_checks/change_security_checks_responses.go index c4de8180b7..01c8381711 100644 --- a/api/managementpb/json/client/security_checks/change_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/change_security_checks_responses.go @@ -50,7 +50,8 @@ func NewChangeSecurityChecksOK() *ChangeSecurityChecksOK { return &ChangeSecurityChecksOK{} } -/* ChangeSecurityChecksOK describes a response with status code 200, with default header values. +/* +ChangeSecurityChecksOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewChangeSecurityChecksDefault(code int) *ChangeSecurityChecksDefault { } } -/* ChangeSecurityChecksDefault describes a response with status code -1, with default header values. +/* +ChangeSecurityChecksDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ChangeSecurityChecksDefault) readResponse(response runtime.ClientRespon return nil } -/*ChangeSecurityChecksBody change security checks body +/* +ChangeSecurityChecksBody change security checks body swagger:model ChangeSecurityChecksBody */ type ChangeSecurityChecksBody struct { @@ -213,7 +216,8 @@ func (o *ChangeSecurityChecksBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeSecurityChecksDefaultBody change security checks default body +/* +ChangeSecurityChecksDefaultBody change security checks default body swagger:model ChangeSecurityChecksDefaultBody */ type ChangeSecurityChecksDefaultBody struct { @@ -316,7 +320,8 @@ func (o *ChangeSecurityChecksDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeSecurityChecksDefaultBodyDetailsItems0 change security checks default body details items0 +/* +ChangeSecurityChecksDefaultBodyDetailsItems0 change security checks default body details items0 swagger:model ChangeSecurityChecksDefaultBodyDetailsItems0 */ type ChangeSecurityChecksDefaultBodyDetailsItems0 struct { @@ -352,7 +357,8 @@ func (o *ChangeSecurityChecksDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) return nil } -/*ChangeSecurityChecksParamsBodyParamsItems0 ChangeSecurityCheckParams specifies a single check parameters. +/* +ChangeSecurityChecksParamsBodyParamsItems0 ChangeSecurityCheckParams specifies a single check parameters. swagger:model ChangeSecurityChecksParamsBodyParamsItems0 */ type ChangeSecurityChecksParamsBodyParamsItems0 struct { diff --git a/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go b/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go index 557a52d688..5cfe658f09 100644 --- a/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go @@ -52,10 +52,12 @@ func NewGetFailedChecksParamsWithHTTPClient(client *http.Client) *GetFailedCheck } } -/* GetFailedChecksParams contains all the parameters to send to the API endpoint - for the get failed checks operation. +/* +GetFailedChecksParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get failed checks operation. + + Typically these are written to a http.Request. */ type GetFailedChecksParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/get_failed_checks_responses.go b/api/managementpb/json/client/security_checks/get_failed_checks_responses.go index ca82513a0c..f095ef0be5 100644 --- a/api/managementpb/json/client/security_checks/get_failed_checks_responses.go +++ b/api/managementpb/json/client/security_checks/get_failed_checks_responses.go @@ -50,7 +50,8 @@ func NewGetFailedChecksOK() *GetFailedChecksOK { return &GetFailedChecksOK{} } -/* GetFailedChecksOK describes a response with status code 200, with default header values. +/* +GetFailedChecksOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewGetFailedChecksDefault(code int) *GetFailedChecksDefault { } } -/* GetFailedChecksDefault describes a response with status code -1, with default header values. +/* +GetFailedChecksDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *GetFailedChecksDefault) readResponse(response runtime.ClientResponse, c return nil } -/*GetFailedChecksBody get failed checks body +/* +GetFailedChecksBody get failed checks body swagger:model GetFailedChecksBody */ type GetFailedChecksBody struct { @@ -209,7 +212,8 @@ func (o *GetFailedChecksBody) UnmarshalBinary(b []byte) error { return nil } -/*GetFailedChecksDefaultBody get failed checks default body +/* +GetFailedChecksDefaultBody get failed checks default body swagger:model GetFailedChecksDefaultBody */ type GetFailedChecksDefaultBody struct { @@ -312,7 +316,8 @@ func (o *GetFailedChecksDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetFailedChecksDefaultBodyDetailsItems0 get failed checks default body details items0 +/* +GetFailedChecksDefaultBodyDetailsItems0 get failed checks default body details items0 swagger:model GetFailedChecksDefaultBodyDetailsItems0 */ type GetFailedChecksDefaultBodyDetailsItems0 struct { @@ -348,7 +353,8 @@ func (o *GetFailedChecksDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*GetFailedChecksOKBody get failed checks OK body +/* +GetFailedChecksOKBody get failed checks OK body swagger:model GetFailedChecksOKBody */ type GetFailedChecksOKBody struct { @@ -490,7 +496,8 @@ func (o *GetFailedChecksOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetFailedChecksOKBodyPageTotals PageTotals represents total values for pagination. +/* +GetFailedChecksOKBodyPageTotals PageTotals represents total values for pagination. swagger:model GetFailedChecksOKBodyPageTotals */ type GetFailedChecksOKBodyPageTotals struct { @@ -529,7 +536,8 @@ func (o *GetFailedChecksOKBodyPageTotals) UnmarshalBinary(b []byte) error { return nil } -/*GetFailedChecksOKBodyResultsItems0 CheckResult represents the check results for a given service. +/* +GetFailedChecksOKBodyResultsItems0 CheckResult represents the check results for a given service. swagger:model GetFailedChecksOKBodyResultsItems0 */ type GetFailedChecksOKBodyResultsItems0 struct { @@ -665,7 +673,8 @@ func (o *GetFailedChecksOKBodyResultsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetFailedChecksParamsBodyPageParams PageParams represents page request parameters for pagination. +/* +GetFailedChecksParamsBodyPageParams PageParams represents page request parameters for pagination. swagger:model GetFailedChecksParamsBodyPageParams */ type GetFailedChecksParamsBodyPageParams struct { diff --git a/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go b/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go index 9d40a0bb61..36c1b70857 100644 --- a/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go +++ b/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go @@ -52,10 +52,12 @@ func NewGetSecurityCheckResultsParamsWithHTTPClient(client *http.Client) *GetSec } } -/* GetSecurityCheckResultsParams contains all the parameters to send to the API endpoint - for the get security check results operation. +/* +GetSecurityCheckResultsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get security check results operation. + + Typically these are written to a http.Request. */ type GetSecurityCheckResultsParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/get_security_check_results_responses.go b/api/managementpb/json/client/security_checks/get_security_check_results_responses.go index bc6d670ef0..aa03b1b477 100644 --- a/api/managementpb/json/client/security_checks/get_security_check_results_responses.go +++ b/api/managementpb/json/client/security_checks/get_security_check_results_responses.go @@ -50,7 +50,8 @@ func NewGetSecurityCheckResultsOK() *GetSecurityCheckResultsOK { return &GetSecurityCheckResultsOK{} } -/* GetSecurityCheckResultsOK describes a response with status code 200, with default header values. +/* +GetSecurityCheckResultsOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewGetSecurityCheckResultsDefault(code int) *GetSecurityCheckResultsDefault } } -/* GetSecurityCheckResultsDefault describes a response with status code -1, with default header values. +/* +GetSecurityCheckResultsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *GetSecurityCheckResultsDefault) readResponse(response runtime.ClientRes return nil } -/*GetSecurityCheckResultsDefaultBody get security check results default body +/* +GetSecurityCheckResultsDefaultBody get security check results default body swagger:model GetSecurityCheckResultsDefaultBody */ type GetSecurityCheckResultsDefaultBody struct { @@ -221,7 +224,8 @@ func (o *GetSecurityCheckResultsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetSecurityCheckResultsDefaultBodyDetailsItems0 get security check results default body details items0 +/* +GetSecurityCheckResultsDefaultBodyDetailsItems0 get security check results default body details items0 swagger:model GetSecurityCheckResultsDefaultBodyDetailsItems0 */ type GetSecurityCheckResultsDefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *GetSecurityCheckResultsDefaultBodyDetailsItems0) UnmarshalBinary(b []by return nil } -/*GetSecurityCheckResultsOKBody get security check results OK body +/* +GetSecurityCheckResultsOKBody get security check results OK body swagger:model GetSecurityCheckResultsOKBody */ type GetSecurityCheckResultsOKBody struct { @@ -354,7 +359,8 @@ func (o *GetSecurityCheckResultsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetSecurityCheckResultsOKBodyResultsItems0 SecurityCheckResult represents the check result returned from pmm-managed after running the check. +/* +GetSecurityCheckResultsOKBodyResultsItems0 SecurityCheckResult represents the check result returned from pmm-managed after running the check. swagger:model GetSecurityCheckResultsOKBodyResultsItems0 */ type GetSecurityCheckResultsOKBodyResultsItems0 struct { diff --git a/api/managementpb/json/client/security_checks/list_failed_services_parameters.go b/api/managementpb/json/client/security_checks/list_failed_services_parameters.go index 6ae65f778e..72d842a5c6 100644 --- a/api/managementpb/json/client/security_checks/list_failed_services_parameters.go +++ b/api/managementpb/json/client/security_checks/list_failed_services_parameters.go @@ -52,10 +52,12 @@ func NewListFailedServicesParamsWithHTTPClient(client *http.Client) *ListFailedS } } -/* ListFailedServicesParams contains all the parameters to send to the API endpoint - for the list failed services operation. +/* +ListFailedServicesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list failed services operation. + + Typically these are written to a http.Request. */ type ListFailedServicesParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/list_failed_services_responses.go b/api/managementpb/json/client/security_checks/list_failed_services_responses.go index 13fc56df89..5720854349 100644 --- a/api/managementpb/json/client/security_checks/list_failed_services_responses.go +++ b/api/managementpb/json/client/security_checks/list_failed_services_responses.go @@ -48,7 +48,8 @@ func NewListFailedServicesOK() *ListFailedServicesOK { return &ListFailedServicesOK{} } -/* ListFailedServicesOK describes a response with status code 200, with default header values. +/* +ListFailedServicesOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewListFailedServicesDefault(code int) *ListFailedServicesDefault { } } -/* ListFailedServicesDefault describes a response with status code -1, with default header values. +/* +ListFailedServicesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ListFailedServicesDefault) readResponse(response runtime.ClientResponse return nil } -/*ListFailedServicesDefaultBody list failed services default body +/* +ListFailedServicesDefaultBody list failed services default body swagger:model ListFailedServicesDefaultBody */ type ListFailedServicesDefaultBody struct { @@ -219,7 +222,8 @@ func (o *ListFailedServicesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListFailedServicesDefaultBodyDetailsItems0 list failed services default body details items0 +/* +ListFailedServicesDefaultBodyDetailsItems0 list failed services default body details items0 swagger:model ListFailedServicesDefaultBodyDetailsItems0 */ type ListFailedServicesDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *ListFailedServicesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*ListFailedServicesOKBody list failed services OK body +/* +ListFailedServicesOKBody list failed services OK body swagger:model ListFailedServicesOKBody */ type ListFailedServicesOKBody struct { @@ -352,7 +357,8 @@ func (o *ListFailedServicesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListFailedServicesOKBodyResultItems0 CheckResultSummary is a summary of check results. +/* +ListFailedServicesOKBodyResultItems0 CheckResultSummary is a summary of check results. swagger:model ListFailedServicesOKBodyResultItems0 */ type ListFailedServicesOKBodyResultItems0 struct { diff --git a/api/managementpb/json/client/security_checks/list_security_checks_parameters.go b/api/managementpb/json/client/security_checks/list_security_checks_parameters.go index 1ee766f6b3..cee211cf84 100644 --- a/api/managementpb/json/client/security_checks/list_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/list_security_checks_parameters.go @@ -52,10 +52,12 @@ func NewListSecurityChecksParamsWithHTTPClient(client *http.Client) *ListSecurit } } -/* ListSecurityChecksParams contains all the parameters to send to the API endpoint - for the list security checks operation. +/* +ListSecurityChecksParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the list security checks operation. + + Typically these are written to a http.Request. */ type ListSecurityChecksParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/list_security_checks_responses.go b/api/managementpb/json/client/security_checks/list_security_checks_responses.go index df7b295846..c5702dda19 100644 --- a/api/managementpb/json/client/security_checks/list_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/list_security_checks_responses.go @@ -50,7 +50,8 @@ func NewListSecurityChecksOK() *ListSecurityChecksOK { return &ListSecurityChecksOK{} } -/* ListSecurityChecksOK describes a response with status code 200, with default header values. +/* +ListSecurityChecksOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewListSecurityChecksDefault(code int) *ListSecurityChecksDefault { } } -/* ListSecurityChecksDefault describes a response with status code -1, with default header values. +/* +ListSecurityChecksDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *ListSecurityChecksDefault) readResponse(response runtime.ClientResponse return nil } -/*ListSecurityChecksDefaultBody list security checks default body +/* +ListSecurityChecksDefaultBody list security checks default body swagger:model ListSecurityChecksDefaultBody */ type ListSecurityChecksDefaultBody struct { @@ -221,7 +224,8 @@ func (o *ListSecurityChecksDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ListSecurityChecksDefaultBodyDetailsItems0 list security checks default body details items0 +/* +ListSecurityChecksDefaultBodyDetailsItems0 list security checks default body details items0 swagger:model ListSecurityChecksDefaultBodyDetailsItems0 */ type ListSecurityChecksDefaultBodyDetailsItems0 struct { @@ -257,7 +261,8 @@ func (o *ListSecurityChecksDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) e return nil } -/*ListSecurityChecksOKBody list security checks OK body +/* +ListSecurityChecksOKBody list security checks OK body swagger:model ListSecurityChecksOKBody */ type ListSecurityChecksOKBody struct { @@ -354,7 +359,8 @@ func (o *ListSecurityChecksOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ListSecurityChecksOKBodyChecksItems0 SecurityCheck contains check name and status. +/* +ListSecurityChecksOKBodyChecksItems0 SecurityCheck contains check name and status. swagger:model ListSecurityChecksOKBodyChecksItems0 */ type ListSecurityChecksOKBodyChecksItems0 struct { diff --git a/api/managementpb/json/client/security_checks/security_checks_client.go b/api/managementpb/json/client/security_checks/security_checks_client.go index 37afd8aaee..cacecdc693 100644 --- a/api/managementpb/json/client/security_checks/security_checks_client.go +++ b/api/managementpb/json/client/security_checks/security_checks_client.go @@ -46,9 +46,9 @@ type ClientService interface { } /* - ChangeSecurityChecks changes security checks +ChangeSecurityChecks changes security checks - Enables/disables Security Thread Tool checks or changes their interval by names. +Enables/disables Security Thread Tool checks or changes their interval by names. */ func (a *Client) ChangeSecurityChecks(params *ChangeSecurityChecksParams, opts ...ClientOption) (*ChangeSecurityChecksOK, error) { // TODO: Validate the params before sending @@ -85,9 +85,9 @@ func (a *Client) ChangeSecurityChecks(params *ChangeSecurityChecksParams, opts . } /* - GetFailedChecks gets failed checks +GetFailedChecks gets failed checks - Returns the latest check results for a given service. +Returns the latest check results for a given service. */ func (a *Client) GetFailedChecks(params *GetFailedChecksParams, opts ...ClientOption) (*GetFailedChecksOK, error) { // TODO: Validate the params before sending @@ -124,9 +124,9 @@ func (a *Client) GetFailedChecks(params *GetFailedChecksParams, opts ...ClientOp } /* - GetSecurityCheckResults gets security check results +GetSecurityCheckResults gets security check results - Returns Security Thread Tool's latest checks results. +Returns Security Thread Tool's latest checks results. */ func (a *Client) GetSecurityCheckResults(params *GetSecurityCheckResultsParams, opts ...ClientOption) (*GetSecurityCheckResultsOK, error) { // TODO: Validate the params before sending @@ -163,9 +163,9 @@ func (a *Client) GetSecurityCheckResults(params *GetSecurityCheckResultsParams, } /* - ListFailedServices lists failed services +ListFailedServices lists failed services - Returns a list of services with failed checks and a summary of check results. +Returns a list of services with failed checks and a summary of check results. */ func (a *Client) ListFailedServices(params *ListFailedServicesParams, opts ...ClientOption) (*ListFailedServicesOK, error) { // TODO: Validate the params before sending @@ -202,9 +202,9 @@ func (a *Client) ListFailedServices(params *ListFailedServicesParams, opts ...Cl } /* - ListSecurityChecks lists security checks +ListSecurityChecks lists security checks - Returns a list of available Security Thread Tool checks. +Returns a list of available Security Thread Tool checks. */ func (a *Client) ListSecurityChecks(params *ListSecurityChecksParams, opts ...ClientOption) (*ListSecurityChecksOK, error) { // TODO: Validate the params before sending @@ -241,9 +241,9 @@ func (a *Client) ListSecurityChecks(params *ListSecurityChecksParams, opts ...Cl } /* - StartSecurityChecks starts security checks +StartSecurityChecks starts security checks - Executes Security Thread Tool checks and returns when all checks are executed. All available checks will be started if check names aren't specified. +Executes Security Thread Tool checks and returns when all checks are executed. All available checks will be started if check names aren't specified. */ func (a *Client) StartSecurityChecks(params *StartSecurityChecksParams, opts ...ClientOption) (*StartSecurityChecksOK, error) { // TODO: Validate the params before sending @@ -280,9 +280,9 @@ func (a *Client) StartSecurityChecks(params *StartSecurityChecksParams, opts ... } /* - ToggleCheckAlert toggles check alert +ToggleCheckAlert toggles check alert - Silence/Unsilence alerts for a specific check result. +Silence/Unsilence alerts for a specific check result. */ func (a *Client) ToggleCheckAlert(params *ToggleCheckAlertParams, opts ...ClientOption) (*ToggleCheckAlertOK, error) { // TODO: Validate the params before sending diff --git a/api/managementpb/json/client/security_checks/start_security_checks_parameters.go b/api/managementpb/json/client/security_checks/start_security_checks_parameters.go index 2537a1fd39..71f2f60549 100644 --- a/api/managementpb/json/client/security_checks/start_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/start_security_checks_parameters.go @@ -52,10 +52,12 @@ func NewStartSecurityChecksParamsWithHTTPClient(client *http.Client) *StartSecur } } -/* StartSecurityChecksParams contains all the parameters to send to the API endpoint - for the start security checks operation. +/* +StartSecurityChecksParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start security checks operation. + + Typically these are written to a http.Request. */ type StartSecurityChecksParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/start_security_checks_responses.go b/api/managementpb/json/client/security_checks/start_security_checks_responses.go index 1e9517355f..8ca64fa631 100644 --- a/api/managementpb/json/client/security_checks/start_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/start_security_checks_responses.go @@ -48,7 +48,8 @@ func NewStartSecurityChecksOK() *StartSecurityChecksOK { return &StartSecurityChecksOK{} } -/* StartSecurityChecksOK describes a response with status code 200, with default header values. +/* +StartSecurityChecksOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewStartSecurityChecksDefault(code int) *StartSecurityChecksDefault { } } -/* StartSecurityChecksDefault describes a response with status code -1, with default header values. +/* +StartSecurityChecksDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *StartSecurityChecksDefault) readResponse(response runtime.ClientRespons return nil } -/*StartSecurityChecksBody start security checks body +/* +StartSecurityChecksBody start security checks body swagger:model StartSecurityChecksBody */ type StartSecurityChecksBody struct { @@ -150,7 +153,8 @@ func (o *StartSecurityChecksBody) UnmarshalBinary(b []byte) error { return nil } -/*StartSecurityChecksDefaultBody start security checks default body +/* +StartSecurityChecksDefaultBody start security checks default body swagger:model StartSecurityChecksDefaultBody */ type StartSecurityChecksDefaultBody struct { @@ -253,7 +257,8 @@ func (o *StartSecurityChecksDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartSecurityChecksDefaultBodyDetailsItems0 start security checks default body details items0 +/* +StartSecurityChecksDefaultBodyDetailsItems0 start security checks default body details items0 swagger:model StartSecurityChecksDefaultBodyDetailsItems0 */ type StartSecurityChecksDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go b/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go index a41c9c5bd4..9ebd6258a3 100644 --- a/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go +++ b/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go @@ -52,10 +52,12 @@ func NewToggleCheckAlertParamsWithHTTPClient(client *http.Client) *ToggleCheckAl } } -/* ToggleCheckAlertParams contains all the parameters to send to the API endpoint - for the toggle check alert operation. +/* +ToggleCheckAlertParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the toggle check alert operation. + + Typically these are written to a http.Request. */ type ToggleCheckAlertParams struct { // Body. diff --git a/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go b/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go index 43063b9932..7ef640998f 100644 --- a/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go +++ b/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go @@ -48,7 +48,8 @@ func NewToggleCheckAlertOK() *ToggleCheckAlertOK { return &ToggleCheckAlertOK{} } -/* ToggleCheckAlertOK describes a response with status code 200, with default header values. +/* +ToggleCheckAlertOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewToggleCheckAlertDefault(code int) *ToggleCheckAlertDefault { } } -/* ToggleCheckAlertDefault describes a response with status code -1, with default header values. +/* +ToggleCheckAlertDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ToggleCheckAlertDefault) readResponse(response runtime.ClientResponse, return nil } -/*ToggleCheckAlertBody toggle check alert body +/* +ToggleCheckAlertBody toggle check alert body swagger:model ToggleCheckAlertBody */ type ToggleCheckAlertBody struct { @@ -153,7 +156,8 @@ func (o *ToggleCheckAlertBody) UnmarshalBinary(b []byte) error { return nil } -/*ToggleCheckAlertDefaultBody toggle check alert default body +/* +ToggleCheckAlertDefaultBody toggle check alert default body swagger:model ToggleCheckAlertDefaultBody */ type ToggleCheckAlertDefaultBody struct { @@ -256,7 +260,8 @@ func (o *ToggleCheckAlertDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ToggleCheckAlertDefaultBodyDetailsItems0 toggle check alert default body details items0 +/* +ToggleCheckAlertDefaultBodyDetailsItems0 toggle check alert default body details items0 swagger:model ToggleCheckAlertDefaultBodyDetailsItems0 */ type ToggleCheckAlertDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/json/client/service/remove_service_parameters.go b/api/managementpb/json/client/service/remove_service_parameters.go index 38ab159e69..8e50ba2a18 100644 --- a/api/managementpb/json/client/service/remove_service_parameters.go +++ b/api/managementpb/json/client/service/remove_service_parameters.go @@ -52,10 +52,12 @@ func NewRemoveServiceParamsWithHTTPClient(client *http.Client) *RemoveServicePar } } -/* RemoveServiceParams contains all the parameters to send to the API endpoint - for the remove service operation. +/* +RemoveServiceParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the remove service operation. + + Typically these are written to a http.Request. */ type RemoveServiceParams struct { // Body. diff --git a/api/managementpb/json/client/service/remove_service_responses.go b/api/managementpb/json/client/service/remove_service_responses.go index bf94b72975..054bb9437b 100644 --- a/api/managementpb/json/client/service/remove_service_responses.go +++ b/api/managementpb/json/client/service/remove_service_responses.go @@ -50,7 +50,8 @@ func NewRemoveServiceOK() *RemoveServiceOK { return &RemoveServiceOK{} } -/* RemoveServiceOK describes a response with status code 200, with default header values. +/* +RemoveServiceOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewRemoveServiceDefault(code int) *RemoveServiceDefault { } } -/* RemoveServiceDefault describes a response with status code -1, with default header values. +/* +RemoveServiceDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, con return nil } -/*RemoveServiceBody remove service body +/* +RemoveServiceBody remove service body swagger:model RemoveServiceBody */ type RemoveServiceBody struct { @@ -226,7 +229,8 @@ func (o *RemoveServiceBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveServiceDefaultBody remove service default body +/* +RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { @@ -329,7 +333,8 @@ func (o *RemoveServiceDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 +/* +RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { diff --git a/api/managementpb/json/client/service/service_client.go b/api/managementpb/json/client/service/service_client.go index beb59e9834..d793b8dcc9 100644 --- a/api/managementpb/json/client/service/service_client.go +++ b/api/managementpb/json/client/service/service_client.go @@ -34,9 +34,9 @@ type ClientService interface { } /* - RemoveService removes service +RemoveService removes service - Removes Service with Agents. +Removes Service with Agents. */ func (a *Client) RemoveService(params *RemoveServiceParams, opts ...ClientOption) (*RemoveServiceOK, error) { // TODO: Validate the params before sending diff --git a/api/platformpb/json/client/platform/connect_parameters.go b/api/platformpb/json/client/platform/connect_parameters.go index e81571513a..59a1edc83b 100644 --- a/api/platformpb/json/client/platform/connect_parameters.go +++ b/api/platformpb/json/client/platform/connect_parameters.go @@ -52,10 +52,12 @@ func NewConnectParamsWithHTTPClient(client *http.Client) *ConnectParams { } } -/* ConnectParams contains all the parameters to send to the API endpoint - for the connect operation. +/* +ConnectParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the connect operation. + + Typically these are written to a http.Request. */ type ConnectParams struct { // Body. diff --git a/api/platformpb/json/client/platform/connect_responses.go b/api/platformpb/json/client/platform/connect_responses.go index c2441cd2d9..20c28115f6 100644 --- a/api/platformpb/json/client/platform/connect_responses.go +++ b/api/platformpb/json/client/platform/connect_responses.go @@ -48,7 +48,8 @@ func NewConnectOK() *ConnectOK { return &ConnectOK{} } -/* ConnectOK describes a response with status code 200, with default header values. +/* +ConnectOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewConnectDefault(code int) *ConnectDefault { } } -/* ConnectDefault describes a response with status code -1, with default header values. +/* +ConnectDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ConnectDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*ConnectBody connect body +/* +ConnectBody connect body swagger:model ConnectBody */ type ConnectBody struct { @@ -159,7 +162,8 @@ func (o *ConnectBody) UnmarshalBinary(b []byte) error { return nil } -/*ConnectDefaultBody connect default body +/* +ConnectDefaultBody connect default body swagger:model ConnectDefaultBody */ type ConnectDefaultBody struct { @@ -262,7 +266,8 @@ func (o *ConnectDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ConnectDefaultBodyDetailsItems0 connect default body details items0 +/* +ConnectDefaultBodyDetailsItems0 connect default body details items0 swagger:model ConnectDefaultBodyDetailsItems0 */ type ConnectDefaultBodyDetailsItems0 struct { diff --git a/api/platformpb/json/client/platform/disconnect_parameters.go b/api/platformpb/json/client/platform/disconnect_parameters.go index 25b156f22c..a7aa5c50e1 100644 --- a/api/platformpb/json/client/platform/disconnect_parameters.go +++ b/api/platformpb/json/client/platform/disconnect_parameters.go @@ -52,10 +52,12 @@ func NewDisconnectParamsWithHTTPClient(client *http.Client) *DisconnectParams { } } -/* DisconnectParams contains all the parameters to send to the API endpoint - for the disconnect operation. +/* +DisconnectParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the disconnect operation. + + Typically these are written to a http.Request. */ type DisconnectParams struct { // Body. diff --git a/api/platformpb/json/client/platform/disconnect_responses.go b/api/platformpb/json/client/platform/disconnect_responses.go index dfcea90749..6ea415058e 100644 --- a/api/platformpb/json/client/platform/disconnect_responses.go +++ b/api/platformpb/json/client/platform/disconnect_responses.go @@ -48,7 +48,8 @@ func NewDisconnectOK() *DisconnectOK { return &DisconnectOK{} } -/* DisconnectOK describes a response with status code 200, with default header values. +/* +DisconnectOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewDisconnectDefault(code int) *DisconnectDefault { } } -/* DisconnectDefault describes a response with status code -1, with default header values. +/* +DisconnectDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *DisconnectDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*DisconnectBody disconnect body +/* +DisconnectBody disconnect body swagger:model DisconnectBody */ type DisconnectBody struct { @@ -150,7 +153,8 @@ func (o *DisconnectBody) UnmarshalBinary(b []byte) error { return nil } -/*DisconnectDefaultBody disconnect default body +/* +DisconnectDefaultBody disconnect default body swagger:model DisconnectDefaultBody */ type DisconnectDefaultBody struct { @@ -253,7 +257,8 @@ func (o *DisconnectDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*DisconnectDefaultBodyDetailsItems0 disconnect default body details items0 +/* +DisconnectDefaultBodyDetailsItems0 disconnect default body details items0 swagger:model DisconnectDefaultBodyDetailsItems0 */ type DisconnectDefaultBodyDetailsItems0 struct { diff --git a/api/platformpb/json/client/platform/get_contact_information_parameters.go b/api/platformpb/json/client/platform/get_contact_information_parameters.go index 9408c70d0b..33c2ad7236 100644 --- a/api/platformpb/json/client/platform/get_contact_information_parameters.go +++ b/api/platformpb/json/client/platform/get_contact_information_parameters.go @@ -52,10 +52,12 @@ func NewGetContactInformationParamsWithHTTPClient(client *http.Client) *GetConta } } -/* GetContactInformationParams contains all the parameters to send to the API endpoint - for the get contact information operation. +/* +GetContactInformationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get contact information operation. + + Typically these are written to a http.Request. */ type GetContactInformationParams struct { // Body. diff --git a/api/platformpb/json/client/platform/get_contact_information_responses.go b/api/platformpb/json/client/platform/get_contact_information_responses.go index 2477fc79af..81cf1651b0 100644 --- a/api/platformpb/json/client/platform/get_contact_information_responses.go +++ b/api/platformpb/json/client/platform/get_contact_information_responses.go @@ -48,7 +48,8 @@ func NewGetContactInformationOK() *GetContactInformationOK { return &GetContactInformationOK{} } -/* GetContactInformationOK describes a response with status code 200, with default header values. +/* +GetContactInformationOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetContactInformationDefault(code int) *GetContactInformationDefault { } } -/* GetContactInformationDefault describes a response with status code -1, with default header values. +/* +GetContactInformationDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetContactInformationDefault) readResponse(response runtime.ClientRespo return nil } -/*GetContactInformationDefaultBody get contact information default body +/* +GetContactInformationDefaultBody get contact information default body swagger:model GetContactInformationDefaultBody */ type GetContactInformationDefaultBody struct { @@ -219,7 +222,8 @@ func (o *GetContactInformationDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetContactInformationDefaultBodyDetailsItems0 get contact information default body details items0 +/* +GetContactInformationDefaultBodyDetailsItems0 get contact information default body details items0 swagger:model GetContactInformationDefaultBodyDetailsItems0 */ type GetContactInformationDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *GetContactInformationDefaultBodyDetailsItems0) UnmarshalBinary(b []byte return nil } -/*GetContactInformationOKBody get contact information OK body +/* +GetContactInformationOKBody get contact information OK body swagger:model GetContactInformationOKBody */ type GetContactInformationOKBody struct { @@ -346,7 +351,8 @@ func (o *GetContactInformationOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetContactInformationOKBodyCustomerSuccess CustomerSuccess contains the contanct details of the customer success employee assigned to a customer's account. +/* +GetContactInformationOKBodyCustomerSuccess CustomerSuccess contains the contanct details of the customer success employee assigned to a customer's account. swagger:model GetContactInformationOKBodyCustomerSuccess */ type GetContactInformationOKBodyCustomerSuccess struct { diff --git a/api/platformpb/json/client/platform/platform_client.go b/api/platformpb/json/client/platform/platform_client.go index 7bd0afdba7..be24785419 100644 --- a/api/platformpb/json/client/platform/platform_client.go +++ b/api/platformpb/json/client/platform/platform_client.go @@ -46,9 +46,9 @@ type ClientService interface { } /* - Connect connects +Connect connects - Connect a PMM server to the organization created on Percona Portal. That allows the user to sign in to the PMM server with their Percona Account. +Connect a PMM server to the organization created on Percona Portal. That allows the user to sign in to the PMM server with their Percona Account. */ func (a *Client) Connect(params *ConnectParams, opts ...ClientOption) (*ConnectOK, error) { // TODO: Validate the params before sending @@ -85,9 +85,9 @@ func (a *Client) Connect(params *ConnectParams, opts ...ClientOption) (*ConnectO } /* - Disconnect disconnects +Disconnect disconnects - Disconnect a PMM server from the organization created on Percona Portal. +Disconnect a PMM server from the organization created on Percona Portal. */ func (a *Client) Disconnect(params *DisconnectParams, opts ...ClientOption) (*DisconnectOK, error) { // TODO: Validate the params before sending @@ -124,9 +124,9 @@ func (a *Client) Disconnect(params *DisconnectParams, opts ...ClientOption) (*Di } /* - GetContactInformation gets contact information +GetContactInformation gets contact information - GetContactInformation fetches the contact details of the customer success employee handling the Percona customer account from Percona Platform. +GetContactInformation fetches the contact details of the customer success employee handling the Percona customer account from Percona Platform. */ func (a *Client) GetContactInformation(params *GetContactInformationParams, opts ...ClientOption) (*GetContactInformationOK, error) { // TODO: Validate the params before sending @@ -163,9 +163,9 @@ func (a *Client) GetContactInformation(params *GetContactInformationParams, opts } /* - SearchOrganizationEntitlements searches organization entitlements +SearchOrganizationEntitlements searches organization entitlements - SearchOrganizationEntitlements fetches details of the entitlement's available to the Portal organization that the PMM server is connected to. +SearchOrganizationEntitlements fetches details of the entitlement's available to the Portal organization that the PMM server is connected to. */ func (a *Client) SearchOrganizationEntitlements(params *SearchOrganizationEntitlementsParams, opts ...ClientOption) (*SearchOrganizationEntitlementsOK, error) { // TODO: Validate the params before sending @@ -202,9 +202,9 @@ func (a *Client) SearchOrganizationEntitlements(params *SearchOrganizationEntitl } /* - SearchOrganizationTickets searches organization tickets +SearchOrganizationTickets searches organization tickets - SearchOrganizationTickets searches support tickets belonging to the Percona Portal Organization that the PMM server is connected to. +SearchOrganizationTickets searches support tickets belonging to the Percona Portal Organization that the PMM server is connected to. */ func (a *Client) SearchOrganizationTickets(params *SearchOrganizationTicketsParams, opts ...ClientOption) (*SearchOrganizationTicketsOK, error) { // TODO: Validate the params before sending @@ -241,9 +241,9 @@ func (a *Client) SearchOrganizationTickets(params *SearchOrganizationTicketsPara } /* - ServerInfo servers info +ServerInfo servers info - ServerInfo returns PMM server ID and name. +ServerInfo returns PMM server ID and name. */ func (a *Client) ServerInfo(params *ServerInfoParams, opts ...ClientOption) (*ServerInfoOK, error) { // TODO: Validate the params before sending @@ -280,9 +280,9 @@ func (a *Client) ServerInfo(params *ServerInfoParams, opts ...ClientOption) (*Se } /* - UserStatus users status +UserStatus users status - UserStatus returns a boolean indicating whether the current user is logged in with their Percona Account or not. +UserStatus returns a boolean indicating whether the current user is logged in with their Percona Account or not. */ func (a *Client) UserStatus(params *UserStatusParams, opts ...ClientOption) (*UserStatusOK, error) { // TODO: Validate the params before sending diff --git a/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go b/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go index f26c560eb7..f13a953027 100644 --- a/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go +++ b/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go @@ -52,10 +52,12 @@ func NewSearchOrganizationEntitlementsParamsWithHTTPClient(client *http.Client) } } -/* SearchOrganizationEntitlementsParams contains all the parameters to send to the API endpoint - for the search organization entitlements operation. +/* +SearchOrganizationEntitlementsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the search organization entitlements operation. + + Typically these are written to a http.Request. */ type SearchOrganizationEntitlementsParams struct { // Body. diff --git a/api/platformpb/json/client/platform/search_organization_entitlements_responses.go b/api/platformpb/json/client/platform/search_organization_entitlements_responses.go index 0c928d4ff5..4b8dc1c532 100644 --- a/api/platformpb/json/client/platform/search_organization_entitlements_responses.go +++ b/api/platformpb/json/client/platform/search_organization_entitlements_responses.go @@ -49,7 +49,8 @@ func NewSearchOrganizationEntitlementsOK() *SearchOrganizationEntitlementsOK { return &SearchOrganizationEntitlementsOK{} } -/* SearchOrganizationEntitlementsOK describes a response with status code 200, with default header values. +/* +SearchOrganizationEntitlementsOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewSearchOrganizationEntitlementsDefault(code int) *SearchOrganizationEntit } } -/* SearchOrganizationEntitlementsDefault describes a response with status code -1, with default header values. +/* +SearchOrganizationEntitlementsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *SearchOrganizationEntitlementsDefault) readResponse(response runtime.Cl return nil } -/*SearchOrganizationEntitlementsDefaultBody search organization entitlements default body +/* +SearchOrganizationEntitlementsDefaultBody search organization entitlements default body swagger:model SearchOrganizationEntitlementsDefaultBody */ type SearchOrganizationEntitlementsDefaultBody struct { @@ -220,7 +223,8 @@ func (o *SearchOrganizationEntitlementsDefaultBody) UnmarshalBinary(b []byte) er return nil } -/*SearchOrganizationEntitlementsDefaultBodyDetailsItems0 search organization entitlements default body details items0 +/* +SearchOrganizationEntitlementsDefaultBodyDetailsItems0 search organization entitlements default body details items0 swagger:model SearchOrganizationEntitlementsDefaultBodyDetailsItems0 */ type SearchOrganizationEntitlementsDefaultBodyDetailsItems0 struct { @@ -256,7 +260,8 @@ func (o *SearchOrganizationEntitlementsDefaultBodyDetailsItems0) UnmarshalBinary return nil } -/*SearchOrganizationEntitlementsOKBody search organization entitlements OK body +/* +SearchOrganizationEntitlementsOKBody search organization entitlements OK body swagger:model SearchOrganizationEntitlementsOKBody */ type SearchOrganizationEntitlementsOKBody struct { @@ -353,7 +358,8 @@ func (o *SearchOrganizationEntitlementsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*SearchOrganizationEntitlementsOKBodyEntitlementsItems0 OrganizationEntitlement contains information about Organization entitlement. +/* +SearchOrganizationEntitlementsOKBodyEntitlementsItems0 OrganizationEntitlement contains information about Organization entitlement. swagger:model SearchOrganizationEntitlementsOKBodyEntitlementsItems0 */ type SearchOrganizationEntitlementsOKBodyEntitlementsItems0 struct { @@ -507,7 +513,8 @@ func (o *SearchOrganizationEntitlementsOKBodyEntitlementsItems0) UnmarshalBinary return nil } -/*SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform Platform indicates platform specific entitlements. +/* +SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform Platform indicates platform specific entitlements. swagger:model SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform */ type SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform struct { diff --git a/api/platformpb/json/client/platform/search_organization_tickets_parameters.go b/api/platformpb/json/client/platform/search_organization_tickets_parameters.go index a13c019400..61a7269406 100644 --- a/api/platformpb/json/client/platform/search_organization_tickets_parameters.go +++ b/api/platformpb/json/client/platform/search_organization_tickets_parameters.go @@ -52,10 +52,12 @@ func NewSearchOrganizationTicketsParamsWithHTTPClient(client *http.Client) *Sear } } -/* SearchOrganizationTicketsParams contains all the parameters to send to the API endpoint - for the search organization tickets operation. +/* +SearchOrganizationTicketsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the search organization tickets operation. + + Typically these are written to a http.Request. */ type SearchOrganizationTicketsParams struct { // Body. diff --git a/api/platformpb/json/client/platform/search_organization_tickets_responses.go b/api/platformpb/json/client/platform/search_organization_tickets_responses.go index 2b432c53bd..36c5824177 100644 --- a/api/platformpb/json/client/platform/search_organization_tickets_responses.go +++ b/api/platformpb/json/client/platform/search_organization_tickets_responses.go @@ -49,7 +49,8 @@ func NewSearchOrganizationTicketsOK() *SearchOrganizationTicketsOK { return &SearchOrganizationTicketsOK{} } -/* SearchOrganizationTicketsOK describes a response with status code 200, with default header values. +/* +SearchOrganizationTicketsOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewSearchOrganizationTicketsDefault(code int) *SearchOrganizationTicketsDef } } -/* SearchOrganizationTicketsDefault describes a response with status code -1, with default header values. +/* +SearchOrganizationTicketsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *SearchOrganizationTicketsDefault) readResponse(response runtime.ClientR return nil } -/*SearchOrganizationTicketsDefaultBody search organization tickets default body +/* +SearchOrganizationTicketsDefaultBody search organization tickets default body swagger:model SearchOrganizationTicketsDefaultBody */ type SearchOrganizationTicketsDefaultBody struct { @@ -220,7 +223,8 @@ func (o *SearchOrganizationTicketsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*SearchOrganizationTicketsDefaultBodyDetailsItems0 search organization tickets default body details items0 +/* +SearchOrganizationTicketsDefaultBodyDetailsItems0 search organization tickets default body details items0 swagger:model SearchOrganizationTicketsDefaultBodyDetailsItems0 */ type SearchOrganizationTicketsDefaultBodyDetailsItems0 struct { @@ -256,7 +260,8 @@ func (o *SearchOrganizationTicketsDefaultBodyDetailsItems0) UnmarshalBinary(b [] return nil } -/*SearchOrganizationTicketsOKBody search organization tickets OK body +/* +SearchOrganizationTicketsOKBody search organization tickets OK body swagger:model SearchOrganizationTicketsOKBody */ type SearchOrganizationTicketsOKBody struct { @@ -353,7 +358,8 @@ func (o *SearchOrganizationTicketsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*SearchOrganizationTicketsOKBodyTicketsItems0 OrganizationTicket contains information about the support ticket. +/* +SearchOrganizationTicketsOKBodyTicketsItems0 OrganizationTicket contains information about the support ticket. swagger:model SearchOrganizationTicketsOKBodyTicketsItems0 */ type SearchOrganizationTicketsOKBodyTicketsItems0 struct { diff --git a/api/platformpb/json/client/platform/server_info_parameters.go b/api/platformpb/json/client/platform/server_info_parameters.go index dac383d47b..895075df3b 100644 --- a/api/platformpb/json/client/platform/server_info_parameters.go +++ b/api/platformpb/json/client/platform/server_info_parameters.go @@ -52,10 +52,12 @@ func NewServerInfoParamsWithHTTPClient(client *http.Client) *ServerInfoParams { } } -/* ServerInfoParams contains all the parameters to send to the API endpoint - for the server info operation. +/* +ServerInfoParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the server info operation. + + Typically these are written to a http.Request. */ type ServerInfoParams struct { // Body. diff --git a/api/platformpb/json/client/platform/server_info_responses.go b/api/platformpb/json/client/platform/server_info_responses.go index 5a9d667b4d..96d64f9b2b 100644 --- a/api/platformpb/json/client/platform/server_info_responses.go +++ b/api/platformpb/json/client/platform/server_info_responses.go @@ -48,7 +48,8 @@ func NewServerInfoOK() *ServerInfoOK { return &ServerInfoOK{} } -/* ServerInfoOK describes a response with status code 200, with default header values. +/* +ServerInfoOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewServerInfoDefault(code int) *ServerInfoDefault { } } -/* ServerInfoDefault describes a response with status code -1, with default header values. +/* +ServerInfoDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ServerInfoDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*ServerInfoDefaultBody server info default body +/* +ServerInfoDefaultBody server info default body swagger:model ServerInfoDefaultBody */ type ServerInfoDefaultBody struct { @@ -219,7 +222,8 @@ func (o *ServerInfoDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ServerInfoDefaultBodyDetailsItems0 server info default body details items0 +/* +ServerInfoDefaultBodyDetailsItems0 server info default body details items0 swagger:model ServerInfoDefaultBodyDetailsItems0 */ type ServerInfoDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *ServerInfoDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*ServerInfoOKBody server info OK body +/* +ServerInfoOKBody server info OK body swagger:model ServerInfoOKBody */ type ServerInfoOKBody struct { diff --git a/api/platformpb/json/client/platform/user_status_parameters.go b/api/platformpb/json/client/platform/user_status_parameters.go index 016320a51a..e8ef6ea0bf 100644 --- a/api/platformpb/json/client/platform/user_status_parameters.go +++ b/api/platformpb/json/client/platform/user_status_parameters.go @@ -52,10 +52,12 @@ func NewUserStatusParamsWithHTTPClient(client *http.Client) *UserStatusParams { } } -/* UserStatusParams contains all the parameters to send to the API endpoint - for the user status operation. +/* +UserStatusParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the user status operation. + + Typically these are written to a http.Request. */ type UserStatusParams struct { // Body. diff --git a/api/platformpb/json/client/platform/user_status_responses.go b/api/platformpb/json/client/platform/user_status_responses.go index e4e8e991d4..1456954c54 100644 --- a/api/platformpb/json/client/platform/user_status_responses.go +++ b/api/platformpb/json/client/platform/user_status_responses.go @@ -48,7 +48,8 @@ func NewUserStatusOK() *UserStatusOK { return &UserStatusOK{} } -/* UserStatusOK describes a response with status code 200, with default header values. +/* +UserStatusOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewUserStatusDefault(code int) *UserStatusDefault { } } -/* UserStatusDefault describes a response with status code -1, with default header values. +/* +UserStatusDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *UserStatusDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*UserStatusDefaultBody user status default body +/* +UserStatusDefaultBody user status default body swagger:model UserStatusDefaultBody */ type UserStatusDefaultBody struct { @@ -219,7 +222,8 @@ func (o *UserStatusDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UserStatusDefaultBodyDetailsItems0 user status default body details items0 +/* +UserStatusDefaultBodyDetailsItems0 user status default body details items0 swagger:model UserStatusDefaultBodyDetailsItems0 */ type UserStatusDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *UserStatusDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*UserStatusOKBody user status OK body +/* +UserStatusOKBody user status OK body swagger:model UserStatusOKBody */ type UserStatusOKBody struct { diff --git a/api/qanpb/collector.pb.go b/api/qanpb/collector.pb.go index 7ce8d67ece..84111947a2 100644 --- a/api/qanpb/collector.pb.go +++ b/api/qanpb/collector.pb.go @@ -266,11 +266,9 @@ type MetricsBucket struct { MTmpTableSizesMin float32 `protobuf:"fixed32,110,opt,name=m_tmp_table_sizes_min,json=mTmpTableSizesMin,proto3" json:"m_tmp_table_sizes_min,omitempty"` MTmpTableSizesMax float32 `protobuf:"fixed32,111,opt,name=m_tmp_table_sizes_max,json=mTmpTableSizesMax,proto3" json:"m_tmp_table_sizes_max,omitempty"` MTmpTableSizesP99 float32 `protobuf:"fixed32,112,opt,name=m_tmp_table_sizes_p99,json=mTmpTableSizesP99,proto3" json:"m_tmp_table_sizes_p99,omitempty"` - // // Boolean metrics: // - *_cnt - how many times this matric was met. // - *_sum - how many times this matric was true. - // MQcHitCnt float32 `protobuf:"fixed32,113,opt,name=m_qc_hit_cnt,json=mQcHitCnt,proto3" json:"m_qc_hit_cnt,omitempty"` // Query Cache hits. MQcHitSum float32 `protobuf:"fixed32,114,opt,name=m_qc_hit_sum,json=mQcHitSum,proto3" json:"m_qc_hit_sum,omitempty"` @@ -378,7 +376,6 @@ type MetricsBucket struct { MCpuSysTimeSum float32 `protobuf:"fixed32,233,opt,name=m_cpu_sys_time_sum,json=mCpuSysTimeSum,proto3" json:"m_cpu_sys_time_sum,omitempty"` // Type of SQL command. CmdType string `protobuf:"bytes,246,opt,name=cmd_type,json=cmdType,proto3" json:"cmd_type,omitempty"` - // // pg_stat_monitor 0.9 metrics // // Total number of planned calls. diff --git a/api/qanpb/json/client/filters/filters_client.go b/api/qanpb/json/client/filters/filters_client.go index 9d615cb922..60bf5cb639 100644 --- a/api/qanpb/json/client/filters/filters_client.go +++ b/api/qanpb/json/client/filters/filters_client.go @@ -34,7 +34,7 @@ type ClientService interface { } /* - Get gets gets map of metrics names +Get gets gets map of metrics names */ func (a *Client) Get(params *GetParams, opts ...ClientOption) (*GetOK, error) { // TODO: Validate the params before sending diff --git a/api/qanpb/json/client/filters/get_parameters.go b/api/qanpb/json/client/filters/get_parameters.go index dd363063b4..7f2a7635c0 100644 --- a/api/qanpb/json/client/filters/get_parameters.go +++ b/api/qanpb/json/client/filters/get_parameters.go @@ -52,10 +52,12 @@ func NewGetParamsWithHTTPClient(client *http.Client) *GetParams { } } -/* GetParams contains all the parameters to send to the API endpoint - for the get operation. +/* +GetParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get operation. + + Typically these are written to a http.Request. */ type GetParams struct { /* Body. diff --git a/api/qanpb/json/client/filters/get_responses.go b/api/qanpb/json/client/filters/get_responses.go index a91e4859b4..cfcee19800 100644 --- a/api/qanpb/json/client/filters/get_responses.go +++ b/api/qanpb/json/client/filters/get_responses.go @@ -49,7 +49,8 @@ func NewGetOK() *GetOK { return &GetOK{} } -/* GetOK describes a response with status code 200, with default header values. +/* +GetOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewGetDefault(code int) *GetDefault { } } -/* GetDefault describes a response with status code -1, with default header values. +/* +GetDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *GetDefault) readResponse(response runtime.ClientResponse, consumer runt return nil } -/*GetBody FiltersRequest contains period for which we need filters. +/* +GetBody FiltersRequest contains period for which we need filters. swagger:model GetBody */ type GetBody struct { @@ -257,7 +260,8 @@ func (o *GetBody) UnmarshalBinary(b []byte) error { return nil } -/*GetDefaultBody get default body +/* +GetDefaultBody get default body swagger:model GetDefaultBody */ type GetDefaultBody struct { @@ -360,7 +364,8 @@ func (o *GetDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetDefaultBodyDetailsItems0 get default body details items0 +/* +GetDefaultBodyDetailsItems0 get default body details items0 swagger:model GetDefaultBodyDetailsItems0 */ type GetDefaultBodyDetailsItems0 struct { @@ -396,7 +401,8 @@ func (o *GetDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetOKBody FiltersReply is map of labels for given period by key. +/* +GetOKBody FiltersReply is map of labels for given period by key. // Key is label's name and value is label's value and how many times it occur. swagger:model GetOKBody */ @@ -489,7 +495,8 @@ func (o *GetOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetOKBodyLabelsAnon ListLabels is list of label's values: duplicates are impossible. +/* +GetOKBodyLabelsAnon ListLabels is list of label's values: duplicates are impossible. swagger:model GetOKBodyLabelsAnon */ type GetOKBodyLabelsAnon struct { @@ -586,7 +593,8 @@ func (o *GetOKBodyLabelsAnon) UnmarshalBinary(b []byte) error { return nil } -/*GetOKBodyLabelsAnonNameItems0 Values is label values and main metric percent and per second. +/* +GetOKBodyLabelsAnonNameItems0 Values is label values and main metric percent and per second. swagger:model GetOKBodyLabelsAnonNameItems0 */ type GetOKBodyLabelsAnonNameItems0 struct { @@ -628,7 +636,8 @@ func (o *GetOKBodyLabelsAnonNameItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. +/* +GetParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. swagger:model GetParamsBodyLabelsItems0 */ type GetParamsBodyLabelsItems0 struct { diff --git a/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go b/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go index 7185084291..a054ed1588 100644 --- a/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go +++ b/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go @@ -52,10 +52,12 @@ func NewGetMetricsNamesParamsWithHTTPClient(client *http.Client) *GetMetricsName } } -/* GetMetricsNamesParams contains all the parameters to send to the API endpoint - for the get metrics names operation. +/* +GetMetricsNamesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get metrics names operation. + + Typically these are written to a http.Request. */ type GetMetricsNamesParams struct { /* Body. diff --git a/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go b/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go index acccffc9f5..1902721a45 100644 --- a/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go +++ b/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go @@ -48,7 +48,8 @@ func NewGetMetricsNamesOK() *GetMetricsNamesOK { return &GetMetricsNamesOK{} } -/* GetMetricsNamesOK describes a response with status code 200, with default header values. +/* +GetMetricsNamesOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetMetricsNamesDefault(code int) *GetMetricsNamesDefault { } } -/* GetMetricsNamesDefault describes a response with status code -1, with default header values. +/* +GetMetricsNamesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetMetricsNamesDefault) readResponse(response runtime.ClientResponse, c return nil } -/*GetMetricsNamesDefaultBody get metrics names default body +/* +GetMetricsNamesDefaultBody get metrics names default body swagger:model GetMetricsNamesDefaultBody */ type GetMetricsNamesDefaultBody struct { @@ -219,7 +222,8 @@ func (o *GetMetricsNamesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsNamesDefaultBodyDetailsItems0 get metrics names default body details items0 +/* +GetMetricsNamesDefaultBodyDetailsItems0 get metrics names default body details items0 swagger:model GetMetricsNamesDefaultBodyDetailsItems0 */ type GetMetricsNamesDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *GetMetricsNamesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*GetMetricsNamesOKBody MetricsNamesReply is map of stored metrics: +/* +GetMetricsNamesOKBody MetricsNamesReply is map of stored metrics: // key is root of metric name in db (Ex:. [m_]query_time[_sum]); // value - Human readable name of metrics. swagger:model GetMetricsNamesOKBody diff --git a/api/qanpb/json/client/metrics_names/metrics_names_client.go b/api/qanpb/json/client/metrics_names/metrics_names_client.go index 07cf9f5b4b..dfad99acda 100644 --- a/api/qanpb/json/client/metrics_names/metrics_names_client.go +++ b/api/qanpb/json/client/metrics_names/metrics_names_client.go @@ -34,7 +34,7 @@ type ClientService interface { } /* - GetMetricsNames gets metrics names gets map of metrics names +GetMetricsNames gets metrics names gets map of metrics names */ func (a *Client) GetMetricsNames(params *GetMetricsNamesParams, opts ...ClientOption) (*GetMetricsNamesOK, error) { // TODO: Validate the params before sending diff --git a/api/qanpb/json/client/object_details/get_histogram_parameters.go b/api/qanpb/json/client/object_details/get_histogram_parameters.go index 241b0fff42..ac3be7715b 100644 --- a/api/qanpb/json/client/object_details/get_histogram_parameters.go +++ b/api/qanpb/json/client/object_details/get_histogram_parameters.go @@ -52,10 +52,12 @@ func NewGetHistogramParamsWithHTTPClient(client *http.Client) *GetHistogramParam } } -/* GetHistogramParams contains all the parameters to send to the API endpoint - for the get histogram operation. +/* +GetHistogramParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get histogram operation. + + Typically these are written to a http.Request. */ type GetHistogramParams struct { /* Body. diff --git a/api/qanpb/json/client/object_details/get_histogram_responses.go b/api/qanpb/json/client/object_details/get_histogram_responses.go index 543ab94c42..22441d3d85 100644 --- a/api/qanpb/json/client/object_details/get_histogram_responses.go +++ b/api/qanpb/json/client/object_details/get_histogram_responses.go @@ -49,7 +49,8 @@ func NewGetHistogramOK() *GetHistogramOK { return &GetHistogramOK{} } -/* GetHistogramOK describes a response with status code 200, with default header values. +/* +GetHistogramOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewGetHistogramDefault(code int) *GetHistogramDefault { } } -/* GetHistogramDefault describes a response with status code -1, with default header values. +/* +GetHistogramDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *GetHistogramDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*GetHistogramBody HistogramRequest defines filtering by time range, labels and queryid. +/* +GetHistogramBody HistogramRequest defines filtering by time range, labels and queryid. swagger:model GetHistogramBody */ type GetHistogramBody struct { @@ -257,7 +260,8 @@ func (o *GetHistogramBody) UnmarshalBinary(b []byte) error { return nil } -/*GetHistogramDefaultBody get histogram default body +/* +GetHistogramDefaultBody get histogram default body swagger:model GetHistogramDefaultBody */ type GetHistogramDefaultBody struct { @@ -360,7 +364,8 @@ func (o *GetHistogramDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetHistogramDefaultBodyDetailsItems0 get histogram default body details items0 +/* +GetHistogramDefaultBodyDetailsItems0 get histogram default body details items0 swagger:model GetHistogramDefaultBodyDetailsItems0 */ type GetHistogramDefaultBodyDetailsItems0 struct { @@ -396,7 +401,8 @@ func (o *GetHistogramDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetHistogramOKBody HistogramReply is histogram items as a list. +/* +GetHistogramOKBody HistogramReply is histogram items as a list. swagger:model GetHistogramOKBody */ type GetHistogramOKBody struct { @@ -493,7 +499,8 @@ func (o *GetHistogramOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetHistogramOKBodyHistogramItemsItems0 HistogramItem represents one item in histogram. +/* +GetHistogramOKBodyHistogramItemsItems0 HistogramItem represents one item in histogram. swagger:model GetHistogramOKBodyHistogramItemsItems0 */ type GetHistogramOKBodyHistogramItemsItems0 struct { @@ -532,7 +539,8 @@ func (o *GetHistogramOKBodyHistogramItemsItems0) UnmarshalBinary(b []byte) error return nil } -/*GetHistogramParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. +/* +GetHistogramParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. swagger:model GetHistogramParamsBodyLabelsItems0 */ type GetHistogramParamsBodyLabelsItems0 struct { diff --git a/api/qanpb/json/client/object_details/get_labels_parameters.go b/api/qanpb/json/client/object_details/get_labels_parameters.go index c1a2f655e6..27cd5acdc7 100644 --- a/api/qanpb/json/client/object_details/get_labels_parameters.go +++ b/api/qanpb/json/client/object_details/get_labels_parameters.go @@ -52,10 +52,12 @@ func NewGetLabelsParamsWithHTTPClient(client *http.Client) *GetLabelsParams { } } -/* GetLabelsParams contains all the parameters to send to the API endpoint - for the get labels operation. +/* +GetLabelsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get labels operation. + + Typically these are written to a http.Request. */ type GetLabelsParams struct { /* Body. diff --git a/api/qanpb/json/client/object_details/get_labels_responses.go b/api/qanpb/json/client/object_details/get_labels_responses.go index 8ab3588e76..5022d06873 100644 --- a/api/qanpb/json/client/object_details/get_labels_responses.go +++ b/api/qanpb/json/client/object_details/get_labels_responses.go @@ -49,7 +49,8 @@ func NewGetLabelsOK() *GetLabelsOK { return &GetLabelsOK{} } -/* GetLabelsOK describes a response with status code 200, with default header values. +/* +GetLabelsOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewGetLabelsDefault(code int) *GetLabelsDefault { } } -/* GetLabelsDefault describes a response with status code -1, with default header values. +/* +GetLabelsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *GetLabelsDefault) readResponse(response runtime.ClientResponse, consume return nil } -/*GetLabelsBody ObjectDetailsLabelsRequest defines filtering of object detail's labels for specific value of +/* +GetLabelsBody ObjectDetailsLabelsRequest defines filtering of object detail's labels for specific value of // dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetLabelsBody */ @@ -202,7 +205,8 @@ func (o *GetLabelsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLabelsDefaultBody get labels default body +/* +GetLabelsDefaultBody get labels default body swagger:model GetLabelsDefaultBody */ type GetLabelsDefaultBody struct { @@ -305,7 +309,8 @@ func (o *GetLabelsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLabelsDefaultBodyDetailsItems0 get labels default body details items0 +/* +GetLabelsDefaultBodyDetailsItems0 get labels default body details items0 swagger:model GetLabelsDefaultBodyDetailsItems0 */ type GetLabelsDefaultBodyDetailsItems0 struct { @@ -341,7 +346,8 @@ func (o *GetLabelsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetLabelsOKBody ObjectDetailsLabelsReply is a map of labels names as keys and labels values as a list. +/* +GetLabelsOKBody ObjectDetailsLabelsReply is a map of labels names as keys and labels values as a list. swagger:model GetLabelsOKBody */ type GetLabelsOKBody struct { @@ -433,7 +439,8 @@ func (o *GetLabelsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetLabelsOKBodyLabelsAnon ListLabelValues is list of label's values. +/* +GetLabelsOKBodyLabelsAnon ListLabelValues is list of label's values. swagger:model GetLabelsOKBodyLabelsAnon */ type GetLabelsOKBodyLabelsAnon struct { diff --git a/api/qanpb/json/client/object_details/get_metrics_parameters.go b/api/qanpb/json/client/object_details/get_metrics_parameters.go index f16f67b047..f5d2589a16 100644 --- a/api/qanpb/json/client/object_details/get_metrics_parameters.go +++ b/api/qanpb/json/client/object_details/get_metrics_parameters.go @@ -52,10 +52,12 @@ func NewGetMetricsParamsWithHTTPClient(client *http.Client) *GetMetricsParams { } } -/* GetMetricsParams contains all the parameters to send to the API endpoint - for the get metrics operation. +/* +GetMetricsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get metrics operation. + + Typically these are written to a http.Request. */ type GetMetricsParams struct { /* Body. diff --git a/api/qanpb/json/client/object_details/get_metrics_responses.go b/api/qanpb/json/client/object_details/get_metrics_responses.go index 590a828909..5416259ce0 100644 --- a/api/qanpb/json/client/object_details/get_metrics_responses.go +++ b/api/qanpb/json/client/object_details/get_metrics_responses.go @@ -49,7 +49,8 @@ func NewGetMetricsOK() *GetMetricsOK { return &GetMetricsOK{} } -/* GetMetricsOK describes a response with status code 200, with default header values. +/* +GetMetricsOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewGetMetricsDefault(code int) *GetMetricsDefault { } } -/* GetMetricsDefault describes a response with status code -1, with default header values. +/* +GetMetricsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *GetMetricsDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*GetMetricsBody MetricsRequest defines filtering of metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. +/* +GetMetricsBody MetricsRequest defines filtering of metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetMetricsBody */ type GetMetricsBody struct { @@ -266,7 +269,8 @@ func (o *GetMetricsBody) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsDefaultBody get metrics default body +/* +GetMetricsDefaultBody get metrics default body swagger:model GetMetricsDefaultBody */ type GetMetricsDefaultBody struct { @@ -369,7 +373,8 @@ func (o *GetMetricsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsDefaultBodyDetailsItems0 get metrics default body details items0 +/* +GetMetricsDefaultBodyDetailsItems0 get metrics default body details items0 swagger:model GetMetricsDefaultBodyDetailsItems0 */ type GetMetricsDefaultBodyDetailsItems0 struct { @@ -405,7 +410,8 @@ func (o *GetMetricsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsOKBody MetricsReply defines metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. +/* +GetMetricsOKBody MetricsReply defines metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetMetricsOKBody */ type GetMetricsOKBody struct { @@ -606,7 +612,8 @@ func (o *GetMetricsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsOKBodyMetricsAnon MetricValues is statistics of specific metric. +/* +GetMetricsOKBodyMetricsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyMetricsAnon */ type GetMetricsOKBodyMetricsAnon struct { @@ -663,7 +670,8 @@ func (o *GetMetricsOKBodyMetricsAnon) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsOKBodySparklineItems0 Point contains values that represents abscissa (time) and ordinate (volume etc.) +/* +GetMetricsOKBodySparklineItems0 Point contains values that represents abscissa (time) and ordinate (volume etc.) // of every point in a coordinate system of Sparklines. swagger:model GetMetricsOKBodySparklineItems0 */ @@ -892,7 +900,8 @@ func (o *GetMetricsOKBodySparklineItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsOKBodyTotalsAnon MetricValues is statistics of specific metric. +/* +GetMetricsOKBodyTotalsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyTotalsAnon */ type GetMetricsOKBodyTotalsAnon struct { @@ -949,7 +958,8 @@ func (o *GetMetricsOKBodyTotalsAnon) UnmarshalBinary(b []byte) error { return nil } -/*GetMetricsParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. +/* +GetMetricsParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. swagger:model GetMetricsParamsBodyLabelsItems0 */ type GetMetricsParamsBodyLabelsItems0 struct { diff --git a/api/qanpb/json/client/object_details/get_query_example_parameters.go b/api/qanpb/json/client/object_details/get_query_example_parameters.go index f0f606fd35..bccae86cac 100644 --- a/api/qanpb/json/client/object_details/get_query_example_parameters.go +++ b/api/qanpb/json/client/object_details/get_query_example_parameters.go @@ -52,10 +52,12 @@ func NewGetQueryExampleParamsWithHTTPClient(client *http.Client) *GetQueryExampl } } -/* GetQueryExampleParams contains all the parameters to send to the API endpoint - for the get query example operation. +/* +GetQueryExampleParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get query example operation. + + Typically these are written to a http.Request. */ type GetQueryExampleParams struct { /* Body. diff --git a/api/qanpb/json/client/object_details/get_query_example_responses.go b/api/qanpb/json/client/object_details/get_query_example_responses.go index 1a2f653a3f..ee7709800c 100644 --- a/api/qanpb/json/client/object_details/get_query_example_responses.go +++ b/api/qanpb/json/client/object_details/get_query_example_responses.go @@ -50,7 +50,8 @@ func NewGetQueryExampleOK() *GetQueryExampleOK { return &GetQueryExampleOK{} } -/* GetQueryExampleOK describes a response with status code 200, with default header values. +/* +GetQueryExampleOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewGetQueryExampleDefault(code int) *GetQueryExampleDefault { } } -/* GetQueryExampleDefault describes a response with status code -1, with default header values. +/* +GetQueryExampleDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *GetQueryExampleDefault) readResponse(response runtime.ClientResponse, c return nil } -/*GetQueryExampleBody QueryExampleRequest defines filtering of query examples for specific value of +/* +GetQueryExampleBody QueryExampleRequest defines filtering of query examples for specific value of // dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. swagger:model GetQueryExampleBody */ @@ -265,7 +268,8 @@ func (o *GetQueryExampleBody) UnmarshalBinary(b []byte) error { return nil } -/*GetQueryExampleDefaultBody get query example default body +/* +GetQueryExampleDefaultBody get query example default body swagger:model GetQueryExampleDefaultBody */ type GetQueryExampleDefaultBody struct { @@ -368,7 +372,8 @@ func (o *GetQueryExampleDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetQueryExampleDefaultBodyDetailsItems0 get query example default body details items0 +/* +GetQueryExampleDefaultBodyDetailsItems0 get query example default body details items0 swagger:model GetQueryExampleDefaultBodyDetailsItems0 */ type GetQueryExampleDefaultBodyDetailsItems0 struct { @@ -404,7 +409,8 @@ func (o *GetQueryExampleDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) erro return nil } -/*GetQueryExampleOKBody QueryExampleReply list of query examples. +/* +GetQueryExampleOKBody QueryExampleReply list of query examples. swagger:model GetQueryExampleOKBody */ type GetQueryExampleOKBody struct { @@ -501,7 +507,8 @@ func (o *GetQueryExampleOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetQueryExampleOKBodyQueryExamplesItems0 QueryExample shows query examples and their metrics. +/* +GetQueryExampleOKBodyQueryExamplesItems0 QueryExample shows query examples and their metrics. swagger:model GetQueryExampleOKBodyQueryExamplesItems0 */ type GetQueryExampleOKBodyQueryExamplesItems0 struct { @@ -674,7 +681,8 @@ func (o *GetQueryExampleOKBodyQueryExamplesItems0) UnmarshalBinary(b []byte) err return nil } -/*GetQueryExampleParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. +/* +GetQueryExampleParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form like {"server": ["db1", "db2"...]}. swagger:model GetQueryExampleParamsBodyLabelsItems0 */ type GetQueryExampleParamsBodyLabelsItems0 struct { diff --git a/api/qanpb/json/client/object_details/get_query_plan_parameters.go b/api/qanpb/json/client/object_details/get_query_plan_parameters.go index 9f1b122fe8..951332f0db 100644 --- a/api/qanpb/json/client/object_details/get_query_plan_parameters.go +++ b/api/qanpb/json/client/object_details/get_query_plan_parameters.go @@ -52,10 +52,12 @@ func NewGetQueryPlanParamsWithHTTPClient(client *http.Client) *GetQueryPlanParam } } -/* GetQueryPlanParams contains all the parameters to send to the API endpoint - for the get query plan operation. +/* +GetQueryPlanParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get query plan operation. + + Typically these are written to a http.Request. */ type GetQueryPlanParams struct { /* Body. diff --git a/api/qanpb/json/client/object_details/get_query_plan_responses.go b/api/qanpb/json/client/object_details/get_query_plan_responses.go index 7d711ef505..c0e5daf471 100644 --- a/api/qanpb/json/client/object_details/get_query_plan_responses.go +++ b/api/qanpb/json/client/object_details/get_query_plan_responses.go @@ -48,7 +48,8 @@ func NewGetQueryPlanOK() *GetQueryPlanOK { return &GetQueryPlanOK{} } -/* GetQueryPlanOK describes a response with status code 200, with default header values. +/* +GetQueryPlanOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetQueryPlanDefault(code int) *GetQueryPlanDefault { } } -/* GetQueryPlanDefault describes a response with status code -1, with default header values. +/* +GetQueryPlanDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetQueryPlanDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*GetQueryPlanBody QueryPlanRequest defines filtering by queryid. +/* +GetQueryPlanBody QueryPlanRequest defines filtering by queryid. swagger:model GetQueryPlanBody */ type GetQueryPlanBody struct { @@ -152,7 +155,8 @@ func (o *GetQueryPlanBody) UnmarshalBinary(b []byte) error { return nil } -/*GetQueryPlanDefaultBody get query plan default body +/* +GetQueryPlanDefaultBody get query plan default body swagger:model GetQueryPlanDefaultBody */ type GetQueryPlanDefaultBody struct { @@ -255,7 +259,8 @@ func (o *GetQueryPlanDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetQueryPlanDefaultBodyDetailsItems0 get query plan default body details items0 +/* +GetQueryPlanDefaultBodyDetailsItems0 get query plan default body details items0 swagger:model GetQueryPlanDefaultBodyDetailsItems0 */ type GetQueryPlanDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *GetQueryPlanDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetQueryPlanOKBody QueryPlanReply contains planid and query_plan. +/* +GetQueryPlanOKBody QueryPlanReply contains planid and query_plan. swagger:model GetQueryPlanOKBody */ type GetQueryPlanOKBody struct { diff --git a/api/qanpb/json/client/object_details/object_details_client.go b/api/qanpb/json/client/object_details/object_details_client.go index 421830b787..e929e04f46 100644 --- a/api/qanpb/json/client/object_details/object_details_client.go +++ b/api/qanpb/json/client/object_details/object_details_client.go @@ -44,7 +44,7 @@ type ClientService interface { } /* - GetHistogram gets histogram gets histogram items for specific filtering +GetHistogram gets histogram gets histogram items for specific filtering */ func (a *Client) GetHistogram(params *GetHistogramParams, opts ...ClientOption) (*GetHistogramOK, error) { // TODO: Validate the params before sending @@ -81,7 +81,7 @@ func (a *Client) GetHistogram(params *GetHistogramParams, opts ...ClientOption) } /* - GetLabels gets labels gets list of labels for object details +GetLabels gets labels gets list of labels for object details */ func (a *Client) GetLabels(params *GetLabelsParams, opts ...ClientOption) (*GetLabelsOK, error) { // TODO: Validate the params before sending @@ -118,7 +118,7 @@ func (a *Client) GetLabels(params *GetLabelsParams, opts ...ClientOption) (*GetL } /* - GetMetrics gets metrics gets map of metrics for specific filtering +GetMetrics gets metrics gets map of metrics for specific filtering */ func (a *Client) GetMetrics(params *GetMetricsParams, opts ...ClientOption) (*GetMetricsOK, error) { // TODO: Validate the params before sending @@ -155,7 +155,7 @@ func (a *Client) GetMetrics(params *GetMetricsParams, opts ...ClientOption) (*Ge } /* - GetQueryExample gets query example gets list of query examples +GetQueryExample gets query example gets list of query examples */ func (a *Client) GetQueryExample(params *GetQueryExampleParams, opts ...ClientOption) (*GetQueryExampleOK, error) { // TODO: Validate the params before sending @@ -192,7 +192,7 @@ func (a *Client) GetQueryExample(params *GetQueryExampleParams, opts ...ClientOp } /* - GetQueryPlan gets query plan gets query plan and plan id for specific filtering +GetQueryPlan gets query plan gets query plan and plan id for specific filtering */ func (a *Client) GetQueryPlan(params *GetQueryPlanParams, opts ...ClientOption) (*GetQueryPlanOK, error) { // TODO: Validate the params before sending @@ -229,7 +229,7 @@ func (a *Client) GetQueryPlan(params *GetQueryPlanParams, opts ...ClientOption) } /* - QueryExists queries exists check if query exists in clickhouse +QueryExists queries exists check if query exists in clickhouse */ func (a *Client) QueryExists(params *QueryExistsParams, opts ...ClientOption) (*QueryExistsOK, error) { // TODO: Validate the params before sending diff --git a/api/qanpb/json/client/object_details/query_exists_parameters.go b/api/qanpb/json/client/object_details/query_exists_parameters.go index e2681d1db1..3147a7c93c 100644 --- a/api/qanpb/json/client/object_details/query_exists_parameters.go +++ b/api/qanpb/json/client/object_details/query_exists_parameters.go @@ -52,10 +52,12 @@ func NewQueryExistsParamsWithHTTPClient(client *http.Client) *QueryExistsParams } } -/* QueryExistsParams contains all the parameters to send to the API endpoint - for the query exists operation. +/* +QueryExistsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the query exists operation. + + Typically these are written to a http.Request. */ type QueryExistsParams struct { /* Body. diff --git a/api/qanpb/json/client/object_details/query_exists_responses.go b/api/qanpb/json/client/object_details/query_exists_responses.go index 9cca1db09c..4e05278cb4 100644 --- a/api/qanpb/json/client/object_details/query_exists_responses.go +++ b/api/qanpb/json/client/object_details/query_exists_responses.go @@ -48,7 +48,8 @@ func NewQueryExistsOK() *QueryExistsOK { return &QueryExistsOK{} } -/* QueryExistsOK describes a response with status code 200, with default header values. +/* +QueryExistsOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewQueryExistsDefault(code int) *QueryExistsDefault { } } -/* QueryExistsDefault describes a response with status code -1, with default header values. +/* +QueryExistsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *QueryExistsDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*QueryExistsBody QueryExistsRequest check if provided query exists or not. +/* +QueryExistsBody QueryExistsRequest check if provided query exists or not. swagger:model QueryExistsBody */ type QueryExistsBody struct { @@ -153,7 +156,8 @@ func (o *QueryExistsBody) UnmarshalBinary(b []byte) error { return nil } -/*QueryExistsDefaultBody query exists default body +/* +QueryExistsDefaultBody query exists default body swagger:model QueryExistsDefaultBody */ type QueryExistsDefaultBody struct { @@ -256,7 +260,8 @@ func (o *QueryExistsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*QueryExistsDefaultBodyDetailsItems0 query exists default body details items0 +/* +QueryExistsDefaultBodyDetailsItems0 query exists default body details items0 swagger:model QueryExistsDefaultBodyDetailsItems0 */ type QueryExistsDefaultBodyDetailsItems0 struct { diff --git a/api/qanpb/json/client/profile/get_report_parameters.go b/api/qanpb/json/client/profile/get_report_parameters.go index 8727528087..154ce458c2 100644 --- a/api/qanpb/json/client/profile/get_report_parameters.go +++ b/api/qanpb/json/client/profile/get_report_parameters.go @@ -52,10 +52,12 @@ func NewGetReportParamsWithHTTPClient(client *http.Client) *GetReportParams { } } -/* GetReportParams contains all the parameters to send to the API endpoint - for the get report operation. +/* +GetReportParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get report operation. + + Typically these are written to a http.Request. */ type GetReportParams struct { /* Body. diff --git a/api/qanpb/json/client/profile/get_report_responses.go b/api/qanpb/json/client/profile/get_report_responses.go index 3a22f1d8a6..d72cc8a69f 100644 --- a/api/qanpb/json/client/profile/get_report_responses.go +++ b/api/qanpb/json/client/profile/get_report_responses.go @@ -49,7 +49,8 @@ func NewGetReportOK() *GetReportOK { return &GetReportOK{} } -/* GetReportOK describes a response with status code 200, with default header values. +/* +GetReportOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewGetReportDefault(code int) *GetReportDefault { } } -/* GetReportDefault describes a response with status code -1, with default header values. +/* +GetReportDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *GetReportDefault) readResponse(response runtime.ClientResponse, consume return nil } -/*GetReportBody ReportRequest defines filtering of metrics report for db server or other dimentions. +/* +GetReportBody ReportRequest defines filtering of metrics report for db server or other dimentions. swagger:model GetReportBody */ type GetReportBody struct { @@ -275,7 +278,8 @@ func (o *GetReportBody) UnmarshalBinary(b []byte) error { return nil } -/*GetReportDefaultBody get report default body +/* +GetReportDefaultBody get report default body swagger:model GetReportDefaultBody */ type GetReportDefaultBody struct { @@ -378,7 +382,8 @@ func (o *GetReportDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetReportDefaultBodyDetailsItems0 get report default body details items0 +/* +GetReportDefaultBodyDetailsItems0 get report default body details items0 swagger:model GetReportDefaultBodyDetailsItems0 */ type GetReportDefaultBodyDetailsItems0 struct { @@ -414,7 +419,8 @@ func (o *GetReportDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetReportOKBody ReportReply is list of reports per quieryids, hosts etc. +/* +GetReportOKBody ReportReply is list of reports per quieryids, hosts etc. swagger:model GetReportOKBody */ type GetReportOKBody struct { @@ -520,7 +526,8 @@ func (o *GetReportOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetReportOKBodyRowsItems0 Row define metrics for selected dimention. +/* +GetReportOKBodyRowsItems0 Row define metrics for selected dimention. swagger:model GetReportOKBodyRowsItems0 */ type GetReportOKBodyRowsItems0 struct { @@ -687,7 +694,8 @@ func (o *GetReportOKBodyRowsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetReportOKBodyRowsItems0MetricsAnon Metric cell. +/* +GetReportOKBodyRowsItems0MetricsAnon Metric cell. swagger:model GetReportOKBodyRowsItems0MetricsAnon */ type GetReportOKBodyRowsItems0MetricsAnon struct { @@ -775,7 +783,8 @@ func (o *GetReportOKBodyRowsItems0MetricsAnon) UnmarshalBinary(b []byte) error { return nil } -/*GetReportOKBodyRowsItems0MetricsAnonStats Stat is statistics of specific metric. +/* +GetReportOKBodyRowsItems0MetricsAnonStats Stat is statistics of specific metric. swagger:model GetReportOKBodyRowsItems0MetricsAnonStats */ type GetReportOKBodyRowsItems0MetricsAnonStats struct { @@ -832,7 +841,8 @@ func (o *GetReportOKBodyRowsItems0MetricsAnonStats) UnmarshalBinary(b []byte) er return nil } -/*GetReportOKBodyRowsItems0SparklineItems0 Point contains values that represents abscissa (time) and ordinate (volume etc.) +/* +GetReportOKBodyRowsItems0SparklineItems0 Point contains values that represents abscissa (time) and ordinate (volume etc.) // of every point in a coordinate system of Sparklines. swagger:model GetReportOKBodyRowsItems0SparklineItems0 */ @@ -1061,7 +1071,8 @@ func (o *GetReportOKBodyRowsItems0SparklineItems0) UnmarshalBinary(b []byte) err return nil } -/*GetReportParamsBodyLabelsItems0 ReportMapFieldEntry allows to pass labels/dimentions in form like {"server": ["db1", "db2"...]}. +/* +GetReportParamsBodyLabelsItems0 ReportMapFieldEntry allows to pass labels/dimentions in form like {"server": ["db1", "db2"...]}. swagger:model GetReportParamsBodyLabelsItems0 */ type GetReportParamsBodyLabelsItems0 struct { diff --git a/api/qanpb/json/client/profile/profile_client.go b/api/qanpb/json/client/profile/profile_client.go index 5c2d1f630b..28012b143b 100644 --- a/api/qanpb/json/client/profile/profile_client.go +++ b/api/qanpb/json/client/profile/profile_client.go @@ -34,7 +34,7 @@ type ClientService interface { } /* - GetReport gets report returns list of metrics group by queryid or other dimentions +GetReport gets report returns list of metrics group by queryid or other dimentions */ func (a *Client) GetReport(params *GetReportParams, opts ...ClientOption) (*GetReportOK, error) { // TODO: Validate the params before sending diff --git a/api/qanpb/qan.pb.go b/api/qanpb/qan.pb.go index 2d89c94eb8..4211c12127 100644 --- a/api/qanpb/qan.pb.go +++ b/api/qanpb/qan.pb.go @@ -189,7 +189,6 @@ type Point struct { MTmpDiskTablesSumPerSec float32 `protobuf:"fixed32,21,opt,name=m_tmp_disk_tables_sum_per_sec,json=mTmpDiskTablesSumPerSec,proto3" json:"m_tmp_disk_tables_sum_per_sec,omitempty"` // Total Size in bytes for all temporary tables used in the query. MTmpTableSizesSumPerSec float32 `protobuf:"fixed32,22,opt,name=m_tmp_table_sizes_sum_per_sec,json=mTmpTableSizesSumPerSec,proto3" json:"m_tmp_table_sizes_sum_per_sec,omitempty"` - // // Boolean metrics: // - *_sum_per_sec - how many times this matric was true. // @@ -223,7 +222,6 @@ type Point struct { MNoIndexUsedSumPerSec float32 `protobuf:"fixed32,36,opt,name=m_no_index_used_sum_per_sec,json=mNoIndexUsedSumPerSec,proto3" json:"m_no_index_used_sum_per_sec,omitempty"` // The number of queries without good index. MNoGoodIndexUsedSumPerSec float32 `protobuf:"fixed32,37,opt,name=m_no_good_index_used_sum_per_sec,json=mNoGoodIndexUsedSumPerSec,proto3" json:"m_no_good_index_used_sum_per_sec,omitempty"` - // // MongoDB metrics. // // The number of returned documents. @@ -232,7 +230,6 @@ type Point struct { MResponseLengthSumPerSec float32 `protobuf:"fixed32,39,opt,name=m_response_length_sum_per_sec,json=mResponseLengthSumPerSec,proto3" json:"m_response_length_sum_per_sec,omitempty"` // The number of scanned documents. MDocsScannedSumPerSec float32 `protobuf:"fixed32,40,opt,name=m_docs_scanned_sum_per_sec,json=mDocsScannedSumPerSec,proto3" json:"m_docs_scanned_sum_per_sec,omitempty"` - // // PostgreSQL metrics. // // Total number of shared block cache hits by the statement. @@ -263,7 +260,6 @@ type Point struct { MCpuUserTimeSumPerSec float32 `protobuf:"fixed32,56,opt,name=m_cpu_user_time_sum_per_sec,json=mCpuUserTimeSumPerSec,proto3" json:"m_cpu_user_time_sum_per_sec,omitempty"` // Total time system spent in query. MCpuSysTimeSumPerSec float32 `protobuf:"fixed32,57,opt,name=m_cpu_sys_time_sum_per_sec,json=mCpuSysTimeSumPerSec,proto3" json:"m_cpu_sys_time_sum_per_sec,omitempty"` - // // pg_stat_monitor 0.9 metrics // // Total number of planned calls. diff --git a/api/serverpb/json/client/server/aws_instance_check_parameters.go b/api/serverpb/json/client/server/aws_instance_check_parameters.go index 0cb07a547d..07381b0506 100644 --- a/api/serverpb/json/client/server/aws_instance_check_parameters.go +++ b/api/serverpb/json/client/server/aws_instance_check_parameters.go @@ -52,10 +52,12 @@ func NewAWSInstanceCheckParamsWithHTTPClient(client *http.Client) *AWSInstanceCh } } -/* AWSInstanceCheckParams contains all the parameters to send to the API endpoint - for the AWS instance check operation. +/* +AWSInstanceCheckParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the AWS instance check operation. + + Typically these are written to a http.Request. */ type AWSInstanceCheckParams struct { // Body. diff --git a/api/serverpb/json/client/server/aws_instance_check_responses.go b/api/serverpb/json/client/server/aws_instance_check_responses.go index fc1564e127..73b1c3035b 100644 --- a/api/serverpb/json/client/server/aws_instance_check_responses.go +++ b/api/serverpb/json/client/server/aws_instance_check_responses.go @@ -48,7 +48,8 @@ func NewAWSInstanceCheckOK() *AWSInstanceCheckOK { return &AWSInstanceCheckOK{} } -/* AWSInstanceCheckOK describes a response with status code 200, with default header values. +/* +AWSInstanceCheckOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewAWSInstanceCheckDefault(code int) *AWSInstanceCheckDefault { } } -/* AWSInstanceCheckDefault describes a response with status code -1, with default header values. +/* +AWSInstanceCheckDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *AWSInstanceCheckDefault) readResponse(response runtime.ClientResponse, return nil } -/*AWSInstanceCheckBody AWS instance check body +/* +AWSInstanceCheckBody AWS instance check body swagger:model AWSInstanceCheckBody */ type AWSInstanceCheckBody struct { @@ -150,7 +153,8 @@ func (o *AWSInstanceCheckBody) UnmarshalBinary(b []byte) error { return nil } -/*AWSInstanceCheckDefaultBody AWS instance check default body +/* +AWSInstanceCheckDefaultBody AWS instance check default body swagger:model AWSInstanceCheckDefaultBody */ type AWSInstanceCheckDefaultBody struct { @@ -253,7 +257,8 @@ func (o *AWSInstanceCheckDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*AWSInstanceCheckDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +AWSInstanceCheckDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form diff --git a/api/serverpb/json/client/server/change_settings_parameters.go b/api/serverpb/json/client/server/change_settings_parameters.go index 5f8e742add..eb5dc182f6 100644 --- a/api/serverpb/json/client/server/change_settings_parameters.go +++ b/api/serverpb/json/client/server/change_settings_parameters.go @@ -52,10 +52,12 @@ func NewChangeSettingsParamsWithHTTPClient(client *http.Client) *ChangeSettingsP } } -/* ChangeSettingsParams contains all the parameters to send to the API endpoint - for the change settings operation. +/* +ChangeSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the change settings operation. + + Typically these are written to a http.Request. */ type ChangeSettingsParams struct { // Body. diff --git a/api/serverpb/json/client/server/change_settings_responses.go b/api/serverpb/json/client/server/change_settings_responses.go index b66b2600ec..4f1885bec9 100644 --- a/api/serverpb/json/client/server/change_settings_responses.go +++ b/api/serverpb/json/client/server/change_settings_responses.go @@ -48,7 +48,8 @@ func NewChangeSettingsOK() *ChangeSettingsOK { return &ChangeSettingsOK{} } -/* ChangeSettingsOK describes a response with status code 200, with default header values. +/* +ChangeSettingsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewChangeSettingsDefault(code int) *ChangeSettingsDefault { } } -/* ChangeSettingsDefault describes a response with status code -1, with default header values. +/* +ChangeSettingsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *ChangeSettingsDefault) readResponse(response runtime.ClientResponse, co return nil } -/*ChangeSettingsBody change settings body +/* +ChangeSettingsBody change settings body swagger:model ChangeSettingsBody */ type ChangeSettingsBody struct { @@ -414,7 +417,8 @@ func (o *ChangeSettingsBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeSettingsDefaultBody change settings default body +/* +ChangeSettingsDefaultBody change settings default body swagger:model ChangeSettingsDefaultBody */ type ChangeSettingsDefaultBody struct { @@ -517,7 +521,8 @@ func (o *ChangeSettingsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +ChangeSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -660,7 +665,8 @@ func (o *ChangeSettingsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error return nil } -/*ChangeSettingsOKBody change settings OK body +/* +ChangeSettingsOKBody change settings OK body swagger:model ChangeSettingsOKBody */ type ChangeSettingsOKBody struct { @@ -748,7 +754,8 @@ func (o *ChangeSettingsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*ChangeSettingsOKBodySettings Settings represents PMM Server settings. +/* +ChangeSettingsOKBodySettings Settings represents PMM Server settings. swagger:model ChangeSettingsOKBodySettings */ type ChangeSettingsOKBodySettings struct { @@ -1019,7 +1026,8 @@ func (o *ChangeSettingsOKBodySettings) UnmarshalBinary(b []byte) error { return nil } -/*ChangeSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. +/* +ChangeSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. swagger:model ChangeSettingsOKBodySettingsEmailAlertingSettings */ type ChangeSettingsOKBodySettingsEmailAlertingSettings struct { @@ -1076,7 +1084,8 @@ func (o *ChangeSettingsOKBodySettingsEmailAlertingSettings) UnmarshalBinary(b [] return nil } -/*ChangeSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. +/* +ChangeSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model ChangeSettingsOKBodySettingsMetricsResolutions */ type ChangeSettingsOKBodySettingsMetricsResolutions struct { @@ -1118,7 +1127,8 @@ func (o *ChangeSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary(b []byt return nil } -/*ChangeSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represents Slack configuration for Alerting. +/* +ChangeSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represents Slack configuration for Alerting. swagger:model ChangeSettingsOKBodySettingsSlackAlertingSettings */ type ChangeSettingsOKBodySettingsSlackAlertingSettings struct { @@ -1154,7 +1164,8 @@ func (o *ChangeSettingsOKBodySettingsSlackAlertingSettings) UnmarshalBinary(b [] return nil } -/*ChangeSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents intervals between STT checks. +/* +ChangeSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents intervals between STT checks. swagger:model ChangeSettingsOKBodySettingsSttCheckIntervals */ type ChangeSettingsOKBodySettingsSttCheckIntervals struct { @@ -1196,7 +1207,8 @@ func (o *ChangeSettingsOKBodySettingsSttCheckIntervals) UnmarshalBinary(b []byte return nil } -/*ChangeSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. +/* +ChangeSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. swagger:model ChangeSettingsParamsBodyEmailAlertingSettings */ type ChangeSettingsParamsBodyEmailAlertingSettings struct { @@ -1253,7 +1265,8 @@ func (o *ChangeSettingsParamsBodyEmailAlertingSettings) UnmarshalBinary(b []byte return nil } -/*ChangeSettingsParamsBodyMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. +/* +ChangeSettingsParamsBodyMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model ChangeSettingsParamsBodyMetricsResolutions */ type ChangeSettingsParamsBodyMetricsResolutions struct { @@ -1295,7 +1308,8 @@ func (o *ChangeSettingsParamsBodyMetricsResolutions) UnmarshalBinary(b []byte) e return nil } -/*ChangeSettingsParamsBodySlackAlertingSettings SlackAlertingSettings represents Slack configuration for Alerting. +/* +ChangeSettingsParamsBodySlackAlertingSettings SlackAlertingSettings represents Slack configuration for Alerting. swagger:model ChangeSettingsParamsBodySlackAlertingSettings */ type ChangeSettingsParamsBodySlackAlertingSettings struct { @@ -1331,7 +1345,8 @@ func (o *ChangeSettingsParamsBodySlackAlertingSettings) UnmarshalBinary(b []byte return nil } -/*ChangeSettingsParamsBodySttCheckIntervals STTCheckIntervals represents intervals between STT checks. +/* +ChangeSettingsParamsBodySttCheckIntervals STTCheckIntervals represents intervals between STT checks. swagger:model ChangeSettingsParamsBodySttCheckIntervals */ type ChangeSettingsParamsBodySttCheckIntervals struct { diff --git a/api/serverpb/json/client/server/check_updates_parameters.go b/api/serverpb/json/client/server/check_updates_parameters.go index 7cfc088459..41df75a538 100644 --- a/api/serverpb/json/client/server/check_updates_parameters.go +++ b/api/serverpb/json/client/server/check_updates_parameters.go @@ -52,10 +52,12 @@ func NewCheckUpdatesParamsWithHTTPClient(client *http.Client) *CheckUpdatesParam } } -/* CheckUpdatesParams contains all the parameters to send to the API endpoint - for the check updates operation. +/* +CheckUpdatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the check updates operation. + + Typically these are written to a http.Request. */ type CheckUpdatesParams struct { // Body. diff --git a/api/serverpb/json/client/server/check_updates_responses.go b/api/serverpb/json/client/server/check_updates_responses.go index 3043858274..a2c9927fa1 100644 --- a/api/serverpb/json/client/server/check_updates_responses.go +++ b/api/serverpb/json/client/server/check_updates_responses.go @@ -49,7 +49,8 @@ func NewCheckUpdatesOK() *CheckUpdatesOK { return &CheckUpdatesOK{} } -/* CheckUpdatesOK describes a response with status code 200, with default header values. +/* +CheckUpdatesOK describes a response with status code 200, with default header values. A successful response. */ @@ -83,7 +84,8 @@ func NewCheckUpdatesDefault(code int) *CheckUpdatesDefault { } } -/* CheckUpdatesDefault describes a response with status code -1, with default header values. +/* +CheckUpdatesDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -117,7 +119,8 @@ func (o *CheckUpdatesDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*CheckUpdatesBody check updates body +/* +CheckUpdatesBody check updates body swagger:model CheckUpdatesBody */ type CheckUpdatesBody struct { @@ -156,7 +159,8 @@ func (o *CheckUpdatesBody) UnmarshalBinary(b []byte) error { return nil } -/*CheckUpdatesDefaultBody check updates default body +/* +CheckUpdatesDefaultBody check updates default body swagger:model CheckUpdatesDefaultBody */ type CheckUpdatesDefaultBody struct { @@ -259,7 +263,8 @@ func (o *CheckUpdatesDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*CheckUpdatesDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +CheckUpdatesDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -402,7 +407,8 @@ func (o *CheckUpdatesDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*CheckUpdatesOKBody check updates OK body +/* +CheckUpdatesOKBody check updates OK body swagger:model CheckUpdatesOKBody */ type CheckUpdatesOKBody struct { @@ -561,7 +567,8 @@ func (o *CheckUpdatesOKBody) UnmarshalBinary(b []byte) error { return nil } -/*CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Server as a whole. +/* +CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Server as a whole. swagger:model CheckUpdatesOKBodyInstalled */ type CheckUpdatesOKBodyInstalled struct { @@ -625,7 +632,8 @@ func (o *CheckUpdatesOKBodyInstalled) UnmarshalBinary(b []byte) error { return nil } -/*CheckUpdatesOKBodyLatest VersionInfo describes component version, or PMM Server as a whole. +/* +CheckUpdatesOKBodyLatest VersionInfo describes component version, or PMM Server as a whole. swagger:model CheckUpdatesOKBodyLatest */ type CheckUpdatesOKBodyLatest struct { diff --git a/api/serverpb/json/client/server/get_settings_parameters.go b/api/serverpb/json/client/server/get_settings_parameters.go index c6e43fbbc9..286fc45f4d 100644 --- a/api/serverpb/json/client/server/get_settings_parameters.go +++ b/api/serverpb/json/client/server/get_settings_parameters.go @@ -52,10 +52,12 @@ func NewGetSettingsParamsWithHTTPClient(client *http.Client) *GetSettingsParams } } -/* GetSettingsParams contains all the parameters to send to the API endpoint - for the get settings operation. +/* +GetSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get settings operation. + + Typically these are written to a http.Request. */ type GetSettingsParams struct { // Body. diff --git a/api/serverpb/json/client/server/get_settings_responses.go b/api/serverpb/json/client/server/get_settings_responses.go index 9ba9f488ba..9eba7eb605 100644 --- a/api/serverpb/json/client/server/get_settings_responses.go +++ b/api/serverpb/json/client/server/get_settings_responses.go @@ -48,7 +48,8 @@ func NewGetSettingsOK() *GetSettingsOK { return &GetSettingsOK{} } -/* GetSettingsOK describes a response with status code 200, with default header values. +/* +GetSettingsOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetSettingsDefault(code int) *GetSettingsDefault { } } -/* GetSettingsDefault describes a response with status code -1, with default header values. +/* +GetSettingsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetSettingsDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*GetSettingsDefaultBody get settings default body +/* +GetSettingsDefaultBody get settings default body swagger:model GetSettingsDefaultBody */ type GetSettingsDefaultBody struct { @@ -219,7 +222,8 @@ func (o *GetSettingsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +GetSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -362,7 +366,8 @@ func (o *GetSettingsDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetSettingsOKBody get settings OK body +/* +GetSettingsOKBody get settings OK body swagger:model GetSettingsOKBody */ type GetSettingsOKBody struct { @@ -450,7 +455,8 @@ func (o *GetSettingsOKBody) UnmarshalBinary(b []byte) error { return nil } -/*GetSettingsOKBodySettings Settings represents PMM Server settings. +/* +GetSettingsOKBodySettings Settings represents PMM Server settings. swagger:model GetSettingsOKBodySettings */ type GetSettingsOKBodySettings struct { @@ -721,7 +727,8 @@ func (o *GetSettingsOKBodySettings) UnmarshalBinary(b []byte) error { return nil } -/*GetSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. +/* +GetSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. swagger:model GetSettingsOKBodySettingsEmailAlertingSettings */ type GetSettingsOKBodySettingsEmailAlertingSettings struct { @@ -778,7 +785,8 @@ func (o *GetSettingsOKBodySettingsEmailAlertingSettings) UnmarshalBinary(b []byt return nil } -/*GetSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. +/* +GetSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model GetSettingsOKBodySettingsMetricsResolutions */ type GetSettingsOKBodySettingsMetricsResolutions struct { @@ -820,7 +828,8 @@ func (o *GetSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary(b []byte) return nil } -/*GetSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represents Slack configuration for Alerting. +/* +GetSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represents Slack configuration for Alerting. swagger:model GetSettingsOKBodySettingsSlackAlertingSettings */ type GetSettingsOKBodySettingsSlackAlertingSettings struct { @@ -856,7 +865,8 @@ func (o *GetSettingsOKBodySettingsSlackAlertingSettings) UnmarshalBinary(b []byt return nil } -/*GetSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents intervals between STT checks. +/* +GetSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents intervals between STT checks. swagger:model GetSettingsOKBodySettingsSttCheckIntervals */ type GetSettingsOKBodySettingsSttCheckIntervals struct { diff --git a/api/serverpb/json/client/server/logs_parameters.go b/api/serverpb/json/client/server/logs_parameters.go index 96d552d3d6..2463907eae 100644 --- a/api/serverpb/json/client/server/logs_parameters.go +++ b/api/serverpb/json/client/server/logs_parameters.go @@ -53,10 +53,12 @@ func NewLogsParamsWithHTTPClient(client *http.Client) *LogsParams { } } -/* LogsParams contains all the parameters to send to the API endpoint - for the logs operation. +/* +LogsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the logs operation. + + Typically these are written to a http.Request. */ type LogsParams struct { /* Pprof. diff --git a/api/serverpb/json/client/server/logs_responses.go b/api/serverpb/json/client/server/logs_responses.go index 8d41d9560b..ef66827e2e 100644 --- a/api/serverpb/json/client/server/logs_responses.go +++ b/api/serverpb/json/client/server/logs_responses.go @@ -49,7 +49,8 @@ func NewLogsOK(writer io.Writer) *LogsOK { } } -/* LogsOK describes a response with status code 200, with default header values. +/* +LogsOK describes a response with status code 200, with default header values. A successful response. */ @@ -81,7 +82,8 @@ func NewLogsDefault(code int) *LogsDefault { } } -/* LogsDefault describes a response with status code -1, with default header values. +/* +LogsDefault describes a response with status code -1, with default header values. An error response. */ @@ -115,7 +117,8 @@ func (o *LogsDefault) readResponse(response runtime.ClientResponse, consumer run return nil } -/*LogsDefaultBody ErrorResponse is a message returned on HTTP error. +/* +LogsDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model LogsDefaultBody */ type LogsDefaultBody struct { diff --git a/api/serverpb/json/client/server/readiness_parameters.go b/api/serverpb/json/client/server/readiness_parameters.go index 09b75373ce..0389af80fe 100644 --- a/api/serverpb/json/client/server/readiness_parameters.go +++ b/api/serverpb/json/client/server/readiness_parameters.go @@ -52,10 +52,12 @@ func NewReadinessParamsWithHTTPClient(client *http.Client) *ReadinessParams { } } -/* ReadinessParams contains all the parameters to send to the API endpoint - for the readiness operation. +/* +ReadinessParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the readiness operation. + + Typically these are written to a http.Request. */ type ReadinessParams struct { timeout time.Duration diff --git a/api/serverpb/json/client/server/readiness_responses.go b/api/serverpb/json/client/server/readiness_responses.go index 48757f581a..bdf7fa9155 100644 --- a/api/serverpb/json/client/server/readiness_responses.go +++ b/api/serverpb/json/client/server/readiness_responses.go @@ -48,7 +48,8 @@ func NewReadinessOK() *ReadinessOK { return &ReadinessOK{} } -/* ReadinessOK describes a response with status code 200, with default header values. +/* +ReadinessOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewReadinessDefault(code int) *ReadinessDefault { } } -/* ReadinessDefault describes a response with status code -1, with default header values. +/* +ReadinessDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *ReadinessDefault) readResponse(response runtime.ClientResponse, consume return nil } -/*ReadinessDefaultBody readiness default body +/* +ReadinessDefaultBody readiness default body swagger:model ReadinessDefaultBody */ type ReadinessDefaultBody struct { @@ -217,7 +220,8 @@ func (o *ReadinessDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*ReadinessDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +ReadinessDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form diff --git a/api/serverpb/json/client/server/server_client.go b/api/serverpb/json/client/server/server_client.go index 9e79a4c1f0..fffdea9044 100644 --- a/api/serverpb/json/client/server/server_client.go +++ b/api/serverpb/json/client/server/server_client.go @@ -54,9 +54,9 @@ type ClientService interface { } /* - AWSInstanceCheck AWSs instance check +AWSInstanceCheck AWSs instance check - Checks AWS EC2 instance ID. +Checks AWS EC2 instance ID. */ func (a *Client) AWSInstanceCheck(params *AWSInstanceCheckParams, opts ...ClientOption) (*AWSInstanceCheckOK, error) { // TODO: Validate the params before sending @@ -93,9 +93,9 @@ func (a *Client) AWSInstanceCheck(params *AWSInstanceCheckParams, opts ...Client } /* - ChangeSettings changes settings +ChangeSettings changes settings - Changes PMM Server settings. +Changes PMM Server settings. */ func (a *Client) ChangeSettings(params *ChangeSettingsParams, opts ...ClientOption) (*ChangeSettingsOK, error) { // TODO: Validate the params before sending @@ -132,9 +132,9 @@ func (a *Client) ChangeSettings(params *ChangeSettingsParams, opts ...ClientOpti } /* - CheckUpdates checks updates +CheckUpdates checks updates - Checks for available PMM Server updates. +Checks for available PMM Server updates. */ func (a *Client) CheckUpdates(params *CheckUpdatesParams, opts ...ClientOption) (*CheckUpdatesOK, error) { // TODO: Validate the params before sending @@ -171,9 +171,9 @@ func (a *Client) CheckUpdates(params *CheckUpdatesParams, opts ...ClientOption) } /* - GetSettings gets settings +GetSettings gets settings - Returns current PMM Server settings. +Returns current PMM Server settings. */ func (a *Client) GetSettings(params *GetSettingsParams, opts ...ClientOption) (*GetSettingsOK, error) { // TODO: Validate the params before sending @@ -210,9 +210,9 @@ func (a *Client) GetSettings(params *GetSettingsParams, opts ...ClientOption) (* } /* - Logs logs +Logs logs - Returns the PMM Server logs. +Returns the PMM Server logs. */ func (a *Client) Logs(params *LogsParams, writer io.Writer, opts ...ClientOption) (*LogsOK, error) { // TODO: Validate the params before sending @@ -249,9 +249,9 @@ func (a *Client) Logs(params *LogsParams, writer io.Writer, opts ...ClientOption } /* - Readiness checks server readiness +Readiness checks server readiness - Returns an error when Server components being restarted are not ready yet. Use this API for checking the health of Docker containers and for probing Kubernetes readiness. +Returns an error when Server components being restarted are not ready yet. Use this API for checking the health of Docker containers and for probing Kubernetes readiness. */ func (a *Client) Readiness(params *ReadinessParams, opts ...ClientOption) (*ReadinessOK, error) { // TODO: Validate the params before sending @@ -288,9 +288,9 @@ func (a *Client) Readiness(params *ReadinessParams, opts ...ClientOption) (*Read } /* - StartUpdate starts update +StartUpdate starts update - Starts PMM Server update. +Starts PMM Server update. */ func (a *Client) StartUpdate(params *StartUpdateParams, opts ...ClientOption) (*StartUpdateOK, error) { // TODO: Validate the params before sending @@ -327,9 +327,9 @@ func (a *Client) StartUpdate(params *StartUpdateParams, opts ...ClientOption) (* } /* - TestEmailAlertingSettings tests email alerting +TestEmailAlertingSettings tests email alerting - Sends test email to check current SMTP settings for email alerting. +Sends test email to check current SMTP settings for email alerting. */ func (a *Client) TestEmailAlertingSettings(params *TestEmailAlertingSettingsParams, opts ...ClientOption) (*TestEmailAlertingSettingsOK, error) { // TODO: Validate the params before sending @@ -366,9 +366,9 @@ func (a *Client) TestEmailAlertingSettings(params *TestEmailAlertingSettingsPara } /* - UpdateStatus updates status +UpdateStatus updates status - Returns PMM Server update status. +Returns PMM Server update status. */ func (a *Client) UpdateStatus(params *UpdateStatusParams, opts ...ClientOption) (*UpdateStatusOK, error) { // TODO: Validate the params before sending @@ -405,9 +405,9 @@ func (a *Client) UpdateStatus(params *UpdateStatusParams, opts ...ClientOption) } /* - Version versions +Version versions - Returns PMM Server versions. +Returns PMM Server versions. */ func (a *Client) Version(params *VersionParams, opts ...ClientOption) (*VersionOK, error) { // TODO: Validate the params before sending diff --git a/api/serverpb/json/client/server/start_update_parameters.go b/api/serverpb/json/client/server/start_update_parameters.go index d3c1b50426..514a1b9d38 100644 --- a/api/serverpb/json/client/server/start_update_parameters.go +++ b/api/serverpb/json/client/server/start_update_parameters.go @@ -52,10 +52,12 @@ func NewStartUpdateParamsWithHTTPClient(client *http.Client) *StartUpdateParams } } -/* StartUpdateParams contains all the parameters to send to the API endpoint - for the start update operation. +/* +StartUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the start update operation. + + Typically these are written to a http.Request. */ type StartUpdateParams struct { // Body. diff --git a/api/serverpb/json/client/server/start_update_responses.go b/api/serverpb/json/client/server/start_update_responses.go index 7d02429d4f..bb246586f7 100644 --- a/api/serverpb/json/client/server/start_update_responses.go +++ b/api/serverpb/json/client/server/start_update_responses.go @@ -48,7 +48,8 @@ func NewStartUpdateOK() *StartUpdateOK { return &StartUpdateOK{} } -/* StartUpdateOK describes a response with status code 200, with default header values. +/* +StartUpdateOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewStartUpdateDefault(code int) *StartUpdateDefault { } } -/* StartUpdateDefault describes a response with status code -1, with default header values. +/* +StartUpdateDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *StartUpdateDefault) readResponse(response runtime.ClientResponse, consu return nil } -/*StartUpdateDefaultBody start update default body +/* +StartUpdateDefaultBody start update default body swagger:model StartUpdateDefaultBody */ type StartUpdateDefaultBody struct { @@ -219,7 +222,8 @@ func (o *StartUpdateDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*StartUpdateDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +StartUpdateDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -362,7 +366,8 @@ func (o *StartUpdateDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*StartUpdateOKBody start update OK body +/* +StartUpdateOKBody start update OK body swagger:model StartUpdateOKBody */ type StartUpdateOKBody struct { diff --git a/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go b/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go index db32d5411e..df14058507 100644 --- a/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go +++ b/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go @@ -52,10 +52,12 @@ func NewTestEmailAlertingSettingsParamsWithHTTPClient(client *http.Client) *Test } } -/* TestEmailAlertingSettingsParams contains all the parameters to send to the API endpoint - for the test email alerting settings operation. +/* +TestEmailAlertingSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the test email alerting settings operation. + + Typically these are written to a http.Request. */ type TestEmailAlertingSettingsParams struct { // Body. diff --git a/api/serverpb/json/client/server/test_email_alerting_settings_responses.go b/api/serverpb/json/client/server/test_email_alerting_settings_responses.go index 5888c514e8..14ae080753 100644 --- a/api/serverpb/json/client/server/test_email_alerting_settings_responses.go +++ b/api/serverpb/json/client/server/test_email_alerting_settings_responses.go @@ -48,7 +48,8 @@ func NewTestEmailAlertingSettingsOK() *TestEmailAlertingSettingsOK { return &TestEmailAlertingSettingsOK{} } -/* TestEmailAlertingSettingsOK describes a response with status code 200, with default header values. +/* +TestEmailAlertingSettingsOK describes a response with status code 200, with default header values. A successful response. */ @@ -80,7 +81,8 @@ func NewTestEmailAlertingSettingsDefault(code int) *TestEmailAlertingSettingsDef } } -/* TestEmailAlertingSettingsDefault describes a response with status code -1, with default header values. +/* +TestEmailAlertingSettingsDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -114,7 +116,8 @@ func (o *TestEmailAlertingSettingsDefault) readResponse(response runtime.ClientR return nil } -/*TestEmailAlertingSettingsBody test email alerting settings body +/* +TestEmailAlertingSettingsBody test email alerting settings body swagger:model TestEmailAlertingSettingsBody */ type TestEmailAlertingSettingsBody struct { @@ -205,7 +208,8 @@ func (o *TestEmailAlertingSettingsBody) UnmarshalBinary(b []byte) error { return nil } -/*TestEmailAlertingSettingsDefaultBody test email alerting settings default body +/* +TestEmailAlertingSettingsDefaultBody test email alerting settings default body swagger:model TestEmailAlertingSettingsDefaultBody */ type TestEmailAlertingSettingsDefaultBody struct { @@ -308,7 +312,8 @@ func (o *TestEmailAlertingSettingsDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*TestEmailAlertingSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +TestEmailAlertingSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -451,7 +456,8 @@ func (o *TestEmailAlertingSettingsDefaultBodyDetailsItems0) UnmarshalBinary(b [] return nil } -/*TestEmailAlertingSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. +/* +TestEmailAlertingSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings represents email (SMTP) configuration for Alerting. swagger:model TestEmailAlertingSettingsParamsBodyEmailAlertingSettings */ type TestEmailAlertingSettingsParamsBodyEmailAlertingSettings struct { diff --git a/api/serverpb/json/client/server/update_status_parameters.go b/api/serverpb/json/client/server/update_status_parameters.go index 7594a676b1..c2b50ad2f8 100644 --- a/api/serverpb/json/client/server/update_status_parameters.go +++ b/api/serverpb/json/client/server/update_status_parameters.go @@ -52,10 +52,12 @@ func NewUpdateStatusParamsWithHTTPClient(client *http.Client) *UpdateStatusParam } } -/* UpdateStatusParams contains all the parameters to send to the API endpoint - for the update status operation. +/* +UpdateStatusParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update status operation. + + Typically these are written to a http.Request. */ type UpdateStatusParams struct { // Body. diff --git a/api/serverpb/json/client/server/update_status_responses.go b/api/serverpb/json/client/server/update_status_responses.go index 9c2c1a74e7..8aad154fe9 100644 --- a/api/serverpb/json/client/server/update_status_responses.go +++ b/api/serverpb/json/client/server/update_status_responses.go @@ -48,7 +48,8 @@ func NewUpdateStatusOK() *UpdateStatusOK { return &UpdateStatusOK{} } -/* UpdateStatusOK describes a response with status code 200, with default header values. +/* +UpdateStatusOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewUpdateStatusDefault(code int) *UpdateStatusDefault { } } -/* UpdateStatusDefault describes a response with status code -1, with default header values. +/* +UpdateStatusDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *UpdateStatusDefault) readResponse(response runtime.ClientResponse, cons return nil } -/*UpdateStatusBody update status body +/* +UpdateStatusBody update status body swagger:model UpdateStatusBody */ type UpdateStatusBody struct { @@ -155,7 +158,8 @@ func (o *UpdateStatusBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateStatusDefaultBody update status default body +/* +UpdateStatusDefaultBody update status default body swagger:model UpdateStatusDefaultBody */ type UpdateStatusDefaultBody struct { @@ -258,7 +262,8 @@ func (o *UpdateStatusDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateStatusDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +UpdateStatusDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -401,7 +406,8 @@ func (o *UpdateStatusDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*UpdateStatusOKBody update status OK body +/* +UpdateStatusOKBody update status OK body swagger:model UpdateStatusOKBody */ type UpdateStatusOKBody struct { diff --git a/api/serverpb/json/client/server/version_parameters.go b/api/serverpb/json/client/server/version_parameters.go index 1cd5122d96..6e1ac5601f 100644 --- a/api/serverpb/json/client/server/version_parameters.go +++ b/api/serverpb/json/client/server/version_parameters.go @@ -52,10 +52,12 @@ func NewVersionParamsWithHTTPClient(client *http.Client) *VersionParams { } } -/* VersionParams contains all the parameters to send to the API endpoint - for the version operation. +/* +VersionParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the version operation. + + Typically these are written to a http.Request. */ type VersionParams struct { /* Dummy. diff --git a/api/serverpb/json/client/server/version_responses.go b/api/serverpb/json/client/server/version_responses.go index 28b0f6ca05..1f4a1643ed 100644 --- a/api/serverpb/json/client/server/version_responses.go +++ b/api/serverpb/json/client/server/version_responses.go @@ -50,7 +50,8 @@ func NewVersionOK() *VersionOK { return &VersionOK{} } -/* VersionOK describes a response with status code 200, with default header values. +/* +VersionOK describes a response with status code 200, with default header values. A successful response. */ @@ -84,7 +85,8 @@ func NewVersionDefault(code int) *VersionDefault { } } -/* VersionDefault describes a response with status code -1, with default header values. +/* +VersionDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -118,7 +120,8 @@ func (o *VersionDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*VersionDefaultBody version default body +/* +VersionDefaultBody version default body swagger:model VersionDefaultBody */ type VersionDefaultBody struct { @@ -221,7 +224,8 @@ func (o *VersionDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*VersionDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a +/* +VersionDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form @@ -364,7 +368,8 @@ func (o *VersionDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*VersionOKBody version OK body +/* +VersionOKBody version OK body swagger:model VersionOKBody */ type VersionOKBody struct { @@ -562,7 +567,8 @@ func (o *VersionOKBody) UnmarshalBinary(b []byte) error { return nil } -/*VersionOKBodyManaged VersionInfo describes component version, or PMM Server as a whole. +/* +VersionOKBodyManaged VersionInfo describes component version, or PMM Server as a whole. swagger:model VersionOKBodyManaged */ type VersionOKBodyManaged struct { @@ -626,7 +632,8 @@ func (o *VersionOKBodyManaged) UnmarshalBinary(b []byte) error { return nil } -/*VersionOKBodyServer VersionInfo describes component version, or PMM Server as a whole. +/* +VersionOKBodyServer VersionInfo describes component version, or PMM Server as a whole. swagger:model VersionOKBodyServer */ type VersionOKBodyServer struct { diff --git a/api/userpb/json/client/user/get_user_parameters.go b/api/userpb/json/client/user/get_user_parameters.go index bd38a6f24d..ce903ed286 100644 --- a/api/userpb/json/client/user/get_user_parameters.go +++ b/api/userpb/json/client/user/get_user_parameters.go @@ -52,10 +52,12 @@ func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams { } } -/* GetUserParams contains all the parameters to send to the API endpoint - for the get user operation. +/* +GetUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get user operation. + + Typically these are written to a http.Request. */ type GetUserParams struct { timeout time.Duration diff --git a/api/userpb/json/client/user/get_user_responses.go b/api/userpb/json/client/user/get_user_responses.go index 0e7f6d36fb..f603c8a71b 100644 --- a/api/userpb/json/client/user/get_user_responses.go +++ b/api/userpb/json/client/user/get_user_responses.go @@ -48,7 +48,8 @@ func NewGetUserOK() *GetUserOK { return &GetUserOK{} } -/* GetUserOK describes a response with status code 200, with default header values. +/* +GetUserOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewGetUserDefault(code int) *GetUserDefault { } } -/* GetUserDefault describes a response with status code -1, with default header values. +/* +GetUserDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *GetUserDefault) readResponse(response runtime.ClientResponse, consumer return nil } -/*GetUserDefaultBody get user default body +/* +GetUserDefaultBody get user default body swagger:model GetUserDefaultBody */ type GetUserDefaultBody struct { @@ -219,7 +222,8 @@ func (o *GetUserDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*GetUserDefaultBodyDetailsItems0 get user default body details items0 +/* +GetUserDefaultBodyDetailsItems0 get user default body details items0 swagger:model GetUserDefaultBodyDetailsItems0 */ type GetUserDefaultBodyDetailsItems0 struct { @@ -255,7 +259,8 @@ func (o *GetUserDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*GetUserOKBody get user OK body +/* +GetUserOKBody get user OK body swagger:model GetUserOKBody */ type GetUserOKBody struct { diff --git a/api/userpb/json/client/user/update_user_parameters.go b/api/userpb/json/client/user/update_user_parameters.go index 2f0c651559..b42c6ce1a8 100644 --- a/api/userpb/json/client/user/update_user_parameters.go +++ b/api/userpb/json/client/user/update_user_parameters.go @@ -52,10 +52,12 @@ func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams { } } -/* UpdateUserParams contains all the parameters to send to the API endpoint - for the update user operation. +/* +UpdateUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the update user operation. + + Typically these are written to a http.Request. */ type UpdateUserParams struct { // Body. diff --git a/api/userpb/json/client/user/update_user_responses.go b/api/userpb/json/client/user/update_user_responses.go index 02df619461..bc668882f7 100644 --- a/api/userpb/json/client/user/update_user_responses.go +++ b/api/userpb/json/client/user/update_user_responses.go @@ -48,7 +48,8 @@ func NewUpdateUserOK() *UpdateUserOK { return &UpdateUserOK{} } -/* UpdateUserOK describes a response with status code 200, with default header values. +/* +UpdateUserOK describes a response with status code 200, with default header values. A successful response. */ @@ -82,7 +83,8 @@ func NewUpdateUserDefault(code int) *UpdateUserDefault { } } -/* UpdateUserDefault describes a response with status code -1, with default header values. +/* +UpdateUserDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -116,7 +118,8 @@ func (o *UpdateUserDefault) readResponse(response runtime.ClientResponse, consum return nil } -/*UpdateUserBody update user body +/* +UpdateUserBody update user body swagger:model UpdateUserBody */ type UpdateUserBody struct { @@ -152,7 +155,8 @@ func (o *UpdateUserBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateUserDefaultBody update user default body +/* +UpdateUserDefaultBody update user default body swagger:model UpdateUserDefaultBody */ type UpdateUserDefaultBody struct { @@ -255,7 +259,8 @@ func (o *UpdateUserDefaultBody) UnmarshalBinary(b []byte) error { return nil } -/*UpdateUserDefaultBodyDetailsItems0 update user default body details items0 +/* +UpdateUserDefaultBodyDetailsItems0 update user default body details items0 swagger:model UpdateUserDefaultBodyDetailsItems0 */ type UpdateUserDefaultBodyDetailsItems0 struct { @@ -291,7 +296,8 @@ func (o *UpdateUserDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { return nil } -/*UpdateUserOKBody update user OK body +/* +UpdateUserOKBody update user OK body swagger:model UpdateUserOKBody */ type UpdateUserOKBody struct { diff --git a/api/userpb/json/client/user/user_client.go b/api/userpb/json/client/user/user_client.go index eeb77d3c4a..b8bb5a47e5 100644 --- a/api/userpb/json/client/user/user_client.go +++ b/api/userpb/json/client/user/user_client.go @@ -36,9 +36,9 @@ type ClientService interface { } /* - GetUser gets user details +GetUser gets user details - Retrieve user details from PMM server +Retrieve user details from PMM server */ func (a *Client) GetUser(params *GetUserParams, opts ...ClientOption) (*GetUserOK, error) { // TODO: Validate the params before sending @@ -75,9 +75,9 @@ func (a *Client) GetUser(params *GetUserParams, opts ...ClientOption) (*GetUserO } /* - UpdateUser updates user +UpdateUser updates user - Update details of given user in PMM server +Update details of given user in PMM server */ func (a *Client) UpdateUser(params *UpdateUserParams, opts ...ClientOption) (*UpdateUserOK, error) { // TODO: Validate the params before sending From 826e2e754e1425dc574f890da3153fa4fff5b5c4 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Wed, 19 Oct 2022 23:08:53 +0200 Subject: [PATCH 21/29] PMM-10231 service-params-source renaming api+admin --- admin/commands/management/add_external.go | 4 +- .../management/add_external_serverless.go | 4 +- admin/commands/management/add_haproxy.go | 4 +- admin/commands/management/add_mongodb.go | 44 +- admin/commands/management/add_mysql.go | 49 +- admin/commands/management/add_postgresql.go | 26 +- admin/commands/management/add_proxysql.go | 32 +- api/agentlocalpb/agentlocal.pb.go | 35 +- api/agentlocalpb/agentlocal.pb.gw.go | 32 +- api/agentlocalpb/agentlocal.validator.pb.go | 17 +- api/agentlocalpb/agentlocal_grpc.pb.go | 5 +- .../client/agent_local/reload_parameters.go | 2 + .../client/agent_local/reload_responses.go | 9 +- .../client/agent_local/status2_parameters.go | 3 + .../client/agent_local/status2_responses.go | 16 +- .../client/agent_local/status_parameters.go | 2 + .../client/agent_local/status_responses.go | 17 +- api/agentpb/agent.go | 76 +- api/agentpb/agent.pb.go | 1176 ++++++++--------- api/agentpb/agent.proto | 12 +- api/agentpb/agent.validator.pb.go | 116 +- api/agentpb/agent_grpc.pb.go | 4 +- api/agentpb/collector.pb.go | 39 +- api/agentpb/collector.validator.pb.go | 17 +- api/inventorypb/agent_status.pb.go | 16 +- api/inventorypb/agent_status.validator.pb.go | 9 +- api/inventorypb/agents.pb.go | 236 ++-- api/inventorypb/agents.pb.gw.go | 140 +- api/inventorypb/agents.validator.pb.go | 90 +- api/inventorypb/agents_grpc.pb.go | 34 +- .../add_azure_database_exporter_parameters.go | 2 + .../add_azure_database_exporter_responses.go | 13 +- .../add_external_exporter_parameters.go | 2 + .../agents/add_external_exporter_responses.go | 13 +- .../add_mongo_db_exporter_parameters.go | 2 + .../agents/add_mongo_db_exporter_responses.go | 13 +- .../add_my_s_q_ld_exporter_parameters.go | 2 + .../add_my_s_q_ld_exporter_responses.go | 13 +- .../agents/add_node_exporter_parameters.go | 2 + .../agents/add_node_exporter_responses.go | 13 +- .../client/agents/add_pmm_agent_parameters.go | 2 + .../client/agents/add_pmm_agent_responses.go | 13 +- .../add_postgres_exporter_parameters.go | 2 + .../agents/add_postgres_exporter_responses.go | 13 +- .../add_proxy_sql_exporter_parameters.go | 2 + .../add_proxy_sql_exporter_responses.go | 13 +- ..._qan_mongo_db_profiler_agent_parameters.go | 2 + ...d_qan_mongo_db_profiler_agent_responses.go | 13 +- ...qan_my_sql_perf_schema_agent_parameters.go | 2 + ..._qan_my_sql_perf_schema_agent_responses.go | 13 +- ...add_qan_my_sql_slowlog_agent_parameters.go | 2 + .../add_qan_my_sql_slowlog_agent_responses.go | 13 +- ...re_sql_pg_stat_monitor_agent_parameters.go | 2 + ...gre_sql_pg_stat_monitor_agent_responses.go | 13 +- ...tgre_sql_pg_statements_agent_parameters.go | 2 + ...stgre_sql_pg_statements_agent_responses.go | 13 +- .../agents/add_rds_exporter_parameters.go | 2 + .../agents/add_rds_exporter_responses.go | 13 +- ...ange_azure_database_exporter_parameters.go | 2 + ...hange_azure_database_exporter_responses.go | 15 +- .../change_external_exporter_parameters.go | 2 + .../change_external_exporter_responses.go | 15 +- .../change_mongo_db_exporter_parameters.go | 2 + .../change_mongo_db_exporter_responses.go | 15 +- .../change_my_s_q_ld_exporter_parameters.go | 2 + .../change_my_s_q_ld_exporter_responses.go | 15 +- .../agents/change_node_exporter_parameters.go | 2 + .../agents/change_node_exporter_responses.go | 15 +- .../change_postgres_exporter_parameters.go | 2 + .../change_postgres_exporter_responses.go | 15 +- .../change_proxy_sql_exporter_parameters.go | 2 + .../change_proxy_sql_exporter_responses.go | 15 +- ..._qan_mongo_db_profiler_agent_parameters.go | 2 + ...e_qan_mongo_db_profiler_agent_responses.go | 15 +- ...qan_my_sql_perf_schema_agent_parameters.go | 2 + ..._qan_my_sql_perf_schema_agent_responses.go | 15 +- ...nge_qan_my_sql_slowlog_agent_parameters.go | 2 + ...ange_qan_my_sql_slowlog_agent_responses.go | 15 +- ...re_sql_pg_stat_monitor_agent_parameters.go | 2 + ...gre_sql_pg_stat_monitor_agent_responses.go | 15 +- ...tgre_sql_pg_statements_agent_parameters.go | 2 + ...stgre_sql_pg_statements_agent_responses.go | 15 +- .../agents/change_rds_exporter_parameters.go | 2 + .../agents/change_rds_exporter_responses.go | 15 +- .../agents/get_agent_logs_parameters.go | 2 + .../client/agents/get_agent_logs_responses.go | 11 +- .../client/agents/get_agent_parameters.go | 2 + .../json/client/agents/get_agent_responses.go | 41 +- .../client/agents/list_agents_parameters.go | 2 + .../client/agents/list_agents_responses.go | 71 +- .../client/agents/remove_agent_parameters.go | 2 + .../client/agents/remove_agent_responses.go | 10 +- .../nodes/add_container_node_parameters.go | 2 + .../nodes/add_container_node_responses.go | 13 +- .../nodes/add_generic_node_parameters.go | 2 + .../nodes/add_generic_node_responses.go | 13 +- ...d_remote_azure_database_node_parameters.go | 2 + ...dd_remote_azure_database_node_responses.go | 13 +- .../nodes/add_remote_node_parameters.go | 2 + .../client/nodes/add_remote_node_responses.go | 13 +- .../nodes/add_remote_rds_node_parameters.go | 2 + .../nodes/add_remote_rds_node_responses.go | 13 +- .../json/client/nodes/get_node_parameters.go | 2 + .../json/client/nodes/get_node_responses.go | 21 +- .../client/nodes/list_nodes_parameters.go | 2 + .../json/client/nodes/list_nodes_responses.go | 31 +- .../client/nodes/remove_node_parameters.go | 2 + .../client/nodes/remove_node_responses.go | 10 +- .../add_external_service_parameters.go | 2 + .../add_external_service_responses.go | 13 +- .../add_ha_proxy_service_parameters.go | 2 + .../add_ha_proxy_service_responses.go | 13 +- .../add_mongo_db_service_parameters.go | 2 + .../add_mongo_db_service_responses.go | 13 +- .../services/add_my_sql_service_parameters.go | 2 + .../services/add_my_sql_service_responses.go | 13 +- .../add_postgre_sql_service_parameters.go | 2 + .../add_postgre_sql_service_responses.go | 13 +- .../add_proxy_sql_service_parameters.go | 2 + .../add_proxy_sql_service_responses.go | 13 +- .../client/services/get_service_parameters.go | 2 + .../client/services/get_service_responses.go | 23 +- .../services/list_services_parameters.go | 2 + .../services/list_services_responses.go | 35 +- .../services/remove_service_parameters.go | 2 + .../services/remove_service_responses.go | 10 +- api/inventorypb/log_level.pb.go | 16 +- api/inventorypb/log_level.validator.pb.go | 9 +- api/inventorypb/nodes.pb.go | 80 +- api/inventorypb/nodes.pb.gw.go | 48 +- api/inventorypb/nodes.validator.pb.go | 33 +- api/inventorypb/nodes_grpc.pb.go | 11 +- api/inventorypb/services.pb.go | 90 +- api/inventorypb/services.pb.gw.go | 52 +- api/inventorypb/services.validator.pb.go | 34 +- api/inventorypb/services_grpc.pb.go | 12 +- api/managementpb/actions.pb.go | 78 +- api/managementpb/actions.pb.gw.go | 76 +- api/managementpb/actions.validator.pb.go | 40 +- api/managementpb/actions_grpc.pb.go | 18 +- api/managementpb/alerting/alerting.pb.go | 79 +- api/managementpb/alerting/alerting.pb.gw.go | 36 +- .../alerting/alerting.validator.pb.go | 28 +- api/managementpb/alerting/alerting_grpc.pb.go | 8 +- .../client/alerting/create_rule_parameters.go | 2 + .../client/alerting/create_rule_responses.go | 18 +- .../alerting/create_template_parameters.go | 2 + .../alerting/create_template_responses.go | 10 +- .../alerting/delete_template_parameters.go | 2 + .../alerting/delete_template_responses.go | 10 +- .../alerting/list_templates_parameters.go | 2 + .../alerting/list_templates_responses.go | 29 +- .../alerting/update_template_parameters.go | 2 + .../alerting/update_template_responses.go | 10 +- api/managementpb/alerting/params.pb.go | 18 +- .../alerting/params.validator.pb.go | 9 +- api/managementpb/annotation.pb.go | 18 +- api/managementpb/annotation.pb.gw.go | 28 +- api/managementpb/annotation.validator.pb.go | 12 +- api/managementpb/annotation_grpc.pb.go | 4 +- api/managementpb/azure/azure.pb.go | 30 +- api/managementpb/azure/azure.pb.gw.go | 24 +- api/managementpb/azure/azure.validator.pb.go | 15 +- api/managementpb/azure/azure_grpc.pb.go | 5 +- .../add_azure_database_parameters.go | 2 + .../add_azure_database_responses.go | 10 +- .../discover_azure_database_parameters.go | 2 + .../discover_azure_database_responses.go | 15 +- api/managementpb/backup/artifacts.pb.go | 34 +- api/managementpb/backup/artifacts.pb.gw.go | 24 +- .../backup/artifacts.validator.pb.go | 15 +- api/managementpb/backup/artifacts_grpc.pb.go | 5 +- api/managementpb/backup/backups.pb.go | 71 +- api/managementpb/backup/backups.pb.gw.go | 48 +- .../backup/backups.validator.pb.go | 33 +- api/managementpb/backup/backups_grpc.pb.go | 11 +- api/managementpb/backup/common.pb.go | 18 +- .../backup/common.validator.pb.go | 9 +- api/managementpb/backup/errors.pb.go | 20 +- .../backup/errors.validator.pb.go | 9 +- .../artifacts/delete_artifact_parameters.go | 2 + .../artifacts/delete_artifact_responses.go | 10 +- .../artifacts/list_artifacts_parameters.go | 2 + .../artifacts/list_artifacts_responses.go | 14 +- .../change_scheduled_backup_parameters.go | 2 + .../change_scheduled_backup_responses.go | 10 +- .../client/backups/get_logs_parameters.go | 2 + .../json/client/backups/get_logs_responses.go | 15 +- ...artifact_compatible_services_parameters.go | 2 + ..._artifact_compatible_services_responses.go | 19 +- .../list_scheduled_backups_parameters.go | 2 + .../list_scheduled_backups_responses.go | 14 +- .../remove_scheduled_backup_parameters.go | 2 + .../remove_scheduled_backup_responses.go | 10 +- .../backups/restore_backup_parameters.go | 2 + .../backups/restore_backup_responses.go | 11 +- .../backups/schedule_backup_parameters.go | 2 + .../backups/schedule_backup_responses.go | 11 +- .../client/backups/start_backup_parameters.go | 2 + .../client/backups/start_backup_responses.go | 11 +- .../locations/add_location_parameters.go | 2 + .../locations/add_location_responses.go | 17 +- .../locations/change_location_parameters.go | 2 + .../locations/change_location_responses.go | 16 +- .../locations/list_locations_parameters.go | 2 + .../locations/list_locations_responses.go | 20 +- .../locations/remove_location_parameters.go | 2 + .../locations/remove_location_responses.go | 10 +- .../test_location_config_parameters.go | 2 + .../test_location_config_responses.go | 16 +- .../list_restore_history_parameters.go | 2 + .../list_restore_history_responses.go | 14 +- api/managementpb/backup/locations.pb.go | 42 +- api/managementpb/backup/locations.pb.gw.go | 36 +- .../backup/locations.validator.pb.go | 24 +- api/managementpb/backup/locations_grpc.pb.go | 8 +- api/managementpb/backup/restores.pb.go | 28 +- api/managementpb/backup/restores.pb.gw.go | 28 +- .../backup/restores.validator.pb.go | 13 +- api/managementpb/backup/restores_grpc.pb.go | 4 +- api/managementpb/boolean_flag.pb.go | 16 +- api/managementpb/boolean_flag.validator.pb.go | 9 +- api/managementpb/checks.pb.go | 66 +- api/managementpb/checks.pb.gw.go | 44 +- api/managementpb/checks.validator.pb.go | 29 +- api/managementpb/checks_grpc.pb.go | 10 +- api/managementpb/dbaas/components.pb.go | 74 +- api/managementpb/dbaas/components.pb.gw.go | 40 +- .../dbaas/components.validator.pb.go | 29 +- api/managementpb/dbaas/components_grpc.pb.go | 9 +- api/managementpb/dbaas/db_clusters.pb.go | 42 +- api/managementpb/dbaas/db_clusters.pb.gw.go | 28 +- .../dbaas/db_clusters.validator.pb.go | 18 +- api/managementpb/dbaas/db_clusters_grpc.pb.go | 6 +- api/managementpb/dbaas/dbaas.pb.go | 26 +- api/managementpb/dbaas/dbaas.validator.pb.go | 11 +- .../change_psmdb_components_parameters.go | 2 + .../change_psmdb_components_responses.go | 16 +- .../change_pxc_components_parameters.go | 2 + .../change_pxc_components_responses.go | 28 +- .../check_for_operator_update_parameters.go | 2 + .../check_for_operator_update_responses.go | 18 +- .../get_psmdb_components_parameters.go | 2 + .../get_psmdb_components_responses.go | 49 +- .../get_pxc_components_parameters.go | 2 + .../get_pxc_components_responses.go | 49 +- .../components/install_operator_parameters.go | 2 + .../components/install_operator_responses.go | 11 +- .../delete_db_cluster_parameters.go | 2 + .../delete_db_cluster_responses.go | 10 +- .../list_db_clusters_parameters.go | 2 + .../db_clusters/list_db_clusters_responses.go | 43 +- .../restart_db_cluster_parameters.go | 2 + .../restart_db_cluster_responses.go | 10 +- .../get_kubernetes_cluster_parameters.go | 2 + .../get_kubernetes_cluster_responses.go | 13 +- .../kubernetes/get_resources_parameters.go | 2 + .../kubernetes/get_resources_responses.go | 15 +- .../list_kubernetes_clusters_parameters.go | 2 + .../list_kubernetes_clusters_responses.go | 20 +- .../register_kubernetes_cluster_parameters.go | 2 + .../register_kubernetes_cluster_responses.go | 12 +- ...nregister_kubernetes_cluster_parameters.go | 2 + ...unregister_kubernetes_cluster_responses.go | 10 +- .../client/logs_api/get_logs_parameters.go | 2 + .../client/logs_api/get_logs_responses.go | 15 +- .../create_psmdb_cluster_parameters.go | 2 + .../create_psmdb_cluster_responses.go | 16 +- ...et_psmdb_cluster_credentials_parameters.go | 2 + ...get_psmdb_cluster_credentials_responses.go | 13 +- .../get_psmdb_cluster_resources_parameters.go | 2 + .../get_psmdb_cluster_resources_responses.go | 19 +- .../update_psmdb_cluster_parameters.go | 2 + .../update_psmdb_cluster_responses.go | 16 +- .../create_pxc_cluster_parameters.go | 2 + .../create_pxc_cluster_responses.go | 24 +- .../get_pxc_cluster_credentials_parameters.go | 2 + .../get_pxc_cluster_credentials_responses.go | 13 +- .../get_pxc_cluster_resources_parameters.go | 2 + .../get_pxc_cluster_resources_responses.go | 27 +- .../update_pxc_cluster_parameters.go | 2 + .../update_pxc_cluster_responses.go | 24 +- api/managementpb/dbaas/kubernetes.pb.go | 50 +- api/managementpb/dbaas/kubernetes.pb.gw.go | 36 +- .../dbaas/kubernetes.validator.pb.go | 24 +- api/managementpb/dbaas/kubernetes_grpc.pb.go | 8 +- api/managementpb/dbaas/logs.pb.go | 20 +- api/managementpb/dbaas/logs.pb.gw.go | 28 +- api/managementpb/dbaas/logs.validator.pb.go | 13 +- api/managementpb/dbaas/logs_grpc.pb.go | 4 +- api/managementpb/dbaas/psmdb_clusters.pb.go | 44 +- .../dbaas/psmdb_clusters.pb.gw.go | 32 +- .../dbaas/psmdb_clusters.validator.pb.go | 23 +- .../dbaas/psmdb_clusters_grpc.pb.go | 7 +- api/managementpb/dbaas/pxc_clusters.pb.go | 56 +- api/managementpb/dbaas/pxc_clusters.pb.gw.go | 32 +- .../dbaas/pxc_clusters.validator.pb.go | 27 +- .../dbaas/pxc_clusters_grpc.pb.go | 7 +- api/managementpb/external.pb.go | 147 +-- api/managementpb/external.pb.gw.go | 28 +- api/managementpb/external.proto | 4 +- api/managementpb/external.validator.pb.go | 13 +- api/managementpb/external_grpc.pb.go | 4 +- api/managementpb/haproxy.pb.go | 139 +- api/managementpb/haproxy.pb.gw.go | 28 +- api/managementpb/haproxy.proto | 4 +- api/managementpb/haproxy.validator.pb.go | 13 +- api/managementpb/haproxy_grpc.pb.go | 4 +- api/managementpb/ia/alerts.pb.go | 43 +- api/managementpb/ia/alerts.pb.gw.go | 24 +- api/managementpb/ia/alerts.validator.pb.go | 16 +- api/managementpb/ia/alerts_grpc.pb.go | 5 +- api/managementpb/ia/channels.pb.go | 53 +- api/managementpb/ia/channels.pb.gw.go | 32 +- api/managementpb/ia/channels.validator.pb.go | 27 +- api/managementpb/ia/channels_grpc.pb.go | 7 +- .../client/alerts/list_alerts_parameters.go | 2 + .../client/alerts/list_alerts_responses.go | 57 +- .../client/alerts/toggle_alerts_parameters.go | 2 + .../client/alerts/toggle_alerts_responses.go | 10 +- .../client/channels/add_channel_parameters.go | 2 + .../client/channels/add_channel_responses.go | 25 +- .../channels/change_channel_parameters.go | 2 + .../channels/change_channel_responses.go | 24 +- .../channels/list_channels_parameters.go | 2 + .../channels/list_channels_responses.go | 33 +- .../channels/remove_channel_parameters.go | 2 + .../channels/remove_channel_responses.go | 10 +- .../rules/create_alert_rule_parameters.go | 2 + .../rules/create_alert_rule_responses.go | 19 +- .../rules/delete_alert_rule_parameters.go | 2 + .../rules/delete_alert_rule_responses.go | 10 +- .../rules/list_alert_rules_parameters.go | 2 + .../rules/list_alert_rules_responses.go | 55 +- .../rules/toggle_alert_rule_parameters.go | 2 + .../rules/toggle_alert_rule_responses.go | 10 +- .../rules/update_alert_rule_parameters.go | 2 + .../rules/update_alert_rule_responses.go | 18 +- api/managementpb/ia/rules.pb.go | 77 +- api/managementpb/ia/rules.pb.gw.go | 36 +- api/managementpb/ia/rules.validator.pb.go | 30 +- api/managementpb/ia/rules_grpc.pb.go | 8 +- api/managementpb/ia/status.pb.go | 16 +- api/managementpb/ia/status.validator.pb.go | 9 +- .../actions/cancel_action_parameters.go | 2 + .../client/actions/cancel_action_responses.go | 10 +- .../client/actions/get_action_parameters.go | 2 + .../client/actions/get_action_responses.go | 11 +- ...tart_mongo_db_explain_action_parameters.go | 2 + ...start_mongo_db_explain_action_responses.go | 11 +- .../start_my_sql_explain_action_parameters.go | 2 + .../start_my_sql_explain_action_responses.go | 11 +- ...t_my_sql_explain_json_action_parameters.go | 2 + ...rt_my_sql_explain_json_action_responses.go | 11 +- ...lain_traditional_json_action_parameters.go | 2 + ...plain_traditional_json_action_responses.go | 11 +- ...sql_show_create_table_action_parameters.go | 2 + ..._sql_show_create_table_action_responses.go | 11 +- ...art_my_sql_show_index_action_parameters.go | 2 + ...tart_my_sql_show_index_action_responses.go | 11 +- ...sql_show_table_status_action_parameters.go | 2 + ..._sql_show_table_status_action_responses.go | 11 +- ...sql_show_create_table_action_parameters.go | 2 + ..._sql_show_create_table_action_responses.go | 11 +- ...ostgre_sql_show_index_action_parameters.go | 2 + ...postgre_sql_show_index_action_responses.go | 11 +- ...t_pt_mongo_db_summary_action_parameters.go | 2 + ...rt_pt_mongo_db_summary_action_responses.go | 11 +- ...art_pt_my_sql_summary_action_parameters.go | 2 + ...tart_pt_my_sql_summary_action_responses.go | 11 +- .../start_pt_pg_summary_action_parameters.go | 2 + .../start_pt_pg_summary_action_responses.go | 11 +- .../start_pt_summary_action_parameters.go | 2 + .../start_pt_summary_action_responses.go | 11 +- .../annotation/add_annotation_parameters.go | 2 + .../annotation/add_annotation_responses.go | 10 +- .../external/add_external_parameters.go | 2 + .../client/external/add_external_responses.go | 21 +- .../ha_proxy/add_ha_proxy_parameters.go | 2 + .../client/ha_proxy/add_ha_proxy_responses.go | 21 +- .../mongo_db/add_mongo_db_parameters.go | 2 + .../client/mongo_db/add_mongo_db_responses.go | 23 +- .../client/my_sql/add_my_sql_parameters.go | 2 + .../client/my_sql/add_my_sql_responses.go | 25 +- .../client/node/register_node_parameters.go | 2 + .../client/node/register_node_responses.go | 17 +- .../postgre_sql/add_postgre_sql_parameters.go | 2 + .../postgre_sql/add_postgre_sql_responses.go | 25 +- .../proxy_sql/add_proxy_sql_parameters.go | 2 + .../proxy_sql/add_proxy_sql_responses.go | 21 +- .../json/client/rds/add_rds_parameters.go | 2 + .../json/client/rds/add_rds_responses.go | 27 +- .../client/rds/discover_rds_parameters.go | 2 + .../json/client/rds/discover_rds_responses.go | 15 +- .../change_security_checks_parameters.go | 2 + .../change_security_checks_responses.go | 14 +- .../get_failed_checks_parameters.go | 2 + .../get_failed_checks_responses.go | 19 +- .../get_security_check_results_parameters.go | 2 + .../get_security_check_results_responses.go | 14 +- .../list_failed_services_parameters.go | 2 + .../list_failed_services_responses.go | 14 +- .../list_security_checks_parameters.go | 2 + .../list_security_checks_responses.go | 14 +- .../start_security_checks_parameters.go | 2 + .../start_security_checks_responses.go | 10 +- .../toggle_check_alert_parameters.go | 2 + .../toggle_check_alert_responses.go | 10 +- .../service/remove_service_parameters.go | 2 + .../service/remove_service_responses.go | 10 +- api/managementpb/json/managementpb.json | 60 +- api/managementpb/metrics.pb.go | 16 +- api/managementpb/metrics.validator.pb.go | 9 +- api/managementpb/mongodb.pb.go | 159 ++- api/managementpb/mongodb.pb.gw.go | 28 +- api/managementpb/mongodb.proto | 4 +- api/managementpb/mongodb.validator.pb.go | 13 +- api/managementpb/mongodb_grpc.pb.go | 4 +- api/managementpb/mysql.pb.go | 173 ++- api/managementpb/mysql.pb.gw.go | 28 +- api/managementpb/mysql.proto | 4 +- api/managementpb/mysql.validator.pb.go | 15 +- api/managementpb/mysql_grpc.pb.go | 4 +- api/managementpb/node.pb.go | 33 +- api/managementpb/node.pb.gw.go | 28 +- api/managementpb/node.validator.pb.go | 13 +- api/managementpb/node_grpc.pb.go | 4 +- api/managementpb/pagination.pb.go | 18 +- api/managementpb/pagination.validator.pb.go | 10 +- api/managementpb/postgresql.pb.go | 180 ++- api/managementpb/postgresql.pb.gw.go | 28 +- api/managementpb/postgresql.proto | 4 +- api/managementpb/postgresql.validator.pb.go | 15 +- api/managementpb/postgresql_grpc.pb.go | 4 +- api/managementpb/proxysql.pb.go | 145 +- api/managementpb/proxysql.pb.gw.go | 28 +- api/managementpb/proxysql.proto | 4 +- api/managementpb/proxysql.validator.pb.go | 15 +- api/managementpb/proxysql_grpc.pb.go | 4 +- api/managementpb/rds.pb.go | 51 +- api/managementpb/rds.pb.gw.go | 24 +- api/managementpb/rds.validator.pb.go | 16 +- api/managementpb/rds_grpc.pb.go | 5 +- api/managementpb/service.pb.go | 29 +- api/managementpb/service.pb.gw.go | 28 +- api/managementpb/service.validator.pb.go | 14 +- api/managementpb/service_grpc.pb.go | 4 +- api/managementpb/severity.pb.go | 16 +- api/managementpb/severity.validator.pb.go | 9 +- .../client/platform/connect_parameters.go | 2 + .../json/client/platform/connect_responses.go | 10 +- .../client/platform/disconnect_parameters.go | 2 + .../client/platform/disconnect_responses.go | 10 +- .../get_contact_information_parameters.go | 2 + .../get_contact_information_responses.go | 12 +- ...ch_organization_entitlements_parameters.go | 2 + ...rch_organization_entitlements_responses.go | 16 +- .../search_organization_tickets_parameters.go | 2 + .../search_organization_tickets_responses.go | 14 +- .../client/platform/server_info_parameters.go | 2 + .../client/platform/server_info_responses.go | 10 +- .../client/platform/user_status_parameters.go | 2 + .../client/platform/user_status_responses.go | 10 +- api/platformpb/platform.pb.go | 56 +- api/platformpb/platform.pb.gw.go | 44 +- api/platformpb/platform.validator.pb.go | 32 +- api/platformpb/platform_grpc.pb.go | 10 +- api/qanpb/collector.pb.go | 35 +- api/qanpb/collector.validator.pb.go | 14 +- api/qanpb/collector_grpc.pb.go | 4 +- api/qanpb/filters.pb.go | 28 +- api/qanpb/filters.pb.gw.go | 28 +- api/qanpb/filters.validator.pb.go | 14 +- api/qanpb/filters_grpc.pb.go | 4 +- .../json/client/filters/get_parameters.go | 2 + .../json/client/filters/get_responses.go | 23 +- .../get_metrics_names_parameters.go | 2 + .../get_metrics_names_responses.go | 10 +- .../get_histogram_parameters.go | 2 + .../object_details/get_histogram_responses.go | 19 +- .../object_details/get_labels_parameters.go | 2 + .../object_details/get_labels_responses.go | 15 +- .../object_details/get_metrics_parameters.go | 2 + .../object_details/get_metrics_responses.go | 27 +- .../get_query_example_parameters.go | 2 + .../get_query_example_responses.go | 19 +- .../get_query_plan_parameters.go | 2 + .../get_query_plan_responses.go | 11 +- .../object_details/query_exists_parameters.go | 2 + .../object_details/query_exists_responses.go | 10 +- .../client/profile/get_report_parameters.go | 2 + .../client/profile/get_report_responses.go | 29 +- api/qanpb/metrics_names.pb.go | 20 +- api/qanpb/metrics_names.pb.gw.go | 28 +- api/qanpb/metrics_names.validator.pb.go | 10 +- api/qanpb/metrics_names_grpc.pb.go | 4 +- api/qanpb/object_details.pb.go | 66 +- api/qanpb/object_details.pb.gw.go | 40 +- api/qanpb/object_details.validator.pb.go | 26 +- api/qanpb/object_details_grpc.pb.go | 9 +- api/qanpb/profile.pb.go | 32 +- api/qanpb/profile.pb.gw.go | 28 +- api/qanpb/profile.validator.pb.go | 16 +- api/qanpb/profile_grpc.pb.go | 4 +- api/qanpb/qan.pb.go | 24 +- api/qanpb/qan.validator.pb.go | 10 +- api/serverpb/httperror.pb.go | 18 +- api/serverpb/httperror.validator.pb.go | 11 +- .../server/aws_instance_check_parameters.go | 2 + .../server/aws_instance_check_responses.go | 10 +- .../server/change_settings_parameters.go | 2 + .../server/change_settings_responses.go | 29 +- .../client/server/check_updates_parameters.go | 2 + .../client/server/check_updates_responses.go | 15 +- .../client/server/get_settings_parameters.go | 2 + .../client/server/get_settings_responses.go | 20 +- .../json/client/server/logs_parameters.go | 3 + .../json/client/server/logs_responses.go | 6 +- .../client/server/readiness_parameters.go | 1 + .../json/client/server/readiness_responses.go | 9 +- .../client/server/start_update_parameters.go | 2 + .../client/server/start_update_responses.go | 10 +- ...test_email_alerting_settings_parameters.go | 2 + .../test_email_alerting_settings_responses.go | 12 +- .../client/server/update_status_parameters.go | 2 + .../client/server/update_status_responses.go | 11 +- .../json/client/server/version_parameters.go | 3 + .../json/client/server/version_responses.go | 14 +- api/serverpb/server.pb.go | 70 +- api/serverpb/server.pb.gw.go | 54 +- api/serverpb/server.validator.pb.go | 36 +- api/serverpb/server_grpc.pb.go | 12 +- api/swagger/swagger-dev.json | 24 +- api/swagger/swagger.json | 24 +- .../json/client/user/get_user_parameters.go | 1 + .../json/client/user/get_user_responses.go | 10 +- .../client/user/update_user_parameters.go | 2 + .../json/client/user/update_user_responses.go | 11 +- api/userpb/user.pb.go | 20 +- api/userpb/user.pb.gw.go | 24 +- api/userpb/user.validator.pb.go | 11 +- api/userpb/user_grpc.pb.go | 5 +- descriptor.bin | Bin 656129 -> 656169 bytes 543 files changed, 6292 insertions(+), 4194 deletions(-) diff --git a/admin/commands/management/add_external.go b/admin/commands/management/add_external.go index eae52629d0..c1119bc7bc 100644 --- a/admin/commands/management/add_external.go +++ b/admin/commands/management/add_external.go @@ -57,7 +57,7 @@ type AddExternalCommand struct { RunsOnNodeID string `name:"agent-node-id" help:"Node ID where agent runs (default is autodetected)"` Username string `help:"External username"` Password string `help:"External password"` - CredentialsSource string `help:"Credentials provider"` + ServiceParamsSource string `help:"Path to file with service parameters"` Scheme string `placeholder:"http or https" help:"Scheme to generate URI to exporter metrics endpoints"` MetricsPath string `placeholder:"/metrics" help:"Path under which metrics are exposed, used to generate URI"` ListenPort uint16 `placeholder:"port" required:"" help:"Listen port of external exporter for scraping metrics. (Required)"` @@ -115,7 +115,7 @@ func (cmd *AddExternalCommand) RunCmd() (commands.Result, error) { MetricsMode: pointer.ToString(strings.ToUpper(cmd.MetricsMode)), Group: cmd.Group, SkipConnectionCheck: cmd.SkipConnectionCheck, - CredentialsSource: cmd.CredentialsSource, + ServiceParamsSource: cmd.ServiceParamsSource, }, Context: commands.Ctx, } diff --git a/admin/commands/management/add_external_serverless.go b/admin/commands/management/add_external_serverless.go index ba4157915c..80eb988d38 100644 --- a/admin/commands/management/add_external_serverless.go +++ b/admin/commands/management/add_external_serverless.go @@ -53,7 +53,7 @@ type AddExternalServerlessCommand struct { Scheme string `placeholder:"https" help:"Scheme to generate URI to exporter metrics endpoints"` Username string `help:"External username"` Password string `help:"External password"` - CredentialsSource string `help:"Credentials provider"` + ServiceParamsSource string `help:"Path to file with service parameters"` Address string `placeholder:"1.2.3.4:9000" help:"External exporter address and port"` Host string `placeholder:"1.2.3.4" help:"External exporters hostname or IP address"` ListenPort uint16 `placeholder:"9999" help:"Listen port of external exporter for scraping metrics"` @@ -133,7 +133,7 @@ func (cmd *AddExternalServerlessCommand) RunCmd() (commands.Result, error) { MetricsMode: pointer.ToString(external.AddExternalBodyMetricsModePULL), Group: cmd.Group, SkipConnectionCheck: cmd.SkipConnectionCheck, - CredentialsSource: cmd.CredentialsSource, + ServiceParamsSource: cmd.ServiceParamsSource, }, Context: commands.Ctx, } diff --git a/admin/commands/management/add_haproxy.go b/admin/commands/management/add_haproxy.go index 1be81c59d7..bcad6ededb 100644 --- a/admin/commands/management/add_haproxy.go +++ b/admin/commands/management/add_haproxy.go @@ -48,7 +48,7 @@ type AddHAProxyCommand struct { ServiceName string `name:"name" arg:"" default:"${hostname}-haproxy" help:"Service name (autodetected default: ${hostname}-haproxy)"` Username string `help:"HAProxy username"` Password string `help:"HAProxy password"` - CredentialsSource string `help:"Credentials provider"` + ServiceParamsSource string `help:"Path to file with service parameters"` Scheme string `placeholder:"http or https" help:"Scheme to generate URI to exporter metrics endpoints"` MetricsPath string `placeholder:"/metrics" help:"Path under which metrics are exposed, used to generate URI"` ListenPort uint16 `placeholder:"port" required:"" help:"Listen port of haproxy exposing the metrics for scraping metrics (Required)"` @@ -98,7 +98,7 @@ func (cmd *AddHAProxyCommand) RunCmd() (commands.Result, error) { CustomLabels: customLabels, MetricsMode: pointer.ToString(strings.ToUpper(cmd.MetricsMode)), SkipConnectionCheck: cmd.SkipConnectionCheck, - CredentialsSource: cmd.CredentialsSource, + ServiceParamsSource: cmd.ServiceParamsSource, }, Context: commands.Ctx, } diff --git a/admin/commands/management/add_mongodb.go b/admin/commands/management/add_mongodb.go index 82af7013e0..e6afb3f301 100644 --- a/admin/commands/management/add_mongodb.go +++ b/admin/commands/management/add_mongodb.go @@ -50,15 +50,15 @@ func (res *addMongoDBResult) String() string { // AddMongoDBCommand is used by Kong for CLI flags and commands. type AddMongoDBCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-mongodb" help:"Service name (autodetected default: ${hostname}-mongodb)"` - Address string `arg:"" optional:"" help:"MongoDB address and port (default: 127.0.0.1:27017)"` - Socket string `help:"Path to socket"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` - Username string `help:"MongoDB username"` - Password string `help:"MongoDB password"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - CredentialsSource string `help:"Credentials provider"` + ServiceName string `name:"name" arg:"" default:"${hostname}-mongodb" help:"Service name (autodetected default: ${hostname}-mongodb)"` + Address string `arg:"" optional:"" help:"MongoDB address and port (default: 127.0.0.1:27017)"` + Socket string `help:"Path to socket"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + Username string `help:"MongoDB username"` + Password string `help:"MongoDB password"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` // TODO add "auto" QuerySource string `default:"${mongoDbQuerySourceDefault}" enum:"${mongoDbQuerySourcesEnum}" help:"Source of queries, one of: ${mongoDbQuerySourcesEnum} (default: ${mongoDbQuerySourceDefault})"` Environment string `help:"Environment name"` @@ -131,19 +131,19 @@ func (cmd *AddMongoDBCommand) RunCmd() (commands.Result, error) { params := &mongodb.AddMongoDBParams{ Body: mongodb.AddMongoDBBody{ - NodeID: cmd.NodeID, - ServiceName: serviceName, - Address: host, - Port: int64(port), - Socket: socket, - PMMAgentID: cmd.PMMAgentID, - Environment: cmd.Environment, - Cluster: cmd.Cluster, - ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CredentialsSource: cmd.CredentialsSource, + NodeID: cmd.NodeID, + ServiceName: serviceName, + Address: host, + Port: int64(port), + Socket: socket, + PMMAgentID: cmd.PMMAgentID, + Environment: cmd.Environment, + Cluster: cmd.Cluster, + ReplicationSet: cmd.ReplicationSet, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + ServiceParamsSource: cmd.ServiceParamsSource, QANMongodbProfiler: cmd.QuerySource == MongodbQuerySourceProfiler, diff --git a/admin/commands/management/add_mysql.go b/admin/commands/management/add_mysql.go index e569e4a1c0..12221179aa 100644 --- a/admin/commands/management/add_mysql.go +++ b/admin/commands/management/add_mysql.go @@ -89,15 +89,15 @@ func (res *addMySQLResult) TablestatStatus() string { // AddMySQLCommand is used by Kong for CLI flags and commands. type AddMySQLCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-mysql" help:"Service name (autodetected default: ${hostname}-mysql)"` - Address string `arg:"" optional:"" help:"MySQL address and port (default: 127.0.0.1:3306)"` - Socket string `help:"Path to MySQL socket"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` - Username string `help:"MySQL username"` - Password string `help:"MySQL password"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - CredentialsSource string `help:"Credentials provider"` + ServiceName string `name:"name" arg:"" default:"${hostname}-mysql" help:"Service name (autodetected default: ${hostname}-mysql)"` + Address string `arg:"" optional:"" help:"MySQL address and port (default: 127.0.0.1:3306)"` + Socket string `help:"Path to MySQL socket"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + Username string `help:"MySQL username"` + Password string `help:"MySQL password"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` // TODO add "auto", make it default QuerySource string `default:"${mysqlQuerySourceDefault}" enum:"${mysqlQuerySourcesEnum}" help:"Source of SQL queries, one of: ${mysqlQuerySourcesEnum} (default: ${mysqlQuerySourceDefault})"` MaxQueryLength int32 `placeholder:"NUMBER" help:"Limit query length in QAN (default: server-defined; -1: no limit)"` @@ -127,6 +127,7 @@ func (cmd *AddMySQLCommand) GetServiceName() string { return cmd.ServiceName } +// GetDefaultUsername Default username for mysql connections. func (cmd *AddMySQLCommand) GetDefaultUsername() string { return "root" } @@ -185,7 +186,7 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.CredentialsSource == "" && cmd.Username == "" { + if cmd.ServiceParamsSource == "" && cmd.Username == "" { cmd.Username = cmd.GetDefaultUsername() } @@ -205,20 +206,20 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) { params := &mysql.AddMySQLParams{ Body: mysql.AddMySQLBody{ - NodeID: cmd.NodeID, - ServiceName: serviceName, - Address: host, - Socket: socket, - Port: int64(port), - PMMAgentID: cmd.PMMAgentID, - Environment: cmd.Environment, - Cluster: cmd.Cluster, - ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CustomLabels: customLabels, - CredentialsSource: cmd.CredentialsSource, + NodeID: cmd.NodeID, + ServiceName: serviceName, + Address: host, + Socket: socket, + Port: int64(port), + PMMAgentID: cmd.PMMAgentID, + Environment: cmd.Environment, + Cluster: cmd.Cluster, + ReplicationSet: cmd.ReplicationSet, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + CustomLabels: customLabels, + ServiceParamsSource: cmd.ServiceParamsSource, QANMysqlSlowlog: cmd.QuerySource == MysqlQuerySourceSlowLog, QANMysqlPerfschema: cmd.QuerySource == MysqlQuerySourcePerfSchema, diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index b0defb6882..c2a9e6a039 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -43,16 +43,16 @@ func (res *addPostgreSQLResult) String() string { // AddPostgreSQLCommand is used by Kong for CLI flags and commands. type AddPostgreSQLCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-postgresql" help:"Service name (autodetected default: ${hostname}-postgresql)"` - Address string `arg:"" optional:"" help:"PostgreSQL address and port (default: 127.0.0.1:5432)"` - Socket string `help:"Path to socket"` - Username string `help:"PostgreSQL username"` - Password string `help:"PostgreSQL password"` - Database string `help:"PostgreSQL database"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - CredentialsSource string `help:"Credentials provider"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + ServiceName string `name:"name" arg:"" default:"${hostname}-postgresql" help:"Service name (autodetected default: ${hostname}-postgresql)"` + Address string `arg:"" optional:"" help:"PostgreSQL address and port (default: 127.0.0.1:5432)"` + Socket string `help:"Path to socket"` + Username string `help:"PostgreSQL username"` + Password string `help:"PostgreSQL password"` + Database string `help:"PostgreSQL database"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` // TODO add "auto" QuerySource string `default:"pgstatements" help:"Source of SQL queries, one of: pgstatements, pgstatmonitor, none (default: pgstatements)"` Environment string `help:"Environment name"` @@ -86,10 +86,12 @@ func (cmd *AddPostgreSQLCommand) GetDefaultAddress() string { return "127.0.0.1:5432" } +// GetDefaultUsername Default username for postgres connections. func (cmd *AddPostgreSQLCommand) GetDefaultUsername() string { return "postgres" } +// GetSocket Default socket value for postgres connections. func (cmd *AddPostgreSQLCommand) GetSocket() string { return cmd.Socket } @@ -110,7 +112,7 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.CredentialsSource == "" && cmd.Username == "" { + if cmd.ServiceParamsSource == "" && cmd.Username == "" { cmd.Username = cmd.GetDefaultUsername() } @@ -162,7 +164,7 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) { AgentPassword: cmd.AgentPassword, Socket: socket, SkipConnectionCheck: cmd.SkipConnectionCheck, - CredentialsSource: cmd.CredentialsSource, + ServiceParamsSource: cmd.ServiceParamsSource, PMMAgentID: cmd.PMMAgentID, Environment: cmd.Environment, diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index d747c4437c..21854d6c40 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -51,7 +51,7 @@ type AddProxySQLCommand struct { Username string `help:"ProxySQL username"` Password string `help:"ProxySQL password"` AgentPassword string `help:"Custom password for /metrics endpoint"` - CredentialsSource string `type:"existingfile" help:"Credentials provider"` + ServiceParamsSource string `help:"Path to file with service parameters"` Environment string `help:"Environment name"` Cluster string `help:"Cluster name"` ReplicationSet string `help:"Replication set name"` @@ -82,10 +82,12 @@ func (cmd *AddProxySQLCommand) GetSocket() string { return cmd.Socket } +// GetDefaultUsername Default username for proxy connections. func (cmd *AddProxySQLCommand) GetDefaultUsername() string { return "admin" } +// GetDefaultPassword Default password for proxy connections. func (cmd *AddProxySQLCommand) GetDefaultPassword() string { return "admin" } @@ -106,7 +108,7 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.CredentialsSource == "" { + if cmd.ServiceParamsSource == "" { if cmd.Username == "" { cmd.Username = cmd.GetDefaultUsername() } @@ -123,19 +125,19 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { params := &proxysql.AddProxySQLParams{ Body: proxysql.AddProxySQLBody{ - NodeID: cmd.NodeID, - ServiceName: serviceName, - Address: host, - Port: int64(port), - Socket: socket, - PMMAgentID: cmd.PMMAgentID, - Environment: cmd.Environment, - Cluster: cmd.Cluster, - ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, - AgentPassword: cmd.AgentPassword, - CredentialsSource: cmd.CredentialsSource, + NodeID: cmd.NodeID, + ServiceName: serviceName, + Address: host, + Port: int64(port), + Socket: socket, + PMMAgentID: cmd.PMMAgentID, + Environment: cmd.Environment, + Cluster: cmd.Cluster, + ReplicationSet: cmd.ReplicationSet, + Username: cmd.Username, + Password: cmd.Password, + AgentPassword: cmd.AgentPassword, + ServiceParamsSource: cmd.ServiceParamsSource, CustomLabels: customLabels, SkipConnectionCheck: cmd.SkipConnectionCheck, diff --git a/api/agentlocalpb/agentlocal.pb.go b/api/agentlocalpb/agentlocal.pb.go index 8c34013984..0cc08ffbb2 100644 --- a/api/agentlocalpb/agentlocal.pb.go +++ b/api/agentlocalpb/agentlocal.pb.go @@ -7,15 +7,13 @@ package agentlocalpb import ( - reflect "reflect" - sync "sync" - + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -539,21 +537,18 @@ func file_agentlocalpb_agentlocal_proto_rawDescGZIP() []byte { return file_agentlocalpb_agentlocal_proto_rawDescData } -var ( - file_agentlocalpb_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_agentlocalpb_agentlocal_proto_goTypes = []interface{}{ - (*ServerInfo)(nil), // 0: agentlocal.ServerInfo - (*AgentInfo)(nil), // 1: agentlocal.AgentInfo - (*StatusRequest)(nil), // 2: agentlocal.StatusRequest - (*StatusResponse)(nil), // 3: agentlocal.StatusResponse - (*ReloadRequest)(nil), // 4: agentlocal.ReloadRequest - (*ReloadResponse)(nil), // 5: agentlocal.ReloadResponse - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration - (inventorypb.AgentType)(0), // 7: inventory.AgentType - (inventorypb.AgentStatus)(0), // 8: inventory.AgentStatus - } -) - +var file_agentlocalpb_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_agentlocalpb_agentlocal_proto_goTypes = []interface{}{ + (*ServerInfo)(nil), // 0: agentlocal.ServerInfo + (*AgentInfo)(nil), // 1: agentlocal.AgentInfo + (*StatusRequest)(nil), // 2: agentlocal.StatusRequest + (*StatusResponse)(nil), // 3: agentlocal.StatusResponse + (*ReloadRequest)(nil), // 4: agentlocal.ReloadRequest + (*ReloadResponse)(nil), // 5: agentlocal.ReloadResponse + (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (inventorypb.AgentType)(0), // 7: inventory.AgentType + (inventorypb.AgentStatus)(0), // 8: inventory.AgentStatus +} var file_agentlocalpb_agentlocal_proto_depIdxs = []int32{ 6, // 0: agentlocal.ServerInfo.latency:type_name -> google.protobuf.Duration 6, // 1: agentlocal.ServerInfo.clock_drift:type_name -> google.protobuf.Duration diff --git a/api/agentlocalpb/agentlocal.pb.gw.go b/api/agentlocalpb/agentlocal.pb.gw.go index 9056dcea80..d594a5b768 100644 --- a/api/agentlocalpb/agentlocal.pb.gw.go +++ b/api/agentlocalpb/agentlocal.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Marshaler, client AgentLocalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StatusRequest @@ -47,6 +45,7 @@ func request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.Status(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Marshaler, server AgentLocalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,9 +62,12 @@ func local_request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Ma msg, err := server.Status(ctx, &protoReq) return msg, metadata, err + } -var filter_AgentLocal_Status_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +var ( + filter_AgentLocal_Status_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) func request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Marshaler, client AgentLocalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StatusRequest @@ -80,6 +82,7 @@ func request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Marshale msg, err := client.Status(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Marshaler, server AgentLocalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +98,7 @@ func local_request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Ma msg, err := server.Status(ctx, &protoReq) return msg, metadata, err + } func request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Marshaler, client AgentLocalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +115,7 @@ func request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.Reload(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Marshaler, server AgentLocalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +132,7 @@ func local_request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Ma msg, err := server.Reload(ctx, &protoReq) return msg, metadata, err + } // RegisterAgentLocalHandlerServer registers the http handlers for service AgentLocal to "mux". @@ -134,6 +140,7 @@ func local_request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentLocalHandlerFromEndpoint instead. func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AgentLocalServer) error { + mux.Handle("POST", pattern_AgentLocal_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,6 +163,7 @@ func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_AgentLocal_Status_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -180,6 +188,7 @@ func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_AgentLocal_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -204,6 +213,7 @@ func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Reload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -246,6 +256,7 @@ func RegisterAgentLocalHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AgentLocalClient" to call the correct interceptors. func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentLocalClient) error { + mux.Handle("POST", pattern_AgentLocal_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -265,6 +276,7 @@ func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_AgentLocal_Status_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -286,6 +298,7 @@ func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_AgentLocal_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -307,6 +320,7 @@ func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Reload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/agentlocalpb/agentlocal.validator.pb.go b/api/agentlocalpb/agentlocal.validator.pb.go index c7d1f87664..88e57f9d09 100644 --- a/api/agentlocalpb/agentlocal.validator.pb.go +++ b/api/agentlocalpb/agentlocal.validator.pb.go @@ -6,21 +6,17 @@ package agentlocalpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *ServerInfo) Validate() error { if this.Latency != nil { @@ -35,15 +31,12 @@ func (this *ServerInfo) Validate() error { } return nil } - func (this *AgentInfo) Validate() error { return nil } - func (this *StatusRequest) Validate() error { return nil } - func (this *StatusResponse) Validate() error { if this.ServerInfo != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ServerInfo); err != nil { @@ -59,11 +52,9 @@ func (this *StatusResponse) Validate() error { } return nil } - func (this *ReloadRequest) Validate() error { return nil } - func (this *ReloadResponse) Validate() error { return nil } diff --git a/api/agentlocalpb/agentlocal_grpc.pb.go b/api/agentlocalpb/agentlocal_grpc.pb.go index 902916946b..1d795375c8 100644 --- a/api/agentlocalpb/agentlocal_grpc.pb.go +++ b/api/agentlocalpb/agentlocal_grpc.pb.go @@ -8,7 +8,6 @@ package agentlocalpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -67,12 +66,12 @@ type AgentLocalServer interface { } // UnimplementedAgentLocalServer must be embedded to have forward compatible implementations. -type UnimplementedAgentLocalServer struct{} +type UnimplementedAgentLocalServer struct { +} func (UnimplementedAgentLocalServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") } - func (UnimplementedAgentLocalServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Reload not implemented") } diff --git a/api/agentlocalpb/json/client/agent_local/reload_parameters.go b/api/agentlocalpb/json/client/agent_local/reload_parameters.go index 99cb61bfaf..2b88f1c563 100644 --- a/api/agentlocalpb/json/client/agent_local/reload_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/reload_parameters.go @@ -60,6 +60,7 @@ ReloadParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ReloadParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ReloadParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ReloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/agentlocalpb/json/client/agent_local/reload_responses.go b/api/agentlocalpb/json/client/agent_local/reload_responses.go index ce4fcb8c03..7913d61dd4 100644 --- a/api/agentlocalpb/json/client/agent_local/reload_responses.go +++ b/api/agentlocalpb/json/client/agent_local/reload_responses.go @@ -60,12 +60,12 @@ type ReloadOK struct { func (o *ReloadOK) Error() string { return fmt.Sprintf("[POST /local/Reload][%d] reloadOk %+v", 200, o.Payload) } - func (o *ReloadOK) GetPayload() interface{} { return o.Payload } func (o *ReloadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ReloadDefault) Code() int { func (o *ReloadDefault) Error() string { return fmt.Sprintf("[POST /local/Reload][%d] Reload default %+v", o._statusCode, o.Payload) } - func (o *ReloadDefault) GetPayload() *ReloadDefaultBody { return o.Payload } func (o *ReloadDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ReloadDefaultBody) // response payload @@ -121,6 +121,7 @@ ReloadDefaultBody reload default body swagger:model ReloadDefaultBody */ type ReloadDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -186,7 +187,9 @@ func (o *ReloadDefaultBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ReloadDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -197,6 +200,7 @@ func (o *ReloadDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -225,6 +229,7 @@ ReloadDefaultBodyDetailsItems0 reload default body details items0 swagger:model ReloadDefaultBodyDetailsItems0 */ type ReloadDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/agentlocalpb/json/client/agent_local/status2_parameters.go b/api/agentlocalpb/json/client/agent_local/status2_parameters.go index 75d8c38d16..c60f9ca220 100644 --- a/api/agentlocalpb/json/client/agent_local/status2_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/status2_parameters.go @@ -61,6 +61,7 @@ Status2Params contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type Status2Params struct { + /* GetNetworkInfo. Returns network info (latency and clock_drift) if true. @@ -133,6 +134,7 @@ func (o *Status2Params) SetGetNetworkInfo(getNetworkInfo *bool) { // WriteToRequest writes these params to a swagger request func (o *Status2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -148,6 +150,7 @@ func (o *Status2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qGetNetworkInfo := swag.FormatBool(qrGetNetworkInfo) if qGetNetworkInfo != "" { + if err := r.SetQueryParam("get_network_info", qGetNetworkInfo); err != nil { return err } diff --git a/api/agentlocalpb/json/client/agent_local/status2_responses.go b/api/agentlocalpb/json/client/agent_local/status2_responses.go index e4b3cec66a..0b3dd3f133 100644 --- a/api/agentlocalpb/json/client/agent_local/status2_responses.go +++ b/api/agentlocalpb/json/client/agent_local/status2_responses.go @@ -62,12 +62,12 @@ type Status2OK struct { func (o *Status2OK) Error() string { return fmt.Sprintf("[GET /local/Status][%d] status2Ok %+v", 200, o.Payload) } - func (o *Status2OK) GetPayload() *Status2OKBody { return o.Payload } func (o *Status2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(Status2OKBody) // response payload @@ -104,12 +104,12 @@ func (o *Status2Default) Code() int { func (o *Status2Default) Error() string { return fmt.Sprintf("[GET /local/Status][%d] Status2 default %+v", o._statusCode, o.Payload) } - func (o *Status2Default) GetPayload() *Status2DefaultBody { return o.Payload } func (o *Status2Default) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(Status2DefaultBody) // response payload @@ -125,6 +125,7 @@ Status2DefaultBody status2 default body swagger:model Status2DefaultBody */ type Status2DefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *Status2DefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *Status2DefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *Status2DefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -229,6 +233,7 @@ Status2DefaultBodyDetailsItems0 status2 default body details items0 swagger:model Status2DefaultBodyDetailsItems0 */ type Status2DefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ Status2OKBody status2 OK body swagger:model Status2OKBody */ type Status2OKBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -373,7 +379,9 @@ func (o *Status2OKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *Status2OKBody) contextValidateAgentsInfo(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.AgentsInfo); i++ { + if o.AgentsInfo[i] != nil { if err := o.AgentsInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -384,12 +392,14 @@ func (o *Status2OKBody) contextValidateAgentsInfo(ctx context.Context, formats s return err } } + } return nil } func (o *Status2OKBody) contextValidateServerInfo(ctx context.Context, formats strfmt.Registry) error { + if o.ServerInfo != nil { if err := o.ServerInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -427,6 +437,7 @@ Status2OKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model Status2OKBodyAgentsInfoItems0 */ type Status2OKBodyAgentsInfoItems0 struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -640,6 +651,7 @@ Status2OKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model Status2OKBodyServerInfo */ type Status2OKBodyServerInfo struct { + // PMM Server URL in a form https://HOST:PORT/. URL string `json:"url,omitempty"` diff --git a/api/agentlocalpb/json/client/agent_local/status_parameters.go b/api/agentlocalpb/json/client/agent_local/status_parameters.go index bcd6f41c92..df5607cccf 100644 --- a/api/agentlocalpb/json/client/agent_local/status_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/status_parameters.go @@ -60,6 +60,7 @@ StatusParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StatusParams struct { + // Body. Body StatusBody @@ -129,6 +130,7 @@ func (o *StatusParams) SetBody(body StatusBody) { // WriteToRequest writes these params to a swagger request func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/agentlocalpb/json/client/agent_local/status_responses.go b/api/agentlocalpb/json/client/agent_local/status_responses.go index fa69048f34..e9bf238296 100644 --- a/api/agentlocalpb/json/client/agent_local/status_responses.go +++ b/api/agentlocalpb/json/client/agent_local/status_responses.go @@ -62,12 +62,12 @@ type StatusOK struct { func (o *StatusOK) Error() string { return fmt.Sprintf("[POST /local/Status][%d] statusOk %+v", 200, o.Payload) } - func (o *StatusOK) GetPayload() *StatusOKBody { return o.Payload } func (o *StatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StatusOKBody) // response payload @@ -104,12 +104,12 @@ func (o *StatusDefault) Code() int { func (o *StatusDefault) Error() string { return fmt.Sprintf("[POST /local/Status][%d] Status default %+v", o._statusCode, o.Payload) } - func (o *StatusDefault) GetPayload() *StatusDefaultBody { return o.Payload } func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StatusDefaultBody) // response payload @@ -125,6 +125,7 @@ StatusBody status body swagger:model StatusBody */ type StatusBody struct { + // Returns network info (latency and clock_drift) if true. GetNetworkInfo bool `json:"get_network_info,omitempty"` } @@ -162,6 +163,7 @@ StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -227,7 +229,9 @@ func (o *StatusDefaultBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,6 +242,7 @@ func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -266,6 +271,7 @@ StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -303,6 +309,7 @@ StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -410,7 +417,9 @@ func (o *StatusOKBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *StatusOKBody) contextValidateAgentsInfo(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.AgentsInfo); i++ { + if o.AgentsInfo[i] != nil { if err := o.AgentsInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -421,12 +430,14 @@ func (o *StatusOKBody) contextValidateAgentsInfo(ctx context.Context, formats st return err } } + } return nil } func (o *StatusOKBody) contextValidateServerInfo(ctx context.Context, formats strfmt.Registry) error { + if o.ServerInfo != nil { if err := o.ServerInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -464,6 +475,7 @@ StatusOKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model StatusOKBodyAgentsInfoItems0 */ type StatusOKBodyAgentsInfoItems0 struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -677,6 +689,7 @@ StatusOKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model StatusOKBodyServerInfo */ type StatusOKBodyServerInfo struct { + // PMM Server URL in a form https://HOST:PORT/. URL string `json:"url,omitempty"` diff --git a/api/agentpb/agent.go b/api/agentpb/agent.go index f9c81bfde0..cab6fa313a 100644 --- a/api/agentpb/agent.go +++ b/api/agentpb/agent.go @@ -131,8 +131,8 @@ func (m *PBMSwitchPITRResponse) AgentMessageResponsePayload() isAgentMessage_Pay } // AgentMessageResponsePayload AgentMessage_ParseCredentialsSource payload -func (m *ParseCredentialsSourceResponse) AgentMessageResponsePayload() isAgentMessage_Payload { - return &AgentMessage_ParseCredentialsSource{ParseCredentialsSource: m} +func (m *ParseServiceParamsSourceResponse) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_ParseServiceParamsSource{ParseServiceParamsSource: m} } func (m *AgentLogsResponse) AgentMessageResponsePayload() isAgentMessage_Payload { @@ -200,8 +200,8 @@ func (m *PBMSwitchPITRRequest) ServerMessageRequestPayload() isServerMessage_Pay } // ServerMessageRequestPayload ParseCredentialsSource payload. -func (m *ParseCredentialsSourceRequest) ServerMessageRequestPayload() isServerMessage_Payload { - return &ServerMessage_ParseCredentialsSource{ParseCredentialsSource: m} +func (m *ParseServiceParamsSourceRequest) ServerMessageRequestPayload() isServerMessage_Payload { + return &ServerMessage_ParseServiceParamsSource{ParseServiceParamsSource: m} } func (m *AgentLogsRequest) ServerMessageRequestPayload() isServerMessage_Payload { @@ -209,38 +209,38 @@ func (m *AgentLogsRequest) ServerMessageRequestPayload() isServerMessage_Payload } // in alphabetical order -func (*ActionResultRequest) sealed() {} -func (*ActionResultResponse) sealed() {} -func (*CheckConnectionRequest) sealed() {} -func (*CheckConnectionResponse) sealed() {} -func (*JobProgress) sealed() {} -func (*JobResult) sealed() {} -func (*JobStatusRequest) sealed() {} -func (*JobStatusResponse) sealed() {} -func (*ParseCredentialsSourceRequest) sealed() {} -func (*ParseCredentialsSourceResponse) sealed() {} -func (*AgentLogsRequest) sealed() {} -func (*AgentLogsResponse) sealed() {} -func (*Ping) sealed() {} -func (*Pong) sealed() {} -func (*QANCollectRequest) sealed() {} -func (*QANCollectResponse) sealed() {} -func (*SetStateRequest) sealed() {} -func (*SetStateResponse) sealed() {} -func (*StartActionRequest) sealed() {} -func (*StartActionResponse) sealed() {} -func (*StartJobRequest) sealed() {} -func (*StartJobResponse) sealed() {} -func (*StateChangedRequest) sealed() {} -func (*StateChangedResponse) sealed() {} -func (*StopActionRequest) sealed() {} -func (*StopActionResponse) sealed() {} -func (*StopJobRequest) sealed() {} -func (*StopJobResponse) sealed() {} -func (*GetVersionsRequest) sealed() {} -func (*GetVersionsResponse) sealed() {} -func (*PBMSwitchPITRRequest) sealed() {} -func (*PBMSwitchPITRResponse) sealed() {} +func (*ActionResultRequest) sealed() {} +func (*ActionResultResponse) sealed() {} +func (*CheckConnectionRequest) sealed() {} +func (*CheckConnectionResponse) sealed() {} +func (*JobProgress) sealed() {} +func (*JobResult) sealed() {} +func (*JobStatusRequest) sealed() {} +func (*JobStatusResponse) sealed() {} +func (*ParseServiceParamsSourceRequest) sealed() {} +func (*ParseServiceParamsSourceResponse) sealed() {} +func (*AgentLogsRequest) sealed() {} +func (*AgentLogsResponse) sealed() {} +func (*Ping) sealed() {} +func (*Pong) sealed() {} +func (*QANCollectRequest) sealed() {} +func (*QANCollectResponse) sealed() {} +func (*SetStateRequest) sealed() {} +func (*SetStateResponse) sealed() {} +func (*StartActionRequest) sealed() {} +func (*StartActionResponse) sealed() {} +func (*StartJobRequest) sealed() {} +func (*StartJobResponse) sealed() {} +func (*StateChangedRequest) sealed() {} +func (*StateChangedResponse) sealed() {} +func (*StopActionRequest) sealed() {} +func (*StopActionResponse) sealed() {} +func (*StopJobRequest) sealed() {} +func (*StopJobResponse) sealed() {} +func (*GetVersionsRequest) sealed() {} +func (*GetVersionsResponse) sealed() {} +func (*PBMSwitchPITRRequest) sealed() {} +func (*PBMSwitchPITRResponse) sealed() {} // check interfaces var ( @@ -262,7 +262,7 @@ var ( _ AgentResponsePayload = (*StopJobResponse)(nil) _ AgentResponsePayload = (*JobStatusResponse)(nil) _ AgentResponsePayload = (*GetVersionsResponse)(nil) - _ AgentResponsePayload = (*ParseCredentialsSourceResponse)(nil) + _ AgentResponsePayload = (*ParseServiceParamsSourceResponse)(nil) _ AgentResponsePayload = (*AgentLogsResponse)(nil) // A list of ServerMessage response payloads. @@ -282,7 +282,7 @@ var ( _ ServerRequestPayload = (*JobStatusRequest)(nil) _ ServerRequestPayload = (*GetVersionsRequest)(nil) _ ServerRequestPayload = (*PBMSwitchPITRRequest)(nil) - _ ServerRequestPayload = (*ParseCredentialsSourceRequest)(nil) + _ ServerRequestPayload = (*ParseServiceParamsSourceRequest)(nil) _ ServerRequestPayload = (*AgentLogsRequest)(nil) ) diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index cae72d5a85..251061d02c 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -7,17 +7,15 @@ package agentpb import ( - reflect "reflect" - sync "sync" - + inventorypb "github.com/percona/pmm/api/inventorypb" + backup "github.com/percona/pmm/api/managementpb/backup" status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - - inventorypb "github.com/percona/pmm/api/inventorypb" - backup "github.com/percona/pmm/api/managementpb/backup" + reflect "reflect" + sync "sync" ) const ( @@ -1652,8 +1650,8 @@ func (x *PBMSwitchPITRResponse) GetError() string { return "" } -// ParseCredentialsSourceRequest is an ServerMessage asking pmm-agent to parse credentials source file. -type ParseCredentialsSourceRequest struct { +// ParseServiceParamsSourceRequest is an ServerMessage asking pmm-agent to parse service parameters file. +type ParseServiceParamsSourceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1664,8 +1662,8 @@ type ParseCredentialsSourceRequest struct { FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` } -func (x *ParseCredentialsSourceRequest) Reset() { - *x = ParseCredentialsSourceRequest{} +func (x *ParseServiceParamsSourceRequest) Reset() { + *x = ParseServiceParamsSourceRequest{} if protoimpl.UnsafeEnabled { mi := &file_agentpb_agent_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1673,13 +1671,13 @@ func (x *ParseCredentialsSourceRequest) Reset() { } } -func (x *ParseCredentialsSourceRequest) String() string { +func (x *ParseServiceParamsSourceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParseCredentialsSourceRequest) ProtoMessage() {} +func (*ParseServiceParamsSourceRequest) ProtoMessage() {} -func (x *ParseCredentialsSourceRequest) ProtoReflect() protoreflect.Message { +func (x *ParseServiceParamsSourceRequest) ProtoReflect() protoreflect.Message { mi := &file_agentpb_agent_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1691,27 +1689,27 @@ func (x *ParseCredentialsSourceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParseCredentialsSourceRequest.ProtoReflect.Descriptor instead. -func (*ParseCredentialsSourceRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ParseServiceParamsSourceRequest.ProtoReflect.Descriptor instead. +func (*ParseServiceParamsSourceRequest) Descriptor() ([]byte, []int) { return file_agentpb_agent_proto_rawDescGZIP(), []int{22} } -func (x *ParseCredentialsSourceRequest) GetServiceType() inventorypb.ServiceType { +func (x *ParseServiceParamsSourceRequest) GetServiceType() inventorypb.ServiceType { if x != nil { return x.ServiceType } return inventorypb.ServiceType(0) } -func (x *ParseCredentialsSourceRequest) GetFilePath() string { +func (x *ParseServiceParamsSourceRequest) GetFilePath() string { if x != nil { return x.FilePath } return "" } -// ParseCredentialsSourceResponse is an AgentMessage containing a result of parsing credentials source file. -type ParseCredentialsSourceResponse struct { +// ParseServiceParamsSourceResponse is an AgentMessage containing a result of parsing service parameters file. +type ParseServiceParamsSourceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1726,8 +1724,8 @@ type ParseCredentialsSourceResponse struct { AgentPassword string `protobuf:"bytes,7,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` } -func (x *ParseCredentialsSourceResponse) Reset() { - *x = ParseCredentialsSourceResponse{} +func (x *ParseServiceParamsSourceResponse) Reset() { + *x = ParseServiceParamsSourceResponse{} if protoimpl.UnsafeEnabled { mi := &file_agentpb_agent_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1735,13 +1733,13 @@ func (x *ParseCredentialsSourceResponse) Reset() { } } -func (x *ParseCredentialsSourceResponse) String() string { +func (x *ParseServiceParamsSourceResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ParseCredentialsSourceResponse) ProtoMessage() {} +func (*ParseServiceParamsSourceResponse) ProtoMessage() {} -func (x *ParseCredentialsSourceResponse) ProtoReflect() protoreflect.Message { +func (x *ParseServiceParamsSourceResponse) ProtoReflect() protoreflect.Message { mi := &file_agentpb_agent_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1753,54 +1751,54 @@ func (x *ParseCredentialsSourceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ParseCredentialsSourceResponse.ProtoReflect.Descriptor instead. -func (*ParseCredentialsSourceResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ParseServiceParamsSourceResponse.ProtoReflect.Descriptor instead. +func (*ParseServiceParamsSourceResponse) Descriptor() ([]byte, []int) { return file_agentpb_agent_proto_rawDescGZIP(), []int{23} } -func (x *ParseCredentialsSourceResponse) GetError() string { +func (x *ParseServiceParamsSourceResponse) GetError() string { if x != nil { return x.Error } return "" } -func (x *ParseCredentialsSourceResponse) GetUsername() string { +func (x *ParseServiceParamsSourceResponse) GetUsername() string { if x != nil { return x.Username } return "" } -func (x *ParseCredentialsSourceResponse) GetPassword() string { +func (x *ParseServiceParamsSourceResponse) GetPassword() string { if x != nil { return x.Password } return "" } -func (x *ParseCredentialsSourceResponse) GetHost() string { +func (x *ParseServiceParamsSourceResponse) GetHost() string { if x != nil { return x.Host } return "" } -func (x *ParseCredentialsSourceResponse) GetPort() uint32 { +func (x *ParseServiceParamsSourceResponse) GetPort() uint32 { if x != nil { return x.Port } return 0 } -func (x *ParseCredentialsSourceResponse) GetSocket() string { +func (x *ParseServiceParamsSourceResponse) GetSocket() string { if x != nil { return x.Socket } return "" } -func (x *ParseCredentialsSourceResponse) GetAgentPassword() string { +func (x *ParseServiceParamsSourceResponse) GetAgentPassword() string { if x != nil { return x.AgentPassword } @@ -2925,7 +2923,7 @@ type AgentMessage struct { // *AgentMessage_JobProgress // *AgentMessage_GetVersions // *AgentMessage_PbmSwitchPitr - // *AgentMessage_ParseCredentialsSource + // *AgentMessage_ParseServiceParamsSource // *AgentMessage_AgentLogs Payload isAgentMessage_Payload `protobuf_oneof:"payload"` } @@ -3095,9 +3093,9 @@ func (x *AgentMessage) GetPbmSwitchPitr() *PBMSwitchPITRResponse { return nil } -func (x *AgentMessage) GetParseCredentialsSource() *ParseCredentialsSourceResponse { - if x, ok := x.GetPayload().(*AgentMessage_ParseCredentialsSource); ok { - return x.ParseCredentialsSource +func (x *AgentMessage) GetParseServiceParamsSource() *ParseServiceParamsSourceResponse { + if x, ok := x.GetPayload().(*AgentMessage_ParseServiceParamsSource); ok { + return x.ParseServiceParamsSource } return nil } @@ -3179,8 +3177,8 @@ type AgentMessage_PbmSwitchPitr struct { PbmSwitchPitr *PBMSwitchPITRResponse `protobuf:"bytes,19,opt,name=pbm_switch_pitr,json=pbmSwitchPitr,proto3,oneof"` } -type AgentMessage_ParseCredentialsSource struct { - ParseCredentialsSource *ParseCredentialsSourceResponse `protobuf:"bytes,20,opt,name=parse_credentials_source,json=parseCredentialsSource,proto3,oneof"` +type AgentMessage_ParseServiceParamsSource struct { + ParseServiceParamsSource *ParseServiceParamsSourceResponse `protobuf:"bytes,20,opt,name=parse_service_params_source,json=parseServiceParamsSource,proto3,oneof"` } type AgentMessage_AgentLogs struct { @@ -3219,7 +3217,7 @@ func (*AgentMessage_GetVersions) isAgentMessage_Payload() {} func (*AgentMessage_PbmSwitchPitr) isAgentMessage_Payload() {} -func (*AgentMessage_ParseCredentialsSource) isAgentMessage_Payload() {} +func (*AgentMessage_ParseServiceParamsSource) isAgentMessage_Payload() {} func (*AgentMessage_AgentLogs) isAgentMessage_Payload() {} @@ -3251,7 +3249,7 @@ type ServerMessage struct { // *ServerMessage_JobStatus // *ServerMessage_GetVersions // *ServerMessage_PbmSwitchPitr - // *ServerMessage_ParseCredentialsSource + // *ServerMessage_ParseServiceParamsSource // *ServerMessage_AgentLogs Payload isServerMessage_Payload `protobuf_oneof:"payload"` } @@ -3407,9 +3405,9 @@ func (x *ServerMessage) GetPbmSwitchPitr() *PBMSwitchPITRRequest { return nil } -func (x *ServerMessage) GetParseCredentialsSource() *ParseCredentialsSourceRequest { - if x, ok := x.GetPayload().(*ServerMessage_ParseCredentialsSource); ok { - return x.ParseCredentialsSource +func (x *ServerMessage) GetParseServiceParamsSource() *ParseServiceParamsSourceRequest { + if x, ok := x.GetPayload().(*ServerMessage_ParseServiceParamsSource); ok { + return x.ParseServiceParamsSource } return nil } @@ -3483,8 +3481,8 @@ type ServerMessage_PbmSwitchPitr struct { PbmSwitchPitr *PBMSwitchPITRRequest `protobuf:"bytes,17,opt,name=pbm_switch_pitr,json=pbmSwitchPitr,proto3,oneof"` } -type ServerMessage_ParseCredentialsSource struct { - ParseCredentialsSource *ParseCredentialsSourceRequest `protobuf:"bytes,18,opt,name=parse_credentials_source,json=parseCredentialsSource,proto3,oneof"` +type ServerMessage_ParseServiceParamsSource struct { + ParseServiceParamsSource *ParseServiceParamsSourceRequest `protobuf:"bytes,18,opt,name=parse_service_params_source,json=parseServiceParamsSource,proto3,oneof"` } type ServerMessage_AgentLogs struct { @@ -3519,7 +3517,7 @@ func (*ServerMessage_GetVersions) isServerMessage_Payload() {} func (*ServerMessage_PbmSwitchPitr) isServerMessage_Payload() {} -func (*ServerMessage_ParseCredentialsSource) isServerMessage_Payload() {} +func (*ServerMessage_ParseServiceParamsSource) isServerMessage_Payload() {} func (*ServerMessage_AgentLogs) isServerMessage_Payload() {} @@ -6866,111 +6864,135 @@ var file_agentpb_agent_proto_rawDesc = []byte{ 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x2d, 0x0a, 0x15, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x77, 0x0a, 0x1d, 0x50, 0x61, 0x72, 0x73, - 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, - 0x68, 0x22, 0xd5, 0x01, 0x0a, 0x1e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, - 0x63, 0x6b, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x43, 0x0a, 0x10, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x67, - 0x0a, 0x11, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x3e, 0x0a, 0x1c, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x65, - 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x18, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, - 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xe4, 0x01, 0x0a, 0x16, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x64, 0x73, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, 0x6e, - 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, - 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x66, 0x69, - 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x09, 0x74, 0x65, 0x78, - 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, - 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0x95, - 0x01, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x28, 0x0a, 0x05, - 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, - 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, - 0x64, 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x22, 0xb2, 0x01, 0x0a, - 0x10, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, - 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x62, - 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, - 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x22, 0x2d, 0x0a, 0x17, 0x50, 0x4d, 0x4d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x22, 0xc9, 0x0c, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, - 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x12, 0x47, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x14, 0x6d, 0x79, 0x73, - 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, - 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x4d, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, - 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, - 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x63, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, - 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0xe2, 0x01, 0x0a, - 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x79, 0x0a, 0x1f, 0x50, 0x61, 0x72, 0x73, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, + 0x61, 0x74, 0x68, 0x22, 0xd7, 0x01, 0x0a, 0x20, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, + 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x43, 0x0a, + 0x10, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x22, 0x67, 0x0a, 0x11, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x3e, 0x0a, 0x1c, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, + 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x18, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x6f, + 0x67, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xe4, 0x01, 0x0a, 0x16, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x73, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x64, 0x73, 0x6e, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x74, 0x65, 0x78, + 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, + 0x09, 0x74, 0x65, 0x78, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x74, 0x6c, + 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x22, 0x95, 0x01, 0x0a, 0x17, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, + 0x1a, 0x28, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x10, 0x4a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, + 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, + 0x22, 0xb2, 0x01, 0x0a, 0x10, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4b, 0x65, 0x79, + 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x12, + 0x1f, 0x0a, 0x0b, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x2d, 0x0a, 0x17, 0x50, 0x4d, 0x4d, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x22, 0xc9, 0x0c, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, + 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, + 0x65, 0x6f, 0x75, 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, + 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, + 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x4d, 0x0a, 0x0e, + 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, + 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x63, 0x0a, 0x16, 0x6d, + 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, + 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, + 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x1a, 0xe2, 0x01, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x92, 0x01, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, + 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, + 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x8d, 0x03, 0x0a, 0x0d, 0x4d, + 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, @@ -6979,340 +7001,317 @@ var file_agentpb_agent_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, - 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x1a, 0x92, 0x01, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, - 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x73, - 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x8d, 0x03, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, - 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x69, 0x74, - 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, - 0x69, 0x74, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x36, 0x0a, - 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x11, 0x70, 0x6d, 0x6d, 0x5f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x4d, 0x4d, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x48, 0x00, 0x52, 0x0f, 0x70, 0x6d, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xfc, 0x02, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, - 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, - 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, - 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x70, 0x69, 0x74, - 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x70, - 0x69, 0x74, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x36, 0x0a, 0x09, - 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, 0x73, 0x33, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x11, 0x70, 0x6d, 0x6d, 0x5f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x4d, 0x4d, 0x43, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, - 0x00, 0x52, 0x0f, 0x70, 0x6d, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x28, 0x0a, 0x10, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, - 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xcb, 0x04, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x41, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, - 0x63, 0x6b, 0x75, 0x70, 0x12, 0x57, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, - 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x47, 0x0a, - 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, - 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, - 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, - 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, - 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, - 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0f, 0x0a, 0x0d, 0x4d, 0x6f, 0x6e, 0x67, - 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x16, - 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0xa7, 0x03, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, 0x71, 0x6c, - 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x59, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, - 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x50, 0x69, 0x74, 0x72, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x6f, 0x64, 0x65, + 0x6c, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, + 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, + 0x08, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x11, 0x70, 0x6d, 0x6d, + 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x4d, 0x4d, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x6d, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xfc, 0x02, 0x0a, 0x14, 0x4d, + 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, + 0x0e, 0x70, 0x69, 0x74, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x0d, 0x70, 0x69, 0x74, 0x72, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x36, 0x0a, 0x09, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x33, 0x4c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x08, + 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x11, 0x70, 0x6d, 0x6d, 0x5f, + 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x4d, 0x4d, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x6d, 0x6d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x11, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, + 0x22, 0x28, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, + 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x04, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, + 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x79, 0x73, + 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x57, 0x0a, 0x14, 0x6d, 0x79, 0x73, 0x71, + 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x12, 0x2d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, - 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, - 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, - 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x49, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x19, 0x0a, - 0x08, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x07, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, - 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, - 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9b, 0x03, 0x0a, 0x12, 0x47, + 0x70, 0x12, 0x47, 0x0a, 0x0e, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x62, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, + 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0d, 0x6d, 0x6f, 0x6e, + 0x67, 0x6f, 0x64, 0x62, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x5d, 0x0a, 0x16, 0x6d, 0x6f, + 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, + 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, + 0x70, 0x48, 0x00, 0x52, 0x14, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x52, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x0f, 0x0a, 0x0d, + 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x0d, 0x0a, + 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x1a, 0x16, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x22, 0xa7, 0x03, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, + 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0b, 0x6d, + 0x79, 0x73, 0x71, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x59, 0x0a, 0x14, 0x6d, 0x79, + 0x73, 0x71, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, + 0x75, 0x70, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, + 0x00, 0x52, 0x12, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x42, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x14, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x4c, 0x6f, 0x67, 0x73, 0x48, 0x00, 0x52, 0x04, + 0x6c, 0x6f, 0x67, 0x73, 0x1a, 0x0d, 0x0a, 0x0b, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x42, 0x61, 0x63, + 0x6b, 0x75, 0x70, 0x1a, 0x14, 0x0a, 0x12, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x49, 0x0a, 0x04, 0x4c, 0x6f, 0x67, + 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, + 0x64, 0x6f, 0x6e, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9b, + 0x03, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x52, 0x09, 0x73, 0x6f, + 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x08, 0x0a, 0x06, 0x4d, 0x79, 0x53, 0x51, 0x4c, + 0x64, 0x1a, 0x0c, 0x0a, 0x0a, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, + 0x09, 0x0a, 0x07, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x1a, 0x08, 0x0a, 0x06, 0x51, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x1a, 0x95, 0x02, 0x0a, 0x08, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, + 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, + 0x51, 0x4c, 0x64, 0x48, 0x00, 0x52, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x12, 0x46, 0x0a, + 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x74, 0x72, + 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, + 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x3d, 0x0a, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x40, 0x0a, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, + 0x74, 0x2e, 0x58, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x48, 0x00, 0x52, 0x07, 0x78, 0x62, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x52, 0x09, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, - 0x72, 0x65, 0x73, 0x1a, 0x08, 0x0a, 0x06, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x1a, 0x0c, 0x0a, - 0x0a, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x58, - 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x1a, 0x08, 0x0a, 0x06, 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x1a, 0x95, 0x02, 0x0a, 0x08, 0x53, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x12, 0x3a, 0x0a, - 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x48, - 0x00, 0x52, 0x06, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x78, 0x74, 0x72, - 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, - 0x6b, 0x75, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x78, 0x74, 0x72, 0x61, 0x62, 0x61, 0x63, 0x6b, 0x75, - 0x70, 0x12, 0x3d, 0x0a, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x58, 0x62, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x48, 0x00, 0x52, 0x07, 0x78, 0x62, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x12, 0x3a, 0x0a, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x51, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x48, 0x00, 0x52, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, 0x42, 0x0a, 0x0a, 0x08, - 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x51, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x06, 0x71, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x6f, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x22, 0x90, 0x01, 0x0a, + 0x13, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, + 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, + 0xa5, 0x09, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, + 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, + 0x12, 0x41, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, + 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x12, 0x41, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, + 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, + 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x3c, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, + 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, + 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, + 0x6f, 0x62, 0x12, 0x33, 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, + 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, + 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x31, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, + 0x00, 0x52, 0x0b, 0x6a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3f, + 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3e, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x1a, 0x39, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x9e, 0x09, 0x0a, 0x0c, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0d, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, - 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, - 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x41, 0x0a, 0x0d, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x46, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, + 0x74, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x68, 0x0a, 0x1b, 0x70, 0x61, 0x72, 0x73, 0x65, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x5f, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, + 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x42, 0x09, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xb2, 0x08, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, + 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, 0x0d, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3c, 0x0a, + 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, + 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, - 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, - 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x0b, 0x73, - 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, - 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x33, - 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, - 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, - 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x6a, - 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x0a, 0x0c, 0x67, 0x65, - 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, - 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x0f, 0x70, - 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x13, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, - 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, - 0x69, 0x74, 0x72, 0x12, 0x61, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, - 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x16, - 0x70, 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, - 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, - 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xab, 0x08, 0x0a, - 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xff, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x04, 0x70, - 0x6f, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, - 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x12, 0x42, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, - 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, - 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, - 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, - 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, - 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, - 0x6f, 0x62, 0x12, 0x38, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, - 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x0c, - 0x67, 0x65, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, - 0x0b, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0f, - 0x70, 0x62, 0x6d, 0x5f, 0x73, 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, - 0x4d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, - 0x69, 0x74, 0x72, 0x12, 0x60, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, - 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x16, 0x70, - 0x61, 0x72, 0x73, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x6c, - 0x6f, 0x67, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x42, - 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0xc4, 0x01, 0x0a, 0x18, 0x4d, - 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, - 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, - 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, - 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, - 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, - 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x4d, 0x59, 0x53, + 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, + 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0c, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x74, 0x6f, + 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, + 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, + 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x0a, 0x08, 0x73, 0x74, 0x6f, + 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x38, 0x0a, + 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3e, 0x0a, 0x0c, 0x67, 0x65, 0x74, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x70, 0x62, 0x6d, 0x5f, 0x73, + 0x77, 0x69, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x69, 0x74, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x42, 0x4d, 0x53, 0x77, 0x69, 0x74, + 0x63, 0x68, 0x50, 0x49, 0x54, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x0d, 0x70, 0x62, 0x6d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x50, 0x69, 0x74, 0x72, 0x12, 0x67, + 0x0a, 0x1b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x12, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x73, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x18, 0x70, + 0x61, 0x72, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x4c, 0x6f, 0x67, + 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0xc4, 0x01, 0x0a, + 0x18, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, - 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, - 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, - 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, - 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, - 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x28, 0x01, 0x30, 0x01, 0x42, 0x6f, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, - 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0xca, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x11, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x05, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, + 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, + 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x4d, + 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, + 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, + 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, + 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, + 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4a, 0x53, 0x4f, + 0x4e, 0x10, 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x6f, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, + 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x05, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0xca, 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x11, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -7327,110 +7326,107 @@ func file_agentpb_agent_proto_rawDescGZIP() []byte { return file_agentpb_agent_proto_rawDescData } -var ( - file_agentpb_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_agentpb_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 88) - file_agentpb_agent_proto_goTypes = []interface{}{ - (MysqlExplainOutputFormat)(0), // 0: agent.MysqlExplainOutputFormat - (*TextFiles)(nil), // 1: agent.TextFiles - (*Ping)(nil), // 2: agent.Ping - (*Pong)(nil), // 3: agent.Pong - (*QANCollectRequest)(nil), // 4: agent.QANCollectRequest - (*QANCollectResponse)(nil), // 5: agent.QANCollectResponse - (*StateChangedRequest)(nil), // 6: agent.StateChangedRequest - (*StateChangedResponse)(nil), // 7: agent.StateChangedResponse - (*SetStateRequest)(nil), // 8: agent.SetStateRequest - (*SetStateResponse)(nil), // 9: agent.SetStateResponse - (*QueryActionValue)(nil), // 10: agent.QueryActionValue - (*QueryActionSlice)(nil), // 11: agent.QueryActionSlice - (*QueryActionMap)(nil), // 12: agent.QueryActionMap - (*QueryActionBinary)(nil), // 13: agent.QueryActionBinary - (*QueryActionResult)(nil), // 14: agent.QueryActionResult - (*StartActionRequest)(nil), // 15: agent.StartActionRequest - (*StartActionResponse)(nil), // 16: agent.StartActionResponse - (*StopActionRequest)(nil), // 17: agent.StopActionRequest - (*StopActionResponse)(nil), // 18: agent.StopActionResponse - (*ActionResultRequest)(nil), // 19: agent.ActionResultRequest - (*ActionResultResponse)(nil), // 20: agent.ActionResultResponse - (*PBMSwitchPITRRequest)(nil), // 21: agent.PBMSwitchPITRRequest - (*PBMSwitchPITRResponse)(nil), // 22: agent.PBMSwitchPITRResponse - (*ParseCredentialsSourceRequest)(nil), // 23: agent.ParseCredentialsSourceRequest - (*ParseCredentialsSourceResponse)(nil), // 24: agent.ParseCredentialsSourceResponse - (*AgentLogsRequest)(nil), // 25: agent.AgentLogsRequest - (*AgentLogsResponse)(nil), // 26: agent.AgentLogsResponse - (*CheckConnectionRequest)(nil), // 27: agent.CheckConnectionRequest - (*CheckConnectionResponse)(nil), // 28: agent.CheckConnectionResponse - (*JobStatusRequest)(nil), // 29: agent.JobStatusRequest - (*JobStatusResponse)(nil), // 30: agent.JobStatusResponse - (*S3LocationConfig)(nil), // 31: agent.S3LocationConfig - (*PMMClientLocationConfig)(nil), // 32: agent.PMMClientLocationConfig - (*StartJobRequest)(nil), // 33: agent.StartJobRequest - (*StartJobResponse)(nil), // 34: agent.StartJobResponse - (*StopJobRequest)(nil), // 35: agent.StopJobRequest - (*StopJobResponse)(nil), // 36: agent.StopJobResponse - (*JobResult)(nil), // 37: agent.JobResult - (*JobProgress)(nil), // 38: agent.JobProgress - (*GetVersionsRequest)(nil), // 39: agent.GetVersionsRequest - (*GetVersionsResponse)(nil), // 40: agent.GetVersionsResponse - (*AgentMessage)(nil), // 41: agent.AgentMessage - (*ServerMessage)(nil), // 42: agent.ServerMessage - nil, // 43: agent.TextFiles.FilesEntry - (*SetStateRequest_AgentProcess)(nil), // 44: agent.SetStateRequest.AgentProcess - nil, // 45: agent.SetStateRequest.AgentProcessesEntry - (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.SetStateRequest.BuiltinAgent - nil, // 47: agent.SetStateRequest.BuiltinAgentsEntry - nil, // 48: agent.SetStateRequest.AgentProcess.TextFilesEntry - nil, // 49: agent.QueryActionMap.MapEntry - (*StartActionRequest_MySQLExplainParams)(nil), // 50: agent.StartActionRequest.MySQLExplainParams - (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 51: agent.StartActionRequest.MySQLShowCreateTableParams - (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 52: agent.StartActionRequest.MySQLShowTableStatusParams - (*StartActionRequest_MySQLShowIndexParams)(nil), // 53: agent.StartActionRequest.MySQLShowIndexParams - (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 54: agent.StartActionRequest.PostgreSQLShowCreateTableParams - (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 55: agent.StartActionRequest.PostgreSQLShowIndexParams - (*StartActionRequest_MongoDBExplainParams)(nil), // 56: agent.StartActionRequest.MongoDBExplainParams - (*StartActionRequest_PTSummaryParams)(nil), // 57: agent.StartActionRequest.PTSummaryParams - (*StartActionRequest_PTPgSummaryParams)(nil), // 58: agent.StartActionRequest.PTPgSummaryParams - (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 59: agent.StartActionRequest.PTMongoDBSummaryParams - (*StartActionRequest_PTMySQLSummaryParams)(nil), // 60: agent.StartActionRequest.PTMySQLSummaryParams - (*StartActionRequest_MySQLQueryShowParams)(nil), // 61: agent.StartActionRequest.MySQLQueryShowParams - (*StartActionRequest_MySQLQuerySelectParams)(nil), // 62: agent.StartActionRequest.MySQLQuerySelectParams - (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 63: agent.StartActionRequest.PostgreSQLQueryShowParams - (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 64: agent.StartActionRequest.PostgreSQLQuerySelectParams - (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 65: agent.StartActionRequest.MongoDBQueryGetParameterParams - (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 66: agent.StartActionRequest.MongoDBQueryBuildInfoParams - (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 67: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams - (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 68: agent.StartActionRequest.MongoDBQueryReplSetGetStatusParams - (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 69: agent.StartActionRequest.MongoDBQueryGetDiagnosticDataParams - (*CheckConnectionResponse_Stats)(nil), // 70: agent.CheckConnectionResponse.Stats - (*StartJobRequest_MySQLBackup)(nil), // 71: agent.StartJobRequest.MySQLBackup - (*StartJobRequest_MySQLRestoreBackup)(nil), // 72: agent.StartJobRequest.MySQLRestoreBackup - (*StartJobRequest_MongoDBBackup)(nil), // 73: agent.StartJobRequest.MongoDBBackup - (*StartJobRequest_MongoDBRestoreBackup)(nil), // 74: agent.StartJobRequest.MongoDBRestoreBackup - (*JobResult_Error)(nil), // 75: agent.JobResult.Error - (*JobResult_MongoDBBackup)(nil), // 76: agent.JobResult.MongoDBBackup - (*JobResult_MySQLBackup)(nil), // 77: agent.JobResult.MySQLBackup - (*JobResult_MySQLRestoreBackup)(nil), // 78: agent.JobResult.MySQLRestoreBackup - (*JobResult_MongoDBRestoreBackup)(nil), // 79: agent.JobResult.MongoDBRestoreBackup - (*JobProgress_MySQLBackup)(nil), // 80: agent.JobProgress.MySQLBackup - (*JobProgress_MySQLRestoreBackup)(nil), // 81: agent.JobProgress.MySQLRestoreBackup - (*JobProgress_Logs)(nil), // 82: agent.JobProgress.Logs - (*GetVersionsRequest_MySQLd)(nil), // 83: agent.GetVersionsRequest.MySQLd - (*GetVersionsRequest_Xtrabackup)(nil), // 84: agent.GetVersionsRequest.Xtrabackup - (*GetVersionsRequest_Xbcloud)(nil), // 85: agent.GetVersionsRequest.Xbcloud - (*GetVersionsRequest_Qpress)(nil), // 86: agent.GetVersionsRequest.Qpress - (*GetVersionsRequest_Software)(nil), // 87: agent.GetVersionsRequest.Software - (*GetVersionsResponse_Version)(nil), // 88: agent.GetVersionsResponse.Version - (*timestamppb.Timestamp)(nil), // 89: google.protobuf.Timestamp - (*MetricsBucket)(nil), // 90: agent.MetricsBucket - (inventorypb.AgentStatus)(0), // 91: inventory.AgentStatus - (*durationpb.Duration)(nil), // 92: google.protobuf.Duration - (inventorypb.ServiceType)(0), // 93: inventory.ServiceType - (*status.Status)(nil), // 94: google.rpc.Status - (inventorypb.AgentType)(0), // 95: inventory.AgentType - (backup.DataModel)(0), // 96: backup.v1beta1.DataModel - } -) - +var file_agentpb_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_agentpb_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 88) +var file_agentpb_agent_proto_goTypes = []interface{}{ + (MysqlExplainOutputFormat)(0), // 0: agent.MysqlExplainOutputFormat + (*TextFiles)(nil), // 1: agent.TextFiles + (*Ping)(nil), // 2: agent.Ping + (*Pong)(nil), // 3: agent.Pong + (*QANCollectRequest)(nil), // 4: agent.QANCollectRequest + (*QANCollectResponse)(nil), // 5: agent.QANCollectResponse + (*StateChangedRequest)(nil), // 6: agent.StateChangedRequest + (*StateChangedResponse)(nil), // 7: agent.StateChangedResponse + (*SetStateRequest)(nil), // 8: agent.SetStateRequest + (*SetStateResponse)(nil), // 9: agent.SetStateResponse + (*QueryActionValue)(nil), // 10: agent.QueryActionValue + (*QueryActionSlice)(nil), // 11: agent.QueryActionSlice + (*QueryActionMap)(nil), // 12: agent.QueryActionMap + (*QueryActionBinary)(nil), // 13: agent.QueryActionBinary + (*QueryActionResult)(nil), // 14: agent.QueryActionResult + (*StartActionRequest)(nil), // 15: agent.StartActionRequest + (*StartActionResponse)(nil), // 16: agent.StartActionResponse + (*StopActionRequest)(nil), // 17: agent.StopActionRequest + (*StopActionResponse)(nil), // 18: agent.StopActionResponse + (*ActionResultRequest)(nil), // 19: agent.ActionResultRequest + (*ActionResultResponse)(nil), // 20: agent.ActionResultResponse + (*PBMSwitchPITRRequest)(nil), // 21: agent.PBMSwitchPITRRequest + (*PBMSwitchPITRResponse)(nil), // 22: agent.PBMSwitchPITRResponse + (*ParseServiceParamsSourceRequest)(nil), // 23: agent.ParseServiceParamsSourceRequest + (*ParseServiceParamsSourceResponse)(nil), // 24: agent.ParseServiceParamsSourceResponse + (*AgentLogsRequest)(nil), // 25: agent.AgentLogsRequest + (*AgentLogsResponse)(nil), // 26: agent.AgentLogsResponse + (*CheckConnectionRequest)(nil), // 27: agent.CheckConnectionRequest + (*CheckConnectionResponse)(nil), // 28: agent.CheckConnectionResponse + (*JobStatusRequest)(nil), // 29: agent.JobStatusRequest + (*JobStatusResponse)(nil), // 30: agent.JobStatusResponse + (*S3LocationConfig)(nil), // 31: agent.S3LocationConfig + (*PMMClientLocationConfig)(nil), // 32: agent.PMMClientLocationConfig + (*StartJobRequest)(nil), // 33: agent.StartJobRequest + (*StartJobResponse)(nil), // 34: agent.StartJobResponse + (*StopJobRequest)(nil), // 35: agent.StopJobRequest + (*StopJobResponse)(nil), // 36: agent.StopJobResponse + (*JobResult)(nil), // 37: agent.JobResult + (*JobProgress)(nil), // 38: agent.JobProgress + (*GetVersionsRequest)(nil), // 39: agent.GetVersionsRequest + (*GetVersionsResponse)(nil), // 40: agent.GetVersionsResponse + (*AgentMessage)(nil), // 41: agent.AgentMessage + (*ServerMessage)(nil), // 42: agent.ServerMessage + nil, // 43: agent.TextFiles.FilesEntry + (*SetStateRequest_AgentProcess)(nil), // 44: agent.SetStateRequest.AgentProcess + nil, // 45: agent.SetStateRequest.AgentProcessesEntry + (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.SetStateRequest.BuiltinAgent + nil, // 47: agent.SetStateRequest.BuiltinAgentsEntry + nil, // 48: agent.SetStateRequest.AgentProcess.TextFilesEntry + nil, // 49: agent.QueryActionMap.MapEntry + (*StartActionRequest_MySQLExplainParams)(nil), // 50: agent.StartActionRequest.MySQLExplainParams + (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 51: agent.StartActionRequest.MySQLShowCreateTableParams + (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 52: agent.StartActionRequest.MySQLShowTableStatusParams + (*StartActionRequest_MySQLShowIndexParams)(nil), // 53: agent.StartActionRequest.MySQLShowIndexParams + (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 54: agent.StartActionRequest.PostgreSQLShowCreateTableParams + (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 55: agent.StartActionRequest.PostgreSQLShowIndexParams + (*StartActionRequest_MongoDBExplainParams)(nil), // 56: agent.StartActionRequest.MongoDBExplainParams + (*StartActionRequest_PTSummaryParams)(nil), // 57: agent.StartActionRequest.PTSummaryParams + (*StartActionRequest_PTPgSummaryParams)(nil), // 58: agent.StartActionRequest.PTPgSummaryParams + (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 59: agent.StartActionRequest.PTMongoDBSummaryParams + (*StartActionRequest_PTMySQLSummaryParams)(nil), // 60: agent.StartActionRequest.PTMySQLSummaryParams + (*StartActionRequest_MySQLQueryShowParams)(nil), // 61: agent.StartActionRequest.MySQLQueryShowParams + (*StartActionRequest_MySQLQuerySelectParams)(nil), // 62: agent.StartActionRequest.MySQLQuerySelectParams + (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 63: agent.StartActionRequest.PostgreSQLQueryShowParams + (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 64: agent.StartActionRequest.PostgreSQLQuerySelectParams + (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 65: agent.StartActionRequest.MongoDBQueryGetParameterParams + (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 66: agent.StartActionRequest.MongoDBQueryBuildInfoParams + (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 67: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams + (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 68: agent.StartActionRequest.MongoDBQueryReplSetGetStatusParams + (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 69: agent.StartActionRequest.MongoDBQueryGetDiagnosticDataParams + (*CheckConnectionResponse_Stats)(nil), // 70: agent.CheckConnectionResponse.Stats + (*StartJobRequest_MySQLBackup)(nil), // 71: agent.StartJobRequest.MySQLBackup + (*StartJobRequest_MySQLRestoreBackup)(nil), // 72: agent.StartJobRequest.MySQLRestoreBackup + (*StartJobRequest_MongoDBBackup)(nil), // 73: agent.StartJobRequest.MongoDBBackup + (*StartJobRequest_MongoDBRestoreBackup)(nil), // 74: agent.StartJobRequest.MongoDBRestoreBackup + (*JobResult_Error)(nil), // 75: agent.JobResult.Error + (*JobResult_MongoDBBackup)(nil), // 76: agent.JobResult.MongoDBBackup + (*JobResult_MySQLBackup)(nil), // 77: agent.JobResult.MySQLBackup + (*JobResult_MySQLRestoreBackup)(nil), // 78: agent.JobResult.MySQLRestoreBackup + (*JobResult_MongoDBRestoreBackup)(nil), // 79: agent.JobResult.MongoDBRestoreBackup + (*JobProgress_MySQLBackup)(nil), // 80: agent.JobProgress.MySQLBackup + (*JobProgress_MySQLRestoreBackup)(nil), // 81: agent.JobProgress.MySQLRestoreBackup + (*JobProgress_Logs)(nil), // 82: agent.JobProgress.Logs + (*GetVersionsRequest_MySQLd)(nil), // 83: agent.GetVersionsRequest.MySQLd + (*GetVersionsRequest_Xtrabackup)(nil), // 84: agent.GetVersionsRequest.Xtrabackup + (*GetVersionsRequest_Xbcloud)(nil), // 85: agent.GetVersionsRequest.Xbcloud + (*GetVersionsRequest_Qpress)(nil), // 86: agent.GetVersionsRequest.Qpress + (*GetVersionsRequest_Software)(nil), // 87: agent.GetVersionsRequest.Software + (*GetVersionsResponse_Version)(nil), // 88: agent.GetVersionsResponse.Version + (*timestamppb.Timestamp)(nil), // 89: google.protobuf.Timestamp + (*MetricsBucket)(nil), // 90: agent.MetricsBucket + (inventorypb.AgentStatus)(0), // 91: inventory.AgentStatus + (*durationpb.Duration)(nil), // 92: google.protobuf.Duration + (inventorypb.ServiceType)(0), // 93: inventory.ServiceType + (*status.Status)(nil), // 94: google.rpc.Status + (inventorypb.AgentType)(0), // 95: inventory.AgentType + (backup.DataModel)(0), // 96: backup.v1beta1.DataModel +} var file_agentpb_agent_proto_depIdxs = []int32{ 43, // 0: agent.TextFiles.files:type_name -> agent.TextFiles.FilesEntry 89, // 1: agent.Pong.current_time:type_name -> google.protobuf.Timestamp @@ -7468,7 +7464,7 @@ var file_agentpb_agent_proto_depIdxs = []int32{ 69, // 33: agent.StartActionRequest.mongodb_query_getdiagnosticdata_params:type_name -> agent.StartActionRequest.MongoDBQueryGetDiagnosticDataParams 92, // 34: agent.StartActionRequest.timeout:type_name -> google.protobuf.Duration 1, // 35: agent.PBMSwitchPITRRequest.text_files:type_name -> agent.TextFiles - 93, // 36: agent.ParseCredentialsSourceRequest.service_type:type_name -> inventory.ServiceType + 93, // 36: agent.ParseServiceParamsSourceRequest.service_type:type_name -> inventory.ServiceType 93, // 37: agent.CheckConnectionRequest.type:type_name -> inventory.ServiceType 92, // 38: agent.CheckConnectionRequest.timeout:type_name -> google.protobuf.Duration 1, // 39: agent.CheckConnectionRequest.text_files:type_name -> agent.TextFiles @@ -7507,7 +7503,7 @@ var file_agentpb_agent_proto_depIdxs = []int32{ 38, // 72: agent.AgentMessage.job_progress:type_name -> agent.JobProgress 40, // 73: agent.AgentMessage.get_versions:type_name -> agent.GetVersionsResponse 22, // 74: agent.AgentMessage.pbm_switch_pitr:type_name -> agent.PBMSwitchPITRResponse - 24, // 75: agent.AgentMessage.parse_credentials_source:type_name -> agent.ParseCredentialsSourceResponse + 24, // 75: agent.AgentMessage.parse_service_params_source:type_name -> agent.ParseServiceParamsSourceResponse 26, // 76: agent.AgentMessage.agent_logs:type_name -> agent.AgentLogsResponse 94, // 77: agent.ServerMessage.status:type_name -> google.rpc.Status 3, // 78: agent.ServerMessage.pong:type_name -> agent.Pong @@ -7524,7 +7520,7 @@ var file_agentpb_agent_proto_depIdxs = []int32{ 29, // 89: agent.ServerMessage.job_status:type_name -> agent.JobStatusRequest 39, // 90: agent.ServerMessage.get_versions:type_name -> agent.GetVersionsRequest 21, // 91: agent.ServerMessage.pbm_switch_pitr:type_name -> agent.PBMSwitchPITRRequest - 23, // 92: agent.ServerMessage.parse_credentials_source:type_name -> agent.ParseCredentialsSourceRequest + 23, // 92: agent.ServerMessage.parse_service_params_source:type_name -> agent.ParseServiceParamsSourceRequest 25, // 93: agent.ServerMessage.agent_logs:type_name -> agent.AgentLogsRequest 95, // 94: agent.SetStateRequest.AgentProcess.type:type_name -> inventory.AgentType 48, // 95: agent.SetStateRequest.AgentProcess.text_files:type_name -> agent.SetStateRequest.AgentProcess.TextFilesEntry @@ -7843,7 +7839,7 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParseCredentialsSourceRequest); i { + switch v := v.(*ParseServiceParamsSourceRequest); i { case 0: return &v.state case 1: @@ -7855,7 +7851,7 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParseCredentialsSourceResponse); i { + switch v := v.(*ParseServiceParamsSourceResponse); i { case 0: return &v.state case 1: @@ -8644,7 +8640,7 @@ func file_agentpb_agent_proto_init() { (*AgentMessage_JobProgress)(nil), (*AgentMessage_GetVersions)(nil), (*AgentMessage_PbmSwitchPitr)(nil), - (*AgentMessage_ParseCredentialsSource)(nil), + (*AgentMessage_ParseServiceParamsSource)(nil), (*AgentMessage_AgentLogs)(nil), } file_agentpb_agent_proto_msgTypes[41].OneofWrappers = []interface{}{ @@ -8662,7 +8658,7 @@ func file_agentpb_agent_proto_init() { (*ServerMessage_JobStatus)(nil), (*ServerMessage_GetVersions)(nil), (*ServerMessage_PbmSwitchPitr)(nil), - (*ServerMessage_ParseCredentialsSource)(nil), + (*ServerMessage_ParseServiceParamsSource)(nil), (*ServerMessage_AgentLogs)(nil), } file_agentpb_agent_proto_msgTypes[70].OneofWrappers = []interface{}{ diff --git a/api/agentpb/agent.proto b/api/agentpb/agent.proto index f6744cb161..0c41d4b58a 100644 --- a/api/agentpb/agent.proto +++ b/api/agentpb/agent.proto @@ -395,8 +395,8 @@ message PBMSwitchPITRResponse { // Error message. string error = 1; } -// ParseCredentialsSourceRequest is an ServerMessage asking pmm-agent to parse credentials source file. -message ParseCredentialsSourceRequest { +// ParseServiceParamsSourceRequest is an ServerMessage asking pmm-agent to parse service parameters file. +message ParseServiceParamsSourceRequest { // Service type. inventory.ServiceType service_type = 1; @@ -404,8 +404,8 @@ message ParseCredentialsSourceRequest { string file_path = 2; } -// ParseCredentialsSourceResponse is an AgentMessage containing a result of parsing credentials source file. -message ParseCredentialsSourceResponse { +// ParseServiceParamsSourceResponse is an AgentMessage containing a result of parsing service parameters file. +message ParseServiceParamsSourceResponse { // Error message if parse failed. string error = 1; @@ -700,7 +700,7 @@ message AgentMessage { JobProgress job_progress = 17; GetVersionsResponse get_versions = 18; PBMSwitchPITRResponse pbm_switch_pitr = 19; - ParseCredentialsSourceResponse parse_credentials_source = 20; + ParseServiceParamsSourceResponse parse_service_params_source = 20; AgentLogsResponse agent_logs = 21; } } @@ -732,7 +732,7 @@ message ServerMessage { JobStatusRequest job_status = 15; GetVersionsRequest get_versions = 16; PBMSwitchPITRRequest pbm_switch_pitr = 17; - ParseCredentialsSourceRequest parse_credentials_source = 18; + ParseServiceParamsSourceRequest parse_service_params_source = 18; AgentLogsRequest agent_logs = 19; } } diff --git a/api/agentpb/agent.validator.pb.go b/api/agentpb/agent.validator.pb.go index f9cc298ed6..076e37662a 100644 --- a/api/agentpb/agent.validator.pb.go +++ b/api/agentpb/agent.validator.pb.go @@ -6,33 +6,27 @@ package agentpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/rpc/status" _ "google.golang.org/protobuf/types/known/durationpb" _ "google.golang.org/protobuf/types/known/timestamppb" - + _ "google.golang.org/genproto/googleapis/rpc/status" _ "github.com/percona/pmm/api/inventorypb" _ "github.com/percona/pmm/api/managementpb/backup" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *TextFiles) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *Ping) Validate() error { return nil } - func (this *Pong) Validate() error { if this.CurrentTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CurrentTime); err != nil { @@ -41,7 +35,6 @@ func (this *Pong) Validate() error { } return nil } - func (this *QANCollectRequest) Validate() error { for _, item := range this.MetricsBucket { if item != nil { @@ -52,30 +45,24 @@ func (this *QANCollectRequest) Validate() error { } return nil } - func (this *QANCollectResponse) Validate() error { return nil } - func (this *StateChangedRequest) Validate() error { return nil } - func (this *StateChangedResponse) Validate() error { return nil } - func (this *SetStateRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. return nil } - func (this *SetStateRequest_AgentProcess) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *SetStateRequest_BuiltinAgent) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -84,11 +71,9 @@ func (this *SetStateRequest_BuiltinAgent) Validate() error { } return nil } - func (this *SetStateResponse) Validate() error { return nil } - func (this *QueryActionValue) Validate() error { if oneOfNester, ok := this.GetKind().(*QueryActionValue_Timestamp); ok { if oneOfNester.Timestamp != nil { @@ -120,7 +105,6 @@ func (this *QueryActionValue) Validate() error { } return nil } - func (this *QueryActionSlice) Validate() error { for _, item := range this.Slice { if item != nil { @@ -131,16 +115,13 @@ func (this *QueryActionSlice) Validate() error { } return nil } - func (this *QueryActionMap) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *QueryActionBinary) Validate() error { return nil } - func (this *QueryActionResult) Validate() error { for _, item := range this.Rows { if item != nil { @@ -158,7 +139,6 @@ func (this *QueryActionResult) Validate() error { } return nil } - func (this *StartActionRequest) Validate() error { if oneOfNester, ok := this.GetParams().(*StartActionRequest_MysqlExplainParams); ok { if oneOfNester.MysqlExplainParams != nil { @@ -307,7 +287,6 @@ func (this *StartActionRequest) Validate() error { } return nil } - func (this *StartActionRequest_MySQLExplainParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -316,7 +295,6 @@ func (this *StartActionRequest_MySQLExplainParams) Validate() error { } return nil } - func (this *StartActionRequest_MySQLShowCreateTableParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -325,7 +303,6 @@ func (this *StartActionRequest_MySQLShowCreateTableParams) Validate() error { } return nil } - func (this *StartActionRequest_MySQLShowTableStatusParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -334,7 +311,6 @@ func (this *StartActionRequest_MySQLShowTableStatusParams) Validate() error { } return nil } - func (this *StartActionRequest_MySQLShowIndexParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -343,7 +319,6 @@ func (this *StartActionRequest_MySQLShowIndexParams) Validate() error { } return nil } - func (this *StartActionRequest_PostgreSQLShowCreateTableParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -352,7 +327,6 @@ func (this *StartActionRequest_PostgreSQLShowCreateTableParams) Validate() error } return nil } - func (this *StartActionRequest_PostgreSQLShowIndexParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -361,7 +335,6 @@ func (this *StartActionRequest_PostgreSQLShowIndexParams) Validate() error { } return nil } - func (this *StartActionRequest_MongoDBExplainParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -370,23 +343,18 @@ func (this *StartActionRequest_MongoDBExplainParams) Validate() error { } return nil } - func (this *StartActionRequest_PTSummaryParams) Validate() error { return nil } - func (this *StartActionRequest_PTPgSummaryParams) Validate() error { return nil } - func (this *StartActionRequest_PTMongoDBSummaryParams) Validate() error { return nil } - func (this *StartActionRequest_PTMySQLSummaryParams) Validate() error { return nil } - func (this *StartActionRequest_MySQLQueryShowParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -395,7 +363,6 @@ func (this *StartActionRequest_MySQLQueryShowParams) Validate() error { } return nil } - func (this *StartActionRequest_MySQLQuerySelectParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -404,7 +371,6 @@ func (this *StartActionRequest_MySQLQuerySelectParams) Validate() error { } return nil } - func (this *StartActionRequest_PostgreSQLQueryShowParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -413,7 +379,6 @@ func (this *StartActionRequest_PostgreSQLQueryShowParams) Validate() error { } return nil } - func (this *StartActionRequest_PostgreSQLQuerySelectParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -422,7 +387,6 @@ func (this *StartActionRequest_PostgreSQLQuerySelectParams) Validate() error { } return nil } - func (this *StartActionRequest_MongoDBQueryGetParameterParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -431,7 +395,6 @@ func (this *StartActionRequest_MongoDBQueryGetParameterParams) Validate() error } return nil } - func (this *StartActionRequest_MongoDBQueryBuildInfoParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -440,7 +403,6 @@ func (this *StartActionRequest_MongoDBQueryBuildInfoParams) Validate() error { } return nil } - func (this *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -449,7 +411,6 @@ func (this *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Validate() erro } return nil } - func (this *StartActionRequest_MongoDBQueryReplSetGetStatusParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -458,7 +419,6 @@ func (this *StartActionRequest_MongoDBQueryReplSetGetStatusParams) Validate() er } return nil } - func (this *StartActionRequest_MongoDBQueryGetDiagnosticDataParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -467,27 +427,21 @@ func (this *StartActionRequest_MongoDBQueryGetDiagnosticDataParams) Validate() e } return nil } - func (this *StartActionResponse) Validate() error { return nil } - func (this *StopActionRequest) Validate() error { return nil } - func (this *StopActionResponse) Validate() error { return nil } - func (this *ActionResultRequest) Validate() error { return nil } - func (this *ActionResultResponse) Validate() error { return nil } - func (this *PBMSwitchPITRRequest) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -496,27 +450,21 @@ func (this *PBMSwitchPITRRequest) Validate() error { } return nil } - func (this *PBMSwitchPITRResponse) Validate() error { return nil } - -func (this *ParseCredentialsSourceRequest) Validate() error { +func (this *ParseServiceParamsSourceRequest) Validate() error { return nil } - -func (this *ParseCredentialsSourceResponse) Validate() error { +func (this *ParseServiceParamsSourceResponse) Validate() error { return nil } - func (this *AgentLogsRequest) Validate() error { return nil } - func (this *AgentLogsResponse) Validate() error { return nil } - func (this *CheckConnectionRequest) Validate() error { if this.Timeout != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timeout); err != nil { @@ -530,7 +478,6 @@ func (this *CheckConnectionRequest) Validate() error { } return nil } - func (this *CheckConnectionResponse) Validate() error { if this.Stats != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Stats); err != nil { @@ -539,27 +486,21 @@ func (this *CheckConnectionResponse) Validate() error { } return nil } - func (this *CheckConnectionResponse_Stats) Validate() error { return nil } - func (this *JobStatusRequest) Validate() error { return nil } - func (this *JobStatusResponse) Validate() error { return nil } - func (this *S3LocationConfig) Validate() error { return nil } - func (this *PMMClientLocationConfig) Validate() error { return nil } - func (this *StartJobRequest) Validate() error { if this.Timeout != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timeout); err != nil { @@ -596,7 +537,6 @@ func (this *StartJobRequest) Validate() error { } return nil } - func (this *StartJobRequest_MySQLBackup) Validate() error { if oneOfNester, ok := this.GetLocationConfig().(*StartJobRequest_MySQLBackup_S3Config); ok { if oneOfNester.S3Config != nil { @@ -607,7 +547,6 @@ func (this *StartJobRequest_MySQLBackup) Validate() error { } return nil } - func (this *StartJobRequest_MySQLRestoreBackup) Validate() error { if oneOfNester, ok := this.GetLocationConfig().(*StartJobRequest_MySQLRestoreBackup_S3Config); ok { if oneOfNester.S3Config != nil { @@ -618,7 +557,6 @@ func (this *StartJobRequest_MySQLRestoreBackup) Validate() error { } return nil } - func (this *StartJobRequest_MongoDBBackup) Validate() error { if oneOfNester, ok := this.GetLocationConfig().(*StartJobRequest_MongoDBBackup_S3Config); ok { if oneOfNester.S3Config != nil { @@ -636,7 +574,6 @@ func (this *StartJobRequest_MongoDBBackup) Validate() error { } return nil } - func (this *StartJobRequest_MongoDBRestoreBackup) Validate() error { if this.PitrTimestamp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PitrTimestamp); err != nil { @@ -659,19 +596,15 @@ func (this *StartJobRequest_MongoDBRestoreBackup) Validate() error { } return nil } - func (this *StartJobResponse) Validate() error { return nil } - func (this *StopJobRequest) Validate() error { return nil } - func (this *StopJobResponse) Validate() error { return nil } - func (this *JobResult) Validate() error { if this.Timestamp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamp); err != nil { @@ -715,27 +648,21 @@ func (this *JobResult) Validate() error { } return nil } - func (this *JobResult_Error) Validate() error { return nil } - func (this *JobResult_MongoDBBackup) Validate() error { return nil } - func (this *JobResult_MySQLBackup) Validate() error { return nil } - func (this *JobResult_MySQLRestoreBackup) Validate() error { return nil } - func (this *JobResult_MongoDBRestoreBackup) Validate() error { return nil } - func (this *JobProgress) Validate() error { if this.Timestamp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamp); err != nil { @@ -765,19 +692,15 @@ func (this *JobProgress) Validate() error { } return nil } - func (this *JobProgress_MySQLBackup) Validate() error { return nil } - func (this *JobProgress_MySQLRestoreBackup) Validate() error { return nil } - func (this *JobProgress_Logs) Validate() error { return nil } - func (this *GetVersionsRequest) Validate() error { for _, item := range this.Softwares { if item != nil { @@ -788,23 +711,18 @@ func (this *GetVersionsRequest) Validate() error { } return nil } - func (this *GetVersionsRequest_MySQLd) Validate() error { return nil } - func (this *GetVersionsRequest_Xtrabackup) Validate() error { return nil } - func (this *GetVersionsRequest_Xbcloud) Validate() error { return nil } - func (this *GetVersionsRequest_Qpress) Validate() error { return nil } - func (this *GetVersionsRequest_Software) Validate() error { if oneOfNester, ok := this.GetSoftware().(*GetVersionsRequest_Software_Mysqld); ok { if oneOfNester.Mysqld != nil { @@ -836,7 +754,6 @@ func (this *GetVersionsRequest_Software) Validate() error { } return nil } - func (this *GetVersionsResponse) Validate() error { for _, item := range this.Versions { if item != nil { @@ -847,11 +764,9 @@ func (this *GetVersionsResponse) Validate() error { } return nil } - func (this *GetVersionsResponse_Version) Validate() error { return nil } - func (this *AgentMessage) Validate() error { if this.Status != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Status); err != nil { @@ -970,10 +885,10 @@ func (this *AgentMessage) Validate() error { } } } - if oneOfNester, ok := this.GetPayload().(*AgentMessage_ParseCredentialsSource); ok { - if oneOfNester.ParseCredentialsSource != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseCredentialsSource); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("ParseCredentialsSource", err) + if oneOfNester, ok := this.GetPayload().(*AgentMessage_ParseServiceParamsSource); ok { + if oneOfNester.ParseServiceParamsSource != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseServiceParamsSource); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("ParseServiceParamsSource", err) } } } @@ -986,7 +901,6 @@ func (this *AgentMessage) Validate() error { } return nil } - func (this *ServerMessage) Validate() error { if this.Status != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Status); err != nil { @@ -1091,10 +1005,10 @@ func (this *ServerMessage) Validate() error { } } } - if oneOfNester, ok := this.GetPayload().(*ServerMessage_ParseCredentialsSource); ok { - if oneOfNester.ParseCredentialsSource != nil { - if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseCredentialsSource); err != nil { - return github_com_mwitkow_go_proto_validators.FieldError("ParseCredentialsSource", err) + if oneOfNester, ok := this.GetPayload().(*ServerMessage_ParseServiceParamsSource); ok { + if oneOfNester.ParseServiceParamsSource != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.ParseServiceParamsSource); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("ParseServiceParamsSource", err) } } } diff --git a/api/agentpb/agent_grpc.pb.go b/api/agentpb/agent_grpc.pb.go index 688c0c0df5..881f5482f7 100644 --- a/api/agentpb/agent_grpc.pb.go +++ b/api/agentpb/agent_grpc.pb.go @@ -8,7 +8,6 @@ package agentpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -76,7 +75,8 @@ type AgentServer interface { } // UnimplementedAgentServer must be embedded to have forward compatible implementations. -type UnimplementedAgentServer struct{} +type UnimplementedAgentServer struct { +} func (UnimplementedAgentServer) Connect(Agent_ConnectServer) error { return status.Errorf(codes.Unimplemented, "method Connect not implemented") diff --git a/api/agentpb/collector.pb.go b/api/agentpb/collector.pb.go index a83128ef5a..6d31a31830 100644 --- a/api/agentpb/collector.pb.go +++ b/api/agentpb/collector.pb.go @@ -7,13 +7,11 @@ package agentpb import ( - reflect "reflect" - sync "sync" - + inventorypb "github.com/percona/pmm/api/inventorypb" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -2792,23 +2790,20 @@ func file_agentpb_collector_proto_rawDescGZIP() []byte { return file_agentpb_collector_proto_rawDescData } -var ( - file_agentpb_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_agentpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 7) - file_agentpb_collector_proto_goTypes = []interface{}{ - (ExampleFormat)(0), // 0: agent.ExampleFormat - (ExampleType)(0), // 1: agent.ExampleType - (*MetricsBucket)(nil), // 2: agent.MetricsBucket - (*HistogramItem)(nil), // 3: agent.HistogramItem - (*MetricsBucket_Common)(nil), // 4: agent.MetricsBucket.Common - (*MetricsBucket_MySQL)(nil), // 5: agent.MetricsBucket.MySQL - (*MetricsBucket_MongoDB)(nil), // 6: agent.MetricsBucket.MongoDB - (*MetricsBucket_PostgreSQL)(nil), // 7: agent.MetricsBucket.PostgreSQL - nil, // 8: agent.MetricsBucket.Common.ErrorsEntry - (inventorypb.AgentType)(0), // 9: inventory.AgentType - } -) - +var file_agentpb_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_agentpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_agentpb_collector_proto_goTypes = []interface{}{ + (ExampleFormat)(0), // 0: agent.ExampleFormat + (ExampleType)(0), // 1: agent.ExampleType + (*MetricsBucket)(nil), // 2: agent.MetricsBucket + (*HistogramItem)(nil), // 3: agent.HistogramItem + (*MetricsBucket_Common)(nil), // 4: agent.MetricsBucket.Common + (*MetricsBucket_MySQL)(nil), // 5: agent.MetricsBucket.MySQL + (*MetricsBucket_MongoDB)(nil), // 6: agent.MetricsBucket.MongoDB + (*MetricsBucket_PostgreSQL)(nil), // 7: agent.MetricsBucket.PostgreSQL + nil, // 8: agent.MetricsBucket.Common.ErrorsEntry + (inventorypb.AgentType)(0), // 9: inventory.AgentType +} var file_agentpb_collector_proto_depIdxs = []int32{ 4, // 0: agent.MetricsBucket.common:type_name -> agent.MetricsBucket.Common 5, // 1: agent.MetricsBucket.mysql:type_name -> agent.MetricsBucket.MySQL diff --git a/api/agentpb/collector.validator.pb.go b/api/agentpb/collector.validator.pb.go index a2636b9f1c..fb0c9f4b9e 100644 --- a/api/agentpb/collector.validator.pb.go +++ b/api/agentpb/collector.validator.pb.go @@ -6,19 +6,15 @@ package agentpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *MetricsBucket) Validate() error { if this.Common != nil { @@ -43,20 +39,16 @@ func (this *MetricsBucket) Validate() error { } return nil } - func (this *MetricsBucket_Common) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *MetricsBucket_MySQL) Validate() error { return nil } - func (this *MetricsBucket_MongoDB) Validate() error { return nil } - func (this *MetricsBucket_PostgreSQL) Validate() error { for _, item := range this.HistogramItems { if item != nil { @@ -67,7 +59,6 @@ func (this *MetricsBucket_PostgreSQL) Validate() error { } return nil } - func (this *HistogramItem) Validate() error { return nil } diff --git a/api/inventorypb/agent_status.pb.go b/api/inventorypb/agent_status.pb.go index 194d419e6c..5419fd5ecd 100644 --- a/api/inventorypb/agent_status.pb.go +++ b/api/inventorypb/agent_status.pb.go @@ -7,11 +7,10 @@ package inventorypb import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -126,13 +125,10 @@ func file_inventorypb_agent_status_proto_rawDescGZIP() []byte { return file_inventorypb_agent_status_proto_rawDescData } -var ( - file_inventorypb_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventorypb_agent_status_proto_goTypes = []interface{}{ - (AgentStatus)(0), // 0: inventory.AgentStatus - } -) - +var file_inventorypb_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventorypb_agent_status_proto_goTypes = []interface{}{ + (AgentStatus)(0), // 0: inventory.AgentStatus +} var file_inventorypb_agent_status_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/inventorypb/agent_status.validator.pb.go b/api/inventorypb/agent_status.validator.pb.go index 42b48185ac..150f1b6f25 100644 --- a/api/inventorypb/agent_status.validator.pb.go +++ b/api/inventorypb/agent_status.validator.pb.go @@ -6,13 +6,10 @@ package inventorypb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/inventorypb/agents.pb.go b/api/inventorypb/agents.pb.go index a068c3e35b..a7f0925d28 100644 --- a/api/inventorypb/agents.pb.go +++ b/api/inventorypb/agents.pb.go @@ -7,14 +7,13 @@ package inventorypb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -9499,123 +9498,120 @@ func file_inventorypb_agents_proto_rawDescGZIP() []byte { return file_inventorypb_agents_proto_rawDescData } -var ( - file_inventorypb_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventorypb_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) - file_inventorypb_agents_proto_goTypes = []interface{}{ - (AgentType)(0), // 0: inventory.AgentType - (*PMMAgent)(nil), // 1: inventory.PMMAgent - (*VMAgent)(nil), // 2: inventory.VMAgent - (*NodeExporter)(nil), // 3: inventory.NodeExporter - (*MySQLdExporter)(nil), // 4: inventory.MySQLdExporter - (*MongoDBExporter)(nil), // 5: inventory.MongoDBExporter - (*PostgresExporter)(nil), // 6: inventory.PostgresExporter - (*ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter - (*QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent - (*QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent - (*QANMongoDBProfilerAgent)(nil), // 10: inventory.QANMongoDBProfilerAgent - (*QANPostgreSQLPgStatementsAgent)(nil), // 11: inventory.QANPostgreSQLPgStatementsAgent - (*QANPostgreSQLPgStatMonitorAgent)(nil), // 12: inventory.QANPostgreSQLPgStatMonitorAgent - (*RDSExporter)(nil), // 13: inventory.RDSExporter - (*ExternalExporter)(nil), // 14: inventory.ExternalExporter - (*AzureDatabaseExporter)(nil), // 15: inventory.AzureDatabaseExporter - (*ChangeCommonAgentParams)(nil), // 16: inventory.ChangeCommonAgentParams - (*ListAgentsRequest)(nil), // 17: inventory.ListAgentsRequest - (*ListAgentsResponse)(nil), // 18: inventory.ListAgentsResponse - (*GetAgentRequest)(nil), // 19: inventory.GetAgentRequest - (*GetAgentResponse)(nil), // 20: inventory.GetAgentResponse - (*GetAgentLogsRequest)(nil), // 21: inventory.GetAgentLogsRequest - (*GetAgentLogsResponse)(nil), // 22: inventory.GetAgentLogsResponse - (*AddPMMAgentRequest)(nil), // 23: inventory.AddPMMAgentRequest - (*AddPMMAgentResponse)(nil), // 24: inventory.AddPMMAgentResponse - (*AddNodeExporterRequest)(nil), // 25: inventory.AddNodeExporterRequest - (*AddNodeExporterResponse)(nil), // 26: inventory.AddNodeExporterResponse - (*ChangeNodeExporterRequest)(nil), // 27: inventory.ChangeNodeExporterRequest - (*ChangeNodeExporterResponse)(nil), // 28: inventory.ChangeNodeExporterResponse - (*AddMySQLdExporterRequest)(nil), // 29: inventory.AddMySQLdExporterRequest - (*AddMySQLdExporterResponse)(nil), // 30: inventory.AddMySQLdExporterResponse - (*ChangeMySQLdExporterRequest)(nil), // 31: inventory.ChangeMySQLdExporterRequest - (*ChangeMySQLdExporterResponse)(nil), // 32: inventory.ChangeMySQLdExporterResponse - (*AddMongoDBExporterRequest)(nil), // 33: inventory.AddMongoDBExporterRequest - (*AddMongoDBExporterResponse)(nil), // 34: inventory.AddMongoDBExporterResponse - (*ChangeMongoDBExporterRequest)(nil), // 35: inventory.ChangeMongoDBExporterRequest - (*ChangeMongoDBExporterResponse)(nil), // 36: inventory.ChangeMongoDBExporterResponse - (*AddPostgresExporterRequest)(nil), // 37: inventory.AddPostgresExporterRequest - (*AddPostgresExporterResponse)(nil), // 38: inventory.AddPostgresExporterResponse - (*ChangePostgresExporterRequest)(nil), // 39: inventory.ChangePostgresExporterRequest - (*ChangePostgresExporterResponse)(nil), // 40: inventory.ChangePostgresExporterResponse - (*AddProxySQLExporterRequest)(nil), // 41: inventory.AddProxySQLExporterRequest - (*AddProxySQLExporterResponse)(nil), // 42: inventory.AddProxySQLExporterResponse - (*ChangeProxySQLExporterRequest)(nil), // 43: inventory.ChangeProxySQLExporterRequest - (*ChangeProxySQLExporterResponse)(nil), // 44: inventory.ChangeProxySQLExporterResponse - (*AddQANMySQLPerfSchemaAgentRequest)(nil), // 45: inventory.AddQANMySQLPerfSchemaAgentRequest - (*AddQANMySQLPerfSchemaAgentResponse)(nil), // 46: inventory.AddQANMySQLPerfSchemaAgentResponse - (*ChangeQANMySQLPerfSchemaAgentRequest)(nil), // 47: inventory.ChangeQANMySQLPerfSchemaAgentRequest - (*ChangeQANMySQLPerfSchemaAgentResponse)(nil), // 48: inventory.ChangeQANMySQLPerfSchemaAgentResponse - (*AddQANMySQLSlowlogAgentRequest)(nil), // 49: inventory.AddQANMySQLSlowlogAgentRequest - (*AddQANMySQLSlowlogAgentResponse)(nil), // 50: inventory.AddQANMySQLSlowlogAgentResponse - (*ChangeQANMySQLSlowlogAgentRequest)(nil), // 51: inventory.ChangeQANMySQLSlowlogAgentRequest - (*ChangeQANMySQLSlowlogAgentResponse)(nil), // 52: inventory.ChangeQANMySQLSlowlogAgentResponse - (*AddQANMongoDBProfilerAgentRequest)(nil), // 53: inventory.AddQANMongoDBProfilerAgentRequest - (*AddQANMongoDBProfilerAgentResponse)(nil), // 54: inventory.AddQANMongoDBProfilerAgentResponse - (*ChangeQANMongoDBProfilerAgentRequest)(nil), // 55: inventory.ChangeQANMongoDBProfilerAgentRequest - (*ChangeQANMongoDBProfilerAgentResponse)(nil), // 56: inventory.ChangeQANMongoDBProfilerAgentResponse - (*AddQANPostgreSQLPgStatementsAgentRequest)(nil), // 57: inventory.AddQANPostgreSQLPgStatementsAgentRequest - (*AddQANPostgreSQLPgStatementsAgentResponse)(nil), // 58: inventory.AddQANPostgreSQLPgStatementsAgentResponse - (*ChangeQANPostgreSQLPgStatementsAgentRequest)(nil), // 59: inventory.ChangeQANPostgreSQLPgStatementsAgentRequest - (*ChangeQANPostgreSQLPgStatementsAgentResponse)(nil), // 60: inventory.ChangeQANPostgreSQLPgStatementsAgentResponse - (*AddQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 61: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest - (*AddQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 62: inventory.AddQANPostgreSQLPgStatMonitorAgentResponse - (*ChangeQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 63: inventory.ChangeQANPostgreSQLPgStatMonitorAgentRequest - (*ChangeQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 64: inventory.ChangeQANPostgreSQLPgStatMonitorAgentResponse - (*AddRDSExporterRequest)(nil), // 65: inventory.AddRDSExporterRequest - (*AddRDSExporterResponse)(nil), // 66: inventory.AddRDSExporterResponse - (*ChangeRDSExporterRequest)(nil), // 67: inventory.ChangeRDSExporterRequest - (*ChangeRDSExporterResponse)(nil), // 68: inventory.ChangeRDSExporterResponse - (*AddExternalExporterRequest)(nil), // 69: inventory.AddExternalExporterRequest - (*AddExternalExporterResponse)(nil), // 70: inventory.AddExternalExporterResponse - (*ChangeExternalExporterRequest)(nil), // 71: inventory.ChangeExternalExporterRequest - (*ChangeExternalExporterResponse)(nil), // 72: inventory.ChangeExternalExporterResponse - (*AddAzureDatabaseExporterRequest)(nil), // 73: inventory.AddAzureDatabaseExporterRequest - (*AddAzureDatabaseExporterResponse)(nil), // 74: inventory.AddAzureDatabaseExporterResponse - (*ChangeAzureDatabaseExporterRequest)(nil), // 75: inventory.ChangeAzureDatabaseExporterRequest - (*ChangeAzureDatabaseExporterResponse)(nil), // 76: inventory.ChangeAzureDatabaseExporterResponse - (*RemoveAgentRequest)(nil), // 77: inventory.RemoveAgentRequest - (*RemoveAgentResponse)(nil), // 78: inventory.RemoveAgentResponse - nil, // 79: inventory.PMMAgent.CustomLabelsEntry - nil, // 80: inventory.NodeExporter.CustomLabelsEntry - nil, // 81: inventory.MySQLdExporter.CustomLabelsEntry - nil, // 82: inventory.MongoDBExporter.CustomLabelsEntry - nil, // 83: inventory.PostgresExporter.CustomLabelsEntry - nil, // 84: inventory.ProxySQLExporter.CustomLabelsEntry - nil, // 85: inventory.QANMySQLPerfSchemaAgent.CustomLabelsEntry - nil, // 86: inventory.QANMySQLSlowlogAgent.CustomLabelsEntry - nil, // 87: inventory.QANMongoDBProfilerAgent.CustomLabelsEntry - nil, // 88: inventory.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry - nil, // 89: inventory.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry - nil, // 90: inventory.RDSExporter.CustomLabelsEntry - nil, // 91: inventory.ExternalExporter.CustomLabelsEntry - nil, // 92: inventory.AzureDatabaseExporter.CustomLabelsEntry - nil, // 93: inventory.ChangeCommonAgentParams.CustomLabelsEntry - nil, // 94: inventory.AddPMMAgentRequest.CustomLabelsEntry - nil, // 95: inventory.AddNodeExporterRequest.CustomLabelsEntry - nil, // 96: inventory.AddMySQLdExporterRequest.CustomLabelsEntry - nil, // 97: inventory.AddMongoDBExporterRequest.CustomLabelsEntry - nil, // 98: inventory.AddPostgresExporterRequest.CustomLabelsEntry - nil, // 99: inventory.AddProxySQLExporterRequest.CustomLabelsEntry - nil, // 100: inventory.AddQANMySQLPerfSchemaAgentRequest.CustomLabelsEntry - nil, // 101: inventory.AddQANMySQLSlowlogAgentRequest.CustomLabelsEntry - nil, // 102: inventory.AddQANMongoDBProfilerAgentRequest.CustomLabelsEntry - nil, // 103: inventory.AddQANPostgreSQLPgStatementsAgentRequest.CustomLabelsEntry - nil, // 104: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest.CustomLabelsEntry - nil, // 105: inventory.AddRDSExporterRequest.CustomLabelsEntry - nil, // 106: inventory.AddExternalExporterRequest.CustomLabelsEntry - nil, // 107: inventory.AddAzureDatabaseExporterRequest.CustomLabelsEntry - (AgentStatus)(0), // 108: inventory.AgentStatus - (LogLevel)(0), // 109: inventory.LogLevel - } -) - +var file_inventorypb_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventorypb_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) +var file_inventorypb_agents_proto_goTypes = []interface{}{ + (AgentType)(0), // 0: inventory.AgentType + (*PMMAgent)(nil), // 1: inventory.PMMAgent + (*VMAgent)(nil), // 2: inventory.VMAgent + (*NodeExporter)(nil), // 3: inventory.NodeExporter + (*MySQLdExporter)(nil), // 4: inventory.MySQLdExporter + (*MongoDBExporter)(nil), // 5: inventory.MongoDBExporter + (*PostgresExporter)(nil), // 6: inventory.PostgresExporter + (*ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter + (*QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent + (*QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent + (*QANMongoDBProfilerAgent)(nil), // 10: inventory.QANMongoDBProfilerAgent + (*QANPostgreSQLPgStatementsAgent)(nil), // 11: inventory.QANPostgreSQLPgStatementsAgent + (*QANPostgreSQLPgStatMonitorAgent)(nil), // 12: inventory.QANPostgreSQLPgStatMonitorAgent + (*RDSExporter)(nil), // 13: inventory.RDSExporter + (*ExternalExporter)(nil), // 14: inventory.ExternalExporter + (*AzureDatabaseExporter)(nil), // 15: inventory.AzureDatabaseExporter + (*ChangeCommonAgentParams)(nil), // 16: inventory.ChangeCommonAgentParams + (*ListAgentsRequest)(nil), // 17: inventory.ListAgentsRequest + (*ListAgentsResponse)(nil), // 18: inventory.ListAgentsResponse + (*GetAgentRequest)(nil), // 19: inventory.GetAgentRequest + (*GetAgentResponse)(nil), // 20: inventory.GetAgentResponse + (*GetAgentLogsRequest)(nil), // 21: inventory.GetAgentLogsRequest + (*GetAgentLogsResponse)(nil), // 22: inventory.GetAgentLogsResponse + (*AddPMMAgentRequest)(nil), // 23: inventory.AddPMMAgentRequest + (*AddPMMAgentResponse)(nil), // 24: inventory.AddPMMAgentResponse + (*AddNodeExporterRequest)(nil), // 25: inventory.AddNodeExporterRequest + (*AddNodeExporterResponse)(nil), // 26: inventory.AddNodeExporterResponse + (*ChangeNodeExporterRequest)(nil), // 27: inventory.ChangeNodeExporterRequest + (*ChangeNodeExporterResponse)(nil), // 28: inventory.ChangeNodeExporterResponse + (*AddMySQLdExporterRequest)(nil), // 29: inventory.AddMySQLdExporterRequest + (*AddMySQLdExporterResponse)(nil), // 30: inventory.AddMySQLdExporterResponse + (*ChangeMySQLdExporterRequest)(nil), // 31: inventory.ChangeMySQLdExporterRequest + (*ChangeMySQLdExporterResponse)(nil), // 32: inventory.ChangeMySQLdExporterResponse + (*AddMongoDBExporterRequest)(nil), // 33: inventory.AddMongoDBExporterRequest + (*AddMongoDBExporterResponse)(nil), // 34: inventory.AddMongoDBExporterResponse + (*ChangeMongoDBExporterRequest)(nil), // 35: inventory.ChangeMongoDBExporterRequest + (*ChangeMongoDBExporterResponse)(nil), // 36: inventory.ChangeMongoDBExporterResponse + (*AddPostgresExporterRequest)(nil), // 37: inventory.AddPostgresExporterRequest + (*AddPostgresExporterResponse)(nil), // 38: inventory.AddPostgresExporterResponse + (*ChangePostgresExporterRequest)(nil), // 39: inventory.ChangePostgresExporterRequest + (*ChangePostgresExporterResponse)(nil), // 40: inventory.ChangePostgresExporterResponse + (*AddProxySQLExporterRequest)(nil), // 41: inventory.AddProxySQLExporterRequest + (*AddProxySQLExporterResponse)(nil), // 42: inventory.AddProxySQLExporterResponse + (*ChangeProxySQLExporterRequest)(nil), // 43: inventory.ChangeProxySQLExporterRequest + (*ChangeProxySQLExporterResponse)(nil), // 44: inventory.ChangeProxySQLExporterResponse + (*AddQANMySQLPerfSchemaAgentRequest)(nil), // 45: inventory.AddQANMySQLPerfSchemaAgentRequest + (*AddQANMySQLPerfSchemaAgentResponse)(nil), // 46: inventory.AddQANMySQLPerfSchemaAgentResponse + (*ChangeQANMySQLPerfSchemaAgentRequest)(nil), // 47: inventory.ChangeQANMySQLPerfSchemaAgentRequest + (*ChangeQANMySQLPerfSchemaAgentResponse)(nil), // 48: inventory.ChangeQANMySQLPerfSchemaAgentResponse + (*AddQANMySQLSlowlogAgentRequest)(nil), // 49: inventory.AddQANMySQLSlowlogAgentRequest + (*AddQANMySQLSlowlogAgentResponse)(nil), // 50: inventory.AddQANMySQLSlowlogAgentResponse + (*ChangeQANMySQLSlowlogAgentRequest)(nil), // 51: inventory.ChangeQANMySQLSlowlogAgentRequest + (*ChangeQANMySQLSlowlogAgentResponse)(nil), // 52: inventory.ChangeQANMySQLSlowlogAgentResponse + (*AddQANMongoDBProfilerAgentRequest)(nil), // 53: inventory.AddQANMongoDBProfilerAgentRequest + (*AddQANMongoDBProfilerAgentResponse)(nil), // 54: inventory.AddQANMongoDBProfilerAgentResponse + (*ChangeQANMongoDBProfilerAgentRequest)(nil), // 55: inventory.ChangeQANMongoDBProfilerAgentRequest + (*ChangeQANMongoDBProfilerAgentResponse)(nil), // 56: inventory.ChangeQANMongoDBProfilerAgentResponse + (*AddQANPostgreSQLPgStatementsAgentRequest)(nil), // 57: inventory.AddQANPostgreSQLPgStatementsAgentRequest + (*AddQANPostgreSQLPgStatementsAgentResponse)(nil), // 58: inventory.AddQANPostgreSQLPgStatementsAgentResponse + (*ChangeQANPostgreSQLPgStatementsAgentRequest)(nil), // 59: inventory.ChangeQANPostgreSQLPgStatementsAgentRequest + (*ChangeQANPostgreSQLPgStatementsAgentResponse)(nil), // 60: inventory.ChangeQANPostgreSQLPgStatementsAgentResponse + (*AddQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 61: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest + (*AddQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 62: inventory.AddQANPostgreSQLPgStatMonitorAgentResponse + (*ChangeQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 63: inventory.ChangeQANPostgreSQLPgStatMonitorAgentRequest + (*ChangeQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 64: inventory.ChangeQANPostgreSQLPgStatMonitorAgentResponse + (*AddRDSExporterRequest)(nil), // 65: inventory.AddRDSExporterRequest + (*AddRDSExporterResponse)(nil), // 66: inventory.AddRDSExporterResponse + (*ChangeRDSExporterRequest)(nil), // 67: inventory.ChangeRDSExporterRequest + (*ChangeRDSExporterResponse)(nil), // 68: inventory.ChangeRDSExporterResponse + (*AddExternalExporterRequest)(nil), // 69: inventory.AddExternalExporterRequest + (*AddExternalExporterResponse)(nil), // 70: inventory.AddExternalExporterResponse + (*ChangeExternalExporterRequest)(nil), // 71: inventory.ChangeExternalExporterRequest + (*ChangeExternalExporterResponse)(nil), // 72: inventory.ChangeExternalExporterResponse + (*AddAzureDatabaseExporterRequest)(nil), // 73: inventory.AddAzureDatabaseExporterRequest + (*AddAzureDatabaseExporterResponse)(nil), // 74: inventory.AddAzureDatabaseExporterResponse + (*ChangeAzureDatabaseExporterRequest)(nil), // 75: inventory.ChangeAzureDatabaseExporterRequest + (*ChangeAzureDatabaseExporterResponse)(nil), // 76: inventory.ChangeAzureDatabaseExporterResponse + (*RemoveAgentRequest)(nil), // 77: inventory.RemoveAgentRequest + (*RemoveAgentResponse)(nil), // 78: inventory.RemoveAgentResponse + nil, // 79: inventory.PMMAgent.CustomLabelsEntry + nil, // 80: inventory.NodeExporter.CustomLabelsEntry + nil, // 81: inventory.MySQLdExporter.CustomLabelsEntry + nil, // 82: inventory.MongoDBExporter.CustomLabelsEntry + nil, // 83: inventory.PostgresExporter.CustomLabelsEntry + nil, // 84: inventory.ProxySQLExporter.CustomLabelsEntry + nil, // 85: inventory.QANMySQLPerfSchemaAgent.CustomLabelsEntry + nil, // 86: inventory.QANMySQLSlowlogAgent.CustomLabelsEntry + nil, // 87: inventory.QANMongoDBProfilerAgent.CustomLabelsEntry + nil, // 88: inventory.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry + nil, // 89: inventory.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry + nil, // 90: inventory.RDSExporter.CustomLabelsEntry + nil, // 91: inventory.ExternalExporter.CustomLabelsEntry + nil, // 92: inventory.AzureDatabaseExporter.CustomLabelsEntry + nil, // 93: inventory.ChangeCommonAgentParams.CustomLabelsEntry + nil, // 94: inventory.AddPMMAgentRequest.CustomLabelsEntry + nil, // 95: inventory.AddNodeExporterRequest.CustomLabelsEntry + nil, // 96: inventory.AddMySQLdExporterRequest.CustomLabelsEntry + nil, // 97: inventory.AddMongoDBExporterRequest.CustomLabelsEntry + nil, // 98: inventory.AddPostgresExporterRequest.CustomLabelsEntry + nil, // 99: inventory.AddProxySQLExporterRequest.CustomLabelsEntry + nil, // 100: inventory.AddQANMySQLPerfSchemaAgentRequest.CustomLabelsEntry + nil, // 101: inventory.AddQANMySQLSlowlogAgentRequest.CustomLabelsEntry + nil, // 102: inventory.AddQANMongoDBProfilerAgentRequest.CustomLabelsEntry + nil, // 103: inventory.AddQANPostgreSQLPgStatementsAgentRequest.CustomLabelsEntry + nil, // 104: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest.CustomLabelsEntry + nil, // 105: inventory.AddRDSExporterRequest.CustomLabelsEntry + nil, // 106: inventory.AddExternalExporterRequest.CustomLabelsEntry + nil, // 107: inventory.AddAzureDatabaseExporterRequest.CustomLabelsEntry + (AgentStatus)(0), // 108: inventory.AgentStatus + (LogLevel)(0), // 109: inventory.LogLevel +} var file_inventorypb_agents_proto_depIdxs = []int32{ 79, // 0: inventory.PMMAgent.custom_labels:type_name -> inventory.PMMAgent.CustomLabelsEntry 108, // 1: inventory.VMAgent.status:type_name -> inventory.AgentStatus diff --git a/api/inventorypb/agents.pb.gw.go b/api/inventorypb/agents.pb.gw.go index 4c935e5831..556acffa7e 100644 --- a/api/inventorypb/agents.pb.gw.go +++ b/api/inventorypb/agents.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListAgentsRequest @@ -47,6 +45,7 @@ func request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.ListAgents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Ma msg, err := server.ListAgents(ctx, &protoReq) return msg, metadata, err + } func request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Mars msg, err := server.GetAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.GetAgentLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime. msg, err := server.GetAgentLogs(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.AddPMMAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.M msg, err := server.AddPMMAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AddNodeExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runti msg, err := server.AddNodeExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler runtime. msg, err := client.ChangeNodeExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler ru msg, err := server.ChangeNodeExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.M msg, err := client.AddMySQLdExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler run msg, err := server.AddMySQLdExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -271,6 +283,7 @@ func request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtim msg, err := client.ChangeMySQLdExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -287,6 +300,7 @@ func local_request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler msg, err := server.ChangeMySQLdExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -303,6 +317,7 @@ func request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler runtime. msg, err := client.AddMongoDBExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -319,6 +334,7 @@ func local_request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler ru msg, err := server.AddMongoDBExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -335,6 +351,7 @@ func request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler runti msg, err := client.ChangeMongoDBExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -351,6 +368,7 @@ func local_request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler msg, err := server.ChangeMongoDBExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -367,6 +385,7 @@ func request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler runtime msg, err := client.AddPostgresExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -383,6 +402,7 @@ func local_request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler r msg, err := server.AddPostgresExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangePostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -399,6 +419,7 @@ func request_Agents_ChangePostgresExporter_0(ctx context.Context, marshaler runt msg, err := client.ChangePostgresExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangePostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -415,6 +436,7 @@ func local_request_Agents_ChangePostgresExporter_0(ctx context.Context, marshale msg, err := server.ChangePostgresExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -431,6 +453,7 @@ func request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler runtime msg, err := client.AddProxySQLExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -447,6 +470,7 @@ func local_request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler r msg, err := server.AddProxySQLExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -463,6 +487,7 @@ func request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshaler runt msg, err := client.ChangeProxySQLExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -479,6 +504,7 @@ func local_request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshale msg, err := server.ChangeProxySQLExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -495,6 +521,7 @@ func request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler msg, err := client.AddQANMySQLPerfSchemaAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -511,6 +538,7 @@ func local_request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, mars msg, err := server.AddQANMySQLPerfSchemaAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -527,6 +555,7 @@ func request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshal msg, err := client.ChangeQANMySQLPerfSchemaAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -543,6 +572,7 @@ func local_request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, m msg, err := server.ChangeQANMySQLPerfSchemaAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -559,6 +589,7 @@ func request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler run msg, err := client.AddQANMySQLSlowlogAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -575,6 +606,7 @@ func local_request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshal msg, err := server.AddQANMySQLSlowlogAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -591,6 +623,7 @@ func request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler msg, err := client.ChangeQANMySQLSlowlogAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -607,6 +640,7 @@ func local_request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, mars msg, err := server.ChangeQANMySQLSlowlogAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -623,6 +657,7 @@ func request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler msg, err := client.AddQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -639,6 +674,7 @@ func local_request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, mars msg, err := server.AddQANMongoDBProfilerAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -655,6 +691,7 @@ func request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshal msg, err := client.ChangeQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -671,6 +708,7 @@ func local_request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, m msg, err := server.ChangeQANMongoDBProfilerAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -687,6 +725,7 @@ func request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, mar msg, err := client.AddQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -703,6 +742,7 @@ func local_request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Contex msg, err := server.AddQANPostgreSQLPgStatementsAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -719,6 +759,7 @@ func request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, msg, err := client.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -735,6 +776,7 @@ func local_request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Con msg, err := server.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -751,6 +793,7 @@ func request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, ma msg, err := client.AddQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -767,6 +810,7 @@ func local_request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Conte msg, err := server.AddQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -783,6 +827,7 @@ func request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, msg, err := client.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -799,6 +844,7 @@ func local_request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Co msg, err := server.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -815,6 +861,7 @@ func request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtime.Mars msg, err := client.AddRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -831,6 +878,7 @@ func local_request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtim msg, err := server.AddRDSExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -847,6 +895,7 @@ func request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.M msg, err := client.ChangeRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -863,6 +912,7 @@ func local_request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler run msg, err := server.ChangeRDSExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -879,6 +929,7 @@ func request_Agents_AddExternalExporter_0(ctx context.Context, marshaler runtime msg, err := client.AddExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -895,6 +946,7 @@ func local_request_Agents_AddExternalExporter_0(ctx context.Context, marshaler r msg, err := server.AddExternalExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -911,6 +963,7 @@ func request_Agents_ChangeExternalExporter_0(ctx context.Context, marshaler runt msg, err := client.ChangeExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -927,6 +980,7 @@ func local_request_Agents_ChangeExternalExporter_0(ctx context.Context, marshale msg, err := server.ChangeExternalExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -943,6 +997,7 @@ func request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marshaler ru msg, err := client.AddAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -959,6 +1014,7 @@ func local_request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marsha msg, err := server.AddAzureDatabaseExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -975,6 +1031,7 @@ func request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler msg, err := client.ChangeAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -991,6 +1048,7 @@ func local_request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, mar msg, err := server.ChangeAzureDatabaseExporter(ctx, &protoReq) return msg, metadata, err + } func request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1007,6 +1065,7 @@ func request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.RemoveAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1023,6 +1082,7 @@ func local_request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.M msg, err := server.RemoveAgent(ctx, &protoReq) return msg, metadata, err + } // RegisterAgentsHandlerServer registers the http handlers for service Agents to "mux". @@ -1030,6 +1090,7 @@ func local_request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentsHandlerFromEndpoint instead. func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AgentsServer) error { + mux.Handle("POST", pattern_Agents_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1052,6 +1113,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1076,6 +1138,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_GetAgentLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1100,6 +1163,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddPMMAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1124,6 +1188,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddPMMAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1148,6 +1213,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1172,6 +1238,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1196,6 +1263,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1220,6 +1288,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1244,6 +1313,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1268,6 +1338,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddPostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1292,6 +1363,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddPostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1316,6 +1388,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1340,6 +1413,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1364,6 +1438,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1388,6 +1463,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1412,6 +1488,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1436,6 +1513,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1460,6 +1538,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1484,6 +1563,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1508,6 +1588,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1532,6 +1613,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1556,6 +1638,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1580,6 +1663,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1604,6 +1688,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1628,6 +1713,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1652,6 +1738,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1676,6 +1763,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1700,6 +1788,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1724,6 +1813,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1748,6 +1838,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_RemoveAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1772,6 +1863,7 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_RemoveAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -1814,6 +1906,7 @@ func RegisterAgentsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AgentsClient" to call the correct interceptors. func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentsClient) error { + mux.Handle("POST", pattern_Agents_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1833,6 +1926,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1854,6 +1948,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_GetAgentLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1875,6 +1970,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddPMMAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1896,6 +1992,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddPMMAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1917,6 +2014,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1938,6 +2036,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1959,6 +2058,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1980,6 +2080,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2001,6 +2102,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2022,6 +2124,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddPostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2043,6 +2146,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddPostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2064,6 +2168,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2085,6 +2190,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2106,6 +2212,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2127,6 +2234,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2148,6 +2256,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2169,6 +2278,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2190,6 +2300,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2211,6 +2322,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2232,6 +2344,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2253,6 +2366,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2274,6 +2388,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2295,6 +2410,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2316,6 +2432,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2337,6 +2454,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2358,6 +2476,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2379,6 +2498,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2400,6 +2520,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_AddAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2421,6 +2542,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2442,6 +2564,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Agents_RemoveAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2463,6 +2586,7 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_RemoveAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/inventorypb/agents.validator.pb.go b/api/inventorypb/agents.validator.pb.go index 41006983d7..6518cc93c6 100644 --- a/api/inventorypb/agents.validator.pb.go +++ b/api/inventorypb/agents.validator.pb.go @@ -6,104 +6,84 @@ package inventorypb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *PMMAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *VMAgent) Validate() error { return nil } - func (this *NodeExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *MySQLdExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *MongoDBExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *PostgresExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ProxySQLExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *QANMySQLPerfSchemaAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *QANMySQLSlowlogAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *QANMongoDBProfilerAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *QANPostgreSQLPgStatementsAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *QANPostgreSQLPgStatMonitorAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *RDSExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ExternalExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AzureDatabaseExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ChangeCommonAgentParams) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ListAgentsRequest) Validate() error { return nil } - func (this *ListAgentsResponse) Validate() error { for _, item := range this.PmmAgent { if item != nil { @@ -212,14 +192,12 @@ func (this *ListAgentsResponse) Validate() error { } return nil } - func (this *GetAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) } return nil } - func (this *GetAgentResponse) Validate() error { if oneOfNester, ok := this.GetAgent().(*GetAgentResponse_PmmAgent); ok { if oneOfNester.PmmAgent != nil { @@ -328,18 +306,15 @@ func (this *GetAgentResponse) Validate() error { } return nil } - func (this *GetAgentLogsRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) } return nil } - func (this *GetAgentLogsResponse) Validate() error { return nil } - func (this *AddPMMAgentRequest) Validate() error { if this.RunsOnNodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RunsOnNodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.RunsOnNodeId)) @@ -347,7 +322,6 @@ func (this *AddPMMAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddPMMAgentResponse) Validate() error { if this.PmmAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PmmAgent); err != nil { @@ -356,7 +330,6 @@ func (this *AddPMMAgentResponse) Validate() error { } return nil } - func (this *AddNodeExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -364,7 +337,6 @@ func (this *AddNodeExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddNodeExporterResponse) Validate() error { if this.NodeExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.NodeExporter); err != nil { @@ -373,7 +345,6 @@ func (this *AddNodeExporterResponse) Validate() error { } return nil } - func (this *ChangeNodeExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -385,7 +356,6 @@ func (this *ChangeNodeExporterRequest) Validate() error { } return nil } - func (this *ChangeNodeExporterResponse) Validate() error { if this.NodeExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.NodeExporter); err != nil { @@ -394,7 +364,6 @@ func (this *ChangeNodeExporterResponse) Validate() error { } return nil } - func (this *AddMySQLdExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -408,7 +377,6 @@ func (this *AddMySQLdExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddMySQLdExporterResponse) Validate() error { if this.MysqldExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MysqldExporter); err != nil { @@ -417,7 +385,6 @@ func (this *AddMySQLdExporterResponse) Validate() error { } return nil } - func (this *ChangeMySQLdExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -429,7 +396,6 @@ func (this *ChangeMySQLdExporterRequest) Validate() error { } return nil } - func (this *ChangeMySQLdExporterResponse) Validate() error { if this.MysqldExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MysqldExporter); err != nil { @@ -438,7 +404,6 @@ func (this *ChangeMySQLdExporterResponse) Validate() error { } return nil } - func (this *AddMongoDBExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -449,7 +414,6 @@ func (this *AddMongoDBExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddMongoDBExporterResponse) Validate() error { if this.MongodbExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MongodbExporter); err != nil { @@ -458,7 +422,6 @@ func (this *AddMongoDBExporterResponse) Validate() error { } return nil } - func (this *ChangeMongoDBExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -470,7 +433,6 @@ func (this *ChangeMongoDBExporterRequest) Validate() error { } return nil } - func (this *ChangeMongoDBExporterResponse) Validate() error { if this.MongodbExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MongodbExporter); err != nil { @@ -479,7 +441,6 @@ func (this *ChangeMongoDBExporterResponse) Validate() error { } return nil } - func (this *AddPostgresExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -493,7 +454,6 @@ func (this *AddPostgresExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddPostgresExporterResponse) Validate() error { if this.PostgresExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PostgresExporter); err != nil { @@ -502,7 +462,6 @@ func (this *AddPostgresExporterResponse) Validate() error { } return nil } - func (this *ChangePostgresExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -514,7 +473,6 @@ func (this *ChangePostgresExporterRequest) Validate() error { } return nil } - func (this *ChangePostgresExporterResponse) Validate() error { if this.PostgresExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PostgresExporter); err != nil { @@ -523,7 +481,6 @@ func (this *ChangePostgresExporterResponse) Validate() error { } return nil } - func (this *AddProxySQLExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -537,7 +494,6 @@ func (this *AddProxySQLExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddProxySQLExporterResponse) Validate() error { if this.ProxysqlExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ProxysqlExporter); err != nil { @@ -546,7 +502,6 @@ func (this *AddProxySQLExporterResponse) Validate() error { } return nil } - func (this *ChangeProxySQLExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -558,7 +513,6 @@ func (this *ChangeProxySQLExporterRequest) Validate() error { } return nil } - func (this *ChangeProxySQLExporterResponse) Validate() error { if this.ProxysqlExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ProxysqlExporter); err != nil { @@ -567,7 +521,6 @@ func (this *ChangeProxySQLExporterResponse) Validate() error { } return nil } - func (this *AddQANMySQLPerfSchemaAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -581,7 +534,6 @@ func (this *AddQANMySQLPerfSchemaAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddQANMySQLPerfSchemaAgentResponse) Validate() error { if this.QanMysqlPerfschemaAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlPerfschemaAgent); err != nil { @@ -590,7 +542,6 @@ func (this *AddQANMySQLPerfSchemaAgentResponse) Validate() error { } return nil } - func (this *ChangeQANMySQLPerfSchemaAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -602,7 +553,6 @@ func (this *ChangeQANMySQLPerfSchemaAgentRequest) Validate() error { } return nil } - func (this *ChangeQANMySQLPerfSchemaAgentResponse) Validate() error { if this.QanMysqlPerfschemaAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlPerfschemaAgent); err != nil { @@ -611,7 +561,6 @@ func (this *ChangeQANMySQLPerfSchemaAgentResponse) Validate() error { } return nil } - func (this *AddQANMySQLSlowlogAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -625,7 +574,6 @@ func (this *AddQANMySQLSlowlogAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddQANMySQLSlowlogAgentResponse) Validate() error { if this.QanMysqlSlowlogAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlSlowlogAgent); err != nil { @@ -634,7 +582,6 @@ func (this *AddQANMySQLSlowlogAgentResponse) Validate() error { } return nil } - func (this *ChangeQANMySQLSlowlogAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -646,7 +593,6 @@ func (this *ChangeQANMySQLSlowlogAgentRequest) Validate() error { } return nil } - func (this *ChangeQANMySQLSlowlogAgentResponse) Validate() error { if this.QanMysqlSlowlogAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlSlowlogAgent); err != nil { @@ -655,7 +601,6 @@ func (this *ChangeQANMySQLSlowlogAgentResponse) Validate() error { } return nil } - func (this *AddQANMongoDBProfilerAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -666,7 +611,6 @@ func (this *AddQANMongoDBProfilerAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddQANMongoDBProfilerAgentResponse) Validate() error { if this.QanMongodbProfilerAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMongodbProfilerAgent); err != nil { @@ -675,7 +619,6 @@ func (this *AddQANMongoDBProfilerAgentResponse) Validate() error { } return nil } - func (this *ChangeQANMongoDBProfilerAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -687,7 +630,6 @@ func (this *ChangeQANMongoDBProfilerAgentRequest) Validate() error { } return nil } - func (this *ChangeQANMongoDBProfilerAgentResponse) Validate() error { if this.QanMongodbProfilerAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMongodbProfilerAgent); err != nil { @@ -696,7 +638,6 @@ func (this *ChangeQANMongoDBProfilerAgentResponse) Validate() error { } return nil } - func (this *AddQANPostgreSQLPgStatementsAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -710,7 +651,6 @@ func (this *AddQANPostgreSQLPgStatementsAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddQANPostgreSQLPgStatementsAgentResponse) Validate() error { if this.QanPostgresqlPgstatementsAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatementsAgent); err != nil { @@ -719,7 +659,6 @@ func (this *AddQANPostgreSQLPgStatementsAgentResponse) Validate() error { } return nil } - func (this *ChangeQANPostgreSQLPgStatementsAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -731,7 +670,6 @@ func (this *ChangeQANPostgreSQLPgStatementsAgentRequest) Validate() error { } return nil } - func (this *ChangeQANPostgreSQLPgStatementsAgentResponse) Validate() error { if this.QanPostgresqlPgstatementsAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatementsAgent); err != nil { @@ -740,7 +678,6 @@ func (this *ChangeQANPostgreSQLPgStatementsAgentResponse) Validate() error { } return nil } - func (this *AddQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -754,7 +691,6 @@ func (this *AddQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { if this.QanPostgresqlPgstatmonitorAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatmonitorAgent); err != nil { @@ -763,7 +699,6 @@ func (this *AddQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { } return nil } - func (this *ChangeQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -775,7 +710,6 @@ func (this *ChangeQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { } return nil } - func (this *ChangeQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { if this.QanPostgresqlPgstatmonitorAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatmonitorAgent); err != nil { @@ -784,7 +718,6 @@ func (this *ChangeQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { } return nil } - func (this *AddRDSExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -795,7 +728,6 @@ func (this *AddRDSExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddRDSExporterResponse) Validate() error { if this.RdsExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RdsExporter); err != nil { @@ -804,7 +736,6 @@ func (this *AddRDSExporterResponse) Validate() error { } return nil } - func (this *ChangeRDSExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -816,7 +747,6 @@ func (this *ChangeRDSExporterRequest) Validate() error { } return nil } - func (this *ChangeRDSExporterResponse) Validate() error { if this.RdsExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RdsExporter); err != nil { @@ -825,7 +755,6 @@ func (this *ChangeRDSExporterResponse) Validate() error { } return nil } - func (this *AddExternalExporterRequest) Validate() error { if this.RunsOnNodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RunsOnNodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.RunsOnNodeId)) @@ -839,7 +768,6 @@ func (this *AddExternalExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddExternalExporterResponse) Validate() error { if this.ExternalExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ExternalExporter); err != nil { @@ -848,7 +776,6 @@ func (this *AddExternalExporterResponse) Validate() error { } return nil } - func (this *ChangeExternalExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -860,7 +787,6 @@ func (this *ChangeExternalExporterRequest) Validate() error { } return nil } - func (this *ChangeExternalExporterResponse) Validate() error { if this.ExternalExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ExternalExporter); err != nil { @@ -869,7 +795,6 @@ func (this *ChangeExternalExporterResponse) Validate() error { } return nil } - func (this *AddAzureDatabaseExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -883,7 +808,6 @@ func (this *AddAzureDatabaseExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddAzureDatabaseExporterResponse) Validate() error { if this.AzureDatabaseExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AzureDatabaseExporter); err != nil { @@ -892,7 +816,6 @@ func (this *AddAzureDatabaseExporterResponse) Validate() error { } return nil } - func (this *ChangeAzureDatabaseExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -904,7 +827,6 @@ func (this *ChangeAzureDatabaseExporterRequest) Validate() error { } return nil } - func (this *ChangeAzureDatabaseExporterResponse) Validate() error { if this.AzureDatabaseExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AzureDatabaseExporter); err != nil { @@ -913,14 +835,12 @@ func (this *ChangeAzureDatabaseExporterResponse) Validate() error { } return nil } - func (this *RemoveAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) } return nil } - func (this *RemoveAgentResponse) Validate() error { return nil } diff --git a/api/inventorypb/agents_grpc.pb.go b/api/inventorypb/agents_grpc.pb.go index 0391f42e2f..131b77879c 100644 --- a/api/inventorypb/agents_grpc.pb.go +++ b/api/inventorypb/agents_grpc.pb.go @@ -8,7 +8,6 @@ package inventorypb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -444,128 +443,99 @@ type AgentsServer interface { } // UnimplementedAgentsServer must be embedded to have forward compatible implementations. -type UnimplementedAgentsServer struct{} +type UnimplementedAgentsServer struct { +} func (UnimplementedAgentsServer) ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAgents not implemented") } - func (UnimplementedAgentsServer) GetAgent(context.Context, *GetAgentRequest) (*GetAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAgent not implemented") } - func (UnimplementedAgentsServer) GetAgentLogs(context.Context, *GetAgentLogsRequest) (*GetAgentLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAgentLogs not implemented") } - func (UnimplementedAgentsServer) AddPMMAgent(context.Context, *AddPMMAgentRequest) (*AddPMMAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPMMAgent not implemented") } - func (UnimplementedAgentsServer) AddNodeExporter(context.Context, *AddNodeExporterRequest) (*AddNodeExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddNodeExporter not implemented") } - func (UnimplementedAgentsServer) ChangeNodeExporter(context.Context, *ChangeNodeExporterRequest) (*ChangeNodeExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeNodeExporter not implemented") } - func (UnimplementedAgentsServer) AddMySQLdExporter(context.Context, *AddMySQLdExporterRequest) (*AddMySQLdExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMySQLdExporter not implemented") } - func (UnimplementedAgentsServer) ChangeMySQLdExporter(context.Context, *ChangeMySQLdExporterRequest) (*ChangeMySQLdExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMySQLdExporter not implemented") } - func (UnimplementedAgentsServer) AddMongoDBExporter(context.Context, *AddMongoDBExporterRequest) (*AddMongoDBExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMongoDBExporter not implemented") } - func (UnimplementedAgentsServer) ChangeMongoDBExporter(context.Context, *ChangeMongoDBExporterRequest) (*ChangeMongoDBExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMongoDBExporter not implemented") } - func (UnimplementedAgentsServer) AddPostgresExporter(context.Context, *AddPostgresExporterRequest) (*AddPostgresExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPostgresExporter not implemented") } - func (UnimplementedAgentsServer) ChangePostgresExporter(context.Context, *ChangePostgresExporterRequest) (*ChangePostgresExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePostgresExporter not implemented") } - func (UnimplementedAgentsServer) AddProxySQLExporter(context.Context, *AddProxySQLExporterRequest) (*AddProxySQLExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddProxySQLExporter not implemented") } - func (UnimplementedAgentsServer) ChangeProxySQLExporter(context.Context, *ChangeProxySQLExporterRequest) (*ChangeProxySQLExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeProxySQLExporter not implemented") } - func (UnimplementedAgentsServer) AddQANMySQLPerfSchemaAgent(context.Context, *AddQANMySQLPerfSchemaAgentRequest) (*AddQANMySQLPerfSchemaAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANMySQLPerfSchemaAgent not implemented") } - func (UnimplementedAgentsServer) ChangeQANMySQLPerfSchemaAgent(context.Context, *ChangeQANMySQLPerfSchemaAgentRequest) (*ChangeQANMySQLPerfSchemaAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMySQLPerfSchemaAgent not implemented") } - func (UnimplementedAgentsServer) AddQANMySQLSlowlogAgent(context.Context, *AddQANMySQLSlowlogAgentRequest) (*AddQANMySQLSlowlogAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANMySQLSlowlogAgent not implemented") } - func (UnimplementedAgentsServer) ChangeQANMySQLSlowlogAgent(context.Context, *ChangeQANMySQLSlowlogAgentRequest) (*ChangeQANMySQLSlowlogAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMySQLSlowlogAgent not implemented") } - func (UnimplementedAgentsServer) AddQANMongoDBProfilerAgent(context.Context, *AddQANMongoDBProfilerAgentRequest) (*AddQANMongoDBProfilerAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANMongoDBProfilerAgent not implemented") } - func (UnimplementedAgentsServer) ChangeQANMongoDBProfilerAgent(context.Context, *ChangeQANMongoDBProfilerAgentRequest) (*ChangeQANMongoDBProfilerAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMongoDBProfilerAgent not implemented") } - func (UnimplementedAgentsServer) AddQANPostgreSQLPgStatementsAgent(context.Context, *AddQANPostgreSQLPgStatementsAgentRequest) (*AddQANPostgreSQLPgStatementsAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANPostgreSQLPgStatementsAgent not implemented") } - func (UnimplementedAgentsServer) ChangeQANPostgreSQLPgStatementsAgent(context.Context, *ChangeQANPostgreSQLPgStatementsAgentRequest) (*ChangeQANPostgreSQLPgStatementsAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANPostgreSQLPgStatementsAgent not implemented") } - func (UnimplementedAgentsServer) AddQANPostgreSQLPgStatMonitorAgent(context.Context, *AddQANPostgreSQLPgStatMonitorAgentRequest) (*AddQANPostgreSQLPgStatMonitorAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANPostgreSQLPgStatMonitorAgent not implemented") } - func (UnimplementedAgentsServer) ChangeQANPostgreSQLPgStatMonitorAgent(context.Context, *ChangeQANPostgreSQLPgStatMonitorAgentRequest) (*ChangeQANPostgreSQLPgStatMonitorAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANPostgreSQLPgStatMonitorAgent not implemented") } - func (UnimplementedAgentsServer) AddRDSExporter(context.Context, *AddRDSExporterRequest) (*AddRDSExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRDSExporter not implemented") } - func (UnimplementedAgentsServer) ChangeRDSExporter(context.Context, *ChangeRDSExporterRequest) (*ChangeRDSExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeRDSExporter not implemented") } - func (UnimplementedAgentsServer) AddExternalExporter(context.Context, *AddExternalExporterRequest) (*AddExternalExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddExternalExporter not implemented") } - func (UnimplementedAgentsServer) ChangeExternalExporter(context.Context, *ChangeExternalExporterRequest) (*ChangeExternalExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeExternalExporter not implemented") } - func (UnimplementedAgentsServer) AddAzureDatabaseExporter(context.Context, *AddAzureDatabaseExporterRequest) (*AddAzureDatabaseExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAzureDatabaseExporter not implemented") } - func (UnimplementedAgentsServer) ChangeAzureDatabaseExporter(context.Context, *ChangeAzureDatabaseExporterRequest) (*ChangeAzureDatabaseExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeAzureDatabaseExporter not implemented") } - func (UnimplementedAgentsServer) RemoveAgent(context.Context, *RemoveAgentRequest) (*RemoveAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveAgent not implemented") } diff --git a/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go b/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go index 3db16b94a2..d583c6a51a 100644 --- a/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go @@ -60,6 +60,7 @@ AddAzureDatabaseExporterParams contains all the parameters to send to the API en Typically these are written to a http.Request. */ type AddAzureDatabaseExporterParams struct { + // Body. Body AddAzureDatabaseExporterBody @@ -129,6 +130,7 @@ func (o *AddAzureDatabaseExporterParams) SetBody(body AddAzureDatabaseExporterBo // WriteToRequest writes these params to a swagger request func (o *AddAzureDatabaseExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go b/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go index 297e128f25..05ec80a32a 100644 --- a/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go @@ -62,12 +62,12 @@ type AddAzureDatabaseExporterOK struct { func (o *AddAzureDatabaseExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddAzureDatabaseExporter][%d] addAzureDatabaseExporterOk %+v", 200, o.Payload) } - func (o *AddAzureDatabaseExporterOK) GetPayload() *AddAzureDatabaseExporterOKBody { return o.Payload } func (o *AddAzureDatabaseExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAzureDatabaseExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddAzureDatabaseExporterDefault) Code() int { func (o *AddAzureDatabaseExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddAzureDatabaseExporter][%d] AddAzureDatabaseExporter default %+v", o._statusCode, o.Payload) } - func (o *AddAzureDatabaseExporterDefault) GetPayload() *AddAzureDatabaseExporterDefaultBody { return o.Payload } func (o *AddAzureDatabaseExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAzureDatabaseExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddAzureDatabaseExporterBody add azure database exporter body swagger:model AddAzureDatabaseExporterBody */ type AddAzureDatabaseExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -259,6 +260,7 @@ AddAzureDatabaseExporterDefaultBody add azure database exporter default body swagger:model AddAzureDatabaseExporterDefaultBody */ type AddAzureDatabaseExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -324,7 +326,9 @@ func (o *AddAzureDatabaseExporterDefaultBody) ContextValidate(ctx context.Contex } func (o *AddAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -335,6 +339,7 @@ func (o *AddAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context return err } } + } return nil @@ -363,6 +368,7 @@ AddAzureDatabaseExporterDefaultBodyDetailsItems0 add azure database exporter def swagger:model AddAzureDatabaseExporterDefaultBodyDetailsItems0 */ type AddAzureDatabaseExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -400,6 +406,7 @@ AddAzureDatabaseExporterOKBody add azure database exporter OK body swagger:model AddAzureDatabaseExporterOKBody */ type AddAzureDatabaseExporterOKBody struct { + // azure database exporter AzureDatabaseExporter *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` } @@ -452,6 +459,7 @@ func (o *AddAzureDatabaseExporterOKBody) ContextValidate(ctx context.Context, fo } func (o *AddAzureDatabaseExporterOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -489,6 +497,7 @@ AddAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs o swagger:model AddAzureDatabaseExporterOKBodyAzureDatabaseExporter */ type AddAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_external_exporter_parameters.go b/api/inventorypb/json/client/agents/add_external_exporter_parameters.go index 5a5ae9a946..3672f81075 100644 --- a/api/inventorypb/json/client/agents/add_external_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_external_exporter_parameters.go @@ -60,6 +60,7 @@ AddExternalExporterParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type AddExternalExporterParams struct { + // Body. Body AddExternalExporterBody @@ -129,6 +130,7 @@ func (o *AddExternalExporterParams) SetBody(body AddExternalExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddExternalExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_external_exporter_responses.go b/api/inventorypb/json/client/agents/add_external_exporter_responses.go index 33a3d17e6e..e6c53a045c 100644 --- a/api/inventorypb/json/client/agents/add_external_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_external_exporter_responses.go @@ -60,12 +60,12 @@ type AddExternalExporterOK struct { func (o *AddExternalExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddExternalExporter][%d] addExternalExporterOk %+v", 200, o.Payload) } - func (o *AddExternalExporterOK) GetPayload() *AddExternalExporterOKBody { return o.Payload } func (o *AddExternalExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddExternalExporterOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddExternalExporterDefault) Code() int { func (o *AddExternalExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddExternalExporter][%d] AddExternalExporter default %+v", o._statusCode, o.Payload) } - func (o *AddExternalExporterDefault) GetPayload() *AddExternalExporterDefaultBody { return o.Payload } func (o *AddExternalExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddExternalExporterDefaultBody) // response payload @@ -123,6 +123,7 @@ AddExternalExporterBody add external exporter body swagger:model AddExternalExporterBody */ type AddExternalExporterBody struct { + // The node identifier where this instance is run. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -184,6 +185,7 @@ AddExternalExporterDefaultBody add external exporter default body swagger:model AddExternalExporterDefaultBody */ type AddExternalExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -249,7 +251,9 @@ func (o *AddExternalExporterDefaultBody) ContextValidate(ctx context.Context, fo } func (o *AddExternalExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -260,6 +264,7 @@ func (o *AddExternalExporterDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -288,6 +293,7 @@ AddExternalExporterDefaultBodyDetailsItems0 add external exporter default body d swagger:model AddExternalExporterDefaultBodyDetailsItems0 */ type AddExternalExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -325,6 +331,7 @@ AddExternalExporterOKBody add external exporter OK body swagger:model AddExternalExporterOKBody */ type AddExternalExporterOKBody struct { + // external exporter ExternalExporter *AddExternalExporterOKBodyExternalExporter `json:"external_exporter,omitempty"` } @@ -377,6 +384,7 @@ func (o *AddExternalExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddExternalExporterOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -414,6 +422,7 @@ AddExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type swagger:model AddExternalExporterOKBodyExternalExporter */ type AddExternalExporterOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go b/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go index d7083686bf..dbab1c8589 100644 --- a/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go @@ -60,6 +60,7 @@ AddMongoDBExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMongoDBExporterParams struct { + // Body. Body AddMongoDBExporterBody @@ -129,6 +130,7 @@ func (o *AddMongoDBExporterParams) SetBody(body AddMongoDBExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddMongoDBExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go b/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go index 1396da9ac7..34bbadd52f 100644 --- a/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go @@ -62,12 +62,12 @@ type AddMongoDBExporterOK struct { func (o *AddMongoDBExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMongoDBExporter][%d] addMongoDbExporterOk %+v", 200, o.Payload) } - func (o *AddMongoDBExporterOK) GetPayload() *AddMongoDBExporterOKBody { return o.Payload } func (o *AddMongoDBExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMongoDBExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMongoDBExporterDefault) Code() int { func (o *AddMongoDBExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMongoDBExporter][%d] AddMongoDBExporter default %+v", o._statusCode, o.Payload) } - func (o *AddMongoDBExporterDefault) GetPayload() *AddMongoDBExporterDefaultBody { return o.Payload } func (o *AddMongoDBExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMongoDBExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddMongoDBExporterBody add mongo DB exporter body swagger:model AddMongoDBExporterBody */ type AddMongoDBExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -283,6 +284,7 @@ AddMongoDBExporterDefaultBody add mongo DB exporter default body swagger:model AddMongoDBExporterDefaultBody */ type AddMongoDBExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -348,7 +350,9 @@ func (o *AddMongoDBExporterDefaultBody) ContextValidate(ctx context.Context, for } func (o *AddMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -359,6 +363,7 @@ func (o *AddMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -387,6 +392,7 @@ AddMongoDBExporterDefaultBodyDetailsItems0 add mongo DB exporter default body de swagger:model AddMongoDBExporterDefaultBodyDetailsItems0 */ type AddMongoDBExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -424,6 +430,7 @@ AddMongoDBExporterOKBody add mongo DB exporter OK body swagger:model AddMongoDBExporterOKBody */ type AddMongoDBExporterOKBody struct { + // mongodb exporter MongodbExporter *AddMongoDBExporterOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` } @@ -476,6 +483,7 @@ func (o *AddMongoDBExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddMongoDBExporterOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -513,6 +521,7 @@ AddMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Conta swagger:model AddMongoDBExporterOKBodyMongodbExporter */ type AddMongoDBExporterOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go index 155ca1d3ff..8640aea896 100644 --- a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go @@ -60,6 +60,7 @@ AddMySQLdExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMySQLdExporterParams struct { + // Body. Body AddMySQLdExporterBody @@ -129,6 +130,7 @@ func (o *AddMySQLdExporterParams) SetBody(body AddMySQLdExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddMySQLdExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go index 3b066d1f20..25127a5848 100644 --- a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go @@ -62,12 +62,12 @@ type AddMySQLdExporterOK struct { func (o *AddMySQLdExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMySQLdExporter][%d] addMySQLdExporterOk %+v", 200, o.Payload) } - func (o *AddMySQLdExporterOK) GetPayload() *AddMySQLdExporterOKBody { return o.Payload } func (o *AddMySQLdExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMySQLdExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMySQLdExporterDefault) Code() int { func (o *AddMySQLdExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMySQLdExporter][%d] AddMySQLdExporter default %+v", o._statusCode, o.Payload) } - func (o *AddMySQLdExporterDefault) GetPayload() *AddMySQLdExporterDefaultBody { return o.Payload } func (o *AddMySQLdExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMySQLdExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddMySQLdExporterBody add my s q ld exporter body swagger:model AddMySQLdExporterBody */ type AddMySQLdExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -273,6 +274,7 @@ AddMySQLdExporterDefaultBody add my s q ld exporter default body swagger:model AddMySQLdExporterDefaultBody */ type AddMySQLdExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -338,7 +340,9 @@ func (o *AddMySQLdExporterDefaultBody) ContextValidate(ctx context.Context, form } func (o *AddMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -349,6 +353,7 @@ func (o *AddMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -377,6 +382,7 @@ AddMySQLdExporterDefaultBodyDetailsItems0 add my s q ld exporter default body de swagger:model AddMySQLdExporterDefaultBodyDetailsItems0 */ type AddMySQLdExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -414,6 +420,7 @@ AddMySQLdExporterOKBody add my s q ld exporter OK body swagger:model AddMySQLdExporterOKBody */ type AddMySQLdExporterOKBody struct { + // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -469,6 +476,7 @@ func (o *AddMySQLdExporterOKBody) ContextValidate(ctx context.Context, formats s } func (o *AddMySQLdExporterOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -506,6 +514,7 @@ AddMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Containe swagger:model AddMySQLdExporterOKBodyMysqldExporter */ type AddMySQLdExporterOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_node_exporter_parameters.go b/api/inventorypb/json/client/agents/add_node_exporter_parameters.go index 534c79bbf6..825eda1184 100644 --- a/api/inventorypb/json/client/agents/add_node_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_node_exporter_parameters.go @@ -60,6 +60,7 @@ AddNodeExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddNodeExporterParams struct { + // Body. Body AddNodeExporterBody @@ -129,6 +130,7 @@ func (o *AddNodeExporterParams) SetBody(body AddNodeExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddNodeExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_node_exporter_responses.go b/api/inventorypb/json/client/agents/add_node_exporter_responses.go index c36cb227fe..589177e0ff 100644 --- a/api/inventorypb/json/client/agents/add_node_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_node_exporter_responses.go @@ -62,12 +62,12 @@ type AddNodeExporterOK struct { func (o *AddNodeExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddNodeExporter][%d] addNodeExporterOk %+v", 200, o.Payload) } - func (o *AddNodeExporterOK) GetPayload() *AddNodeExporterOKBody { return o.Payload } func (o *AddNodeExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddNodeExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddNodeExporterDefault) Code() int { func (o *AddNodeExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddNodeExporter][%d] AddNodeExporter default %+v", o._statusCode, o.Payload) } - func (o *AddNodeExporterDefault) GetPayload() *AddNodeExporterDefaultBody { return o.Payload } func (o *AddNodeExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddNodeExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddNodeExporterBody add node exporter body swagger:model AddNodeExporterBody */ type AddNodeExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -238,6 +239,7 @@ AddNodeExporterDefaultBody add node exporter default body swagger:model AddNodeExporterDefaultBody */ type AddNodeExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -303,7 +305,9 @@ func (o *AddNodeExporterDefaultBody) ContextValidate(ctx context.Context, format } func (o *AddNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -314,6 +318,7 @@ func (o *AddNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -342,6 +347,7 @@ AddNodeExporterDefaultBodyDetailsItems0 add node exporter default body details i swagger:model AddNodeExporterDefaultBodyDetailsItems0 */ type AddNodeExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -379,6 +385,7 @@ AddNodeExporterOKBody add node exporter OK body swagger:model AddNodeExporterOKBody */ type AddNodeExporterOKBody struct { + // node exporter NodeExporter *AddNodeExporterOKBodyNodeExporter `json:"node_exporter,omitempty"` } @@ -431,6 +438,7 @@ func (o *AddNodeExporterOKBody) ContextValidate(ctx context.Context, formats str } func (o *AddNodeExporterOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -468,6 +476,7 @@ AddNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node swagger:model AddNodeExporterOKBodyNodeExporter */ type AddNodeExporterOKBodyNodeExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go b/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go index b9defeaafd..2598082ee0 100644 --- a/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go @@ -60,6 +60,7 @@ AddPMMAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddPMMAgentParams struct { + // Body. Body AddPMMAgentBody @@ -129,6 +130,7 @@ func (o *AddPMMAgentParams) SetBody(body AddPMMAgentBody) { // WriteToRequest writes these params to a swagger request func (o *AddPMMAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_pmm_agent_responses.go b/api/inventorypb/json/client/agents/add_pmm_agent_responses.go index de99cda787..26f63a56b8 100644 --- a/api/inventorypb/json/client/agents/add_pmm_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_pmm_agent_responses.go @@ -60,12 +60,12 @@ type AddPMMAgentOK struct { func (o *AddPMMAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPMMAgent][%d] addPmmAgentOk %+v", 200, o.Payload) } - func (o *AddPMMAgentOK) GetPayload() *AddPMMAgentOKBody { return o.Payload } func (o *AddPMMAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPMMAgentOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddPMMAgentDefault) Code() int { func (o *AddPMMAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPMMAgent][%d] AddPMMAgent default %+v", o._statusCode, o.Payload) } - func (o *AddPMMAgentDefault) GetPayload() *AddPMMAgentDefaultBody { return o.Payload } func (o *AddPMMAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPMMAgentDefaultBody) // response payload @@ -123,6 +123,7 @@ AddPMMAgentBody add PMM agent body swagger:model AddPMMAgentBody */ type AddPMMAgentBody struct { + // Node identifier where this instance runs. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -163,6 +164,7 @@ AddPMMAgentDefaultBody add PMM agent default body swagger:model AddPMMAgentDefaultBody */ type AddPMMAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *AddPMMAgentDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddPMMAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *AddPMMAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -267,6 +272,7 @@ AddPMMAgentDefaultBodyDetailsItems0 add PMM agent default body details items0 swagger:model AddPMMAgentDefaultBodyDetailsItems0 */ type AddPMMAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ AddPMMAgentOKBody add PMM agent OK body swagger:model AddPMMAgentOKBody */ type AddPMMAgentOKBody struct { + // pmm agent PMMAgent *AddPMMAgentOKBodyPMMAgent `json:"pmm_agent,omitempty"` } @@ -356,6 +363,7 @@ func (o *AddPMMAgentOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddPMMAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -393,6 +401,7 @@ AddPMMAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model AddPMMAgentOKBodyPMMAgent */ type AddPMMAgentOKBodyPMMAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go b/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go index 48999a85e6..7c99c11083 100644 --- a/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go @@ -60,6 +60,7 @@ AddPostgresExporterParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type AddPostgresExporterParams struct { + // Body. Body AddPostgresExporterBody @@ -129,6 +130,7 @@ func (o *AddPostgresExporterParams) SetBody(body AddPostgresExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddPostgresExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go b/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go index a443028e3f..7d1ce734b7 100644 --- a/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go @@ -62,12 +62,12 @@ type AddPostgresExporterOK struct { func (o *AddPostgresExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPostgresExporter][%d] addPostgresExporterOk %+v", 200, o.Payload) } - func (o *AddPostgresExporterOK) GetPayload() *AddPostgresExporterOKBody { return o.Payload } func (o *AddPostgresExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPostgresExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddPostgresExporterDefault) Code() int { func (o *AddPostgresExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPostgresExporter][%d] AddPostgresExporter default %+v", o._statusCode, o.Payload) } - func (o *AddPostgresExporterDefault) GetPayload() *AddPostgresExporterDefaultBody { return o.Payload } func (o *AddPostgresExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPostgresExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddPostgresExporterBody add postgres exporter body swagger:model AddPostgresExporterBody */ type AddPostgresExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -268,6 +269,7 @@ AddPostgresExporterDefaultBody add postgres exporter default body swagger:model AddPostgresExporterDefaultBody */ type AddPostgresExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -333,7 +335,9 @@ func (o *AddPostgresExporterDefaultBody) ContextValidate(ctx context.Context, fo } func (o *AddPostgresExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,6 +348,7 @@ func (o *AddPostgresExporterDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -372,6 +377,7 @@ AddPostgresExporterDefaultBodyDetailsItems0 add postgres exporter default body d swagger:model AddPostgresExporterDefaultBodyDetailsItems0 */ type AddPostgresExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -409,6 +415,7 @@ AddPostgresExporterOKBody add postgres exporter OK body swagger:model AddPostgresExporterOKBody */ type AddPostgresExporterOKBody struct { + // postgres exporter PostgresExporter *AddPostgresExporterOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` } @@ -461,6 +468,7 @@ func (o *AddPostgresExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddPostgresExporterOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -498,6 +506,7 @@ AddPostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Co swagger:model AddPostgresExporterOKBodyPostgresExporter */ type AddPostgresExporterOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go index 1d26aff287..a483205bb7 100644 --- a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go @@ -60,6 +60,7 @@ AddProxySQLExporterParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type AddProxySQLExporterParams struct { + // Body. Body AddProxySQLExporterBody @@ -129,6 +130,7 @@ func (o *AddProxySQLExporterParams) SetBody(body AddProxySQLExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddProxySQLExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go index dfedefda3c..b9047f5b6d 100644 --- a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go @@ -62,12 +62,12 @@ type AddProxySQLExporterOK struct { func (o *AddProxySQLExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddProxySQLExporter][%d] addProxySqlExporterOk %+v", 200, o.Payload) } - func (o *AddProxySQLExporterOK) GetPayload() *AddProxySQLExporterOKBody { return o.Payload } func (o *AddProxySQLExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddProxySQLExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddProxySQLExporterDefault) Code() int { func (o *AddProxySQLExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddProxySQLExporter][%d] AddProxySQLExporter default %+v", o._statusCode, o.Payload) } - func (o *AddProxySQLExporterDefault) GetPayload() *AddProxySQLExporterDefaultBody { return o.Payload } func (o *AddProxySQLExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddProxySQLExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddProxySQLExporterBody add proxy SQL exporter body swagger:model AddProxySQLExporterBody */ type AddProxySQLExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -259,6 +260,7 @@ AddProxySQLExporterDefaultBody add proxy SQL exporter default body swagger:model AddProxySQLExporterDefaultBody */ type AddProxySQLExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -324,7 +326,9 @@ func (o *AddProxySQLExporterDefaultBody) ContextValidate(ctx context.Context, fo } func (o *AddProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -335,6 +339,7 @@ func (o *AddProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -363,6 +368,7 @@ AddProxySQLExporterDefaultBodyDetailsItems0 add proxy SQL exporter default body swagger:model AddProxySQLExporterDefaultBodyDetailsItems0 */ type AddProxySQLExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -400,6 +406,7 @@ AddProxySQLExporterOKBody add proxy SQL exporter OK body swagger:model AddProxySQLExporterOKBody */ type AddProxySQLExporterOKBody struct { + // proxysql exporter ProxysqlExporter *AddProxySQLExporterOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` } @@ -452,6 +459,7 @@ func (o *AddProxySQLExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddProxySQLExporterOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -489,6 +497,7 @@ AddProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Co swagger:model AddProxySQLExporterOKBodyProxysqlExporter */ type AddProxySQLExporterOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go index 4ba6b76646..240c207558 100644 --- a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go @@ -60,6 +60,7 @@ AddQANMongoDBProfilerAgentParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type AddQANMongoDBProfilerAgentParams struct { + // Body. Body AddQANMongoDBProfilerAgentBody @@ -129,6 +130,7 @@ func (o *AddQANMongoDBProfilerAgentParams) SetBody(body AddQANMongoDBProfilerAge // WriteToRequest writes these params to a swagger request func (o *AddQANMongoDBProfilerAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go index 4b43b3ab90..f9ef037f41 100644 --- a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go @@ -62,12 +62,12 @@ type AddQANMongoDBProfilerAgentOK struct { func (o *AddQANMongoDBProfilerAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMongoDBProfilerAgent][%d] addQanMongoDbProfilerAgentOk %+v", 200, o.Payload) } - func (o *AddQANMongoDBProfilerAgentOK) GetPayload() *AddQANMongoDBProfilerAgentOKBody { return o.Payload } func (o *AddQANMongoDBProfilerAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANMongoDBProfilerAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANMongoDBProfilerAgentDefault) Code() int { func (o *AddQANMongoDBProfilerAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMongoDBProfilerAgent][%d] AddQANMongoDBProfilerAgent default %+v", o._statusCode, o.Payload) } - func (o *AddQANMongoDBProfilerAgentDefault) GetPayload() *AddQANMongoDBProfilerAgentDefaultBody { return o.Payload } func (o *AddQANMongoDBProfilerAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANMongoDBProfilerAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ AddQANMongoDBProfilerAgentBody add QAN mongo DB profiler agent body swagger:model AddQANMongoDBProfilerAgentBody */ type AddQANMongoDBProfilerAgentBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -267,6 +268,7 @@ AddQANMongoDBProfilerAgentDefaultBody add QAN mongo DB profiler agent default bo swagger:model AddQANMongoDBProfilerAgentDefaultBody */ type AddQANMongoDBProfilerAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -332,7 +334,9 @@ func (o *AddQANMongoDBProfilerAgentDefaultBody) ContextValidate(ctx context.Cont } func (o *AddQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -343,6 +347,7 @@ func (o *AddQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx conte return err } } + } return nil @@ -371,6 +376,7 @@ AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 add QAN mongo DB profiler age swagger:model AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 */ type AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -408,6 +414,7 @@ AddQANMongoDBProfilerAgentOKBody add QAN mongo DB profiler agent OK body swagger:model AddQANMongoDBProfilerAgentOKBody */ type AddQANMongoDBProfilerAgentOKBody struct { + // qan mongodb profiler agent QANMongodbProfilerAgent *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` } @@ -460,6 +467,7 @@ func (o *AddQANMongoDBProfilerAgentOKBody) ContextValidate(ctx context.Context, } func (o *AddQANMongoDBProfilerAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -497,6 +505,7 @@ AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent swagger:model AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent */ type AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go index c96dd4f37b..14f12e0d93 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go @@ -60,6 +60,7 @@ AddQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type AddQANMySQLPerfSchemaAgentParams struct { + // Body. Body AddQANMySQLPerfSchemaAgentBody @@ -129,6 +130,7 @@ func (o *AddQANMySQLPerfSchemaAgentParams) SetBody(body AddQANMySQLPerfSchemaAge // WriteToRequest writes these params to a swagger request func (o *AddQANMySQLPerfSchemaAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go index 2ba5070113..cf36b9844e 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go @@ -62,12 +62,12 @@ type AddQANMySQLPerfSchemaAgentOK struct { func (o *AddQANMySQLPerfSchemaAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLPerfSchemaAgent][%d] addQanMySqlPerfSchemaAgentOk %+v", 200, o.Payload) } - func (o *AddQANMySQLPerfSchemaAgentOK) GetPayload() *AddQANMySQLPerfSchemaAgentOKBody { return o.Payload } func (o *AddQANMySQLPerfSchemaAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANMySQLPerfSchemaAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANMySQLPerfSchemaAgentDefault) Code() int { func (o *AddQANMySQLPerfSchemaAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLPerfSchemaAgent][%d] AddQANMySQLPerfSchemaAgent default %+v", o._statusCode, o.Payload) } - func (o *AddQANMySQLPerfSchemaAgentDefault) GetPayload() *AddQANMySQLPerfSchemaAgentDefaultBody { return o.Payload } func (o *AddQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANMySQLPerfSchemaAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ AddQANMySQLPerfSchemaAgentBody add QAN my SQL perf schema agent body swagger:model AddQANMySQLPerfSchemaAgentBody */ type AddQANMySQLPerfSchemaAgentBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -265,6 +266,7 @@ AddQANMySQLPerfSchemaAgentDefaultBody add QAN my SQL perf schema agent default b swagger:model AddQANMySQLPerfSchemaAgentDefaultBody */ type AddQANMySQLPerfSchemaAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -330,7 +332,9 @@ func (o *AddQANMySQLPerfSchemaAgentDefaultBody) ContextValidate(ctx context.Cont } func (o *AddQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -341,6 +345,7 @@ func (o *AddQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx conte return err } } + } return nil @@ -369,6 +374,7 @@ AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 add QAN my SQL perf schema ag swagger:model AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 */ type AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -406,6 +412,7 @@ AddQANMySQLPerfSchemaAgentOKBody add QAN my SQL perf schema agent OK body swagger:model AddQANMySQLPerfSchemaAgentOKBody */ type AddQANMySQLPerfSchemaAgentOKBody struct { + // qan mysql perfschema agent QANMysqlPerfschemaAgent *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` } @@ -458,6 +465,7 @@ func (o *AddQANMySQLPerfSchemaAgentOKBody) ContextValidate(ctx context.Context, } func (o *AddQANMySQLPerfSchemaAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -495,6 +503,7 @@ AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent swagger:model AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent */ type AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go index f1f42c5244..6f632e00e1 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go @@ -60,6 +60,7 @@ AddQANMySQLSlowlogAgentParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type AddQANMySQLSlowlogAgentParams struct { + // Body. Body AddQANMySQLSlowlogAgentBody @@ -129,6 +130,7 @@ func (o *AddQANMySQLSlowlogAgentParams) SetBody(body AddQANMySQLSlowlogAgentBody // WriteToRequest writes these params to a swagger request func (o *AddQANMySQLSlowlogAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go index d0164fe1e0..19c6ee6831 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go @@ -62,12 +62,12 @@ type AddQANMySQLSlowlogAgentOK struct { func (o *AddQANMySQLSlowlogAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLSlowlogAgent][%d] addQanMySqlSlowlogAgentOk %+v", 200, o.Payload) } - func (o *AddQANMySQLSlowlogAgentOK) GetPayload() *AddQANMySQLSlowlogAgentOKBody { return o.Payload } func (o *AddQANMySQLSlowlogAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANMySQLSlowlogAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANMySQLSlowlogAgentDefault) Code() int { func (o *AddQANMySQLSlowlogAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLSlowlogAgent][%d] AddQANMySQLSlowlogAgent default %+v", o._statusCode, o.Payload) } - func (o *AddQANMySQLSlowlogAgentDefault) GetPayload() *AddQANMySQLSlowlogAgentDefaultBody { return o.Payload } func (o *AddQANMySQLSlowlogAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANMySQLSlowlogAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ AddQANMySQLSlowlogAgentBody add QAN my SQL slowlog agent body swagger:model AddQANMySQLSlowlogAgentBody */ type AddQANMySQLSlowlogAgentBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -269,6 +270,7 @@ AddQANMySQLSlowlogAgentDefaultBody add QAN my SQL slowlog agent default body swagger:model AddQANMySQLSlowlogAgentDefaultBody */ type AddQANMySQLSlowlogAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -334,7 +336,9 @@ func (o *AddQANMySQLSlowlogAgentDefaultBody) ContextValidate(ctx context.Context } func (o *AddQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -345,6 +349,7 @@ func (o *AddQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context. return err } } + } return nil @@ -373,6 +378,7 @@ AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 add QAN my SQL slowlog agent def swagger:model AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 */ type AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -410,6 +416,7 @@ AddQANMySQLSlowlogAgentOKBody add QAN my SQL slowlog agent OK body swagger:model AddQANMySQLSlowlogAgentOKBody */ type AddQANMySQLSlowlogAgentOKBody struct { + // qan mysql slowlog agent QANMysqlSlowlogAgent *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` } @@ -462,6 +469,7 @@ func (o *AddQANMySQLSlowlogAgentOKBody) ContextValidate(ctx context.Context, for } func (o *AddQANMySQLSlowlogAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -499,6 +507,7 @@ AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs with swagger:model AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent */ type AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go index be2ca5ab96..7f12076bb4 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go @@ -60,6 +60,7 @@ AddQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to Typically these are written to a http.Request. */ type AddQANPostgreSQLPgStatMonitorAgentParams struct { + // Body. Body AddQANPostgreSQLPgStatMonitorAgentBody @@ -129,6 +130,7 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetBody(body AddQANPostgreSQL // WriteToRequest writes these params to a swagger request func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go index 6f8f6d40d6..417e96d977 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go @@ -62,12 +62,12 @@ type AddQANPostgreSQLPgStatMonitorAgentOK struct { func (o *AddQANPostgreSQLPgStatMonitorAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent][%d] addQanPostgreSqlPgStatMonitorAgentOk %+v", 200, o.Payload) } - func (o *AddQANPostgreSQLPgStatMonitorAgentOK) GetPayload() *AddQANPostgreSQLPgStatMonitorAgentOKBody { return o.Payload } func (o *AddQANPostgreSQLPgStatMonitorAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANPostgreSQLPgStatMonitorAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) Code() int { func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent][%d] AddQANPostgreSQLPgStatMonitorAgent default %+v", o._statusCode, o.Payload) } - func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) GetPayload() *AddQANPostgreSQLPgStatMonitorAgentDefaultBody { return o.Payload } func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANPostgreSQLPgStatMonitorAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ AddQANPostgreSQLPgStatMonitorAgentBody add QAN postgre SQL pg stat monitor agent swagger:model AddQANPostgreSQLPgStatMonitorAgentBody */ type AddQANPostgreSQLPgStatMonitorAgentBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -265,6 +266,7 @@ AddQANPostgreSQLPgStatMonitorAgentDefaultBody add QAN postgre SQL pg stat monito swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBody */ type AddQANPostgreSQLPgStatMonitorAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -330,7 +332,9 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) ContextValidate(ctx cont } func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -341,6 +345,7 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(c return err } } + } return nil @@ -369,6 +374,7 @@ AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 add QAN postgre SQL p swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 */ type AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -406,6 +412,7 @@ AddQANPostgreSQLPgStatMonitorAgentOKBody add QAN postgre SQL pg stat monitor age swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBody */ type AddQANPostgreSQLPgStatMonitorAgentOKBody struct { + // qan postgresql pgstatmonitor agent QANPostgresqlPgstatmonitorAgent *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` } @@ -458,6 +465,7 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) ContextValidate(ctx context.C } func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -495,6 +503,7 @@ AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostg swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go index 6ed493954b..b9cecfa0a9 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go @@ -60,6 +60,7 @@ AddQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to t Typically these are written to a http.Request. */ type AddQANPostgreSQLPgStatementsAgentParams struct { + // Body. Body AddQANPostgreSQLPgStatementsAgentBody @@ -129,6 +130,7 @@ func (o *AddQANPostgreSQLPgStatementsAgentParams) SetBody(body AddQANPostgreSQLP // WriteToRequest writes these params to a swagger request func (o *AddQANPostgreSQLPgStatementsAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go index 9f3dd6e74a..e5bbad2317 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go @@ -62,12 +62,12 @@ type AddQANPostgreSQLPgStatementsAgentOK struct { func (o *AddQANPostgreSQLPgStatementsAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent][%d] addQanPostgreSqlPgStatementsAgentOk %+v", 200, o.Payload) } - func (o *AddQANPostgreSQLPgStatementsAgentOK) GetPayload() *AddQANPostgreSQLPgStatementsAgentOKBody { return o.Payload } func (o *AddQANPostgreSQLPgStatementsAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANPostgreSQLPgStatementsAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefault) Code() int { func (o *AddQANPostgreSQLPgStatementsAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent][%d] AddQANPostgreSQLPgStatementsAgent default %+v", o._statusCode, o.Payload) } - func (o *AddQANPostgreSQLPgStatementsAgentDefault) GetPayload() *AddQANPostgreSQLPgStatementsAgentDefaultBody { return o.Payload } func (o *AddQANPostgreSQLPgStatementsAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddQANPostgreSQLPgStatementsAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ AddQANPostgreSQLPgStatementsAgentBody add QAN postgre SQL pg statements agent bo swagger:model AddQANPostgreSQLPgStatementsAgentBody */ type AddQANPostgreSQLPgStatementsAgentBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -262,6 +263,7 @@ AddQANPostgreSQLPgStatementsAgentDefaultBody add QAN postgre SQL pg statements a swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBody */ type AddQANPostgreSQLPgStatementsAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -327,7 +329,9 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) ContextValidate(ctx conte } func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -338,6 +342,7 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ct return err } } + } return nil @@ -366,6 +371,7 @@ AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 */ type AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -403,6 +409,7 @@ AddQANPostgreSQLPgStatementsAgentOKBody add QAN postgre SQL pg statements agent swagger:model AddQANPostgreSQLPgStatementsAgentOKBody */ type AddQANPostgreSQLPgStatementsAgentOKBody struct { + // qan postgresql pgstatements agent QANPostgresqlPgstatementsAgent *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` } @@ -455,6 +462,7 @@ func (o *AddQANPostgreSQLPgStatementsAgentOKBody) ContextValidate(ctx context.Co } func (o *AddQANPostgreSQLPgStatementsAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -492,6 +500,7 @@ AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgre swagger:model AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent */ type AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go b/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go index f8cc041126..9958797e27 100644 --- a/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go @@ -60,6 +60,7 @@ AddRDSExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRDSExporterParams struct { + // Body. Body AddRDSExporterBody @@ -129,6 +130,7 @@ func (o *AddRDSExporterParams) SetBody(body AddRDSExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddRDSExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_rds_exporter_responses.go b/api/inventorypb/json/client/agents/add_rds_exporter_responses.go index b1ca39b203..566f807feb 100644 --- a/api/inventorypb/json/client/agents/add_rds_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_rds_exporter_responses.go @@ -62,12 +62,12 @@ type AddRDSExporterOK struct { func (o *AddRDSExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddRDSExporter][%d] addRdsExporterOk %+v", 200, o.Payload) } - func (o *AddRDSExporterOK) GetPayload() *AddRDSExporterOKBody { return o.Payload } func (o *AddRDSExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRDSExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddRDSExporterDefault) Code() int { func (o *AddRDSExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddRDSExporter][%d] AddRDSExporter default %+v", o._statusCode, o.Payload) } - func (o *AddRDSExporterDefault) GetPayload() *AddRDSExporterDefaultBody { return o.Payload } func (o *AddRDSExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRDSExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ AddRDSExporterBody add RDS exporter body swagger:model AddRDSExporterBody */ type AddRDSExporterBody struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -253,6 +254,7 @@ AddRDSExporterDefaultBody add RDS exporter default body swagger:model AddRDSExporterDefaultBody */ type AddRDSExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -318,7 +320,9 @@ func (o *AddRDSExporterDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -329,6 +333,7 @@ func (o *AddRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -357,6 +362,7 @@ AddRDSExporterDefaultBodyDetailsItems0 add RDS exporter default body details ite swagger:model AddRDSExporterDefaultBodyDetailsItems0 */ type AddRDSExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -394,6 +400,7 @@ AddRDSExporterOKBody add RDS exporter OK body swagger:model AddRDSExporterOKBody */ type AddRDSExporterOKBody struct { + // rds exporter RDSExporter *AddRDSExporterOKBodyRDSExporter `json:"rds_exporter,omitempty"` } @@ -446,6 +453,7 @@ func (o *AddRDSExporterOKBody) ContextValidate(ctx context.Context, formats strf } func (o *AddRDSExporterOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -483,6 +491,7 @@ AddRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node an swagger:model AddRDSExporterOKBodyRDSExporter */ type AddRDSExporterOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go b/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go index 49727b75e6..b9707c910b 100644 --- a/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeAzureDatabaseExporterParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type ChangeAzureDatabaseExporterParams struct { + // Body. Body ChangeAzureDatabaseExporterBody @@ -129,6 +130,7 @@ func (o *ChangeAzureDatabaseExporterParams) SetBody(body ChangeAzureDatabaseExpo // WriteToRequest writes these params to a swagger request func (o *ChangeAzureDatabaseExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go b/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go index c2ce3e1d82..a4313bc9b2 100644 --- a/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeAzureDatabaseExporterOK struct { func (o *ChangeAzureDatabaseExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeAzureDatabaseExporter][%d] changeAzureDatabaseExporterOk %+v", 200, o.Payload) } - func (o *ChangeAzureDatabaseExporterOK) GetPayload() *ChangeAzureDatabaseExporterOKBody { return o.Payload } func (o *ChangeAzureDatabaseExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeAzureDatabaseExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeAzureDatabaseExporterDefault) Code() int { func (o *ChangeAzureDatabaseExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeAzureDatabaseExporter][%d] ChangeAzureDatabaseExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeAzureDatabaseExporterDefault) GetPayload() *ChangeAzureDatabaseExporterDefaultBody { return o.Payload } func (o *ChangeAzureDatabaseExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeAzureDatabaseExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeAzureDatabaseExporterBody change azure database exporter body swagger:model ChangeAzureDatabaseExporterBody */ type ChangeAzureDatabaseExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeAzureDatabaseExporterBody) ContextValidate(ctx context.Context, f } func (o *ChangeAzureDatabaseExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeAzureDatabaseExporterDefaultBody change azure database exporter default bo swagger:model ChangeAzureDatabaseExporterDefaultBody */ type ChangeAzureDatabaseExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeAzureDatabaseExporterDefaultBody) ContextValidate(ctx context.Con } func (o *ChangeAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx cont return err } } + } return nil @@ -321,6 +327,7 @@ ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 change azure database export swagger:model ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 */ type ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeAzureDatabaseExporterOKBody change azure database exporter OK body swagger:model ChangeAzureDatabaseExporterOKBody */ type ChangeAzureDatabaseExporterOKBody struct { + // azure database exporter AzureDatabaseExporter *ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeAzureDatabaseExporterOKBody) ContextValidate(ctx context.Context, } func (o *ChangeAzureDatabaseExporterOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter run swagger:model ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter */ type ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -650,6 +660,7 @@ ChangeAzureDatabaseExporterParamsBodyCommon ChangeCommonAgentParams contains par swagger:model ChangeAzureDatabaseExporterParamsBodyCommon */ type ChangeAzureDatabaseExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_external_exporter_parameters.go b/api/inventorypb/json/client/agents/change_external_exporter_parameters.go index 96ed75e52e..706c60c9fe 100644 --- a/api/inventorypb/json/client/agents/change_external_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_external_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeExternalExporterParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ChangeExternalExporterParams struct { + // Body. Body ChangeExternalExporterBody @@ -129,6 +130,7 @@ func (o *ChangeExternalExporterParams) SetBody(body ChangeExternalExporterBody) // WriteToRequest writes these params to a swagger request func (o *ChangeExternalExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_external_exporter_responses.go b/api/inventorypb/json/client/agents/change_external_exporter_responses.go index 15dc5e5a58..9066e45afa 100644 --- a/api/inventorypb/json/client/agents/change_external_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_external_exporter_responses.go @@ -60,12 +60,12 @@ type ChangeExternalExporterOK struct { func (o *ChangeExternalExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeExternalExporter][%d] changeExternalExporterOk %+v", 200, o.Payload) } - func (o *ChangeExternalExporterOK) GetPayload() *ChangeExternalExporterOKBody { return o.Payload } func (o *ChangeExternalExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeExternalExporterOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ChangeExternalExporterDefault) Code() int { func (o *ChangeExternalExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeExternalExporter][%d] ChangeExternalExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeExternalExporterDefault) GetPayload() *ChangeExternalExporterDefaultBody { return o.Payload } func (o *ChangeExternalExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeExternalExporterDefaultBody) // response payload @@ -123,6 +123,7 @@ ChangeExternalExporterBody change external exporter body swagger:model ChangeExternalExporterBody */ type ChangeExternalExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -178,6 +179,7 @@ func (o *ChangeExternalExporterBody) ContextValidate(ctx context.Context, format } func (o *ChangeExternalExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -215,6 +217,7 @@ ChangeExternalExporterDefaultBody change external exporter default body swagger:model ChangeExternalExporterDefaultBody */ type ChangeExternalExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -280,7 +283,9 @@ func (o *ChangeExternalExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeExternalExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -291,6 +296,7 @@ func (o *ChangeExternalExporterDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -319,6 +325,7 @@ ChangeExternalExporterDefaultBodyDetailsItems0 change external exporter default swagger:model ChangeExternalExporterDefaultBodyDetailsItems0 */ type ChangeExternalExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -356,6 +363,7 @@ ChangeExternalExporterOKBody change external exporter OK body swagger:model ChangeExternalExporterOKBody */ type ChangeExternalExporterOKBody struct { + // external exporter ExternalExporter *ChangeExternalExporterOKBodyExternalExporter `json:"external_exporter,omitempty"` } @@ -408,6 +416,7 @@ func (o *ChangeExternalExporterOKBody) ContextValidate(ctx context.Context, form } func (o *ChangeExternalExporterOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -445,6 +454,7 @@ ChangeExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node t swagger:model ChangeExternalExporterOKBodyExternalExporter */ type ChangeExternalExporterOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -512,6 +522,7 @@ ChangeExternalExporterParamsBodyCommon ChangeCommonAgentParams contains paramete swagger:model ChangeExternalExporterParamsBodyCommon */ type ChangeExternalExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go b/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go index dfa26df26f..c590bfc347 100644 --- a/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeMongoDBExporterParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type ChangeMongoDBExporterParams struct { + // Body. Body ChangeMongoDBExporterBody @@ -129,6 +130,7 @@ func (o *ChangeMongoDBExporterParams) SetBody(body ChangeMongoDBExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeMongoDBExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go b/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go index 3e9fd507dc..9b0c0a7ec3 100644 --- a/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeMongoDBExporterOK struct { func (o *ChangeMongoDBExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMongoDBExporter][%d] changeMongoDbExporterOk %+v", 200, o.Payload) } - func (o *ChangeMongoDBExporterOK) GetPayload() *ChangeMongoDBExporterOKBody { return o.Payload } func (o *ChangeMongoDBExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeMongoDBExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeMongoDBExporterDefault) Code() int { func (o *ChangeMongoDBExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMongoDBExporter][%d] ChangeMongoDBExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeMongoDBExporterDefault) GetPayload() *ChangeMongoDBExporterDefaultBody { return o.Payload } func (o *ChangeMongoDBExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeMongoDBExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeMongoDBExporterBody change mongo DB exporter body swagger:model ChangeMongoDBExporterBody */ type ChangeMongoDBExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeMongoDBExporterBody) ContextValidate(ctx context.Context, formats } func (o *ChangeMongoDBExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeMongoDBExporterDefaultBody change mongo DB exporter default body swagger:model ChangeMongoDBExporterDefaultBody */ type ChangeMongoDBExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeMongoDBExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -321,6 +327,7 @@ ChangeMongoDBExporterDefaultBodyDetailsItems0 change mongo DB exporter default b swagger:model ChangeMongoDBExporterDefaultBodyDetailsItems0 */ type ChangeMongoDBExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeMongoDBExporterOKBody change mongo DB exporter OK body swagger:model ChangeMongoDBExporterOKBody */ type ChangeMongoDBExporterOKBody struct { + // mongodb exporter MongodbExporter *ChangeMongoDBExporterOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeMongoDBExporterOKBody) ContextValidate(ctx context.Context, forma } func (o *ChangeMongoDBExporterOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Co swagger:model ChangeMongoDBExporterOKBodyMongodbExporter */ type ChangeMongoDBExporterOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -666,6 +676,7 @@ ChangeMongoDBExporterParamsBodyCommon ChangeCommonAgentParams contains parameter swagger:model ChangeMongoDBExporterParamsBodyCommon */ type ChangeMongoDBExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go index c1662cbe59..72bc19103d 100644 --- a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeMySQLdExporterParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ChangeMySQLdExporterParams struct { + // Body. Body ChangeMySQLdExporterBody @@ -129,6 +130,7 @@ func (o *ChangeMySQLdExporterParams) SetBody(body ChangeMySQLdExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeMySQLdExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go index 5cd35eec21..8c595cf0c5 100644 --- a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeMySQLdExporterOK struct { func (o *ChangeMySQLdExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMySQLdExporter][%d] changeMySQLdExporterOk %+v", 200, o.Payload) } - func (o *ChangeMySQLdExporterOK) GetPayload() *ChangeMySQLdExporterOKBody { return o.Payload } func (o *ChangeMySQLdExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeMySQLdExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeMySQLdExporterDefault) Code() int { func (o *ChangeMySQLdExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMySQLdExporter][%d] ChangeMySQLdExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeMySQLdExporterDefault) GetPayload() *ChangeMySQLdExporterDefaultBody { return o.Payload } func (o *ChangeMySQLdExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeMySQLdExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeMySQLdExporterBody change my s q ld exporter body swagger:model ChangeMySQLdExporterBody */ type ChangeMySQLdExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeMySQLdExporterBody) ContextValidate(ctx context.Context, formats } func (o *ChangeMySQLdExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeMySQLdExporterDefaultBody change my s q ld exporter default body swagger:model ChangeMySQLdExporterDefaultBody */ type ChangeMySQLdExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeMySQLdExporterDefaultBody) ContextValidate(ctx context.Context, f } func (o *ChangeMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -321,6 +327,7 @@ ChangeMySQLdExporterDefaultBodyDetailsItems0 change my s q ld exporter default b swagger:model ChangeMySQLdExporterDefaultBodyDetailsItems0 */ type ChangeMySQLdExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeMySQLdExporterOKBody change my s q ld exporter OK body swagger:model ChangeMySQLdExporterOKBody */ type ChangeMySQLdExporterOKBody struct { + // mysqld exporter MysqldExporter *ChangeMySQLdExporterOKBodyMysqldExporter `json:"mysqld_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeMySQLdExporterOKBody) ContextValidate(ctx context.Context, format } func (o *ChangeMySQLdExporterOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Conta swagger:model ChangeMySQLdExporterOKBodyMysqldExporter */ type ChangeMySQLdExporterOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -673,6 +683,7 @@ ChangeMySQLdExporterParamsBodyCommon ChangeCommonAgentParams contains parameters swagger:model ChangeMySQLdExporterParamsBodyCommon */ type ChangeMySQLdExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_node_exporter_parameters.go b/api/inventorypb/json/client/agents/change_node_exporter_parameters.go index 0006c8d16f..d252cfc072 100644 --- a/api/inventorypb/json/client/agents/change_node_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_node_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeNodeExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeNodeExporterParams struct { + // Body. Body ChangeNodeExporterBody @@ -129,6 +130,7 @@ func (o *ChangeNodeExporterParams) SetBody(body ChangeNodeExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeNodeExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_node_exporter_responses.go b/api/inventorypb/json/client/agents/change_node_exporter_responses.go index ce55280d3f..b8fdc14bbc 100644 --- a/api/inventorypb/json/client/agents/change_node_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_node_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeNodeExporterOK struct { func (o *ChangeNodeExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeNodeExporter][%d] changeNodeExporterOk %+v", 200, o.Payload) } - func (o *ChangeNodeExporterOK) GetPayload() *ChangeNodeExporterOKBody { return o.Payload } func (o *ChangeNodeExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeNodeExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeNodeExporterDefault) Code() int { func (o *ChangeNodeExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeNodeExporter][%d] ChangeNodeExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeNodeExporterDefault) GetPayload() *ChangeNodeExporterDefaultBody { return o.Payload } func (o *ChangeNodeExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeNodeExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeNodeExporterBody change node exporter body swagger:model ChangeNodeExporterBody */ type ChangeNodeExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeNodeExporterBody) ContextValidate(ctx context.Context, formats st } func (o *ChangeNodeExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeNodeExporterDefaultBody change node exporter default body swagger:model ChangeNodeExporterDefaultBody */ type ChangeNodeExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeNodeExporterDefaultBody) ContextValidate(ctx context.Context, for } func (o *ChangeNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeNodeExporterDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -321,6 +327,7 @@ ChangeNodeExporterDefaultBodyDetailsItems0 change node exporter default body det swagger:model ChangeNodeExporterDefaultBodyDetailsItems0 */ type ChangeNodeExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeNodeExporterOKBody change node exporter OK body swagger:model ChangeNodeExporterOKBody */ type ChangeNodeExporterOKBody struct { + // node exporter NodeExporter *ChangeNodeExporterOKBodyNodeExporter `json:"node_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeNodeExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *ChangeNodeExporterOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container N swagger:model ChangeNodeExporterOKBodyNodeExporter */ type ChangeNodeExporterOKBodyNodeExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -644,6 +654,7 @@ ChangeNodeExporterParamsBodyCommon ChangeCommonAgentParams contains parameters t swagger:model ChangeNodeExporterParamsBodyCommon */ type ChangeNodeExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go b/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go index b6a0e657ec..6ea9423b53 100644 --- a/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go @@ -60,6 +60,7 @@ ChangePostgresExporterParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ChangePostgresExporterParams struct { + // Body. Body ChangePostgresExporterBody @@ -129,6 +130,7 @@ func (o *ChangePostgresExporterParams) SetBody(body ChangePostgresExporterBody) // WriteToRequest writes these params to a swagger request func (o *ChangePostgresExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go b/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go index f0bcb24ab9..259d9b369b 100644 --- a/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go @@ -62,12 +62,12 @@ type ChangePostgresExporterOK struct { func (o *ChangePostgresExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangePostgresExporter][%d] changePostgresExporterOk %+v", 200, o.Payload) } - func (o *ChangePostgresExporterOK) GetPayload() *ChangePostgresExporterOKBody { return o.Payload } func (o *ChangePostgresExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangePostgresExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangePostgresExporterDefault) Code() int { func (o *ChangePostgresExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangePostgresExporter][%d] ChangePostgresExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangePostgresExporterDefault) GetPayload() *ChangePostgresExporterDefaultBody { return o.Payload } func (o *ChangePostgresExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangePostgresExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangePostgresExporterBody change postgres exporter body swagger:model ChangePostgresExporterBody */ type ChangePostgresExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangePostgresExporterBody) ContextValidate(ctx context.Context, format } func (o *ChangePostgresExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangePostgresExporterDefaultBody change postgres exporter default body swagger:model ChangePostgresExporterDefaultBody */ type ChangePostgresExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangePostgresExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangePostgresExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangePostgresExporterDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -321,6 +327,7 @@ ChangePostgresExporterDefaultBodyDetailsItems0 change postgres exporter default swagger:model ChangePostgresExporterDefaultBodyDetailsItems0 */ type ChangePostgresExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangePostgresExporterOKBody change postgres exporter OK body swagger:model ChangePostgresExporterOKBody */ type ChangePostgresExporterOKBody struct { + // postgres exporter PostgresExporter *ChangePostgresExporterOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangePostgresExporterOKBody) ContextValidate(ctx context.Context, form } func (o *ChangePostgresExporterOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangePostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or swagger:model ChangePostgresExporterOKBodyPostgresExporter */ type ChangePostgresExporterOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -656,6 +666,7 @@ ChangePostgresExporterParamsBodyCommon ChangeCommonAgentParams contains paramete swagger:model ChangePostgresExporterParamsBodyCommon */ type ChangePostgresExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go index 672412700e..1e9ecc1470 100644 --- a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeProxySQLExporterParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ChangeProxySQLExporterParams struct { + // Body. Body ChangeProxySQLExporterBody @@ -129,6 +130,7 @@ func (o *ChangeProxySQLExporterParams) SetBody(body ChangeProxySQLExporterBody) // WriteToRequest writes these params to a swagger request func (o *ChangeProxySQLExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go index 5aa9e41d5c..13cc92558e 100644 --- a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeProxySQLExporterOK struct { func (o *ChangeProxySQLExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeProxySQLExporter][%d] changeProxySqlExporterOk %+v", 200, o.Payload) } - func (o *ChangeProxySQLExporterOK) GetPayload() *ChangeProxySQLExporterOKBody { return o.Payload } func (o *ChangeProxySQLExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeProxySQLExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeProxySQLExporterDefault) Code() int { func (o *ChangeProxySQLExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeProxySQLExporter][%d] ChangeProxySQLExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeProxySQLExporterDefault) GetPayload() *ChangeProxySQLExporterDefaultBody { return o.Payload } func (o *ChangeProxySQLExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeProxySQLExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeProxySQLExporterBody change proxy SQL exporter body swagger:model ChangeProxySQLExporterBody */ type ChangeProxySQLExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeProxySQLExporterBody) ContextValidate(ctx context.Context, format } func (o *ChangeProxySQLExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeProxySQLExporterDefaultBody change proxy SQL exporter default body swagger:model ChangeProxySQLExporterDefaultBody */ type ChangeProxySQLExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeProxySQLExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeProxySQLExporterDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -321,6 +327,7 @@ ChangeProxySQLExporterDefaultBodyDetailsItems0 change proxy SQL exporter default swagger:model ChangeProxySQLExporterDefaultBodyDetailsItems0 */ type ChangeProxySQLExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeProxySQLExporterOKBody change proxy SQL exporter OK body swagger:model ChangeProxySQLExporterOKBody */ type ChangeProxySQLExporterOKBody struct { + // proxysql exporter ProxysqlExporter *ChangeProxySQLExporterOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeProxySQLExporterOKBody) ContextValidate(ctx context.Context, form } func (o *ChangeProxySQLExporterOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or swagger:model ChangeProxySQLExporterOKBodyProxysqlExporter */ type ChangeProxySQLExporterOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -656,6 +666,7 @@ ChangeProxySQLExporterParamsBodyCommon ChangeCommonAgentParams contains paramete swagger:model ChangeProxySQLExporterParamsBodyCommon */ type ChangeProxySQLExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go index 474f009ca3..c318d3dd2b 100644 --- a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go @@ -60,6 +60,7 @@ ChangeQANMongoDBProfilerAgentParams contains all the parameters to send to the A Typically these are written to a http.Request. */ type ChangeQANMongoDBProfilerAgentParams struct { + // Body. Body ChangeQANMongoDBProfilerAgentBody @@ -129,6 +130,7 @@ func (o *ChangeQANMongoDBProfilerAgentParams) SetBody(body ChangeQANMongoDBProfi // WriteToRequest writes these params to a swagger request func (o *ChangeQANMongoDBProfilerAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go index 99ed7e54f3..b506c45b27 100644 --- a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANMongoDBProfilerAgentOK struct { func (o *ChangeQANMongoDBProfilerAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMongoDBProfilerAgent][%d] changeQanMongoDbProfilerAgentOk %+v", 200, o.Payload) } - func (o *ChangeQANMongoDBProfilerAgentOK) GetPayload() *ChangeQANMongoDBProfilerAgentOKBody { return o.Payload } func (o *ChangeQANMongoDBProfilerAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANMongoDBProfilerAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANMongoDBProfilerAgentDefault) Code() int { func (o *ChangeQANMongoDBProfilerAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMongoDBProfilerAgent][%d] ChangeQANMongoDBProfilerAgent default %+v", o._statusCode, o.Payload) } - func (o *ChangeQANMongoDBProfilerAgentDefault) GetPayload() *ChangeQANMongoDBProfilerAgentDefaultBody { return o.Payload } func (o *ChangeQANMongoDBProfilerAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANMongoDBProfilerAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeQANMongoDBProfilerAgentBody change QAN mongo DB profiler agent body swagger:model ChangeQANMongoDBProfilerAgentBody */ type ChangeQANMongoDBProfilerAgentBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeQANMongoDBProfilerAgentBody) ContextValidate(ctx context.Context, } func (o *ChangeQANMongoDBProfilerAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeQANMongoDBProfilerAgentDefaultBody change QAN mongo DB profiler agent defa swagger:model ChangeQANMongoDBProfilerAgentDefaultBody */ type ChangeQANMongoDBProfilerAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeQANMongoDBProfilerAgentDefaultBody) ContextValidate(ctx context.C } func (o *ChangeQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx co return err } } + } return nil @@ -321,6 +327,7 @@ ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 change QAN mongo DB profil swagger:model ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 */ type ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeQANMongoDBProfilerAgentOKBody change QAN mongo DB profiler agent OK body swagger:model ChangeQANMongoDBProfilerAgentOKBody */ type ChangeQANMongoDBProfilerAgentOKBody struct { + // qan mongodb profiler agent QANMongodbProfilerAgent *ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeQANMongoDBProfilerAgentOKBody) ContextValidate(ctx context.Contex } func (o *ChangeQANMongoDBProfilerAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAge swagger:model ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent */ type ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -647,6 +657,7 @@ ChangeQANMongoDBProfilerAgentParamsBodyCommon ChangeCommonAgentParams contains p swagger:model ChangeQANMongoDBProfilerAgentParamsBodyCommon */ type ChangeQANMongoDBProfilerAgentParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go index c5c7f64dc9..d00ede7b82 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go @@ -60,6 +60,7 @@ ChangeQANMySQLPerfSchemaAgentParams contains all the parameters to send to the A Typically these are written to a http.Request. */ type ChangeQANMySQLPerfSchemaAgentParams struct { + // Body. Body ChangeQANMySQLPerfSchemaAgentBody @@ -129,6 +130,7 @@ func (o *ChangeQANMySQLPerfSchemaAgentParams) SetBody(body ChangeQANMySQLPerfSch // WriteToRequest writes these params to a swagger request func (o *ChangeQANMySQLPerfSchemaAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go index 6ba7c53a42..f521a9fac2 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANMySQLPerfSchemaAgentOK struct { func (o *ChangeQANMySQLPerfSchemaAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent][%d] changeQanMySqlPerfSchemaAgentOk %+v", 200, o.Payload) } - func (o *ChangeQANMySQLPerfSchemaAgentOK) GetPayload() *ChangeQANMySQLPerfSchemaAgentOKBody { return o.Payload } func (o *ChangeQANMySQLPerfSchemaAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANMySQLPerfSchemaAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefault) Code() int { func (o *ChangeQANMySQLPerfSchemaAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent][%d] ChangeQANMySQLPerfSchemaAgent default %+v", o._statusCode, o.Payload) } - func (o *ChangeQANMySQLPerfSchemaAgentDefault) GetPayload() *ChangeQANMySQLPerfSchemaAgentDefaultBody { return o.Payload } func (o *ChangeQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANMySQLPerfSchemaAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeQANMySQLPerfSchemaAgentBody change QAN my SQL perf schema agent body swagger:model ChangeQANMySQLPerfSchemaAgentBody */ type ChangeQANMySQLPerfSchemaAgentBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeQANMySQLPerfSchemaAgentBody) ContextValidate(ctx context.Context, } func (o *ChangeQANMySQLPerfSchemaAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeQANMySQLPerfSchemaAgentDefaultBody change QAN my SQL perf schema agent def swagger:model ChangeQANMySQLPerfSchemaAgentDefaultBody */ type ChangeQANMySQLPerfSchemaAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) ContextValidate(ctx context.C } func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx co return err } } + } return nil @@ -321,6 +327,7 @@ ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 change QAN my SQL perf sch swagger:model ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 */ type ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeQANMySQLPerfSchemaAgentOKBody change QAN my SQL perf schema agent OK body swagger:model ChangeQANMySQLPerfSchemaAgentOKBody */ type ChangeQANMySQLPerfSchemaAgentOKBody struct { + // qan mysql perfschema agent QANMysqlPerfschemaAgent *ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeQANMySQLPerfSchemaAgentOKBody) ContextValidate(ctx context.Contex } func (o *ChangeQANMySQLPerfSchemaAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAge swagger:model ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent */ type ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -662,6 +672,7 @@ ChangeQANMySQLPerfSchemaAgentParamsBodyCommon ChangeCommonAgentParams contains p swagger:model ChangeQANMySQLPerfSchemaAgentParamsBodyCommon */ type ChangeQANMySQLPerfSchemaAgentParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go index dbbe017f33..2fde2c4d15 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go @@ -60,6 +60,7 @@ ChangeQANMySQLSlowlogAgentParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type ChangeQANMySQLSlowlogAgentParams struct { + // Body. Body ChangeQANMySQLSlowlogAgentBody @@ -129,6 +130,7 @@ func (o *ChangeQANMySQLSlowlogAgentParams) SetBody(body ChangeQANMySQLSlowlogAge // WriteToRequest writes these params to a swagger request func (o *ChangeQANMySQLSlowlogAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go index 7ba38d2d40..fb7c8a534e 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANMySQLSlowlogAgentOK struct { func (o *ChangeQANMySQLSlowlogAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLSlowlogAgent][%d] changeQanMySqlSlowlogAgentOk %+v", 200, o.Payload) } - func (o *ChangeQANMySQLSlowlogAgentOK) GetPayload() *ChangeQANMySQLSlowlogAgentOKBody { return o.Payload } func (o *ChangeQANMySQLSlowlogAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANMySQLSlowlogAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANMySQLSlowlogAgentDefault) Code() int { func (o *ChangeQANMySQLSlowlogAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLSlowlogAgent][%d] ChangeQANMySQLSlowlogAgent default %+v", o._statusCode, o.Payload) } - func (o *ChangeQANMySQLSlowlogAgentDefault) GetPayload() *ChangeQANMySQLSlowlogAgentDefaultBody { return o.Payload } func (o *ChangeQANMySQLSlowlogAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANMySQLSlowlogAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeQANMySQLSlowlogAgentBody change QAN my SQL slowlog agent body swagger:model ChangeQANMySQLSlowlogAgentBody */ type ChangeQANMySQLSlowlogAgentBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeQANMySQLSlowlogAgentBody) ContextValidate(ctx context.Context, fo } func (o *ChangeQANMySQLSlowlogAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeQANMySQLSlowlogAgentDefaultBody change QAN my SQL slowlog agent default bo swagger:model ChangeQANMySQLSlowlogAgentDefaultBody */ type ChangeQANMySQLSlowlogAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeQANMySQLSlowlogAgentDefaultBody) ContextValidate(ctx context.Cont } func (o *ChangeQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx conte return err } } + } return nil @@ -321,6 +327,7 @@ ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 change QAN my SQL slowlog age swagger:model ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 */ type ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeQANMySQLSlowlogAgentOKBody change QAN my SQL slowlog agent OK body swagger:model ChangeQANMySQLSlowlogAgentOKBody */ type ChangeQANMySQLSlowlogAgentOKBody struct { + // qan mysql slowlog agent QANMysqlSlowlogAgent *ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeQANMySQLSlowlogAgentOKBody) ContextValidate(ctx context.Context, } func (o *ChangeQANMySQLSlowlogAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs w swagger:model ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent */ type ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -665,6 +675,7 @@ ChangeQANMySQLSlowlogAgentParamsBodyCommon ChangeCommonAgentParams contains para swagger:model ChangeQANMySQLSlowlogAgentParamsBodyCommon */ type ChangeQANMySQLSlowlogAgentParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go index b68464b06e..ec06fe6545 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go @@ -60,6 +60,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send Typically these are written to a http.Request. */ type ChangeQANPostgreSQLPgStatMonitorAgentParams struct { + // Body. Body ChangeQANPostgreSQLPgStatMonitorAgentBody @@ -129,6 +130,7 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentParams) SetBody(body ChangeQANPost // WriteToRequest writes these params to a swagger request func (o *ChangeQANPostgreSQLPgStatMonitorAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go index 65408d237e..7bb2d46091 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANPostgreSQLPgStatMonitorAgentOK struct { func (o *ChangeQANPostgreSQLPgStatMonitorAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent][%d] changeQanPostgreSqlPgStatMonitorAgentOk %+v", 200, o.Payload) } - func (o *ChangeQANPostgreSQLPgStatMonitorAgentOK) GetPayload() *ChangeQANPostgreSQLPgStatMonitorAgentOKBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatMonitorAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANPostgreSQLPgStatMonitorAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) Code() int { func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent][%d] ChangeQANPostgreSQLPgStatMonitorAgent default %+v", o._statusCode, o.Payload) } - func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) GetPayload() *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentBody change QAN postgre SQL pg stat monitor swagger:model ChangeQANPostgreSQLPgStatMonitorAgentBody */ type ChangeQANPostgreSQLPgStatMonitorAgentBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentBody) ContextValidate(ctx context. } func (o *ChangeQANPostgreSQLPgStatMonitorAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody change QAN postgre SQL pg stat swagger:model ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody */ type ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) ContextValidate(ctx c } func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetail return err } } + } return nil @@ -321,6 +327,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 change QAN postgre swagger:model ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 */ type ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentOKBody change QAN postgre SQL pg stat monit swagger:model ChangeQANPostgreSQLPgStatMonitorAgentOKBody */ type ChangeQANPostgreSQLPgStatMonitorAgentOKBody struct { + // qan postgresql pgstatmonitor agent QANPostgresqlPgstatmonitorAgent *ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentOKBody) ContextValidate(ctx contex } func (o *ChangeQANPostgreSQLPgStatMonitorAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPo swagger:model ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -653,6 +663,7 @@ ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon ChangeCommonAgentParams co swagger:model ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon */ type ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go index e298289e91..aadc876620 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go @@ -60,6 +60,7 @@ ChangeQANPostgreSQLPgStatementsAgentParams contains all the parameters to send t Typically these are written to a http.Request. */ type ChangeQANPostgreSQLPgStatementsAgentParams struct { + // Body. Body ChangeQANPostgreSQLPgStatementsAgentBody @@ -129,6 +130,7 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentParams) SetBody(body ChangeQANPostg // WriteToRequest writes these params to a swagger request func (o *ChangeQANPostgreSQLPgStatementsAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go index 8598081f6b..f5e2f20069 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANPostgreSQLPgStatementsAgentOK struct { func (o *ChangeQANPostgreSQLPgStatementsAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent][%d] changeQanPostgreSqlPgStatementsAgentOk %+v", 200, o.Payload) } - func (o *ChangeQANPostgreSQLPgStatementsAgentOK) GetPayload() *ChangeQANPostgreSQLPgStatementsAgentOKBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatementsAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANPostgreSQLPgStatementsAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) Code() int { func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent][%d] ChangeQANPostgreSQLPgStatementsAgent default %+v", o._statusCode, o.Payload) } - func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) GetPayload() *ChangeQANPostgreSQLPgStatementsAgentDefaultBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeQANPostgreSQLPgStatementsAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeQANPostgreSQLPgStatementsAgentBody change QAN postgre SQL pg statements ag swagger:model ChangeQANPostgreSQLPgStatementsAgentBody */ type ChangeQANPostgreSQLPgStatementsAgentBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentBody) ContextValidate(ctx context.C } func (o *ChangeQANPostgreSQLPgStatementsAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeQANPostgreSQLPgStatementsAgentDefaultBody change QAN postgre SQL pg statem swagger:model ChangeQANPostgreSQLPgStatementsAgentDefaultBody */ type ChangeQANPostgreSQLPgStatementsAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) ContextValidate(ctx co } func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails return err } } + } return nil @@ -321,6 +327,7 @@ ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 change QAN postgre swagger:model ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 */ type ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeQANPostgreSQLPgStatementsAgentOKBody change QAN postgre SQL pg statements swagger:model ChangeQANPostgreSQLPgStatementsAgentOKBody */ type ChangeQANPostgreSQLPgStatementsAgentOKBody struct { + // qan postgresql pgstatements agent QANPostgresqlPgstatementsAgent *ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentOKBody) ContextValidate(ctx context } func (o *ChangeQANPostgreSQLPgStatementsAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPost swagger:model ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent */ type ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -650,6 +660,7 @@ ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon ChangeCommonAgentParams con swagger:model ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon */ type ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go b/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go index a4c20a2fae..f071fa78f7 100644 --- a/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go @@ -60,6 +60,7 @@ ChangeRDSExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeRDSExporterParams struct { + // Body. Body ChangeRDSExporterBody @@ -129,6 +130,7 @@ func (o *ChangeRDSExporterParams) SetBody(body ChangeRDSExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeRDSExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_rds_exporter_responses.go b/api/inventorypb/json/client/agents/change_rds_exporter_responses.go index 53eb141dd9..90510c9f12 100644 --- a/api/inventorypb/json/client/agents/change_rds_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_rds_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeRDSExporterOK struct { func (o *ChangeRDSExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeRDSExporter][%d] changeRdsExporterOk %+v", 200, o.Payload) } - func (o *ChangeRDSExporterOK) GetPayload() *ChangeRDSExporterOKBody { return o.Payload } func (o *ChangeRDSExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeRDSExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeRDSExporterDefault) Code() int { func (o *ChangeRDSExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeRDSExporter][%d] ChangeRDSExporter default %+v", o._statusCode, o.Payload) } - func (o *ChangeRDSExporterDefault) GetPayload() *ChangeRDSExporterDefaultBody { return o.Payload } func (o *ChangeRDSExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeRDSExporterDefaultBody) // response payload @@ -125,6 +125,7 @@ ChangeRDSExporterBody change RDS exporter body swagger:model ChangeRDSExporterBody */ type ChangeRDSExporterBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -180,6 +181,7 @@ func (o *ChangeRDSExporterBody) ContextValidate(ctx context.Context, formats str } func (o *ChangeRDSExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { + if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ChangeRDSExporterDefaultBody change RDS exporter default body swagger:model ChangeRDSExporterDefaultBody */ type ChangeRDSExporterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ChangeRDSExporterDefaultBody) ContextValidate(ctx context.Context, form } func (o *ChangeRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ChangeRDSExporterDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -321,6 +327,7 @@ ChangeRDSExporterDefaultBodyDetailsItems0 change RDS exporter default body detai swagger:model ChangeRDSExporterDefaultBodyDetailsItems0 */ type ChangeRDSExporterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ChangeRDSExporterOKBody change RDS exporter OK body swagger:model ChangeRDSExporterOKBody */ type ChangeRDSExporterOKBody struct { + // rds exporter RDSExporter *ChangeRDSExporterOKBodyRDSExporter `json:"rds_exporter,omitempty"` } @@ -410,6 +418,7 @@ func (o *ChangeRDSExporterOKBody) ContextValidate(ctx context.Context, formats s } func (o *ChangeRDSExporterOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -447,6 +456,7 @@ ChangeRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node swagger:model ChangeRDSExporterOKBodyRDSExporter */ type ChangeRDSExporterOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -653,6 +663,7 @@ ChangeRDSExporterParamsBodyCommon ChangeCommonAgentParams contains parameters th swagger:model ChangeRDSExporterParamsBodyCommon */ type ChangeRDSExporterParamsBodyCommon struct { + // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/get_agent_logs_parameters.go b/api/inventorypb/json/client/agents/get_agent_logs_parameters.go index 78082ad59f..fba72db550 100644 --- a/api/inventorypb/json/client/agents/get_agent_logs_parameters.go +++ b/api/inventorypb/json/client/agents/get_agent_logs_parameters.go @@ -60,6 +60,7 @@ GetAgentLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetAgentLogsParams struct { + // Body. Body GetAgentLogsBody @@ -129,6 +130,7 @@ func (o *GetAgentLogsParams) SetBody(body GetAgentLogsBody) { // WriteToRequest writes these params to a swagger request func (o *GetAgentLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/get_agent_logs_responses.go b/api/inventorypb/json/client/agents/get_agent_logs_responses.go index 71c2f38be2..06de9b93f9 100644 --- a/api/inventorypb/json/client/agents/get_agent_logs_responses.go +++ b/api/inventorypb/json/client/agents/get_agent_logs_responses.go @@ -60,12 +60,12 @@ type GetAgentLogsOK struct { func (o *GetAgentLogsOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/GetLogs][%d] getAgentLogsOk %+v", 200, o.Payload) } - func (o *GetAgentLogsOK) GetPayload() *GetAgentLogsOKBody { return o.Payload } func (o *GetAgentLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentLogsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetAgentLogsDefault) Code() int { func (o *GetAgentLogsDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/GetLogs][%d] GetAgentLogs default %+v", o._statusCode, o.Payload) } - func (o *GetAgentLogsDefault) GetPayload() *GetAgentLogsDefaultBody { return o.Payload } func (o *GetAgentLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentLogsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetAgentLogsBody get agent logs body swagger:model GetAgentLogsBody */ type GetAgentLogsBody struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -163,6 +164,7 @@ GetAgentLogsDefaultBody get agent logs default body swagger:model GetAgentLogsDefaultBody */ type GetAgentLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *GetAgentLogsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetAgentLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *GetAgentLogsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -267,6 +272,7 @@ GetAgentLogsDefaultBodyDetailsItems0 get agent logs default body details items0 swagger:model GetAgentLogsDefaultBodyDetailsItems0 */ type GetAgentLogsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ GetAgentLogsOKBody get agent logs OK body swagger:model GetAgentLogsOKBody */ type GetAgentLogsOKBody struct { + // logs Logs []string `json:"logs"` diff --git a/api/inventorypb/json/client/agents/get_agent_parameters.go b/api/inventorypb/json/client/agents/get_agent_parameters.go index f546eed4ef..96d93864cd 100644 --- a/api/inventorypb/json/client/agents/get_agent_parameters.go +++ b/api/inventorypb/json/client/agents/get_agent_parameters.go @@ -60,6 +60,7 @@ GetAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetAgentParams struct { + // Body. Body GetAgentBody @@ -129,6 +130,7 @@ func (o *GetAgentParams) SetBody(body GetAgentBody) { // WriteToRequest writes these params to a swagger request func (o *GetAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/get_agent_responses.go b/api/inventorypb/json/client/agents/get_agent_responses.go index d14219d731..a0620fed12 100644 --- a/api/inventorypb/json/client/agents/get_agent_responses.go +++ b/api/inventorypb/json/client/agents/get_agent_responses.go @@ -62,12 +62,12 @@ type GetAgentOK struct { func (o *GetAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Get][%d] getAgentOk %+v", 200, o.Payload) } - func (o *GetAgentOK) GetPayload() *GetAgentOKBody { return o.Payload } func (o *GetAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetAgentDefault) Code() int { func (o *GetAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Get][%d] GetAgent default %+v", o._statusCode, o.Payload) } - func (o *GetAgentDefault) GetPayload() *GetAgentDefaultBody { return o.Payload } func (o *GetAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentDefaultBody) // response payload @@ -125,6 +125,7 @@ GetAgentBody get agent body swagger:model GetAgentBody */ type GetAgentBody struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` } @@ -162,6 +163,7 @@ GetAgentDefaultBody get agent default body swagger:model GetAgentDefaultBody */ type GetAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -227,7 +229,9 @@ func (o *GetAgentDefaultBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,6 +242,7 @@ func (o *GetAgentDefaultBody) contextValidateDetails(ctx context.Context, format return err } } + } return nil @@ -266,6 +271,7 @@ GetAgentDefaultBodyDetailsItems0 get agent default body details items0 swagger:model GetAgentDefaultBodyDetailsItems0 */ type GetAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -303,6 +309,7 @@ GetAgentOKBody get agent OK body swagger:model GetAgentOKBody */ type GetAgentOKBody struct { + // azure database exporter AzureDatabaseExporter *GetAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -775,6 +782,7 @@ func (o *GetAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *GetAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -790,6 +798,7 @@ func (o *GetAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Contex } func (o *GetAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -805,6 +814,7 @@ func (o *GetAgentOKBody) contextValidateExternalExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -820,6 +830,7 @@ func (o *GetAgentOKBody) contextValidateMongodbExporter(ctx context.Context, for } func (o *GetAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -835,6 +846,7 @@ func (o *GetAgentOKBody) contextValidateMysqldExporter(ctx context.Context, form } func (o *GetAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -850,6 +862,7 @@ func (o *GetAgentOKBody) contextValidateNodeExporter(ctx context.Context, format } func (o *GetAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -865,6 +878,7 @@ func (o *GetAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats st } func (o *GetAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -880,6 +894,7 @@ func (o *GetAgentOKBody) contextValidatePostgresExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -895,6 +910,7 @@ func (o *GetAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -910,6 +926,7 @@ func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -925,6 +942,7 @@ func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -940,6 +958,7 @@ func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -955,6 +974,7 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx conte } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -970,6 +990,7 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx cont } func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -985,6 +1006,7 @@ func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats } func (o *GetAgentOKBody) contextValidateVmagent(ctx context.Context, formats strfmt.Registry) error { + if o.Vmagent != nil { if err := o.Vmagent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1022,6 +1044,7 @@ GetAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Con swagger:model GetAgentOKBodyAzureDatabaseExporter */ type GetAgentOKBodyAzureDatabaseExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1225,6 +1248,7 @@ GetAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including swagger:model GetAgentOKBodyExternalExporter */ type GetAgentOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1292,6 +1316,7 @@ GetAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node swagger:model GetAgentOKBodyMongodbExporter */ type GetAgentOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1511,6 +1536,7 @@ GetAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node an swagger:model GetAgentOKBodyMysqldExporter */ type GetAgentOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1737,6 +1763,7 @@ GetAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and ex swagger:model GetAgentOKBodyNodeExporter */ type GetAgentOKBodyNodeExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1934,6 +1961,7 @@ GetAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model GetAgentOKBodyPMMAgent */ type GetAgentOKBodyPMMAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1983,6 +2011,7 @@ GetAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Nod swagger:model GetAgentOKBodyPostgresExporter */ type GetAgentOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2192,6 +2221,7 @@ GetAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Nod swagger:model GetAgentOKBodyProxysqlExporter */ type GetAgentOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2401,6 +2431,7 @@ GetAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMongodbProfilerAgent */ type GetAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2601,6 +2632,7 @@ GetAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMysqlPerfschemaAgent */ type GetAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2816,6 +2848,7 @@ GetAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent an swagger:model GetAgentOKBodyQANMysqlSlowlogAgent */ type GetAgentOKBodyQANMysqlSlowlogAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3034,6 +3067,7 @@ GetAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs swagger:model GetAgentOKBodyQANPostgresqlPgstatementsAgent */ type GetAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3237,6 +3271,7 @@ GetAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent ru swagger:model GetAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type GetAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3443,6 +3478,7 @@ GetAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and expo swagger:model GetAgentOKBodyRDSExporter */ type GetAgentOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3651,6 +3687,7 @@ GetAgentOKBodyVmagent VMAgent runs on Generic or Container Node alongside pmm-ag swagger:model GetAgentOKBodyVmagent */ type GetAgentOKBodyVmagent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/list_agents_parameters.go b/api/inventorypb/json/client/agents/list_agents_parameters.go index 45319cd49a..9abf6624ab 100644 --- a/api/inventorypb/json/client/agents/list_agents_parameters.go +++ b/api/inventorypb/json/client/agents/list_agents_parameters.go @@ -60,6 +60,7 @@ ListAgentsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListAgentsParams struct { + // Body. Body ListAgentsBody @@ -129,6 +130,7 @@ func (o *ListAgentsParams) SetBody(body ListAgentsBody) { // WriteToRequest writes these params to a swagger request func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/list_agents_responses.go b/api/inventorypb/json/client/agents/list_agents_responses.go index 0826dc2db8..a04efd2734 100644 --- a/api/inventorypb/json/client/agents/list_agents_responses.go +++ b/api/inventorypb/json/client/agents/list_agents_responses.go @@ -62,12 +62,12 @@ type ListAgentsOK struct { func (o *ListAgentsOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/List][%d] listAgentsOk %+v", 200, o.Payload) } - func (o *ListAgentsOK) GetPayload() *ListAgentsOKBody { return o.Payload } func (o *ListAgentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListAgentsDefault) Code() int { func (o *ListAgentsDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/List][%d] ListAgents default %+v", o._statusCode, o.Payload) } - func (o *ListAgentsDefault) GetPayload() *ListAgentsDefaultBody { return o.Payload } func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentsDefaultBody) // response payload @@ -125,6 +125,7 @@ ListAgentsBody list agents body swagger:model ListAgentsBody */ type ListAgentsBody struct { + // Return only Agents started by this pmm-agent. // Exactly one of these parameters should be present: pmm_agent_id, node_id, service_id. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -268,6 +269,7 @@ ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -333,7 +335,9 @@ func (o *ListAgentsDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,6 +348,7 @@ func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -372,6 +377,7 @@ ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -409,6 +415,7 @@ ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { + // pmm agent PMMAgent []*ListAgentsOKBodyPMMAgentItems0 `json:"pmm_agent"` @@ -986,7 +993,9 @@ func (o *ListAgentsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListAgentsOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.PMMAgent); i++ { + if o.PMMAgent[i] != nil { if err := o.PMMAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -997,13 +1006,16 @@ func (o *ListAgentsOKBody) contextValidatePMMAgent(ctx context.Context, formats return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateVMAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.VMAgent); i++ { + if o.VMAgent[i] != nil { if err := o.VMAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1014,13 +1026,16 @@ func (o *ListAgentsOKBody) contextValidateVMAgent(ctx context.Context, formats s return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.NodeExporter); i++ { + if o.NodeExporter[i] != nil { if err := o.NodeExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1031,13 +1046,16 @@ func (o *ListAgentsOKBody) contextValidateNodeExporter(ctx context.Context, form return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.MysqldExporter); i++ { + if o.MysqldExporter[i] != nil { if err := o.MysqldExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1048,13 +1066,16 @@ func (o *ListAgentsOKBody) contextValidateMysqldExporter(ctx context.Context, fo return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.MongodbExporter); i++ { + if o.MongodbExporter[i] != nil { if err := o.MongodbExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1065,13 +1086,16 @@ func (o *ListAgentsOKBody) contextValidateMongodbExporter(ctx context.Context, f return err } } + } return nil } func (o *ListAgentsOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.PostgresExporter); i++ { + if o.PostgresExporter[i] != nil { if err := o.PostgresExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1082,13 +1106,16 @@ func (o *ListAgentsOKBody) contextValidatePostgresExporter(ctx context.Context, return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ProxysqlExporter); i++ { + if o.ProxysqlExporter[i] != nil { if err := o.ProxysqlExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1099,13 +1126,16 @@ func (o *ListAgentsOKBody) contextValidateProxysqlExporter(ctx context.Context, return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QANMysqlPerfschemaAgent); i++ { + if o.QANMysqlPerfschemaAgent[i] != nil { if err := o.QANMysqlPerfschemaAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1116,13 +1146,16 @@ func (o *ListAgentsOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Co return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QANMysqlSlowlogAgent); i++ { + if o.QANMysqlSlowlogAgent[i] != nil { if err := o.QANMysqlSlowlogAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1133,13 +1166,16 @@ func (o *ListAgentsOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Conte return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QANMongodbProfilerAgent); i++ { + if o.QANMongodbProfilerAgent[i] != nil { if err := o.QANMongodbProfilerAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1150,13 +1186,16 @@ func (o *ListAgentsOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Co return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QANPostgresqlPgstatementsAgent); i++ { + if o.QANPostgresqlPgstatementsAgent[i] != nil { if err := o.QANPostgresqlPgstatementsAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1167,13 +1206,16 @@ func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx con return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QANPostgresqlPgstatmonitorAgent); i++ { + if o.QANPostgresqlPgstatmonitorAgent[i] != nil { if err := o.QANPostgresqlPgstatmonitorAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1184,13 +1226,16 @@ func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx co return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RDSExporter); i++ { + if o.RDSExporter[i] != nil { if err := o.RDSExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1201,13 +1246,16 @@ func (o *ListAgentsOKBody) contextValidateRDSExporter(ctx context.Context, forma return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ExternalExporter); i++ { + if o.ExternalExporter[i] != nil { if err := o.ExternalExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1218,13 +1266,16 @@ func (o *ListAgentsOKBody) contextValidateExternalExporter(ctx context.Context, return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.AzureDatabaseExporter); i++ { + if o.AzureDatabaseExporter[i] != nil { if err := o.AzureDatabaseExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1235,6 +1286,7 @@ func (o *ListAgentsOKBody) contextValidateAzureDatabaseExporter(ctx context.Cont return err } } + } return nil @@ -1263,6 +1315,7 @@ ListAgentsOKBodyAzureDatabaseExporterItems0 AzureDatabaseExporter runs on Generi swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0 */ type ListAgentsOKBodyAzureDatabaseExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1466,6 +1519,7 @@ ListAgentsOKBodyExternalExporterItems0 ExternalExporter runs on any Node type, i swagger:model ListAgentsOKBodyExternalExporterItems0 */ type ListAgentsOKBodyExternalExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1533,6 +1587,7 @@ ListAgentsOKBodyMongodbExporterItems0 MongoDBExporter runs on Generic or Contain swagger:model ListAgentsOKBodyMongodbExporterItems0 */ type ListAgentsOKBodyMongodbExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1752,6 +1807,7 @@ ListAgentsOKBodyMysqldExporterItems0 MySQLdExporter runs on Generic or Container swagger:model ListAgentsOKBodyMysqldExporterItems0 */ type ListAgentsOKBodyMysqldExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1978,6 +2034,7 @@ ListAgentsOKBodyNodeExporterItems0 NodeExporter runs on Generic or Container Nod swagger:model ListAgentsOKBodyNodeExporterItems0 */ type ListAgentsOKBodyNodeExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2175,6 +2232,7 @@ ListAgentsOKBodyPMMAgentItems0 PMMAgent runs on Generic or Container Node. swagger:model ListAgentsOKBodyPMMAgentItems0 */ type ListAgentsOKBodyPMMAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2224,6 +2282,7 @@ ListAgentsOKBodyPostgresExporterItems0 PostgresExporter runs on Generic or Conta swagger:model ListAgentsOKBodyPostgresExporterItems0 */ type ListAgentsOKBodyPostgresExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2433,6 +2492,7 @@ ListAgentsOKBodyProxysqlExporterItems0 ProxySQLExporter runs on Generic or Conta swagger:model ListAgentsOKBodyProxysqlExporterItems0 */ type ListAgentsOKBodyProxysqlExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2642,6 +2702,7 @@ ListAgentsOKBodyQANMongodbProfilerAgentItems0 QANMongoDBProfilerAgent runs withi swagger:model ListAgentsOKBodyQANMongodbProfilerAgentItems0 */ type ListAgentsOKBodyQANMongodbProfilerAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2842,6 +2903,7 @@ ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 QANMySQLPerfSchemaAgent runs withi swagger:model ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 */ type ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3057,6 +3119,7 @@ ListAgentsOKBodyQANMysqlSlowlogAgentItems0 QANMySQLSlowlogAgent runs within pmm- swagger:model ListAgentsOKBodyQANMysqlSlowlogAgentItems0 */ type ListAgentsOKBodyQANMysqlSlowlogAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3275,6 +3338,7 @@ ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 QANPostgreSQLPgStatementsAg swagger:model ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3478,6 +3542,7 @@ ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 QANPostgreSQLPgStatMonitor swagger:model ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3684,6 +3749,7 @@ ListAgentsOKBodyRDSExporterItems0 RDSExporter runs on Generic or Container Node swagger:model ListAgentsOKBodyRDSExporterItems0 */ type ListAgentsOKBodyRDSExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3892,6 +3958,7 @@ ListAgentsOKBodyVMAgentItems0 VMAgent runs on Generic or Container Node alongsid swagger:model ListAgentsOKBodyVMAgentItems0 */ type ListAgentsOKBodyVMAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/remove_agent_parameters.go b/api/inventorypb/json/client/agents/remove_agent_parameters.go index de9f9fb549..b7e75d496d 100644 --- a/api/inventorypb/json/client/agents/remove_agent_parameters.go +++ b/api/inventorypb/json/client/agents/remove_agent_parameters.go @@ -60,6 +60,7 @@ RemoveAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveAgentParams struct { + // Body. Body RemoveAgentBody @@ -129,6 +130,7 @@ func (o *RemoveAgentParams) SetBody(body RemoveAgentBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/remove_agent_responses.go b/api/inventorypb/json/client/agents/remove_agent_responses.go index 00cb211405..fea21242f6 100644 --- a/api/inventorypb/json/client/agents/remove_agent_responses.go +++ b/api/inventorypb/json/client/agents/remove_agent_responses.go @@ -60,12 +60,12 @@ type RemoveAgentOK struct { func (o *RemoveAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Remove][%d] removeAgentOk %+v", 200, o.Payload) } - func (o *RemoveAgentOK) GetPayload() interface{} { return o.Payload } func (o *RemoveAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveAgentDefault) Code() int { func (o *RemoveAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Remove][%d] RemoveAgent default %+v", o._statusCode, o.Payload) } - func (o *RemoveAgentDefault) GetPayload() *RemoveAgentDefaultBody { return o.Payload } func (o *RemoveAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveAgentDefaultBody) // response payload @@ -121,6 +121,7 @@ RemoveAgentBody remove agent body swagger:model RemoveAgentBody */ type RemoveAgentBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -161,6 +162,7 @@ RemoveAgentDefaultBody remove agent default body swagger:model RemoveAgentDefaultBody */ type RemoveAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *RemoveAgentDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *RemoveAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *RemoveAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -265,6 +270,7 @@ RemoveAgentDefaultBodyDetailsItems0 remove agent default body details items0 swagger:model RemoveAgentDefaultBodyDetailsItems0 */ type RemoveAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventorypb/json/client/nodes/add_container_node_parameters.go b/api/inventorypb/json/client/nodes/add_container_node_parameters.go index 733d4a807b..42c5dfc5da 100644 --- a/api/inventorypb/json/client/nodes/add_container_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_container_node_parameters.go @@ -60,6 +60,7 @@ AddContainerNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddContainerNodeParams struct { + // Body. Body AddContainerNodeBody @@ -129,6 +130,7 @@ func (o *AddContainerNodeParams) SetBody(body AddContainerNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddContainerNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_container_node_responses.go b/api/inventorypb/json/client/nodes/add_container_node_responses.go index 1243859a12..9213beea4f 100644 --- a/api/inventorypb/json/client/nodes/add_container_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_container_node_responses.go @@ -60,12 +60,12 @@ type AddContainerNodeOK struct { func (o *AddContainerNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddContainer][%d] addContainerNodeOk %+v", 200, o.Payload) } - func (o *AddContainerNodeOK) GetPayload() *AddContainerNodeOKBody { return o.Payload } func (o *AddContainerNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddContainerNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddContainerNodeDefault) Code() int { func (o *AddContainerNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddContainer][%d] AddContainerNode default %+v", o._statusCode, o.Payload) } - func (o *AddContainerNodeDefault) GetPayload() *AddContainerNodeDefaultBody { return o.Payload } func (o *AddContainerNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddContainerNodeDefaultBody) // response payload @@ -123,6 +123,7 @@ AddContainerNodeBody add container node body swagger:model AddContainerNodeBody */ type AddContainerNodeBody struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -184,6 +185,7 @@ AddContainerNodeDefaultBody add container node default body swagger:model AddContainerNodeDefaultBody */ type AddContainerNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -249,7 +251,9 @@ func (o *AddContainerNodeDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AddContainerNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -260,6 +264,7 @@ func (o *AddContainerNodeDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -288,6 +293,7 @@ AddContainerNodeDefaultBodyDetailsItems0 add container node default body details swagger:model AddContainerNodeDefaultBodyDetailsItems0 */ type AddContainerNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -325,6 +331,7 @@ AddContainerNodeOKBody add container node OK body swagger:model AddContainerNodeOKBody */ type AddContainerNodeOKBody struct { + // container Container *AddContainerNodeOKBodyContainer `json:"container,omitempty"` } @@ -377,6 +384,7 @@ func (o *AddContainerNodeOKBody) ContextValidate(ctx context.Context, formats st } func (o *AddContainerNodeOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { + if o.Container != nil { if err := o.Container.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -414,6 +422,7 @@ AddContainerNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model AddContainerNodeOKBodyContainer */ type AddContainerNodeOKBodyContainer struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_generic_node_parameters.go b/api/inventorypb/json/client/nodes/add_generic_node_parameters.go index b8a549c522..b3f4ee12ae 100644 --- a/api/inventorypb/json/client/nodes/add_generic_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_generic_node_parameters.go @@ -60,6 +60,7 @@ AddGenericNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddGenericNodeParams struct { + // Body. Body AddGenericNodeBody @@ -129,6 +130,7 @@ func (o *AddGenericNodeParams) SetBody(body AddGenericNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddGenericNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_generic_node_responses.go b/api/inventorypb/json/client/nodes/add_generic_node_responses.go index 97378c70ad..3d526d312c 100644 --- a/api/inventorypb/json/client/nodes/add_generic_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_generic_node_responses.go @@ -60,12 +60,12 @@ type AddGenericNodeOK struct { func (o *AddGenericNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddGeneric][%d] addGenericNodeOk %+v", 200, o.Payload) } - func (o *AddGenericNodeOK) GetPayload() *AddGenericNodeOKBody { return o.Payload } func (o *AddGenericNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddGenericNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddGenericNodeDefault) Code() int { func (o *AddGenericNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddGeneric][%d] AddGenericNode default %+v", o._statusCode, o.Payload) } - func (o *AddGenericNodeDefault) GetPayload() *AddGenericNodeDefaultBody { return o.Payload } func (o *AddGenericNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddGenericNodeDefaultBody) // response payload @@ -123,6 +123,7 @@ AddGenericNodeBody add generic node body swagger:model AddGenericNodeBody */ type AddGenericNodeBody struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -181,6 +182,7 @@ AddGenericNodeDefaultBody add generic node default body swagger:model AddGenericNodeDefaultBody */ type AddGenericNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -246,7 +248,9 @@ func (o *AddGenericNodeDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddGenericNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -257,6 +261,7 @@ func (o *AddGenericNodeDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -285,6 +290,7 @@ AddGenericNodeDefaultBodyDetailsItems0 add generic node default body details ite swagger:model AddGenericNodeDefaultBodyDetailsItems0 */ type AddGenericNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -322,6 +328,7 @@ AddGenericNodeOKBody add generic node OK body swagger:model AddGenericNodeOKBody */ type AddGenericNodeOKBody struct { + // generic Generic *AddGenericNodeOKBodyGeneric `json:"generic,omitempty"` } @@ -374,6 +381,7 @@ func (o *AddGenericNodeOKBody) ContextValidate(ctx context.Context, formats strf } func (o *AddGenericNodeOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { + if o.Generic != nil { if err := o.Generic.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -411,6 +419,7 @@ AddGenericNodeOKBodyGeneric GenericNode represents a bare metal server or virtua swagger:model AddGenericNodeOKBodyGeneric */ type AddGenericNodeOKBodyGeneric struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go index a26c9249f8..0cd94f5bf4 100644 --- a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go @@ -60,6 +60,7 @@ AddRemoteAzureDatabaseNodeParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type AddRemoteAzureDatabaseNodeParams struct { + // Body. Body AddRemoteAzureDatabaseNodeBody @@ -129,6 +130,7 @@ func (o *AddRemoteAzureDatabaseNodeParams) SetBody(body AddRemoteAzureDatabaseNo // WriteToRequest writes these params to a swagger request func (o *AddRemoteAzureDatabaseNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go index 17c871dc64..3579eb5c3d 100644 --- a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go @@ -60,12 +60,12 @@ type AddRemoteAzureDatabaseNodeOK struct { func (o *AddRemoteAzureDatabaseNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteAzureDatabase][%d] addRemoteAzureDatabaseNodeOk %+v", 200, o.Payload) } - func (o *AddRemoteAzureDatabaseNodeOK) GetPayload() *AddRemoteAzureDatabaseNodeOKBody { return o.Payload } func (o *AddRemoteAzureDatabaseNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRemoteAzureDatabaseNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddRemoteAzureDatabaseNodeDefault) Code() int { func (o *AddRemoteAzureDatabaseNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteAzureDatabase][%d] AddRemoteAzureDatabaseNode default %+v", o._statusCode, o.Payload) } - func (o *AddRemoteAzureDatabaseNodeDefault) GetPayload() *AddRemoteAzureDatabaseNodeDefaultBody { return o.Payload } func (o *AddRemoteAzureDatabaseNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRemoteAzureDatabaseNodeDefaultBody) // response payload @@ -123,6 +123,7 @@ AddRemoteAzureDatabaseNodeBody add remote azure database node body swagger:model AddRemoteAzureDatabaseNodeBody */ type AddRemoteAzureDatabaseNodeBody struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -175,6 +176,7 @@ AddRemoteAzureDatabaseNodeDefaultBody add remote azure database node default bod swagger:model AddRemoteAzureDatabaseNodeDefaultBody */ type AddRemoteAzureDatabaseNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -240,7 +242,9 @@ func (o *AddRemoteAzureDatabaseNodeDefaultBody) ContextValidate(ctx context.Cont } func (o *AddRemoteAzureDatabaseNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -251,6 +255,7 @@ func (o *AddRemoteAzureDatabaseNodeDefaultBody) contextValidateDetails(ctx conte return err } } + } return nil @@ -279,6 +284,7 @@ AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 add remote azure database nod swagger:model AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 */ type AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -316,6 +322,7 @@ AddRemoteAzureDatabaseNodeOKBody add remote azure database node OK body swagger:model AddRemoteAzureDatabaseNodeOKBody */ type AddRemoteAzureDatabaseNodeOKBody struct { + // remote azure database RemoteAzureDatabase *AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase `json:"remote_azure_database,omitempty"` } @@ -368,6 +375,7 @@ func (o *AddRemoteAzureDatabaseNodeOKBody) ContextValidate(ctx context.Context, } func (o *AddRemoteAzureDatabaseNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteAzureDatabase != nil { if err := o.RemoteAzureDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -405,6 +413,7 @@ AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode repr swagger:model AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase */ type AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_remote_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_node_parameters.go index 1cda2acb2a..4fc9c7f4dc 100644 --- a/api/inventorypb/json/client/nodes/add_remote_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_node_parameters.go @@ -60,6 +60,7 @@ AddRemoteNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRemoteNodeParams struct { + // Body. Body AddRemoteNodeBody @@ -129,6 +130,7 @@ func (o *AddRemoteNodeParams) SetBody(body AddRemoteNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddRemoteNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_remote_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_node_responses.go index 59afde419e..cfe69cdbb4 100644 --- a/api/inventorypb/json/client/nodes/add_remote_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_node_responses.go @@ -60,12 +60,12 @@ type AddRemoteNodeOK struct { func (o *AddRemoteNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemote][%d] addRemoteNodeOk %+v", 200, o.Payload) } - func (o *AddRemoteNodeOK) GetPayload() *AddRemoteNodeOKBody { return o.Payload } func (o *AddRemoteNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRemoteNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddRemoteNodeDefault) Code() int { func (o *AddRemoteNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemote][%d] AddRemoteNode default %+v", o._statusCode, o.Payload) } - func (o *AddRemoteNodeDefault) GetPayload() *AddRemoteNodeDefaultBody { return o.Payload } func (o *AddRemoteNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRemoteNodeDefaultBody) // response payload @@ -123,6 +123,7 @@ AddRemoteNodeBody add remote node body swagger:model AddRemoteNodeBody */ type AddRemoteNodeBody struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -175,6 +176,7 @@ AddRemoteNodeDefaultBody add remote node default body swagger:model AddRemoteNodeDefaultBody */ type AddRemoteNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -240,7 +242,9 @@ func (o *AddRemoteNodeDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddRemoteNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -251,6 +255,7 @@ func (o *AddRemoteNodeDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -279,6 +284,7 @@ AddRemoteNodeDefaultBodyDetailsItems0 add remote node default body details items swagger:model AddRemoteNodeDefaultBodyDetailsItems0 */ type AddRemoteNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -316,6 +322,7 @@ AddRemoteNodeOKBody add remote node OK body swagger:model AddRemoteNodeOKBody */ type AddRemoteNodeOKBody struct { + // remote Remote *AddRemoteNodeOKBodyRemote `json:"remote,omitempty"` } @@ -368,6 +375,7 @@ func (o *AddRemoteNodeOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddRemoteNodeOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { + if o.Remote != nil { if err := o.Remote.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -405,6 +413,7 @@ AddRemoteNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node swagger:model AddRemoteNodeOKBodyRemote */ type AddRemoteNodeOKBodyRemote struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go index 24a2a4aee5..c47491c1e2 100644 --- a/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go @@ -60,6 +60,7 @@ AddRemoteRDSNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRemoteRDSNodeParams struct { + // Body. Body AddRemoteRDSNodeBody @@ -129,6 +130,7 @@ func (o *AddRemoteRDSNodeParams) SetBody(body AddRemoteRDSNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddRemoteRDSNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go index 614e87de2a..ce02b1afdf 100644 --- a/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go @@ -60,12 +60,12 @@ type AddRemoteRDSNodeOK struct { func (o *AddRemoteRDSNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteRDS][%d] addRemoteRdsNodeOk %+v", 200, o.Payload) } - func (o *AddRemoteRDSNodeOK) GetPayload() *AddRemoteRDSNodeOKBody { return o.Payload } func (o *AddRemoteRDSNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRemoteRDSNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddRemoteRDSNodeDefault) Code() int { func (o *AddRemoteRDSNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteRDS][%d] AddRemoteRDSNode default %+v", o._statusCode, o.Payload) } - func (o *AddRemoteRDSNodeDefault) GetPayload() *AddRemoteRDSNodeDefaultBody { return o.Payload } func (o *AddRemoteRDSNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRemoteRDSNodeDefaultBody) // response payload @@ -123,6 +123,7 @@ AddRemoteRDSNodeBody add remote RDS node body swagger:model AddRemoteRDSNodeBody */ type AddRemoteRDSNodeBody struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -175,6 +176,7 @@ AddRemoteRDSNodeDefaultBody add remote RDS node default body swagger:model AddRemoteRDSNodeDefaultBody */ type AddRemoteRDSNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -240,7 +242,9 @@ func (o *AddRemoteRDSNodeDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AddRemoteRDSNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -251,6 +255,7 @@ func (o *AddRemoteRDSNodeDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -279,6 +284,7 @@ AddRemoteRDSNodeDefaultBodyDetailsItems0 add remote RDS node default body detail swagger:model AddRemoteRDSNodeDefaultBodyDetailsItems0 */ type AddRemoteRDSNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -316,6 +322,7 @@ AddRemoteRDSNodeOKBody add remote RDS node OK body swagger:model AddRemoteRDSNodeOKBody */ type AddRemoteRDSNodeOKBody struct { + // remote rds RemoteRDS *AddRemoteRDSNodeOKBodyRemoteRDS `json:"remote_rds,omitempty"` } @@ -368,6 +375,7 @@ func (o *AddRemoteRDSNodeOKBody) ContextValidate(ctx context.Context, formats st } func (o *AddRemoteRDSNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteRDS != nil { if err := o.RemoteRDS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -405,6 +413,7 @@ AddRemoteRDSNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents swagger:model AddRemoteRDSNodeOKBodyRemoteRDS */ type AddRemoteRDSNodeOKBodyRemoteRDS struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/get_node_parameters.go b/api/inventorypb/json/client/nodes/get_node_parameters.go index f6ad37b23f..b6366fb7f4 100644 --- a/api/inventorypb/json/client/nodes/get_node_parameters.go +++ b/api/inventorypb/json/client/nodes/get_node_parameters.go @@ -60,6 +60,7 @@ GetNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetNodeParams struct { + // Body. Body GetNodeBody @@ -129,6 +130,7 @@ func (o *GetNodeParams) SetBody(body GetNodeBody) { // WriteToRequest writes these params to a swagger request func (o *GetNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/get_node_responses.go b/api/inventorypb/json/client/nodes/get_node_responses.go index 6e1a34baf1..ffd86561ea 100644 --- a/api/inventorypb/json/client/nodes/get_node_responses.go +++ b/api/inventorypb/json/client/nodes/get_node_responses.go @@ -60,12 +60,12 @@ type GetNodeOK struct { func (o *GetNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Get][%d] getNodeOk %+v", 200, o.Payload) } - func (o *GetNodeOK) GetPayload() *GetNodeOKBody { return o.Payload } func (o *GetNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetNodeDefault) Code() int { func (o *GetNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Get][%d] GetNode default %+v", o._statusCode, o.Payload) } - func (o *GetNodeDefault) GetPayload() *GetNodeDefaultBody { return o.Payload } func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetNodeDefaultBody) // response payload @@ -123,6 +123,7 @@ GetNodeBody get node body swagger:model GetNodeBody */ type GetNodeBody struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` } @@ -160,6 +161,7 @@ GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *GetNodeDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -264,6 +269,7 @@ GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { + // container Container *GetNodeOKBodyContainer `json:"container,omitempty"` @@ -473,6 +480,7 @@ func (o *GetNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetNodeOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { + if o.Container != nil { if err := o.Container.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -488,6 +496,7 @@ func (o *GetNodeOKBody) contextValidateContainer(ctx context.Context, formats st } func (o *GetNodeOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { + if o.Generic != nil { if err := o.Generic.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -503,6 +512,7 @@ func (o *GetNodeOKBody) contextValidateGeneric(ctx context.Context, formats strf } func (o *GetNodeOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { + if o.Remote != nil { if err := o.Remote.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -518,6 +528,7 @@ func (o *GetNodeOKBody) contextValidateRemote(ctx context.Context, formats strfm } func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteAzureDatabase != nil { if err := o.RemoteAzureDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -533,6 +544,7 @@ func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, } func (o *GetNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteRDS != nil { if err := o.RemoteRDS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -570,6 +582,7 @@ GetNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model GetNodeOKBodyContainer */ type GetNodeOKBodyContainer struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -634,6 +647,7 @@ GetNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machi swagger:model GetNodeOKBodyGeneric */ type GetNodeOKBodyGeneric struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -695,6 +709,7 @@ GetNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where swagger:model GetNodeOKBodyRemote */ type GetNodeOKBodyRemote struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -750,6 +765,7 @@ GetNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote Azure swagger:model GetNodeOKBodyRemoteAzureDatabase */ type GetNodeOKBodyRemoteAzureDatabase struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -805,6 +821,7 @@ GetNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't ru swagger:model GetNodeOKBodyRemoteRDS */ type GetNodeOKBodyRemoteRDS struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/list_nodes_parameters.go b/api/inventorypb/json/client/nodes/list_nodes_parameters.go index ed94a2202b..75d49cd9e7 100644 --- a/api/inventorypb/json/client/nodes/list_nodes_parameters.go +++ b/api/inventorypb/json/client/nodes/list_nodes_parameters.go @@ -60,6 +60,7 @@ ListNodesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListNodesParams struct { + // Body. Body ListNodesBody @@ -129,6 +130,7 @@ func (o *ListNodesParams) SetBody(body ListNodesBody) { // WriteToRequest writes these params to a swagger request func (o *ListNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/list_nodes_responses.go b/api/inventorypb/json/client/nodes/list_nodes_responses.go index e8bf829521..968fcfc6a7 100644 --- a/api/inventorypb/json/client/nodes/list_nodes_responses.go +++ b/api/inventorypb/json/client/nodes/list_nodes_responses.go @@ -62,12 +62,12 @@ type ListNodesOK struct { func (o *ListNodesOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/List][%d] listNodesOk %+v", 200, o.Payload) } - func (o *ListNodesOK) GetPayload() *ListNodesOKBody { return o.Payload } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListNodesDefault) Code() int { func (o *ListNodesDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/List][%d] ListNodes default %+v", o._statusCode, o.Payload) } - func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { return o.Payload } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesDefaultBody) // response payload @@ -125,6 +125,7 @@ ListNodesBody list nodes body swagger:model ListNodesBody */ type ListNodesBody struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` @@ -226,6 +227,7 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -291,7 +293,9 @@ func (o *ListNodesDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -302,6 +306,7 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -330,6 +335,7 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -367,6 +373,7 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { + // generic Generic []*ListNodesOKBodyGenericItems0 `json:"generic"` @@ -574,7 +581,9 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListNodesOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Generic); i++ { + if o.Generic[i] != nil { if err := o.Generic[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -585,13 +594,16 @@ func (o *ListNodesOKBody) contextValidateGeneric(ctx context.Context, formats st return err } } + } return nil } func (o *ListNodesOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Container); i++ { + if o.Container[i] != nil { if err := o.Container[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -602,13 +614,16 @@ func (o *ListNodesOKBody) contextValidateContainer(ctx context.Context, formats return err } } + } return nil } func (o *ListNodesOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Remote); i++ { + if o.Remote[i] != nil { if err := o.Remote[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -619,13 +634,16 @@ func (o *ListNodesOKBody) contextValidateRemote(ctx context.Context, formats str return err } } + } return nil } func (o *ListNodesOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RemoteRDS); i++ { + if o.RemoteRDS[i] != nil { if err := o.RemoteRDS[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -636,13 +654,16 @@ func (o *ListNodesOKBody) contextValidateRemoteRDS(ctx context.Context, formats return err } } + } return nil } func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RemoteAzureDatabase); i++ { + if o.RemoteAzureDatabase[i] != nil { if err := o.RemoteAzureDatabase[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -653,6 +674,7 @@ func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context return err } } + } return nil @@ -681,6 +703,7 @@ ListNodesOKBodyContainerItems0 ContainerNode represents a Docker container. swagger:model ListNodesOKBodyContainerItems0 */ type ListNodesOKBodyContainerItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -745,6 +768,7 @@ ListNodesOKBodyGenericItems0 GenericNode represents a bare metal server or virtu swagger:model ListNodesOKBodyGenericItems0 */ type ListNodesOKBodyGenericItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -806,6 +830,7 @@ ListNodesOKBodyRemoteAzureDatabaseItems0 RemoteAzureDatabaseNode represents remo swagger:model ListNodesOKBodyRemoteAzureDatabaseItems0 */ type ListNodesOKBodyRemoteAzureDatabaseItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -861,6 +886,7 @@ ListNodesOKBodyRemoteItems0 RemoteNode represents generic remote Node. It's a no swagger:model ListNodesOKBodyRemoteItems0 */ type ListNodesOKBodyRemoteItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -916,6 +942,7 @@ ListNodesOKBodyRemoteRDSItems0 RemoteRDSNode represents remote RDS Node. Agents swagger:model ListNodesOKBodyRemoteRDSItems0 */ type ListNodesOKBodyRemoteRDSItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/remove_node_parameters.go b/api/inventorypb/json/client/nodes/remove_node_parameters.go index 5948139b98..eaf31ae4bf 100644 --- a/api/inventorypb/json/client/nodes/remove_node_parameters.go +++ b/api/inventorypb/json/client/nodes/remove_node_parameters.go @@ -60,6 +60,7 @@ RemoveNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveNodeParams struct { + // Body. Body RemoveNodeBody @@ -129,6 +130,7 @@ func (o *RemoveNodeParams) SetBody(body RemoveNodeBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/remove_node_responses.go b/api/inventorypb/json/client/nodes/remove_node_responses.go index 7de78f1ea0..cfdc304f44 100644 --- a/api/inventorypb/json/client/nodes/remove_node_responses.go +++ b/api/inventorypb/json/client/nodes/remove_node_responses.go @@ -60,12 +60,12 @@ type RemoveNodeOK struct { func (o *RemoveNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Remove][%d] removeNodeOk %+v", 200, o.Payload) } - func (o *RemoveNodeOK) GetPayload() interface{} { return o.Payload } func (o *RemoveNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveNodeDefault) Code() int { func (o *RemoveNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Remove][%d] RemoveNode default %+v", o._statusCode, o.Payload) } - func (o *RemoveNodeDefault) GetPayload() *RemoveNodeDefaultBody { return o.Payload } func (o *RemoveNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveNodeDefaultBody) // response payload @@ -121,6 +121,7 @@ RemoveNodeBody remove node body swagger:model RemoveNodeBody */ type RemoveNodeBody struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -161,6 +162,7 @@ RemoveNodeDefaultBody remove node default body swagger:model RemoveNodeDefaultBody */ type RemoveNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *RemoveNodeDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *RemoveNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *RemoveNodeDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -265,6 +270,7 @@ RemoveNodeDefaultBodyDetailsItems0 remove node default body details items0 swagger:model RemoveNodeDefaultBodyDetailsItems0 */ type RemoveNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventorypb/json/client/services/add_external_service_parameters.go b/api/inventorypb/json/client/services/add_external_service_parameters.go index 53b34253d6..6ae016be94 100644 --- a/api/inventorypb/json/client/services/add_external_service_parameters.go +++ b/api/inventorypb/json/client/services/add_external_service_parameters.go @@ -60,6 +60,7 @@ AddExternalServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddExternalServiceParams struct { + // Body. Body AddExternalServiceBody @@ -129,6 +130,7 @@ func (o *AddExternalServiceParams) SetBody(body AddExternalServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddExternalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_external_service_responses.go b/api/inventorypb/json/client/services/add_external_service_responses.go index 7f2cf9fbf2..7a972d4637 100644 --- a/api/inventorypb/json/client/services/add_external_service_responses.go +++ b/api/inventorypb/json/client/services/add_external_service_responses.go @@ -60,12 +60,12 @@ type AddExternalServiceOK struct { func (o *AddExternalServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddExternalService][%d] addExternalServiceOk %+v", 200, o.Payload) } - func (o *AddExternalServiceOK) GetPayload() *AddExternalServiceOKBody { return o.Payload } func (o *AddExternalServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddExternalServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddExternalServiceDefault) Code() int { func (o *AddExternalServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddExternalService][%d] AddExternalService default %+v", o._statusCode, o.Payload) } - func (o *AddExternalServiceDefault) GetPayload() *AddExternalServiceDefaultBody { return o.Payload } func (o *AddExternalServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddExternalServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ AddExternalServiceBody add external service body swagger:model AddExternalServiceBody */ type AddExternalServiceBody struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -178,6 +179,7 @@ AddExternalServiceDefaultBody add external service default body swagger:model AddExternalServiceDefaultBody */ type AddExternalServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -243,7 +245,9 @@ func (o *AddExternalServiceDefaultBody) ContextValidate(ctx context.Context, for } func (o *AddExternalServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -254,6 +258,7 @@ func (o *AddExternalServiceDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -282,6 +287,7 @@ AddExternalServiceDefaultBodyDetailsItems0 add external service default body det swagger:model AddExternalServiceDefaultBodyDetailsItems0 */ type AddExternalServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -319,6 +325,7 @@ AddExternalServiceOKBody add external service OK body swagger:model AddExternalServiceOKBody */ type AddExternalServiceOKBody struct { + // external External *AddExternalServiceOKBodyExternal `json:"external,omitempty"` } @@ -371,6 +378,7 @@ func (o *AddExternalServiceOKBody) ContextValidate(ctx context.Context, formats } func (o *AddExternalServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if err := o.External.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -408,6 +416,7 @@ AddExternalServiceOKBodyExternal ExternalService represents a generic External s swagger:model AddExternalServiceOKBodyExternal */ type AddExternalServiceOKBodyExternal struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go b/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go index b90ea92106..aabfe33f42 100644 --- a/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go +++ b/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go @@ -60,6 +60,7 @@ AddHAProxyServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddHAProxyServiceParams struct { + // Body. Body AddHAProxyServiceBody @@ -129,6 +130,7 @@ func (o *AddHAProxyServiceParams) SetBody(body AddHAProxyServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddHAProxyServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go b/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go index 812d6866cb..f8ccb95aa6 100644 --- a/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go +++ b/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go @@ -60,12 +60,12 @@ type AddHAProxyServiceOK struct { func (o *AddHAProxyServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddHAProxyService][%d] addHaProxyServiceOk %+v", 200, o.Payload) } - func (o *AddHAProxyServiceOK) GetPayload() *AddHAProxyServiceOKBody { return o.Payload } func (o *AddHAProxyServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddHAProxyServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddHAProxyServiceDefault) Code() int { func (o *AddHAProxyServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddHAProxyService][%d] AddHAProxyService default %+v", o._statusCode, o.Payload) } - func (o *AddHAProxyServiceDefault) GetPayload() *AddHAProxyServiceDefaultBody { return o.Payload } func (o *AddHAProxyServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddHAProxyServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ AddHAProxyServiceBody add HA proxy service body swagger:model AddHAProxyServiceBody */ type AddHAProxyServiceBody struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -175,6 +176,7 @@ AddHAProxyServiceDefaultBody add HA proxy service default body swagger:model AddHAProxyServiceDefaultBody */ type AddHAProxyServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -240,7 +242,9 @@ func (o *AddHAProxyServiceDefaultBody) ContextValidate(ctx context.Context, form } func (o *AddHAProxyServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -251,6 +255,7 @@ func (o *AddHAProxyServiceDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -279,6 +284,7 @@ AddHAProxyServiceDefaultBodyDetailsItems0 add HA proxy service default body deta swagger:model AddHAProxyServiceDefaultBodyDetailsItems0 */ type AddHAProxyServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -316,6 +322,7 @@ AddHAProxyServiceOKBody add HA proxy service OK body swagger:model AddHAProxyServiceOKBody */ type AddHAProxyServiceOKBody struct { + // haproxy Haproxy *AddHAProxyServiceOKBodyHaproxy `json:"haproxy,omitempty"` } @@ -368,6 +375,7 @@ func (o *AddHAProxyServiceOKBody) ContextValidate(ctx context.Context, formats s } func (o *AddHAProxyServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -405,6 +413,7 @@ AddHAProxyServiceOKBodyHaproxy HAProxyService represents a generic HAProxy servi swagger:model AddHAProxyServiceOKBodyHaproxy */ type AddHAProxyServiceOKBodyHaproxy struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go b/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go index c5b0806ad0..f2fd5ab729 100644 --- a/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go +++ b/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go @@ -60,6 +60,7 @@ AddMongoDBServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMongoDBServiceParams struct { + // Body. Body AddMongoDBServiceBody @@ -129,6 +130,7 @@ func (o *AddMongoDBServiceParams) SetBody(body AddMongoDBServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddMongoDBServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_mongo_db_service_responses.go b/api/inventorypb/json/client/services/add_mongo_db_service_responses.go index 2f0a715d74..069c8377e2 100644 --- a/api/inventorypb/json/client/services/add_mongo_db_service_responses.go +++ b/api/inventorypb/json/client/services/add_mongo_db_service_responses.go @@ -60,12 +60,12 @@ type AddMongoDBServiceOK struct { func (o *AddMongoDBServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMongoDB][%d] addMongoDbServiceOk %+v", 200, o.Payload) } - func (o *AddMongoDBServiceOK) GetPayload() *AddMongoDBServiceOKBody { return o.Payload } func (o *AddMongoDBServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMongoDBServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddMongoDBServiceDefault) Code() int { func (o *AddMongoDBServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMongoDB][%d] AddMongoDBService default %+v", o._statusCode, o.Payload) } - func (o *AddMongoDBServiceDefault) GetPayload() *AddMongoDBServiceDefaultBody { return o.Payload } func (o *AddMongoDBServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMongoDBServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ AddMongoDBServiceBody add mongo DB service body swagger:model AddMongoDBServiceBody */ type AddMongoDBServiceBody struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -187,6 +188,7 @@ AddMongoDBServiceDefaultBody add mongo DB service default body swagger:model AddMongoDBServiceDefaultBody */ type AddMongoDBServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -252,7 +254,9 @@ func (o *AddMongoDBServiceDefaultBody) ContextValidate(ctx context.Context, form } func (o *AddMongoDBServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -263,6 +267,7 @@ func (o *AddMongoDBServiceDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -291,6 +296,7 @@ AddMongoDBServiceDefaultBodyDetailsItems0 add mongo DB service default body deta swagger:model AddMongoDBServiceDefaultBodyDetailsItems0 */ type AddMongoDBServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -328,6 +334,7 @@ AddMongoDBServiceOKBody add mongo DB service OK body swagger:model AddMongoDBServiceOKBody */ type AddMongoDBServiceOKBody struct { + // mongodb Mongodb *AddMongoDBServiceOKBodyMongodb `json:"mongodb,omitempty"` } @@ -380,6 +387,7 @@ func (o *AddMongoDBServiceOKBody) ContextValidate(ctx context.Context, formats s } func (o *AddMongoDBServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if err := o.Mongodb.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -417,6 +425,7 @@ AddMongoDBServiceOKBodyMongodb MongoDBService represents a generic MongoDB insta swagger:model AddMongoDBServiceOKBodyMongodb */ type AddMongoDBServiceOKBodyMongodb struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_my_sql_service_parameters.go b/api/inventorypb/json/client/services/add_my_sql_service_parameters.go index 9b3cd35b43..2b8548fe57 100644 --- a/api/inventorypb/json/client/services/add_my_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_my_sql_service_parameters.go @@ -60,6 +60,7 @@ AddMySQLServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMySQLServiceParams struct { + // Body. Body AddMySQLServiceBody @@ -129,6 +130,7 @@ func (o *AddMySQLServiceParams) SetBody(body AddMySQLServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddMySQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_my_sql_service_responses.go b/api/inventorypb/json/client/services/add_my_sql_service_responses.go index d3e8511769..65308c3e90 100644 --- a/api/inventorypb/json/client/services/add_my_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_my_sql_service_responses.go @@ -60,12 +60,12 @@ type AddMySQLServiceOK struct { func (o *AddMySQLServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMySQL][%d] addMySqlServiceOk %+v", 200, o.Payload) } - func (o *AddMySQLServiceOK) GetPayload() *AddMySQLServiceOKBody { return o.Payload } func (o *AddMySQLServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMySQLServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddMySQLServiceDefault) Code() int { func (o *AddMySQLServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMySQL][%d] AddMySQLService default %+v", o._statusCode, o.Payload) } - func (o *AddMySQLServiceDefault) GetPayload() *AddMySQLServiceDefaultBody { return o.Payload } func (o *AddMySQLServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMySQLServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ AddMySQLServiceBody add my SQL service body swagger:model AddMySQLServiceBody */ type AddMySQLServiceBody struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -187,6 +188,7 @@ AddMySQLServiceDefaultBody add my SQL service default body swagger:model AddMySQLServiceDefaultBody */ type AddMySQLServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -252,7 +254,9 @@ func (o *AddMySQLServiceDefaultBody) ContextValidate(ctx context.Context, format } func (o *AddMySQLServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -263,6 +267,7 @@ func (o *AddMySQLServiceDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -291,6 +296,7 @@ AddMySQLServiceDefaultBodyDetailsItems0 add my SQL service default body details swagger:model AddMySQLServiceDefaultBodyDetailsItems0 */ type AddMySQLServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -328,6 +334,7 @@ AddMySQLServiceOKBody add my SQL service OK body swagger:model AddMySQLServiceOKBody */ type AddMySQLServiceOKBody struct { + // mysql Mysql *AddMySQLServiceOKBodyMysql `json:"mysql,omitempty"` } @@ -380,6 +387,7 @@ func (o *AddMySQLServiceOKBody) ContextValidate(ctx context.Context, formats str } func (o *AddMySQLServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if err := o.Mysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -417,6 +425,7 @@ AddMySQLServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddMySQLServiceOKBodyMysql */ type AddMySQLServiceOKBodyMysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go b/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go index 7f77afbcb7..8bd61385f7 100644 --- a/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go @@ -60,6 +60,7 @@ AddPostgreSQLServiceParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type AddPostgreSQLServiceParams struct { + // Body. Body AddPostgreSQLServiceBody @@ -129,6 +130,7 @@ func (o *AddPostgreSQLServiceParams) SetBody(body AddPostgreSQLServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddPostgreSQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go b/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go index c704610153..b7846e8570 100644 --- a/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go @@ -60,12 +60,12 @@ type AddPostgreSQLServiceOK struct { func (o *AddPostgreSQLServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddPostgreSQL][%d] addPostgreSqlServiceOk %+v", 200, o.Payload) } - func (o *AddPostgreSQLServiceOK) GetPayload() *AddPostgreSQLServiceOKBody { return o.Payload } func (o *AddPostgreSQLServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPostgreSQLServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddPostgreSQLServiceDefault) Code() int { func (o *AddPostgreSQLServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddPostgreSQL][%d] AddPostgreSQLService default %+v", o._statusCode, o.Payload) } - func (o *AddPostgreSQLServiceDefault) GetPayload() *AddPostgreSQLServiceDefaultBody { return o.Payload } func (o *AddPostgreSQLServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPostgreSQLServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ AddPostgreSQLServiceBody add postgre SQL service body swagger:model AddPostgreSQLServiceBody */ type AddPostgreSQLServiceBody struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -187,6 +188,7 @@ AddPostgreSQLServiceDefaultBody add postgre SQL service default body swagger:model AddPostgreSQLServiceDefaultBody */ type AddPostgreSQLServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -252,7 +254,9 @@ func (o *AddPostgreSQLServiceDefaultBody) ContextValidate(ctx context.Context, f } func (o *AddPostgreSQLServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -263,6 +267,7 @@ func (o *AddPostgreSQLServiceDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -291,6 +296,7 @@ AddPostgreSQLServiceDefaultBodyDetailsItems0 add postgre SQL service default bod swagger:model AddPostgreSQLServiceDefaultBodyDetailsItems0 */ type AddPostgreSQLServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -328,6 +334,7 @@ AddPostgreSQLServiceOKBody add postgre SQL service OK body swagger:model AddPostgreSQLServiceOKBody */ type AddPostgreSQLServiceOKBody struct { + // postgresql Postgresql *AddPostgreSQLServiceOKBodyPostgresql `json:"postgresql,omitempty"` } @@ -380,6 +387,7 @@ func (o *AddPostgreSQLServiceOKBody) ContextValidate(ctx context.Context, format } func (o *AddPostgreSQLServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if err := o.Postgresql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -417,6 +425,7 @@ AddPostgreSQLServiceOKBodyPostgresql PostgreSQLService represents a generic Post swagger:model AddPostgreSQLServiceOKBodyPostgresql */ type AddPostgreSQLServiceOKBodyPostgresql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go b/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go index f41482ed2c..ebbac7a9fd 100644 --- a/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go @@ -60,6 +60,7 @@ AddProxySQLServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddProxySQLServiceParams struct { + // Body. Body AddProxySQLServiceBody @@ -129,6 +130,7 @@ func (o *AddProxySQLServiceParams) SetBody(body AddProxySQLServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddProxySQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go b/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go index 4bd65d4a30..eeebe808db 100644 --- a/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go @@ -60,12 +60,12 @@ type AddProxySQLServiceOK struct { func (o *AddProxySQLServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddProxySQL][%d] addProxySqlServiceOk %+v", 200, o.Payload) } - func (o *AddProxySQLServiceOK) GetPayload() *AddProxySQLServiceOKBody { return o.Payload } func (o *AddProxySQLServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddProxySQLServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddProxySQLServiceDefault) Code() int { func (o *AddProxySQLServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddProxySQL][%d] AddProxySQLService default %+v", o._statusCode, o.Payload) } - func (o *AddProxySQLServiceDefault) GetPayload() *AddProxySQLServiceDefaultBody { return o.Payload } func (o *AddProxySQLServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddProxySQLServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ AddProxySQLServiceBody add proxy SQL service body swagger:model AddProxySQLServiceBody */ type AddProxySQLServiceBody struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -187,6 +188,7 @@ AddProxySQLServiceDefaultBody add proxy SQL service default body swagger:model AddProxySQLServiceDefaultBody */ type AddProxySQLServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -252,7 +254,9 @@ func (o *AddProxySQLServiceDefaultBody) ContextValidate(ctx context.Context, for } func (o *AddProxySQLServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -263,6 +267,7 @@ func (o *AddProxySQLServiceDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -291,6 +296,7 @@ AddProxySQLServiceDefaultBodyDetailsItems0 add proxy SQL service default body de swagger:model AddProxySQLServiceDefaultBodyDetailsItems0 */ type AddProxySQLServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -328,6 +334,7 @@ AddProxySQLServiceOKBody add proxy SQL service OK body swagger:model AddProxySQLServiceOKBody */ type AddProxySQLServiceOKBody struct { + // proxysql Proxysql *AddProxySQLServiceOKBodyProxysql `json:"proxysql,omitempty"` } @@ -380,6 +387,7 @@ func (o *AddProxySQLServiceOKBody) ContextValidate(ctx context.Context, formats } func (o *AddProxySQLServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -417,6 +425,7 @@ AddProxySQLServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL i swagger:model AddProxySQLServiceOKBodyProxysql */ type AddProxySQLServiceOKBodyProxysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/get_service_parameters.go b/api/inventorypb/json/client/services/get_service_parameters.go index 45db6f950a..02011f9506 100644 --- a/api/inventorypb/json/client/services/get_service_parameters.go +++ b/api/inventorypb/json/client/services/get_service_parameters.go @@ -60,6 +60,7 @@ GetServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetServiceParams struct { + // Body. Body GetServiceBody @@ -129,6 +130,7 @@ func (o *GetServiceParams) SetBody(body GetServiceBody) { // WriteToRequest writes these params to a swagger request func (o *GetServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/get_service_responses.go b/api/inventorypb/json/client/services/get_service_responses.go index 5249f7e578..be355fa3fe 100644 --- a/api/inventorypb/json/client/services/get_service_responses.go +++ b/api/inventorypb/json/client/services/get_service_responses.go @@ -60,12 +60,12 @@ type GetServiceOK struct { func (o *GetServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Get][%d] getServiceOk %+v", 200, o.Payload) } - func (o *GetServiceOK) GetPayload() *GetServiceOKBody { return o.Payload } func (o *GetServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetServiceDefault) Code() int { func (o *GetServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Get][%d] GetService default %+v", o._statusCode, o.Payload) } - func (o *GetServiceDefault) GetPayload() *GetServiceDefaultBody { return o.Payload } func (o *GetServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ GetServiceBody get service body swagger:model GetServiceBody */ type GetServiceBody struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` } @@ -160,6 +161,7 @@ GetServiceDefaultBody get service default body swagger:model GetServiceDefaultBody */ type GetServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *GetServiceDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *GetServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *GetServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -264,6 +269,7 @@ GetServiceDefaultBodyDetailsItems0 get service default body details items0 swagger:model GetServiceDefaultBodyDetailsItems0 */ type GetServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ GetServiceOKBody get service OK body swagger:model GetServiceOKBody */ type GetServiceOKBody struct { + // external External *GetServiceOKBodyExternal `json:"external,omitempty"` @@ -503,6 +510,7 @@ func (o *GetServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *GetServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if err := o.External.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -518,6 +526,7 @@ func (o *GetServiceOKBody) contextValidateExternal(ctx context.Context, formats } func (o *GetServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -533,6 +542,7 @@ func (o *GetServiceOKBody) contextValidateHaproxy(ctx context.Context, formats s } func (o *GetServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if err := o.Mongodb.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -548,6 +558,7 @@ func (o *GetServiceOKBody) contextValidateMongodb(ctx context.Context, formats s } func (o *GetServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if err := o.Mysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -563,6 +574,7 @@ func (o *GetServiceOKBody) contextValidateMysql(ctx context.Context, formats str } func (o *GetServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if err := o.Postgresql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -578,6 +590,7 @@ func (o *GetServiceOKBody) contextValidatePostgresql(ctx context.Context, format } func (o *GetServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -615,6 +628,7 @@ GetServiceOKBodyExternal ExternalService represents a generic External service i swagger:model GetServiceOKBodyExternal */ type GetServiceOKBodyExternal struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -673,6 +687,7 @@ GetServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service inst swagger:model GetServiceOKBodyHaproxy */ type GetServiceOKBodyHaproxy struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -728,6 +743,7 @@ GetServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model GetServiceOKBodyMongodb */ type GetServiceOKBodyMongodb struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -795,6 +811,7 @@ GetServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model GetServiceOKBodyMysql */ type GetServiceOKBodyMysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -862,6 +879,7 @@ GetServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL ins swagger:model GetServiceOKBodyPostgresql */ type GetServiceOKBodyPostgresql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -932,6 +950,7 @@ GetServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model GetServiceOKBodyProxysql */ type GetServiceOKBodyProxysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/list_services_parameters.go b/api/inventorypb/json/client/services/list_services_parameters.go index 152f648dca..7553a0559e 100644 --- a/api/inventorypb/json/client/services/list_services_parameters.go +++ b/api/inventorypb/json/client/services/list_services_parameters.go @@ -60,6 +60,7 @@ ListServicesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListServicesParams struct { + // Body. Body ListServicesBody @@ -129,6 +130,7 @@ func (o *ListServicesParams) SetBody(body ListServicesBody) { // WriteToRequest writes these params to a swagger request func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/list_services_responses.go b/api/inventorypb/json/client/services/list_services_responses.go index d7d093f09d..d68e3b161a 100644 --- a/api/inventorypb/json/client/services/list_services_responses.go +++ b/api/inventorypb/json/client/services/list_services_responses.go @@ -62,12 +62,12 @@ type ListServicesOK struct { func (o *ListServicesOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/List][%d] listServicesOk %+v", 200, o.Payload) } - func (o *ListServicesOK) GetPayload() *ListServicesOKBody { return o.Payload } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListServicesDefault) Code() int { func (o *ListServicesDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/List][%d] ListServices default %+v", o._statusCode, o.Payload) } - func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { return o.Payload } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesDefaultBody) // response payload @@ -125,6 +125,7 @@ ListServicesBody list services body swagger:model ListServicesBody */ type ListServicesBody struct { + // Return only Services running on that Node. NodeID string `json:"node_id,omitempty"` @@ -235,6 +236,7 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -300,7 +302,9 @@ func (o *ListServicesDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -311,6 +315,7 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -339,6 +344,7 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -376,6 +382,7 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { + // mysql Mysql []*ListServicesOKBodyMysqlItems0 `json:"mysql"` @@ -620,7 +627,9 @@ func (o *ListServicesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListServicesOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Mysql); i++ { + if o.Mysql[i] != nil { if err := o.Mysql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -631,13 +640,16 @@ func (o *ListServicesOKBody) contextValidateMysql(ctx context.Context, formats s return err } } + } return nil } func (o *ListServicesOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Mongodb); i++ { + if o.Mongodb[i] != nil { if err := o.Mongodb[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -648,13 +660,16 @@ func (o *ListServicesOKBody) contextValidateMongodb(ctx context.Context, formats return err } } + } return nil } func (o *ListServicesOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Postgresql); i++ { + if o.Postgresql[i] != nil { if err := o.Postgresql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -665,13 +680,16 @@ func (o *ListServicesOKBody) contextValidatePostgresql(ctx context.Context, form return err } } + } return nil } func (o *ListServicesOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Proxysql); i++ { + if o.Proxysql[i] != nil { if err := o.Proxysql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -682,13 +700,16 @@ func (o *ListServicesOKBody) contextValidateProxysql(ctx context.Context, format return err } } + } return nil } func (o *ListServicesOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Haproxy); i++ { + if o.Haproxy[i] != nil { if err := o.Haproxy[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -699,13 +720,16 @@ func (o *ListServicesOKBody) contextValidateHaproxy(ctx context.Context, formats return err } } + } return nil } func (o *ListServicesOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.External); i++ { + if o.External[i] != nil { if err := o.External[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -716,6 +740,7 @@ func (o *ListServicesOKBody) contextValidateExternal(ctx context.Context, format return err } } + } return nil @@ -744,6 +769,7 @@ ListServicesOKBodyExternalItems0 ExternalService represents a generic External s swagger:model ListServicesOKBodyExternalItems0 */ type ListServicesOKBodyExternalItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -802,6 +828,7 @@ ListServicesOKBodyHaproxyItems0 HAProxyService represents a generic HAProxy serv swagger:model ListServicesOKBodyHaproxyItems0 */ type ListServicesOKBodyHaproxyItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -857,6 +884,7 @@ ListServicesOKBodyMongodbItems0 MongoDBService represents a generic MongoDB inst swagger:model ListServicesOKBodyMongodbItems0 */ type ListServicesOKBodyMongodbItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -924,6 +952,7 @@ ListServicesOKBodyMysqlItems0 MySQLService represents a generic MySQL instance. swagger:model ListServicesOKBodyMysqlItems0 */ type ListServicesOKBodyMysqlItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -991,6 +1020,7 @@ ListServicesOKBodyPostgresqlItems0 PostgreSQLService represents a generic Postgr swagger:model ListServicesOKBodyPostgresqlItems0 */ type ListServicesOKBodyPostgresqlItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1061,6 +1091,7 @@ ListServicesOKBodyProxysqlItems0 ProxySQLService represents a generic ProxySQL i swagger:model ListServicesOKBodyProxysqlItems0 */ type ListServicesOKBodyProxysqlItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/remove_service_parameters.go b/api/inventorypb/json/client/services/remove_service_parameters.go index 4246b7a5ce..ed9f9dd5d8 100644 --- a/api/inventorypb/json/client/services/remove_service_parameters.go +++ b/api/inventorypb/json/client/services/remove_service_parameters.go @@ -60,6 +60,7 @@ RemoveServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveServiceParams struct { + // Body. Body RemoveServiceBody @@ -129,6 +130,7 @@ func (o *RemoveServiceParams) SetBody(body RemoveServiceBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/remove_service_responses.go b/api/inventorypb/json/client/services/remove_service_responses.go index c7bbbf1ce0..387b8aa924 100644 --- a/api/inventorypb/json/client/services/remove_service_responses.go +++ b/api/inventorypb/json/client/services/remove_service_responses.go @@ -60,12 +60,12 @@ type RemoveServiceOK struct { func (o *RemoveServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Remove][%d] removeServiceOk %+v", 200, o.Payload) } - func (o *RemoveServiceOK) GetPayload() interface{} { return o.Payload } func (o *RemoveServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveServiceDefault) Code() int { func (o *RemoveServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Remove][%d] RemoveService default %+v", o._statusCode, o.Payload) } - func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { return o.Payload } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -121,6 +121,7 @@ RemoveServiceBody remove service body swagger:model RemoveServiceBody */ type RemoveServiceBody struct { + // Unique randomly generated instance identifier. Required. ServiceID string `json:"service_id,omitempty"` @@ -161,6 +162,7 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *RemoveServiceDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -265,6 +270,7 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventorypb/log_level.pb.go b/api/inventorypb/log_level.pb.go index 7cc6b70172..fea118a4f3 100644 --- a/api/inventorypb/log_level.pb.go +++ b/api/inventorypb/log_level.pb.go @@ -7,11 +7,10 @@ package inventorypb import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -114,13 +113,10 @@ func file_inventorypb_log_level_proto_rawDescGZIP() []byte { return file_inventorypb_log_level_proto_rawDescData } -var ( - file_inventorypb_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventorypb_log_level_proto_goTypes = []interface{}{ - (LogLevel)(0), // 0: inventory.LogLevel - } -) - +var file_inventorypb_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventorypb_log_level_proto_goTypes = []interface{}{ + (LogLevel)(0), // 0: inventory.LogLevel +} var file_inventorypb_log_level_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/inventorypb/log_level.validator.pb.go b/api/inventorypb/log_level.validator.pb.go index 8e94d8ba3a..f2bd6df8bf 100644 --- a/api/inventorypb/log_level.validator.pb.go +++ b/api/inventorypb/log_level.validator.pb.go @@ -6,13 +6,10 @@ package inventorypb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/inventorypb/nodes.pb.go b/api/inventorypb/nodes.pb.go index a95bea1cfb..cc13faa94f 100644 --- a/api/inventorypb/nodes.pb.go +++ b/api/inventorypb/nodes.pb.go @@ -7,14 +7,13 @@ package inventorypb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -2221,45 +2220,42 @@ func file_inventorypb_nodes_proto_rawDescGZIP() []byte { return file_inventorypb_nodes_proto_rawDescData } -var ( - file_inventorypb_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventorypb_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 31) - file_inventorypb_nodes_proto_goTypes = []interface{}{ - (NodeType)(0), // 0: inventory.NodeType - (*GenericNode)(nil), // 1: inventory.GenericNode - (*ContainerNode)(nil), // 2: inventory.ContainerNode - (*RemoteNode)(nil), // 3: inventory.RemoteNode - (*RemoteRDSNode)(nil), // 4: inventory.RemoteRDSNode - (*RemoteAzureDatabaseNode)(nil), // 5: inventory.RemoteAzureDatabaseNode - (*ListNodesRequest)(nil), // 6: inventory.ListNodesRequest - (*ListNodesResponse)(nil), // 7: inventory.ListNodesResponse - (*GetNodeRequest)(nil), // 8: inventory.GetNodeRequest - (*GetNodeResponse)(nil), // 9: inventory.GetNodeResponse - (*AddGenericNodeRequest)(nil), // 10: inventory.AddGenericNodeRequest - (*AddGenericNodeResponse)(nil), // 11: inventory.AddGenericNodeResponse - (*AddContainerNodeRequest)(nil), // 12: inventory.AddContainerNodeRequest - (*AddContainerNodeResponse)(nil), // 13: inventory.AddContainerNodeResponse - (*AddRemoteNodeRequest)(nil), // 14: inventory.AddRemoteNodeRequest - (*AddRemoteNodeResponse)(nil), // 15: inventory.AddRemoteNodeResponse - (*AddRemoteRDSNodeRequest)(nil), // 16: inventory.AddRemoteRDSNodeRequest - (*AddRemoteRDSNodeResponse)(nil), // 17: inventory.AddRemoteRDSNodeResponse - (*AddRemoteAzureDatabaseNodeRequest)(nil), // 18: inventory.AddRemoteAzureDatabaseNodeRequest - (*AddRemoteAzureDatabaseNodeResponse)(nil), // 19: inventory.AddRemoteAzureDatabaseNodeResponse - (*RemoveNodeRequest)(nil), // 20: inventory.RemoveNodeRequest - (*RemoveNodeResponse)(nil), // 21: inventory.RemoveNodeResponse - nil, // 22: inventory.GenericNode.CustomLabelsEntry - nil, // 23: inventory.ContainerNode.CustomLabelsEntry - nil, // 24: inventory.RemoteNode.CustomLabelsEntry - nil, // 25: inventory.RemoteRDSNode.CustomLabelsEntry - nil, // 26: inventory.RemoteAzureDatabaseNode.CustomLabelsEntry - nil, // 27: inventory.AddGenericNodeRequest.CustomLabelsEntry - nil, // 28: inventory.AddContainerNodeRequest.CustomLabelsEntry - nil, // 29: inventory.AddRemoteNodeRequest.CustomLabelsEntry - nil, // 30: inventory.AddRemoteRDSNodeRequest.CustomLabelsEntry - nil, // 31: inventory.AddRemoteAzureDatabaseNodeRequest.CustomLabelsEntry - } -) - +var file_inventorypb_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventorypb_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_inventorypb_nodes_proto_goTypes = []interface{}{ + (NodeType)(0), // 0: inventory.NodeType + (*GenericNode)(nil), // 1: inventory.GenericNode + (*ContainerNode)(nil), // 2: inventory.ContainerNode + (*RemoteNode)(nil), // 3: inventory.RemoteNode + (*RemoteRDSNode)(nil), // 4: inventory.RemoteRDSNode + (*RemoteAzureDatabaseNode)(nil), // 5: inventory.RemoteAzureDatabaseNode + (*ListNodesRequest)(nil), // 6: inventory.ListNodesRequest + (*ListNodesResponse)(nil), // 7: inventory.ListNodesResponse + (*GetNodeRequest)(nil), // 8: inventory.GetNodeRequest + (*GetNodeResponse)(nil), // 9: inventory.GetNodeResponse + (*AddGenericNodeRequest)(nil), // 10: inventory.AddGenericNodeRequest + (*AddGenericNodeResponse)(nil), // 11: inventory.AddGenericNodeResponse + (*AddContainerNodeRequest)(nil), // 12: inventory.AddContainerNodeRequest + (*AddContainerNodeResponse)(nil), // 13: inventory.AddContainerNodeResponse + (*AddRemoteNodeRequest)(nil), // 14: inventory.AddRemoteNodeRequest + (*AddRemoteNodeResponse)(nil), // 15: inventory.AddRemoteNodeResponse + (*AddRemoteRDSNodeRequest)(nil), // 16: inventory.AddRemoteRDSNodeRequest + (*AddRemoteRDSNodeResponse)(nil), // 17: inventory.AddRemoteRDSNodeResponse + (*AddRemoteAzureDatabaseNodeRequest)(nil), // 18: inventory.AddRemoteAzureDatabaseNodeRequest + (*AddRemoteAzureDatabaseNodeResponse)(nil), // 19: inventory.AddRemoteAzureDatabaseNodeResponse + (*RemoveNodeRequest)(nil), // 20: inventory.RemoveNodeRequest + (*RemoveNodeResponse)(nil), // 21: inventory.RemoveNodeResponse + nil, // 22: inventory.GenericNode.CustomLabelsEntry + nil, // 23: inventory.ContainerNode.CustomLabelsEntry + nil, // 24: inventory.RemoteNode.CustomLabelsEntry + nil, // 25: inventory.RemoteRDSNode.CustomLabelsEntry + nil, // 26: inventory.RemoteAzureDatabaseNode.CustomLabelsEntry + nil, // 27: inventory.AddGenericNodeRequest.CustomLabelsEntry + nil, // 28: inventory.AddContainerNodeRequest.CustomLabelsEntry + nil, // 29: inventory.AddRemoteNodeRequest.CustomLabelsEntry + nil, // 30: inventory.AddRemoteRDSNodeRequest.CustomLabelsEntry + nil, // 31: inventory.AddRemoteAzureDatabaseNodeRequest.CustomLabelsEntry +} var file_inventorypb_nodes_proto_depIdxs = []int32{ 22, // 0: inventory.GenericNode.custom_labels:type_name -> inventory.GenericNode.CustomLabelsEntry 23, // 1: inventory.ContainerNode.custom_labels:type_name -> inventory.ContainerNode.CustomLabelsEntry diff --git a/api/inventorypb/nodes.pb.gw.go b/api/inventorypb/nodes.pb.gw.go index 3e9c1e5645..097868be44 100644 --- a/api/inventorypb/nodes.pb.gw.go +++ b/api/inventorypb/nodes.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListNodesRequest @@ -47,6 +45,7 @@ func request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.ListNodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Mars msg, err := server.ListNodes(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marshaler, c msg, err := client.GetNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marsha msg, err := server.GetNode(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.AddGenericNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime msg, err := server.AddGenericNode(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AddContainerNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runti msg, err := server.AddContainerNode(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.AddRemoteNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime. msg, err := server.AddRemoteNode(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AddRemoteRDSNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runti msg, err := server.AddRemoteRDSNode(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marshaler r msg, err := client.AddRemoteAzureDatabaseNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marsh msg, err := server.AddRemoteAzureDatabaseNode(ctx, &protoReq) return msg, metadata, err + } func request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -271,6 +283,7 @@ func request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.RemoveNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -287,6 +300,7 @@ func local_request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Mar msg, err := server.RemoveNode(ctx, &protoReq) return msg, metadata, err + } // RegisterNodesHandlerServer registers the http handlers for service Nodes to "mux". @@ -294,6 +308,7 @@ func local_request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Mar // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNodesHandlerFromEndpoint instead. func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodesServer) error { + mux.Handle("POST", pattern_Nodes_ListNodes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -316,6 +331,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_ListNodes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_GetNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -340,6 +356,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_GetNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddGenericNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -364,6 +381,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddGenericNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddContainerNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -388,6 +406,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddContainerNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddRemoteNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -412,6 +431,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddRemoteNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddRemoteRDSNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -436,6 +456,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddRemoteRDSNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddRemoteAzureDatabaseNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -460,6 +481,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddRemoteAzureDatabaseNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_RemoveNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -484,6 +506,7 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_RemoveNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -526,6 +549,7 @@ func RegisterNodesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "NodesClient" to call the correct interceptors. func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodesClient) error { + mux.Handle("POST", pattern_Nodes_ListNodes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -545,6 +569,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_ListNodes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_GetNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -566,6 +591,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_GetNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddGenericNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -587,6 +613,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddGenericNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddContainerNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -608,6 +635,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddContainerNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddRemoteNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -629,6 +657,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddRemoteNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddRemoteRDSNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -650,6 +679,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddRemoteRDSNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_AddRemoteAzureDatabaseNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -671,6 +701,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddRemoteAzureDatabaseNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Nodes_RemoveNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -692,6 +723,7 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_RemoveNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/inventorypb/nodes.validator.pb.go b/api/inventorypb/nodes.validator.pb.go index 6f39b65c25..b73c27a416 100644 --- a/api/inventorypb/nodes.validator.pb.go +++ b/api/inventorypb/nodes.validator.pb.go @@ -6,50 +6,41 @@ package inventorypb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *GenericNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ContainerNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *RemoteNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *RemoteRDSNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *RemoteAzureDatabaseNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ListNodesRequest) Validate() error { return nil } - func (this *ListNodesResponse) Validate() error { for _, item := range this.Generic { if item != nil { @@ -88,14 +79,12 @@ func (this *ListNodesResponse) Validate() error { } return nil } - func (this *GetNodeRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } return nil } - func (this *GetNodeResponse) Validate() error { if oneOfNester, ok := this.GetNode().(*GetNodeResponse_Generic); ok { if oneOfNester.Generic != nil { @@ -134,7 +123,6 @@ func (this *GetNodeResponse) Validate() error { } return nil } - func (this *AddGenericNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -145,7 +133,6 @@ func (this *AddGenericNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddGenericNodeResponse) Validate() error { if this.Generic != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Generic); err != nil { @@ -154,7 +141,6 @@ func (this *AddGenericNodeResponse) Validate() error { } return nil } - func (this *AddContainerNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -165,7 +151,6 @@ func (this *AddContainerNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddContainerNodeResponse) Validate() error { if this.Container != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Container); err != nil { @@ -174,7 +159,6 @@ func (this *AddContainerNodeResponse) Validate() error { } return nil } - func (this *AddRemoteNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -185,7 +169,6 @@ func (this *AddRemoteNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddRemoteNodeResponse) Validate() error { if this.Remote != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Remote); err != nil { @@ -194,7 +177,6 @@ func (this *AddRemoteNodeResponse) Validate() error { } return nil } - func (this *AddRemoteRDSNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -208,7 +190,6 @@ func (this *AddRemoteRDSNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddRemoteRDSNodeResponse) Validate() error { if this.RemoteRds != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RemoteRds); err != nil { @@ -217,7 +198,6 @@ func (this *AddRemoteRDSNodeResponse) Validate() error { } return nil } - func (this *AddRemoteAzureDatabaseNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -231,7 +211,6 @@ func (this *AddRemoteAzureDatabaseNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddRemoteAzureDatabaseNodeResponse) Validate() error { if this.RemoteAzureDatabase != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RemoteAzureDatabase); err != nil { @@ -240,14 +219,12 @@ func (this *AddRemoteAzureDatabaseNodeResponse) Validate() error { } return nil } - func (this *RemoveNodeRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } return nil } - func (this *RemoveNodeResponse) Validate() error { return nil } diff --git a/api/inventorypb/nodes_grpc.pb.go b/api/inventorypb/nodes_grpc.pb.go index 1ba7839334..a8cc471ad9 100644 --- a/api/inventorypb/nodes_grpc.pb.go +++ b/api/inventorypb/nodes_grpc.pb.go @@ -8,7 +8,6 @@ package inventorypb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -145,36 +144,30 @@ type NodesServer interface { } // UnimplementedNodesServer must be embedded to have forward compatible implementations. -type UnimplementedNodesServer struct{} +type UnimplementedNodesServer struct { +} func (UnimplementedNodesServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListNodes not implemented") } - func (UnimplementedNodesServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNode not implemented") } - func (UnimplementedNodesServer) AddGenericNode(context.Context, *AddGenericNodeRequest) (*AddGenericNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddGenericNode not implemented") } - func (UnimplementedNodesServer) AddContainerNode(context.Context, *AddContainerNodeRequest) (*AddContainerNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddContainerNode not implemented") } - func (UnimplementedNodesServer) AddRemoteNode(context.Context, *AddRemoteNodeRequest) (*AddRemoteNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRemoteNode not implemented") } - func (UnimplementedNodesServer) AddRemoteRDSNode(context.Context, *AddRemoteRDSNodeRequest) (*AddRemoteRDSNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRemoteRDSNode not implemented") } - func (UnimplementedNodesServer) AddRemoteAzureDatabaseNode(context.Context, *AddRemoteAzureDatabaseNodeRequest) (*AddRemoteAzureDatabaseNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRemoteAzureDatabaseNode not implemented") } - func (UnimplementedNodesServer) RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveNode not implemented") } diff --git a/api/inventorypb/services.pb.go b/api/inventorypb/services.pb.go index 23cfc99220..dd2e7e4369 100644 --- a/api/inventorypb/services.pb.go +++ b/api/inventorypb/services.pb.go @@ -7,14 +7,13 @@ package inventorypb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -2806,50 +2805,47 @@ func file_inventorypb_services_proto_rawDescGZIP() []byte { return file_inventorypb_services_proto_rawDescData } -var ( - file_inventorypb_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventorypb_services_proto_msgTypes = make([]protoimpl.MessageInfo, 36) - file_inventorypb_services_proto_goTypes = []interface{}{ - (ServiceType)(0), // 0: inventory.ServiceType - (*MySQLService)(nil), // 1: inventory.MySQLService - (*MongoDBService)(nil), // 2: inventory.MongoDBService - (*PostgreSQLService)(nil), // 3: inventory.PostgreSQLService - (*ProxySQLService)(nil), // 4: inventory.ProxySQLService - (*HAProxyService)(nil), // 5: inventory.HAProxyService - (*ExternalService)(nil), // 6: inventory.ExternalService - (*ListServicesRequest)(nil), // 7: inventory.ListServicesRequest - (*ListServicesResponse)(nil), // 8: inventory.ListServicesResponse - (*GetServiceRequest)(nil), // 9: inventory.GetServiceRequest - (*GetServiceResponse)(nil), // 10: inventory.GetServiceResponse - (*AddMySQLServiceRequest)(nil), // 11: inventory.AddMySQLServiceRequest - (*AddMySQLServiceResponse)(nil), // 12: inventory.AddMySQLServiceResponse - (*AddMongoDBServiceRequest)(nil), // 13: inventory.AddMongoDBServiceRequest - (*AddMongoDBServiceResponse)(nil), // 14: inventory.AddMongoDBServiceResponse - (*AddPostgreSQLServiceRequest)(nil), // 15: inventory.AddPostgreSQLServiceRequest - (*AddPostgreSQLServiceResponse)(nil), // 16: inventory.AddPostgreSQLServiceResponse - (*AddProxySQLServiceRequest)(nil), // 17: inventory.AddProxySQLServiceRequest - (*AddProxySQLServiceResponse)(nil), // 18: inventory.AddProxySQLServiceResponse - (*AddHAProxyServiceRequest)(nil), // 19: inventory.AddHAProxyServiceRequest - (*AddHAProxyServiceResponse)(nil), // 20: inventory.AddHAProxyServiceResponse - (*AddExternalServiceRequest)(nil), // 21: inventory.AddExternalServiceRequest - (*AddExternalServiceResponse)(nil), // 22: inventory.AddExternalServiceResponse - (*RemoveServiceRequest)(nil), // 23: inventory.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 24: inventory.RemoveServiceResponse - nil, // 25: inventory.MySQLService.CustomLabelsEntry - nil, // 26: inventory.MongoDBService.CustomLabelsEntry - nil, // 27: inventory.PostgreSQLService.CustomLabelsEntry - nil, // 28: inventory.ProxySQLService.CustomLabelsEntry - nil, // 29: inventory.HAProxyService.CustomLabelsEntry - nil, // 30: inventory.ExternalService.CustomLabelsEntry - nil, // 31: inventory.AddMySQLServiceRequest.CustomLabelsEntry - nil, // 32: inventory.AddMongoDBServiceRequest.CustomLabelsEntry - nil, // 33: inventory.AddPostgreSQLServiceRequest.CustomLabelsEntry - nil, // 34: inventory.AddProxySQLServiceRequest.CustomLabelsEntry - nil, // 35: inventory.AddHAProxyServiceRequest.CustomLabelsEntry - nil, // 36: inventory.AddExternalServiceRequest.CustomLabelsEntry - } -) - +var file_inventorypb_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventorypb_services_proto_msgTypes = make([]protoimpl.MessageInfo, 36) +var file_inventorypb_services_proto_goTypes = []interface{}{ + (ServiceType)(0), // 0: inventory.ServiceType + (*MySQLService)(nil), // 1: inventory.MySQLService + (*MongoDBService)(nil), // 2: inventory.MongoDBService + (*PostgreSQLService)(nil), // 3: inventory.PostgreSQLService + (*ProxySQLService)(nil), // 4: inventory.ProxySQLService + (*HAProxyService)(nil), // 5: inventory.HAProxyService + (*ExternalService)(nil), // 6: inventory.ExternalService + (*ListServicesRequest)(nil), // 7: inventory.ListServicesRequest + (*ListServicesResponse)(nil), // 8: inventory.ListServicesResponse + (*GetServiceRequest)(nil), // 9: inventory.GetServiceRequest + (*GetServiceResponse)(nil), // 10: inventory.GetServiceResponse + (*AddMySQLServiceRequest)(nil), // 11: inventory.AddMySQLServiceRequest + (*AddMySQLServiceResponse)(nil), // 12: inventory.AddMySQLServiceResponse + (*AddMongoDBServiceRequest)(nil), // 13: inventory.AddMongoDBServiceRequest + (*AddMongoDBServiceResponse)(nil), // 14: inventory.AddMongoDBServiceResponse + (*AddPostgreSQLServiceRequest)(nil), // 15: inventory.AddPostgreSQLServiceRequest + (*AddPostgreSQLServiceResponse)(nil), // 16: inventory.AddPostgreSQLServiceResponse + (*AddProxySQLServiceRequest)(nil), // 17: inventory.AddProxySQLServiceRequest + (*AddProxySQLServiceResponse)(nil), // 18: inventory.AddProxySQLServiceResponse + (*AddHAProxyServiceRequest)(nil), // 19: inventory.AddHAProxyServiceRequest + (*AddHAProxyServiceResponse)(nil), // 20: inventory.AddHAProxyServiceResponse + (*AddExternalServiceRequest)(nil), // 21: inventory.AddExternalServiceRequest + (*AddExternalServiceResponse)(nil), // 22: inventory.AddExternalServiceResponse + (*RemoveServiceRequest)(nil), // 23: inventory.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 24: inventory.RemoveServiceResponse + nil, // 25: inventory.MySQLService.CustomLabelsEntry + nil, // 26: inventory.MongoDBService.CustomLabelsEntry + nil, // 27: inventory.PostgreSQLService.CustomLabelsEntry + nil, // 28: inventory.ProxySQLService.CustomLabelsEntry + nil, // 29: inventory.HAProxyService.CustomLabelsEntry + nil, // 30: inventory.ExternalService.CustomLabelsEntry + nil, // 31: inventory.AddMySQLServiceRequest.CustomLabelsEntry + nil, // 32: inventory.AddMongoDBServiceRequest.CustomLabelsEntry + nil, // 33: inventory.AddPostgreSQLServiceRequest.CustomLabelsEntry + nil, // 34: inventory.AddProxySQLServiceRequest.CustomLabelsEntry + nil, // 35: inventory.AddHAProxyServiceRequest.CustomLabelsEntry + nil, // 36: inventory.AddExternalServiceRequest.CustomLabelsEntry +} var file_inventorypb_services_proto_depIdxs = []int32{ 25, // 0: inventory.MySQLService.custom_labels:type_name -> inventory.MySQLService.CustomLabelsEntry 26, // 1: inventory.MongoDBService.custom_labels:type_name -> inventory.MongoDBService.CustomLabelsEntry diff --git a/api/inventorypb/services.pb.gw.go b/api/inventorypb/services.pb.gw.go index 59bb9c8043..bcee5fcc91 100644 --- a/api/inventorypb/services.pb.gw.go +++ b/api/inventorypb/services.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Services_ListServices_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListServicesRequest @@ -47,6 +45,7 @@ func request_Services_ListServices_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ListServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_ListServices_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Services_ListServices_0(ctx context.Context, marshaler runtim msg, err := server.ListServices(ctx, &protoReq) return msg, metadata, err + } func request_Services_GetService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Services_GetService_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.GetService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_GetService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Services_GetService_0(ctx context.Context, marshaler runtime. msg, err := server.GetService(ctx, &protoReq) return msg, metadata, err + } func request_Services_AddMySQLService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Services_AddMySQLService_0(ctx context.Context, marshaler runtime.M msg, err := client.AddMySQLService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_AddMySQLService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Services_AddMySQLService_0(ctx context.Context, marshaler run msg, err := server.AddMySQLService(ctx, &protoReq) return msg, metadata, err + } func request_Services_AddMongoDBService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Services_AddMongoDBService_0(ctx context.Context, marshaler runtime msg, err := client.AddMongoDBService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_AddMongoDBService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Services_AddMongoDBService_0(ctx context.Context, marshaler r msg, err := server.AddMongoDBService(ctx, &protoReq) return msg, metadata, err + } func request_Services_AddPostgreSQLService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Services_AddPostgreSQLService_0(ctx context.Context, marshaler runt msg, err := client.AddPostgreSQLService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_AddPostgreSQLService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Services_AddPostgreSQLService_0(ctx context.Context, marshale msg, err := server.AddPostgreSQLService(ctx, &protoReq) return msg, metadata, err + } func request_Services_AddProxySQLService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Services_AddProxySQLService_0(ctx context.Context, marshaler runtim msg, err := client.AddProxySQLService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_AddProxySQLService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Services_AddProxySQLService_0(ctx context.Context, marshaler msg, err := server.AddProxySQLService(ctx, &protoReq) return msg, metadata, err + } func request_Services_AddHAProxyService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_Services_AddHAProxyService_0(ctx context.Context, marshaler runtime msg, err := client.AddHAProxyService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_AddHAProxyService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_Services_AddHAProxyService_0(ctx context.Context, marshaler r msg, err := server.AddHAProxyService(ctx, &protoReq) return msg, metadata, err + } func request_Services_AddExternalService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -271,6 +283,7 @@ func request_Services_AddExternalService_0(ctx context.Context, marshaler runtim msg, err := client.AddExternalService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_AddExternalService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -287,6 +300,7 @@ func local_request_Services_AddExternalService_0(ctx context.Context, marshaler msg, err := server.AddExternalService(ctx, &protoReq) return msg, metadata, err + } func request_Services_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -303,6 +317,7 @@ func request_Services_RemoveService_0(ctx context.Context, marshaler runtime.Mar msg, err := client.RemoveService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Services_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -319,6 +334,7 @@ func local_request_Services_RemoveService_0(ctx context.Context, marshaler runti msg, err := server.RemoveService(ctx, &protoReq) return msg, metadata, err + } // RegisterServicesHandlerServer registers the http handlers for service Services to "mux". @@ -326,6 +342,7 @@ func local_request_Services_RemoveService_0(ctx context.Context, marshaler runti // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServicesHandlerFromEndpoint instead. func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServicesServer) error { + mux.Handle("POST", pattern_Services_ListServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -348,6 +365,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_ListServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_GetService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -372,6 +390,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_GetService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddMySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -396,6 +415,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddMySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddMongoDBService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -420,6 +440,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddMongoDBService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddPostgreSQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -444,6 +465,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddPostgreSQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddProxySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -468,6 +490,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddProxySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddHAProxyService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -492,6 +515,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddHAProxyService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddExternalService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -516,6 +540,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddExternalService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -540,6 +565,7 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -582,6 +608,7 @@ func RegisterServicesHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ServicesClient" to call the correct interceptors. func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServicesClient) error { + mux.Handle("POST", pattern_Services_ListServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -601,6 +628,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_ListServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_GetService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -622,6 +650,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_GetService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddMySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -643,6 +672,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddMySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddMongoDBService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -664,6 +694,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddMongoDBService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddPostgreSQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -685,6 +716,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddPostgreSQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddProxySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -706,6 +738,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddProxySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddHAProxyService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -727,6 +760,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddHAProxyService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_AddExternalService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -748,6 +782,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddExternalService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Services_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -769,6 +804,7 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/inventorypb/services.validator.pb.go b/api/inventorypb/services.validator.pb.go index f92d456df3..47acc4fff4 100644 --- a/api/inventorypb/services.validator.pb.go +++ b/api/inventorypb/services.validator.pb.go @@ -6,55 +6,45 @@ package inventorypb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *MySQLService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *MongoDBService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *PostgreSQLService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ProxySQLService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *HAProxyService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ExternalService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ListServicesRequest) Validate() error { return nil } - func (this *ListServicesResponse) Validate() error { for _, item := range this.Mysql { if item != nil { @@ -100,14 +90,12 @@ func (this *ListServicesResponse) Validate() error { } return nil } - func (this *GetServiceRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) } return nil } - func (this *GetServiceResponse) Validate() error { if oneOfNester, ok := this.GetService().(*GetServiceResponse_Mysql); ok { if oneOfNester.Mysql != nil { @@ -153,7 +141,6 @@ func (this *GetServiceResponse) Validate() error { } return nil } - func (this *AddMySQLServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -164,7 +151,6 @@ func (this *AddMySQLServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddMySQLServiceResponse) Validate() error { if this.Mysql != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Mysql); err != nil { @@ -173,7 +159,6 @@ func (this *AddMySQLServiceResponse) Validate() error { } return nil } - func (this *AddMongoDBServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -184,7 +169,6 @@ func (this *AddMongoDBServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddMongoDBServiceResponse) Validate() error { if this.Mongodb != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Mongodb); err != nil { @@ -193,7 +177,6 @@ func (this *AddMongoDBServiceResponse) Validate() error { } return nil } - func (this *AddPostgreSQLServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -204,7 +187,6 @@ func (this *AddPostgreSQLServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddPostgreSQLServiceResponse) Validate() error { if this.Postgresql != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Postgresql); err != nil { @@ -213,7 +195,6 @@ func (this *AddPostgreSQLServiceResponse) Validate() error { } return nil } - func (this *AddProxySQLServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -224,7 +205,6 @@ func (this *AddProxySQLServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddProxySQLServiceResponse) Validate() error { if this.Proxysql != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Proxysql); err != nil { @@ -233,7 +213,6 @@ func (this *AddProxySQLServiceResponse) Validate() error { } return nil } - func (this *AddHAProxyServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -244,7 +223,6 @@ func (this *AddHAProxyServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddHAProxyServiceResponse) Validate() error { if this.Haproxy != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Haproxy); err != nil { @@ -253,7 +231,6 @@ func (this *AddHAProxyServiceResponse) Validate() error { } return nil } - func (this *AddExternalServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -264,7 +241,6 @@ func (this *AddExternalServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddExternalServiceResponse) Validate() error { if this.External != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.External); err != nil { @@ -273,14 +249,12 @@ func (this *AddExternalServiceResponse) Validate() error { } return nil } - func (this *RemoveServiceRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) } return nil } - func (this *RemoveServiceResponse) Validate() error { return nil } diff --git a/api/inventorypb/services_grpc.pb.go b/api/inventorypb/services_grpc.pb.go index 6d98bdca25..f21c7fb80a 100644 --- a/api/inventorypb/services_grpc.pb.go +++ b/api/inventorypb/services_grpc.pb.go @@ -8,7 +8,6 @@ package inventorypb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -158,40 +157,33 @@ type ServicesServer interface { } // UnimplementedServicesServer must be embedded to have forward compatible implementations. -type UnimplementedServicesServer struct{} +type UnimplementedServicesServer struct { +} func (UnimplementedServicesServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented") } - func (UnimplementedServicesServer) GetService(context.Context, *GetServiceRequest) (*GetServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented") } - func (UnimplementedServicesServer) AddMySQLService(context.Context, *AddMySQLServiceRequest) (*AddMySQLServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMySQLService not implemented") } - func (UnimplementedServicesServer) AddMongoDBService(context.Context, *AddMongoDBServiceRequest) (*AddMongoDBServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMongoDBService not implemented") } - func (UnimplementedServicesServer) AddPostgreSQLService(context.Context, *AddPostgreSQLServiceRequest) (*AddPostgreSQLServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPostgreSQLService not implemented") } - func (UnimplementedServicesServer) AddProxySQLService(context.Context, *AddProxySQLServiceRequest) (*AddProxySQLServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddProxySQLService not implemented") } - func (UnimplementedServicesServer) AddHAProxyService(context.Context, *AddHAProxyServiceRequest) (*AddHAProxyServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddHAProxyService not implemented") } - func (UnimplementedServicesServer) AddExternalService(context.Context, *AddExternalServiceRequest) (*AddExternalServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddExternalService not implemented") } - func (UnimplementedServicesServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveService not implemented") } diff --git a/api/managementpb/actions.pb.go b/api/managementpb/actions.pb.go index 8b83370835..3bbeb518d2 100644 --- a/api/managementpb/actions.pb.go +++ b/api/managementpb/actions.pb.go @@ -7,14 +7,13 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -2486,44 +2485,41 @@ func file_managementpb_actions_proto_rawDescGZIP() []byte { return file_managementpb_actions_proto_rawDescData } -var ( - file_managementpb_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 30) - file_managementpb_actions_proto_goTypes = []interface{}{ - (ActionType)(0), // 0: management.ActionType - (*GetActionRequest)(nil), // 1: management.GetActionRequest - (*GetActionResponse)(nil), // 2: management.GetActionResponse - (*StartMySQLExplainActionRequest)(nil), // 3: management.StartMySQLExplainActionRequest - (*StartMySQLExplainActionResponse)(nil), // 4: management.StartMySQLExplainActionResponse - (*StartMySQLExplainJSONActionRequest)(nil), // 5: management.StartMySQLExplainJSONActionRequest - (*StartMySQLExplainJSONActionResponse)(nil), // 6: management.StartMySQLExplainJSONActionResponse - (*StartMySQLExplainTraditionalJSONActionRequest)(nil), // 7: management.StartMySQLExplainTraditionalJSONActionRequest - (*StartMySQLExplainTraditionalJSONActionResponse)(nil), // 8: management.StartMySQLExplainTraditionalJSONActionResponse - (*StartMySQLShowCreateTableActionRequest)(nil), // 9: management.StartMySQLShowCreateTableActionRequest - (*StartMySQLShowCreateTableActionResponse)(nil), // 10: management.StartMySQLShowCreateTableActionResponse - (*StartMySQLShowTableStatusActionRequest)(nil), // 11: management.StartMySQLShowTableStatusActionRequest - (*StartMySQLShowTableStatusActionResponse)(nil), // 12: management.StartMySQLShowTableStatusActionResponse - (*StartMySQLShowIndexActionRequest)(nil), // 13: management.StartMySQLShowIndexActionRequest - (*StartMySQLShowIndexActionResponse)(nil), // 14: management.StartMySQLShowIndexActionResponse - (*StartPostgreSQLShowCreateTableActionRequest)(nil), // 15: management.StartPostgreSQLShowCreateTableActionRequest - (*StartPostgreSQLShowCreateTableActionResponse)(nil), // 16: management.StartPostgreSQLShowCreateTableActionResponse - (*StartPostgreSQLShowIndexActionRequest)(nil), // 17: management.StartPostgreSQLShowIndexActionRequest - (*StartPostgreSQLShowIndexActionResponse)(nil), // 18: management.StartPostgreSQLShowIndexActionResponse - (*StartMongoDBExplainActionRequest)(nil), // 19: management.StartMongoDBExplainActionRequest - (*StartMongoDBExplainActionResponse)(nil), // 20: management.StartMongoDBExplainActionResponse - (*StartPTSummaryActionRequest)(nil), // 21: management.StartPTSummaryActionRequest - (*StartPTSummaryActionResponse)(nil), // 22: management.StartPTSummaryActionResponse - (*StartPTPgSummaryActionRequest)(nil), // 23: management.StartPTPgSummaryActionRequest - (*StartPTPgSummaryActionResponse)(nil), // 24: management.StartPTPgSummaryActionResponse - (*StartPTMongoDBSummaryActionRequest)(nil), // 25: management.StartPTMongoDBSummaryActionRequest - (*StartPTMongoDBSummaryActionResponse)(nil), // 26: management.StartPTMongoDBSummaryActionResponse - (*StartPTMySQLSummaryActionRequest)(nil), // 27: management.StartPTMySQLSummaryActionRequest - (*StartPTMySQLSummaryActionResponse)(nil), // 28: management.StartPTMySQLSummaryActionResponse - (*CancelActionRequest)(nil), // 29: management.CancelActionRequest - (*CancelActionResponse)(nil), // 30: management.CancelActionResponse - } -) - +var file_managementpb_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_managementpb_actions_proto_goTypes = []interface{}{ + (ActionType)(0), // 0: management.ActionType + (*GetActionRequest)(nil), // 1: management.GetActionRequest + (*GetActionResponse)(nil), // 2: management.GetActionResponse + (*StartMySQLExplainActionRequest)(nil), // 3: management.StartMySQLExplainActionRequest + (*StartMySQLExplainActionResponse)(nil), // 4: management.StartMySQLExplainActionResponse + (*StartMySQLExplainJSONActionRequest)(nil), // 5: management.StartMySQLExplainJSONActionRequest + (*StartMySQLExplainJSONActionResponse)(nil), // 6: management.StartMySQLExplainJSONActionResponse + (*StartMySQLExplainTraditionalJSONActionRequest)(nil), // 7: management.StartMySQLExplainTraditionalJSONActionRequest + (*StartMySQLExplainTraditionalJSONActionResponse)(nil), // 8: management.StartMySQLExplainTraditionalJSONActionResponse + (*StartMySQLShowCreateTableActionRequest)(nil), // 9: management.StartMySQLShowCreateTableActionRequest + (*StartMySQLShowCreateTableActionResponse)(nil), // 10: management.StartMySQLShowCreateTableActionResponse + (*StartMySQLShowTableStatusActionRequest)(nil), // 11: management.StartMySQLShowTableStatusActionRequest + (*StartMySQLShowTableStatusActionResponse)(nil), // 12: management.StartMySQLShowTableStatusActionResponse + (*StartMySQLShowIndexActionRequest)(nil), // 13: management.StartMySQLShowIndexActionRequest + (*StartMySQLShowIndexActionResponse)(nil), // 14: management.StartMySQLShowIndexActionResponse + (*StartPostgreSQLShowCreateTableActionRequest)(nil), // 15: management.StartPostgreSQLShowCreateTableActionRequest + (*StartPostgreSQLShowCreateTableActionResponse)(nil), // 16: management.StartPostgreSQLShowCreateTableActionResponse + (*StartPostgreSQLShowIndexActionRequest)(nil), // 17: management.StartPostgreSQLShowIndexActionRequest + (*StartPostgreSQLShowIndexActionResponse)(nil), // 18: management.StartPostgreSQLShowIndexActionResponse + (*StartMongoDBExplainActionRequest)(nil), // 19: management.StartMongoDBExplainActionRequest + (*StartMongoDBExplainActionResponse)(nil), // 20: management.StartMongoDBExplainActionResponse + (*StartPTSummaryActionRequest)(nil), // 21: management.StartPTSummaryActionRequest + (*StartPTSummaryActionResponse)(nil), // 22: management.StartPTSummaryActionResponse + (*StartPTPgSummaryActionRequest)(nil), // 23: management.StartPTPgSummaryActionRequest + (*StartPTPgSummaryActionResponse)(nil), // 24: management.StartPTPgSummaryActionResponse + (*StartPTMongoDBSummaryActionRequest)(nil), // 25: management.StartPTMongoDBSummaryActionRequest + (*StartPTMongoDBSummaryActionResponse)(nil), // 26: management.StartPTMongoDBSummaryActionResponse + (*StartPTMySQLSummaryActionRequest)(nil), // 27: management.StartPTMySQLSummaryActionRequest + (*StartPTMySQLSummaryActionResponse)(nil), // 28: management.StartPTMySQLSummaryActionResponse + (*CancelActionRequest)(nil), // 29: management.CancelActionRequest + (*CancelActionResponse)(nil), // 30: management.CancelActionResponse +} var file_managementpb_actions_proto_depIdxs = []int32{ 1, // 0: management.Actions.GetAction:input_type -> management.GetActionRequest 3, // 1: management.Actions.StartMySQLExplainAction:input_type -> management.StartMySQLExplainActionRequest diff --git a/api/managementpb/actions.pb.gw.go b/api/managementpb/actions.pb.gw.go index d1254c1060..836fb125bf 100644 --- a/api/managementpb/actions.pb.gw.go +++ b/api/managementpb/actions.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetActionRequest @@ -47,6 +45,7 @@ func request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.GetAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Ma msg, err := server.GetAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMySQLExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Actions_StartMySQLExplainAction_0(ctx context.Context, marshaler ru msg, err := client.StartMySQLExplainAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMySQLExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Actions_StartMySQLExplainAction_0(ctx context.Context, marsha msg, err := server.StartMySQLExplainAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, marshale msg, err := client.StartMySQLExplainJSONAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, ma msg, err := server.StartMySQLExplainJSONAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context.Contex msg, err := client.StartMySQLExplainTraditionalJSONAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context. msg, err := server.StartMySQLExplainTraditionalJSONAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context, mars msg, err := client.StartMySQLShowCreateTableAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context msg, err := server.StartMySQLShowCreateTableAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context, mars msg, err := client.StartMySQLShowTableStatusAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context msg, err := server.StartMySQLShowTableStatusAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, marshaler msg, err := client.StartMySQLShowIndexAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, mars msg, err := server.StartMySQLShowIndexAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -271,6 +283,7 @@ func request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Context, msg, err := client.StartPostgreSQLShowCreateTableAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -287,6 +300,7 @@ func local_request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Co msg, err := server.StartPostgreSQLShowCreateTableAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -303,6 +317,7 @@ func request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, marsh msg, err := client.StartPostgreSQLShowIndexAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -319,6 +334,7 @@ func local_request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, msg, err := server.StartPostgreSQLShowIndexAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartMongoDBExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -335,6 +351,7 @@ func request_Actions_StartMongoDBExplainAction_0(ctx context.Context, marshaler msg, err := client.StartMongoDBExplainAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartMongoDBExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -351,6 +368,7 @@ func local_request_Actions_StartMongoDBExplainAction_0(ctx context.Context, mars msg, err := server.StartMongoDBExplainAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -367,6 +385,7 @@ func request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler runti msg, err := client.StartPTSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -383,6 +402,7 @@ func local_request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler msg, err := server.StartPTSummaryAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -399,6 +419,7 @@ func request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshaler run msg, err := client.StartPTPgSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -415,6 +436,7 @@ func local_request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshal msg, err := server.StartPTPgSummaryAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -431,6 +453,7 @@ func request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, marshale msg, err := client.StartPTMongoDBSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -447,6 +470,7 @@ func local_request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, ma msg, err := server.StartPTMongoDBSummaryAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -463,6 +487,7 @@ func request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, marshaler msg, err := client.StartPTMySQLSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -479,6 +504,7 @@ func local_request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, mars msg, err := server.StartPTMySQLSummaryAction(ctx, &protoReq) return msg, metadata, err + } func request_Actions_CancelAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -495,6 +521,7 @@ func request_Actions_CancelAction_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.CancelAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Actions_CancelAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -511,6 +538,7 @@ func local_request_Actions_CancelAction_0(ctx context.Context, marshaler runtime msg, err := server.CancelAction(ctx, &protoReq) return msg, metadata, err + } // RegisterActionsHandlerServer registers the http handlers for service Actions to "mux". @@ -518,6 +546,7 @@ func local_request_Actions_CancelAction_0(ctx context.Context, marshaler runtime // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActionsHandlerFromEndpoint instead. func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActionsServer) error { + mux.Handle("POST", pattern_Actions_GetAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -540,6 +569,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_GetAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -564,6 +594,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLExplainJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -588,6 +619,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLExplainJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLExplainTraditionalJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -612,6 +644,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLExplainTraditionalJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -636,6 +669,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLShowTableStatusAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -660,6 +694,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLShowTableStatusAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -684,6 +719,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -708,6 +744,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPostgreSQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -732,6 +769,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPostgreSQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMongoDBExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -756,6 +794,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMongoDBExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -780,6 +819,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTPgSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -804,6 +844,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTPgSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTMongoDBSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -828,6 +869,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTMongoDBSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTMySQLSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -852,6 +894,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTMySQLSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_CancelAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -876,6 +919,7 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_CancelAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -918,6 +962,7 @@ func RegisterActionsHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ActionsClient" to call the correct interceptors. func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActionsClient) error { + mux.Handle("POST", pattern_Actions_GetAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -937,6 +982,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_GetAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -958,6 +1004,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLExplainJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -979,6 +1026,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLExplainJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLExplainTraditionalJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1000,6 +1048,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLExplainTraditionalJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1021,6 +1070,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLShowTableStatusAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1042,6 +1092,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLShowTableStatusAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMySQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1063,6 +1114,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1084,6 +1136,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPostgreSQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1105,6 +1158,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPostgreSQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartMongoDBExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1126,6 +1180,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMongoDBExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1147,6 +1202,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTPgSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1168,6 +1224,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTPgSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTMongoDBSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1189,6 +1246,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTMongoDBSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_StartPTMySQLSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1210,6 +1268,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTMySQLSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Actions_CancelAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1231,6 +1290,7 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_CancelAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/actions.validator.pb.go b/api/managementpb/actions.validator.pb.go index 6ac28644d2..e257d8a8b2 100644 --- a/api/managementpb/actions.validator.pb.go +++ b/api/managementpb/actions.validator.pb.go @@ -6,20 +6,17 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *GetActionRequest) Validate() error { if this.ActionId == "" { @@ -27,11 +24,9 @@ func (this *GetActionRequest) Validate() error { } return nil } - func (this *GetActionResponse) Validate() error { return nil } - func (this *StartMySQLExplainActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -41,11 +36,9 @@ func (this *StartMySQLExplainActionRequest) Validate() error { } return nil } - func (this *StartMySQLExplainActionResponse) Validate() error { return nil } - func (this *StartMySQLExplainJSONActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -55,11 +48,9 @@ func (this *StartMySQLExplainJSONActionRequest) Validate() error { } return nil } - func (this *StartMySQLExplainJSONActionResponse) Validate() error { return nil } - func (this *StartMySQLExplainTraditionalJSONActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -69,11 +60,9 @@ func (this *StartMySQLExplainTraditionalJSONActionRequest) Validate() error { } return nil } - func (this *StartMySQLExplainTraditionalJSONActionResponse) Validate() error { return nil } - func (this *StartMySQLShowCreateTableActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -83,11 +72,9 @@ func (this *StartMySQLShowCreateTableActionRequest) Validate() error { } return nil } - func (this *StartMySQLShowCreateTableActionResponse) Validate() error { return nil } - func (this *StartMySQLShowTableStatusActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -97,11 +84,9 @@ func (this *StartMySQLShowTableStatusActionRequest) Validate() error { } return nil } - func (this *StartMySQLShowTableStatusActionResponse) Validate() error { return nil } - func (this *StartMySQLShowIndexActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -111,11 +96,9 @@ func (this *StartMySQLShowIndexActionRequest) Validate() error { } return nil } - func (this *StartMySQLShowIndexActionResponse) Validate() error { return nil } - func (this *StartPostgreSQLShowCreateTableActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -125,11 +108,9 @@ func (this *StartPostgreSQLShowCreateTableActionRequest) Validate() error { } return nil } - func (this *StartPostgreSQLShowCreateTableActionResponse) Validate() error { return nil } - func (this *StartPostgreSQLShowIndexActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -139,11 +120,9 @@ func (this *StartPostgreSQLShowIndexActionRequest) Validate() error { } return nil } - func (this *StartPostgreSQLShowIndexActionResponse) Validate() error { return nil } - func (this *StartMongoDBExplainActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -153,50 +132,39 @@ func (this *StartMongoDBExplainActionRequest) Validate() error { } return nil } - func (this *StartMongoDBExplainActionResponse) Validate() error { return nil } - func (this *StartPTSummaryActionRequest) Validate() error { return nil } - func (this *StartPTSummaryActionResponse) Validate() error { return nil } - func (this *StartPTPgSummaryActionRequest) Validate() error { return nil } - func (this *StartPTPgSummaryActionResponse) Validate() error { return nil } - func (this *StartPTMongoDBSummaryActionRequest) Validate() error { return nil } - func (this *StartPTMongoDBSummaryActionResponse) Validate() error { return nil } - func (this *StartPTMySQLSummaryActionRequest) Validate() error { return nil } - func (this *StartPTMySQLSummaryActionResponse) Validate() error { return nil } - func (this *CancelActionRequest) Validate() error { if this.ActionId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ActionId", fmt.Errorf(`value '%v' must not be an empty string`, this.ActionId)) } return nil } - func (this *CancelActionResponse) Validate() error { return nil } diff --git a/api/managementpb/actions_grpc.pb.go b/api/managementpb/actions_grpc.pb.go index b7d3bb5f92..5858c48e09 100644 --- a/api/managementpb/actions_grpc.pb.go +++ b/api/managementpb/actions_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -236,64 +235,51 @@ type ActionsServer interface { } // UnimplementedActionsServer must be embedded to have forward compatible implementations. -type UnimplementedActionsServer struct{} +type UnimplementedActionsServer struct { +} func (UnimplementedActionsServer) GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAction not implemented") } - func (UnimplementedActionsServer) StartMySQLExplainAction(context.Context, *StartMySQLExplainActionRequest) (*StartMySQLExplainActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLExplainAction not implemented") } - func (UnimplementedActionsServer) StartMySQLExplainJSONAction(context.Context, *StartMySQLExplainJSONActionRequest) (*StartMySQLExplainJSONActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLExplainJSONAction not implemented") } - func (UnimplementedActionsServer) StartMySQLExplainTraditionalJSONAction(context.Context, *StartMySQLExplainTraditionalJSONActionRequest) (*StartMySQLExplainTraditionalJSONActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLExplainTraditionalJSONAction not implemented") } - func (UnimplementedActionsServer) StartMySQLShowCreateTableAction(context.Context, *StartMySQLShowCreateTableActionRequest) (*StartMySQLShowCreateTableActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLShowCreateTableAction not implemented") } - func (UnimplementedActionsServer) StartMySQLShowTableStatusAction(context.Context, *StartMySQLShowTableStatusActionRequest) (*StartMySQLShowTableStatusActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLShowTableStatusAction not implemented") } - func (UnimplementedActionsServer) StartMySQLShowIndexAction(context.Context, *StartMySQLShowIndexActionRequest) (*StartMySQLShowIndexActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLShowIndexAction not implemented") } - func (UnimplementedActionsServer) StartPostgreSQLShowCreateTableAction(context.Context, *StartPostgreSQLShowCreateTableActionRequest) (*StartPostgreSQLShowCreateTableActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPostgreSQLShowCreateTableAction not implemented") } - func (UnimplementedActionsServer) StartPostgreSQLShowIndexAction(context.Context, *StartPostgreSQLShowIndexActionRequest) (*StartPostgreSQLShowIndexActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPostgreSQLShowIndexAction not implemented") } - func (UnimplementedActionsServer) StartMongoDBExplainAction(context.Context, *StartMongoDBExplainActionRequest) (*StartMongoDBExplainActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMongoDBExplainAction not implemented") } - func (UnimplementedActionsServer) StartPTSummaryAction(context.Context, *StartPTSummaryActionRequest) (*StartPTSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTSummaryAction not implemented") } - func (UnimplementedActionsServer) StartPTPgSummaryAction(context.Context, *StartPTPgSummaryActionRequest) (*StartPTPgSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTPgSummaryAction not implemented") } - func (UnimplementedActionsServer) StartPTMongoDBSummaryAction(context.Context, *StartPTMongoDBSummaryActionRequest) (*StartPTMongoDBSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTMongoDBSummaryAction not implemented") } - func (UnimplementedActionsServer) StartPTMySQLSummaryAction(context.Context, *StartPTMySQLSummaryActionRequest) (*StartPTMySQLSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTMySQLSummaryAction not implemented") } - func (UnimplementedActionsServer) CancelAction(context.Context, *CancelActionRequest) (*CancelActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelAction not implemented") } diff --git a/api/managementpb/alerting/alerting.pb.go b/api/managementpb/alerting/alerting.pb.go index 3f696d9faa..86610f8f9b 100644 --- a/api/managementpb/alerting/alerting.pb.go +++ b/api/managementpb/alerting/alerting.pb.go @@ -7,17 +7,15 @@ package alertingv1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" + managementpb "github.com/percona/pmm/api/managementpb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - - managementpb "github.com/percona/pmm/api/managementpb" + reflect "reflect" + sync "sync" ) const ( @@ -1598,43 +1596,40 @@ func file_managementpb_alerting_alerting_proto_rawDescGZIP() []byte { return file_managementpb_alerting_alerting_proto_rawDescData } -var ( - file_managementpb_alerting_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_managementpb_alerting_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) - file_managementpb_alerting_alerting_proto_goTypes = []interface{}{ - (TemplateSource)(0), // 0: alerting.v1.TemplateSource - (FilterType)(0), // 1: alerting.v1.FilterType - (*BoolParamDefinition)(nil), // 2: alerting.v1.BoolParamDefinition - (*FloatParamDefinition)(nil), // 3: alerting.v1.FloatParamDefinition - (*StringParamDefinition)(nil), // 4: alerting.v1.StringParamDefinition - (*ParamDefinition)(nil), // 5: alerting.v1.ParamDefinition - (*Template)(nil), // 6: alerting.v1.Template - (*ListTemplatesRequest)(nil), // 7: alerting.v1.ListTemplatesRequest - (*ListTemplatesResponse)(nil), // 8: alerting.v1.ListTemplatesResponse - (*CreateTemplateRequest)(nil), // 9: alerting.v1.CreateTemplateRequest - (*CreateTemplateResponse)(nil), // 10: alerting.v1.CreateTemplateResponse - (*UpdateTemplateRequest)(nil), // 11: alerting.v1.UpdateTemplateRequest - (*UpdateTemplateResponse)(nil), // 12: alerting.v1.UpdateTemplateResponse - (*DeleteTemplateRequest)(nil), // 13: alerting.v1.DeleteTemplateRequest - (*DeleteTemplateResponse)(nil), // 14: alerting.v1.DeleteTemplateResponse - (*Filter)(nil), // 15: alerting.v1.Filter - (*ParamValue)(nil), // 16: alerting.v1.ParamValue - (*CreateRuleRequest)(nil), // 17: alerting.v1.CreateRuleRequest - (*CreateRuleResponse)(nil), // 18: alerting.v1.CreateRuleResponse - nil, // 19: alerting.v1.Template.LabelsEntry - nil, // 20: alerting.v1.Template.AnnotationsEntry - nil, // 21: alerting.v1.CreateRuleRequest.CustomLabelsEntry - (managementpb.BooleanFlag)(0), // 22: managementpb.BooleanFlag - (ParamUnit)(0), // 23: alerting.v1.ParamUnit - (ParamType)(0), // 24: alerting.v1.ParamType - (*durationpb.Duration)(nil), // 25: google.protobuf.Duration - (managementpb.Severity)(0), // 26: management.Severity - (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp - (*managementpb.PageParams)(nil), // 28: management.PageParams - (*managementpb.PageTotals)(nil), // 29: management.PageTotals - } -) - +var file_managementpb_alerting_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_managementpb_alerting_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_managementpb_alerting_alerting_proto_goTypes = []interface{}{ + (TemplateSource)(0), // 0: alerting.v1.TemplateSource + (FilterType)(0), // 1: alerting.v1.FilterType + (*BoolParamDefinition)(nil), // 2: alerting.v1.BoolParamDefinition + (*FloatParamDefinition)(nil), // 3: alerting.v1.FloatParamDefinition + (*StringParamDefinition)(nil), // 4: alerting.v1.StringParamDefinition + (*ParamDefinition)(nil), // 5: alerting.v1.ParamDefinition + (*Template)(nil), // 6: alerting.v1.Template + (*ListTemplatesRequest)(nil), // 7: alerting.v1.ListTemplatesRequest + (*ListTemplatesResponse)(nil), // 8: alerting.v1.ListTemplatesResponse + (*CreateTemplateRequest)(nil), // 9: alerting.v1.CreateTemplateRequest + (*CreateTemplateResponse)(nil), // 10: alerting.v1.CreateTemplateResponse + (*UpdateTemplateRequest)(nil), // 11: alerting.v1.UpdateTemplateRequest + (*UpdateTemplateResponse)(nil), // 12: alerting.v1.UpdateTemplateResponse + (*DeleteTemplateRequest)(nil), // 13: alerting.v1.DeleteTemplateRequest + (*DeleteTemplateResponse)(nil), // 14: alerting.v1.DeleteTemplateResponse + (*Filter)(nil), // 15: alerting.v1.Filter + (*ParamValue)(nil), // 16: alerting.v1.ParamValue + (*CreateRuleRequest)(nil), // 17: alerting.v1.CreateRuleRequest + (*CreateRuleResponse)(nil), // 18: alerting.v1.CreateRuleResponse + nil, // 19: alerting.v1.Template.LabelsEntry + nil, // 20: alerting.v1.Template.AnnotationsEntry + nil, // 21: alerting.v1.CreateRuleRequest.CustomLabelsEntry + (managementpb.BooleanFlag)(0), // 22: managementpb.BooleanFlag + (ParamUnit)(0), // 23: alerting.v1.ParamUnit + (ParamType)(0), // 24: alerting.v1.ParamType + (*durationpb.Duration)(nil), // 25: google.protobuf.Duration + (managementpb.Severity)(0), // 26: management.Severity + (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp + (*managementpb.PageParams)(nil), // 28: management.PageParams + (*managementpb.PageTotals)(nil), // 29: management.PageTotals +} var file_managementpb_alerting_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.BoolParamDefinition.default:type_name -> managementpb.BooleanFlag 23, // 1: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit diff --git a/api/managementpb/alerting/alerting.pb.gw.go b/api/managementpb/alerting/alerting.pb.gw.go index 46c09f2214..bc2915b9de 100644 --- a/api/managementpb/alerting/alerting.pb.gw.go +++ b/api/managementpb/alerting/alerting.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Alerting_ListTemplates_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListTemplatesRequest @@ -47,6 +45,7 @@ func request_Alerting_ListTemplates_0(ctx context.Context, marshaler runtime.Mar msg, err := client.ListTemplates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerting_ListTemplates_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Alerting_ListTemplates_0(ctx context.Context, marshaler runti msg, err := server.ListTemplates(ctx, &protoReq) return msg, metadata, err + } func request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runtime.Ma msg, err := client.CreateTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runt msg, err := server.CreateTemplate(ctx, &protoReq) return msg, metadata, err + } func request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runtime.Ma msg, err := client.UpdateTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runt msg, err := server.UpdateTemplate(ctx, &protoReq) return msg, metadata, err + } func request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runtime.Ma msg, err := client.DeleteTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runt msg, err := server.DeleteTemplate(ctx, &protoReq) return msg, metadata, err + } func request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.CreateRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime. msg, err := server.CreateRule(ctx, &protoReq) return msg, metadata, err + } // RegisterAlertingHandlerServer registers the http handlers for service Alerting to "mux". @@ -198,6 +206,7 @@ func local_request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAlertingHandlerFromEndpoint instead. func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertingServer) error { + mux.Handle("POST", pattern_Alerting_ListTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -220,6 +229,7 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_ListTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_CreateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -244,6 +254,7 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_CreateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_UpdateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -268,6 +279,7 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_UpdateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_DeleteTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -292,6 +304,7 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_DeleteTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_CreateRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -316,6 +329,7 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_CreateRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -358,6 +372,7 @@ func RegisterAlertingHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AlertingClient" to call the correct interceptors. func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertingClient) error { + mux.Handle("POST", pattern_Alerting_ListTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -377,6 +392,7 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_ListTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_CreateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -398,6 +414,7 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_CreateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_UpdateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -419,6 +436,7 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_UpdateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_DeleteTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -440,6 +458,7 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_DeleteTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerting_CreateRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -461,6 +480,7 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_CreateRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/alerting/alerting.validator.pb.go b/api/managementpb/alerting/alerting.validator.pb.go index 89effe6e7e..dff0e2905e 100644 --- a/api/managementpb/alerting/alerting.validator.pb.go +++ b/api/managementpb/alerting/alerting.validator.pb.go @@ -6,36 +6,29 @@ package alertingv1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" _ "google.golang.org/protobuf/types/known/timestamppb" - _ "github.com/percona/pmm/api/managementpb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *BoolParamDefinition) Validate() error { return nil } - func (this *FloatParamDefinition) Validate() error { return nil } - func (this *StringParamDefinition) Validate() error { return nil } - func (this *ParamDefinition) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) @@ -66,7 +59,6 @@ func (this *ParamDefinition) Validate() error { } return nil } - func (this *Template) Validate() error { for _, item := range this.Params { if item != nil { @@ -89,7 +81,6 @@ func (this *Template) Validate() error { } return nil } - func (this *ListTemplatesRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -98,7 +89,6 @@ func (this *ListTemplatesRequest) Validate() error { } return nil } - func (this *ListTemplatesResponse) Validate() error { for _, item := range this.Templates { if item != nil { @@ -114,18 +104,15 @@ func (this *ListTemplatesResponse) Validate() error { } return nil } - func (this *CreateTemplateRequest) Validate() error { if this.Yaml == "" { return github_com_mwitkow_go_proto_validators.FieldError("Yaml", fmt.Errorf(`value '%v' must not be an empty string`, this.Yaml)) } return nil } - func (this *CreateTemplateResponse) Validate() error { return nil } - func (this *UpdateTemplateRequest) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) @@ -135,33 +122,27 @@ func (this *UpdateTemplateRequest) Validate() error { } return nil } - func (this *UpdateTemplateResponse) Validate() error { return nil } - func (this *DeleteTemplateRequest) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) } return nil } - func (this *DeleteTemplateResponse) Validate() error { return nil } - func (this *Filter) Validate() error { return nil } - func (this *ParamValue) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) } return nil } - func (this *CreateRuleRequest) Validate() error { for _, item := range this.Params { if item != nil { @@ -185,7 +166,6 @@ func (this *CreateRuleRequest) Validate() error { } return nil } - func (this *CreateRuleResponse) Validate() error { return nil } diff --git a/api/managementpb/alerting/alerting_grpc.pb.go b/api/managementpb/alerting/alerting_grpc.pb.go index 351225ade9..5ace022939 100644 --- a/api/managementpb/alerting/alerting_grpc.pb.go +++ b/api/managementpb/alerting/alerting_grpc.pb.go @@ -8,7 +8,6 @@ package alertingv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -106,24 +105,21 @@ type AlertingServer interface { } // UnimplementedAlertingServer must be embedded to have forward compatible implementations. -type UnimplementedAlertingServer struct{} +type UnimplementedAlertingServer struct { +} func (UnimplementedAlertingServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTemplates not implemented") } - func (UnimplementedAlertingServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTemplate not implemented") } - func (UnimplementedAlertingServer) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTemplate not implemented") } - func (UnimplementedAlertingServer) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTemplate not implemented") } - func (UnimplementedAlertingServer) CreateRule(context.Context, *CreateRuleRequest) (*CreateRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateRule not implemented") } diff --git a/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go b/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go index 2ed45ff356..0a8a84af09 100644 --- a/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go @@ -60,6 +60,7 @@ CreateRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateRuleParams struct { + // Body. Body CreateRuleBody @@ -129,6 +130,7 @@ func (o *CreateRuleParams) SetBody(body CreateRuleBody) { // WriteToRequest writes these params to a swagger request func (o *CreateRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/create_rule_responses.go b/api/managementpb/alerting/json/client/alerting/create_rule_responses.go index 645d3f8b71..635bb12234 100644 --- a/api/managementpb/alerting/json/client/alerting/create_rule_responses.go +++ b/api/managementpb/alerting/json/client/alerting/create_rule_responses.go @@ -62,12 +62,12 @@ type CreateRuleOK struct { func (o *CreateRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Rules/Create][%d] createRuleOk %+v", 200, o.Payload) } - func (o *CreateRuleOK) GetPayload() interface{} { return o.Payload } func (o *CreateRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *CreateRuleDefault) Code() int { func (o *CreateRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Rules/Create][%d] CreateRule default %+v", o._statusCode, o.Payload) } - func (o *CreateRuleDefault) GetPayload() *CreateRuleDefaultBody { return o.Payload } func (o *CreateRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateRuleDefaultBody) // response payload @@ -123,6 +123,7 @@ CreateRuleBody create rule body swagger:model CreateRuleBody */ type CreateRuleBody struct { + // Template name. TemplateName string `json:"template_name,omitempty"` @@ -308,7 +309,9 @@ func (o *CreateRuleBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *CreateRuleBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Params); i++ { + if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -319,13 +322,16 @@ func (o *CreateRuleBody) contextValidateParams(ctx context.Context, formats strf return err } } + } return nil } func (o *CreateRuleBody) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Filters); i++ { + if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +342,7 @@ func (o *CreateRuleBody) contextValidateFilters(ctx context.Context, formats str return err } } + } return nil @@ -364,6 +371,7 @@ CreateRuleDefaultBody create rule default body swagger:model CreateRuleDefaultBody */ type CreateRuleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -429,7 +437,9 @@ func (o *CreateRuleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *CreateRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -440,6 +450,7 @@ func (o *CreateRuleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -468,6 +479,7 @@ CreateRuleDefaultBodyDetailsItems0 create rule default body details items0 swagger:model CreateRuleDefaultBodyDetailsItems0 */ type CreateRuleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -505,6 +517,7 @@ CreateRuleParamsBodyFiltersItems0 Filter represents a single filter condition. swagger:model CreateRuleParamsBodyFiltersItems0 */ type CreateRuleParamsBodyFiltersItems0 struct { + // FilterType represents filter matching type. // Enum: [FILTER_TYPE_INVALID MATCH MISMATCH] Type *string `json:"type,omitempty"` @@ -603,6 +616,7 @@ CreateRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter v swagger:model CreateRuleParamsBodyParamsItems0 */ type CreateRuleParamsBodyParamsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/alerting/json/client/alerting/create_template_parameters.go b/api/managementpb/alerting/json/client/alerting/create_template_parameters.go index 02a03694ee..b0f1301962 100644 --- a/api/managementpb/alerting/json/client/alerting/create_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/create_template_parameters.go @@ -60,6 +60,7 @@ CreateTemplateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateTemplateParams struct { + // Body. Body CreateTemplateBody @@ -129,6 +130,7 @@ func (o *CreateTemplateParams) SetBody(body CreateTemplateBody) { // WriteToRequest writes these params to a swagger request func (o *CreateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/create_template_responses.go b/api/managementpb/alerting/json/client/alerting/create_template_responses.go index b7f4dd8f7d..c9761f6fff 100644 --- a/api/managementpb/alerting/json/client/alerting/create_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/create_template_responses.go @@ -60,12 +60,12 @@ type CreateTemplateOK struct { func (o *CreateTemplateOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Create][%d] createTemplateOk %+v", 200, o.Payload) } - func (o *CreateTemplateOK) GetPayload() interface{} { return o.Payload } func (o *CreateTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CreateTemplateDefault) Code() int { func (o *CreateTemplateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Create][%d] CreateTemplate default %+v", o._statusCode, o.Payload) } - func (o *CreateTemplateDefault) GetPayload() *CreateTemplateDefaultBody { return o.Payload } func (o *CreateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateTemplateDefaultBody) // response payload @@ -121,6 +121,7 @@ CreateTemplateBody create template body swagger:model CreateTemplateBody */ type CreateTemplateBody struct { + // YAML (or JSON) template file content. Yaml string `json:"yaml,omitempty"` } @@ -158,6 +159,7 @@ CreateTemplateDefaultBody create template default body swagger:model CreateTemplateDefaultBody */ type CreateTemplateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *CreateTemplateDefaultBody) ContextValidate(ctx context.Context, formats } func (o *CreateTemplateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *CreateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -262,6 +267,7 @@ CreateTemplateDefaultBodyDetailsItems0 create template default body details item swagger:model CreateTemplateDefaultBodyDetailsItems0 */ type CreateTemplateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go b/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go index ba1bfb54cd..9a5fb37a1f 100644 --- a/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go @@ -60,6 +60,7 @@ DeleteTemplateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteTemplateParams struct { + // Body. Body DeleteTemplateBody @@ -129,6 +130,7 @@ func (o *DeleteTemplateParams) SetBody(body DeleteTemplateBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/delete_template_responses.go b/api/managementpb/alerting/json/client/alerting/delete_template_responses.go index 07d858421d..83a429dc72 100644 --- a/api/managementpb/alerting/json/client/alerting/delete_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/delete_template_responses.go @@ -60,12 +60,12 @@ type DeleteTemplateOK struct { func (o *DeleteTemplateOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Delete][%d] deleteTemplateOk %+v", 200, o.Payload) } - func (o *DeleteTemplateOK) GetPayload() interface{} { return o.Payload } func (o *DeleteTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DeleteTemplateDefault) Code() int { func (o *DeleteTemplateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Delete][%d] DeleteTemplate default %+v", o._statusCode, o.Payload) } - func (o *DeleteTemplateDefault) GetPayload() *DeleteTemplateDefaultBody { return o.Payload } func (o *DeleteTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteTemplateDefaultBody) // response payload @@ -121,6 +121,7 @@ DeleteTemplateBody delete template body swagger:model DeleteTemplateBody */ type DeleteTemplateBody struct { + // name Name string `json:"name,omitempty"` } @@ -158,6 +159,7 @@ DeleteTemplateDefaultBody delete template default body swagger:model DeleteTemplateDefaultBody */ type DeleteTemplateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *DeleteTemplateDefaultBody) ContextValidate(ctx context.Context, formats } func (o *DeleteTemplateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *DeleteTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -262,6 +267,7 @@ DeleteTemplateDefaultBodyDetailsItems0 delete template default body details item swagger:model DeleteTemplateDefaultBodyDetailsItems0 */ type DeleteTemplateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go b/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go index c8054173a2..5d959c0791 100644 --- a/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go @@ -60,6 +60,7 @@ ListTemplatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListTemplatesParams struct { + // Body. Body ListTemplatesBody @@ -129,6 +130,7 @@ func (o *ListTemplatesParams) SetBody(body ListTemplatesBody) { // WriteToRequest writes these params to a swagger request func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/list_templates_responses.go b/api/managementpb/alerting/json/client/alerting/list_templates_responses.go index cee8c814a3..8b4b7e1b9c 100644 --- a/api/managementpb/alerting/json/client/alerting/list_templates_responses.go +++ b/api/managementpb/alerting/json/client/alerting/list_templates_responses.go @@ -62,12 +62,12 @@ type ListTemplatesOK struct { func (o *ListTemplatesOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/List][%d] listTemplatesOk %+v", 200, o.Payload) } - func (o *ListTemplatesOK) GetPayload() *ListTemplatesOKBody { return o.Payload } func (o *ListTemplatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListTemplatesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListTemplatesDefault) Code() int { func (o *ListTemplatesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/List][%d] ListTemplates default %+v", o._statusCode, o.Payload) } - func (o *ListTemplatesDefault) GetPayload() *ListTemplatesDefaultBody { return o.Payload } func (o *ListTemplatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListTemplatesDefaultBody) // response payload @@ -125,6 +125,7 @@ ListTemplatesBody list templates body swagger:model ListTemplatesBody */ type ListTemplatesBody struct { + // If true, template files will be re-read from disk. Reload bool `json:"reload,omitempty"` @@ -180,6 +181,7 @@ func (o *ListTemplatesBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ListTemplatesBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { + if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ ListTemplatesDefaultBody list templates default body swagger:model ListTemplatesDefaultBody */ type ListTemplatesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *ListTemplatesDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListTemplatesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *ListTemplatesDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -321,6 +327,7 @@ ListTemplatesDefaultBodyDetailsItems0 list templates default body details items0 swagger:model ListTemplatesDefaultBodyDetailsItems0 */ type ListTemplatesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ ListTemplatesOKBody list templates OK body swagger:model ListTemplatesOKBody */ type ListTemplatesOKBody struct { + // templates Templates []*ListTemplatesOKBodyTemplatesItems0 `json:"templates"` @@ -447,7 +455,9 @@ func (o *ListTemplatesOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ListTemplatesOKBody) contextValidateTemplates(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Templates); i++ { + if o.Templates[i] != nil { if err := o.Templates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -458,12 +468,14 @@ func (o *ListTemplatesOKBody) contextValidateTemplates(ctx context.Context, form return err } } + } return nil } func (o *ListTemplatesOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { + if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -501,6 +513,7 @@ ListTemplatesOKBodyTemplatesItems0 Template represents Alert Template that is us swagger:model ListTemplatesOKBodyTemplatesItems0 */ type ListTemplatesOKBodyTemplatesItems0 struct { + // Machine-readable name (ID). Name string `json:"name,omitempty"` @@ -736,7 +749,9 @@ func (o *ListTemplatesOKBodyTemplatesItems0) ContextValidate(ctx context.Context } func (o *ListTemplatesOKBodyTemplatesItems0) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Params); i++ { + if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -747,6 +762,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0) contextValidateParams(ctx context.C return err } } + } return nil @@ -775,6 +791,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0 ParamDefinition represents a sing swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0 */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -1006,6 +1023,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) ContextValidate(ctx con } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { + if o.Bool != nil { if err := o.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1021,6 +1039,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { + if o.Float != nil { if err := o.Float.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1036,6 +1055,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ct } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { + if o.String != nil { if err := o.String.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1073,6 +1093,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool BoolParamDefinition represent swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool struct { + // BooleanFlag represent a command to set some boolean property to true, // to false, or avoid changing that property. // @@ -1170,6 +1191,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Float FloatParamDefinition represe swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Float */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Float struct { + // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -1222,6 +1244,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0String StringParamDefinition repre swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0String */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0String struct { + // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -1262,6 +1285,7 @@ ListTemplatesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListTemplatesOKBodyTotals */ type ListTemplatesOKBodyTotals struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -1302,6 +1326,7 @@ ListTemplatesParamsBodyPageParams PageParams represents page request parameters swagger:model ListTemplatesParamsBodyPageParams */ type ListTemplatesParamsBodyPageParams struct { + // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/alerting/json/client/alerting/update_template_parameters.go b/api/managementpb/alerting/json/client/alerting/update_template_parameters.go index 9fa2d67282..2b82bcdeed 100644 --- a/api/managementpb/alerting/json/client/alerting/update_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/update_template_parameters.go @@ -60,6 +60,7 @@ UpdateTemplateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateTemplateParams struct { + // Body. Body UpdateTemplateBody @@ -129,6 +130,7 @@ func (o *UpdateTemplateParams) SetBody(body UpdateTemplateBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/update_template_responses.go b/api/managementpb/alerting/json/client/alerting/update_template_responses.go index 3d051b737b..d9e8b83554 100644 --- a/api/managementpb/alerting/json/client/alerting/update_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/update_template_responses.go @@ -60,12 +60,12 @@ type UpdateTemplateOK struct { func (o *UpdateTemplateOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Update][%d] updateTemplateOk %+v", 200, o.Payload) } - func (o *UpdateTemplateOK) GetPayload() interface{} { return o.Payload } func (o *UpdateTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UpdateTemplateDefault) Code() int { func (o *UpdateTemplateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Update][%d] UpdateTemplate default %+v", o._statusCode, o.Payload) } - func (o *UpdateTemplateDefault) GetPayload() *UpdateTemplateDefaultBody { return o.Payload } func (o *UpdateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateTemplateDefaultBody) // response payload @@ -121,6 +121,7 @@ UpdateTemplateBody update template body swagger:model UpdateTemplateBody */ type UpdateTemplateBody struct { + // Machine-readable name (ID). Name string `json:"name,omitempty"` @@ -161,6 +162,7 @@ UpdateTemplateDefaultBody update template default body swagger:model UpdateTemplateDefaultBody */ type UpdateTemplateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *UpdateTemplateDefaultBody) ContextValidate(ctx context.Context, formats } func (o *UpdateTemplateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *UpdateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -265,6 +270,7 @@ UpdateTemplateDefaultBodyDetailsItems0 update template default body details item swagger:model UpdateTemplateDefaultBodyDetailsItems0 */ type UpdateTemplateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/alerting/params.pb.go b/api/managementpb/alerting/params.pb.go index 7b1807213a..9caff2bc23 100644 --- a/api/managementpb/alerting/params.pb.go +++ b/api/managementpb/alerting/params.pb.go @@ -7,11 +7,10 @@ package alertingv1 import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -167,14 +166,11 @@ func file_managementpb_alerting_params_proto_rawDescGZIP() []byte { return file_managementpb_alerting_params_proto_rawDescData } -var ( - file_managementpb_alerting_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_managementpb_alerting_params_proto_goTypes = []interface{}{ - (ParamUnit)(0), // 0: alerting.v1.ParamUnit - (ParamType)(0), // 1: alerting.v1.ParamType - } -) - +var file_managementpb_alerting_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_managementpb_alerting_params_proto_goTypes = []interface{}{ + (ParamUnit)(0), // 0: alerting.v1.ParamUnit + (ParamType)(0), // 1: alerting.v1.ParamType +} var file_managementpb_alerting_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/alerting/params.validator.pb.go b/api/managementpb/alerting/params.validator.pb.go index dc3ebf3e63..e0aae2356b 100644 --- a/api/managementpb/alerting/params.validator.pb.go +++ b/api/managementpb/alerting/params.validator.pb.go @@ -6,13 +6,10 @@ package alertingv1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/managementpb/annotation.pb.go b/api/managementpb/annotation.pb.go index a8dc49bbd3..c0bd0921f5 100644 --- a/api/managementpb/annotation.pb.go +++ b/api/managementpb/annotation.pb.go @@ -7,14 +7,13 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -198,14 +197,11 @@ func file_managementpb_annotation_proto_rawDescGZIP() []byte { return file_managementpb_annotation_proto_rawDescData } -var ( - file_managementpb_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_managementpb_annotation_proto_goTypes = []interface{}{ - (*AddAnnotationRequest)(nil), // 0: management.AddAnnotationRequest - (*AddAnnotationResponse)(nil), // 1: management.AddAnnotationResponse - } -) - +var file_managementpb_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_managementpb_annotation_proto_goTypes = []interface{}{ + (*AddAnnotationRequest)(nil), // 0: management.AddAnnotationRequest + (*AddAnnotationResponse)(nil), // 1: management.AddAnnotationResponse +} var file_managementpb_annotation_proto_depIdxs = []int32{ 0, // 0: management.Annotation.AddAnnotation:input_type -> management.AddAnnotationRequest 1, // 1: management.Annotation.AddAnnotation:output_type -> management.AddAnnotationResponse diff --git a/api/managementpb/annotation.pb.gw.go b/api/managementpb/annotation.pb.gw.go index ef9049548f..cd2cf1f3bd 100644 --- a/api/managementpb/annotation.pb.gw.go +++ b/api/managementpb/annotation.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Annotation_AddAnnotation_0(ctx context.Context, marshaler runtime.Marshaler, client AnnotationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddAnnotationRequest @@ -47,6 +45,7 @@ func request_Annotation_AddAnnotation_0(ctx context.Context, marshaler runtime.M msg, err := client.AddAnnotation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Annotation_AddAnnotation_0(ctx context.Context, marshaler runtime.Marshaler, server AnnotationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Annotation_AddAnnotation_0(ctx context.Context, marshaler run msg, err := server.AddAnnotation(ctx, &protoReq) return msg, metadata, err + } // RegisterAnnotationHandlerServer registers the http handlers for service Annotation to "mux". @@ -70,6 +70,7 @@ func local_request_Annotation_AddAnnotation_0(ctx context.Context, marshaler run // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAnnotationHandlerFromEndpoint instead. func RegisterAnnotationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnnotationServer) error { + mux.Handle("POST", pattern_Annotation_AddAnnotation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterAnnotationHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Annotation_AddAnnotation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterAnnotationHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AnnotationClient" to call the correct interceptors. func RegisterAnnotationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnnotationClient) error { + mux.Handle("POST", pattern_Annotation_AddAnnotation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterAnnotationHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Annotation_AddAnnotation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_Annotation_AddAnnotation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Annotations", "Add"}, "")) +var ( + pattern_Annotation_AddAnnotation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Annotations", "Add"}, "")) +) -var forward_Annotation_AddAnnotation_0 = runtime.ForwardResponseMessage +var ( + forward_Annotation_AddAnnotation_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/annotation.validator.pb.go b/api/managementpb/annotation.validator.pb.go index 99793fab68..faca3eabcc 100644 --- a/api/managementpb/annotation.validator.pb.go +++ b/api/managementpb/annotation.validator.pb.go @@ -6,20 +6,17 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddAnnotationRequest) Validate() error { if this.Text == "" { @@ -27,7 +24,6 @@ func (this *AddAnnotationRequest) Validate() error { } return nil } - func (this *AddAnnotationResponse) Validate() error { return nil } diff --git a/api/managementpb/annotation_grpc.pb.go b/api/managementpb/annotation_grpc.pb.go index 2e5e6f2f7b..1fdbe17d21 100644 --- a/api/managementpb/annotation_grpc.pb.go +++ b/api/managementpb/annotation_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type AnnotationServer interface { } // UnimplementedAnnotationServer must be embedded to have forward compatible implementations. -type UnimplementedAnnotationServer struct{} +type UnimplementedAnnotationServer struct { +} func (UnimplementedAnnotationServer) AddAnnotation(context.Context, *AddAnnotationRequest) (*AddAnnotationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAnnotation not implemented") diff --git a/api/managementpb/azure/azure.pb.go b/api/managementpb/azure/azure.pb.go index 1b80bc550a..50795d2720 100644 --- a/api/managementpb/azure/azure.pb.go +++ b/api/managementpb/azure/azure.pb.go @@ -7,13 +7,12 @@ package azurev1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -826,20 +825,17 @@ func file_managementpb_azure_azure_proto_rawDescGZIP() []byte { return file_managementpb_azure_azure_proto_rawDescData } -var ( - file_managementpb_azure_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_azure_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_managementpb_azure_azure_proto_goTypes = []interface{}{ - (DiscoverAzureDatabaseType)(0), // 0: azure.v1beta1.DiscoverAzureDatabaseType - (*DiscoverAzureDatabaseRequest)(nil), // 1: azure.v1beta1.DiscoverAzureDatabaseRequest - (*DiscoverAzureDatabaseInstance)(nil), // 2: azure.v1beta1.DiscoverAzureDatabaseInstance - (*DiscoverAzureDatabaseResponse)(nil), // 3: azure.v1beta1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseRequest)(nil), // 4: azure.v1beta1.AddAzureDatabaseRequest - (*AddAzureDatabaseResponse)(nil), // 5: azure.v1beta1.AddAzureDatabaseResponse - nil, // 6: azure.v1beta1.AddAzureDatabaseRequest.CustomLabelsEntry - } -) - +var file_managementpb_azure_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_azure_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_managementpb_azure_azure_proto_goTypes = []interface{}{ + (DiscoverAzureDatabaseType)(0), // 0: azure.v1beta1.DiscoverAzureDatabaseType + (*DiscoverAzureDatabaseRequest)(nil), // 1: azure.v1beta1.DiscoverAzureDatabaseRequest + (*DiscoverAzureDatabaseInstance)(nil), // 2: azure.v1beta1.DiscoverAzureDatabaseInstance + (*DiscoverAzureDatabaseResponse)(nil), // 3: azure.v1beta1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseRequest)(nil), // 4: azure.v1beta1.AddAzureDatabaseRequest + (*AddAzureDatabaseResponse)(nil), // 5: azure.v1beta1.AddAzureDatabaseResponse + nil, // 6: azure.v1beta1.AddAzureDatabaseRequest.CustomLabelsEntry +} var file_managementpb_azure_azure_proto_depIdxs = []int32{ 0, // 0: azure.v1beta1.DiscoverAzureDatabaseInstance.type:type_name -> azure.v1beta1.DiscoverAzureDatabaseType 2, // 1: azure.v1beta1.DiscoverAzureDatabaseResponse.azure_database_instance:type_name -> azure.v1beta1.DiscoverAzureDatabaseInstance diff --git a/api/managementpb/azure/azure.pb.gw.go b/api/managementpb/azure/azure.pb.gw.go index 30c6d2b5d2..0d6bbeb811 100644 --- a/api/managementpb/azure/azure.pb.gw.go +++ b/api/managementpb/azure/azure.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, client AzureDatabaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq DiscoverAzureDatabaseRequest @@ -47,6 +45,7 @@ func request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, marshale msg, err := client.DiscoverAzureDatabase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, server AzureDatabaseServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, ma msg, err := server.DiscoverAzureDatabase(ctx, &protoReq) return msg, metadata, err + } func request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, client AzureDatabaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshaler run msg, err := client.AddAzureDatabase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, server AzureDatabaseServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshal msg, err := server.AddAzureDatabase(ctx, &protoReq) return msg, metadata, err + } // RegisterAzureDatabaseHandlerServer registers the http handlers for service AzureDatabase to "mux". @@ -102,6 +104,7 @@ func local_request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshal // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAzureDatabaseHandlerFromEndpoint instead. func RegisterAzureDatabaseHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AzureDatabaseServer) error { + mux.Handle("POST", pattern_AzureDatabase_DiscoverAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -124,6 +127,7 @@ func RegisterAzureDatabaseHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_DiscoverAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_AzureDatabase_AddAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -148,6 +152,7 @@ func RegisterAzureDatabaseHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_AddAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -190,6 +195,7 @@ func RegisterAzureDatabaseHandler(ctx context.Context, mux *runtime.ServeMux, co // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AzureDatabaseClient" to call the correct interceptors. func RegisterAzureDatabaseHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AzureDatabaseClient) error { + mux.Handle("POST", pattern_AzureDatabase_DiscoverAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -209,6 +215,7 @@ func RegisterAzureDatabaseHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_DiscoverAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_AzureDatabase_AddAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -230,6 +237,7 @@ func RegisterAzureDatabaseHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_AddAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/azure/azure.validator.pb.go b/api/managementpb/azure/azure.validator.pb.go index b0a3d93a8e..61ffccb202 100644 --- a/api/managementpb/azure/azure.validator.pb.go +++ b/api/managementpb/azure/azure.validator.pb.go @@ -6,19 +6,16 @@ package azurev1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *DiscoverAzureDatabaseRequest) Validate() error { if this.AzureClientId == "" { @@ -35,11 +32,9 @@ func (this *DiscoverAzureDatabaseRequest) Validate() error { } return nil } - func (this *DiscoverAzureDatabaseInstance) Validate() error { return nil } - func (this *DiscoverAzureDatabaseResponse) Validate() error { for _, item := range this.AzureDatabaseInstance { if item != nil { @@ -50,7 +45,6 @@ func (this *DiscoverAzureDatabaseResponse) Validate() error { } return nil } - func (this *AddAzureDatabaseRequest) Validate() error { if this.Region == "" { return github_com_mwitkow_go_proto_validators.FieldError("Region", fmt.Errorf(`value '%v' must not be an empty string`, this.Region)) @@ -85,7 +79,6 @@ func (this *AddAzureDatabaseRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddAzureDatabaseResponse) Validate() error { return nil } diff --git a/api/managementpb/azure/azure_grpc.pb.go b/api/managementpb/azure/azure_grpc.pb.go index 39d3da81aa..dd5dc8376f 100644 --- a/api/managementpb/azure/azure_grpc.pb.go +++ b/api/managementpb/azure/azure_grpc.pb.go @@ -8,7 +8,6 @@ package azurev1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -67,12 +66,12 @@ type AzureDatabaseServer interface { } // UnimplementedAzureDatabaseServer must be embedded to have forward compatible implementations. -type UnimplementedAzureDatabaseServer struct{} +type UnimplementedAzureDatabaseServer struct { +} func (UnimplementedAzureDatabaseServer) DiscoverAzureDatabase(context.Context, *DiscoverAzureDatabaseRequest) (*DiscoverAzureDatabaseResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DiscoverAzureDatabase not implemented") } - func (UnimplementedAzureDatabaseServer) AddAzureDatabase(context.Context, *AddAzureDatabaseRequest) (*AddAzureDatabaseResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAzureDatabase not implemented") } diff --git a/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go b/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go index 0eb4da68c3..416354a45e 100644 --- a/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go +++ b/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go @@ -60,6 +60,7 @@ AddAzureDatabaseParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddAzureDatabaseParams struct { + // Body. Body AddAzureDatabaseBody @@ -129,6 +130,7 @@ func (o *AddAzureDatabaseParams) SetBody(body AddAzureDatabaseBody) { // WriteToRequest writes these params to a swagger request func (o *AddAzureDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go b/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go index 84dff23137..e07c79a6d6 100644 --- a/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go +++ b/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go @@ -62,12 +62,12 @@ type AddAzureDatabaseOK struct { func (o *AddAzureDatabaseOK) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Add][%d] addAzureDatabaseOk %+v", 200, o.Payload) } - func (o *AddAzureDatabaseOK) GetPayload() interface{} { return o.Payload } func (o *AddAzureDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *AddAzureDatabaseDefault) Code() int { func (o *AddAzureDatabaseDefault) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Add][%d] AddAzureDatabase default %+v", o._statusCode, o.Payload) } - func (o *AddAzureDatabaseDefault) GetPayload() *AddAzureDatabaseDefaultBody { return o.Payload } func (o *AddAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAzureDatabaseDefaultBody) // response payload @@ -123,6 +123,7 @@ AddAzureDatabaseBody add azure database body swagger:model AddAzureDatabaseBody */ type AddAzureDatabaseBody struct { + // Azure database location. Region string `json:"region,omitempty"` @@ -293,6 +294,7 @@ AddAzureDatabaseDefaultBody add azure database default body swagger:model AddAzureDatabaseDefaultBody */ type AddAzureDatabaseDefaultBody struct { + // error Error string `json:"error,omitempty"` @@ -361,7 +363,9 @@ func (o *AddAzureDatabaseDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AddAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -372,6 +376,7 @@ func (o *AddAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -400,6 +405,7 @@ AddAzureDatabaseDefaultBodyDetailsItems0 add azure database default body details swagger:model AddAzureDatabaseDefaultBodyDetailsItems0 */ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { + // type url TypeURL string `json:"type_url,omitempty"` diff --git a/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go b/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go index a3d93a92e1..e3e4400c01 100644 --- a/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go +++ b/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go @@ -60,6 +60,7 @@ DiscoverAzureDatabaseParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type DiscoverAzureDatabaseParams struct { + // Body. Body DiscoverAzureDatabaseBody @@ -129,6 +130,7 @@ func (o *DiscoverAzureDatabaseParams) SetBody(body DiscoverAzureDatabaseBody) { // WriteToRequest writes these params to a swagger request func (o *DiscoverAzureDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go b/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go index 8198487041..3e32f8f17b 100644 --- a/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go +++ b/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go @@ -62,12 +62,12 @@ type DiscoverAzureDatabaseOK struct { func (o *DiscoverAzureDatabaseOK) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Discover][%d] discoverAzureDatabaseOk %+v", 200, o.Payload) } - func (o *DiscoverAzureDatabaseOK) GetPayload() *DiscoverAzureDatabaseOKBody { return o.Payload } func (o *DiscoverAzureDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverAzureDatabaseOKBody) // response payload @@ -104,12 +104,12 @@ func (o *DiscoverAzureDatabaseDefault) Code() int { func (o *DiscoverAzureDatabaseDefault) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Discover][%d] DiscoverAzureDatabase default %+v", o._statusCode, o.Payload) } - func (o *DiscoverAzureDatabaseDefault) GetPayload() *DiscoverAzureDatabaseDefaultBody { return o.Payload } func (o *DiscoverAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverAzureDatabaseDefaultBody) // response payload @@ -125,6 +125,7 @@ DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases swagger:model DiscoverAzureDatabaseBody */ type DiscoverAzureDatabaseBody struct { + // Azure client ID. AzureClientID string `json:"azure_client_id,omitempty"` @@ -171,6 +172,7 @@ DiscoverAzureDatabaseDefaultBody discover azure database default body swagger:model DiscoverAzureDatabaseDefaultBody */ type DiscoverAzureDatabaseDefaultBody struct { + // error Error string `json:"error,omitempty"` @@ -239,7 +241,9 @@ func (o *DiscoverAzureDatabaseDefaultBody) ContextValidate(ctx context.Context, } func (o *DiscoverAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -250,6 +254,7 @@ func (o *DiscoverAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -278,6 +283,7 @@ DiscoverAzureDatabaseDefaultBodyDetailsItems0 discover azure database default bo swagger:model DiscoverAzureDatabaseDefaultBodyDetailsItems0 */ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { + // type url TypeURL string `json:"type_url,omitempty"` @@ -319,6 +325,7 @@ DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databas swagger:model DiscoverAzureDatabaseOKBody */ type DiscoverAzureDatabaseOKBody struct { + // azure database instance AzureDatabaseInstance []*DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 `json:"azure_database_instance"` } @@ -378,7 +385,9 @@ func (o *DiscoverAzureDatabaseOKBody) ContextValidate(ctx context.Context, forma } func (o *DiscoverAzureDatabaseOKBody) contextValidateAzureDatabaseInstance(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.AzureDatabaseInstance); i++ { + if o.AzureDatabaseInstance[i] != nil { if err := o.AzureDatabaseInstance[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -389,6 +398,7 @@ func (o *DiscoverAzureDatabaseOKBody) contextValidateAzureDatabaseInstance(ctx c return err } } + } return nil @@ -417,6 +427,7 @@ DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 DiscoverAzureDatabaseInst swagger:model DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 */ type DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 struct { + // Azure database instance ID. InstanceID string `json:"instance_id,omitempty"` diff --git a/api/managementpb/backup/artifacts.pb.go b/api/managementpb/backup/artifacts.pb.go index f6ffe840a7..9830346639 100644 --- a/api/managementpb/backup/artifacts.pb.go +++ b/api/managementpb/backup/artifacts.pb.go @@ -7,13 +7,12 @@ package backupv1beta1 import ( - reflect "reflect" - sync "sync" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) const ( @@ -522,22 +521,19 @@ func file_managementpb_backup_artifacts_proto_rawDescGZIP() []byte { return file_managementpb_backup_artifacts_proto_rawDescData } -var ( - file_managementpb_backup_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_backup_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 5) - file_managementpb_backup_artifacts_proto_goTypes = []interface{}{ - (BackupStatus)(0), // 0: backup.v1beta1.BackupStatus - (*Artifact)(nil), // 1: backup.v1beta1.Artifact - (*ListArtifactsRequest)(nil), // 2: backup.v1beta1.ListArtifactsRequest - (*ListArtifactsResponse)(nil), // 3: backup.v1beta1.ListArtifactsResponse - (*DeleteArtifactRequest)(nil), // 4: backup.v1beta1.DeleteArtifactRequest - (*DeleteArtifactResponse)(nil), // 5: backup.v1beta1.DeleteArtifactResponse - (DataModel)(0), // 6: backup.v1beta1.DataModel - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (BackupMode)(0), // 8: backup.v1beta1.BackupMode - } -) - +var file_managementpb_backup_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_backup_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_managementpb_backup_artifacts_proto_goTypes = []interface{}{ + (BackupStatus)(0), // 0: backup.v1beta1.BackupStatus + (*Artifact)(nil), // 1: backup.v1beta1.Artifact + (*ListArtifactsRequest)(nil), // 2: backup.v1beta1.ListArtifactsRequest + (*ListArtifactsResponse)(nil), // 3: backup.v1beta1.ListArtifactsResponse + (*DeleteArtifactRequest)(nil), // 4: backup.v1beta1.DeleteArtifactRequest + (*DeleteArtifactResponse)(nil), // 5: backup.v1beta1.DeleteArtifactResponse + (DataModel)(0), // 6: backup.v1beta1.DataModel + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (BackupMode)(0), // 8: backup.v1beta1.BackupMode +} var file_managementpb_backup_artifacts_proto_depIdxs = []int32{ 6, // 0: backup.v1beta1.Artifact.data_model:type_name -> backup.v1beta1.DataModel 0, // 1: backup.v1beta1.Artifact.status:type_name -> backup.v1beta1.BackupStatus diff --git a/api/managementpb/backup/artifacts.pb.gw.go b/api/managementpb/backup/artifacts.pb.gw.go index ca3cd17335..fcb89f7b5c 100644 --- a/api/managementpb/backup/artifacts.pb.gw.go +++ b/api/managementpb/backup/artifacts.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListArtifactsRequest @@ -47,6 +45,7 @@ func request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runtime.Ma msg, err := client.ListArtifacts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runt msg, err := server.ListArtifacts(ctx, &protoReq) return msg, metadata, err + } func request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler runtime.M msg, err := client.DeleteArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler run msg, err := server.DeleteArtifact(ctx, &protoReq) return msg, metadata, err + } // RegisterArtifactsHandlerServer registers the http handlers for service Artifacts to "mux". @@ -102,6 +104,7 @@ func local_request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler run // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArtifactsHandlerFromEndpoint instead. func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactsServer) error { + mux.Handle("POST", pattern_Artifacts_ListArtifacts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -124,6 +127,7 @@ func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_ListArtifacts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Artifacts_DeleteArtifact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -148,6 +152,7 @@ func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_DeleteArtifact_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -190,6 +195,7 @@ func RegisterArtifactsHandler(ctx context.Context, mux *runtime.ServeMux, conn * // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ArtifactsClient" to call the correct interceptors. func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactsClient) error { + mux.Handle("POST", pattern_Artifacts_ListArtifacts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -209,6 +215,7 @@ func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_ListArtifacts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Artifacts_DeleteArtifact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -230,6 +237,7 @@ func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_DeleteArtifact_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/backup/artifacts.validator.pb.go b/api/managementpb/backup/artifacts.validator.pb.go index 953763345e..77e0991b02 100644 --- a/api/managementpb/backup/artifacts.validator.pb.go +++ b/api/managementpb/backup/artifacts.validator.pb.go @@ -6,19 +6,16 @@ package backupv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Artifact) Validate() error { if this.CreatedAt != nil { @@ -28,11 +25,9 @@ func (this *Artifact) Validate() error { } return nil } - func (this *ListArtifactsRequest) Validate() error { return nil } - func (this *ListArtifactsResponse) Validate() error { for _, item := range this.Artifacts { if item != nil { @@ -43,11 +38,9 @@ func (this *ListArtifactsResponse) Validate() error { } return nil } - func (this *DeleteArtifactRequest) Validate() error { return nil } - func (this *DeleteArtifactResponse) Validate() error { return nil } diff --git a/api/managementpb/backup/artifacts_grpc.pb.go b/api/managementpb/backup/artifacts_grpc.pb.go index cf412e404e..6ae392f659 100644 --- a/api/managementpb/backup/artifacts_grpc.pb.go +++ b/api/managementpb/backup/artifacts_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -67,12 +66,12 @@ type ArtifactsServer interface { } // UnimplementedArtifactsServer must be embedded to have forward compatible implementations. -type UnimplementedArtifactsServer struct{} +type UnimplementedArtifactsServer struct { +} func (UnimplementedArtifactsServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") } - func (UnimplementedArtifactsServer) DeleteArtifact(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteArtifact not implemented") } diff --git a/api/managementpb/backup/backups.pb.go b/api/managementpb/backup/backups.pb.go index 8cfc4213c9..126a958b30 100644 --- a/api/managementpb/backup/backups.pb.go +++ b/api/managementpb/backup/backups.pb.go @@ -7,19 +7,17 @@ package backupv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -1670,39 +1668,36 @@ func file_managementpb_backup_backups_proto_rawDescGZIP() []byte { return file_managementpb_backup_backups_proto_rawDescData } -var ( - file_managementpb_backup_backups_proto_msgTypes = make([]protoimpl.MessageInfo, 18) - file_managementpb_backup_backups_proto_goTypes = []interface{}{ - (*StartBackupRequest)(nil), // 0: backup.v1beta1.StartBackupRequest - (*StartBackupResponse)(nil), // 1: backup.v1beta1.StartBackupResponse - (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1beta1.ListArtifactCompatibleServicesRequest - (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1beta1.ListArtifactCompatibleServicesResponse - (*RestoreBackupRequest)(nil), // 4: backup.v1beta1.RestoreBackupRequest - (*RestoreBackupResponse)(nil), // 5: backup.v1beta1.RestoreBackupResponse - (*ScheduledBackup)(nil), // 6: backup.v1beta1.ScheduledBackup - (*ScheduleBackupRequest)(nil), // 7: backup.v1beta1.ScheduleBackupRequest - (*ScheduleBackupResponse)(nil), // 8: backup.v1beta1.ScheduleBackupResponse - (*ListScheduledBackupsRequest)(nil), // 9: backup.v1beta1.ListScheduledBackupsRequest - (*ListScheduledBackupsResponse)(nil), // 10: backup.v1beta1.ListScheduledBackupsResponse - (*ChangeScheduledBackupRequest)(nil), // 11: backup.v1beta1.ChangeScheduledBackupRequest - (*ChangeScheduledBackupResponse)(nil), // 12: backup.v1beta1.ChangeScheduledBackupResponse - (*RemoveScheduledBackupRequest)(nil), // 13: backup.v1beta1.RemoveScheduledBackupRequest - (*RemoveScheduledBackupResponse)(nil), // 14: backup.v1beta1.RemoveScheduledBackupResponse - (*GetLogsRequest)(nil), // 15: backup.v1beta1.GetLogsRequest - (*GetLogsResponse)(nil), // 16: backup.v1beta1.GetLogsResponse - (*LogChunk)(nil), // 17: backup.v1beta1.LogChunk - (*durationpb.Duration)(nil), // 18: google.protobuf.Duration - (DataModel)(0), // 19: backup.v1beta1.DataModel - (*inventorypb.MySQLService)(nil), // 20: inventory.MySQLService - (*inventorypb.MongoDBService)(nil), // 21: inventory.MongoDBService - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp - (BackupMode)(0), // 23: backup.v1beta1.BackupMode - (*wrapperspb.BoolValue)(nil), // 24: google.protobuf.BoolValue - (*wrapperspb.StringValue)(nil), // 25: google.protobuf.StringValue - (*wrapperspb.UInt32Value)(nil), // 26: google.protobuf.UInt32Value - } -) - +var file_managementpb_backup_backups_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_managementpb_backup_backups_proto_goTypes = []interface{}{ + (*StartBackupRequest)(nil), // 0: backup.v1beta1.StartBackupRequest + (*StartBackupResponse)(nil), // 1: backup.v1beta1.StartBackupResponse + (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1beta1.ListArtifactCompatibleServicesRequest + (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1beta1.ListArtifactCompatibleServicesResponse + (*RestoreBackupRequest)(nil), // 4: backup.v1beta1.RestoreBackupRequest + (*RestoreBackupResponse)(nil), // 5: backup.v1beta1.RestoreBackupResponse + (*ScheduledBackup)(nil), // 6: backup.v1beta1.ScheduledBackup + (*ScheduleBackupRequest)(nil), // 7: backup.v1beta1.ScheduleBackupRequest + (*ScheduleBackupResponse)(nil), // 8: backup.v1beta1.ScheduleBackupResponse + (*ListScheduledBackupsRequest)(nil), // 9: backup.v1beta1.ListScheduledBackupsRequest + (*ListScheduledBackupsResponse)(nil), // 10: backup.v1beta1.ListScheduledBackupsResponse + (*ChangeScheduledBackupRequest)(nil), // 11: backup.v1beta1.ChangeScheduledBackupRequest + (*ChangeScheduledBackupResponse)(nil), // 12: backup.v1beta1.ChangeScheduledBackupResponse + (*RemoveScheduledBackupRequest)(nil), // 13: backup.v1beta1.RemoveScheduledBackupRequest + (*RemoveScheduledBackupResponse)(nil), // 14: backup.v1beta1.RemoveScheduledBackupResponse + (*GetLogsRequest)(nil), // 15: backup.v1beta1.GetLogsRequest + (*GetLogsResponse)(nil), // 16: backup.v1beta1.GetLogsResponse + (*LogChunk)(nil), // 17: backup.v1beta1.LogChunk + (*durationpb.Duration)(nil), // 18: google.protobuf.Duration + (DataModel)(0), // 19: backup.v1beta1.DataModel + (*inventorypb.MySQLService)(nil), // 20: inventory.MySQLService + (*inventorypb.MongoDBService)(nil), // 21: inventory.MongoDBService + (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp + (BackupMode)(0), // 23: backup.v1beta1.BackupMode + (*wrapperspb.BoolValue)(nil), // 24: google.protobuf.BoolValue + (*wrapperspb.StringValue)(nil), // 25: google.protobuf.StringValue + (*wrapperspb.UInt32Value)(nil), // 26: google.protobuf.UInt32Value +} var file_managementpb_backup_backups_proto_depIdxs = []int32{ 18, // 0: backup.v1beta1.StartBackupRequest.retry_interval:type_name -> google.protobuf.Duration 19, // 1: backup.v1beta1.StartBackupRequest.data_model:type_name -> backup.v1beta1.DataModel diff --git a/api/managementpb/backup/backups.pb.gw.go b/api/managementpb/backup/backups.pb.gw.go index 5588af913b..9cd4bb7ed8 100644 --- a/api/managementpb/backup/backups.pb.gw.go +++ b/api/managementpb/backup/backups.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Backups_StartBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StartBackupRequest @@ -47,6 +45,7 @@ func request_Backups_StartBackup_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.StartBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_StartBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Backups_StartBackup_0(ctx context.Context, marshaler runtime. msg, err := server.StartBackup(ctx, &protoReq) return msg, metadata, err + } func request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, marsh msg, err := client.ListArtifactCompatibleServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, msg, err := server.ListArtifactCompatibleServices(ctx, &protoReq) return msg, metadata, err + } func request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtime.Mars msg, err := client.RestoreBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtim msg, err := server.RestoreBackup(ctx, &protoReq) return msg, metadata, err + } func request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runtime.Mar msg, err := client.ScheduleBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runti msg, err := server.ScheduleBackup(ctx, &protoReq) return msg, metadata, err + } func request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler runti msg, err := client.ListScheduledBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler msg, err := server.ListScheduledBackups(ctx, &protoReq) return msg, metadata, err + } func request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshaler runt msg, err := client.ChangeScheduledBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshale msg, err := server.ChangeScheduledBackup(ctx, &protoReq) return msg, metadata, err + } func request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshaler runt msg, err := client.RemoveScheduledBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshale msg, err := server.RemoveScheduledBackup(ctx, &protoReq) return msg, metadata, err + } func request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -271,6 +283,7 @@ func request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.GetLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -287,6 +300,7 @@ func local_request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Mars msg, err := server.GetLogs(ctx, &protoReq) return msg, metadata, err + } // RegisterBackupsHandlerServer registers the http handlers for service Backups to "mux". @@ -294,6 +308,7 @@ func local_request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBackupsHandlerFromEndpoint instead. func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BackupsServer) error { + mux.Handle("POST", pattern_Backups_StartBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -316,6 +331,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_StartBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ListArtifactCompatibleServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -340,6 +356,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ListArtifactCompatibleServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_RestoreBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -364,6 +381,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_RestoreBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ScheduleBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -388,6 +406,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ScheduleBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ListScheduledBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -412,6 +431,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ListScheduledBackups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ChangeScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -436,6 +456,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ChangeScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_RemoveScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -460,6 +481,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_RemoveScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -484,6 +506,7 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -526,6 +549,7 @@ func RegisterBackupsHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "BackupsClient" to call the correct interceptors. func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackupsClient) error { + mux.Handle("POST", pattern_Backups_StartBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -545,6 +569,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_StartBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ListArtifactCompatibleServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -566,6 +591,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ListArtifactCompatibleServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_RestoreBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -587,6 +613,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_RestoreBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ScheduleBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -608,6 +635,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ScheduleBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ListScheduledBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -629,6 +657,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ListScheduledBackups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_ChangeScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -650,6 +679,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ChangeScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_RemoveScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -671,6 +701,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_RemoveScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Backups_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -692,6 +723,7 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/backup/backups.validator.pb.go b/api/managementpb/backup/backups.validator.pb.go index cdddc8947d..e297b81517 100644 --- a/api/managementpb/backup/backups.validator.pb.go +++ b/api/managementpb/backup/backups.validator.pb.go @@ -6,25 +6,21 @@ package backupv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" + _ "google.golang.org/protobuf/types/known/wrapperspb" + _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" _ "google.golang.org/protobuf/types/known/timestamppb" - _ "google.golang.org/protobuf/types/known/wrapperspb" - - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *StartBackupRequest) Validate() error { if this.ServiceId == "" { @@ -40,18 +36,15 @@ func (this *StartBackupRequest) Validate() error { } return nil } - func (this *StartBackupResponse) Validate() error { return nil } - func (this *ListArtifactCompatibleServicesRequest) Validate() error { if this.ArtifactId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ArtifactId", fmt.Errorf(`value '%v' must not be an empty string`, this.ArtifactId)) } return nil } - func (this *ListArtifactCompatibleServicesResponse) Validate() error { for _, item := range this.Mysql { if item != nil { @@ -69,7 +62,6 @@ func (this *ListArtifactCompatibleServicesResponse) Validate() error { } return nil } - func (this *RestoreBackupRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -79,11 +71,9 @@ func (this *RestoreBackupRequest) Validate() error { } return nil } - func (this *RestoreBackupResponse) Validate() error { return nil } - func (this *ScheduledBackup) Validate() error { if this.StartTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.StartTime); err != nil { @@ -107,7 +97,6 @@ func (this *ScheduledBackup) Validate() error { } return nil } - func (this *ScheduleBackupRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -130,15 +119,12 @@ func (this *ScheduleBackupRequest) Validate() error { } return nil } - func (this *ScheduleBackupResponse) Validate() error { return nil } - func (this *ListScheduledBackupsRequest) Validate() error { return nil } - func (this *ListScheduledBackupsResponse) Validate() error { for _, item := range this.ScheduledBackups { if item != nil { @@ -149,7 +135,6 @@ func (this *ListScheduledBackupsResponse) Validate() error { } return nil } - func (this *ChangeScheduledBackupRequest) Validate() error { if this.ScheduledBackupId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ScheduledBackupId", fmt.Errorf(`value '%v' must not be an empty string`, this.ScheduledBackupId)) @@ -196,29 +181,24 @@ func (this *ChangeScheduledBackupRequest) Validate() error { } return nil } - func (this *ChangeScheduledBackupResponse) Validate() error { return nil } - func (this *RemoveScheduledBackupRequest) Validate() error { if this.ScheduledBackupId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ScheduledBackupId", fmt.Errorf(`value '%v' must not be an empty string`, this.ScheduledBackupId)) } return nil } - func (this *RemoveScheduledBackupResponse) Validate() error { return nil } - func (this *GetLogsRequest) Validate() error { if this.ArtifactId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ArtifactId", fmt.Errorf(`value '%v' must not be an empty string`, this.ArtifactId)) } return nil } - func (this *GetLogsResponse) Validate() error { for _, item := range this.Logs { if item != nil { @@ -229,7 +209,6 @@ func (this *GetLogsResponse) Validate() error { } return nil } - func (this *LogChunk) Validate() error { return nil } diff --git a/api/managementpb/backup/backups_grpc.pb.go b/api/managementpb/backup/backups_grpc.pb.go index 077ba9bf31..b7b555f6df 100644 --- a/api/managementpb/backup/backups_grpc.pb.go +++ b/api/managementpb/backup/backups_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -145,36 +144,30 @@ type BackupsServer interface { } // UnimplementedBackupsServer must be embedded to have forward compatible implementations. -type UnimplementedBackupsServer struct{} +type UnimplementedBackupsServer struct { +} func (UnimplementedBackupsServer) StartBackup(context.Context, *StartBackupRequest) (*StartBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartBackup not implemented") } - func (UnimplementedBackupsServer) ListArtifactCompatibleServices(context.Context, *ListArtifactCompatibleServicesRequest) (*ListArtifactCompatibleServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListArtifactCompatibleServices not implemented") } - func (UnimplementedBackupsServer) RestoreBackup(context.Context, *RestoreBackupRequest) (*RestoreBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RestoreBackup not implemented") } - func (UnimplementedBackupsServer) ScheduleBackup(context.Context, *ScheduleBackupRequest) (*ScheduleBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ScheduleBackup not implemented") } - func (UnimplementedBackupsServer) ListScheduledBackups(context.Context, *ListScheduledBackupsRequest) (*ListScheduledBackupsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListScheduledBackups not implemented") } - func (UnimplementedBackupsServer) ChangeScheduledBackup(context.Context, *ChangeScheduledBackupRequest) (*ChangeScheduledBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeScheduledBackup not implemented") } - func (UnimplementedBackupsServer) RemoveScheduledBackup(context.Context, *RemoveScheduledBackupRequest) (*RemoveScheduledBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveScheduledBackup not implemented") } - func (UnimplementedBackupsServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLogs not implemented") } diff --git a/api/managementpb/backup/common.pb.go b/api/managementpb/backup/common.pb.go index ef854c20e9..3fcabca2c9 100644 --- a/api/managementpb/backup/common.pb.go +++ b/api/managementpb/backup/common.pb.go @@ -7,11 +7,10 @@ package backupv1beta1 import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -166,14 +165,11 @@ func file_managementpb_backup_common_proto_rawDescGZIP() []byte { return file_managementpb_backup_common_proto_rawDescData } -var ( - file_managementpb_backup_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_managementpb_backup_common_proto_goTypes = []interface{}{ - (DataModel)(0), // 0: backup.v1beta1.DataModel - (BackupMode)(0), // 1: backup.v1beta1.BackupMode - } -) - +var file_managementpb_backup_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_managementpb_backup_common_proto_goTypes = []interface{}{ + (DataModel)(0), // 0: backup.v1beta1.DataModel + (BackupMode)(0), // 1: backup.v1beta1.BackupMode +} var file_managementpb_backup_common_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/backup/common.validator.pb.go b/api/managementpb/backup/common.validator.pb.go index 793e08bce3..33dfd6104e 100644 --- a/api/managementpb/backup/common.validator.pb.go +++ b/api/managementpb/backup/common.validator.pb.go @@ -6,13 +6,10 @@ package backupv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/managementpb/backup/errors.pb.go b/api/managementpb/backup/errors.pb.go index 53c4c987dc..7e948ac996 100644 --- a/api/managementpb/backup/errors.pb.go +++ b/api/managementpb/backup/errors.pb.go @@ -7,11 +7,10 @@ package backupv1beta1 import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -179,15 +178,12 @@ func file_managementpb_backup_errors_proto_rawDescGZIP() []byte { return file_managementpb_backup_errors_proto_rawDescData } -var ( - file_managementpb_backup_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_backup_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) - file_managementpb_backup_errors_proto_goTypes = []interface{}{ - (ErrorCode)(0), // 0: backup.v1beta1.ErrorCode - (*Error)(nil), // 1: backup.v1beta1.Error - } -) - +var file_managementpb_backup_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_backup_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_managementpb_backup_errors_proto_goTypes = []interface{}{ + (ErrorCode)(0), // 0: backup.v1beta1.ErrorCode + (*Error)(nil), // 1: backup.v1beta1.Error +} var file_managementpb_backup_errors_proto_depIdxs = []int32{ 0, // 0: backup.v1beta1.Error.code:type_name -> backup.v1beta1.ErrorCode 1, // [1:1] is the sub-list for method output_type diff --git a/api/managementpb/backup/errors.validator.pb.go b/api/managementpb/backup/errors.validator.pb.go index cedf20614a..c3684b0b45 100644 --- a/api/managementpb/backup/errors.validator.pb.go +++ b/api/managementpb/backup/errors.validator.pb.go @@ -6,16 +6,13 @@ package backupv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Error) Validate() error { return nil diff --git a/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go b/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go index cdf5c2d89b..ab13b0db89 100644 --- a/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go +++ b/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go @@ -60,6 +60,7 @@ DeleteArtifactParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteArtifactParams struct { + // Body. Body DeleteArtifactBody @@ -129,6 +130,7 @@ func (o *DeleteArtifactParams) SetBody(body DeleteArtifactBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go b/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go index 03cd4b4f68..cfb1223155 100644 --- a/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go +++ b/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go @@ -60,12 +60,12 @@ type DeleteArtifactOK struct { func (o *DeleteArtifactOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/Delete][%d] deleteArtifactOk %+v", 200, o.Payload) } - func (o *DeleteArtifactOK) GetPayload() interface{} { return o.Payload } func (o *DeleteArtifactOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DeleteArtifactDefault) Code() int { func (o *DeleteArtifactDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/Delete][%d] DeleteArtifact default %+v", o._statusCode, o.Payload) } - func (o *DeleteArtifactDefault) GetPayload() *DeleteArtifactDefaultBody { return o.Payload } func (o *DeleteArtifactDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteArtifactDefaultBody) // response payload @@ -121,6 +121,7 @@ DeleteArtifactBody delete artifact body swagger:model DeleteArtifactBody */ type DeleteArtifactBody struct { + // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` @@ -161,6 +162,7 @@ DeleteArtifactDefaultBody delete artifact default body swagger:model DeleteArtifactDefaultBody */ type DeleteArtifactDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *DeleteArtifactDefaultBody) ContextValidate(ctx context.Context, formats } func (o *DeleteArtifactDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *DeleteArtifactDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -265,6 +270,7 @@ DeleteArtifactDefaultBodyDetailsItems0 delete artifact default body details item swagger:model DeleteArtifactDefaultBodyDetailsItems0 */ type DeleteArtifactDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go b/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go index 5932e115ec..df511fdabf 100644 --- a/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go +++ b/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go @@ -60,6 +60,7 @@ ListArtifactsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListArtifactsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListArtifactsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListArtifactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go b/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go index ddd8dd676b..519d816119 100644 --- a/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go +++ b/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go @@ -62,12 +62,12 @@ type ListArtifactsOK struct { func (o *ListArtifactsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/List][%d] listArtifactsOk %+v", 200, o.Payload) } - func (o *ListArtifactsOK) GetPayload() *ListArtifactsOKBody { return o.Payload } func (o *ListArtifactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListArtifactsDefault) Code() int { func (o *ListArtifactsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/List][%d] ListArtifacts default %+v", o._statusCode, o.Payload) } - func (o *ListArtifactsDefault) GetPayload() *ListArtifactsDefaultBody { return o.Payload } func (o *ListArtifactsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactsDefaultBody) // response payload @@ -125,6 +125,7 @@ ListArtifactsDefaultBody list artifacts default body swagger:model ListArtifactsDefaultBody */ type ListArtifactsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *ListArtifactsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListArtifactsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *ListArtifactsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -229,6 +233,7 @@ ListArtifactsDefaultBodyDetailsItems0 list artifacts default body details items0 swagger:model ListArtifactsDefaultBodyDetailsItems0 */ type ListArtifactsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ ListArtifactsOKBody list artifacts OK body swagger:model ListArtifactsOKBody */ type ListArtifactsOKBody struct { + // artifacts Artifacts []*ListArtifactsOKBodyArtifactsItems0 `json:"artifacts"` } @@ -325,7 +331,9 @@ func (o *ListArtifactsOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ListArtifactsOKBody) contextValidateArtifacts(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Artifacts); i++ { + if o.Artifacts[i] != nil { if err := o.Artifacts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +344,7 @@ func (o *ListArtifactsOKBody) contextValidateArtifacts(ctx context.Context, form return err } } + } return nil @@ -364,6 +373,7 @@ ListArtifactsOKBodyArtifactsItems0 Artifact represents single backup artifact. swagger:model ListArtifactsOKBodyArtifactsItems0 */ type ListArtifactsOKBodyArtifactsItems0 struct { + // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go b/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go index e372d89f19..8cb9679de3 100644 --- a/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go @@ -60,6 +60,7 @@ ChangeScheduledBackupParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type ChangeScheduledBackupParams struct { + // Body. Body ChangeScheduledBackupBody @@ -129,6 +130,7 @@ func (o *ChangeScheduledBackupParams) SetBody(body ChangeScheduledBackupBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeScheduledBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go b/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go index eaefe8fc84..d6ef4dc441 100644 --- a/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go @@ -61,12 +61,12 @@ type ChangeScheduledBackupOK struct { func (o *ChangeScheduledBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ChangeScheduled][%d] changeScheduledBackupOk %+v", 200, o.Payload) } - func (o *ChangeScheduledBackupOK) GetPayload() interface{} { return o.Payload } func (o *ChangeScheduledBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -101,12 +101,12 @@ func (o *ChangeScheduledBackupDefault) Code() int { func (o *ChangeScheduledBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ChangeScheduled][%d] ChangeScheduledBackup default %+v", o._statusCode, o.Payload) } - func (o *ChangeScheduledBackupDefault) GetPayload() *ChangeScheduledBackupDefaultBody { return o.Payload } func (o *ChangeScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeScheduledBackupDefaultBody) // response payload @@ -122,6 +122,7 @@ ChangeScheduledBackupBody change scheduled backup body swagger:model ChangeScheduledBackupBody */ type ChangeScheduledBackupBody struct { + // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` @@ -205,6 +206,7 @@ ChangeScheduledBackupDefaultBody change scheduled backup default body swagger:model ChangeScheduledBackupDefaultBody */ type ChangeScheduledBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -270,7 +272,9 @@ func (o *ChangeScheduledBackupDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeScheduledBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -281,6 +285,7 @@ func (o *ChangeScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -309,6 +314,7 @@ ChangeScheduledBackupDefaultBodyDetailsItems0 change scheduled backup default bo swagger:model ChangeScheduledBackupDefaultBodyDetailsItems0 */ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/get_logs_parameters.go b/api/managementpb/backup/json/client/backups/get_logs_parameters.go index d6540699d4..5b43e385bf 100644 --- a/api/managementpb/backup/json/client/backups/get_logs_parameters.go +++ b/api/managementpb/backup/json/client/backups/get_logs_parameters.go @@ -60,6 +60,7 @@ GetLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsParams struct { + // Body. Body GetLogsBody @@ -129,6 +130,7 @@ func (o *GetLogsParams) SetBody(body GetLogsBody) { // WriteToRequest writes these params to a swagger request func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/get_logs_responses.go b/api/managementpb/backup/json/client/backups/get_logs_responses.go index 2b517f0b74..8454c99c64 100644 --- a/api/managementpb/backup/json/client/backups/get_logs_responses.go +++ b/api/managementpb/backup/json/client/backups/get_logs_responses.go @@ -60,12 +60,12 @@ type GetLogsOK struct { func (o *GetLogsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/GetLogs][%d] getLogsOk %+v", 200, o.Payload) } - func (o *GetLogsOK) GetPayload() *GetLogsOKBody { return o.Payload } func (o *GetLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetLogsDefault) Code() int { func (o *GetLogsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/GetLogs][%d] GetLogs default %+v", o._statusCode, o.Payload) } - func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody { return o.Payload } func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetLogsBody get logs body swagger:model GetLogsBody */ type GetLogsBody struct { + // artifact id ArtifactID string `json:"artifact_id,omitempty"` @@ -166,6 +167,7 @@ GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -231,7 +233,9 @@ func (o *GetLogsDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -242,6 +246,7 @@ func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -270,6 +275,7 @@ GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -307,6 +313,7 @@ GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { + // logs Logs []*GetLogsOKBodyLogsItems0 `json:"logs"` @@ -369,7 +376,9 @@ func (o *GetLogsOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Logs); i++ { + if o.Logs[i] != nil { if err := o.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -380,6 +389,7 @@ func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt. return err } } + } return nil @@ -408,6 +418,7 @@ GetLogsOKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetLogsOKBodyLogsItems0 */ type GetLogsOKBodyLogsItems0 struct { + // chunk id ChunkID int64 `json:"chunk_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go index a5ecbdeece..ae5fb30e84 100644 --- a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go +++ b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go @@ -60,6 +60,7 @@ ListArtifactCompatibleServicesParams contains all the parameters to send to the Typically these are written to a http.Request. */ type ListArtifactCompatibleServicesParams struct { + // Body. Body ListArtifactCompatibleServicesBody @@ -129,6 +130,7 @@ func (o *ListArtifactCompatibleServicesParams) SetBody(body ListArtifactCompatib // WriteToRequest writes these params to a swagger request func (o *ListArtifactCompatibleServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go index cde43dc58d..2f1764be77 100644 --- a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go +++ b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go @@ -60,12 +60,12 @@ type ListArtifactCompatibleServicesOK struct { func (o *ListArtifactCompatibleServicesOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListArtifactCompatibleServices][%d] listArtifactCompatibleServicesOk %+v", 200, o.Payload) } - func (o *ListArtifactCompatibleServicesOK) GetPayload() *ListArtifactCompatibleServicesOKBody { return o.Payload } func (o *ListArtifactCompatibleServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactCompatibleServicesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListArtifactCompatibleServicesDefault) Code() int { func (o *ListArtifactCompatibleServicesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListArtifactCompatibleServices][%d] ListArtifactCompatibleServices default %+v", o._statusCode, o.Payload) } - func (o *ListArtifactCompatibleServicesDefault) GetPayload() *ListArtifactCompatibleServicesDefaultBody { return o.Payload } func (o *ListArtifactCompatibleServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactCompatibleServicesDefaultBody) // response payload @@ -123,6 +123,7 @@ ListArtifactCompatibleServicesBody list artifact compatible services body swagger:model ListArtifactCompatibleServicesBody */ type ListArtifactCompatibleServicesBody struct { + // Artifact id used to determine restore compatibility. ArtifactID string `json:"artifact_id,omitempty"` } @@ -160,6 +161,7 @@ ListArtifactCompatibleServicesDefaultBody list artifact compatible services defa swagger:model ListArtifactCompatibleServicesDefaultBody */ type ListArtifactCompatibleServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *ListArtifactCompatibleServicesDefaultBody) ContextValidate(ctx context. } func (o *ListArtifactCompatibleServicesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *ListArtifactCompatibleServicesDefaultBody) contextValidateDetails(ctx c return err } } + } return nil @@ -264,6 +269,7 @@ ListArtifactCompatibleServicesDefaultBodyDetailsItems0 list artifact compatible swagger:model ListArtifactCompatibleServicesDefaultBodyDetailsItems0 */ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ ListArtifactCompatibleServicesOKBody list artifact compatible services OK body swagger:model ListArtifactCompatibleServicesOKBody */ type ListArtifactCompatibleServicesOKBody struct { + // mysql Mysql []*ListArtifactCompatibleServicesOKBodyMysqlItems0 `json:"mysql"` @@ -397,7 +404,9 @@ func (o *ListArtifactCompatibleServicesOKBody) ContextValidate(ctx context.Conte } func (o *ListArtifactCompatibleServicesOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Mysql); i++ { + if o.Mysql[i] != nil { if err := o.Mysql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -408,13 +417,16 @@ func (o *ListArtifactCompatibleServicesOKBody) contextValidateMysql(ctx context. return err } } + } return nil } func (o *ListArtifactCompatibleServicesOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Mongodb); i++ { + if o.Mongodb[i] != nil { if err := o.Mongodb[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -425,6 +437,7 @@ func (o *ListArtifactCompatibleServicesOKBody) contextValidateMongodb(ctx contex return err } } + } return nil @@ -453,6 +466,7 @@ ListArtifactCompatibleServicesOKBodyMongodbItems0 MongoDBService represents a ge swagger:model ListArtifactCompatibleServicesOKBodyMongodbItems0 */ type ListArtifactCompatibleServicesOKBodyMongodbItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -520,6 +534,7 @@ ListArtifactCompatibleServicesOKBodyMysqlItems0 MySQLService represents a generi swagger:model ListArtifactCompatibleServicesOKBodyMysqlItems0 */ type ListArtifactCompatibleServicesOKBodyMysqlItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go b/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go index e906ca98b7..d0c6e616ea 100644 --- a/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go +++ b/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go @@ -60,6 +60,7 @@ ListScheduledBackupsParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ListScheduledBackupsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListScheduledBackupsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListScheduledBackupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go b/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go index caccf8b760..c0af1d01c7 100644 --- a/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go +++ b/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go @@ -62,12 +62,12 @@ type ListScheduledBackupsOK struct { func (o *ListScheduledBackupsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListScheduled][%d] listScheduledBackupsOk %+v", 200, o.Payload) } - func (o *ListScheduledBackupsOK) GetPayload() *ListScheduledBackupsOKBody { return o.Payload } func (o *ListScheduledBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListScheduledBackupsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListScheduledBackupsDefault) Code() int { func (o *ListScheduledBackupsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListScheduled][%d] ListScheduledBackups default %+v", o._statusCode, o.Payload) } - func (o *ListScheduledBackupsDefault) GetPayload() *ListScheduledBackupsDefaultBody { return o.Payload } func (o *ListScheduledBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListScheduledBackupsDefaultBody) // response payload @@ -125,6 +125,7 @@ ListScheduledBackupsDefaultBody list scheduled backups default body swagger:model ListScheduledBackupsDefaultBody */ type ListScheduledBackupsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *ListScheduledBackupsDefaultBody) ContextValidate(ctx context.Context, f } func (o *ListScheduledBackupsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *ListScheduledBackupsDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -229,6 +233,7 @@ ListScheduledBackupsDefaultBodyDetailsItems0 list scheduled backups default body swagger:model ListScheduledBackupsDefaultBodyDetailsItems0 */ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ ListScheduledBackupsOKBody list scheduled backups OK body swagger:model ListScheduledBackupsOKBody */ type ListScheduledBackupsOKBody struct { + // scheduled backups ScheduledBackups []*ListScheduledBackupsOKBodyScheduledBackupsItems0 `json:"scheduled_backups"` } @@ -325,7 +331,9 @@ func (o *ListScheduledBackupsOKBody) ContextValidate(ctx context.Context, format } func (o *ListScheduledBackupsOKBody) contextValidateScheduledBackups(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ScheduledBackups); i++ { + if o.ScheduledBackups[i] != nil { if err := o.ScheduledBackups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +344,7 @@ func (o *ListScheduledBackupsOKBody) contextValidateScheduledBackups(ctx context return err } } + } return nil @@ -364,6 +373,7 @@ ListScheduledBackupsOKBodyScheduledBackupsItems0 ScheduledBackup represents sche swagger:model ListScheduledBackupsOKBodyScheduledBackupsItems0 */ type ListScheduledBackupsOKBodyScheduledBackupsItems0 struct { + // Machine-readable ID. ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go index a488611ff2..6bfb93d977 100644 --- a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go @@ -60,6 +60,7 @@ RemoveScheduledBackupParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type RemoveScheduledBackupParams struct { + // Body. Body RemoveScheduledBackupBody @@ -129,6 +130,7 @@ func (o *RemoveScheduledBackupParams) SetBody(body RemoveScheduledBackupBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveScheduledBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go index 053d701ed4..431c7af8b5 100644 --- a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go @@ -60,12 +60,12 @@ type RemoveScheduledBackupOK struct { func (o *RemoveScheduledBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/RemoveScheduled][%d] removeScheduledBackupOk %+v", 200, o.Payload) } - func (o *RemoveScheduledBackupOK) GetPayload() interface{} { return o.Payload } func (o *RemoveScheduledBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveScheduledBackupDefault) Code() int { func (o *RemoveScheduledBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/RemoveScheduled][%d] RemoveScheduledBackup default %+v", o._statusCode, o.Payload) } - func (o *RemoveScheduledBackupDefault) GetPayload() *RemoveScheduledBackupDefaultBody { return o.Payload } func (o *RemoveScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveScheduledBackupDefaultBody) // response payload @@ -121,6 +121,7 @@ RemoveScheduledBackupBody remove scheduled backup body swagger:model RemoveScheduledBackupBody */ type RemoveScheduledBackupBody struct { + // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` } @@ -158,6 +159,7 @@ RemoveScheduledBackupDefaultBody remove scheduled backup default body swagger:model RemoveScheduledBackupDefaultBody */ type RemoveScheduledBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *RemoveScheduledBackupDefaultBody) ContextValidate(ctx context.Context, } func (o *RemoveScheduledBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *RemoveScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -262,6 +267,7 @@ RemoveScheduledBackupDefaultBodyDetailsItems0 remove scheduled backup default bo swagger:model RemoveScheduledBackupDefaultBodyDetailsItems0 */ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/restore_backup_parameters.go b/api/managementpb/backup/json/client/backups/restore_backup_parameters.go index 99b307bab3..9fa0d9bf9f 100644 --- a/api/managementpb/backup/json/client/backups/restore_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/restore_backup_parameters.go @@ -60,6 +60,7 @@ RestoreBackupParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RestoreBackupParams struct { + // Body. Body RestoreBackupBody @@ -129,6 +130,7 @@ func (o *RestoreBackupParams) SetBody(body RestoreBackupBody) { // WriteToRequest writes these params to a swagger request func (o *RestoreBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/restore_backup_responses.go b/api/managementpb/backup/json/client/backups/restore_backup_responses.go index 608b6e352c..213539ed73 100644 --- a/api/managementpb/backup/json/client/backups/restore_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/restore_backup_responses.go @@ -60,12 +60,12 @@ type RestoreBackupOK struct { func (o *RestoreBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Restore][%d] restoreBackupOk %+v", 200, o.Payload) } - func (o *RestoreBackupOK) GetPayload() *RestoreBackupOKBody { return o.Payload } func (o *RestoreBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RestoreBackupOKBody) // response payload @@ -102,12 +102,12 @@ func (o *RestoreBackupDefault) Code() int { func (o *RestoreBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Restore][%d] RestoreBackup default %+v", o._statusCode, o.Payload) } - func (o *RestoreBackupDefault) GetPayload() *RestoreBackupDefaultBody { return o.Payload } func (o *RestoreBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RestoreBackupDefaultBody) // response payload @@ -123,6 +123,7 @@ RestoreBackupBody restore backup body swagger:model RestoreBackupBody */ type RestoreBackupBody struct { + // Service identifier where backup should be restored. ServiceID string `json:"service_id,omitempty"` @@ -163,6 +164,7 @@ RestoreBackupDefaultBody restore backup default body swagger:model RestoreBackupDefaultBody */ type RestoreBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *RestoreBackupDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RestoreBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *RestoreBackupDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -267,6 +272,7 @@ RestoreBackupDefaultBodyDetailsItems0 restore backup default body details items0 swagger:model RestoreBackupDefaultBodyDetailsItems0 */ type RestoreBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ RestoreBackupOKBody restore backup OK body swagger:model RestoreBackupOKBody */ type RestoreBackupOKBody struct { + // Unique restore identifier. RestoreID string `json:"restore_id,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go b/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go index 3aec66ead3..a5fcdafba4 100644 --- a/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go @@ -60,6 +60,7 @@ ScheduleBackupParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ScheduleBackupParams struct { + // Body. Body ScheduleBackupBody @@ -129,6 +130,7 @@ func (o *ScheduleBackupParams) SetBody(body ScheduleBackupBody) { // WriteToRequest writes these params to a swagger request func (o *ScheduleBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/schedule_backup_responses.go b/api/managementpb/backup/json/client/backups/schedule_backup_responses.go index 4753ffc4b3..88a4bc7c3c 100644 --- a/api/managementpb/backup/json/client/backups/schedule_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/schedule_backup_responses.go @@ -62,12 +62,12 @@ type ScheduleBackupOK struct { func (o *ScheduleBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Schedule][%d] scheduleBackupOk %+v", 200, o.Payload) } - func (o *ScheduleBackupOK) GetPayload() *ScheduleBackupOKBody { return o.Payload } func (o *ScheduleBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ScheduleBackupOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ScheduleBackupDefault) Code() int { func (o *ScheduleBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Schedule][%d] ScheduleBackup default %+v", o._statusCode, o.Payload) } - func (o *ScheduleBackupDefault) GetPayload() *ScheduleBackupDefaultBody { return o.Payload } func (o *ScheduleBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ScheduleBackupDefaultBody) // response payload @@ -125,6 +125,7 @@ ScheduleBackupBody schedule backup body swagger:model ScheduleBackupBody */ type ScheduleBackupBody struct { + // Service identifier where backup should be performed. ServiceID string `json:"service_id,omitempty"` @@ -320,6 +321,7 @@ ScheduleBackupDefaultBody schedule backup default body swagger:model ScheduleBackupDefaultBody */ type ScheduleBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -385,7 +387,9 @@ func (o *ScheduleBackupDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ScheduleBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -396,6 +400,7 @@ func (o *ScheduleBackupDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -424,6 +429,7 @@ ScheduleBackupDefaultBodyDetailsItems0 schedule backup default body details item swagger:model ScheduleBackupDefaultBodyDetailsItems0 */ type ScheduleBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -461,6 +467,7 @@ ScheduleBackupOKBody schedule backup OK body swagger:model ScheduleBackupOKBody */ type ScheduleBackupOKBody struct { + // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/start_backup_parameters.go b/api/managementpb/backup/json/client/backups/start_backup_parameters.go index 55fffd3ba5..fd66c34dcd 100644 --- a/api/managementpb/backup/json/client/backups/start_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/start_backup_parameters.go @@ -60,6 +60,7 @@ StartBackupParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartBackupParams struct { + // Body. Body StartBackupBody @@ -129,6 +130,7 @@ func (o *StartBackupParams) SetBody(body StartBackupBody) { // WriteToRequest writes these params to a swagger request func (o *StartBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/start_backup_responses.go b/api/managementpb/backup/json/client/backups/start_backup_responses.go index 6c4786db9d..f04239a670 100644 --- a/api/managementpb/backup/json/client/backups/start_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/start_backup_responses.go @@ -62,12 +62,12 @@ type StartBackupOK struct { func (o *StartBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Start][%d] startBackupOk %+v", 200, o.Payload) } - func (o *StartBackupOK) GetPayload() *StartBackupOKBody { return o.Payload } func (o *StartBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartBackupOKBody) // response payload @@ -104,12 +104,12 @@ func (o *StartBackupDefault) Code() int { func (o *StartBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Start][%d] StartBackup default %+v", o._statusCode, o.Payload) } - func (o *StartBackupDefault) GetPayload() *StartBackupDefaultBody { return o.Payload } func (o *StartBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartBackupDefaultBody) // response payload @@ -125,6 +125,7 @@ StartBackupBody start backup body swagger:model StartBackupBody */ type StartBackupBody struct { + // Service identifier. ServiceID string `json:"service_id,omitempty"` @@ -235,6 +236,7 @@ StartBackupDefaultBody start backup default body swagger:model StartBackupDefaultBody */ type StartBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -300,7 +302,9 @@ func (o *StartBackupDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *StartBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -311,6 +315,7 @@ func (o *StartBackupDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -339,6 +344,7 @@ StartBackupDefaultBodyDetailsItems0 start backup default body details items0 swagger:model StartBackupDefaultBodyDetailsItems0 */ type StartBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -376,6 +382,7 @@ StartBackupOKBody start backup OK body swagger:model StartBackupOKBody */ type StartBackupOKBody struct { + // Unique identifier. ArtifactID string `json:"artifact_id,omitempty"` } diff --git a/api/managementpb/backup/json/client/locations/add_location_parameters.go b/api/managementpb/backup/json/client/locations/add_location_parameters.go index 7c8120fc3d..595587c4a4 100644 --- a/api/managementpb/backup/json/client/locations/add_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/add_location_parameters.go @@ -60,6 +60,7 @@ AddLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddLocationParams struct { + // Body. Body AddLocationBody @@ -129,6 +130,7 @@ func (o *AddLocationParams) SetBody(body AddLocationBody) { // WriteToRequest writes these params to a swagger request func (o *AddLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/add_location_responses.go b/api/managementpb/backup/json/client/locations/add_location_responses.go index 541af9a52d..d271ae9eb2 100644 --- a/api/managementpb/backup/json/client/locations/add_location_responses.go +++ b/api/managementpb/backup/json/client/locations/add_location_responses.go @@ -60,12 +60,12 @@ type AddLocationOK struct { func (o *AddLocationOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Add][%d] addLocationOk %+v", 200, o.Payload) } - func (o *AddLocationOK) GetPayload() *AddLocationOKBody { return o.Payload } func (o *AddLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddLocationOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddLocationDefault) Code() int { func (o *AddLocationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Add][%d] AddLocation default %+v", o._statusCode, o.Payload) } - func (o *AddLocationDefault) GetPayload() *AddLocationDefaultBody { return o.Payload } func (o *AddLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddLocationDefaultBody) // response payload @@ -123,6 +123,7 @@ AddLocationBody add location body swagger:model AddLocationBody */ type AddLocationBody struct { + // Location name Name string `json:"name,omitempty"` @@ -241,6 +242,7 @@ func (o *AddLocationBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddLocationBody) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -256,6 +258,7 @@ func (o *AddLocationBody) contextValidatePMMClientConfig(ctx context.Context, fo } func (o *AddLocationBody) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -271,6 +274,7 @@ func (o *AddLocationBody) contextValidatePMMServerConfig(ctx context.Context, fo } func (o *AddLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -308,6 +312,7 @@ AddLocationDefaultBody add location default body swagger:model AddLocationDefaultBody */ type AddLocationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -373,7 +378,9 @@ func (o *AddLocationDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddLocationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -384,6 +391,7 @@ func (o *AddLocationDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -412,6 +420,7 @@ AddLocationDefaultBodyDetailsItems0 add location default body details items0 swagger:model AddLocationDefaultBodyDetailsItems0 */ type AddLocationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -449,6 +458,7 @@ AddLocationOKBody add location OK body swagger:model AddLocationOKBody */ type AddLocationOKBody struct { + // Machine-readable ID. LocationID string `json:"location_id,omitempty"` } @@ -486,6 +496,7 @@ AddLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file sys swagger:model AddLocationParamsBodyPMMClientConfig */ type AddLocationParamsBodyPMMClientConfig struct { + // path Path string `json:"path,omitempty"` } @@ -523,6 +534,7 @@ AddLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file sys swagger:model AddLocationParamsBodyPMMServerConfig */ type AddLocationParamsBodyPMMServerConfig struct { + // path Path string `json:"path,omitempty"` } @@ -560,6 +572,7 @@ AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuratio swagger:model AddLocationParamsBodyS3Config */ type AddLocationParamsBodyS3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/locations/change_location_parameters.go b/api/managementpb/backup/json/client/locations/change_location_parameters.go index c24f94e848..d86902776e 100644 --- a/api/managementpb/backup/json/client/locations/change_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/change_location_parameters.go @@ -60,6 +60,7 @@ ChangeLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeLocationParams struct { + // Body. Body ChangeLocationBody @@ -129,6 +130,7 @@ func (o *ChangeLocationParams) SetBody(body ChangeLocationBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/change_location_responses.go b/api/managementpb/backup/json/client/locations/change_location_responses.go index 9f71cf16f4..1e9f274a15 100644 --- a/api/managementpb/backup/json/client/locations/change_location_responses.go +++ b/api/managementpb/backup/json/client/locations/change_location_responses.go @@ -60,12 +60,12 @@ type ChangeLocationOK struct { func (o *ChangeLocationOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Change][%d] changeLocationOk %+v", 200, o.Payload) } - func (o *ChangeLocationOK) GetPayload() interface{} { return o.Payload } func (o *ChangeLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangeLocationDefault) Code() int { func (o *ChangeLocationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Change][%d] ChangeLocation default %+v", o._statusCode, o.Payload) } - func (o *ChangeLocationDefault) GetPayload() *ChangeLocationDefaultBody { return o.Payload } func (o *ChangeLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeLocationDefaultBody) // response payload @@ -121,6 +121,7 @@ ChangeLocationBody change location body swagger:model ChangeLocationBody */ type ChangeLocationBody struct { + // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -242,6 +243,7 @@ func (o *ChangeLocationBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeLocationBody) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -257,6 +259,7 @@ func (o *ChangeLocationBody) contextValidatePMMClientConfig(ctx context.Context, } func (o *ChangeLocationBody) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -272,6 +275,7 @@ func (o *ChangeLocationBody) contextValidatePMMServerConfig(ctx context.Context, } func (o *ChangeLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -309,6 +313,7 @@ ChangeLocationDefaultBody change location default body swagger:model ChangeLocationDefaultBody */ type ChangeLocationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -374,7 +379,9 @@ func (o *ChangeLocationDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeLocationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -385,6 +392,7 @@ func (o *ChangeLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -413,6 +421,7 @@ ChangeLocationDefaultBodyDetailsItems0 change location default body details item swagger:model ChangeLocationDefaultBodyDetailsItems0 */ type ChangeLocationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -450,6 +459,7 @@ ChangeLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file swagger:model ChangeLocationParamsBodyPMMClientConfig */ type ChangeLocationParamsBodyPMMClientConfig struct { + // path Path string `json:"path,omitempty"` } @@ -487,6 +497,7 @@ ChangeLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file swagger:model ChangeLocationParamsBodyPMMServerConfig */ type ChangeLocationParamsBodyPMMServerConfig struct { + // path Path string `json:"path,omitempty"` } @@ -524,6 +535,7 @@ ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configura swagger:model ChangeLocationParamsBodyS3Config */ type ChangeLocationParamsBodyS3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/locations/list_locations_parameters.go b/api/managementpb/backup/json/client/locations/list_locations_parameters.go index 070bf3c0d3..e26ff5121d 100644 --- a/api/managementpb/backup/json/client/locations/list_locations_parameters.go +++ b/api/managementpb/backup/json/client/locations/list_locations_parameters.go @@ -60,6 +60,7 @@ ListLocationsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListLocationsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListLocationsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/list_locations_responses.go b/api/managementpb/backup/json/client/locations/list_locations_responses.go index 4400e58783..7d0aec99a3 100644 --- a/api/managementpb/backup/json/client/locations/list_locations_responses.go +++ b/api/managementpb/backup/json/client/locations/list_locations_responses.go @@ -60,12 +60,12 @@ type ListLocationsOK struct { func (o *ListLocationsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/List][%d] listLocationsOk %+v", 200, o.Payload) } - func (o *ListLocationsOK) GetPayload() *ListLocationsOKBody { return o.Payload } func (o *ListLocationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListLocationsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListLocationsDefault) Code() int { func (o *ListLocationsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/List][%d] ListLocations default %+v", o._statusCode, o.Payload) } - func (o *ListLocationsDefault) GetPayload() *ListLocationsDefaultBody { return o.Payload } func (o *ListLocationsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListLocationsDefaultBody) // response payload @@ -123,6 +123,7 @@ ListLocationsDefaultBody list locations default body swagger:model ListLocationsDefaultBody */ type ListLocationsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *ListLocationsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListLocationsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *ListLocationsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -227,6 +231,7 @@ ListLocationsDefaultBodyDetailsItems0 list locations default body details items0 swagger:model ListLocationsDefaultBodyDetailsItems0 */ type ListLocationsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ ListLocationsOKBody list locations OK body swagger:model ListLocationsOKBody */ type ListLocationsOKBody struct { + // locations Locations []*ListLocationsOKBodyLocationsItems0 `json:"locations"` } @@ -323,7 +329,9 @@ func (o *ListLocationsOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ListLocationsOKBody) contextValidateLocations(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Locations); i++ { + if o.Locations[i] != nil { if err := o.Locations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -334,6 +342,7 @@ func (o *ListLocationsOKBody) contextValidateLocations(ctx context.Context, form return err } } + } return nil @@ -362,6 +371,7 @@ ListLocationsOKBodyLocationsItems0 Location represents single Backup Location. swagger:model ListLocationsOKBodyLocationsItems0 */ type ListLocationsOKBodyLocationsItems0 struct { + // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -483,6 +493,7 @@ func (o *ListLocationsOKBodyLocationsItems0) ContextValidate(ctx context.Context } func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -498,6 +509,7 @@ func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMClientConfig(ctx } func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -513,6 +525,7 @@ func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMServerConfig(ctx } func (o *ListLocationsOKBodyLocationsItems0) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -550,6 +563,7 @@ ListLocationsOKBodyLocationsItems0PMMClientConfig PMMClientLocationConfig repres swagger:model ListLocationsOKBodyLocationsItems0PMMClientConfig */ type ListLocationsOKBodyLocationsItems0PMMClientConfig struct { + // path Path string `json:"path,omitempty"` } @@ -587,6 +601,7 @@ ListLocationsOKBodyLocationsItems0PMMServerConfig PMMServerLocationConfig repres swagger:model ListLocationsOKBodyLocationsItems0PMMServerConfig */ type ListLocationsOKBodyLocationsItems0PMMServerConfig struct { + // path Path string `json:"path,omitempty"` } @@ -624,6 +639,7 @@ ListLocationsOKBodyLocationsItems0S3Config S3LocationConfig represents S3 bucket swagger:model ListLocationsOKBodyLocationsItems0S3Config */ type ListLocationsOKBodyLocationsItems0S3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/locations/remove_location_parameters.go b/api/managementpb/backup/json/client/locations/remove_location_parameters.go index 593dd04ecd..279d1a1654 100644 --- a/api/managementpb/backup/json/client/locations/remove_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/remove_location_parameters.go @@ -60,6 +60,7 @@ RemoveLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveLocationParams struct { + // Body. Body RemoveLocationBody @@ -129,6 +130,7 @@ func (o *RemoveLocationParams) SetBody(body RemoveLocationBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/remove_location_responses.go b/api/managementpb/backup/json/client/locations/remove_location_responses.go index 9177250956..70c7ae2160 100644 --- a/api/managementpb/backup/json/client/locations/remove_location_responses.go +++ b/api/managementpb/backup/json/client/locations/remove_location_responses.go @@ -60,12 +60,12 @@ type RemoveLocationOK struct { func (o *RemoveLocationOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Remove][%d] removeLocationOk %+v", 200, o.Payload) } - func (o *RemoveLocationOK) GetPayload() interface{} { return o.Payload } func (o *RemoveLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveLocationDefault) Code() int { func (o *RemoveLocationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Remove][%d] RemoveLocation default %+v", o._statusCode, o.Payload) } - func (o *RemoveLocationDefault) GetPayload() *RemoveLocationDefaultBody { return o.Payload } func (o *RemoveLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveLocationDefaultBody) // response payload @@ -121,6 +121,7 @@ RemoveLocationBody remove location body swagger:model RemoveLocationBody */ type RemoveLocationBody struct { + // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -161,6 +162,7 @@ RemoveLocationDefaultBody remove location default body swagger:model RemoveLocationDefaultBody */ type RemoveLocationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *RemoveLocationDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveLocationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *RemoveLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -265,6 +270,7 @@ RemoveLocationDefaultBodyDetailsItems0 remove location default body details item swagger:model RemoveLocationDefaultBodyDetailsItems0 */ type RemoveLocationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/locations/test_location_config_parameters.go b/api/managementpb/backup/json/client/locations/test_location_config_parameters.go index b694abba5e..4e65319e8a 100644 --- a/api/managementpb/backup/json/client/locations/test_location_config_parameters.go +++ b/api/managementpb/backup/json/client/locations/test_location_config_parameters.go @@ -60,6 +60,7 @@ TestLocationConfigParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type TestLocationConfigParams struct { + // Body. Body TestLocationConfigBody @@ -129,6 +130,7 @@ func (o *TestLocationConfigParams) SetBody(body TestLocationConfigBody) { // WriteToRequest writes these params to a swagger request func (o *TestLocationConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/test_location_config_responses.go b/api/managementpb/backup/json/client/locations/test_location_config_responses.go index 30b30ae21d..46f138bc90 100644 --- a/api/managementpb/backup/json/client/locations/test_location_config_responses.go +++ b/api/managementpb/backup/json/client/locations/test_location_config_responses.go @@ -60,12 +60,12 @@ type TestLocationConfigOK struct { func (o *TestLocationConfigOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/TestConfig][%d] testLocationConfigOk %+v", 200, o.Payload) } - func (o *TestLocationConfigOK) GetPayload() interface{} { return o.Payload } func (o *TestLocationConfigOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *TestLocationConfigDefault) Code() int { func (o *TestLocationConfigDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/TestConfig][%d] TestLocationConfig default %+v", o._statusCode, o.Payload) } - func (o *TestLocationConfigDefault) GetPayload() *TestLocationConfigDefaultBody { return o.Payload } func (o *TestLocationConfigDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(TestLocationConfigDefaultBody) // response payload @@ -121,6 +121,7 @@ TestLocationConfigBody test location config body swagger:model TestLocationConfigBody */ type TestLocationConfigBody struct { + // pmm client config PMMClientConfig *TestLocationConfigParamsBodyPMMClientConfig `json:"pmm_client_config,omitempty"` @@ -233,6 +234,7 @@ func (o *TestLocationConfigBody) ContextValidate(ctx context.Context, formats st } func (o *TestLocationConfigBody) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -248,6 +250,7 @@ func (o *TestLocationConfigBody) contextValidatePMMClientConfig(ctx context.Cont } func (o *TestLocationConfigBody) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -263,6 +266,7 @@ func (o *TestLocationConfigBody) contextValidatePMMServerConfig(ctx context.Cont } func (o *TestLocationConfigBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -300,6 +304,7 @@ TestLocationConfigDefaultBody test location config default body swagger:model TestLocationConfigDefaultBody */ type TestLocationConfigDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -365,7 +370,9 @@ func (o *TestLocationConfigDefaultBody) ContextValidate(ctx context.Context, for } func (o *TestLocationConfigDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -376,6 +383,7 @@ func (o *TestLocationConfigDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -404,6 +412,7 @@ TestLocationConfigDefaultBodyDetailsItems0 test location config default body det swagger:model TestLocationConfigDefaultBodyDetailsItems0 */ type TestLocationConfigDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -441,6 +450,7 @@ TestLocationConfigParamsBodyPMMClientConfig PMMClientLocationConfig represents f swagger:model TestLocationConfigParamsBodyPMMClientConfig */ type TestLocationConfigParamsBodyPMMClientConfig struct { + // path Path string `json:"path,omitempty"` } @@ -478,6 +488,7 @@ TestLocationConfigParamsBodyPMMServerConfig PMMServerLocationConfig represents f swagger:model TestLocationConfigParamsBodyPMMServerConfig */ type TestLocationConfigParamsBodyPMMServerConfig struct { + // path Path string `json:"path,omitempty"` } @@ -515,6 +526,7 @@ TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket confi swagger:model TestLocationConfigParamsBodyS3Config */ type TestLocationConfigParamsBodyS3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go b/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go index e9058f4280..d60458608c 100644 --- a/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go +++ b/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go @@ -60,6 +60,7 @@ ListRestoreHistoryParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListRestoreHistoryParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListRestoreHistoryParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListRestoreHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go b/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go index e981d190f7..1ecf1b0f87 100644 --- a/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go +++ b/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go @@ -62,12 +62,12 @@ type ListRestoreHistoryOK struct { func (o *ListRestoreHistoryOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/RestoreHistory/List][%d] listRestoreHistoryOk %+v", 200, o.Payload) } - func (o *ListRestoreHistoryOK) GetPayload() *ListRestoreHistoryOKBody { return o.Payload } func (o *ListRestoreHistoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListRestoreHistoryOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListRestoreHistoryDefault) Code() int { func (o *ListRestoreHistoryDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/RestoreHistory/List][%d] ListRestoreHistory default %+v", o._statusCode, o.Payload) } - func (o *ListRestoreHistoryDefault) GetPayload() *ListRestoreHistoryDefaultBody { return o.Payload } func (o *ListRestoreHistoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListRestoreHistoryDefaultBody) // response payload @@ -125,6 +125,7 @@ ListRestoreHistoryDefaultBody list restore history default body swagger:model ListRestoreHistoryDefaultBody */ type ListRestoreHistoryDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *ListRestoreHistoryDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListRestoreHistoryDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *ListRestoreHistoryDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -229,6 +233,7 @@ ListRestoreHistoryDefaultBodyDetailsItems0 list restore history default body det swagger:model ListRestoreHistoryDefaultBodyDetailsItems0 */ type ListRestoreHistoryDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ ListRestoreHistoryOKBody list restore history OK body swagger:model ListRestoreHistoryOKBody */ type ListRestoreHistoryOKBody struct { + // items Items []*ListRestoreHistoryOKBodyItemsItems0 `json:"items"` } @@ -325,7 +331,9 @@ func (o *ListRestoreHistoryOKBody) ContextValidate(ctx context.Context, formats } func (o *ListRestoreHistoryOKBody) contextValidateItems(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Items); i++ { + if o.Items[i] != nil { if err := o.Items[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +344,7 @@ func (o *ListRestoreHistoryOKBody) contextValidateItems(ctx context.Context, for return err } } + } return nil @@ -364,6 +373,7 @@ ListRestoreHistoryOKBodyItemsItems0 RestoreHistoryItem represents single backup swagger:model ListRestoreHistoryOKBodyItemsItems0 */ type ListRestoreHistoryOKBodyItemsItems0 struct { + // Machine-readable restore id. RestoreID string `json:"restore_id,omitempty"` diff --git a/api/managementpb/backup/locations.pb.go b/api/managementpb/backup/locations.pb.go index 1acd5309f7..6a01f3061e 100644 --- a/api/managementpb/backup/locations.pb.go +++ b/api/managementpb/backup/locations.pb.go @@ -7,13 +7,12 @@ package backupv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -1075,26 +1074,23 @@ func file_managementpb_backup_locations_proto_rawDescGZIP() []byte { return file_managementpb_backup_locations_proto_rawDescData } -var ( - file_managementpb_backup_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 14) - file_managementpb_backup_locations_proto_goTypes = []interface{}{ - (*PMMServerLocationConfig)(nil), // 0: backup.v1beta1.PMMServerLocationConfig - (*PMMClientLocationConfig)(nil), // 1: backup.v1beta1.PMMClientLocationConfig - (*S3LocationConfig)(nil), // 2: backup.v1beta1.S3LocationConfig - (*Location)(nil), // 3: backup.v1beta1.Location - (*ListLocationsRequest)(nil), // 4: backup.v1beta1.ListLocationsRequest - (*ListLocationsResponse)(nil), // 5: backup.v1beta1.ListLocationsResponse - (*AddLocationRequest)(nil), // 6: backup.v1beta1.AddLocationRequest - (*AddLocationResponse)(nil), // 7: backup.v1beta1.AddLocationResponse - (*ChangeLocationRequest)(nil), // 8: backup.v1beta1.ChangeLocationRequest - (*ChangeLocationResponse)(nil), // 9: backup.v1beta1.ChangeLocationResponse - (*RemoveLocationRequest)(nil), // 10: backup.v1beta1.RemoveLocationRequest - (*RemoveLocationResponse)(nil), // 11: backup.v1beta1.RemoveLocationResponse - (*TestLocationConfigRequest)(nil), // 12: backup.v1beta1.TestLocationConfigRequest - (*TestLocationConfigResponse)(nil), // 13: backup.v1beta1.TestLocationConfigResponse - } -) - +var file_managementpb_backup_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_managementpb_backup_locations_proto_goTypes = []interface{}{ + (*PMMServerLocationConfig)(nil), // 0: backup.v1beta1.PMMServerLocationConfig + (*PMMClientLocationConfig)(nil), // 1: backup.v1beta1.PMMClientLocationConfig + (*S3LocationConfig)(nil), // 2: backup.v1beta1.S3LocationConfig + (*Location)(nil), // 3: backup.v1beta1.Location + (*ListLocationsRequest)(nil), // 4: backup.v1beta1.ListLocationsRequest + (*ListLocationsResponse)(nil), // 5: backup.v1beta1.ListLocationsResponse + (*AddLocationRequest)(nil), // 6: backup.v1beta1.AddLocationRequest + (*AddLocationResponse)(nil), // 7: backup.v1beta1.AddLocationResponse + (*ChangeLocationRequest)(nil), // 8: backup.v1beta1.ChangeLocationRequest + (*ChangeLocationResponse)(nil), // 9: backup.v1beta1.ChangeLocationResponse + (*RemoveLocationRequest)(nil), // 10: backup.v1beta1.RemoveLocationRequest + (*RemoveLocationResponse)(nil), // 11: backup.v1beta1.RemoveLocationResponse + (*TestLocationConfigRequest)(nil), // 12: backup.v1beta1.TestLocationConfigRequest + (*TestLocationConfigResponse)(nil), // 13: backup.v1beta1.TestLocationConfigResponse +} var file_managementpb_backup_locations_proto_depIdxs = []int32{ 1, // 0: backup.v1beta1.Location.pmm_client_config:type_name -> backup.v1beta1.PMMClientLocationConfig 0, // 1: backup.v1beta1.Location.pmm_server_config:type_name -> backup.v1beta1.PMMServerLocationConfig diff --git a/api/managementpb/backup/locations.pb.gw.go b/api/managementpb/backup/locations.pb.gw.go index 1551fc8548..80e901f8a9 100644 --- a/api/managementpb/backup/locations.pb.gw.go +++ b/api/managementpb/backup/locations.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Locations_ListLocations_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListLocationsRequest @@ -47,6 +45,7 @@ func request_Locations_ListLocations_0(ctx context.Context, marshaler runtime.Ma msg, err := client.ListLocations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Locations_ListLocations_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Locations_ListLocations_0(ctx context.Context, marshaler runt msg, err := server.ListLocations(ctx, &protoReq) return msg, metadata, err + } func request_Locations_AddLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Locations_AddLocation_0(ctx context.Context, marshaler runtime.Mars msg, err := client.AddLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Locations_AddLocation_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Locations_AddLocation_0(ctx context.Context, marshaler runtim msg, err := server.AddLocation(ctx, &protoReq) return msg, metadata, err + } func request_Locations_ChangeLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Locations_ChangeLocation_0(ctx context.Context, marshaler runtime.M msg, err := client.ChangeLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Locations_ChangeLocation_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Locations_ChangeLocation_0(ctx context.Context, marshaler run msg, err := server.ChangeLocation(ctx, &protoReq) return msg, metadata, err + } func request_Locations_RemoveLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Locations_RemoveLocation_0(ctx context.Context, marshaler runtime.M msg, err := client.RemoveLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Locations_RemoveLocation_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Locations_RemoveLocation_0(ctx context.Context, marshaler run msg, err := server.RemoveLocation(ctx, &protoReq) return msg, metadata, err + } func request_Locations_TestLocationConfig_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Locations_TestLocationConfig_0(ctx context.Context, marshaler runti msg, err := client.TestLocationConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Locations_TestLocationConfig_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Locations_TestLocationConfig_0(ctx context.Context, marshaler msg, err := server.TestLocationConfig(ctx, &protoReq) return msg, metadata, err + } // RegisterLocationsHandlerServer registers the http handlers for service Locations to "mux". @@ -198,6 +206,7 @@ func local_request_Locations_TestLocationConfig_0(ctx context.Context, marshaler // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLocationsHandlerFromEndpoint instead. func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LocationsServer) error { + mux.Handle("POST", pattern_Locations_ListLocations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -220,6 +229,7 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ListLocations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_AddLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -244,6 +254,7 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_AddLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_ChangeLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -268,6 +279,7 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ChangeLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_RemoveLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -292,6 +304,7 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_RemoveLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_TestLocationConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -316,6 +329,7 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_TestLocationConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -358,6 +372,7 @@ func RegisterLocationsHandler(ctx context.Context, mux *runtime.ServeMux, conn * // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "LocationsClient" to call the correct interceptors. func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LocationsClient) error { + mux.Handle("POST", pattern_Locations_ListLocations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -377,6 +392,7 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ListLocations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_AddLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -398,6 +414,7 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_AddLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_ChangeLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -419,6 +436,7 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ChangeLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_RemoveLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -440,6 +458,7 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_RemoveLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Locations_TestLocationConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -461,6 +480,7 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_TestLocationConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/backup/locations.validator.pb.go b/api/managementpb/backup/locations.validator.pb.go index 23252104e5..0c7fd85bcc 100644 --- a/api/managementpb/backup/locations.validator.pb.go +++ b/api/managementpb/backup/locations.validator.pb.go @@ -6,19 +6,16 @@ package backupv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *PMMServerLocationConfig) Validate() error { if this.Path == "" { @@ -26,14 +23,12 @@ func (this *PMMServerLocationConfig) Validate() error { } return nil } - func (this *PMMClientLocationConfig) Validate() error { if this.Path == "" { return github_com_mwitkow_go_proto_validators.FieldError("Path", fmt.Errorf(`value '%v' must not be an empty string`, this.Path)) } return nil } - func (this *S3LocationConfig) Validate() error { if this.Endpoint == "" { return github_com_mwitkow_go_proto_validators.FieldError("Endpoint", fmt.Errorf(`value '%v' must not be an empty string`, this.Endpoint)) @@ -49,7 +44,6 @@ func (this *S3LocationConfig) Validate() error { } return nil } - func (this *Location) Validate() error { if oneOfNester, ok := this.GetConfig().(*Location_PmmClientConfig); ok { if oneOfNester.PmmClientConfig != nil { @@ -74,11 +68,9 @@ func (this *Location) Validate() error { } return nil } - func (this *ListLocationsRequest) Validate() error { return nil } - func (this *ListLocationsResponse) Validate() error { for _, item := range this.Locations { if item != nil { @@ -89,7 +81,6 @@ func (this *ListLocationsResponse) Validate() error { } return nil } - func (this *AddLocationRequest) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) @@ -111,11 +102,9 @@ func (this *AddLocationRequest) Validate() error { } return nil } - func (this *AddLocationResponse) Validate() error { return nil } - func (this *ChangeLocationRequest) Validate() error { if this.LocationId == "" { return github_com_mwitkow_go_proto_validators.FieldError("LocationId", fmt.Errorf(`value '%v' must not be an empty string`, this.LocationId)) @@ -137,19 +126,15 @@ func (this *ChangeLocationRequest) Validate() error { } return nil } - func (this *ChangeLocationResponse) Validate() error { return nil } - func (this *RemoveLocationRequest) Validate() error { return nil } - func (this *RemoveLocationResponse) Validate() error { return nil } - func (this *TestLocationConfigRequest) Validate() error { if this.PmmClientConfig != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PmmClientConfig); err != nil { @@ -168,7 +153,6 @@ func (this *TestLocationConfigRequest) Validate() error { } return nil } - func (this *TestLocationConfigResponse) Validate() error { return nil } diff --git a/api/managementpb/backup/locations_grpc.pb.go b/api/managementpb/backup/locations_grpc.pb.go index 54c7ee33d8..6bec37e469 100644 --- a/api/managementpb/backup/locations_grpc.pb.go +++ b/api/managementpb/backup/locations_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -106,24 +105,21 @@ type LocationsServer interface { } // UnimplementedLocationsServer must be embedded to have forward compatible implementations. -type UnimplementedLocationsServer struct{} +type UnimplementedLocationsServer struct { +} func (UnimplementedLocationsServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLocations not implemented") } - func (UnimplementedLocationsServer) AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddLocation not implemented") } - func (UnimplementedLocationsServer) ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeLocation not implemented") } - func (UnimplementedLocationsServer) RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveLocation not implemented") } - func (UnimplementedLocationsServer) TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TestLocationConfig not implemented") } diff --git a/api/managementpb/backup/restores.pb.go b/api/managementpb/backup/restores.pb.go index 70699f5ffa..096d44b34d 100644 --- a/api/managementpb/backup/restores.pb.go +++ b/api/managementpb/backup/restores.pb.go @@ -7,13 +7,12 @@ package backupv1beta1 import ( - reflect "reflect" - sync "sync" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) const ( @@ -406,19 +405,16 @@ func file_managementpb_backup_restores_proto_rawDescGZIP() []byte { return file_managementpb_backup_restores_proto_rawDescData } -var ( - file_managementpb_backup_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_backup_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_backup_restores_proto_goTypes = []interface{}{ - (RestoreStatus)(0), // 0: backup.v1beta1.RestoreStatus - (*RestoreHistoryItem)(nil), // 1: backup.v1beta1.RestoreHistoryItem - (*ListRestoreHistoryRequest)(nil), // 2: backup.v1beta1.ListRestoreHistoryRequest - (*ListRestoreHistoryResponse)(nil), // 3: backup.v1beta1.ListRestoreHistoryResponse - (DataModel)(0), // 4: backup.v1beta1.DataModel - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - } -) - +var file_managementpb_backup_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_backup_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_backup_restores_proto_goTypes = []interface{}{ + (RestoreStatus)(0), // 0: backup.v1beta1.RestoreStatus + (*RestoreHistoryItem)(nil), // 1: backup.v1beta1.RestoreHistoryItem + (*ListRestoreHistoryRequest)(nil), // 2: backup.v1beta1.ListRestoreHistoryRequest + (*ListRestoreHistoryResponse)(nil), // 3: backup.v1beta1.ListRestoreHistoryResponse + (DataModel)(0), // 4: backup.v1beta1.DataModel + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp +} var file_managementpb_backup_restores_proto_depIdxs = []int32{ 4, // 0: backup.v1beta1.RestoreHistoryItem.data_model:type_name -> backup.v1beta1.DataModel 0, // 1: backup.v1beta1.RestoreHistoryItem.status:type_name -> backup.v1beta1.RestoreStatus diff --git a/api/managementpb/backup/restores.pb.gw.go b/api/managementpb/backup/restores.pb.gw.go index c564f3251b..d6575081a3 100644 --- a/api/managementpb/backup/restores.pb.gw.go +++ b/api/managementpb/backup/restores.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, marshaler runtime.Marshaler, client RestoreHistoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListRestoreHistoryRequest @@ -47,6 +45,7 @@ func request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, marshaler msg, err := client.ListRestoreHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, marshaler runtime.Marshaler, server RestoreHistoryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, mars msg, err := server.ListRestoreHistory(ctx, &protoReq) return msg, metadata, err + } // RegisterRestoreHistoryHandlerServer registers the http handlers for service RestoreHistory to "mux". @@ -70,6 +70,7 @@ func local_request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRestoreHistoryHandlerFromEndpoint instead. func RegisterRestoreHistoryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RestoreHistoryServer) error { + mux.Handle("POST", pattern_RestoreHistory_ListRestoreHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterRestoreHistoryHandlerServer(ctx context.Context, mux *runtime.Serve } forward_RestoreHistory_ListRestoreHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterRestoreHistoryHandler(ctx context.Context, mux *runtime.ServeMux, c // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "RestoreHistoryClient" to call the correct interceptors. func RegisterRestoreHistoryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RestoreHistoryClient) error { + mux.Handle("POST", pattern_RestoreHistory_ListRestoreHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterRestoreHistoryHandlerClient(ctx context.Context, mux *runtime.Serve } forward_RestoreHistory_ListRestoreHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_RestoreHistory_ListRestoreHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "backup", "RestoreHistory", "List"}, "")) +var ( + pattern_RestoreHistory_ListRestoreHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "backup", "RestoreHistory", "List"}, "")) +) -var forward_RestoreHistory_ListRestoreHistory_0 = runtime.ForwardResponseMessage +var ( + forward_RestoreHistory_ListRestoreHistory_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/backup/restores.validator.pb.go b/api/managementpb/backup/restores.validator.pb.go index e9080d17b4..3bd327b06a 100644 --- a/api/managementpb/backup/restores.validator.pb.go +++ b/api/managementpb/backup/restores.validator.pb.go @@ -6,19 +6,16 @@ package backupv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *RestoreHistoryItem) Validate() error { if this.StartedAt != nil { @@ -33,11 +30,9 @@ func (this *RestoreHistoryItem) Validate() error { } return nil } - func (this *ListRestoreHistoryRequest) Validate() error { return nil } - func (this *ListRestoreHistoryResponse) Validate() error { for _, item := range this.Items { if item != nil { diff --git a/api/managementpb/backup/restores_grpc.pb.go b/api/managementpb/backup/restores_grpc.pb.go index 0b9ff8c078..3f5423beee 100644 --- a/api/managementpb/backup/restores_grpc.pb.go +++ b/api/managementpb/backup/restores_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type RestoreHistoryServer interface { } // UnimplementedRestoreHistoryServer must be embedded to have forward compatible implementations. -type UnimplementedRestoreHistoryServer struct{} +type UnimplementedRestoreHistoryServer struct { +} func (UnimplementedRestoreHistoryServer) ListRestoreHistory(context.Context, *ListRestoreHistoryRequest) (*ListRestoreHistoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListRestoreHistory not implemented") diff --git a/api/managementpb/boolean_flag.pb.go b/api/managementpb/boolean_flag.pb.go index 24140f2a60..ca3102dbd7 100644 --- a/api/managementpb/boolean_flag.pb.go +++ b/api/managementpb/boolean_flag.pb.go @@ -7,11 +7,10 @@ package managementpb import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -109,13 +108,10 @@ func file_managementpb_boolean_flag_proto_rawDescGZIP() []byte { return file_managementpb_boolean_flag_proto_rawDescData } -var ( - file_managementpb_boolean_flag_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_boolean_flag_proto_goTypes = []interface{}{ - (BooleanFlag)(0), // 0: managementpb.BooleanFlag - } -) - +var file_managementpb_boolean_flag_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_boolean_flag_proto_goTypes = []interface{}{ + (BooleanFlag)(0), // 0: managementpb.BooleanFlag +} var file_managementpb_boolean_flag_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/boolean_flag.validator.pb.go b/api/managementpb/boolean_flag.validator.pb.go index 5484086337..f4ac09afe9 100644 --- a/api/managementpb/boolean_flag.validator.pb.go +++ b/api/managementpb/boolean_flag.validator.pb.go @@ -6,13 +6,10 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/managementpb/checks.pb.go b/api/managementpb/checks.pb.go index d3ef647114..26dddddd2b 100644 --- a/api/managementpb/checks.pb.go +++ b/api/managementpb/checks.pb.go @@ -7,13 +7,12 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -1523,38 +1522,35 @@ func file_managementpb_checks_proto_rawDescGZIP() []byte { return file_managementpb_checks_proto_rawDescData } -var ( - file_managementpb_checks_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_checks_proto_msgTypes = make([]protoimpl.MessageInfo, 21) - file_managementpb_checks_proto_goTypes = []interface{}{ - (SecurityCheckInterval)(0), // 0: management.SecurityCheckInterval - (*SecurityCheckResult)(nil), // 1: management.SecurityCheckResult - (*CheckResultSummary)(nil), // 2: management.CheckResultSummary - (*CheckResult)(nil), // 3: management.CheckResult - (*SecurityCheck)(nil), // 4: management.SecurityCheck - (*ChangeSecurityCheckParams)(nil), // 5: management.ChangeSecurityCheckParams - (*GetSecurityCheckResultsRequest)(nil), // 6: management.GetSecurityCheckResultsRequest - (*GetSecurityCheckResultsResponse)(nil), // 7: management.GetSecurityCheckResultsResponse - (*StartSecurityChecksRequest)(nil), // 8: management.StartSecurityChecksRequest - (*StartSecurityChecksResponse)(nil), // 9: management.StartSecurityChecksResponse - (*ListSecurityChecksRequest)(nil), // 10: management.ListSecurityChecksRequest - (*ListSecurityChecksResponse)(nil), // 11: management.ListSecurityChecksResponse - (*ChangeSecurityChecksRequest)(nil), // 12: management.ChangeSecurityChecksRequest - (*ChangeSecurityChecksResponse)(nil), // 13: management.ChangeSecurityChecksResponse - (*ListFailedServicesRequest)(nil), // 14: management.ListFailedServicesRequest - (*ListFailedServicesResponse)(nil), // 15: management.ListFailedServicesResponse - (*GetFailedChecksRequest)(nil), // 16: management.GetFailedChecksRequest - (*GetFailedChecksResponse)(nil), // 17: management.GetFailedChecksResponse - (*ToggleCheckAlertRequest)(nil), // 18: management.ToggleCheckAlertRequest - (*ToggleCheckAlertResponse)(nil), // 19: management.ToggleCheckAlertResponse - nil, // 20: management.SecurityCheckResult.LabelsEntry - nil, // 21: management.CheckResult.LabelsEntry - (Severity)(0), // 22: management.Severity - (*PageParams)(nil), // 23: management.PageParams - (*PageTotals)(nil), // 24: management.PageTotals - } -) - +var file_managementpb_checks_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_checks_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_managementpb_checks_proto_goTypes = []interface{}{ + (SecurityCheckInterval)(0), // 0: management.SecurityCheckInterval + (*SecurityCheckResult)(nil), // 1: management.SecurityCheckResult + (*CheckResultSummary)(nil), // 2: management.CheckResultSummary + (*CheckResult)(nil), // 3: management.CheckResult + (*SecurityCheck)(nil), // 4: management.SecurityCheck + (*ChangeSecurityCheckParams)(nil), // 5: management.ChangeSecurityCheckParams + (*GetSecurityCheckResultsRequest)(nil), // 6: management.GetSecurityCheckResultsRequest + (*GetSecurityCheckResultsResponse)(nil), // 7: management.GetSecurityCheckResultsResponse + (*StartSecurityChecksRequest)(nil), // 8: management.StartSecurityChecksRequest + (*StartSecurityChecksResponse)(nil), // 9: management.StartSecurityChecksResponse + (*ListSecurityChecksRequest)(nil), // 10: management.ListSecurityChecksRequest + (*ListSecurityChecksResponse)(nil), // 11: management.ListSecurityChecksResponse + (*ChangeSecurityChecksRequest)(nil), // 12: management.ChangeSecurityChecksRequest + (*ChangeSecurityChecksResponse)(nil), // 13: management.ChangeSecurityChecksResponse + (*ListFailedServicesRequest)(nil), // 14: management.ListFailedServicesRequest + (*ListFailedServicesResponse)(nil), // 15: management.ListFailedServicesResponse + (*GetFailedChecksRequest)(nil), // 16: management.GetFailedChecksRequest + (*GetFailedChecksResponse)(nil), // 17: management.GetFailedChecksResponse + (*ToggleCheckAlertRequest)(nil), // 18: management.ToggleCheckAlertRequest + (*ToggleCheckAlertResponse)(nil), // 19: management.ToggleCheckAlertResponse + nil, // 20: management.SecurityCheckResult.LabelsEntry + nil, // 21: management.CheckResult.LabelsEntry + (Severity)(0), // 22: management.Severity + (*PageParams)(nil), // 23: management.PageParams + (*PageTotals)(nil), // 24: management.PageTotals +} var file_managementpb_checks_proto_depIdxs = []int32{ 22, // 0: management.SecurityCheckResult.severity:type_name -> management.Severity 20, // 1: management.SecurityCheckResult.labels:type_name -> management.SecurityCheckResult.LabelsEntry diff --git a/api/managementpb/checks.pb.gw.go b/api/managementpb/checks.pb.gw.go index ad8af336d9..fc000aceb2 100644 --- a/api/managementpb/checks.pb.gw.go +++ b/api/managementpb/checks.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_SecurityChecks_ListFailedServices_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListFailedServicesRequest @@ -47,6 +45,7 @@ func request_SecurityChecks_ListFailedServices_0(ctx context.Context, marshaler msg, err := client.ListFailedServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_ListFailedServices_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_SecurityChecks_ListFailedServices_0(ctx context.Context, mars msg, err := server.ListFailedServices(ctx, &protoReq) return msg, metadata, err + } func request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshaler run msg, err := client.GetFailedChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshal msg, err := server.GetFailedChecks(ctx, &protoReq) return msg, metadata, err + } func request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marshaler ru msg, err := client.ToggleCheckAlert(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marsha msg, err := server.ToggleCheckAlert(ctx, &protoReq) return msg, metadata, err + } func request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, marsh msg, err := client.GetSecurityCheckResults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, msg, err := server.GetSecurityCheckResults(ctx, &protoReq) return msg, metadata, err + } func request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, marshaler msg, err := client.StartSecurityChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, mar msg, err := server.StartSecurityChecks(ctx, &protoReq) return msg, metadata, err + } func request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, marshaler msg, err := client.ListSecurityChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, mars msg, err := server.ListSecurityChecks(ctx, &protoReq) return msg, metadata, err + } func request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, marshale msg, err := client.ChangeSecurityChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, ma msg, err := server.ChangeSecurityChecks(ctx, &protoReq) return msg, metadata, err + } // RegisterSecurityChecksHandlerServer registers the http handlers for service SecurityChecks to "mux". @@ -262,6 +274,7 @@ func local_request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSecurityChecksHandlerFromEndpoint instead. func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecurityChecksServer) error { + mux.Handle("POST", pattern_SecurityChecks_ListFailedServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -284,6 +297,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListFailedServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_GetFailedChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -308,6 +322,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetFailedChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_ToggleCheckAlert_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -332,6 +347,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ToggleCheckAlert_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_GetSecurityCheckResults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -356,6 +372,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetSecurityCheckResults_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_StartSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -380,6 +397,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_StartSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_ListSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -404,6 +422,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_ChangeSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -428,6 +447,7 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ChangeSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -470,6 +490,7 @@ func RegisterSecurityChecksHandler(ctx context.Context, mux *runtime.ServeMux, c // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "SecurityChecksClient" to call the correct interceptors. func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecurityChecksClient) error { + mux.Handle("POST", pattern_SecurityChecks_ListFailedServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -489,6 +510,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListFailedServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_GetFailedChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -510,6 +532,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetFailedChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_ToggleCheckAlert_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -531,6 +554,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ToggleCheckAlert_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_GetSecurityCheckResults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -552,6 +576,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetSecurityCheckResults_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_StartSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -573,6 +598,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_StartSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_ListSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -594,6 +620,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_SecurityChecks_ChangeSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -615,6 +642,7 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ChangeSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/checks.validator.pb.go b/api/managementpb/checks.validator.pb.go index 60dc874e6f..b42c872ad4 100644 --- a/api/managementpb/checks.validator.pb.go +++ b/api/managementpb/checks.validator.pb.go @@ -6,46 +6,37 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *SecurityCheckResult) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *CheckResultSummary) Validate() error { return nil } - func (this *CheckResult) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *SecurityCheck) Validate() error { return nil } - func (this *ChangeSecurityCheckParams) Validate() error { return nil } - func (this *GetSecurityCheckResultsRequest) Validate() error { return nil } - func (this *GetSecurityCheckResultsResponse) Validate() error { for _, item := range this.Results { if item != nil { @@ -56,19 +47,15 @@ func (this *GetSecurityCheckResultsResponse) Validate() error { } return nil } - func (this *StartSecurityChecksRequest) Validate() error { return nil } - func (this *StartSecurityChecksResponse) Validate() error { return nil } - func (this *ListSecurityChecksRequest) Validate() error { return nil } - func (this *ListSecurityChecksResponse) Validate() error { for _, item := range this.Checks { if item != nil { @@ -79,7 +66,6 @@ func (this *ListSecurityChecksResponse) Validate() error { } return nil } - func (this *ChangeSecurityChecksRequest) Validate() error { for _, item := range this.Params { if item != nil { @@ -90,15 +76,12 @@ func (this *ChangeSecurityChecksRequest) Validate() error { } return nil } - func (this *ChangeSecurityChecksResponse) Validate() error { return nil } - func (this *ListFailedServicesRequest) Validate() error { return nil } - func (this *ListFailedServicesResponse) Validate() error { for _, item := range this.Result { if item != nil { @@ -109,7 +92,6 @@ func (this *ListFailedServicesResponse) Validate() error { } return nil } - func (this *GetFailedChecksRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -118,7 +100,6 @@ func (this *GetFailedChecksRequest) Validate() error { } return nil } - func (this *GetFailedChecksResponse) Validate() error { for _, item := range this.Results { if item != nil { @@ -134,11 +115,9 @@ func (this *GetFailedChecksResponse) Validate() error { } return nil } - func (this *ToggleCheckAlertRequest) Validate() error { return nil } - func (this *ToggleCheckAlertResponse) Validate() error { return nil } diff --git a/api/managementpb/checks_grpc.pb.go b/api/managementpb/checks_grpc.pb.go index ef4b167e7f..1f3f4d75be 100644 --- a/api/managementpb/checks_grpc.pb.go +++ b/api/managementpb/checks_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -135,32 +134,27 @@ type SecurityChecksServer interface { } // UnimplementedSecurityChecksServer must be embedded to have forward compatible implementations. -type UnimplementedSecurityChecksServer struct{} +type UnimplementedSecurityChecksServer struct { +} func (UnimplementedSecurityChecksServer) ListFailedServices(context.Context, *ListFailedServicesRequest) (*ListFailedServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListFailedServices not implemented") } - func (UnimplementedSecurityChecksServer) GetFailedChecks(context.Context, *GetFailedChecksRequest) (*GetFailedChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFailedChecks not implemented") } - func (UnimplementedSecurityChecksServer) ToggleCheckAlert(context.Context, *ToggleCheckAlertRequest) (*ToggleCheckAlertResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ToggleCheckAlert not implemented") } - func (UnimplementedSecurityChecksServer) GetSecurityCheckResults(context.Context, *GetSecurityCheckResultsRequest) (*GetSecurityCheckResultsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSecurityCheckResults not implemented") } - func (UnimplementedSecurityChecksServer) StartSecurityChecks(context.Context, *StartSecurityChecksRequest) (*StartSecurityChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartSecurityChecks not implemented") } - func (UnimplementedSecurityChecksServer) ListSecurityChecks(context.Context, *ListSecurityChecksRequest) (*ListSecurityChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSecurityChecks not implemented") } - func (UnimplementedSecurityChecksServer) ChangeSecurityChecks(context.Context, *ChangeSecurityChecksRequest) (*ChangeSecurityChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeSecurityChecks not implemented") } diff --git a/api/managementpb/dbaas/components.pb.go b/api/managementpb/dbaas/components.pb.go index 577bd65bf3..603e876ce7 100644 --- a/api/managementpb/dbaas/components.pb.go +++ b/api/managementpb/dbaas/components.pb.go @@ -7,13 +7,12 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -1435,42 +1434,39 @@ func file_managementpb_dbaas_components_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_components_proto_rawDescData } -var ( - file_managementpb_dbaas_components_proto_msgTypes = make([]protoimpl.MessageInfo, 29) - file_managementpb_dbaas_components_proto_goTypes = []interface{}{ - (*Component)(nil), // 0: dbaas.v1beta1.Component - (*Matrix)(nil), // 1: dbaas.v1beta1.Matrix - (*OperatorVersion)(nil), // 2: dbaas.v1beta1.OperatorVersion - (*GetPSMDBComponentsRequest)(nil), // 3: dbaas.v1beta1.GetPSMDBComponentsRequest - (*GetPSMDBComponentsResponse)(nil), // 4: dbaas.v1beta1.GetPSMDBComponentsResponse - (*GetPXCComponentsRequest)(nil), // 5: dbaas.v1beta1.GetPXCComponentsRequest - (*GetPXCComponentsResponse)(nil), // 6: dbaas.v1beta1.GetPXCComponentsResponse - (*ChangeComponent)(nil), // 7: dbaas.v1beta1.ChangeComponent - (*ChangePSMDBComponentsRequest)(nil), // 8: dbaas.v1beta1.ChangePSMDBComponentsRequest - (*ChangePSMDBComponentsResponse)(nil), // 9: dbaas.v1beta1.ChangePSMDBComponentsResponse - (*ChangePXCComponentsRequest)(nil), // 10: dbaas.v1beta1.ChangePXCComponentsRequest - (*ChangePXCComponentsResponse)(nil), // 11: dbaas.v1beta1.ChangePXCComponentsResponse - (*InstallOperatorRequest)(nil), // 12: dbaas.v1beta1.InstallOperatorRequest - (*InstallOperatorResponse)(nil), // 13: dbaas.v1beta1.InstallOperatorResponse - (*CheckForOperatorUpdateRequest)(nil), // 14: dbaas.v1beta1.CheckForOperatorUpdateRequest - (*ComponentUpdateInformation)(nil), // 15: dbaas.v1beta1.ComponentUpdateInformation - (*ComponentsUpdateInformation)(nil), // 16: dbaas.v1beta1.ComponentsUpdateInformation - (*CheckForOperatorUpdateResponse)(nil), // 17: dbaas.v1beta1.CheckForOperatorUpdateResponse - nil, // 18: dbaas.v1beta1.Matrix.MongodEntry - nil, // 19: dbaas.v1beta1.Matrix.PxcEntry - nil, // 20: dbaas.v1beta1.Matrix.PmmEntry - nil, // 21: dbaas.v1beta1.Matrix.ProxysqlEntry - nil, // 22: dbaas.v1beta1.Matrix.HaproxyEntry - nil, // 23: dbaas.v1beta1.Matrix.BackupEntry - nil, // 24: dbaas.v1beta1.Matrix.OperatorEntry - nil, // 25: dbaas.v1beta1.Matrix.LogCollectorEntry - (*ChangeComponent_ComponentVersion)(nil), // 26: dbaas.v1beta1.ChangeComponent.ComponentVersion - nil, // 27: dbaas.v1beta1.ComponentsUpdateInformation.ComponentToUpdateInformationEntry - nil, // 28: dbaas.v1beta1.CheckForOperatorUpdateResponse.ClusterToComponentsEntry - (OperatorsStatus)(0), // 29: dbaas.v1beta1.OperatorsStatus - } -) - +var file_managementpb_dbaas_components_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_managementpb_dbaas_components_proto_goTypes = []interface{}{ + (*Component)(nil), // 0: dbaas.v1beta1.Component + (*Matrix)(nil), // 1: dbaas.v1beta1.Matrix + (*OperatorVersion)(nil), // 2: dbaas.v1beta1.OperatorVersion + (*GetPSMDBComponentsRequest)(nil), // 3: dbaas.v1beta1.GetPSMDBComponentsRequest + (*GetPSMDBComponentsResponse)(nil), // 4: dbaas.v1beta1.GetPSMDBComponentsResponse + (*GetPXCComponentsRequest)(nil), // 5: dbaas.v1beta1.GetPXCComponentsRequest + (*GetPXCComponentsResponse)(nil), // 6: dbaas.v1beta1.GetPXCComponentsResponse + (*ChangeComponent)(nil), // 7: dbaas.v1beta1.ChangeComponent + (*ChangePSMDBComponentsRequest)(nil), // 8: dbaas.v1beta1.ChangePSMDBComponentsRequest + (*ChangePSMDBComponentsResponse)(nil), // 9: dbaas.v1beta1.ChangePSMDBComponentsResponse + (*ChangePXCComponentsRequest)(nil), // 10: dbaas.v1beta1.ChangePXCComponentsRequest + (*ChangePXCComponentsResponse)(nil), // 11: dbaas.v1beta1.ChangePXCComponentsResponse + (*InstallOperatorRequest)(nil), // 12: dbaas.v1beta1.InstallOperatorRequest + (*InstallOperatorResponse)(nil), // 13: dbaas.v1beta1.InstallOperatorResponse + (*CheckForOperatorUpdateRequest)(nil), // 14: dbaas.v1beta1.CheckForOperatorUpdateRequest + (*ComponentUpdateInformation)(nil), // 15: dbaas.v1beta1.ComponentUpdateInformation + (*ComponentsUpdateInformation)(nil), // 16: dbaas.v1beta1.ComponentsUpdateInformation + (*CheckForOperatorUpdateResponse)(nil), // 17: dbaas.v1beta1.CheckForOperatorUpdateResponse + nil, // 18: dbaas.v1beta1.Matrix.MongodEntry + nil, // 19: dbaas.v1beta1.Matrix.PxcEntry + nil, // 20: dbaas.v1beta1.Matrix.PmmEntry + nil, // 21: dbaas.v1beta1.Matrix.ProxysqlEntry + nil, // 22: dbaas.v1beta1.Matrix.HaproxyEntry + nil, // 23: dbaas.v1beta1.Matrix.BackupEntry + nil, // 24: dbaas.v1beta1.Matrix.OperatorEntry + nil, // 25: dbaas.v1beta1.Matrix.LogCollectorEntry + (*ChangeComponent_ComponentVersion)(nil), // 26: dbaas.v1beta1.ChangeComponent.ComponentVersion + nil, // 27: dbaas.v1beta1.ComponentsUpdateInformation.ComponentToUpdateInformationEntry + nil, // 28: dbaas.v1beta1.CheckForOperatorUpdateResponse.ClusterToComponentsEntry + (OperatorsStatus)(0), // 29: dbaas.v1beta1.OperatorsStatus +} var file_managementpb_dbaas_components_proto_depIdxs = []int32{ 18, // 0: dbaas.v1beta1.Matrix.mongod:type_name -> dbaas.v1beta1.Matrix.MongodEntry 19, // 1: dbaas.v1beta1.Matrix.pxc:type_name -> dbaas.v1beta1.Matrix.PxcEntry diff --git a/api/managementpb/dbaas/components.pb.gw.go b/api/managementpb/dbaas/components.pb.gw.go index 15e795334d..a93c5b7ce7 100644 --- a/api/managementpb/dbaas/components.pb.gw.go +++ b/api/managementpb/dbaas/components.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Components_GetPSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetPSMDBComponentsRequest @@ -47,6 +45,7 @@ func request_Components_GetPSMDBComponents_0(ctx context.Context, marshaler runt msg, err := client.GetPSMDBComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Components_GetPSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Components_GetPSMDBComponents_0(ctx context.Context, marshale msg, err := server.GetPSMDBComponents(ctx, &protoReq) return msg, metadata, err + } func request_Components_GetPXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Components_GetPXCComponents_0(ctx context.Context, marshaler runtim msg, err := client.GetPXCComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Components_GetPXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Components_GetPXCComponents_0(ctx context.Context, marshaler msg, err := server.GetPXCComponents(ctx, &protoReq) return msg, metadata, err + } func request_Components_ChangePSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Components_ChangePSMDBComponents_0(ctx context.Context, marshaler r msg, err := client.ChangePSMDBComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Components_ChangePSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Components_ChangePSMDBComponents_0(ctx context.Context, marsh msg, err := server.ChangePSMDBComponents(ctx, &protoReq) return msg, metadata, err + } func request_Components_ChangePXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Components_ChangePXCComponents_0(ctx context.Context, marshaler run msg, err := client.ChangePXCComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Components_ChangePXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Components_ChangePXCComponents_0(ctx context.Context, marshal msg, err := server.ChangePXCComponents(ctx, &protoReq) return msg, metadata, err + } func request_Components_InstallOperator_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Components_InstallOperator_0(ctx context.Context, marshaler runtime msg, err := client.InstallOperator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Components_InstallOperator_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Components_InstallOperator_0(ctx context.Context, marshaler r msg, err := server.InstallOperator(ctx, &protoReq) return msg, metadata, err + } func request_Components_CheckForOperatorUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Components_CheckForOperatorUpdate_0(ctx context.Context, marshaler msg, err := client.CheckForOperatorUpdate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Components_CheckForOperatorUpdate_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Components_CheckForOperatorUpdate_0(ctx context.Context, mars msg, err := server.CheckForOperatorUpdate(ctx, &protoReq) return msg, metadata, err + } // RegisterComponentsHandlerServer registers the http handlers for service Components to "mux". @@ -230,6 +240,7 @@ func local_request_Components_CheckForOperatorUpdate_0(ctx context.Context, mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterComponentsHandlerFromEndpoint instead. func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ComponentsServer) error { + mux.Handle("POST", pattern_Components_GetPSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -252,6 +263,7 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_GetPXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -276,6 +288,7 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_ChangePSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -300,6 +313,7 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_ChangePXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -324,6 +338,7 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_InstallOperator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -348,6 +363,7 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_InstallOperator_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_CheckForOperatorUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -372,6 +388,7 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_CheckForOperatorUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -414,6 +431,7 @@ func RegisterComponentsHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ComponentsClient" to call the correct interceptors. func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ComponentsClient) error { + mux.Handle("POST", pattern_Components_GetPSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -433,6 +451,7 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_GetPXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -454,6 +473,7 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_ChangePSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -475,6 +495,7 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_ChangePXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -496,6 +517,7 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_InstallOperator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -517,6 +539,7 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_InstallOperator_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Components_CheckForOperatorUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -538,6 +561,7 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_CheckForOperatorUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/dbaas/components.validator.pb.go b/api/managementpb/dbaas/components.validator.pb.go index 828945e1c5..9508cad026 100644 --- a/api/managementpb/dbaas/components.validator.pb.go +++ b/api/managementpb/dbaas/components.validator.pb.go @@ -6,24 +6,20 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Component) Validate() error { return nil } - func (this *Matrix) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. @@ -35,7 +31,6 @@ func (this *Matrix) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *OperatorVersion) Validate() error { if this.Matrix != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Matrix); err != nil { @@ -44,11 +39,9 @@ func (this *OperatorVersion) Validate() error { } return nil } - func (this *GetPSMDBComponentsRequest) Validate() error { return nil } - func (this *GetPSMDBComponentsResponse) Validate() error { for _, item := range this.Versions { if item != nil { @@ -59,11 +52,9 @@ func (this *GetPSMDBComponentsResponse) Validate() error { } return nil } - func (this *GetPXCComponentsRequest) Validate() error { return nil } - func (this *GetPXCComponentsResponse) Validate() error { for _, item := range this.Versions { if item != nil { @@ -74,7 +65,6 @@ func (this *GetPXCComponentsResponse) Validate() error { } return nil } - func (this *ChangeComponent) Validate() error { for _, item := range this.Versions { if item != nil { @@ -85,14 +75,12 @@ func (this *ChangeComponent) Validate() error { } return nil } - func (this *ChangeComponent_ComponentVersion) Validate() error { if this.Version == "" { return github_com_mwitkow_go_proto_validators.FieldError("Version", fmt.Errorf(`value '%v' must not be an empty string`, this.Version)) } return nil } - func (this *ChangePSMDBComponentsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -104,11 +92,9 @@ func (this *ChangePSMDBComponentsRequest) Validate() error { } return nil } - func (this *ChangePSMDBComponentsResponse) Validate() error { return nil } - func (this *ChangePXCComponentsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -130,11 +116,9 @@ func (this *ChangePXCComponentsRequest) Validate() error { } return nil } - func (this *ChangePXCComponentsResponse) Validate() error { return nil } - func (this *InstallOperatorRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -147,24 +131,19 @@ func (this *InstallOperatorRequest) Validate() error { } return nil } - func (this *InstallOperatorResponse) Validate() error { return nil } - func (this *CheckForOperatorUpdateRequest) Validate() error { return nil } - func (this *ComponentUpdateInformation) Validate() error { return nil } - func (this *ComponentsUpdateInformation) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *CheckForOperatorUpdateResponse) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil diff --git a/api/managementpb/dbaas/components_grpc.pb.go b/api/managementpb/dbaas/components_grpc.pb.go index a8cb09c67b..4fe48506b2 100644 --- a/api/managementpb/dbaas/components_grpc.pb.go +++ b/api/managementpb/dbaas/components_grpc.pb.go @@ -8,7 +8,6 @@ package dbaasv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -119,28 +118,24 @@ type ComponentsServer interface { } // UnimplementedComponentsServer must be embedded to have forward compatible implementations. -type UnimplementedComponentsServer struct{} +type UnimplementedComponentsServer struct { +} func (UnimplementedComponentsServer) GetPSMDBComponents(context.Context, *GetPSMDBComponentsRequest) (*GetPSMDBComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPSMDBComponents not implemented") } - func (UnimplementedComponentsServer) GetPXCComponents(context.Context, *GetPXCComponentsRequest) (*GetPXCComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPXCComponents not implemented") } - func (UnimplementedComponentsServer) ChangePSMDBComponents(context.Context, *ChangePSMDBComponentsRequest) (*ChangePSMDBComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePSMDBComponents not implemented") } - func (UnimplementedComponentsServer) ChangePXCComponents(context.Context, *ChangePXCComponentsRequest) (*ChangePXCComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePXCComponents not implemented") } - func (UnimplementedComponentsServer) InstallOperator(context.Context, *InstallOperatorRequest) (*InstallOperatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InstallOperator not implemented") } - func (UnimplementedComponentsServer) CheckForOperatorUpdate(context.Context, *CheckForOperatorUpdateRequest) (*CheckForOperatorUpdateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckForOperatorUpdate not implemented") } diff --git a/api/managementpb/dbaas/db_clusters.pb.go b/api/managementpb/dbaas/db_clusters.pb.go index 7e69d352fa..f0415b36ac 100644 --- a/api/managementpb/dbaas/db_clusters.pb.go +++ b/api/managementpb/dbaas/db_clusters.pb.go @@ -7,13 +7,12 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -785,26 +784,23 @@ func file_managementpb_dbaas_db_clusters_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_db_clusters_proto_rawDescData } -var ( - file_managementpb_dbaas_db_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_dbaas_db_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 8) - file_managementpb_dbaas_db_clusters_proto_goTypes = []interface{}{ - (DBClusterState)(0), // 0: dbaas.v1beta1.DBClusterState - (*PSMDBCluster)(nil), // 1: dbaas.v1beta1.PSMDBCluster - (*PXCCluster)(nil), // 2: dbaas.v1beta1.PXCCluster - (*ListDBClustersRequest)(nil), // 3: dbaas.v1beta1.ListDBClustersRequest - (*ListDBClustersResponse)(nil), // 4: dbaas.v1beta1.ListDBClustersResponse - (*RestartDBClusterRequest)(nil), // 5: dbaas.v1beta1.RestartDBClusterRequest - (*RestartDBClusterResponse)(nil), // 6: dbaas.v1beta1.RestartDBClusterResponse - (*DeleteDBClusterRequest)(nil), // 7: dbaas.v1beta1.DeleteDBClusterRequest - (*DeleteDBClusterResponse)(nil), // 8: dbaas.v1beta1.DeleteDBClusterResponse - (*RunningOperation)(nil), // 9: dbaas.v1beta1.RunningOperation - (*PSMDBClusterParams)(nil), // 10: dbaas.v1beta1.PSMDBClusterParams - (*PXCClusterParams)(nil), // 11: dbaas.v1beta1.PXCClusterParams - (DBClusterType)(0), // 12: dbaas.v1beta1.DBClusterType - } -) - +var file_managementpb_dbaas_db_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_dbaas_db_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_managementpb_dbaas_db_clusters_proto_goTypes = []interface{}{ + (DBClusterState)(0), // 0: dbaas.v1beta1.DBClusterState + (*PSMDBCluster)(nil), // 1: dbaas.v1beta1.PSMDBCluster + (*PXCCluster)(nil), // 2: dbaas.v1beta1.PXCCluster + (*ListDBClustersRequest)(nil), // 3: dbaas.v1beta1.ListDBClustersRequest + (*ListDBClustersResponse)(nil), // 4: dbaas.v1beta1.ListDBClustersResponse + (*RestartDBClusterRequest)(nil), // 5: dbaas.v1beta1.RestartDBClusterRequest + (*RestartDBClusterResponse)(nil), // 6: dbaas.v1beta1.RestartDBClusterResponse + (*DeleteDBClusterRequest)(nil), // 7: dbaas.v1beta1.DeleteDBClusterRequest + (*DeleteDBClusterResponse)(nil), // 8: dbaas.v1beta1.DeleteDBClusterResponse + (*RunningOperation)(nil), // 9: dbaas.v1beta1.RunningOperation + (*PSMDBClusterParams)(nil), // 10: dbaas.v1beta1.PSMDBClusterParams + (*PXCClusterParams)(nil), // 11: dbaas.v1beta1.PXCClusterParams + (DBClusterType)(0), // 12: dbaas.v1beta1.DBClusterType +} var file_managementpb_dbaas_db_clusters_proto_depIdxs = []int32{ 0, // 0: dbaas.v1beta1.PSMDBCluster.state:type_name -> dbaas.v1beta1.DBClusterState 9, // 1: dbaas.v1beta1.PSMDBCluster.operation:type_name -> dbaas.v1beta1.RunningOperation diff --git a/api/managementpb/dbaas/db_clusters.pb.gw.go b/api/managementpb/dbaas/db_clusters.pb.gw.go index a880463bfc..acd795246d 100644 --- a/api/managementpb/dbaas/db_clusters.pb.gw.go +++ b/api/managementpb/dbaas/db_clusters.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler runtime.Marshaler, client DBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListDBClustersRequest @@ -47,6 +45,7 @@ func request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler runtime. msg, err := client.ListDBClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler runtime.Marshaler, server DBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler ru msg, err := server.ListDBClusters(ctx, &protoReq) return msg, metadata, err + } func request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client DBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler runtim msg, err := client.RestartDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server DBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler msg, err := server.RestartDBCluster(ctx, &protoReq) return msg, metadata, err + } func request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client DBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler runtime msg, err := client.DeleteDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server DBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler r msg, err := server.DeleteDBCluster(ctx, &protoReq) return msg, metadata, err + } // RegisterDBClustersHandlerServer registers the http handlers for service DBClusters to "mux". @@ -134,6 +138,7 @@ func local_request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler r // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDBClustersHandlerFromEndpoint instead. func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DBClustersServer) error { + mux.Handle("POST", pattern_DBClusters_ListDBClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,6 +161,7 @@ func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_ListDBClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_DBClusters_RestartDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -180,6 +186,7 @@ func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_RestartDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_DBClusters_DeleteDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -204,6 +211,7 @@ func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_DeleteDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -246,6 +254,7 @@ func RegisterDBClustersHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "DBClustersClient" to call the correct interceptors. func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DBClustersClient) error { + mux.Handle("POST", pattern_DBClusters_ListDBClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -265,6 +274,7 @@ func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_ListDBClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_DBClusters_RestartDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -286,6 +296,7 @@ func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_RestartDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_DBClusters_DeleteDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -307,6 +318,7 @@ func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_DeleteDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/dbaas/db_clusters.validator.pb.go b/api/managementpb/dbaas/db_clusters.validator.pb.go index 6a5f3c74ac..d16b38547e 100644 --- a/api/managementpb/dbaas/db_clusters.validator.pb.go +++ b/api/managementpb/dbaas/db_clusters.validator.pb.go @@ -6,19 +6,16 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *PSMDBCluster) Validate() error { if this.Operation != nil { @@ -33,7 +30,6 @@ func (this *PSMDBCluster) Validate() error { } return nil } - func (this *PXCCluster) Validate() error { if this.Operation != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Operation); err != nil { @@ -47,14 +43,12 @@ func (this *PXCCluster) Validate() error { } return nil } - func (this *ListDBClustersRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } - func (this *ListDBClustersResponse) Validate() error { for _, item := range this.PxcClusters { if item != nil { @@ -72,7 +66,6 @@ func (this *ListDBClustersResponse) Validate() error { } return nil } - func (this *RestartDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -82,11 +75,9 @@ func (this *RestartDBClusterRequest) Validate() error { } return nil } - func (this *RestartDBClusterResponse) Validate() error { return nil } - func (this *DeleteDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -96,7 +87,6 @@ func (this *DeleteDBClusterRequest) Validate() error { } return nil } - func (this *DeleteDBClusterResponse) Validate() error { return nil } diff --git a/api/managementpb/dbaas/db_clusters_grpc.pb.go b/api/managementpb/dbaas/db_clusters_grpc.pb.go index 604d3473d8..5b867f935b 100644 --- a/api/managementpb/dbaas/db_clusters_grpc.pb.go +++ b/api/managementpb/dbaas/db_clusters_grpc.pb.go @@ -8,7 +8,6 @@ package dbaasv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -80,16 +79,15 @@ type DBClustersServer interface { } // UnimplementedDBClustersServer must be embedded to have forward compatible implementations. -type UnimplementedDBClustersServer struct{} +type UnimplementedDBClustersServer struct { +} func (UnimplementedDBClustersServer) ListDBClusters(context.Context, *ListDBClustersRequest) (*ListDBClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDBClusters not implemented") } - func (UnimplementedDBClustersServer) RestartDBCluster(context.Context, *RestartDBClusterRequest) (*RestartDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RestartDBCluster not implemented") } - func (UnimplementedDBClustersServer) DeleteDBCluster(context.Context, *DeleteDBClusterRequest) (*DeleteDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDBCluster not implemented") } diff --git a/api/managementpb/dbaas/dbaas.pb.go b/api/managementpb/dbaas/dbaas.pb.go index 495961d667..fdc97e2ec4 100644 --- a/api/managementpb/dbaas/dbaas.pb.go +++ b/api/managementpb/dbaas/dbaas.pb.go @@ -7,11 +7,10 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -390,18 +389,15 @@ func file_managementpb_dbaas_dbaas_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_dbaas_proto_rawDescData } -var ( - file_managementpb_dbaas_dbaas_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_managementpb_dbaas_dbaas_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_dbaas_dbaas_proto_goTypes = []interface{}{ - (DBClusterType)(0), // 0: dbaas.v1beta1.DBClusterType - (OperatorsStatus)(0), // 1: dbaas.v1beta1.OperatorsStatus - (*RunningOperation)(nil), // 2: dbaas.v1beta1.RunningOperation - (*ComputeResources)(nil), // 3: dbaas.v1beta1.ComputeResources - (*Resources)(nil), // 4: dbaas.v1beta1.Resources - } -) - +var file_managementpb_dbaas_dbaas_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_managementpb_dbaas_dbaas_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_dbaas_dbaas_proto_goTypes = []interface{}{ + (DBClusterType)(0), // 0: dbaas.v1beta1.DBClusterType + (OperatorsStatus)(0), // 1: dbaas.v1beta1.OperatorsStatus + (*RunningOperation)(nil), // 2: dbaas.v1beta1.RunningOperation + (*ComputeResources)(nil), // 3: dbaas.v1beta1.ComputeResources + (*Resources)(nil), // 4: dbaas.v1beta1.Resources +} var file_managementpb_dbaas_dbaas_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/dbaas/dbaas.validator.pb.go b/api/managementpb/dbaas/dbaas.validator.pb.go index db33c288d5..e977915211 100644 --- a/api/managementpb/dbaas/dbaas.validator.pb.go +++ b/api/managementpb/dbaas/dbaas.validator.pb.go @@ -6,25 +6,20 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *RunningOperation) Validate() error { return nil } - func (this *ComputeResources) Validate() error { return nil } - func (this *Resources) Validate() error { return nil } diff --git a/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go b/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go index 994b10c916..c1fb97fc46 100644 --- a/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go @@ -60,6 +60,7 @@ ChangePSMDBComponentsParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type ChangePSMDBComponentsParams struct { + // Body. Body ChangePSMDBComponentsBody @@ -129,6 +130,7 @@ func (o *ChangePSMDBComponentsParams) SetBody(body ChangePSMDBComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *ChangePSMDBComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go b/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go index e0109e186b..d021b63e74 100644 --- a/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go @@ -60,12 +60,12 @@ type ChangePSMDBComponentsOK struct { func (o *ChangePSMDBComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePSMDB][%d] changePsmdbComponentsOk %+v", 200, o.Payload) } - func (o *ChangePSMDBComponentsOK) GetPayload() interface{} { return o.Payload } func (o *ChangePSMDBComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangePSMDBComponentsDefault) Code() int { func (o *ChangePSMDBComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePSMDB][%d] ChangePSMDBComponents default %+v", o._statusCode, o.Payload) } - func (o *ChangePSMDBComponentsDefault) GetPayload() *ChangePSMDBComponentsDefaultBody { return o.Payload } func (o *ChangePSMDBComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangePSMDBComponentsDefaultBody) // response payload @@ -121,6 +121,7 @@ ChangePSMDBComponentsBody change PSMDB components body swagger:model ChangePSMDBComponentsBody */ type ChangePSMDBComponentsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -176,6 +177,7 @@ func (o *ChangePSMDBComponentsBody) ContextValidate(ctx context.Context, formats } func (o *ChangePSMDBComponentsBody) contextValidateMongod(ctx context.Context, formats strfmt.Registry) error { + if o.Mongod != nil { if err := o.Mongod.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -213,6 +215,7 @@ ChangePSMDBComponentsDefaultBody change PSMDB components default body swagger:model ChangePSMDBComponentsDefaultBody */ type ChangePSMDBComponentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -278,7 +281,9 @@ func (o *ChangePSMDBComponentsDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangePSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -289,6 +294,7 @@ func (o *ChangePSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -317,6 +323,7 @@ ChangePSMDBComponentsDefaultBodyDetailsItems0 change PSMDB components default bo swagger:model ChangePSMDBComponentsDefaultBodyDetailsItems0 */ type ChangePSMDBComponentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -354,6 +361,7 @@ ChangePSMDBComponentsParamsBodyMongod ChangeComponent contains fields to manage swagger:model ChangePSMDBComponentsParamsBodyMongod */ type ChangePSMDBComponentsParamsBodyMongod struct { + // default version DefaultVersion string `json:"default_version,omitempty"` @@ -416,7 +424,9 @@ func (o *ChangePSMDBComponentsParamsBodyMongod) ContextValidate(ctx context.Cont } func (o *ChangePSMDBComponentsParamsBodyMongod) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Versions); i++ { + if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -427,6 +437,7 @@ func (o *ChangePSMDBComponentsParamsBodyMongod) contextValidateVersions(ctx cont return err } } + } return nil @@ -455,6 +466,7 @@ ChangePSMDBComponentsParamsBodyMongodVersionsItems0 ComponentVersion contains op swagger:model ChangePSMDBComponentsParamsBodyMongodVersionsItems0 */ type ChangePSMDBComponentsParamsBodyMongodVersionsItems0 struct { + // version Version string `json:"version,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go b/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go index 70fe656ec4..92054ef87f 100644 --- a/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go @@ -60,6 +60,7 @@ ChangePXCComponentsParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type ChangePXCComponentsParams struct { + // Body. Body ChangePXCComponentsBody @@ -129,6 +130,7 @@ func (o *ChangePXCComponentsParams) SetBody(body ChangePXCComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *ChangePXCComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go b/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go index 859e985218..949b21c99d 100644 --- a/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go @@ -60,12 +60,12 @@ type ChangePXCComponentsOK struct { func (o *ChangePXCComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePXC][%d] changePxcComponentsOk %+v", 200, o.Payload) } - func (o *ChangePXCComponentsOK) GetPayload() interface{} { return o.Payload } func (o *ChangePXCComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangePXCComponentsDefault) Code() int { func (o *ChangePXCComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePXC][%d] ChangePXCComponents default %+v", o._statusCode, o.Payload) } - func (o *ChangePXCComponentsDefault) GetPayload() *ChangePXCComponentsDefaultBody { return o.Payload } func (o *ChangePXCComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangePXCComponentsDefaultBody) // response payload @@ -121,6 +121,7 @@ ChangePXCComponentsBody change PXC components body swagger:model ChangePXCComponentsBody */ type ChangePXCComponentsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -236,6 +237,7 @@ func (o *ChangePXCComponentsBody) ContextValidate(ctx context.Context, formats s } func (o *ChangePXCComponentsBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -251,6 +253,7 @@ func (o *ChangePXCComponentsBody) contextValidateHaproxy(ctx context.Context, fo } func (o *ChangePXCComponentsBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -266,6 +269,7 @@ func (o *ChangePXCComponentsBody) contextValidateProxysql(ctx context.Context, f } func (o *ChangePXCComponentsBody) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -303,6 +307,7 @@ ChangePXCComponentsDefaultBody change PXC components default body swagger:model ChangePXCComponentsDefaultBody */ type ChangePXCComponentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -368,7 +373,9 @@ func (o *ChangePXCComponentsDefaultBody) ContextValidate(ctx context.Context, fo } func (o *ChangePXCComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -379,6 +386,7 @@ func (o *ChangePXCComponentsDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -407,6 +415,7 @@ ChangePXCComponentsDefaultBodyDetailsItems0 change PXC components default body d swagger:model ChangePXCComponentsDefaultBodyDetailsItems0 */ type ChangePXCComponentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -444,6 +453,7 @@ ChangePXCComponentsParamsBodyHaproxy ChangeComponent contains fields to manage c swagger:model ChangePXCComponentsParamsBodyHaproxy */ type ChangePXCComponentsParamsBodyHaproxy struct { + // default version DefaultVersion string `json:"default_version,omitempty"` @@ -506,7 +516,9 @@ func (o *ChangePXCComponentsParamsBodyHaproxy) ContextValidate(ctx context.Conte } func (o *ChangePXCComponentsParamsBodyHaproxy) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Versions); i++ { + if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -517,6 +529,7 @@ func (o *ChangePXCComponentsParamsBodyHaproxy) contextValidateVersions(ctx conte return err } } + } return nil @@ -545,6 +558,7 @@ ChangePXCComponentsParamsBodyHaproxyVersionsItems0 ComponentVersion contains ope swagger:model ChangePXCComponentsParamsBodyHaproxyVersionsItems0 */ type ChangePXCComponentsParamsBodyHaproxyVersionsItems0 struct { + // version Version string `json:"version,omitempty"` @@ -588,6 +602,7 @@ ChangePXCComponentsParamsBodyPXC ChangeComponent contains fields to manage compo swagger:model ChangePXCComponentsParamsBodyPXC */ type ChangePXCComponentsParamsBodyPXC struct { + // default version DefaultVersion string `json:"default_version,omitempty"` @@ -650,7 +665,9 @@ func (o *ChangePXCComponentsParamsBodyPXC) ContextValidate(ctx context.Context, } func (o *ChangePXCComponentsParamsBodyPXC) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Versions); i++ { + if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -661,6 +678,7 @@ func (o *ChangePXCComponentsParamsBodyPXC) contextValidateVersions(ctx context.C return err } } + } return nil @@ -689,6 +707,7 @@ ChangePXCComponentsParamsBodyPXCVersionsItems0 ComponentVersion contains operati swagger:model ChangePXCComponentsParamsBodyPXCVersionsItems0 */ type ChangePXCComponentsParamsBodyPXCVersionsItems0 struct { + // version Version string `json:"version,omitempty"` @@ -732,6 +751,7 @@ ChangePXCComponentsParamsBodyProxysql ChangeComponent contains fields to manage swagger:model ChangePXCComponentsParamsBodyProxysql */ type ChangePXCComponentsParamsBodyProxysql struct { + // default version DefaultVersion string `json:"default_version,omitempty"` @@ -794,7 +814,9 @@ func (o *ChangePXCComponentsParamsBodyProxysql) ContextValidate(ctx context.Cont } func (o *ChangePXCComponentsParamsBodyProxysql) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Versions); i++ { + if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -805,6 +827,7 @@ func (o *ChangePXCComponentsParamsBodyProxysql) contextValidateVersions(ctx cont return err } } + } return nil @@ -833,6 +856,7 @@ ChangePXCComponentsParamsBodyProxysqlVersionsItems0 ComponentVersion contains op swagger:model ChangePXCComponentsParamsBodyProxysqlVersionsItems0 */ type ChangePXCComponentsParamsBodyProxysqlVersionsItems0 struct { + // version Version string `json:"version,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go b/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go index dab12d01aa..e0d6087f93 100644 --- a/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go +++ b/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go @@ -60,6 +60,7 @@ CheckForOperatorUpdateParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type CheckForOperatorUpdateParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *CheckForOperatorUpdateParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *CheckForOperatorUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go b/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go index 796a42c153..b7d90a126b 100644 --- a/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go +++ b/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go @@ -60,12 +60,12 @@ type CheckForOperatorUpdateOK struct { func (o *CheckForOperatorUpdateOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/CheckForOperatorUpdate][%d] checkForOperatorUpdateOk %+v", 200, o.Payload) } - func (o *CheckForOperatorUpdateOK) GetPayload() *CheckForOperatorUpdateOKBody { return o.Payload } func (o *CheckForOperatorUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CheckForOperatorUpdateOKBody) // response payload @@ -102,12 +102,12 @@ func (o *CheckForOperatorUpdateDefault) Code() int { func (o *CheckForOperatorUpdateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/CheckForOperatorUpdate][%d] CheckForOperatorUpdate default %+v", o._statusCode, o.Payload) } - func (o *CheckForOperatorUpdateDefault) GetPayload() *CheckForOperatorUpdateDefaultBody { return o.Payload } func (o *CheckForOperatorUpdateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CheckForOperatorUpdateDefaultBody) // response payload @@ -123,6 +123,7 @@ CheckForOperatorUpdateDefaultBody check for operator update default body swagger:model CheckForOperatorUpdateDefaultBody */ type CheckForOperatorUpdateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *CheckForOperatorUpdateDefaultBody) ContextValidate(ctx context.Context, } func (o *CheckForOperatorUpdateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *CheckForOperatorUpdateDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -227,6 +231,7 @@ CheckForOperatorUpdateDefaultBodyDetailsItems0 check for operator update default swagger:model CheckForOperatorUpdateDefaultBodyDetailsItems0 */ type CheckForOperatorUpdateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ CheckForOperatorUpdateOKBody check for operator update OK body swagger:model CheckForOperatorUpdateOKBody */ type CheckForOperatorUpdateOKBody struct { + // The cluster name is used as a key for this map, value contains components and their inforamtion about update. ClusterToComponents map[string]CheckForOperatorUpdateOKBodyClusterToComponentsAnon `json:"cluster_to_components,omitempty"` } @@ -323,12 +329,15 @@ func (o *CheckForOperatorUpdateOKBody) ContextValidate(ctx context.Context, form } func (o *CheckForOperatorUpdateOKBody) contextValidateClusterToComponents(ctx context.Context, formats strfmt.Registry) error { + for k := range o.ClusterToComponents { + if val, ok := o.ClusterToComponents[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -357,6 +366,7 @@ CheckForOperatorUpdateOKBodyClusterToComponentsAnon ComponentsUpdateInformation swagger:model CheckForOperatorUpdateOKBodyClusterToComponentsAnon */ type CheckForOperatorUpdateOKBodyClusterToComponentsAnon struct { + // component_to_update_information stores, under the name of the component, information about the update. // "pxc-operator", "psmdb-operator" are names used by backend for our operators. ComponentToUpdateInformation map[string]CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon `json:"component_to_update_information,omitempty"` @@ -417,12 +427,15 @@ func (o *CheckForOperatorUpdateOKBodyClusterToComponentsAnon) ContextValidate(ct } func (o *CheckForOperatorUpdateOKBodyClusterToComponentsAnon) contextValidateComponentToUpdateInformation(ctx context.Context, formats strfmt.Registry) error { + for k := range o.ComponentToUpdateInformation { + if val, ok := o.ComponentToUpdateInformation[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -451,6 +464,7 @@ CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationA swagger:model CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon */ type CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon struct { + // available version AvailableVersion string `json:"available_version,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go b/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go index 0aab5f9ce7..65a0bddb25 100644 --- a/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go @@ -60,6 +60,7 @@ GetPSMDBComponentsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetPSMDBComponentsParams struct { + // Body. Body GetPSMDBComponentsBody @@ -129,6 +130,7 @@ func (o *GetPSMDBComponentsParams) SetBody(body GetPSMDBComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *GetPSMDBComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go b/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go index 5af5569de2..fb838b13d8 100644 --- a/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go @@ -60,12 +60,12 @@ type GetPSMDBComponentsOK struct { func (o *GetPSMDBComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPSMDB][%d] getPsmdbComponentsOk %+v", 200, o.Payload) } - func (o *GetPSMDBComponentsOK) GetPayload() *GetPSMDBComponentsOKBody { return o.Payload } func (o *GetPSMDBComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPSMDBComponentsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPSMDBComponentsDefault) Code() int { func (o *GetPSMDBComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPSMDB][%d] GetPSMDBComponents default %+v", o._statusCode, o.Payload) } - func (o *GetPSMDBComponentsDefault) GetPayload() *GetPSMDBComponentsDefaultBody { return o.Payload } func (o *GetPSMDBComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPSMDBComponentsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetPSMDBComponentsBody get PSMDB components body swagger:model GetPSMDBComponentsBody */ type GetPSMDBComponentsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -163,6 +164,7 @@ GetPSMDBComponentsDefaultBody get PSMDB components default body swagger:model GetPSMDBComponentsDefaultBody */ type GetPSMDBComponentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *GetPSMDBComponentsDefaultBody) ContextValidate(ctx context.Context, for } func (o *GetPSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *GetPSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -267,6 +272,7 @@ GetPSMDBComponentsDefaultBodyDetailsItems0 get PSMDB components default body det swagger:model GetPSMDBComponentsDefaultBodyDetailsItems0 */ type GetPSMDBComponentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ GetPSMDBComponentsOKBody get PSMDB components OK body swagger:model GetPSMDBComponentsOKBody */ type GetPSMDBComponentsOKBody struct { + // versions Versions []*GetPSMDBComponentsOKBodyVersionsItems0 `json:"versions"` } @@ -363,7 +370,9 @@ func (o *GetPSMDBComponentsOKBody) ContextValidate(ctx context.Context, formats } func (o *GetPSMDBComponentsOKBody) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Versions); i++ { + if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -374,6 +383,7 @@ func (o *GetPSMDBComponentsOKBody) contextValidateVersions(ctx context.Context, return err } } + } return nil @@ -402,6 +412,7 @@ GetPSMDBComponentsOKBodyVersionsItems0 OperatorVersion contains information abou swagger:model GetPSMDBComponentsOKBodyVersionsItems0 */ type GetPSMDBComponentsOKBodyVersionsItems0 struct { + // product Product string `json:"product,omitempty"` @@ -460,6 +471,7 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0) ContextValidate(ctx context.Con } func (o *GetPSMDBComponentsOKBodyVersionsItems0) contextValidateMatrix(ctx context.Context, formats strfmt.Registry) error { + if o.Matrix != nil { if err := o.Matrix.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -497,6 +509,7 @@ GetPSMDBComponentsOKBodyVersionsItems0Matrix Matrix contains all available compo swagger:model GetPSMDBComponentsOKBodyVersionsItems0Matrix */ type GetPSMDBComponentsOKBodyVersionsItems0Matrix struct { + // mongod Mongod map[string]GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon `json:"mongod,omitempty"` @@ -815,96 +828,120 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) ContextValidate(ctx conte } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateMongod(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Mongod { + if val, ok := o.Mongod[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + for k := range o.PXC { + if val, ok := o.PXC[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidatePMM(ctx context.Context, formats strfmt.Registry) error { + for k := range o.PMM { + if val, ok := o.PMM[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Proxysql { + if val, ok := o.Proxysql[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Haproxy { + if val, ok := o.Haproxy[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateBackup(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Backup { + if val, ok := o.Backup[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateOperator(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Operator { + if val, ok := o.Operator[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateLogCollector(ctx context.Context, formats strfmt.Registry) error { + for k := range o.LogCollector { + if val, ok := o.LogCollector[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -933,6 +970,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains inform swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -985,6 +1023,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains infor swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1037,6 +1076,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1089,6 +1129,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains inform swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1141,6 +1182,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains info swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1193,6 +1235,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains informati swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1245,6 +1288,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains informati swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1297,6 +1341,7 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains info swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go b/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go index ee70826a03..07c76365fb 100644 --- a/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go @@ -60,6 +60,7 @@ GetPXCComponentsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetPXCComponentsParams struct { + // Body. Body GetPXCComponentsBody @@ -129,6 +130,7 @@ func (o *GetPXCComponentsParams) SetBody(body GetPXCComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *GetPXCComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go b/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go index cd2e68f28c..266fa1b342 100644 --- a/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go @@ -60,12 +60,12 @@ type GetPXCComponentsOK struct { func (o *GetPXCComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPXC][%d] getPxcComponentsOk %+v", 200, o.Payload) } - func (o *GetPXCComponentsOK) GetPayload() *GetPXCComponentsOKBody { return o.Payload } func (o *GetPXCComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPXCComponentsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPXCComponentsDefault) Code() int { func (o *GetPXCComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPXC][%d] GetPXCComponents default %+v", o._statusCode, o.Payload) } - func (o *GetPXCComponentsDefault) GetPayload() *GetPXCComponentsDefaultBody { return o.Payload } func (o *GetPXCComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPXCComponentsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetPXCComponentsBody get PXC components body swagger:model GetPXCComponentsBody */ type GetPXCComponentsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -163,6 +164,7 @@ GetPXCComponentsDefaultBody get PXC components default body swagger:model GetPXCComponentsDefaultBody */ type GetPXCComponentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *GetPXCComponentsDefaultBody) ContextValidate(ctx context.Context, forma } func (o *GetPXCComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *GetPXCComponentsDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -267,6 +272,7 @@ GetPXCComponentsDefaultBodyDetailsItems0 get PXC components default body details swagger:model GetPXCComponentsDefaultBodyDetailsItems0 */ type GetPXCComponentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ GetPXCComponentsOKBody get PXC components OK body swagger:model GetPXCComponentsOKBody */ type GetPXCComponentsOKBody struct { + // versions Versions []*GetPXCComponentsOKBodyVersionsItems0 `json:"versions"` } @@ -363,7 +370,9 @@ func (o *GetPXCComponentsOKBody) ContextValidate(ctx context.Context, formats st } func (o *GetPXCComponentsOKBody) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Versions); i++ { + if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -374,6 +383,7 @@ func (o *GetPXCComponentsOKBody) contextValidateVersions(ctx context.Context, fo return err } } + } return nil @@ -402,6 +412,7 @@ GetPXCComponentsOKBodyVersionsItems0 OperatorVersion contains information about swagger:model GetPXCComponentsOKBodyVersionsItems0 */ type GetPXCComponentsOKBodyVersionsItems0 struct { + // product Product string `json:"product,omitempty"` @@ -460,6 +471,7 @@ func (o *GetPXCComponentsOKBodyVersionsItems0) ContextValidate(ctx context.Conte } func (o *GetPXCComponentsOKBodyVersionsItems0) contextValidateMatrix(ctx context.Context, formats strfmt.Registry) error { + if o.Matrix != nil { if err := o.Matrix.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -497,6 +509,7 @@ GetPXCComponentsOKBodyVersionsItems0Matrix Matrix contains all available compone swagger:model GetPXCComponentsOKBodyVersionsItems0Matrix */ type GetPXCComponentsOKBodyVersionsItems0Matrix struct { + // mongod Mongod map[string]GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon `json:"mongod,omitempty"` @@ -815,96 +828,120 @@ func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) ContextValidate(ctx context } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateMongod(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Mongod { + if val, ok := o.Mongod[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + for k := range o.PXC { + if val, ok := o.PXC[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidatePMM(ctx context.Context, formats strfmt.Registry) error { + for k := range o.PMM { + if val, ok := o.PMM[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Proxysql { + if val, ok := o.Proxysql[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Haproxy { + if val, ok := o.Haproxy[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateBackup(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Backup { + if val, ok := o.Backup[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateOperator(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Operator { + if val, ok := o.Operator[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateLogCollector(ctx context.Context, formats strfmt.Registry) error { + for k := range o.LogCollector { + if val, ok := o.LogCollector[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -933,6 +970,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains informat swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -985,6 +1023,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains informa swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1037,6 +1076,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains in swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1089,6 +1129,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains informat swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1141,6 +1182,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains inform swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1193,6 +1235,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains information swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1245,6 +1288,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains information swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` @@ -1297,6 +1341,7 @@ GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains inform swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon struct { + // image path ImagePath string `json:"image_path,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/install_operator_parameters.go b/api/managementpb/dbaas/json/client/components/install_operator_parameters.go index 87b1582722..17f529001f 100644 --- a/api/managementpb/dbaas/json/client/components/install_operator_parameters.go +++ b/api/managementpb/dbaas/json/client/components/install_operator_parameters.go @@ -60,6 +60,7 @@ InstallOperatorParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type InstallOperatorParams struct { + // Body. Body InstallOperatorBody @@ -129,6 +130,7 @@ func (o *InstallOperatorParams) SetBody(body InstallOperatorBody) { // WriteToRequest writes these params to a swagger request func (o *InstallOperatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/install_operator_responses.go b/api/managementpb/dbaas/json/client/components/install_operator_responses.go index b9bb44b457..f5992f5b5b 100644 --- a/api/managementpb/dbaas/json/client/components/install_operator_responses.go +++ b/api/managementpb/dbaas/json/client/components/install_operator_responses.go @@ -62,12 +62,12 @@ type InstallOperatorOK struct { func (o *InstallOperatorOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/InstallOperator][%d] installOperatorOk %+v", 200, o.Payload) } - func (o *InstallOperatorOK) GetPayload() *InstallOperatorOKBody { return o.Payload } func (o *InstallOperatorOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(InstallOperatorOKBody) // response payload @@ -104,12 +104,12 @@ func (o *InstallOperatorDefault) Code() int { func (o *InstallOperatorDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/InstallOperator][%d] InstallOperator default %+v", o._statusCode, o.Payload) } - func (o *InstallOperatorDefault) GetPayload() *InstallOperatorDefaultBody { return o.Payload } func (o *InstallOperatorDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(InstallOperatorDefaultBody) // response payload @@ -125,6 +125,7 @@ InstallOperatorBody install operator body swagger:model InstallOperatorBody */ type InstallOperatorBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -168,6 +169,7 @@ InstallOperatorDefaultBody install operator default body swagger:model InstallOperatorDefaultBody */ type InstallOperatorDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -233,7 +235,9 @@ func (o *InstallOperatorDefaultBody) ContextValidate(ctx context.Context, format } func (o *InstallOperatorDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -244,6 +248,7 @@ func (o *InstallOperatorDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -272,6 +277,7 @@ InstallOperatorDefaultBodyDetailsItems0 install operator default body details it swagger:model InstallOperatorDefaultBodyDetailsItems0 */ type InstallOperatorDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -309,6 +315,7 @@ InstallOperatorOKBody install operator OK body swagger:model InstallOperatorOKBody */ type InstallOperatorOKBody struct { + // OperatorsStatus defines status of operators installed in Kubernetes cluster. // // - OPERATORS_STATUS_INVALID: OPERATORS_STATUS_INVALID represents unknown state. diff --git a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go index 0f817bf42e..e7bf834837 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go @@ -60,6 +60,7 @@ DeleteDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteDBClusterParams struct { + // Body. Body DeleteDBClusterBody @@ -129,6 +130,7 @@ func (o *DeleteDBClusterParams) SetBody(body DeleteDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go index dded2a9a91..1b3a722761 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go @@ -62,12 +62,12 @@ type DeleteDBClusterOK struct { func (o *DeleteDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Delete][%d] deleteDbClusterOk %+v", 200, o.Payload) } - func (o *DeleteDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *DeleteDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *DeleteDBClusterDefault) Code() int { func (o *DeleteDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Delete][%d] DeleteDBCluster default %+v", o._statusCode, o.Payload) } - func (o *DeleteDBClusterDefault) GetPayload() *DeleteDBClusterDefaultBody { return o.Payload } func (o *DeleteDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteDBClusterDefaultBody) // response payload @@ -123,6 +123,7 @@ DeleteDBClusterBody delete DB cluster body swagger:model DeleteDBClusterBody */ type DeleteDBClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -225,6 +226,7 @@ DeleteDBClusterDefaultBody delete DB cluster default body swagger:model DeleteDBClusterDefaultBody */ type DeleteDBClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -290,7 +292,9 @@ func (o *DeleteDBClusterDefaultBody) ContextValidate(ctx context.Context, format } func (o *DeleteDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -301,6 +305,7 @@ func (o *DeleteDBClusterDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -329,6 +334,7 @@ DeleteDBClusterDefaultBodyDetailsItems0 delete DB cluster default body details i swagger:model DeleteDBClusterDefaultBodyDetailsItems0 */ type DeleteDBClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go index ec41e02f95..f9c66e658d 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go @@ -60,6 +60,7 @@ ListDBClustersParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListDBClustersParams struct { + // Body. Body ListDBClustersBody @@ -129,6 +130,7 @@ func (o *ListDBClustersParams) SetBody(body ListDBClustersBody) { // WriteToRequest writes these params to a swagger request func (o *ListDBClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go index 3c14d3c057..60f0b14d60 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go @@ -62,12 +62,12 @@ type ListDBClustersOK struct { func (o *ListDBClustersOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/List][%d] listDbClustersOk %+v", 200, o.Payload) } - func (o *ListDBClustersOK) GetPayload() *ListDBClustersOKBody { return o.Payload } func (o *ListDBClustersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListDBClustersOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListDBClustersDefault) Code() int { func (o *ListDBClustersDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/List][%d] ListDBClusters default %+v", o._statusCode, o.Payload) } - func (o *ListDBClustersDefault) GetPayload() *ListDBClustersDefaultBody { return o.Payload } func (o *ListDBClustersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListDBClustersDefaultBody) // response payload @@ -125,6 +125,7 @@ ListDBClustersBody list DB clusters body swagger:model ListDBClustersBody */ type ListDBClustersBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` } @@ -162,6 +163,7 @@ ListDBClustersDefaultBody list DB clusters default body swagger:model ListDBClustersDefaultBody */ type ListDBClustersDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -227,7 +229,9 @@ func (o *ListDBClustersDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListDBClustersDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,6 +242,7 @@ func (o *ListDBClustersDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -266,6 +271,7 @@ ListDBClustersDefaultBodyDetailsItems0 list DB clusters default body details ite swagger:model ListDBClustersDefaultBodyDetailsItems0 */ type ListDBClustersDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -303,6 +309,7 @@ ListDBClustersOKBody list DB clusters OK body swagger:model ListDBClustersOKBody */ type ListDBClustersOKBody struct { + // PXC clusters information. PXCClusters []*ListDBClustersOKBodyPXCClustersItems0 `json:"pxc_clusters"` @@ -399,7 +406,9 @@ func (o *ListDBClustersOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ListDBClustersOKBody) contextValidatePXCClusters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.PXCClusters); i++ { + if o.PXCClusters[i] != nil { if err := o.PXCClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -410,13 +419,16 @@ func (o *ListDBClustersOKBody) contextValidatePXCClusters(ctx context.Context, f return err } } + } return nil } func (o *ListDBClustersOKBody) contextValidatePSMDBClusters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.PSMDBClusters); i++ { + if o.PSMDBClusters[i] != nil { if err := o.PSMDBClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -427,6 +439,7 @@ func (o *ListDBClustersOKBody) contextValidatePSMDBClusters(ctx context.Context, return err } } + } return nil @@ -455,6 +468,7 @@ ListDBClustersOKBodyPSMDBClustersItems0 PSMDBCluster represents PSMDB cluster in swagger:model ListDBClustersOKBodyPSMDBClustersItems0 */ type ListDBClustersOKBodyPSMDBClustersItems0 struct { + // Cluster name. Name string `json:"name,omitempty"` @@ -624,6 +638,7 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0) ContextValidate(ctx context.Co } func (o *ListDBClustersOKBodyPSMDBClustersItems0) contextValidateOperation(ctx context.Context, formats strfmt.Registry) error { + if o.Operation != nil { if err := o.Operation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -639,6 +654,7 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0) contextValidateOperation(ctx c } func (o *ListDBClustersOKBodyPSMDBClustersItems0) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -676,6 +692,7 @@ ListDBClustersOKBodyPSMDBClustersItems0Operation RunningOperation respresents a swagger:model ListDBClustersOKBodyPSMDBClustersItems0Operation */ type ListDBClustersOKBodyPSMDBClustersItems0Operation struct { + // Finished steps of the operaion; can decrease or increase compared to the previous value. FinishedSteps int32 `json:"finished_steps,omitempty"` @@ -719,6 +736,7 @@ ListDBClustersOKBodyPSMDBClustersItems0Params PSMDBClusterParams represents PSMD swagger:model ListDBClustersOKBodyPSMDBClustersItems0Params */ type ListDBClustersOKBodyPSMDBClustersItems0Params struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -777,6 +795,7 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0Params) ContextValidate(ctx cont } func (o *ListDBClustersOKBodyPSMDBClustersItems0Params) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { + if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -815,6 +834,7 @@ ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset ReplicaSet container par swagger:model ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset */ type ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset struct { + // Disk size in bytes. DiskSize string `json:"disk_size,omitempty"` @@ -870,6 +890,7 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset) ContextValidat } func (o *ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -907,6 +928,7 @@ ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources ComputeR swagger:model ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources */ type ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -947,6 +969,7 @@ ListDBClustersOKBodyPXCClustersItems0 PXCCluster represents PXC cluster informat swagger:model ListDBClustersOKBodyPXCClustersItems0 */ type ListDBClustersOKBodyPXCClustersItems0 struct { + // Cluster name. Name string `json:"name,omitempty"` @@ -1116,6 +1139,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0) ContextValidate(ctx context.Cont } func (o *ListDBClustersOKBodyPXCClustersItems0) contextValidateOperation(ctx context.Context, formats strfmt.Registry) error { + if o.Operation != nil { if err := o.Operation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1131,6 +1155,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0) contextValidateOperation(ctx con } func (o *ListDBClustersOKBodyPXCClustersItems0) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1168,6 +1193,7 @@ ListDBClustersOKBodyPXCClustersItems0Operation RunningOperation respresents a lo swagger:model ListDBClustersOKBodyPXCClustersItems0Operation */ type ListDBClustersOKBodyPXCClustersItems0Operation struct { + // Finished steps of the operaion; can decrease or increase compared to the previous value. FinishedSteps int32 `json:"finished_steps,omitempty"` @@ -1211,6 +1237,7 @@ ListDBClustersOKBodyPXCClustersItems0Params PXCClusterParams represents PXC clus swagger:model ListDBClustersOKBodyPXCClustersItems0Params */ type ListDBClustersOKBodyPXCClustersItems0Params struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -1326,6 +1353,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) ContextValidate(ctx contex } func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1341,6 +1369,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateHaproxy(ctx } func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1356,6 +1385,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateProxysql(ct } func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1394,6 +1424,7 @@ ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy HAProxy container parameters. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy */ type ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy struct { + // Docker image used for HAProxy. Image string `json:"image,omitempty"` @@ -1449,6 +1480,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy) ContextValidate(ctx } func (o *ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1486,6 +1518,7 @@ ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources ComputeResour swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -1527,6 +1560,7 @@ ListDBClustersOKBodyPXCClustersItems0ParamsPXC PXC container parameters. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsPXC */ type ListDBClustersOKBodyPXCClustersItems0ParamsPXC struct { + // Docker image used for PXC. Image string `json:"image,omitempty"` @@ -1585,6 +1619,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsPXC) ContextValidate(ctx con } func (o *ListDBClustersOKBodyPXCClustersItems0ParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1622,6 +1657,7 @@ ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources ComputeResources swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -1663,6 +1699,7 @@ ListDBClustersOKBodyPXCClustersItems0ParamsProxysql ProxySQL container parameter swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsProxysql */ type ListDBClustersOKBodyPXCClustersItems0ParamsProxysql struct { + // Docker image used for ProxySQL. Image string `json:"image,omitempty"` @@ -1721,6 +1758,7 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsProxysql) ContextValidate(ct } func (o *ListDBClustersOKBodyPXCClustersItems0ParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1758,6 +1796,7 @@ ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources ComputeResou swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go index 43b6755cc5..83cbb17fa4 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go @@ -60,6 +60,7 @@ RestartDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RestartDBClusterParams struct { + // Body. Body RestartDBClusterBody @@ -129,6 +130,7 @@ func (o *RestartDBClusterParams) SetBody(body RestartDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *RestartDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go index 99bd494ffb..46e5a865f7 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go @@ -62,12 +62,12 @@ type RestartDBClusterOK struct { func (o *RestartDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Restart][%d] restartDbClusterOk %+v", 200, o.Payload) } - func (o *RestartDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *RestartDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *RestartDBClusterDefault) Code() int { func (o *RestartDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Restart][%d] RestartDBCluster default %+v", o._statusCode, o.Payload) } - func (o *RestartDBClusterDefault) GetPayload() *RestartDBClusterDefaultBody { return o.Payload } func (o *RestartDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RestartDBClusterDefaultBody) // response payload @@ -123,6 +123,7 @@ RestartDBClusterBody restart DB cluster body swagger:model RestartDBClusterBody */ type RestartDBClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -225,6 +226,7 @@ RestartDBClusterDefaultBody restart DB cluster default body swagger:model RestartDBClusterDefaultBody */ type RestartDBClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -290,7 +292,9 @@ func (o *RestartDBClusterDefaultBody) ContextValidate(ctx context.Context, forma } func (o *RestartDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -301,6 +305,7 @@ func (o *RestartDBClusterDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -329,6 +334,7 @@ RestartDBClusterDefaultBodyDetailsItems0 restart DB cluster default body details swagger:model RestartDBClusterDefaultBodyDetailsItems0 */ type RestartDBClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go index ffa4c86bad..d319e1c01f 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go @@ -60,6 +60,7 @@ GetKubernetesClusterParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type GetKubernetesClusterParams struct { + // Body. Body GetKubernetesClusterBody @@ -129,6 +130,7 @@ func (o *GetKubernetesClusterParams) SetBody(body GetKubernetesClusterBody) { // WriteToRequest writes these params to a swagger request func (o *GetKubernetesClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go index 28755b99e1..f138c4249d 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go @@ -60,12 +60,12 @@ type GetKubernetesClusterOK struct { func (o *GetKubernetesClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Get][%d] getKubernetesClusterOk %+v", 200, o.Payload) } - func (o *GetKubernetesClusterOK) GetPayload() *GetKubernetesClusterOKBody { return o.Payload } func (o *GetKubernetesClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetKubernetesClusterOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetKubernetesClusterDefault) Code() int { func (o *GetKubernetesClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Get][%d] GetKubernetesCluster default %+v", o._statusCode, o.Payload) } - func (o *GetKubernetesClusterDefault) GetPayload() *GetKubernetesClusterDefaultBody { return o.Payload } func (o *GetKubernetesClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetKubernetesClusterDefaultBody) // response payload @@ -123,6 +123,7 @@ GetKubernetesClusterBody get kubernetes cluster body swagger:model GetKubernetesClusterBody */ type GetKubernetesClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` } @@ -160,6 +161,7 @@ GetKubernetesClusterDefaultBody get kubernetes cluster default body swagger:model GetKubernetesClusterDefaultBody */ type GetKubernetesClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *GetKubernetesClusterDefaultBody) ContextValidate(ctx context.Context, f } func (o *GetKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *GetKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -264,6 +269,7 @@ GetKubernetesClusterDefaultBodyDetailsItems0 get kubernetes cluster default body swagger:model GetKubernetesClusterDefaultBodyDetailsItems0 */ type GetKubernetesClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ GetKubernetesClusterOKBody get kubernetes cluster OK body swagger:model GetKubernetesClusterOKBody */ type GetKubernetesClusterOKBody struct { + // kube auth KubeAuth *GetKubernetesClusterOKBodyKubeAuth `json:"kube_auth,omitempty"` } @@ -353,6 +360,7 @@ func (o *GetKubernetesClusterOKBody) ContextValidate(ctx context.Context, format } func (o *GetKubernetesClusterOKBody) contextValidateKubeAuth(ctx context.Context, formats strfmt.Registry) error { + if o.KubeAuth != nil { if err := o.KubeAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -390,6 +398,7 @@ GetKubernetesClusterOKBodyKubeAuth KubeAuth represents Kubernetes / kubectl auth swagger:model GetKubernetesClusterOKBodyKubeAuth */ type GetKubernetesClusterOKBodyKubeAuth struct { + // Kubeconfig file content. Kubeconfig string `json:"kubeconfig,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go index c973499d64..8cce9b49e0 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go @@ -60,6 +60,7 @@ GetResourcesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetResourcesParams struct { + // Body. Body GetResourcesBody @@ -129,6 +130,7 @@ func (o *GetResourcesParams) SetBody(body GetResourcesBody) { // WriteToRequest writes these params to a swagger request func (o *GetResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go b/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go index 0c057ab4cd..8a9ffad9da 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go @@ -60,12 +60,12 @@ type GetResourcesOK struct { func (o *GetResourcesOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Resources/Get][%d] getResourcesOk %+v", 200, o.Payload) } - func (o *GetResourcesOK) GetPayload() *GetResourcesOKBody { return o.Payload } func (o *GetResourcesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetResourcesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetResourcesDefault) Code() int { func (o *GetResourcesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Resources/Get][%d] GetResources default %+v", o._statusCode, o.Payload) } - func (o *GetResourcesDefault) GetPayload() *GetResourcesDefaultBody { return o.Payload } func (o *GetResourcesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetResourcesDefaultBody) // response payload @@ -123,6 +123,7 @@ GetResourcesBody get resources body swagger:model GetResourcesBody */ type GetResourcesBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` } @@ -160,6 +161,7 @@ GetResourcesDefaultBody get resources default body swagger:model GetResourcesDefaultBody */ type GetResourcesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *GetResourcesDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetResourcesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *GetResourcesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -264,6 +269,7 @@ GetResourcesDefaultBodyDetailsItems0 get resources default body details items0 swagger:model GetResourcesDefaultBodyDetailsItems0 */ type GetResourcesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ GetResourcesOKBody get resources OK body swagger:model GetResourcesOKBody */ type GetResourcesOKBody struct { + // all All *GetResourcesOKBodyAll `json:"all,omitempty"` @@ -383,6 +390,7 @@ func (o *GetResourcesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetResourcesOKBody) contextValidateAll(ctx context.Context, formats strfmt.Registry) error { + if o.All != nil { if err := o.All.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -398,6 +406,7 @@ func (o *GetResourcesOKBody) contextValidateAll(ctx context.Context, formats str } func (o *GetResourcesOKBody) contextValidateAvailable(ctx context.Context, formats strfmt.Registry) error { + if o.Available != nil { if err := o.Available.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -435,6 +444,7 @@ GetResourcesOKBodyAll Resources contains Kubernetes cluster resources. swagger:model GetResourcesOKBodyAll */ type GetResourcesOKBodyAll struct { + // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` @@ -479,6 +489,7 @@ GetResourcesOKBodyAvailable Resources contains Kubernetes cluster resources. swagger:model GetResourcesOKBodyAvailable */ type GetResourcesOKBodyAvailable struct { + // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` diff --git a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go index fc2546bdc7..5861f6a5b8 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go @@ -60,6 +60,7 @@ ListKubernetesClustersParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ListKubernetesClustersParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListKubernetesClustersParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListKubernetesClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go index ebb6c37919..aeb2c7de74 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go @@ -62,12 +62,12 @@ type ListKubernetesClustersOK struct { func (o *ListKubernetesClustersOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/List][%d] listKubernetesClustersOk %+v", 200, o.Payload) } - func (o *ListKubernetesClustersOK) GetPayload() *ListKubernetesClustersOKBody { return o.Payload } func (o *ListKubernetesClustersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListKubernetesClustersOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListKubernetesClustersDefault) Code() int { func (o *ListKubernetesClustersDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/List][%d] ListKubernetesClusters default %+v", o._statusCode, o.Payload) } - func (o *ListKubernetesClustersDefault) GetPayload() *ListKubernetesClustersDefaultBody { return o.Payload } func (o *ListKubernetesClustersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListKubernetesClustersDefaultBody) // response payload @@ -125,6 +125,7 @@ ListKubernetesClustersDefaultBody list kubernetes clusters default body swagger:model ListKubernetesClustersDefaultBody */ type ListKubernetesClustersDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *ListKubernetesClustersDefaultBody) ContextValidate(ctx context.Context, } func (o *ListKubernetesClustersDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *ListKubernetesClustersDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -229,6 +233,7 @@ ListKubernetesClustersDefaultBodyDetailsItems0 list kubernetes clusters default swagger:model ListKubernetesClustersDefaultBodyDetailsItems0 */ type ListKubernetesClustersDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ ListKubernetesClustersOKBody list kubernetes clusters OK body swagger:model ListKubernetesClustersOKBody */ type ListKubernetesClustersOKBody struct { + // Kubernetes clusters. KubernetesClusters []*ListKubernetesClustersOKBodyKubernetesClustersItems0 `json:"kubernetes_clusters"` } @@ -325,7 +331,9 @@ func (o *ListKubernetesClustersOKBody) ContextValidate(ctx context.Context, form } func (o *ListKubernetesClustersOKBody) contextValidateKubernetesClusters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.KubernetesClusters); i++ { + if o.KubernetesClusters[i] != nil { if err := o.KubernetesClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +344,7 @@ func (o *ListKubernetesClustersOKBody) contextValidateKubernetesClusters(ctx con return err } } + } return nil @@ -365,6 +374,7 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0 Cluster contains public inf swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0 */ type ListKubernetesClustersOKBodyKubernetesClustersItems0 struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -477,6 +487,7 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0) ContextValidate(c } func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0) contextValidateOperators(ctx context.Context, formats strfmt.Registry) error { + if o.Operators != nil { if err := o.Operators.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -514,6 +525,7 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0Operators Operators contains swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0Operators */ type ListKubernetesClustersOKBodyKubernetesClustersItems0Operators struct { + // psmdb PSMDB *ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB `json:"psmdb,omitempty"` @@ -596,6 +608,7 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) ContextV } func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) contextValidatePSMDB(ctx context.Context, formats strfmt.Registry) error { + if o.PSMDB != nil { if err := o.PSMDB.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -611,6 +624,7 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) contextV } func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -648,6 +662,7 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB Operator cont swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB */ type ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB struct { + // OperatorsStatus defines status of operators installed in Kubernetes cluster. // // - OPERATORS_STATUS_INVALID: OPERATORS_STATUS_INVALID represents unknown state. @@ -751,6 +766,7 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC Operator contai swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC */ type ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC struct { + // OperatorsStatus defines status of operators installed in Kubernetes cluster. // // - OPERATORS_STATUS_INVALID: OPERATORS_STATUS_INVALID represents unknown state. diff --git a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go index c672e66248..db6f0af6f2 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go @@ -60,6 +60,7 @@ RegisterKubernetesClusterParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type RegisterKubernetesClusterParams struct { + // Body. Body RegisterKubernetesClusterBody @@ -129,6 +130,7 @@ func (o *RegisterKubernetesClusterParams) SetBody(body RegisterKubernetesCluster // WriteToRequest writes these params to a swagger request func (o *RegisterKubernetesClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go index 019fabe844..c4fcefb50b 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go @@ -60,12 +60,12 @@ type RegisterKubernetesClusterOK struct { func (o *RegisterKubernetesClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Register][%d] registerKubernetesClusterOk %+v", 200, o.Payload) } - func (o *RegisterKubernetesClusterOK) GetPayload() interface{} { return o.Payload } func (o *RegisterKubernetesClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RegisterKubernetesClusterDefault) Code() int { func (o *RegisterKubernetesClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Register][%d] RegisterKubernetesCluster default %+v", o._statusCode, o.Payload) } - func (o *RegisterKubernetesClusterDefault) GetPayload() *RegisterKubernetesClusterDefaultBody { return o.Payload } func (o *RegisterKubernetesClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RegisterKubernetesClusterDefaultBody) // response payload @@ -121,6 +121,7 @@ RegisterKubernetesClusterBody register kubernetes cluster body swagger:model RegisterKubernetesClusterBody */ type RegisterKubernetesClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -182,6 +183,7 @@ func (o *RegisterKubernetesClusterBody) ContextValidate(ctx context.Context, for } func (o *RegisterKubernetesClusterBody) contextValidateKubeAuth(ctx context.Context, formats strfmt.Registry) error { + if o.KubeAuth != nil { if err := o.KubeAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,6 +221,7 @@ RegisterKubernetesClusterDefaultBody register kubernetes cluster default body swagger:model RegisterKubernetesClusterDefaultBody */ type RegisterKubernetesClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -284,7 +287,9 @@ func (o *RegisterKubernetesClusterDefaultBody) ContextValidate(ctx context.Conte } func (o *RegisterKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -295,6 +300,7 @@ func (o *RegisterKubernetesClusterDefaultBody) contextValidateDetails(ctx contex return err } } + } return nil @@ -323,6 +329,7 @@ RegisterKubernetesClusterDefaultBodyDetailsItems0 register kubernetes cluster de swagger:model RegisterKubernetesClusterDefaultBodyDetailsItems0 */ type RegisterKubernetesClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -360,6 +367,7 @@ RegisterKubernetesClusterParamsBodyKubeAuth KubeAuth represents Kubernetes / kub swagger:model RegisterKubernetesClusterParamsBodyKubeAuth */ type RegisterKubernetesClusterParamsBodyKubeAuth struct { + // Kubeconfig file content. Kubeconfig string `json:"kubeconfig,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go index bc66be521f..c5ad0034e6 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go @@ -60,6 +60,7 @@ UnregisterKubernetesClusterParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type UnregisterKubernetesClusterParams struct { + // Body. Body UnregisterKubernetesClusterBody @@ -129,6 +130,7 @@ func (o *UnregisterKubernetesClusterParams) SetBody(body UnregisterKubernetesClu // WriteToRequest writes these params to a swagger request func (o *UnregisterKubernetesClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go index 2429e1e295..c0339820ed 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go @@ -60,12 +60,12 @@ type UnregisterKubernetesClusterOK struct { func (o *UnregisterKubernetesClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Unregister][%d] unregisterKubernetesClusterOk %+v", 200, o.Payload) } - func (o *UnregisterKubernetesClusterOK) GetPayload() interface{} { return o.Payload } func (o *UnregisterKubernetesClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UnregisterKubernetesClusterDefault) Code() int { func (o *UnregisterKubernetesClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Unregister][%d] UnregisterKubernetesCluster default %+v", o._statusCode, o.Payload) } - func (o *UnregisterKubernetesClusterDefault) GetPayload() *UnregisterKubernetesClusterDefaultBody { return o.Payload } func (o *UnregisterKubernetesClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UnregisterKubernetesClusterDefaultBody) // response payload @@ -121,6 +121,7 @@ UnregisterKubernetesClusterBody unregister kubernetes cluster body swagger:model UnregisterKubernetesClusterBody */ type UnregisterKubernetesClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -162,6 +163,7 @@ UnregisterKubernetesClusterDefaultBody unregister kubernetes cluster default bod swagger:model UnregisterKubernetesClusterDefaultBody */ type UnregisterKubernetesClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -227,7 +229,9 @@ func (o *UnregisterKubernetesClusterDefaultBody) ContextValidate(ctx context.Con } func (o *UnregisterKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,6 +242,7 @@ func (o *UnregisterKubernetesClusterDefaultBody) contextValidateDetails(ctx cont return err } } + } return nil @@ -266,6 +271,7 @@ UnregisterKubernetesClusterDefaultBodyDetailsItems0 unregister kubernetes cluste swagger:model UnregisterKubernetesClusterDefaultBodyDetailsItems0 */ type UnregisterKubernetesClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go b/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go index 66f2f1ca9d..15098cee3e 100644 --- a/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go +++ b/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go @@ -60,6 +60,7 @@ GetLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsParams struct { + // Body. Body GetLogsBody @@ -129,6 +130,7 @@ func (o *GetLogsParams) SetBody(body GetLogsBody) { // WriteToRequest writes these params to a swagger request func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go b/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go index 21d5f7525a..26386663d3 100644 --- a/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go +++ b/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go @@ -60,12 +60,12 @@ type GetLogsOK struct { func (o *GetLogsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/GetLogs][%d] getLogsOk %+v", 200, o.Payload) } - func (o *GetLogsOK) GetPayload() *GetLogsOKBody { return o.Payload } func (o *GetLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetLogsDefault) Code() int { func (o *GetLogsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/GetLogs][%d] GetLogs default %+v", o._statusCode, o.Payload) } - func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody { return o.Payload } func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetLogsBody get logs body swagger:model GetLogsBody */ type GetLogsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -163,6 +164,7 @@ GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *GetLogsDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -267,6 +272,7 @@ GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { + // Log represents list of logs. Each entry contains either container's logs or, // when container field is empty, pod's events. Logs []*GetLogsOKBodyLogsItems0 `json:"logs"` @@ -364,7 +371,9 @@ func (o *GetLogsOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Logs); i++ { + if o.Logs[i] != nil { if err := o.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -375,6 +384,7 @@ func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt. return err } } + } return nil @@ -404,6 +414,7 @@ GetLogsOKBodyLogsItems0 Logs contain logs for certain pod's container. If contai swagger:model GetLogsOKBodyLogsItems0 */ type GetLogsOKBodyLogsItems0 struct { + // Pod name. Pod string `json:"pod,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go index 0998427faa..da1710b6ce 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go @@ -60,6 +60,7 @@ CreatePSMDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreatePSMDBClusterParams struct { + // Body. Body CreatePSMDBClusterBody @@ -129,6 +130,7 @@ func (o *CreatePSMDBClusterParams) SetBody(body CreatePSMDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *CreatePSMDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go index f06a99099b..508b9227fc 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go @@ -60,12 +60,12 @@ type CreatePSMDBClusterOK struct { func (o *CreatePSMDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Create][%d] createPsmdbClusterOk %+v", 200, o.Payload) } - func (o *CreatePSMDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *CreatePSMDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CreatePSMDBClusterDefault) Code() int { func (o *CreatePSMDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Create][%d] CreatePSMDBCluster default %+v", o._statusCode, o.Payload) } - func (o *CreatePSMDBClusterDefault) GetPayload() *CreatePSMDBClusterDefaultBody { return o.Payload } func (o *CreatePSMDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreatePSMDBClusterDefaultBody) // response payload @@ -121,6 +121,7 @@ CreatePSMDBClusterBody create PSMDB cluster body swagger:model CreatePSMDBClusterBody */ type CreatePSMDBClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -185,6 +186,7 @@ func (o *CreatePSMDBClusterBody) ContextValidate(ctx context.Context, formats st } func (o *CreatePSMDBClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -222,6 +224,7 @@ CreatePSMDBClusterDefaultBody create PSMDB cluster default body swagger:model CreatePSMDBClusterDefaultBody */ type CreatePSMDBClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -287,7 +290,9 @@ func (o *CreatePSMDBClusterDefaultBody) ContextValidate(ctx context.Context, for } func (o *CreatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,6 +303,7 @@ func (o *CreatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -326,6 +332,7 @@ CreatePSMDBClusterDefaultBodyDetailsItems0 create PSMDB cluster default body det swagger:model CreatePSMDBClusterDefaultBodyDetailsItems0 */ type CreatePSMDBClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -363,6 +370,7 @@ CreatePSMDBClusterParamsBodyParams PSMDBClusterParams represents PSMDB cluster p swagger:model CreatePSMDBClusterParamsBodyParams */ type CreatePSMDBClusterParamsBodyParams struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -421,6 +429,7 @@ func (o *CreatePSMDBClusterParamsBodyParams) ContextValidate(ctx context.Context } func (o *CreatePSMDBClusterParamsBodyParams) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { + if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -459,6 +468,7 @@ CreatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. swagger:model CreatePSMDBClusterParamsBodyParamsReplicaset */ type CreatePSMDBClusterParamsBodyParamsReplicaset struct { + // Disk size in bytes. DiskSize string `json:"disk_size,omitempty"` @@ -514,6 +524,7 @@ func (o *CreatePSMDBClusterParamsBodyParamsReplicaset) ContextValidate(ctx conte } func (o *CreatePSMDBClusterParamsBodyParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -551,6 +562,7 @@ CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources re swagger:model CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources */ type CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go index f51b6e79fc..e85e476b40 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go @@ -60,6 +60,7 @@ GetPSMDBClusterCredentialsParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type GetPSMDBClusterCredentialsParams struct { + // Body. Body GetPSMDBClusterCredentialsBody @@ -129,6 +130,7 @@ func (o *GetPSMDBClusterCredentialsParams) SetBody(body GetPSMDBClusterCredentia // WriteToRequest writes these params to a swagger request func (o *GetPSMDBClusterCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go index 0c53037935..d6f97c0cd3 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go @@ -60,12 +60,12 @@ type GetPSMDBClusterCredentialsOK struct { func (o *GetPSMDBClusterCredentialsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBClusters/GetCredentials][%d] getPsmdbClusterCredentialsOk %+v", 200, o.Payload) } - func (o *GetPSMDBClusterCredentialsOK) GetPayload() *GetPSMDBClusterCredentialsOKBody { return o.Payload } func (o *GetPSMDBClusterCredentialsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPSMDBClusterCredentialsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPSMDBClusterCredentialsDefault) Code() int { func (o *GetPSMDBClusterCredentialsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBClusters/GetCredentials][%d] GetPSMDBClusterCredentials default %+v", o._statusCode, o.Payload) } - func (o *GetPSMDBClusterCredentialsDefault) GetPayload() *GetPSMDBClusterCredentialsDefaultBody { return o.Payload } func (o *GetPSMDBClusterCredentialsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPSMDBClusterCredentialsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetPSMDBClusterCredentialsBody get PSMDB cluster credentials body swagger:model GetPSMDBClusterCredentialsBody */ type GetPSMDBClusterCredentialsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -163,6 +164,7 @@ GetPSMDBClusterCredentialsDefaultBody get PSMDB cluster credentials default body swagger:model GetPSMDBClusterCredentialsDefaultBody */ type GetPSMDBClusterCredentialsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *GetPSMDBClusterCredentialsDefaultBody) ContextValidate(ctx context.Cont } func (o *GetPSMDBClusterCredentialsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *GetPSMDBClusterCredentialsDefaultBody) contextValidateDetails(ctx conte return err } } + } return nil @@ -267,6 +272,7 @@ GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 get PSMDB cluster credentials swagger:model GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 */ type GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ GetPSMDBClusterCredentialsOKBody get PSMDB cluster credentials OK body swagger:model GetPSMDBClusterCredentialsOKBody */ type GetPSMDBClusterCredentialsOKBody struct { + // connection credentials ConnectionCredentials *GetPSMDBClusterCredentialsOKBodyConnectionCredentials `json:"connection_credentials,omitempty"` } @@ -356,6 +363,7 @@ func (o *GetPSMDBClusterCredentialsOKBody) ContextValidate(ctx context.Context, } func (o *GetPSMDBClusterCredentialsOKBody) contextValidateConnectionCredentials(ctx context.Context, formats strfmt.Registry) error { + if o.ConnectionCredentials != nil { if err := o.ConnectionCredentials.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -394,6 +402,7 @@ GetPSMDBClusterCredentialsOKBodyConnectionCredentials PSMDBCredentials is a cred swagger:model GetPSMDBClusterCredentialsOKBodyConnectionCredentials */ type GetPSMDBClusterCredentialsOKBodyConnectionCredentials struct { + // MongoDB username. Username string `json:"username,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go index 74b6e68f61..3a42ba6338 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go @@ -60,6 +60,7 @@ GetPSMDBClusterResourcesParams contains all the parameters to send to the API en Typically these are written to a http.Request. */ type GetPSMDBClusterResourcesParams struct { + // Body. Body GetPSMDBClusterResourcesBody @@ -129,6 +130,7 @@ func (o *GetPSMDBClusterResourcesParams) SetBody(body GetPSMDBClusterResourcesBo // WriteToRequest writes these params to a swagger request func (o *GetPSMDBClusterResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go index 2058b4f9af..1292e69612 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go @@ -60,12 +60,12 @@ type GetPSMDBClusterResourcesOK struct { func (o *GetPSMDBClusterResourcesOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Resources/Get][%d] getPsmdbClusterResourcesOk %+v", 200, o.Payload) } - func (o *GetPSMDBClusterResourcesOK) GetPayload() *GetPSMDBClusterResourcesOKBody { return o.Payload } func (o *GetPSMDBClusterResourcesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPSMDBClusterResourcesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPSMDBClusterResourcesDefault) Code() int { func (o *GetPSMDBClusterResourcesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Resources/Get][%d] GetPSMDBClusterResources default %+v", o._statusCode, o.Payload) } - func (o *GetPSMDBClusterResourcesDefault) GetPayload() *GetPSMDBClusterResourcesDefaultBody { return o.Payload } func (o *GetPSMDBClusterResourcesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPSMDBClusterResourcesDefaultBody) // response payload @@ -123,6 +123,7 @@ GetPSMDBClusterResourcesBody get PSMDB cluster resources body swagger:model GetPSMDBClusterResourcesBody */ type GetPSMDBClusterResourcesBody struct { + // params Params *GetPSMDBClusterResourcesParamsBodyParams `json:"params,omitempty"` } @@ -175,6 +176,7 @@ func (o *GetPSMDBClusterResourcesBody) ContextValidate(ctx context.Context, form } func (o *GetPSMDBClusterResourcesBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -212,6 +214,7 @@ GetPSMDBClusterResourcesDefaultBody get PSMDB cluster resources default body swagger:model GetPSMDBClusterResourcesDefaultBody */ type GetPSMDBClusterResourcesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -277,7 +280,9 @@ func (o *GetPSMDBClusterResourcesDefaultBody) ContextValidate(ctx context.Contex } func (o *GetPSMDBClusterResourcesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -288,6 +293,7 @@ func (o *GetPSMDBClusterResourcesDefaultBody) contextValidateDetails(ctx context return err } } + } return nil @@ -316,6 +322,7 @@ GetPSMDBClusterResourcesDefaultBodyDetailsItems0 get PSMDB cluster resources def swagger:model GetPSMDBClusterResourcesDefaultBodyDetailsItems0 */ type GetPSMDBClusterResourcesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -353,6 +360,7 @@ GetPSMDBClusterResourcesOKBody get PSMDB cluster resources OK body swagger:model GetPSMDBClusterResourcesOKBody */ type GetPSMDBClusterResourcesOKBody struct { + // expected Expected *GetPSMDBClusterResourcesOKBodyExpected `json:"expected,omitempty"` } @@ -405,6 +413,7 @@ func (o *GetPSMDBClusterResourcesOKBody) ContextValidate(ctx context.Context, fo } func (o *GetPSMDBClusterResourcesOKBody) contextValidateExpected(ctx context.Context, formats strfmt.Registry) error { + if o.Expected != nil { if err := o.Expected.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -442,6 +451,7 @@ GetPSMDBClusterResourcesOKBodyExpected Resources contains Kubernetes cluster res swagger:model GetPSMDBClusterResourcesOKBodyExpected */ type GetPSMDBClusterResourcesOKBodyExpected struct { + // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` @@ -486,6 +496,7 @@ GetPSMDBClusterResourcesParamsBodyParams PSMDBClusterParams represents PSMDB clu swagger:model GetPSMDBClusterResourcesParamsBodyParams */ type GetPSMDBClusterResourcesParamsBodyParams struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -544,6 +555,7 @@ func (o *GetPSMDBClusterResourcesParamsBodyParams) ContextValidate(ctx context.C } func (o *GetPSMDBClusterResourcesParamsBodyParams) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { + if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -582,6 +594,7 @@ GetPSMDBClusterResourcesParamsBodyParamsReplicaset ReplicaSet container paramete swagger:model GetPSMDBClusterResourcesParamsBodyParamsReplicaset */ type GetPSMDBClusterResourcesParamsBodyParamsReplicaset struct { + // Disk size in bytes. DiskSize string `json:"disk_size,omitempty"` @@ -637,6 +650,7 @@ func (o *GetPSMDBClusterResourcesParamsBodyParamsReplicaset) ContextValidate(ctx } func (o *GetPSMDBClusterResourcesParamsBodyParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -674,6 +688,7 @@ GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources ComputeResour swagger:model GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources */ type GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go index 23c76e1316..2ead9b1866 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go @@ -60,6 +60,7 @@ UpdatePSMDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdatePSMDBClusterParams struct { + // Body. Body UpdatePSMDBClusterBody @@ -129,6 +130,7 @@ func (o *UpdatePSMDBClusterParams) SetBody(body UpdatePSMDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *UpdatePSMDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go index 806134b7f8..7a15f74a90 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go @@ -60,12 +60,12 @@ type UpdatePSMDBClusterOK struct { func (o *UpdatePSMDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Update][%d] updatePsmdbClusterOk %+v", 200, o.Payload) } - func (o *UpdatePSMDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *UpdatePSMDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UpdatePSMDBClusterDefault) Code() int { func (o *UpdatePSMDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Update][%d] UpdatePSMDBCluster default %+v", o._statusCode, o.Payload) } - func (o *UpdatePSMDBClusterDefault) GetPayload() *UpdatePSMDBClusterDefaultBody { return o.Payload } func (o *UpdatePSMDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdatePSMDBClusterDefaultBody) // response payload @@ -121,6 +121,7 @@ UpdatePSMDBClusterBody update PSMDB cluster body swagger:model UpdatePSMDBClusterBody */ type UpdatePSMDBClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -179,6 +180,7 @@ func (o *UpdatePSMDBClusterBody) ContextValidate(ctx context.Context, formats st } func (o *UpdatePSMDBClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -216,6 +218,7 @@ UpdatePSMDBClusterDefaultBody update PSMDB cluster default body swagger:model UpdatePSMDBClusterDefaultBody */ type UpdatePSMDBClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -281,7 +284,9 @@ func (o *UpdatePSMDBClusterDefaultBody) ContextValidate(ctx context.Context, for } func (o *UpdatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -292,6 +297,7 @@ func (o *UpdatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -320,6 +326,7 @@ UpdatePSMDBClusterDefaultBodyDetailsItems0 update PSMDB cluster default body det swagger:model UpdatePSMDBClusterDefaultBodyDetailsItems0 */ type UpdatePSMDBClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +364,7 @@ UpdatePSMDBClusterParamsBodyParams UpdatePSMDBClusterParams represents PSMDB clu swagger:model UpdatePSMDBClusterParamsBodyParams */ type UpdatePSMDBClusterParamsBodyParams struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -422,6 +430,7 @@ func (o *UpdatePSMDBClusterParamsBodyParams) ContextValidate(ctx context.Context } func (o *UpdatePSMDBClusterParamsBodyParams) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { + if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -459,6 +468,7 @@ UpdatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. swagger:model UpdatePSMDBClusterParamsBodyParamsReplicaset */ type UpdatePSMDBClusterParamsBodyParamsReplicaset struct { + // compute resources ComputeResources *UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources `json:"compute_resources,omitempty"` } @@ -511,6 +521,7 @@ func (o *UpdatePSMDBClusterParamsBodyParamsReplicaset) ContextValidate(ctx conte } func (o *UpdatePSMDBClusterParamsBodyParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -548,6 +559,7 @@ UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources re swagger:model UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources */ type UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go index 7beb33eddb..6ebde1e9e8 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go @@ -60,6 +60,7 @@ CreatePXCClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreatePXCClusterParams struct { + // Body. Body CreatePXCClusterBody @@ -129,6 +130,7 @@ func (o *CreatePXCClusterParams) SetBody(body CreatePXCClusterBody) { // WriteToRequest writes these params to a swagger request func (o *CreatePXCClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go index f8220f1e67..970b9089b6 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go @@ -60,12 +60,12 @@ type CreatePXCClusterOK struct { func (o *CreatePXCClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Create][%d] createPxcClusterOk %+v", 200, o.Payload) } - func (o *CreatePXCClusterOK) GetPayload() interface{} { return o.Payload } func (o *CreatePXCClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CreatePXCClusterDefault) Code() int { func (o *CreatePXCClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Create][%d] CreatePXCCluster default %+v", o._statusCode, o.Payload) } - func (o *CreatePXCClusterDefault) GetPayload() *CreatePXCClusterDefaultBody { return o.Payload } func (o *CreatePXCClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreatePXCClusterDefaultBody) // response payload @@ -121,6 +121,7 @@ CreatePXCClusterBody create PXC cluster body swagger:model CreatePXCClusterBody */ type CreatePXCClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -185,6 +186,7 @@ func (o *CreatePXCClusterBody) ContextValidate(ctx context.Context, formats strf } func (o *CreatePXCClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -222,6 +224,7 @@ CreatePXCClusterDefaultBody create PXC cluster default body swagger:model CreatePXCClusterDefaultBody */ type CreatePXCClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -287,7 +290,9 @@ func (o *CreatePXCClusterDefaultBody) ContextValidate(ctx context.Context, forma } func (o *CreatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,6 +303,7 @@ func (o *CreatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -326,6 +332,7 @@ CreatePXCClusterDefaultBodyDetailsItems0 create PXC cluster default body details swagger:model CreatePXCClusterDefaultBodyDetailsItems0 */ type CreatePXCClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -363,6 +370,7 @@ CreatePXCClusterParamsBodyParams PXCClusterParams represents PXC cluster paramet swagger:model CreatePXCClusterParamsBodyParams */ type CreatePXCClusterParamsBodyParams struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -478,6 +486,7 @@ func (o *CreatePXCClusterParamsBodyParams) ContextValidate(ctx context.Context, } func (o *CreatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -493,6 +502,7 @@ func (o *CreatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Co } func (o *CreatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -508,6 +518,7 @@ func (o *CreatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.C } func (o *CreatePXCClusterParamsBodyParams) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -546,6 +557,7 @@ CreatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. swagger:model CreatePXCClusterParamsBodyParamsHaproxy */ type CreatePXCClusterParamsBodyParamsHaproxy struct { + // Docker image used for HAProxy. Image string `json:"image,omitempty"` @@ -601,6 +613,7 @@ func (o *CreatePXCClusterParamsBodyParamsHaproxy) ContextValidate(ctx context.Co } func (o *CreatePXCClusterParamsBodyParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -638,6 +651,7 @@ CreatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represe swagger:model CreatePXCClusterParamsBodyParamsHaproxyComputeResources */ type CreatePXCClusterParamsBodyParamsHaproxyComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -679,6 +693,7 @@ CreatePXCClusterParamsBodyParamsPXC PXC container parameters. swagger:model CreatePXCClusterParamsBodyParamsPXC */ type CreatePXCClusterParamsBodyParamsPXC struct { + // Docker image used for PXC. Image string `json:"image,omitempty"` @@ -737,6 +752,7 @@ func (o *CreatePXCClusterParamsBodyParamsPXC) ContextValidate(ctx context.Contex } func (o *CreatePXCClusterParamsBodyParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -774,6 +790,7 @@ CreatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents swagger:model CreatePXCClusterParamsBodyParamsPXCComputeResources */ type CreatePXCClusterParamsBodyParamsPXCComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -815,6 +832,7 @@ CreatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. swagger:model CreatePXCClusterParamsBodyParamsProxysql */ type CreatePXCClusterParamsBodyParamsProxysql struct { + // Docker image used for ProxySQL. Image string `json:"image,omitempty"` @@ -873,6 +891,7 @@ func (o *CreatePXCClusterParamsBodyParamsProxysql) ContextValidate(ctx context.C } func (o *CreatePXCClusterParamsBodyParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -910,6 +929,7 @@ CreatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources repres swagger:model CreatePXCClusterParamsBodyParamsProxysqlComputeResources */ type CreatePXCClusterParamsBodyParamsProxysqlComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go index 7c4d2afb1e..7d0e885d95 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go @@ -60,6 +60,7 @@ GetPXCClusterCredentialsParams contains all the parameters to send to the API en Typically these are written to a http.Request. */ type GetPXCClusterCredentialsParams struct { + // Body. Body GetPXCClusterCredentialsBody @@ -129,6 +130,7 @@ func (o *GetPXCClusterCredentialsParams) SetBody(body GetPXCClusterCredentialsBo // WriteToRequest writes these params to a swagger request func (o *GetPXCClusterCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go index 6273b03f15..9d355ed7c5 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go @@ -60,12 +60,12 @@ type GetPXCClusterCredentialsOK struct { func (o *GetPXCClusterCredentialsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCClusters/GetCredentials][%d] getPxcClusterCredentialsOk %+v", 200, o.Payload) } - func (o *GetPXCClusterCredentialsOK) GetPayload() *GetPXCClusterCredentialsOKBody { return o.Payload } func (o *GetPXCClusterCredentialsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPXCClusterCredentialsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPXCClusterCredentialsDefault) Code() int { func (o *GetPXCClusterCredentialsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCClusters/GetCredentials][%d] GetPXCClusterCredentials default %+v", o._statusCode, o.Payload) } - func (o *GetPXCClusterCredentialsDefault) GetPayload() *GetPXCClusterCredentialsDefaultBody { return o.Payload } func (o *GetPXCClusterCredentialsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPXCClusterCredentialsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetPXCClusterCredentialsBody get PXC cluster credentials body swagger:model GetPXCClusterCredentialsBody */ type GetPXCClusterCredentialsBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -163,6 +164,7 @@ GetPXCClusterCredentialsDefaultBody get PXC cluster credentials default body swagger:model GetPXCClusterCredentialsDefaultBody */ type GetPXCClusterCredentialsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *GetPXCClusterCredentialsDefaultBody) ContextValidate(ctx context.Contex } func (o *GetPXCClusterCredentialsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *GetPXCClusterCredentialsDefaultBody) contextValidateDetails(ctx context return err } } + } return nil @@ -267,6 +272,7 @@ GetPXCClusterCredentialsDefaultBodyDetailsItems0 get PXC cluster credentials def swagger:model GetPXCClusterCredentialsDefaultBodyDetailsItems0 */ type GetPXCClusterCredentialsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ GetPXCClusterCredentialsOKBody get PXC cluster credentials OK body swagger:model GetPXCClusterCredentialsOKBody */ type GetPXCClusterCredentialsOKBody struct { + // connection credentials ConnectionCredentials *GetPXCClusterCredentialsOKBodyConnectionCredentials `json:"connection_credentials,omitempty"` } @@ -356,6 +363,7 @@ func (o *GetPXCClusterCredentialsOKBody) ContextValidate(ctx context.Context, fo } func (o *GetPXCClusterCredentialsOKBody) contextValidateConnectionCredentials(ctx context.Context, formats strfmt.Registry) error { + if o.ConnectionCredentials != nil { if err := o.ConnectionCredentials.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -393,6 +401,7 @@ GetPXCClusterCredentialsOKBodyConnectionCredentials PXCClusterConnectionCredenti swagger:model GetPXCClusterCredentialsOKBodyConnectionCredentials */ type GetPXCClusterCredentialsOKBodyConnectionCredentials struct { + // PXC username. Username string `json:"username,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go index 12e6ed514f..17c03d3a3f 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go @@ -60,6 +60,7 @@ GetPXCClusterResourcesParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type GetPXCClusterResourcesParams struct { + // Body. Body GetPXCClusterResourcesBody @@ -129,6 +130,7 @@ func (o *GetPXCClusterResourcesParams) SetBody(body GetPXCClusterResourcesBody) // WriteToRequest writes these params to a swagger request func (o *GetPXCClusterResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go index 21c3637db3..c882ab136a 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go @@ -60,12 +60,12 @@ type GetPXCClusterResourcesOK struct { func (o *GetPXCClusterResourcesOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Resources/Get][%d] getPxcClusterResourcesOk %+v", 200, o.Payload) } - func (o *GetPXCClusterResourcesOK) GetPayload() *GetPXCClusterResourcesOKBody { return o.Payload } func (o *GetPXCClusterResourcesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPXCClusterResourcesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPXCClusterResourcesDefault) Code() int { func (o *GetPXCClusterResourcesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Resources/Get][%d] GetPXCClusterResources default %+v", o._statusCode, o.Payload) } - func (o *GetPXCClusterResourcesDefault) GetPayload() *GetPXCClusterResourcesDefaultBody { return o.Payload } func (o *GetPXCClusterResourcesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetPXCClusterResourcesDefaultBody) // response payload @@ -123,6 +123,7 @@ GetPXCClusterResourcesBody get PXC cluster resources body swagger:model GetPXCClusterResourcesBody */ type GetPXCClusterResourcesBody struct { + // params Params *GetPXCClusterResourcesParamsBodyParams `json:"params,omitempty"` } @@ -175,6 +176,7 @@ func (o *GetPXCClusterResourcesBody) ContextValidate(ctx context.Context, format } func (o *GetPXCClusterResourcesBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -212,6 +214,7 @@ GetPXCClusterResourcesDefaultBody get PXC cluster resources default body swagger:model GetPXCClusterResourcesDefaultBody */ type GetPXCClusterResourcesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -277,7 +280,9 @@ func (o *GetPXCClusterResourcesDefaultBody) ContextValidate(ctx context.Context, } func (o *GetPXCClusterResourcesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -288,6 +293,7 @@ func (o *GetPXCClusterResourcesDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -316,6 +322,7 @@ GetPXCClusterResourcesDefaultBodyDetailsItems0 get PXC cluster resources default swagger:model GetPXCClusterResourcesDefaultBodyDetailsItems0 */ type GetPXCClusterResourcesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -353,6 +360,7 @@ GetPXCClusterResourcesOKBody get PXC cluster resources OK body swagger:model GetPXCClusterResourcesOKBody */ type GetPXCClusterResourcesOKBody struct { + // expected Expected *GetPXCClusterResourcesOKBodyExpected `json:"expected,omitempty"` } @@ -405,6 +413,7 @@ func (o *GetPXCClusterResourcesOKBody) ContextValidate(ctx context.Context, form } func (o *GetPXCClusterResourcesOKBody) contextValidateExpected(ctx context.Context, formats strfmt.Registry) error { + if o.Expected != nil { if err := o.Expected.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -442,6 +451,7 @@ GetPXCClusterResourcesOKBodyExpected Resources contains Kubernetes cluster resou swagger:model GetPXCClusterResourcesOKBodyExpected */ type GetPXCClusterResourcesOKBodyExpected struct { + // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` @@ -486,6 +496,7 @@ GetPXCClusterResourcesParamsBodyParams PXCClusterParams represents PXC cluster p swagger:model GetPXCClusterResourcesParamsBodyParams */ type GetPXCClusterResourcesParamsBodyParams struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -601,6 +612,7 @@ func (o *GetPXCClusterResourcesParamsBodyParams) ContextValidate(ctx context.Con } func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -616,6 +628,7 @@ func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateHaproxy(ctx cont } func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -631,6 +644,7 @@ func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateProxysql(ctx con } func (o *GetPXCClusterResourcesParamsBodyParams) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -669,6 +683,7 @@ GetPXCClusterResourcesParamsBodyParamsHaproxy HAProxy container parameters. swagger:model GetPXCClusterResourcesParamsBodyParamsHaproxy */ type GetPXCClusterResourcesParamsBodyParamsHaproxy struct { + // Docker image used for HAProxy. Image string `json:"image,omitempty"` @@ -724,6 +739,7 @@ func (o *GetPXCClusterResourcesParamsBodyParamsHaproxy) ContextValidate(ctx cont } func (o *GetPXCClusterResourcesParamsBodyParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -761,6 +777,7 @@ GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources ComputeResources r swagger:model GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources */ type GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -802,6 +819,7 @@ GetPXCClusterResourcesParamsBodyParamsPXC PXC container parameters. swagger:model GetPXCClusterResourcesParamsBodyParamsPXC */ type GetPXCClusterResourcesParamsBodyParamsPXC struct { + // Docker image used for PXC. Image string `json:"image,omitempty"` @@ -860,6 +878,7 @@ func (o *GetPXCClusterResourcesParamsBodyParamsPXC) ContextValidate(ctx context. } func (o *GetPXCClusterResourcesParamsBodyParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -897,6 +916,7 @@ GetPXCClusterResourcesParamsBodyParamsPXCComputeResources ComputeResources repre swagger:model GetPXCClusterResourcesParamsBodyParamsPXCComputeResources */ type GetPXCClusterResourcesParamsBodyParamsPXCComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -938,6 +958,7 @@ GetPXCClusterResourcesParamsBodyParamsProxysql ProxySQL container parameters. swagger:model GetPXCClusterResourcesParamsBodyParamsProxysql */ type GetPXCClusterResourcesParamsBodyParamsProxysql struct { + // Docker image used for ProxySQL. Image string `json:"image,omitempty"` @@ -996,6 +1017,7 @@ func (o *GetPXCClusterResourcesParamsBodyParamsProxysql) ContextValidate(ctx con } func (o *GetPXCClusterResourcesParamsBodyParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1033,6 +1055,7 @@ GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources ComputeResources swagger:model GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources */ type GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go index 61a4122345..f7e99bd00f 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go @@ -60,6 +60,7 @@ UpdatePXCClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdatePXCClusterParams struct { + // Body. Body UpdatePXCClusterBody @@ -129,6 +130,7 @@ func (o *UpdatePXCClusterParams) SetBody(body UpdatePXCClusterBody) { // WriteToRequest writes these params to a swagger request func (o *UpdatePXCClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go index 20379f5bc2..81bfd46195 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go @@ -60,12 +60,12 @@ type UpdatePXCClusterOK struct { func (o *UpdatePXCClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Update][%d] updatePxcClusterOk %+v", 200, o.Payload) } - func (o *UpdatePXCClusterOK) GetPayload() interface{} { return o.Payload } func (o *UpdatePXCClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UpdatePXCClusterDefault) Code() int { func (o *UpdatePXCClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Update][%d] UpdatePXCCluster default %+v", o._statusCode, o.Payload) } - func (o *UpdatePXCClusterDefault) GetPayload() *UpdatePXCClusterDefaultBody { return o.Payload } func (o *UpdatePXCClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdatePXCClusterDefaultBody) // response payload @@ -121,6 +121,7 @@ UpdatePXCClusterBody update PXC cluster body swagger:model UpdatePXCClusterBody */ type UpdatePXCClusterBody struct { + // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -179,6 +180,7 @@ func (o *UpdatePXCClusterBody) ContextValidate(ctx context.Context, formats strf } func (o *UpdatePXCClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -216,6 +218,7 @@ UpdatePXCClusterDefaultBody update PXC cluster default body swagger:model UpdatePXCClusterDefaultBody */ type UpdatePXCClusterDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -281,7 +284,9 @@ func (o *UpdatePXCClusterDefaultBody) ContextValidate(ctx context.Context, forma } func (o *UpdatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -292,6 +297,7 @@ func (o *UpdatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -320,6 +326,7 @@ UpdatePXCClusterDefaultBodyDetailsItems0 update PXC cluster default body details swagger:model UpdatePXCClusterDefaultBodyDetailsItems0 */ type UpdatePXCClusterDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +364,7 @@ UpdatePXCClusterParamsBodyParams UpdatePXCClusterParams represents PXC cluster p swagger:model UpdatePXCClusterParamsBodyParams */ type UpdatePXCClusterParamsBodyParams struct { + // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -478,6 +486,7 @@ func (o *UpdatePXCClusterParamsBodyParams) ContextValidate(ctx context.Context, } func (o *UpdatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -493,6 +502,7 @@ func (o *UpdatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Co } func (o *UpdatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -508,6 +518,7 @@ func (o *UpdatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.C } func (o *UpdatePXCClusterParamsBodyParams) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { + if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -545,6 +556,7 @@ UpdatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. swagger:model UpdatePXCClusterParamsBodyParamsHaproxy */ type UpdatePXCClusterParamsBodyParamsHaproxy struct { + // compute resources ComputeResources *UpdatePXCClusterParamsBodyParamsHaproxyComputeResources `json:"compute_resources,omitempty"` } @@ -597,6 +609,7 @@ func (o *UpdatePXCClusterParamsBodyParamsHaproxy) ContextValidate(ctx context.Co } func (o *UpdatePXCClusterParamsBodyParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -634,6 +647,7 @@ UpdatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represe swagger:model UpdatePXCClusterParamsBodyParamsHaproxyComputeResources */ type UpdatePXCClusterParamsBodyParamsHaproxyComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -674,6 +688,7 @@ UpdatePXCClusterParamsBodyParamsPXC PXC container parameters. swagger:model UpdatePXCClusterParamsBodyParamsPXC */ type UpdatePXCClusterParamsBodyParamsPXC struct { + // Image to use. If it's the same image but with different version tag, upgrade of database cluster to version // in given tag is triggered. If entirely different image is given, error is returned. Image string `json:"image,omitempty"` @@ -730,6 +745,7 @@ func (o *UpdatePXCClusterParamsBodyParamsPXC) ContextValidate(ctx context.Contex } func (o *UpdatePXCClusterParamsBodyParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -767,6 +783,7 @@ UpdatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents swagger:model UpdatePXCClusterParamsBodyParamsPXCComputeResources */ type UpdatePXCClusterParamsBodyParamsPXCComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -807,6 +824,7 @@ UpdatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. swagger:model UpdatePXCClusterParamsBodyParamsProxysql */ type UpdatePXCClusterParamsBodyParamsProxysql struct { + // compute resources ComputeResources *UpdatePXCClusterParamsBodyParamsProxysqlComputeResources `json:"compute_resources,omitempty"` } @@ -859,6 +877,7 @@ func (o *UpdatePXCClusterParamsBodyParamsProxysql) ContextValidate(ctx context.C } func (o *UpdatePXCClusterParamsBodyParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { + if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -896,6 +915,7 @@ UpdatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources repres swagger:model UpdatePXCClusterParamsBodyParamsProxysqlComputeResources */ type UpdatePXCClusterParamsBodyParamsProxysqlComputeResources struct { + // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/kubernetes.pb.go b/api/managementpb/dbaas/kubernetes.pb.go index 5910ee7004..5a89940111 100644 --- a/api/managementpb/dbaas/kubernetes.pb.go +++ b/api/managementpb/dbaas/kubernetes.pb.go @@ -7,13 +7,12 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -997,30 +996,27 @@ func file_managementpb_dbaas_kubernetes_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_kubernetes_proto_rawDescData } -var ( - file_managementpb_dbaas_kubernetes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_dbaas_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 14) - file_managementpb_dbaas_kubernetes_proto_goTypes = []interface{}{ - (KubernetesClusterStatus)(0), // 0: dbaas.v1beta1.KubernetesClusterStatus - (*KubeAuth)(nil), // 1: dbaas.v1beta1.KubeAuth - (*Operator)(nil), // 2: dbaas.v1beta1.Operator - (*Operators)(nil), // 3: dbaas.v1beta1.Operators - (*ListKubernetesClustersRequest)(nil), // 4: dbaas.v1beta1.ListKubernetesClustersRequest - (*ListKubernetesClustersResponse)(nil), // 5: dbaas.v1beta1.ListKubernetesClustersResponse - (*RegisterKubernetesClusterRequest)(nil), // 6: dbaas.v1beta1.RegisterKubernetesClusterRequest - (*RegisterKubernetesClusterResponse)(nil), // 7: dbaas.v1beta1.RegisterKubernetesClusterResponse - (*UnregisterKubernetesClusterRequest)(nil), // 8: dbaas.v1beta1.UnregisterKubernetesClusterRequest - (*UnregisterKubernetesClusterResponse)(nil), // 9: dbaas.v1beta1.UnregisterKubernetesClusterResponse - (*GetKubernetesClusterRequest)(nil), // 10: dbaas.v1beta1.GetKubernetesClusterRequest - (*GetKubernetesClusterResponse)(nil), // 11: dbaas.v1beta1.GetKubernetesClusterResponse - (*GetResourcesRequest)(nil), // 12: dbaas.v1beta1.GetResourcesRequest - (*GetResourcesResponse)(nil), // 13: dbaas.v1beta1.GetResourcesResponse - (*ListKubernetesClustersResponse_Cluster)(nil), // 14: dbaas.v1beta1.ListKubernetesClustersResponse.Cluster - (OperatorsStatus)(0), // 15: dbaas.v1beta1.OperatorsStatus - (*Resources)(nil), // 16: dbaas.v1beta1.Resources - } -) - +var file_managementpb_dbaas_kubernetes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_dbaas_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_managementpb_dbaas_kubernetes_proto_goTypes = []interface{}{ + (KubernetesClusterStatus)(0), // 0: dbaas.v1beta1.KubernetesClusterStatus + (*KubeAuth)(nil), // 1: dbaas.v1beta1.KubeAuth + (*Operator)(nil), // 2: dbaas.v1beta1.Operator + (*Operators)(nil), // 3: dbaas.v1beta1.Operators + (*ListKubernetesClustersRequest)(nil), // 4: dbaas.v1beta1.ListKubernetesClustersRequest + (*ListKubernetesClustersResponse)(nil), // 5: dbaas.v1beta1.ListKubernetesClustersResponse + (*RegisterKubernetesClusterRequest)(nil), // 6: dbaas.v1beta1.RegisterKubernetesClusterRequest + (*RegisterKubernetesClusterResponse)(nil), // 7: dbaas.v1beta1.RegisterKubernetesClusterResponse + (*UnregisterKubernetesClusterRequest)(nil), // 8: dbaas.v1beta1.UnregisterKubernetesClusterRequest + (*UnregisterKubernetesClusterResponse)(nil), // 9: dbaas.v1beta1.UnregisterKubernetesClusterResponse + (*GetKubernetesClusterRequest)(nil), // 10: dbaas.v1beta1.GetKubernetesClusterRequest + (*GetKubernetesClusterResponse)(nil), // 11: dbaas.v1beta1.GetKubernetesClusterResponse + (*GetResourcesRequest)(nil), // 12: dbaas.v1beta1.GetResourcesRequest + (*GetResourcesResponse)(nil), // 13: dbaas.v1beta1.GetResourcesResponse + (*ListKubernetesClustersResponse_Cluster)(nil), // 14: dbaas.v1beta1.ListKubernetesClustersResponse.Cluster + (OperatorsStatus)(0), // 15: dbaas.v1beta1.OperatorsStatus + (*Resources)(nil), // 16: dbaas.v1beta1.Resources +} var file_managementpb_dbaas_kubernetes_proto_depIdxs = []int32{ 15, // 0: dbaas.v1beta1.Operator.status:type_name -> dbaas.v1beta1.OperatorsStatus 2, // 1: dbaas.v1beta1.Operators.pxc:type_name -> dbaas.v1beta1.Operator diff --git a/api/managementpb/dbaas/kubernetes.pb.gw.go b/api/managementpb/dbaas/kubernetes.pb.gw.go index c58034b17c..5edca9b638 100644 --- a/api/managementpb/dbaas/kubernetes.pb.gw.go +++ b/api/managementpb/dbaas/kubernetes.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListKubernetesClustersRequest @@ -47,6 +45,7 @@ func request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, marshaler msg, err := client.ListKubernetesClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, mars msg, err := server.ListKubernetesClusters(ctx, &protoReq) return msg, metadata, err + } func request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, marshal msg, err := client.RegisterKubernetesCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, m msg, err := server.RegisterKubernetesCluster(ctx, &protoReq) return msg, metadata, err + } func request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, marsh msg, err := client.UnregisterKubernetesCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, msg, err := server.UnregisterKubernetesCluster(ctx, &protoReq) return msg, metadata, err + } func request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marshaler ru msg, err := client.GetKubernetesCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marsha msg, err := server.GetKubernetesCluster(ctx, &protoReq) return msg, metadata, err + } func request_Kubernetes_GetResources_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Kubernetes_GetResources_0(ctx context.Context, marshaler runtime.Ma msg, err := client.GetResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Kubernetes_GetResources_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Kubernetes_GetResources_0(ctx context.Context, marshaler runt msg, err := server.GetResources(ctx, &protoReq) return msg, metadata, err + } // RegisterKubernetesHandlerServer registers the http handlers for service Kubernetes to "mux". @@ -198,6 +206,7 @@ func local_request_Kubernetes_GetResources_0(ctx context.Context, marshaler runt // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterKubernetesHandlerFromEndpoint instead. func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KubernetesServer) error { + mux.Handle("POST", pattern_Kubernetes_ListKubernetesClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -220,6 +229,7 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_ListKubernetesClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_RegisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -244,6 +254,7 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_RegisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_UnregisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -268,6 +279,7 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_UnregisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_GetKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -292,6 +304,7 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_GetResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -316,6 +329,7 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -358,6 +372,7 @@ func RegisterKubernetesHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "KubernetesClient" to call the correct interceptors. func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KubernetesClient) error { + mux.Handle("POST", pattern_Kubernetes_ListKubernetesClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -377,6 +392,7 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_ListKubernetesClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_RegisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -398,6 +414,7 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_RegisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_UnregisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -419,6 +436,7 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_UnregisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_GetKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -440,6 +458,7 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Kubernetes_GetResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -461,6 +480,7 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/dbaas/kubernetes.validator.pb.go b/api/managementpb/dbaas/kubernetes.validator.pb.go index 8bf5793ffd..1c9b196baf 100644 --- a/api/managementpb/dbaas/kubernetes.validator.pb.go +++ b/api/managementpb/dbaas/kubernetes.validator.pb.go @@ -6,19 +6,16 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *KubeAuth) Validate() error { if this.Kubeconfig == "" { @@ -26,11 +23,9 @@ func (this *KubeAuth) Validate() error { } return nil } - func (this *Operator) Validate() error { return nil } - func (this *Operators) Validate() error { if this.Pxc != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pxc); err != nil { @@ -44,11 +39,9 @@ func (this *Operators) Validate() error { } return nil } - func (this *ListKubernetesClustersRequest) Validate() error { return nil } - func (this *ListKubernetesClustersResponse) Validate() error { for _, item := range this.KubernetesClusters { if item != nil { @@ -59,7 +52,6 @@ func (this *ListKubernetesClustersResponse) Validate() error { } return nil } - func (this *ListKubernetesClustersResponse_Cluster) Validate() error { if this.Operators != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Operators); err != nil { @@ -68,7 +60,6 @@ func (this *ListKubernetesClustersResponse_Cluster) Validate() error { } return nil } - func (this *RegisterKubernetesClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -83,29 +74,24 @@ func (this *RegisterKubernetesClusterRequest) Validate() error { } return nil } - func (this *RegisterKubernetesClusterResponse) Validate() error { return nil } - func (this *UnregisterKubernetesClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } - func (this *UnregisterKubernetesClusterResponse) Validate() error { return nil } - func (this *GetKubernetesClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } - func (this *GetKubernetesClusterResponse) Validate() error { if this.KubeAuth != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.KubeAuth); err != nil { @@ -114,14 +100,12 @@ func (this *GetKubernetesClusterResponse) Validate() error { } return nil } - func (this *GetResourcesRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } - func (this *GetResourcesResponse) Validate() error { if this.All != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.All); err != nil { diff --git a/api/managementpb/dbaas/kubernetes_grpc.pb.go b/api/managementpb/dbaas/kubernetes_grpc.pb.go index 2cd9633c08..9effffb0f8 100644 --- a/api/managementpb/dbaas/kubernetes_grpc.pb.go +++ b/api/managementpb/dbaas/kubernetes_grpc.pb.go @@ -8,7 +8,6 @@ package dbaasv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -114,24 +113,21 @@ type KubernetesServer interface { } // UnimplementedKubernetesServer must be embedded to have forward compatible implementations. -type UnimplementedKubernetesServer struct{} +type UnimplementedKubernetesServer struct { +} func (UnimplementedKubernetesServer) ListKubernetesClusters(context.Context, *ListKubernetesClustersRequest) (*ListKubernetesClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListKubernetesClusters not implemented") } - func (UnimplementedKubernetesServer) RegisterKubernetesCluster(context.Context, *RegisterKubernetesClusterRequest) (*RegisterKubernetesClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterKubernetesCluster not implemented") } - func (UnimplementedKubernetesServer) UnregisterKubernetesCluster(context.Context, *UnregisterKubernetesClusterRequest) (*UnregisterKubernetesClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UnregisterKubernetesCluster not implemented") } - func (UnimplementedKubernetesServer) GetKubernetesCluster(context.Context, *GetKubernetesClusterRequest) (*GetKubernetesClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKubernetesCluster not implemented") } - func (UnimplementedKubernetesServer) GetResources(context.Context, *GetResourcesRequest) (*GetResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetResources not implemented") } diff --git a/api/managementpb/dbaas/logs.pb.go b/api/managementpb/dbaas/logs.pb.go index 893c1c635c..a6b089bf3b 100644 --- a/api/managementpb/dbaas/logs.pb.go +++ b/api/managementpb/dbaas/logs.pb.go @@ -7,13 +7,12 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -259,15 +258,12 @@ func file_managementpb_dbaas_logs_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_logs_proto_rawDescData } -var ( - file_managementpb_dbaas_logs_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_dbaas_logs_proto_goTypes = []interface{}{ - (*Logs)(nil), // 0: dbaas.v1beta1.Logs - (*GetLogsRequest)(nil), // 1: dbaas.v1beta1.GetLogsRequest - (*GetLogsResponse)(nil), // 2: dbaas.v1beta1.GetLogsResponse - } -) - +var file_managementpb_dbaas_logs_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_dbaas_logs_proto_goTypes = []interface{}{ + (*Logs)(nil), // 0: dbaas.v1beta1.Logs + (*GetLogsRequest)(nil), // 1: dbaas.v1beta1.GetLogsRequest + (*GetLogsResponse)(nil), // 2: dbaas.v1beta1.GetLogsResponse +} var file_managementpb_dbaas_logs_proto_depIdxs = []int32{ 0, // 0: dbaas.v1beta1.GetLogsResponse.logs:type_name -> dbaas.v1beta1.Logs 1, // 1: dbaas.v1beta1.LogsAPI.GetLogs:input_type -> dbaas.v1beta1.GetLogsRequest diff --git a/api/managementpb/dbaas/logs.pb.gw.go b/api/managementpb/dbaas/logs.pb.gw.go index c60f668a9c..bc28cc7734 100644 --- a/api/managementpb/dbaas/logs.pb.gw.go +++ b/api/managementpb/dbaas/logs.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, client LogsAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetLogsRequest @@ -47,6 +45,7 @@ func request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.GetLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, server LogsAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Mars msg, err := server.GetLogs(ctx, &protoReq) return msg, metadata, err + } // RegisterLogsAPIHandlerServer registers the http handlers for service LogsAPI to "mux". @@ -70,6 +70,7 @@ func local_request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLogsAPIHandlerFromEndpoint instead. func RegisterLogsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogsAPIServer) error { + mux.Handle("POST", pattern_LogsAPI_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterLogsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_LogsAPI_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterLogsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "LogsAPIClient" to call the correct interceptors. func RegisterLogsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogsAPIClient) error { + mux.Handle("POST", pattern_LogsAPI_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterLogsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_LogsAPI_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_LogsAPI_GetLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "DBaaS", "GetLogs"}, "")) +var ( + pattern_LogsAPI_GetLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "DBaaS", "GetLogs"}, "")) +) -var forward_LogsAPI_GetLogs_0 = runtime.ForwardResponseMessage +var ( + forward_LogsAPI_GetLogs_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/dbaas/logs.validator.pb.go b/api/managementpb/dbaas/logs.validator.pb.go index ddf6b90767..347add8c66 100644 --- a/api/managementpb/dbaas/logs.validator.pb.go +++ b/api/managementpb/dbaas/logs.validator.pb.go @@ -6,24 +6,20 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Logs) Validate() error { return nil } - func (this *GetLogsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -33,7 +29,6 @@ func (this *GetLogsRequest) Validate() error { } return nil } - func (this *GetLogsResponse) Validate() error { for _, item := range this.Logs { if item != nil { diff --git a/api/managementpb/dbaas/logs_grpc.pb.go b/api/managementpb/dbaas/logs_grpc.pb.go index 4c97f93b54..195494a99c 100644 --- a/api/managementpb/dbaas/logs_grpc.pb.go +++ b/api/managementpb/dbaas/logs_grpc.pb.go @@ -8,7 +8,6 @@ package dbaasv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type LogsAPIServer interface { } // UnimplementedLogsAPIServer must be embedded to have forward compatible implementations. -type UnimplementedLogsAPIServer struct{} +type UnimplementedLogsAPIServer struct { +} func (UnimplementedLogsAPIServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLogs not implemented") diff --git a/api/managementpb/dbaas/psmdb_clusters.pb.go b/api/managementpb/dbaas/psmdb_clusters.pb.go index 72f734ac68..d970955e63 100644 --- a/api/managementpb/dbaas/psmdb_clusters.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters.pb.go @@ -7,13 +7,12 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -982,27 +981,24 @@ func file_managementpb_dbaas_psmdb_clusters_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_psmdb_clusters_proto_rawDescData } -var ( - file_managementpb_dbaas_psmdb_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 13) - file_managementpb_dbaas_psmdb_clusters_proto_goTypes = []interface{}{ - (*PSMDBClusterParams)(nil), // 0: dbaas.v1beta1.PSMDBClusterParams - (*GetPSMDBClusterCredentialsRequest)(nil), // 1: dbaas.v1beta1.GetPSMDBClusterCredentialsRequest - (*GetPSMDBClusterCredentialsResponse)(nil), // 2: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse - (*CreatePSMDBClusterRequest)(nil), // 3: dbaas.v1beta1.CreatePSMDBClusterRequest - (*CreatePSMDBClusterResponse)(nil), // 4: dbaas.v1beta1.CreatePSMDBClusterResponse - (*UpdatePSMDBClusterRequest)(nil), // 5: dbaas.v1beta1.UpdatePSMDBClusterRequest - (*UpdatePSMDBClusterResponse)(nil), // 6: dbaas.v1beta1.UpdatePSMDBClusterResponse - (*GetPSMDBClusterResourcesRequest)(nil), // 7: dbaas.v1beta1.GetPSMDBClusterResourcesRequest - (*GetPSMDBClusterResourcesResponse)(nil), // 8: dbaas.v1beta1.GetPSMDBClusterResourcesResponse - (*PSMDBClusterParams_ReplicaSet)(nil), // 9: dbaas.v1beta1.PSMDBClusterParams.ReplicaSet - (*GetPSMDBClusterCredentialsResponse_PSMDBCredentials)(nil), // 10: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.PSMDBCredentials - (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams)(nil), // 11: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams - (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet)(nil), // 12: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams.ReplicaSet - (*Resources)(nil), // 13: dbaas.v1beta1.Resources - (*ComputeResources)(nil), // 14: dbaas.v1beta1.ComputeResources - } -) - +var file_managementpb_dbaas_psmdb_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_managementpb_dbaas_psmdb_clusters_proto_goTypes = []interface{}{ + (*PSMDBClusterParams)(nil), // 0: dbaas.v1beta1.PSMDBClusterParams + (*GetPSMDBClusterCredentialsRequest)(nil), // 1: dbaas.v1beta1.GetPSMDBClusterCredentialsRequest + (*GetPSMDBClusterCredentialsResponse)(nil), // 2: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse + (*CreatePSMDBClusterRequest)(nil), // 3: dbaas.v1beta1.CreatePSMDBClusterRequest + (*CreatePSMDBClusterResponse)(nil), // 4: dbaas.v1beta1.CreatePSMDBClusterResponse + (*UpdatePSMDBClusterRequest)(nil), // 5: dbaas.v1beta1.UpdatePSMDBClusterRequest + (*UpdatePSMDBClusterResponse)(nil), // 6: dbaas.v1beta1.UpdatePSMDBClusterResponse + (*GetPSMDBClusterResourcesRequest)(nil), // 7: dbaas.v1beta1.GetPSMDBClusterResourcesRequest + (*GetPSMDBClusterResourcesResponse)(nil), // 8: dbaas.v1beta1.GetPSMDBClusterResourcesResponse + (*PSMDBClusterParams_ReplicaSet)(nil), // 9: dbaas.v1beta1.PSMDBClusterParams.ReplicaSet + (*GetPSMDBClusterCredentialsResponse_PSMDBCredentials)(nil), // 10: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.PSMDBCredentials + (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams)(nil), // 11: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams + (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet)(nil), // 12: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams.ReplicaSet + (*Resources)(nil), // 13: dbaas.v1beta1.Resources + (*ComputeResources)(nil), // 14: dbaas.v1beta1.ComputeResources +} var file_managementpb_dbaas_psmdb_clusters_proto_depIdxs = []int32{ 9, // 0: dbaas.v1beta1.PSMDBClusterParams.replicaset:type_name -> dbaas.v1beta1.PSMDBClusterParams.ReplicaSet 10, // 1: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.connection_credentials:type_name -> dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.PSMDBCredentials diff --git a/api/managementpb/dbaas/psmdb_clusters.pb.gw.go b/api/managementpb/dbaas/psmdb_clusters.pb.gw.go index ec3c123ef8..a872c7a007 100644 --- a/api/managementpb/dbaas/psmdb_clusters.pb.gw.go +++ b/api/managementpb/dbaas/psmdb_clusters.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetPSMDBClusterCredentialsRequest @@ -47,6 +45,7 @@ func request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Context, mar msg, err := client.GetPSMDBClusterCredentials(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Contex msg, err := server.GetPSMDBClusterCredentials(ctx, &protoReq) return msg, metadata, err + } func request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marshaler r msg, err := client.CreatePSMDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marsh msg, err := server.CreatePSMDBCluster(ctx, &protoReq) return msg, metadata, err + } func request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marshaler r msg, err := client.UpdatePSMDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marsh msg, err := server.UpdatePSMDBCluster(ctx, &protoReq) return msg, metadata, err + } func request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, marsh msg, err := client.GetPSMDBClusterResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, msg, err := server.GetPSMDBClusterResources(ctx, &protoReq) return msg, metadata, err + } // RegisterPSMDBClustersHandlerServer registers the http handlers for service PSMDBClusters to "mux". @@ -166,6 +172,7 @@ func local_request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPSMDBClustersHandlerFromEndpoint instead. func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PSMDBClustersServer) error { + mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -188,6 +195,7 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PSMDBClusters_CreatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -212,6 +220,7 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_CreatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PSMDBClusters_UpdatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -236,6 +245,7 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_UpdatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -260,6 +270,7 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -302,6 +313,7 @@ func RegisterPSMDBClustersHandler(ctx context.Context, mux *runtime.ServeMux, co // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PSMDBClustersClient" to call the correct interceptors. func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PSMDBClustersClient) error { + mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -321,6 +333,7 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PSMDBClusters_CreatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -342,6 +355,7 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_CreatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PSMDBClusters_UpdatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -363,6 +377,7 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_UpdatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -384,6 +399,7 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/dbaas/psmdb_clusters.validator.pb.go b/api/managementpb/dbaas/psmdb_clusters.validator.pb.go index 234b7fe254..563798f055 100644 --- a/api/managementpb/dbaas/psmdb_clusters.validator.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters.validator.pb.go @@ -6,19 +6,16 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *PSMDBClusterParams) Validate() error { if this.Replicaset != nil { @@ -28,7 +25,6 @@ func (this *PSMDBClusterParams) Validate() error { } return nil } - func (this *PSMDBClusterParams_ReplicaSet) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -37,7 +33,6 @@ func (this *PSMDBClusterParams_ReplicaSet) Validate() error { } return nil } - func (this *GetPSMDBClusterCredentialsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -47,7 +42,6 @@ func (this *GetPSMDBClusterCredentialsRequest) Validate() error { } return nil } - func (this *GetPSMDBClusterCredentialsResponse) Validate() error { if this.ConnectionCredentials != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ConnectionCredentials); err != nil { @@ -56,11 +50,9 @@ func (this *GetPSMDBClusterCredentialsResponse) Validate() error { } return nil } - func (this *GetPSMDBClusterCredentialsResponse_PSMDBCredentials) Validate() error { return nil } - func (this *CreatePSMDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -72,11 +64,9 @@ func (this *CreatePSMDBClusterRequest) Validate() error { } return nil } - func (this *CreatePSMDBClusterResponse) Validate() error { return nil } - func (this *UpdatePSMDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -91,7 +81,6 @@ func (this *UpdatePSMDBClusterRequest) Validate() error { } return nil } - func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams) Validate() error { if this.Replicaset != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Replicaset); err != nil { @@ -100,7 +89,6 @@ func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams) Validate() error } return nil } - func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -109,11 +97,9 @@ func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet) Valid } return nil } - func (this *UpdatePSMDBClusterResponse) Validate() error { return nil } - func (this *GetPSMDBClusterResourcesRequest) Validate() error { if this.Params != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Params); err != nil { @@ -122,7 +108,6 @@ func (this *GetPSMDBClusterResourcesRequest) Validate() error { } return nil } - func (this *GetPSMDBClusterResourcesResponse) Validate() error { if this.Expected != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Expected); err != nil { diff --git a/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go b/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go index 5f2d42f9f3..3c464d976d 100644 --- a/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go @@ -8,7 +8,6 @@ package dbaasv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -93,20 +92,18 @@ type PSMDBClustersServer interface { } // UnimplementedPSMDBClustersServer must be embedded to have forward compatible implementations. -type UnimplementedPSMDBClustersServer struct{} +type UnimplementedPSMDBClustersServer struct { +} func (UnimplementedPSMDBClustersServer) GetPSMDBClusterCredentials(context.Context, *GetPSMDBClusterCredentialsRequest) (*GetPSMDBClusterCredentialsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPSMDBClusterCredentials not implemented") } - func (UnimplementedPSMDBClustersServer) CreatePSMDBCluster(context.Context, *CreatePSMDBClusterRequest) (*CreatePSMDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePSMDBCluster not implemented") } - func (UnimplementedPSMDBClustersServer) UpdatePSMDBCluster(context.Context, *UpdatePSMDBClusterRequest) (*UpdatePSMDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePSMDBCluster not implemented") } - func (UnimplementedPSMDBClustersServer) GetPSMDBClusterResources(context.Context, *GetPSMDBClusterResourcesRequest) (*GetPSMDBClusterResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPSMDBClusterResources not implemented") } diff --git a/api/managementpb/dbaas/pxc_clusters.pb.go b/api/managementpb/dbaas/pxc_clusters.pb.go index 500de30cc7..b2762d8d45 100644 --- a/api/managementpb/dbaas/pxc_clusters.pb.go +++ b/api/managementpb/dbaas/pxc_clusters.pb.go @@ -7,13 +7,12 @@ package dbaasv1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -1339,33 +1338,30 @@ func file_managementpb_dbaas_pxc_clusters_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_pxc_clusters_proto_rawDescData } -var ( - file_managementpb_dbaas_pxc_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_dbaas_pxc_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 17) - file_managementpb_dbaas_pxc_clusters_proto_goTypes = []interface{}{ - (PXCBackupState)(0), // 0: dbaas.v1beta1.PXCBackupState - (*PXCClusterParams)(nil), // 1: dbaas.v1beta1.PXCClusterParams - (*GetPXCClusterCredentialsRequest)(nil), // 2: dbaas.v1beta1.GetPXCClusterCredentialsRequest - (*PXCClusterConnectionCredentials)(nil), // 3: dbaas.v1beta1.PXCClusterConnectionCredentials - (*GetPXCClusterCredentialsResponse)(nil), // 4: dbaas.v1beta1.GetPXCClusterCredentialsResponse - (*CreatePXCClusterRequest)(nil), // 5: dbaas.v1beta1.CreatePXCClusterRequest - (*CreatePXCClusterResponse)(nil), // 6: dbaas.v1beta1.CreatePXCClusterResponse - (*UpdatePXCClusterRequest)(nil), // 7: dbaas.v1beta1.UpdatePXCClusterRequest - (*UpdatePXCClusterResponse)(nil), // 8: dbaas.v1beta1.UpdatePXCClusterResponse - (*GetPXCClusterResourcesRequest)(nil), // 9: dbaas.v1beta1.GetPXCClusterResourcesRequest - (*GetPXCClusterResourcesResponse)(nil), // 10: dbaas.v1beta1.GetPXCClusterResourcesResponse - (*PXCClusterParams_PXC)(nil), // 11: dbaas.v1beta1.PXCClusterParams.PXC - (*PXCClusterParams_ProxySQL)(nil), // 12: dbaas.v1beta1.PXCClusterParams.ProxySQL - (*PXCClusterParams_HAProxy)(nil), // 13: dbaas.v1beta1.PXCClusterParams.HAProxy - (*UpdatePXCClusterRequest_UpdatePXCClusterParams)(nil), // 14: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams - (*UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC)(nil), // 15: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.PXC - (*UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL)(nil), // 16: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.ProxySQL - (*UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy)(nil), // 17: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.HAProxy - (*Resources)(nil), // 18: dbaas.v1beta1.Resources - (*ComputeResources)(nil), // 19: dbaas.v1beta1.ComputeResources - } -) - +var file_managementpb_dbaas_pxc_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_dbaas_pxc_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_managementpb_dbaas_pxc_clusters_proto_goTypes = []interface{}{ + (PXCBackupState)(0), // 0: dbaas.v1beta1.PXCBackupState + (*PXCClusterParams)(nil), // 1: dbaas.v1beta1.PXCClusterParams + (*GetPXCClusterCredentialsRequest)(nil), // 2: dbaas.v1beta1.GetPXCClusterCredentialsRequest + (*PXCClusterConnectionCredentials)(nil), // 3: dbaas.v1beta1.PXCClusterConnectionCredentials + (*GetPXCClusterCredentialsResponse)(nil), // 4: dbaas.v1beta1.GetPXCClusterCredentialsResponse + (*CreatePXCClusterRequest)(nil), // 5: dbaas.v1beta1.CreatePXCClusterRequest + (*CreatePXCClusterResponse)(nil), // 6: dbaas.v1beta1.CreatePXCClusterResponse + (*UpdatePXCClusterRequest)(nil), // 7: dbaas.v1beta1.UpdatePXCClusterRequest + (*UpdatePXCClusterResponse)(nil), // 8: dbaas.v1beta1.UpdatePXCClusterResponse + (*GetPXCClusterResourcesRequest)(nil), // 9: dbaas.v1beta1.GetPXCClusterResourcesRequest + (*GetPXCClusterResourcesResponse)(nil), // 10: dbaas.v1beta1.GetPXCClusterResourcesResponse + (*PXCClusterParams_PXC)(nil), // 11: dbaas.v1beta1.PXCClusterParams.PXC + (*PXCClusterParams_ProxySQL)(nil), // 12: dbaas.v1beta1.PXCClusterParams.ProxySQL + (*PXCClusterParams_HAProxy)(nil), // 13: dbaas.v1beta1.PXCClusterParams.HAProxy + (*UpdatePXCClusterRequest_UpdatePXCClusterParams)(nil), // 14: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams + (*UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC)(nil), // 15: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.PXC + (*UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL)(nil), // 16: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.ProxySQL + (*UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy)(nil), // 17: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.HAProxy + (*Resources)(nil), // 18: dbaas.v1beta1.Resources + (*ComputeResources)(nil), // 19: dbaas.v1beta1.ComputeResources +} var file_managementpb_dbaas_pxc_clusters_proto_depIdxs = []int32{ 11, // 0: dbaas.v1beta1.PXCClusterParams.pxc:type_name -> dbaas.v1beta1.PXCClusterParams.PXC 12, // 1: dbaas.v1beta1.PXCClusterParams.proxysql:type_name -> dbaas.v1beta1.PXCClusterParams.ProxySQL diff --git a/api/managementpb/dbaas/pxc_clusters.pb.gw.go b/api/managementpb/dbaas/pxc_clusters.pb.gw.go index aa73aa9d3e..999a2872df 100644 --- a/api/managementpb/dbaas/pxc_clusters.pb.gw.go +++ b/api/managementpb/dbaas/pxc_clusters.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetPXCClusterCredentialsRequest @@ -47,6 +45,7 @@ func request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, marshal msg, err := client.GetPXCClusterCredentials(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, m msg, err := server.GetPXCClusterCredentials(ctx, &protoReq) return msg, metadata, err + } func request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler runti msg, err := client.CreatePXCCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler msg, err := server.CreatePXCCluster(ctx, &protoReq) return msg, metadata, err + } func request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler runti msg, err := client.UpdatePXCCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler msg, err := server.UpdatePXCCluster(ctx, &protoReq) return msg, metadata, err + } func request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, marshaler msg, err := client.GetPXCClusterResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, mar msg, err := server.GetPXCClusterResources(ctx, &protoReq) return msg, metadata, err + } // RegisterPXCClustersHandlerServer registers the http handlers for service PXCClusters to "mux". @@ -166,6 +172,7 @@ func local_request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, mar // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPXCClustersHandlerFromEndpoint instead. func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PXCClustersServer) error { + mux.Handle("POST", pattern_PXCClusters_GetPXCClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -188,6 +195,7 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PXCClusters_CreatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -212,6 +220,7 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_CreatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PXCClusters_UpdatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -236,6 +245,7 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_UpdatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PXCClusters_GetPXCClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -260,6 +270,7 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -302,6 +313,7 @@ func RegisterPXCClustersHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PXCClustersClient" to call the correct interceptors. func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PXCClustersClient) error { + mux.Handle("POST", pattern_PXCClusters_GetPXCClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -321,6 +333,7 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PXCClusters_CreatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -342,6 +355,7 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_CreatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PXCClusters_UpdatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -363,6 +377,7 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_UpdatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_PXCClusters_GetPXCClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -384,6 +399,7 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/dbaas/pxc_clusters.validator.pb.go b/api/managementpb/dbaas/pxc_clusters.validator.pb.go index 4fe0c0d0be..7ae8ab5fa9 100644 --- a/api/managementpb/dbaas/pxc_clusters.validator.pb.go +++ b/api/managementpb/dbaas/pxc_clusters.validator.pb.go @@ -6,19 +6,16 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *PXCClusterParams) Validate() error { if this.Pxc != nil { @@ -38,7 +35,6 @@ func (this *PXCClusterParams) Validate() error { } return nil } - func (this *PXCClusterParams_PXC) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -47,7 +43,6 @@ func (this *PXCClusterParams_PXC) Validate() error { } return nil } - func (this *PXCClusterParams_ProxySQL) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -56,7 +51,6 @@ func (this *PXCClusterParams_ProxySQL) Validate() error { } return nil } - func (this *PXCClusterParams_HAProxy) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -65,7 +59,6 @@ func (this *PXCClusterParams_HAProxy) Validate() error { } return nil } - func (this *GetPXCClusterCredentialsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -75,11 +68,9 @@ func (this *GetPXCClusterCredentialsRequest) Validate() error { } return nil } - func (this *PXCClusterConnectionCredentials) Validate() error { return nil } - func (this *GetPXCClusterCredentialsResponse) Validate() error { if this.ConnectionCredentials != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ConnectionCredentials); err != nil { @@ -88,7 +79,6 @@ func (this *GetPXCClusterCredentialsResponse) Validate() error { } return nil } - func (this *CreatePXCClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -100,11 +90,9 @@ func (this *CreatePXCClusterRequest) Validate() error { } return nil } - func (this *CreatePXCClusterResponse) Validate() error { return nil } - func (this *UpdatePXCClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -119,7 +107,6 @@ func (this *UpdatePXCClusterRequest) Validate() error { } return nil } - func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams) Validate() error { if this.Pxc != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pxc); err != nil { @@ -138,7 +125,6 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams) Validate() error { } return nil } - func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -147,7 +133,6 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC) Validate() error } return nil } - func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -156,7 +141,6 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL) Validate() } return nil } - func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -165,11 +149,9 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy) Validate() e } return nil } - func (this *UpdatePXCClusterResponse) Validate() error { return nil } - func (this *GetPXCClusterResourcesRequest) Validate() error { if nil == this.Params { return github_com_mwitkow_go_proto_validators.FieldError("Params", fmt.Errorf("message must exist")) @@ -181,7 +163,6 @@ func (this *GetPXCClusterResourcesRequest) Validate() error { } return nil } - func (this *GetPXCClusterResourcesResponse) Validate() error { if this.Expected != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Expected); err != nil { diff --git a/api/managementpb/dbaas/pxc_clusters_grpc.pb.go b/api/managementpb/dbaas/pxc_clusters_grpc.pb.go index c3345955bb..5d7d477c5f 100644 --- a/api/managementpb/dbaas/pxc_clusters_grpc.pb.go +++ b/api/managementpb/dbaas/pxc_clusters_grpc.pb.go @@ -8,7 +8,6 @@ package dbaasv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -93,20 +92,18 @@ type PXCClustersServer interface { } // UnimplementedPXCClustersServer must be embedded to have forward compatible implementations. -type UnimplementedPXCClustersServer struct{} +type UnimplementedPXCClustersServer struct { +} func (UnimplementedPXCClustersServer) GetPXCClusterCredentials(context.Context, *GetPXCClusterCredentialsRequest) (*GetPXCClusterCredentialsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPXCClusterCredentials not implemented") } - func (UnimplementedPXCClustersServer) CreatePXCCluster(context.Context, *CreatePXCClusterRequest) (*CreatePXCClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePXCCluster not implemented") } - func (UnimplementedPXCClustersServer) UpdatePXCCluster(context.Context, *UpdatePXCClusterRequest) (*UpdatePXCClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePXCCluster not implemented") } - func (UnimplementedPXCClustersServer) GetPXCClusterResources(context.Context, *GetPXCClusterResourcesRequest) (*GetPXCClusterResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPXCClusterResources not implemented") } diff --git a/api/managementpb/external.pb.go b/api/managementpb/external.pb.go index ab936ad4c8..c9c1e31f67 100644 --- a/api/managementpb/external.pb.go +++ b/api/managementpb/external.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -78,8 +76,8 @@ type AddExternalRequest struct { MetricsMode MetricsMode `protobuf:"varint,17,opt,name=metrics_mode,json=metricsMode,proto3,enum=management.MetricsMode" json:"metrics_mode,omitempty"` // Skip connection check. SkipConnectionCheck bool `protobuf:"varint,21,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` - // Credentials provider - CredentialsSource string `protobuf:"bytes,22,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `protobuf:"bytes,22,opt,name=service_params_source,json=serviceParamsSource,proto3" json:"service_params_source,omitempty"` } func (x *AddExternalRequest) Reset() { @@ -240,9 +238,9 @@ func (x *AddExternalRequest) GetSkipConnectionCheck() bool { return false } -func (x *AddExternalRequest) GetCredentialsSource() string { +func (x *AddExternalRequest) GetServiceParamsSource() string { if x != nil { - return x.CredentialsSource + return x.ServiceParamsSource } return "" } @@ -322,7 +320,7 @@ var file_managementpb_external_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x06, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x06, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0f, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, @@ -367,59 +365,59 @@ var file_managementpb_external_proto_rawDesc = []byte{ 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x2d, - 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, - 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, - 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, - 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0x8d, 0x03, 0x0a, 0x08, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x12, 0x80, 0x03, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x02, 0x92, 0x41, 0x85, 0x02, 0x12, 0x14, 0x41, 0x64, 0x64, - 0x20, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x1a, 0xec, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x61, 0x64, - 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, - 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, - 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, - 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x72, - 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, - 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, - 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x32, + 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x48, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0x8d, 0x03, 0x0a, 0x08, + 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x80, 0x03, 0x0a, 0x0b, 0x41, 0x64, 0x64, + 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x02, 0x92, 0x41, 0x85, 0x02, + 0x12, 0x14, 0x41, 0x64, 0x64, 0x20, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0xec, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, + 0x6e, 0x64, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, + 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, + 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, + 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, + 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, + 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x64, 0x20, 0x22, 0x72, 0x75, 0x6e, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, + 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x45, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, + 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, + 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, + 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, + 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -434,19 +432,16 @@ func file_managementpb_external_proto_rawDescGZIP() []byte { return file_managementpb_external_proto_rawDescData } -var ( - file_managementpb_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_external_proto_goTypes = []interface{}{ - (*AddExternalRequest)(nil), // 0: management.AddExternalRequest - (*AddExternalResponse)(nil), // 1: management.AddExternalResponse - nil, // 2: management.AddExternalRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (*inventorypb.ExternalService)(nil), // 5: inventory.ExternalService - (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter - } -) - +var file_managementpb_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_external_proto_goTypes = []interface{}{ + (*AddExternalRequest)(nil), // 0: management.AddExternalRequest + (*AddExternalResponse)(nil), // 1: management.AddExternalResponse + nil, // 2: management.AddExternalRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (*inventorypb.ExternalService)(nil), // 5: inventory.ExternalService + (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter +} var file_managementpb_external_proto_depIdxs = []int32{ 3, // 0: management.AddExternalRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddExternalRequest.custom_labels:type_name -> management.AddExternalRequest.CustomLabelsEntry diff --git a/api/managementpb/external.pb.gw.go b/api/managementpb/external.pb.gw.go index b14e33434d..71cd105af2 100644 --- a/api/managementpb/external.pb.gw.go +++ b/api/managementpb/external.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_External_AddExternal_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddExternalRequest @@ -47,6 +45,7 @@ func request_External_AddExternal_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.AddExternal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_External_AddExternal_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_External_AddExternal_0(ctx context.Context, marshaler runtime msg, err := server.AddExternal(ctx, &protoReq) return msg, metadata, err + } // RegisterExternalHandlerServer registers the http handlers for service External to "mux". @@ -70,6 +70,7 @@ func local_request_External_AddExternal_0(ctx context.Context, marshaler runtime // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExternalHandlerFromEndpoint instead. func RegisterExternalHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExternalServer) error { + mux.Handle("POST", pattern_External_AddExternal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterExternalHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_External_AddExternal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterExternalHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ExternalClient" to call the correct interceptors. func RegisterExternalHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExternalClient) error { + mux.Handle("POST", pattern_External_AddExternal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterExternalHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_External_AddExternal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_External_AddExternal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "External", "Add"}, "")) +var ( + pattern_External_AddExternal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "External", "Add"}, "")) +) -var forward_External_AddExternal_0 = runtime.ForwardResponseMessage +var ( + forward_External_AddExternal_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/external.proto b/api/managementpb/external.proto index 4877735bed..8dea7f0202 100644 --- a/api/managementpb/external.proto +++ b/api/managementpb/external.proto @@ -71,8 +71,8 @@ message AddExternalRequest { MetricsMode metrics_mode = 17; // Skip connection check. bool skip_connection_check = 21; - // Credentials provider - string credentials_source = 22; + // Service parameters + string service_params_source = 22; } message AddExternalResponse { diff --git a/api/managementpb/external.validator.pb.go b/api/managementpb/external.validator.pb.go index 0a5eeaa6b5..14e0892d18 100644 --- a/api/managementpb/external.validator.pb.go +++ b/api/managementpb/external.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddExternalRequest) Validate() error { if this.AddNode != nil { @@ -41,7 +37,6 @@ func (this *AddExternalRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddExternalResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/external_grpc.pb.go b/api/managementpb/external_grpc.pb.go index 13ebbd6966..b212e65944 100644 --- a/api/managementpb/external_grpc.pb.go +++ b/api/managementpb/external_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -58,7 +57,8 @@ type ExternalServer interface { } // UnimplementedExternalServer must be embedded to have forward compatible implementations. -type UnimplementedExternalServer struct{} +type UnimplementedExternalServer struct { +} func (UnimplementedExternalServer) AddExternal(context.Context, *AddExternalRequest) (*AddExternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddExternal not implemented") diff --git a/api/managementpb/haproxy.pb.go b/api/managementpb/haproxy.pb.go index 50d6e10ca9..2f9340154d 100644 --- a/api/managementpb/haproxy.pb.go +++ b/api/managementpb/haproxy.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -72,8 +70,8 @@ type AddHAProxyRequest struct { MetricsMode MetricsMode `protobuf:"varint,16,opt,name=metrics_mode,json=metricsMode,proto3,enum=management.MetricsMode" json:"metrics_mode,omitempty"` // Skip connection check. SkipConnectionCheck bool `protobuf:"varint,21,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` - // Credentials provider - CredentialsSource string `protobuf:"bytes,22,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `protobuf:"bytes,22,opt,name=service_params_source,json=serviceParamsSource,proto3" json:"service_params_source,omitempty"` } func (x *AddHAProxyRequest) Reset() { @@ -220,9 +218,9 @@ func (x *AddHAProxyRequest) GetSkipConnectionCheck() bool { return false } -func (x *AddHAProxyRequest) GetCredentialsSource() string { +func (x *AddHAProxyRequest) GetServiceParamsSource() string { if x != nil { - return x.CredentialsSource + return x.ServiceParamsSource } return "" } @@ -302,7 +300,7 @@ var file_managementpb_haproxy_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x05, 0x0a, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x06, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, @@ -343,55 +341,55 @@ var file_managementpb_haproxy_proto_rawDesc = []byte{ 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x2d, - 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, - 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x93, - 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x65, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, - 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x32, 0xd1, 0x02, 0x0a, 0x07, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x12, 0xc5, 0x02, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, - 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, - 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x48, - 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf7, - 0x01, 0x92, 0x41, 0xce, 0x01, 0x12, 0x0b, 0x41, 0x64, 0x64, 0x20, 0x48, 0x41, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x1a, 0xbe, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x65, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2e, - 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, - 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, - 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, - 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, - 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, - 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, - 0x79, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, - 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x48, 0x61, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, - 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, - 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x32, + 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x93, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, + 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x48, 0x0a, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, + 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xd1, 0x02, 0x0a, 0x07, 0x48, 0x41, + 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0xc5, 0x02, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, + 0x72, 0x6f, 0x78, 0x79, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x41, 0x64, 0x64, 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xf7, 0x01, 0x92, 0x41, 0xce, 0x01, 0x12, 0x0b, 0x41, 0x64, 0x64, 0x20, + 0x48, 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x1a, 0xbe, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x48, + 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, + 0x6e, 0x64, 0x20, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, + 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, + 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, + 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x22, 0x65, 0x78, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, + 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, + 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x48, + 0x41, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8f, 0x01, + 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x42, 0x0c, 0x48, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, + 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, + 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -406,19 +404,16 @@ func file_managementpb_haproxy_proto_rawDescGZIP() []byte { return file_managementpb_haproxy_proto_rawDescData } -var ( - file_managementpb_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_haproxy_proto_goTypes = []interface{}{ - (*AddHAProxyRequest)(nil), // 0: management.AddHAProxyRequest - (*AddHAProxyResponse)(nil), // 1: management.AddHAProxyResponse - nil, // 2: management.AddHAProxyRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (*inventorypb.HAProxyService)(nil), // 5: inventory.HAProxyService - (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter - } -) - +var file_managementpb_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_haproxy_proto_goTypes = []interface{}{ + (*AddHAProxyRequest)(nil), // 0: management.AddHAProxyRequest + (*AddHAProxyResponse)(nil), // 1: management.AddHAProxyResponse + nil, // 2: management.AddHAProxyRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (*inventorypb.HAProxyService)(nil), // 5: inventory.HAProxyService + (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter +} var file_managementpb_haproxy_proto_depIdxs = []int32{ 3, // 0: management.AddHAProxyRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddHAProxyRequest.custom_labels:type_name -> management.AddHAProxyRequest.CustomLabelsEntry diff --git a/api/managementpb/haproxy.pb.gw.go b/api/managementpb/haproxy.pb.gw.go index 537c208178..f91357b4df 100644 --- a/api/managementpb/haproxy.pb.gw.go +++ b/api/managementpb/haproxy.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.Marshaler, client HAProxyClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddHAProxyRequest @@ -47,6 +45,7 @@ func request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.AddHAProxy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.Marshaler, server HAProxyServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.M msg, err := server.AddHAProxy(ctx, &protoReq) return msg, metadata, err + } // RegisterHAProxyHandlerServer registers the http handlers for service HAProxy to "mux". @@ -70,6 +70,7 @@ func local_request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHAProxyHandlerFromEndpoint instead. func RegisterHAProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HAProxyServer) error { + mux.Handle("POST", pattern_HAProxy_AddHAProxy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterHAProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_HAProxy_AddHAProxy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterHAProxyHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "HAProxyClient" to call the correct interceptors. func RegisterHAProxyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HAProxyClient) error { + mux.Handle("POST", pattern_HAProxy_AddHAProxy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterHAProxyHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_HAProxy_AddHAProxy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_HAProxy_AddHAProxy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "HAProxy", "Add"}, "")) +var ( + pattern_HAProxy_AddHAProxy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "HAProxy", "Add"}, "")) +) -var forward_HAProxy_AddHAProxy_0 = runtime.ForwardResponseMessage +var ( + forward_HAProxy_AddHAProxy_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/haproxy.proto b/api/managementpb/haproxy.proto index 5dba2fff37..85f5855b79 100644 --- a/api/managementpb/haproxy.proto +++ b/api/managementpb/haproxy.proto @@ -65,8 +65,8 @@ message AddHAProxyRequest { MetricsMode metrics_mode = 16; // Skip connection check. bool skip_connection_check = 21; - // Credentials provider - string credentials_source = 22; + // Service parameters + string service_params_source = 22; } message AddHAProxyResponse { diff --git a/api/managementpb/haproxy.validator.pb.go b/api/managementpb/haproxy.validator.pb.go index d2818d0e5d..8bd0341acb 100644 --- a/api/managementpb/haproxy.validator.pb.go +++ b/api/managementpb/haproxy.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddHAProxyRequest) Validate() error { if this.AddNode != nil { @@ -41,7 +37,6 @@ func (this *AddHAProxyRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddHAProxyResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/haproxy_grpc.pb.go b/api/managementpb/haproxy_grpc.pb.go index e59cb8fe96..e908c85c46 100644 --- a/api/managementpb/haproxy_grpc.pb.go +++ b/api/managementpb/haproxy_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -58,7 +57,8 @@ type HAProxyServer interface { } // UnimplementedHAProxyServer must be embedded to have forward compatible implementations. -type UnimplementedHAProxyServer struct{} +type UnimplementedHAProxyServer struct { +} func (UnimplementedHAProxyServer) AddHAProxy(context.Context, *AddHAProxyRequest) (*AddHAProxyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddHAProxy not implemented") diff --git a/api/managementpb/ia/alerts.pb.go b/api/managementpb/ia/alerts.pb.go index e82eae3ec9..c3562e557b 100644 --- a/api/managementpb/ia/alerts.pb.go +++ b/api/managementpb/ia/alerts.pb.go @@ -7,16 +7,14 @@ package iav1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + managementpb "github.com/percona/pmm/api/managementpb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - - managementpb "github.com/percona/pmm/api/managementpb" + reflect "reflect" + sync "sync" ) const ( @@ -452,25 +450,22 @@ func file_managementpb_ia_alerts_proto_rawDescGZIP() []byte { return file_managementpb_ia_alerts_proto_rawDescData } -var ( - file_managementpb_ia_alerts_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_managementpb_ia_alerts_proto_goTypes = []interface{}{ - (*Alert)(nil), // 0: ia.v1beta1.Alert - (*ListAlertsRequest)(nil), // 1: ia.v1beta1.ListAlertsRequest - (*ListAlertsResponse)(nil), // 2: ia.v1beta1.ListAlertsResponse - (*ToggleAlertsRequest)(nil), // 3: ia.v1beta1.ToggleAlertsRequest - (*ToggleAlertsResponse)(nil), // 4: ia.v1beta1.ToggleAlertsResponse - nil, // 5: ia.v1beta1.Alert.LabelsEntry - (managementpb.Severity)(0), // 6: management.Severity - (Status)(0), // 7: ia.v1beta1.Status - (*Rule)(nil), // 8: ia.v1beta1.Rule - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*managementpb.PageParams)(nil), // 10: management.PageParams - (*managementpb.PageTotals)(nil), // 11: management.PageTotals - (managementpb.BooleanFlag)(0), // 12: managementpb.BooleanFlag - } -) - +var file_managementpb_ia_alerts_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_managementpb_ia_alerts_proto_goTypes = []interface{}{ + (*Alert)(nil), // 0: ia.v1beta1.Alert + (*ListAlertsRequest)(nil), // 1: ia.v1beta1.ListAlertsRequest + (*ListAlertsResponse)(nil), // 2: ia.v1beta1.ListAlertsResponse + (*ToggleAlertsRequest)(nil), // 3: ia.v1beta1.ToggleAlertsRequest + (*ToggleAlertsResponse)(nil), // 4: ia.v1beta1.ToggleAlertsResponse + nil, // 5: ia.v1beta1.Alert.LabelsEntry + (managementpb.Severity)(0), // 6: management.Severity + (Status)(0), // 7: ia.v1beta1.Status + (*Rule)(nil), // 8: ia.v1beta1.Rule + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*managementpb.PageParams)(nil), // 10: management.PageParams + (*managementpb.PageTotals)(nil), // 11: management.PageTotals + (managementpb.BooleanFlag)(0), // 12: managementpb.BooleanFlag +} var file_managementpb_ia_alerts_proto_depIdxs = []int32{ 6, // 0: ia.v1beta1.Alert.severity:type_name -> management.Severity 7, // 1: ia.v1beta1.Alert.status:type_name -> ia.v1beta1.Status diff --git a/api/managementpb/ia/alerts.pb.gw.go b/api/managementpb/ia/alerts.pb.gw.go index ec6ec8cacd..62e7a793d9 100644 --- a/api/managementpb/ia/alerts.pb.gw.go +++ b/api/managementpb/ia/alerts.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Marshaler, client AlertsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListAlertsRequest @@ -47,6 +45,7 @@ func request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.ListAlerts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Marshaler, server AlertsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Ma msg, err := server.ListAlerts(ctx, &protoReq) return msg, metadata, err + } func request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime.Marshaler, client AlertsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.ToggleAlerts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime.Marshaler, server AlertsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime. msg, err := server.ToggleAlerts(ctx, &protoReq) return msg, metadata, err + } // RegisterAlertsHandlerServer registers the http handlers for service Alerts to "mux". @@ -102,6 +104,7 @@ func local_request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAlertsHandlerFromEndpoint instead. func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertsServer) error { + mux.Handle("POST", pattern_Alerts_ListAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -124,6 +127,7 @@ func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Alerts_ListAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerts_ToggleAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -148,6 +152,7 @@ func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Alerts_ToggleAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -190,6 +195,7 @@ func RegisterAlertsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AlertsClient" to call the correct interceptors. func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertsClient) error { + mux.Handle("POST", pattern_Alerts_ListAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -209,6 +215,7 @@ func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Alerts_ListAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Alerts_ToggleAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -230,6 +237,7 @@ func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Alerts_ToggleAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/ia/alerts.validator.pb.go b/api/managementpb/ia/alerts.validator.pb.go index d41186729f..6bd42a168f 100644 --- a/api/managementpb/ia/alerts.validator.pb.go +++ b/api/managementpb/ia/alerts.validator.pb.go @@ -6,22 +6,18 @@ package iav1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" - _ "github.com/percona/pmm/api/managementpb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Alert) Validate() error { // Validation of proto3 map<> fields is unsupported. @@ -42,7 +38,6 @@ func (this *Alert) Validate() error { } return nil } - func (this *ListAlertsRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -51,7 +46,6 @@ func (this *ListAlertsRequest) Validate() error { } return nil } - func (this *ListAlertsResponse) Validate() error { for _, item := range this.Alerts { if item != nil { @@ -67,11 +61,9 @@ func (this *ListAlertsResponse) Validate() error { } return nil } - func (this *ToggleAlertsRequest) Validate() error { return nil } - func (this *ToggleAlertsResponse) Validate() error { return nil } diff --git a/api/managementpb/ia/alerts_grpc.pb.go b/api/managementpb/ia/alerts_grpc.pb.go index 9f4e5a45b3..781bc5de4d 100644 --- a/api/managementpb/ia/alerts_grpc.pb.go +++ b/api/managementpb/ia/alerts_grpc.pb.go @@ -8,7 +8,6 @@ package iav1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -67,12 +66,12 @@ type AlertsServer interface { } // UnimplementedAlertsServer must be embedded to have forward compatible implementations. -type UnimplementedAlertsServer struct{} +type UnimplementedAlertsServer struct { +} func (UnimplementedAlertsServer) ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAlerts not implemented") } - func (UnimplementedAlertsServer) ToggleAlerts(context.Context, *ToggleAlertsRequest) (*ToggleAlertsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ToggleAlerts not implemented") } diff --git a/api/managementpb/ia/channels.pb.go b/api/managementpb/ia/channels.pb.go index 5810f4bf49..5b1cea1695 100644 --- a/api/managementpb/ia/channels.pb.go +++ b/api/managementpb/ia/channels.pb.go @@ -7,15 +7,13 @@ package iav1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" + managementpb "github.com/percona/pmm/api/managementpb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - managementpb "github.com/percona/pmm/api/managementpb" + reflect "reflect" + sync "sync" ) const ( @@ -1378,30 +1376,27 @@ func file_managementpb_ia_channels_proto_rawDescGZIP() []byte { return file_managementpb_ia_channels_proto_rawDescData } -var ( - file_managementpb_ia_channels_proto_msgTypes = make([]protoimpl.MessageInfo, 16) - file_managementpb_ia_channels_proto_goTypes = []interface{}{ - (*BasicAuth)(nil), // 0: ia.v1beta1.BasicAuth - (*TLSConfig)(nil), // 1: ia.v1beta1.TLSConfig - (*HTTPConfig)(nil), // 2: ia.v1beta1.HTTPConfig - (*EmailConfig)(nil), // 3: ia.v1beta1.EmailConfig - (*PagerDutyConfig)(nil), // 4: ia.v1beta1.PagerDutyConfig - (*SlackConfig)(nil), // 5: ia.v1beta1.SlackConfig - (*WebhookConfig)(nil), // 6: ia.v1beta1.WebhookConfig - (*Channel)(nil), // 7: ia.v1beta1.Channel - (*ListChannelsRequest)(nil), // 8: ia.v1beta1.ListChannelsRequest - (*ListChannelsResponse)(nil), // 9: ia.v1beta1.ListChannelsResponse - (*AddChannelRequest)(nil), // 10: ia.v1beta1.AddChannelRequest - (*AddChannelResponse)(nil), // 11: ia.v1beta1.AddChannelResponse - (*ChangeChannelRequest)(nil), // 12: ia.v1beta1.ChangeChannelRequest - (*ChangeChannelResponse)(nil), // 13: ia.v1beta1.ChangeChannelResponse - (*RemoveChannelRequest)(nil), // 14: ia.v1beta1.RemoveChannelRequest - (*RemoveChannelResponse)(nil), // 15: ia.v1beta1.RemoveChannelResponse - (*managementpb.PageParams)(nil), // 16: management.PageParams - (*managementpb.PageTotals)(nil), // 17: management.PageTotals - } -) - +var file_managementpb_ia_channels_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_managementpb_ia_channels_proto_goTypes = []interface{}{ + (*BasicAuth)(nil), // 0: ia.v1beta1.BasicAuth + (*TLSConfig)(nil), // 1: ia.v1beta1.TLSConfig + (*HTTPConfig)(nil), // 2: ia.v1beta1.HTTPConfig + (*EmailConfig)(nil), // 3: ia.v1beta1.EmailConfig + (*PagerDutyConfig)(nil), // 4: ia.v1beta1.PagerDutyConfig + (*SlackConfig)(nil), // 5: ia.v1beta1.SlackConfig + (*WebhookConfig)(nil), // 6: ia.v1beta1.WebhookConfig + (*Channel)(nil), // 7: ia.v1beta1.Channel + (*ListChannelsRequest)(nil), // 8: ia.v1beta1.ListChannelsRequest + (*ListChannelsResponse)(nil), // 9: ia.v1beta1.ListChannelsResponse + (*AddChannelRequest)(nil), // 10: ia.v1beta1.AddChannelRequest + (*AddChannelResponse)(nil), // 11: ia.v1beta1.AddChannelResponse + (*ChangeChannelRequest)(nil), // 12: ia.v1beta1.ChangeChannelRequest + (*ChangeChannelResponse)(nil), // 13: ia.v1beta1.ChangeChannelResponse + (*RemoveChannelRequest)(nil), // 14: ia.v1beta1.RemoveChannelRequest + (*RemoveChannelResponse)(nil), // 15: ia.v1beta1.RemoveChannelResponse + (*managementpb.PageParams)(nil), // 16: management.PageParams + (*managementpb.PageTotals)(nil), // 17: management.PageTotals +} var file_managementpb_ia_channels_proto_depIdxs = []int32{ 0, // 0: ia.v1beta1.HTTPConfig.basic_auth:type_name -> ia.v1beta1.BasicAuth 1, // 1: ia.v1beta1.HTTPConfig.tls_config:type_name -> ia.v1beta1.TLSConfig diff --git a/api/managementpb/ia/channels.pb.gw.go b/api/managementpb/ia/channels.pb.gw.go index 16251041d6..2283d38f6f 100644 --- a/api/managementpb/ia/channels.pb.gw.go +++ b/api/managementpb/ia/channels.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Channels_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListChannelsRequest @@ -47,6 +45,7 @@ func request_Channels_ListChannels_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ListChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Channels_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Channels_ListChannels_0(ctx context.Context, marshaler runtim msg, err := server.ListChannels(ctx, &protoReq) return msg, metadata, err + } func request_Channels_AddChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Channels_AddChannel_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.AddChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Channels_AddChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Channels_AddChannel_0(ctx context.Context, marshaler runtime. msg, err := server.AddChannel(ctx, &protoReq) return msg, metadata, err + } func request_Channels_ChangeChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Channels_ChangeChannel_0(ctx context.Context, marshaler runtime.Mar msg, err := client.ChangeChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Channels_ChangeChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Channels_ChangeChannel_0(ctx context.Context, marshaler runti msg, err := server.ChangeChannel(ctx, &protoReq) return msg, metadata, err + } func request_Channels_RemoveChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Channels_RemoveChannel_0(ctx context.Context, marshaler runtime.Mar msg, err := client.RemoveChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Channels_RemoveChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Channels_RemoveChannel_0(ctx context.Context, marshaler runti msg, err := server.RemoveChannel(ctx, &protoReq) return msg, metadata, err + } // RegisterChannelsHandlerServer registers the http handlers for service Channels to "mux". @@ -166,6 +172,7 @@ func local_request_Channels_RemoveChannel_0(ctx context.Context, marshaler runti // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterChannelsHandlerFromEndpoint instead. func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChannelsServer) error { + mux.Handle("POST", pattern_Channels_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -188,6 +195,7 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_ListChannels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Channels_AddChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -212,6 +220,7 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_AddChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Channels_ChangeChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -236,6 +245,7 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_ChangeChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Channels_RemoveChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -260,6 +270,7 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_RemoveChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -302,6 +313,7 @@ func RegisterChannelsHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ChannelsClient" to call the correct interceptors. func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChannelsClient) error { + mux.Handle("POST", pattern_Channels_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -321,6 +333,7 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_ListChannels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Channels_AddChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -342,6 +355,7 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_AddChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Channels_ChangeChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -363,6 +377,7 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_ChangeChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Channels_RemoveChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -384,6 +399,7 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_RemoveChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/ia/channels.validator.pb.go b/api/managementpb/ia/channels.validator.pb.go index fc4912c225..2103f00548 100644 --- a/api/managementpb/ia/channels.validator.pb.go +++ b/api/managementpb/ia/channels.validator.pb.go @@ -6,30 +6,24 @@ package iav1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/managementpb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *BasicAuth) Validate() error { return nil } - func (this *TLSConfig) Validate() error { return nil } - func (this *HTTPConfig) Validate() error { if this.BasicAuth != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.BasicAuth); err != nil { @@ -43,25 +37,21 @@ func (this *HTTPConfig) Validate() error { } return nil } - func (this *EmailConfig) Validate() error { if len(this.To) < 1 { return github_com_mwitkow_go_proto_validators.FieldError("To", fmt.Errorf(`value '%v' must contain at least 1 elements`, this.To)) } return nil } - func (this *PagerDutyConfig) Validate() error { return nil } - func (this *SlackConfig) Validate() error { if this.Channel == "" { return github_com_mwitkow_go_proto_validators.FieldError("Channel", fmt.Errorf(`value '%v' must not be an empty string`, this.Channel)) } return nil } - func (this *WebhookConfig) Validate() error { if this.Url == "" { return github_com_mwitkow_go_proto_validators.FieldError("Url", fmt.Errorf(`value '%v' must not be an empty string`, this.Url)) @@ -73,7 +63,6 @@ func (this *WebhookConfig) Validate() error { } return nil } - func (this *Channel) Validate() error { if oneOfNester, ok := this.GetChannel().(*Channel_EmailConfig); ok { if oneOfNester.EmailConfig != nil { @@ -105,7 +94,6 @@ func (this *Channel) Validate() error { } return nil } - func (this *ListChannelsRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -114,7 +102,6 @@ func (this *ListChannelsRequest) Validate() error { } return nil } - func (this *ListChannelsResponse) Validate() error { for _, item := range this.Channels { if item != nil { @@ -130,7 +117,6 @@ func (this *ListChannelsResponse) Validate() error { } return nil } - func (this *AddChannelRequest) Validate() error { if this.Summary == "" { return github_com_mwitkow_go_proto_validators.FieldError("Summary", fmt.Errorf(`value '%v' must not be an empty string`, this.Summary)) @@ -157,11 +143,9 @@ func (this *AddChannelRequest) Validate() error { } return nil } - func (this *AddChannelResponse) Validate() error { return nil } - func (this *ChangeChannelRequest) Validate() error { if this.ChannelId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ChannelId", fmt.Errorf(`value '%v' must not be an empty string`, this.ChannelId)) @@ -188,18 +172,15 @@ func (this *ChangeChannelRequest) Validate() error { } return nil } - func (this *ChangeChannelResponse) Validate() error { return nil } - func (this *RemoveChannelRequest) Validate() error { if this.ChannelId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ChannelId", fmt.Errorf(`value '%v' must not be an empty string`, this.ChannelId)) } return nil } - func (this *RemoveChannelResponse) Validate() error { return nil } diff --git a/api/managementpb/ia/channels_grpc.pb.go b/api/managementpb/ia/channels_grpc.pb.go index 4b88513542..17edaaf93b 100644 --- a/api/managementpb/ia/channels_grpc.pb.go +++ b/api/managementpb/ia/channels_grpc.pb.go @@ -8,7 +8,6 @@ package iav1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -93,20 +92,18 @@ type ChannelsServer interface { } // UnimplementedChannelsServer must be embedded to have forward compatible implementations. -type UnimplementedChannelsServer struct{} +type UnimplementedChannelsServer struct { +} func (UnimplementedChannelsServer) ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListChannels not implemented") } - func (UnimplementedChannelsServer) AddChannel(context.Context, *AddChannelRequest) (*AddChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddChannel not implemented") } - func (UnimplementedChannelsServer) ChangeChannel(context.Context, *ChangeChannelRequest) (*ChangeChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeChannel not implemented") } - func (UnimplementedChannelsServer) RemoveChannel(context.Context, *RemoveChannelRequest) (*RemoveChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveChannel not implemented") } diff --git a/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go b/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go index b2937ec92e..aa37053416 100644 --- a/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go +++ b/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go @@ -60,6 +60,7 @@ ListAlertsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListAlertsParams struct { + // Body. Body ListAlertsBody @@ -129,6 +130,7 @@ func (o *ListAlertsParams) SetBody(body ListAlertsBody) { // WriteToRequest writes these params to a swagger request func (o *ListAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/alerts/list_alerts_responses.go b/api/managementpb/ia/json/client/alerts/list_alerts_responses.go index aa522bddd0..fa01638a2d 100644 --- a/api/managementpb/ia/json/client/alerts/list_alerts_responses.go +++ b/api/managementpb/ia/json/client/alerts/list_alerts_responses.go @@ -62,12 +62,12 @@ type ListAlertsOK struct { func (o *ListAlertsOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/List][%d] listAlertsOk %+v", 200, o.Payload) } - func (o *ListAlertsOK) GetPayload() *ListAlertsOKBody { return o.Payload } func (o *ListAlertsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAlertsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListAlertsDefault) Code() int { func (o *ListAlertsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/List][%d] ListAlerts default %+v", o._statusCode, o.Payload) } - func (o *ListAlertsDefault) GetPayload() *ListAlertsDefaultBody { return o.Payload } func (o *ListAlertsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAlertsDefaultBody) // response payload @@ -125,6 +125,7 @@ ListAlertsBody list alerts body swagger:model ListAlertsBody */ type ListAlertsBody struct { + // page params PageParams *ListAlertsParamsBodyPageParams `json:"page_params,omitempty"` } @@ -177,6 +178,7 @@ func (o *ListAlertsBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *ListAlertsBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { + if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -214,6 +216,7 @@ ListAlertsDefaultBody list alerts default body swagger:model ListAlertsDefaultBody */ type ListAlertsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -279,7 +282,9 @@ func (o *ListAlertsDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *ListAlertsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -290,6 +295,7 @@ func (o *ListAlertsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -318,6 +324,7 @@ ListAlertsDefaultBodyDetailsItems0 list alerts default body details items0 swagger:model ListAlertsDefaultBodyDetailsItems0 */ type ListAlertsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +362,7 @@ ListAlertsOKBody list alerts OK body swagger:model ListAlertsOKBody */ type ListAlertsOKBody struct { + // alerts Alerts []*ListAlertsOKBodyAlertsItems0 `json:"alerts"` @@ -444,7 +452,9 @@ func (o *ListAlertsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListAlertsOKBody) contextValidateAlerts(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Alerts); i++ { + if o.Alerts[i] != nil { if err := o.Alerts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -455,12 +465,14 @@ func (o *ListAlertsOKBody) contextValidateAlerts(ctx context.Context, formats st return err } } + } return nil } func (o *ListAlertsOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { + if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -498,6 +510,7 @@ ListAlertsOKBodyAlertsItems0 Alert represents Alert. swagger:model ListAlertsOKBodyAlertsItems0 */ type ListAlertsOKBodyAlertsItems0 struct { + // ID. AlertID string `json:"alert_id,omitempty"` @@ -734,6 +747,7 @@ func (o *ListAlertsOKBodyAlertsItems0) ContextValidate(ctx context.Context, form } func (o *ListAlertsOKBodyAlertsItems0) contextValidateRule(ctx context.Context, formats strfmt.Registry) error { + if o.Rule != nil { if err := o.Rule.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -771,6 +785,7 @@ ListAlertsOKBodyAlertsItems0Rule Rule represents Alert Rule. swagger:model ListAlertsOKBodyAlertsItems0Rule */ type ListAlertsOKBodyAlertsItems0Rule struct { + // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -1139,7 +1154,9 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) ContextValidate(ctx context.Context, } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsDefinitions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ParamsDefinitions); i++ { + if o.ParamsDefinitions[i] != nil { if err := o.ParamsDefinitions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1150,13 +1167,16 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsDefinitions(ctx return err } } + } return nil } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsValues(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ParamsValues); i++ { + if o.ParamsValues[i] != nil { if err := o.ParamsValues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1167,13 +1187,16 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsValues(ctx conte return err } } + } return nil } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Filters); i++ { + if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1184,13 +1207,16 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateFilters(ctx context.Co return err } } + } return nil } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateChannels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Channels); i++ { + if o.Channels[i] != nil { if err := o.Channels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1201,6 +1227,7 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateChannels(ctx context.C return err } } + } return nil @@ -1229,6 +1256,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0 Channel represents a single Notif swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0 */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0 struct { + // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -1380,6 +1408,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) ContextValidate(ctx con } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { + if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1395,6 +1424,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateEmailCon } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1410,6 +1440,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidatePagerdut } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { + if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1425,6 +1456,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateSlackCon } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { + if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1462,6 +1494,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig EmailConfig represents swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1502,6 +1535,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig PagerDutyConfig re swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1545,6 +1579,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig SlackConfig represents swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1585,6 +1620,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig WebhookConfig repres swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1646,6 +1682,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig) ContextVal } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { + if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1683,6 +1720,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig HTTPConfig swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig struct { + // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -1774,6 +1812,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { + if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1789,6 +1828,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { + if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1826,6 +1866,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth B swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { + // username Username string `json:"username,omitempty"` @@ -1870,6 +1911,7 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig T swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig struct { + // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` @@ -1934,6 +1976,7 @@ ListAlertsOKBodyAlertsItems0RuleFiltersItems0 Filter repsents a single filter co swagger:model ListAlertsOKBodyAlertsItems0RuleFiltersItems0 */ type ListAlertsOKBodyAlertsItems0RuleFiltersItems0 struct { + // FilterType represents filter matching type. // // - EQUAL: = @@ -2035,6 +2078,7 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 ParamDefinition represen swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2266,6 +2310,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) ContextValidat } func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { + if o.Bool != nil { if err := o.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2281,6 +2326,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidat } func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { + if o.Float != nil { if err := o.Float.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2296,6 +2342,7 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidat } func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { + if o.String != nil { if err := o.String.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2333,6 +2380,7 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool BoolParamDefinition swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool struct { + // BooleanFlag represent a command to set some boolean property to true, // to false, or avoid changing that property. // @@ -2430,6 +2478,7 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float FloatParamDefinitio swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float struct { + // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2482,6 +2531,7 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String StringParamDefinit swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String struct { + // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2522,6 +2572,7 @@ ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 ParamValue represents a singl swagger:model ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 */ type ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2629,6 +2680,7 @@ ListAlertsOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertsOKBodyTotals */ type ListAlertsOKBodyTotals struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -2669,6 +2721,7 @@ ListAlertsParamsBodyPageParams PageParams represents page request parameters for swagger:model ListAlertsParamsBodyPageParams */ type ListAlertsParamsBodyPageParams struct { + // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go b/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go index 91f845542b..994425b487 100644 --- a/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go +++ b/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go @@ -60,6 +60,7 @@ ToggleAlertsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ToggleAlertsParams struct { + // Body. Body ToggleAlertsBody @@ -129,6 +130,7 @@ func (o *ToggleAlertsParams) SetBody(body ToggleAlertsBody) { // WriteToRequest writes these params to a swagger request func (o *ToggleAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go b/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go index bba76b097d..d2dcb850d7 100644 --- a/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go +++ b/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go @@ -62,12 +62,12 @@ type ToggleAlertsOK struct { func (o *ToggleAlertsOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/Toggle][%d] toggleAlertsOk %+v", 200, o.Payload) } - func (o *ToggleAlertsOK) GetPayload() interface{} { return o.Payload } func (o *ToggleAlertsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *ToggleAlertsDefault) Code() int { func (o *ToggleAlertsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/Toggle][%d] ToggleAlerts default %+v", o._statusCode, o.Payload) } - func (o *ToggleAlertsDefault) GetPayload() *ToggleAlertsDefaultBody { return o.Payload } func (o *ToggleAlertsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ToggleAlertsDefaultBody) // response payload @@ -123,6 +123,7 @@ ToggleAlertsBody toggle alerts body swagger:model ToggleAlertsBody */ type ToggleAlertsBody struct { + // List of alerts that silence state should be switched. If provided array is empty than all // existing alerts are switched. AlertIds []string `json:"alert_ids"` @@ -224,6 +225,7 @@ ToggleAlertsDefaultBody toggle alerts default body swagger:model ToggleAlertsDefaultBody */ type ToggleAlertsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -289,7 +291,9 @@ func (o *ToggleAlertsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ToggleAlertsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -300,6 +304,7 @@ func (o *ToggleAlertsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -328,6 +333,7 @@ ToggleAlertsDefaultBodyDetailsItems0 toggle alerts default body details items0 swagger:model ToggleAlertsDefaultBodyDetailsItems0 */ type ToggleAlertsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/channels/add_channel_parameters.go b/api/managementpb/ia/json/client/channels/add_channel_parameters.go index dda611d4a5..e44b4a0b07 100644 --- a/api/managementpb/ia/json/client/channels/add_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/add_channel_parameters.go @@ -60,6 +60,7 @@ AddChannelParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddChannelParams struct { + // Body. Body AddChannelBody @@ -129,6 +130,7 @@ func (o *AddChannelParams) SetBody(body AddChannelBody) { // WriteToRequest writes these params to a swagger request func (o *AddChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/add_channel_responses.go b/api/managementpb/ia/json/client/channels/add_channel_responses.go index 96a7a1f087..2ccd14ea0f 100644 --- a/api/managementpb/ia/json/client/channels/add_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/add_channel_responses.go @@ -60,12 +60,12 @@ type AddChannelOK struct { func (o *AddChannelOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Add][%d] addChannelOk %+v", 200, o.Payload) } - func (o *AddChannelOK) GetPayload() *AddChannelOKBody { return o.Payload } func (o *AddChannelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddChannelOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddChannelDefault) Code() int { func (o *AddChannelDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Add][%d] AddChannel default %+v", o._statusCode, o.Payload) } - func (o *AddChannelDefault) GetPayload() *AddChannelDefaultBody { return o.Payload } func (o *AddChannelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddChannelDefaultBody) // response payload @@ -123,6 +123,7 @@ AddChannelBody add channel body swagger:model AddChannelBody */ type AddChannelBody struct { + // Short human-readable summary. Summary string `json:"summary,omitempty"` @@ -271,6 +272,7 @@ func (o *AddChannelBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddChannelBody) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { + if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -286,6 +288,7 @@ func (o *AddChannelBody) contextValidateEmailConfig(ctx context.Context, formats } func (o *AddChannelBody) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -301,6 +304,7 @@ func (o *AddChannelBody) contextValidatePagerdutyConfig(ctx context.Context, for } func (o *AddChannelBody) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { + if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -316,6 +320,7 @@ func (o *AddChannelBody) contextValidateSlackConfig(ctx context.Context, formats } func (o *AddChannelBody) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { + if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -353,6 +358,7 @@ AddChannelDefaultBody add channel default body swagger:model AddChannelDefaultBody */ type AddChannelDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -418,7 +424,9 @@ func (o *AddChannelDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddChannelDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -429,6 +437,7 @@ func (o *AddChannelDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -457,6 +466,7 @@ AddChannelDefaultBodyDetailsItems0 add channel default body details items0 swagger:model AddChannelDefaultBodyDetailsItems0 */ type AddChannelDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -494,6 +504,7 @@ AddChannelOKBody add channel OK body swagger:model AddChannelOKBody */ type AddChannelOKBody struct { + // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` } @@ -531,6 +542,7 @@ AddChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model AddChannelParamsBodyEmailConfig */ type AddChannelParamsBodyEmailConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -571,6 +583,7 @@ AddChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configu swagger:model AddChannelParamsBodyPagerdutyConfig */ type AddChannelParamsBodyPagerdutyConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -614,6 +627,7 @@ AddChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model AddChannelParamsBodySlackConfig */ type AddChannelParamsBodySlackConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -654,6 +668,7 @@ AddChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration swagger:model AddChannelParamsBodyWebhookConfig */ type AddChannelParamsBodyWebhookConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -715,6 +730,7 @@ func (o *AddChannelParamsBodyWebhookConfig) ContextValidate(ctx context.Context, } func (o *AddChannelParamsBodyWebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { + if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -752,6 +768,7 @@ AddChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client co swagger:model AddChannelParamsBodyWebhookConfigHTTPConfig */ type AddChannelParamsBodyWebhookConfigHTTPConfig struct { + // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -843,6 +860,7 @@ func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) ContextValidate(ctx contex } func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { + if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -858,6 +876,7 @@ func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAuth(c } func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { + if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -895,6 +914,7 @@ AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth */ type AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct { + // username Username string `json:"username,omitempty"` @@ -939,6 +959,7 @@ AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS co swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig */ type AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig struct { + // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` diff --git a/api/managementpb/ia/json/client/channels/change_channel_parameters.go b/api/managementpb/ia/json/client/channels/change_channel_parameters.go index 569379c6b6..a6c229806e 100644 --- a/api/managementpb/ia/json/client/channels/change_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/change_channel_parameters.go @@ -60,6 +60,7 @@ ChangeChannelParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeChannelParams struct { + // Body. Body ChangeChannelBody @@ -129,6 +130,7 @@ func (o *ChangeChannelParams) SetBody(body ChangeChannelBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/change_channel_responses.go b/api/managementpb/ia/json/client/channels/change_channel_responses.go index d4fb8eea19..653b6672be 100644 --- a/api/managementpb/ia/json/client/channels/change_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/change_channel_responses.go @@ -60,12 +60,12 @@ type ChangeChannelOK struct { func (o *ChangeChannelOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Change][%d] changeChannelOk %+v", 200, o.Payload) } - func (o *ChangeChannelOK) GetPayload() interface{} { return o.Payload } func (o *ChangeChannelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangeChannelDefault) Code() int { func (o *ChangeChannelDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Change][%d] ChangeChannel default %+v", o._statusCode, o.Payload) } - func (o *ChangeChannelDefault) GetPayload() *ChangeChannelDefaultBody { return o.Payload } func (o *ChangeChannelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeChannelDefaultBody) // response payload @@ -121,6 +121,7 @@ ChangeChannelBody change channel body swagger:model ChangeChannelBody */ type ChangeChannelBody struct { + // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -272,6 +273,7 @@ func (o *ChangeChannelBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ChangeChannelBody) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { + if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -287,6 +289,7 @@ func (o *ChangeChannelBody) contextValidateEmailConfig(ctx context.Context, form } func (o *ChangeChannelBody) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -302,6 +305,7 @@ func (o *ChangeChannelBody) contextValidatePagerdutyConfig(ctx context.Context, } func (o *ChangeChannelBody) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { + if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -317,6 +321,7 @@ func (o *ChangeChannelBody) contextValidateSlackConfig(ctx context.Context, form } func (o *ChangeChannelBody) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { + if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -354,6 +359,7 @@ ChangeChannelDefaultBody change channel default body swagger:model ChangeChannelDefaultBody */ type ChangeChannelDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -419,7 +425,9 @@ func (o *ChangeChannelDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeChannelDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -430,6 +438,7 @@ func (o *ChangeChannelDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -458,6 +467,7 @@ ChangeChannelDefaultBodyDetailsItems0 change channel default body details items0 swagger:model ChangeChannelDefaultBodyDetailsItems0 */ type ChangeChannelDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -495,6 +505,7 @@ ChangeChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model ChangeChannelParamsBodyEmailConfig */ type ChangeChannelParamsBodyEmailConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -535,6 +546,7 @@ ChangeChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty conf swagger:model ChangeChannelParamsBodyPagerdutyConfig */ type ChangeChannelParamsBodyPagerdutyConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -578,6 +590,7 @@ ChangeChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model ChangeChannelParamsBodySlackConfig */ type ChangeChannelParamsBodySlackConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -618,6 +631,7 @@ ChangeChannelParamsBodyWebhookConfig WebhookConfig represents webhook configurat swagger:model ChangeChannelParamsBodyWebhookConfig */ type ChangeChannelParamsBodyWebhookConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -679,6 +693,7 @@ func (o *ChangeChannelParamsBodyWebhookConfig) ContextValidate(ctx context.Conte } func (o *ChangeChannelParamsBodyWebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { + if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -716,6 +731,7 @@ ChangeChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfig */ type ChangeChannelParamsBodyWebhookConfigHTTPConfig struct { + // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -807,6 +823,7 @@ func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) ContextValidate(ctx con } func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { + if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -822,6 +839,7 @@ func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAut } func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { + if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -859,6 +877,7 @@ ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents bas swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth */ type ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct { + // username Username string `json:"username,omitempty"` @@ -903,6 +922,7 @@ ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig */ type ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig struct { + // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` diff --git a/api/managementpb/ia/json/client/channels/list_channels_parameters.go b/api/managementpb/ia/json/client/channels/list_channels_parameters.go index 4f6948c977..9e2504e37f 100644 --- a/api/managementpb/ia/json/client/channels/list_channels_parameters.go +++ b/api/managementpb/ia/json/client/channels/list_channels_parameters.go @@ -60,6 +60,7 @@ ListChannelsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListChannelsParams struct { + // Body. Body ListChannelsBody @@ -129,6 +130,7 @@ func (o *ListChannelsParams) SetBody(body ListChannelsBody) { // WriteToRequest writes these params to a swagger request func (o *ListChannelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/list_channels_responses.go b/api/managementpb/ia/json/client/channels/list_channels_responses.go index ec672a76db..85df129ef9 100644 --- a/api/managementpb/ia/json/client/channels/list_channels_responses.go +++ b/api/managementpb/ia/json/client/channels/list_channels_responses.go @@ -60,12 +60,12 @@ type ListChannelsOK struct { func (o *ListChannelsOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/List][%d] listChannelsOk %+v", 200, o.Payload) } - func (o *ListChannelsOK) GetPayload() *ListChannelsOKBody { return o.Payload } func (o *ListChannelsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListChannelsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListChannelsDefault) Code() int { func (o *ListChannelsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/List][%d] ListChannels default %+v", o._statusCode, o.Payload) } - func (o *ListChannelsDefault) GetPayload() *ListChannelsDefaultBody { return o.Payload } func (o *ListChannelsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListChannelsDefaultBody) // response payload @@ -123,6 +123,7 @@ ListChannelsBody list channels body swagger:model ListChannelsBody */ type ListChannelsBody struct { + // page params PageParams *ListChannelsParamsBodyPageParams `json:"page_params,omitempty"` } @@ -175,6 +176,7 @@ func (o *ListChannelsBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListChannelsBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { + if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -212,6 +214,7 @@ ListChannelsDefaultBody list channels default body swagger:model ListChannelsDefaultBody */ type ListChannelsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -277,7 +280,9 @@ func (o *ListChannelsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListChannelsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -288,6 +293,7 @@ func (o *ListChannelsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -316,6 +322,7 @@ ListChannelsDefaultBodyDetailsItems0 list channels default body details items0 swagger:model ListChannelsDefaultBodyDetailsItems0 */ type ListChannelsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -353,6 +360,7 @@ ListChannelsOKBody list channels OK body swagger:model ListChannelsOKBody */ type ListChannelsOKBody struct { + // channels Channels []*ListChannelsOKBodyChannelsItems0 `json:"channels"` @@ -442,7 +450,9 @@ func (o *ListChannelsOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListChannelsOKBody) contextValidateChannels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Channels); i++ { + if o.Channels[i] != nil { if err := o.Channels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -453,12 +463,14 @@ func (o *ListChannelsOKBody) contextValidateChannels(ctx context.Context, format return err } } + } return nil } func (o *ListChannelsOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { + if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -496,6 +508,7 @@ ListChannelsOKBodyChannelsItems0 Channel represents a single Notification Channe swagger:model ListChannelsOKBodyChannelsItems0 */ type ListChannelsOKBodyChannelsItems0 struct { + // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -647,6 +660,7 @@ func (o *ListChannelsOKBodyChannelsItems0) ContextValidate(ctx context.Context, } func (o *ListChannelsOKBodyChannelsItems0) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { + if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -662,6 +676,7 @@ func (o *ListChannelsOKBodyChannelsItems0) contextValidateEmailConfig(ctx contex } func (o *ListChannelsOKBodyChannelsItems0) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -677,6 +692,7 @@ func (o *ListChannelsOKBodyChannelsItems0) contextValidatePagerdutyConfig(ctx co } func (o *ListChannelsOKBodyChannelsItems0) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { + if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -692,6 +708,7 @@ func (o *ListChannelsOKBodyChannelsItems0) contextValidateSlackConfig(ctx contex } func (o *ListChannelsOKBodyChannelsItems0) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { + if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -729,6 +746,7 @@ ListChannelsOKBodyChannelsItems0EmailConfig EmailConfig represents email configu swagger:model ListChannelsOKBodyChannelsItems0EmailConfig */ type ListChannelsOKBodyChannelsItems0EmailConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -769,6 +787,7 @@ ListChannelsOKBodyChannelsItems0PagerdutyConfig PagerDutyConfig represents Pager swagger:model ListChannelsOKBodyChannelsItems0PagerdutyConfig */ type ListChannelsOKBodyChannelsItems0PagerdutyConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -812,6 +831,7 @@ ListChannelsOKBodyChannelsItems0SlackConfig SlackConfig represents Slack configu swagger:model ListChannelsOKBodyChannelsItems0SlackConfig */ type ListChannelsOKBodyChannelsItems0SlackConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -852,6 +872,7 @@ ListChannelsOKBodyChannelsItems0WebhookConfig WebhookConfig represents webhook c swagger:model ListChannelsOKBodyChannelsItems0WebhookConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -913,6 +934,7 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfig) ContextValidate(ctx cont } func (o *ListChannelsOKBodyChannelsItems0WebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { + if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -950,6 +972,7 @@ ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HT swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig struct { + // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -1041,6 +1064,7 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) ContextValidat } func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { + if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1056,6 +1080,7 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) contextValidat } func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { + if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1093,6 +1118,7 @@ ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth repre swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { + // username Username string `json:"username,omitempty"` @@ -1137,6 +1163,7 @@ ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig repre swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig struct { + // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` @@ -1201,6 +1228,7 @@ ListChannelsOKBodyTotals PageTotals represents total values for pagination. swagger:model ListChannelsOKBodyTotals */ type ListChannelsOKBodyTotals struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -1241,6 +1269,7 @@ ListChannelsParamsBodyPageParams PageParams represents page request parameters f swagger:model ListChannelsParamsBodyPageParams */ type ListChannelsParamsBodyPageParams struct { + // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/ia/json/client/channels/remove_channel_parameters.go b/api/managementpb/ia/json/client/channels/remove_channel_parameters.go index bc094beef7..60f0132346 100644 --- a/api/managementpb/ia/json/client/channels/remove_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/remove_channel_parameters.go @@ -60,6 +60,7 @@ RemoveChannelParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveChannelParams struct { + // Body. Body RemoveChannelBody @@ -129,6 +130,7 @@ func (o *RemoveChannelParams) SetBody(body RemoveChannelBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/remove_channel_responses.go b/api/managementpb/ia/json/client/channels/remove_channel_responses.go index eb6aa49b30..6f80dc95d9 100644 --- a/api/managementpb/ia/json/client/channels/remove_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/remove_channel_responses.go @@ -60,12 +60,12 @@ type RemoveChannelOK struct { func (o *RemoveChannelOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Remove][%d] removeChannelOk %+v", 200, o.Payload) } - func (o *RemoveChannelOK) GetPayload() interface{} { return o.Payload } func (o *RemoveChannelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveChannelDefault) Code() int { func (o *RemoveChannelDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Remove][%d] RemoveChannel default %+v", o._statusCode, o.Payload) } - func (o *RemoveChannelDefault) GetPayload() *RemoveChannelDefaultBody { return o.Payload } func (o *RemoveChannelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveChannelDefaultBody) // response payload @@ -121,6 +121,7 @@ RemoveChannelBody remove channel body swagger:model RemoveChannelBody */ type RemoveChannelBody struct { + // channel id ChannelID string `json:"channel_id,omitempty"` } @@ -158,6 +159,7 @@ RemoveChannelDefaultBody remove channel default body swagger:model RemoveChannelDefaultBody */ type RemoveChannelDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *RemoveChannelDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveChannelDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *RemoveChannelDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -262,6 +267,7 @@ RemoveChannelDefaultBodyDetailsItems0 remove channel default body details items0 swagger:model RemoveChannelDefaultBodyDetailsItems0 */ type RemoveChannelDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go index c361a3c197..1178c51528 100644 --- a/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go @@ -60,6 +60,7 @@ CreateAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateAlertRuleParams struct { + // Body. Body CreateAlertRuleBody @@ -129,6 +130,7 @@ func (o *CreateAlertRuleParams) SetBody(body CreateAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *CreateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go index 6ff0249456..b8d1bb3f80 100644 --- a/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go @@ -62,12 +62,12 @@ type CreateAlertRuleOK struct { func (o *CreateAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Create][%d] createAlertRuleOk %+v", 200, o.Payload) } - func (o *CreateAlertRuleOK) GetPayload() *CreateAlertRuleOKBody { return o.Payload } func (o *CreateAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateAlertRuleOKBody) // response payload @@ -104,12 +104,12 @@ func (o *CreateAlertRuleDefault) Code() int { func (o *CreateAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Create][%d] CreateAlertRule default %+v", o._statusCode, o.Payload) } - func (o *CreateAlertRuleDefault) GetPayload() *CreateAlertRuleDefaultBody { return o.Payload } func (o *CreateAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateAlertRuleDefaultBody) // response payload @@ -125,6 +125,7 @@ CreateAlertRuleBody create alert rule body swagger:model CreateAlertRuleBody */ type CreateAlertRuleBody struct { + // Template name. Can't be specified simultaneously with source_rule_id. TemplateName string `json:"template_name,omitempty"` @@ -313,7 +314,9 @@ func (o *CreateAlertRuleBody) ContextValidate(ctx context.Context, formats strfm } func (o *CreateAlertRuleBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Params); i++ { + if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -324,13 +327,16 @@ func (o *CreateAlertRuleBody) contextValidateParams(ctx context.Context, formats return err } } + } return nil } func (o *CreateAlertRuleBody) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Filters); i++ { + if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -341,6 +347,7 @@ func (o *CreateAlertRuleBody) contextValidateFilters(ctx context.Context, format return err } } + } return nil @@ -369,6 +376,7 @@ CreateAlertRuleDefaultBody create alert rule default body swagger:model CreateAlertRuleDefaultBody */ type CreateAlertRuleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -434,7 +442,9 @@ func (o *CreateAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *CreateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -445,6 +455,7 @@ func (o *CreateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -473,6 +484,7 @@ CreateAlertRuleDefaultBodyDetailsItems0 create alert rule default body details i swagger:model CreateAlertRuleDefaultBodyDetailsItems0 */ type CreateAlertRuleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -510,6 +522,7 @@ CreateAlertRuleOKBody create alert rule OK body swagger:model CreateAlertRuleOKBody */ type CreateAlertRuleOKBody struct { + // Rule ID. RuleID string `json:"rule_id,omitempty"` } @@ -547,6 +560,7 @@ CreateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition swagger:model CreateAlertRuleParamsBodyFiltersItems0 */ type CreateAlertRuleParamsBodyFiltersItems0 struct { + // FilterType represents filter matching type. // // - EQUAL: = @@ -648,6 +662,7 @@ CreateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parame swagger:model CreateAlertRuleParamsBodyParamsItems0 */ type CreateAlertRuleParamsBodyParamsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go index 7b24bccb74..9b740d644e 100644 --- a/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go @@ -60,6 +60,7 @@ DeleteAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteAlertRuleParams struct { + // Body. Body DeleteAlertRuleBody @@ -129,6 +130,7 @@ func (o *DeleteAlertRuleParams) SetBody(body DeleteAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go index accdebbdc8..fb62fa0197 100644 --- a/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go @@ -60,12 +60,12 @@ type DeleteAlertRuleOK struct { func (o *DeleteAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Delete][%d] deleteAlertRuleOk %+v", 200, o.Payload) } - func (o *DeleteAlertRuleOK) GetPayload() interface{} { return o.Payload } func (o *DeleteAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DeleteAlertRuleDefault) Code() int { func (o *DeleteAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Delete][%d] DeleteAlertRule default %+v", o._statusCode, o.Payload) } - func (o *DeleteAlertRuleDefault) GetPayload() *DeleteAlertRuleDefaultBody { return o.Payload } func (o *DeleteAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteAlertRuleDefaultBody) // response payload @@ -121,6 +121,7 @@ DeleteAlertRuleBody delete alert rule body swagger:model DeleteAlertRuleBody */ type DeleteAlertRuleBody struct { + // Rule ID. RuleID string `json:"rule_id,omitempty"` } @@ -158,6 +159,7 @@ DeleteAlertRuleDefaultBody delete alert rule default body swagger:model DeleteAlertRuleDefaultBody */ type DeleteAlertRuleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *DeleteAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *DeleteAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *DeleteAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -262,6 +267,7 @@ DeleteAlertRuleDefaultBodyDetailsItems0 delete alert rule default body details i swagger:model DeleteAlertRuleDefaultBodyDetailsItems0 */ type DeleteAlertRuleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go b/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go index 324b22bb8c..b13ca0ae7b 100644 --- a/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go +++ b/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go @@ -60,6 +60,7 @@ ListAlertRulesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListAlertRulesParams struct { + // Body. Body ListAlertRulesBody @@ -129,6 +130,7 @@ func (o *ListAlertRulesParams) SetBody(body ListAlertRulesBody) { // WriteToRequest writes these params to a swagger request func (o *ListAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go b/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go index 1d63410d83..888fb5bb44 100644 --- a/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go +++ b/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go @@ -62,12 +62,12 @@ type ListAlertRulesOK struct { func (o *ListAlertRulesOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/List][%d] listAlertRulesOk %+v", 200, o.Payload) } - func (o *ListAlertRulesOK) GetPayload() *ListAlertRulesOKBody { return o.Payload } func (o *ListAlertRulesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAlertRulesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListAlertRulesDefault) Code() int { func (o *ListAlertRulesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/List][%d] ListAlertRules default %+v", o._statusCode, o.Payload) } - func (o *ListAlertRulesDefault) GetPayload() *ListAlertRulesDefaultBody { return o.Payload } func (o *ListAlertRulesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAlertRulesDefaultBody) // response payload @@ -125,6 +125,7 @@ ListAlertRulesBody list alert rules body swagger:model ListAlertRulesBody */ type ListAlertRulesBody struct { + // page params PageParams *ListAlertRulesParamsBodyPageParams `json:"page_params,omitempty"` } @@ -177,6 +178,7 @@ func (o *ListAlertRulesBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListAlertRulesBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { + if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -214,6 +216,7 @@ ListAlertRulesDefaultBody list alert rules default body swagger:model ListAlertRulesDefaultBody */ type ListAlertRulesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -279,7 +282,9 @@ func (o *ListAlertRulesDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListAlertRulesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -290,6 +295,7 @@ func (o *ListAlertRulesDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -318,6 +324,7 @@ ListAlertRulesDefaultBodyDetailsItems0 list alert rules default body details ite swagger:model ListAlertRulesDefaultBodyDetailsItems0 */ type ListAlertRulesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +362,7 @@ ListAlertRulesOKBody list alert rules OK body swagger:model ListAlertRulesOKBody */ type ListAlertRulesOKBody struct { + // rules Rules []*ListAlertRulesOKBodyRulesItems0 `json:"rules"` @@ -444,7 +452,9 @@ func (o *ListAlertRulesOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ListAlertRulesOKBody) contextValidateRules(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Rules); i++ { + if o.Rules[i] != nil { if err := o.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -455,12 +465,14 @@ func (o *ListAlertRulesOKBody) contextValidateRules(ctx context.Context, formats return err } } + } return nil } func (o *ListAlertRulesOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { + if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -498,6 +510,7 @@ ListAlertRulesOKBodyRulesItems0 Rule represents Alert Rule. swagger:model ListAlertRulesOKBodyRulesItems0 */ type ListAlertRulesOKBodyRulesItems0 struct { + // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -866,7 +879,9 @@ func (o *ListAlertRulesOKBodyRulesItems0) ContextValidate(ctx context.Context, f } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsDefinitions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ParamsDefinitions); i++ { + if o.ParamsDefinitions[i] != nil { if err := o.ParamsDefinitions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -877,13 +892,16 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsDefinitions(ctx c return err } } + } return nil } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsValues(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ParamsValues); i++ { + if o.ParamsValues[i] != nil { if err := o.ParamsValues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -894,13 +912,16 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsValues(ctx contex return err } } + } return nil } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Filters); i++ { + if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -911,13 +932,16 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateFilters(ctx context.Con return err } } + } return nil } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateChannels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Channels); i++ { + if o.Channels[i] != nil { if err := o.Channels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -928,6 +952,7 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateChannels(ctx context.Co return err } } + } return nil @@ -956,6 +981,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0 Channel represents a single Notifi swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0 */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0 struct { + // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -1107,6 +1133,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) ContextValidate(ctx cont } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { + if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1122,6 +1149,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateEmailConf } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { + if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1137,6 +1165,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidatePagerduty } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { + if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1152,6 +1181,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateSlackConf } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { + if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1189,6 +1219,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig EmailConfig represents swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1229,6 +1260,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig PagerDutyConfig rep swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1272,6 +1304,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig SlackConfig represents swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1312,6 +1345,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig WebhookConfig represe swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig struct { + // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1373,6 +1407,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig) ContextVali } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { + if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1410,6 +1445,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig HTTPConfig swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig struct { + // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -1501,6 +1537,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) C } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { + if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1516,6 +1553,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) c } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { + if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1553,6 +1591,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth Ba swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { + // username Username string `json:"username,omitempty"` @@ -1597,6 +1636,7 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig TL swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig struct { + // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` @@ -1661,6 +1701,7 @@ ListAlertRulesOKBodyRulesItems0FiltersItems0 Filter repsents a single filter con swagger:model ListAlertRulesOKBodyRulesItems0FiltersItems0 */ type ListAlertRulesOKBodyRulesItems0FiltersItems0 struct { + // FilterType represents filter matching type. // // - EQUAL: = @@ -1762,6 +1803,7 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 ParamDefinition represent swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -1993,6 +2035,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) ContextValidate } func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { + if o.Bool != nil { if err := o.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2008,6 +2051,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidate } func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { + if o.Float != nil { if err := o.Float.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2023,6 +2067,7 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidate } func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { + if o.String != nil { if err := o.String.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2060,6 +2105,7 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool BoolParamDefinition r swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool struct { + // BooleanFlag represent a command to set some boolean property to true, // to false, or avoid changing that property. // @@ -2157,6 +2203,7 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float FloatParamDefinition swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float struct { + // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2209,6 +2256,7 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String StringParamDefiniti swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String struct { + // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2249,6 +2297,7 @@ ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 ParamValue represents a single swagger:model ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 */ type ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2356,6 +2405,7 @@ ListAlertRulesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertRulesOKBodyTotals */ type ListAlertRulesOKBodyTotals struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -2396,6 +2446,7 @@ ListAlertRulesParamsBodyPageParams PageParams represents page request parameters swagger:model ListAlertRulesParamsBodyPageParams */ type ListAlertRulesParamsBodyPageParams struct { + // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go index 98c9657468..3632436df6 100644 --- a/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go @@ -60,6 +60,7 @@ ToggleAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ToggleAlertRuleParams struct { + // Body. Body ToggleAlertRuleBody @@ -129,6 +130,7 @@ func (o *ToggleAlertRuleParams) SetBody(body ToggleAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *ToggleAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go index afbd371436..e00f61fc71 100644 --- a/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go @@ -62,12 +62,12 @@ type ToggleAlertRuleOK struct { func (o *ToggleAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Toggle][%d] toggleAlertRuleOk %+v", 200, o.Payload) } - func (o *ToggleAlertRuleOK) GetPayload() interface{} { return o.Payload } func (o *ToggleAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *ToggleAlertRuleDefault) Code() int { func (o *ToggleAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Toggle][%d] ToggleAlertRule default %+v", o._statusCode, o.Payload) } - func (o *ToggleAlertRuleDefault) GetPayload() *ToggleAlertRuleDefaultBody { return o.Payload } func (o *ToggleAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ToggleAlertRuleDefaultBody) // response payload @@ -123,6 +123,7 @@ ToggleAlertRuleBody toggle alert rule body swagger:model ToggleAlertRuleBody */ type ToggleAlertRuleBody struct { + // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -223,6 +224,7 @@ ToggleAlertRuleDefaultBody toggle alert rule default body swagger:model ToggleAlertRuleDefaultBody */ type ToggleAlertRuleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -288,7 +290,9 @@ func (o *ToggleAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *ToggleAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -299,6 +303,7 @@ func (o *ToggleAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -327,6 +332,7 @@ ToggleAlertRuleDefaultBodyDetailsItems0 toggle alert rule default body details i swagger:model ToggleAlertRuleDefaultBodyDetailsItems0 */ type ToggleAlertRuleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go index 0e0b4d7bc6..770e3df238 100644 --- a/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go @@ -60,6 +60,7 @@ UpdateAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateAlertRuleParams struct { + // Body. Body UpdateAlertRuleBody @@ -129,6 +130,7 @@ func (o *UpdateAlertRuleParams) SetBody(body UpdateAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go index a4026d6252..d9950c60cd 100644 --- a/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go @@ -62,12 +62,12 @@ type UpdateAlertRuleOK struct { func (o *UpdateAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Update][%d] updateAlertRuleOk %+v", 200, o.Payload) } - func (o *UpdateAlertRuleOK) GetPayload() interface{} { return o.Payload } func (o *UpdateAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *UpdateAlertRuleDefault) Code() int { func (o *UpdateAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Update][%d] UpdateAlertRule default %+v", o._statusCode, o.Payload) } - func (o *UpdateAlertRuleDefault) GetPayload() *UpdateAlertRuleDefaultBody { return o.Payload } func (o *UpdateAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateAlertRuleDefaultBody) // response payload @@ -123,6 +123,7 @@ UpdateAlertRuleBody update alert rule body swagger:model UpdateAlertRuleBody */ type UpdateAlertRuleBody struct { + // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -308,7 +309,9 @@ func (o *UpdateAlertRuleBody) ContextValidate(ctx context.Context, formats strfm } func (o *UpdateAlertRuleBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Params); i++ { + if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -319,13 +322,16 @@ func (o *UpdateAlertRuleBody) contextValidateParams(ctx context.Context, formats return err } } + } return nil } func (o *UpdateAlertRuleBody) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Filters); i++ { + if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +342,7 @@ func (o *UpdateAlertRuleBody) contextValidateFilters(ctx context.Context, format return err } } + } return nil @@ -364,6 +371,7 @@ UpdateAlertRuleDefaultBody update alert rule default body swagger:model UpdateAlertRuleDefaultBody */ type UpdateAlertRuleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -429,7 +437,9 @@ func (o *UpdateAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *UpdateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -440,6 +450,7 @@ func (o *UpdateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -468,6 +479,7 @@ UpdateAlertRuleDefaultBodyDetailsItems0 update alert rule default body details i swagger:model UpdateAlertRuleDefaultBodyDetailsItems0 */ type UpdateAlertRuleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -505,6 +517,7 @@ UpdateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition swagger:model UpdateAlertRuleParamsBodyFiltersItems0 */ type UpdateAlertRuleParamsBodyFiltersItems0 struct { + // FilterType represents filter matching type. // // - EQUAL: = @@ -606,6 +619,7 @@ UpdateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parame swagger:model UpdateAlertRuleParamsBodyParamsItems0 */ type UpdateAlertRuleParamsBodyParamsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/ia/rules.pb.go b/api/managementpb/ia/rules.pb.go index 3788f388ba..23bf82a6b7 100644 --- a/api/managementpb/ia/rules.pb.go +++ b/api/managementpb/ia/rules.pb.go @@ -7,18 +7,16 @@ package iav1beta1 import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" + managementpb "github.com/percona/pmm/api/managementpb" + alerting "github.com/percona/pmm/api/managementpb/alerting" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - - managementpb "github.com/percona/pmm/api/managementpb" - alerting "github.com/percona/pmm/api/managementpb/alerting" + reflect "reflect" + sync "sync" ) const ( @@ -1373,41 +1371,38 @@ func file_managementpb_ia_rules_proto_rawDescGZIP() []byte { return file_managementpb_ia_rules_proto_rawDescData } -var ( - file_managementpb_ia_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_ia_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 18) - file_managementpb_ia_rules_proto_goTypes = []interface{}{ - (FilterType)(0), // 0: ia.v1beta1.FilterType - (*Filter)(nil), // 1: ia.v1beta1.Filter - (*ParamValue)(nil), // 2: ia.v1beta1.ParamValue - (*Rule)(nil), // 3: ia.v1beta1.Rule - (*ListAlertRulesRequest)(nil), // 4: ia.v1beta1.ListAlertRulesRequest - (*ListAlertRulesResponse)(nil), // 5: ia.v1beta1.ListAlertRulesResponse - (*CreateAlertRuleRequest)(nil), // 6: ia.v1beta1.CreateAlertRuleRequest - (*CreateAlertRuleResponse)(nil), // 7: ia.v1beta1.CreateAlertRuleResponse - (*UpdateAlertRuleRequest)(nil), // 8: ia.v1beta1.UpdateAlertRuleRequest - (*UpdateAlertRuleResponse)(nil), // 9: ia.v1beta1.UpdateAlertRuleResponse - (*ToggleAlertRuleRequest)(nil), // 10: ia.v1beta1.ToggleAlertRuleRequest - (*ToggleAlertRuleResponse)(nil), // 11: ia.v1beta1.ToggleAlertRuleResponse - (*DeleteAlertRuleRequest)(nil), // 12: ia.v1beta1.DeleteAlertRuleRequest - (*DeleteAlertRuleResponse)(nil), // 13: ia.v1beta1.DeleteAlertRuleResponse - nil, // 14: ia.v1beta1.Rule.CustomLabelsEntry - nil, // 15: ia.v1beta1.Rule.LabelsEntry - nil, // 16: ia.v1beta1.Rule.AnnotationsEntry - nil, // 17: ia.v1beta1.CreateAlertRuleRequest.CustomLabelsEntry - nil, // 18: ia.v1beta1.UpdateAlertRuleRequest.CustomLabelsEntry - (alerting.ParamType)(0), // 19: alerting.v1.ParamType - (*alerting.ParamDefinition)(nil), // 20: alerting.v1.ParamDefinition - (*durationpb.Duration)(nil), // 21: google.protobuf.Duration - (managementpb.Severity)(0), // 22: management.Severity - (*Channel)(nil), // 23: ia.v1beta1.Channel - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp - (*managementpb.PageParams)(nil), // 25: management.PageParams - (*managementpb.PageTotals)(nil), // 26: management.PageTotals - (managementpb.BooleanFlag)(0), // 27: managementpb.BooleanFlag - } -) - +var file_managementpb_ia_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_ia_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_managementpb_ia_rules_proto_goTypes = []interface{}{ + (FilterType)(0), // 0: ia.v1beta1.FilterType + (*Filter)(nil), // 1: ia.v1beta1.Filter + (*ParamValue)(nil), // 2: ia.v1beta1.ParamValue + (*Rule)(nil), // 3: ia.v1beta1.Rule + (*ListAlertRulesRequest)(nil), // 4: ia.v1beta1.ListAlertRulesRequest + (*ListAlertRulesResponse)(nil), // 5: ia.v1beta1.ListAlertRulesResponse + (*CreateAlertRuleRequest)(nil), // 6: ia.v1beta1.CreateAlertRuleRequest + (*CreateAlertRuleResponse)(nil), // 7: ia.v1beta1.CreateAlertRuleResponse + (*UpdateAlertRuleRequest)(nil), // 8: ia.v1beta1.UpdateAlertRuleRequest + (*UpdateAlertRuleResponse)(nil), // 9: ia.v1beta1.UpdateAlertRuleResponse + (*ToggleAlertRuleRequest)(nil), // 10: ia.v1beta1.ToggleAlertRuleRequest + (*ToggleAlertRuleResponse)(nil), // 11: ia.v1beta1.ToggleAlertRuleResponse + (*DeleteAlertRuleRequest)(nil), // 12: ia.v1beta1.DeleteAlertRuleRequest + (*DeleteAlertRuleResponse)(nil), // 13: ia.v1beta1.DeleteAlertRuleResponse + nil, // 14: ia.v1beta1.Rule.CustomLabelsEntry + nil, // 15: ia.v1beta1.Rule.LabelsEntry + nil, // 16: ia.v1beta1.Rule.AnnotationsEntry + nil, // 17: ia.v1beta1.CreateAlertRuleRequest.CustomLabelsEntry + nil, // 18: ia.v1beta1.UpdateAlertRuleRequest.CustomLabelsEntry + (alerting.ParamType)(0), // 19: alerting.v1.ParamType + (*alerting.ParamDefinition)(nil), // 20: alerting.v1.ParamDefinition + (*durationpb.Duration)(nil), // 21: google.protobuf.Duration + (managementpb.Severity)(0), // 22: management.Severity + (*Channel)(nil), // 23: ia.v1beta1.Channel + (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*managementpb.PageParams)(nil), // 25: management.PageParams + (*managementpb.PageTotals)(nil), // 26: management.PageTotals + (managementpb.BooleanFlag)(0), // 27: managementpb.BooleanFlag +} var file_managementpb_ia_rules_proto_depIdxs = []int32{ 0, // 0: ia.v1beta1.Filter.type:type_name -> ia.v1beta1.FilterType 19, // 1: ia.v1beta1.ParamValue.type:type_name -> alerting.v1.ParamType diff --git a/api/managementpb/ia/rules.pb.gw.go b/api/managementpb/ia/rules.pb.gw.go index f1189e3a26..1757d16a27 100644 --- a/api/managementpb/ia/rules.pb.gw.go +++ b/api/managementpb/ia/rules.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListAlertRulesRequest @@ -47,6 +45,7 @@ func request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.ListAlertRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime msg, err := server.ListAlertRules(ctx, &protoReq) return msg, metadata, err + } func request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.CreateAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.CreateAlertRule(ctx, &protoReq) return msg, metadata, err + } func request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.UpdateAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.UpdateAlertRule(ctx, &protoReq) return msg, metadata, err + } func request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ToggleAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.ToggleAlertRule(ctx, &protoReq) return msg, metadata, err + } func request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.DeleteAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.DeleteAlertRule(ctx, &protoReq) return msg, metadata, err + } // RegisterRulesHandlerServer registers the http handlers for service Rules to "mux". @@ -198,6 +206,7 @@ func local_request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtim // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRulesHandlerFromEndpoint instead. func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RulesServer) error { + mux.Handle("POST", pattern_Rules_ListAlertRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -220,6 +229,7 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_ListAlertRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_CreateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -244,6 +254,7 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_CreateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_UpdateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -268,6 +279,7 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_UpdateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_ToggleAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -292,6 +304,7 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_ToggleAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_DeleteAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -316,6 +329,7 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_DeleteAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -358,6 +372,7 @@ func RegisterRulesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "RulesClient" to call the correct interceptors. func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RulesClient) error { + mux.Handle("POST", pattern_Rules_ListAlertRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -377,6 +392,7 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_ListAlertRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_CreateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -398,6 +414,7 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_CreateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_UpdateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -419,6 +436,7 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_UpdateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_ToggleAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -440,6 +458,7 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_ToggleAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Rules_DeleteAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -461,6 +480,7 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_DeleteAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/ia/rules.validator.pb.go b/api/managementpb/ia/rules.validator.pb.go index 468097fe11..bda1568d8a 100644 --- a/api/managementpb/ia/rules.validator.pb.go +++ b/api/managementpb/ia/rules.validator.pb.go @@ -6,36 +6,30 @@ package iav1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" + _ "google.golang.org/protobuf/types/known/timestamppb" + _ "github.com/percona/pmm/api/managementpb/alerting" + _ "github.com/percona/pmm/api/managementpb" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" - _ "google.golang.org/protobuf/types/known/timestamppb" - - _ "github.com/percona/pmm/api/managementpb" - _ "github.com/percona/pmm/api/managementpb/alerting" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Filter) Validate() error { return nil } - func (this *ParamValue) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) } return nil } - func (this *Rule) Validate() error { for _, item := range this.ParamsDefinitions { if item != nil { @@ -85,7 +79,6 @@ func (this *Rule) Validate() error { } return nil } - func (this *ListAlertRulesRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -94,7 +87,6 @@ func (this *ListAlertRulesRequest) Validate() error { } return nil } - func (this *ListAlertRulesResponse) Validate() error { for _, item := range this.Rules { if item != nil { @@ -110,7 +102,6 @@ func (this *ListAlertRulesResponse) Validate() error { } return nil } - func (this *CreateAlertRuleRequest) Validate() error { for _, item := range this.Params { if item != nil { @@ -134,11 +125,9 @@ func (this *CreateAlertRuleRequest) Validate() error { } return nil } - func (this *CreateAlertRuleResponse) Validate() error { return nil } - func (this *UpdateAlertRuleRequest) Validate() error { if this.RuleId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RuleId", fmt.Errorf(`value '%v' must not be an empty string`, this.RuleId)) @@ -165,29 +154,24 @@ func (this *UpdateAlertRuleRequest) Validate() error { } return nil } - func (this *UpdateAlertRuleResponse) Validate() error { return nil } - func (this *ToggleAlertRuleRequest) Validate() error { if this.RuleId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RuleId", fmt.Errorf(`value '%v' must not be an empty string`, this.RuleId)) } return nil } - func (this *ToggleAlertRuleResponse) Validate() error { return nil } - func (this *DeleteAlertRuleRequest) Validate() error { if this.RuleId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RuleId", fmt.Errorf(`value '%v' must not be an empty string`, this.RuleId)) } return nil } - func (this *DeleteAlertRuleResponse) Validate() error { return nil } diff --git a/api/managementpb/ia/rules_grpc.pb.go b/api/managementpb/ia/rules_grpc.pb.go index 57d44eaec4..908d667135 100644 --- a/api/managementpb/ia/rules_grpc.pb.go +++ b/api/managementpb/ia/rules_grpc.pb.go @@ -8,7 +8,6 @@ package iav1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -106,24 +105,21 @@ type RulesServer interface { } // UnimplementedRulesServer must be embedded to have forward compatible implementations. -type UnimplementedRulesServer struct{} +type UnimplementedRulesServer struct { +} func (UnimplementedRulesServer) ListAlertRules(context.Context, *ListAlertRulesRequest) (*ListAlertRulesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAlertRules not implemented") } - func (UnimplementedRulesServer) CreateAlertRule(context.Context, *CreateAlertRuleRequest) (*CreateAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAlertRule not implemented") } - func (UnimplementedRulesServer) UpdateAlertRule(context.Context, *UpdateAlertRuleRequest) (*UpdateAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAlertRule not implemented") } - func (UnimplementedRulesServer) ToggleAlertRule(context.Context, *ToggleAlertRuleRequest) (*ToggleAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ToggleAlertRule not implemented") } - func (UnimplementedRulesServer) DeleteAlertRule(context.Context, *DeleteAlertRuleRequest) (*DeleteAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAlertRule not implemented") } diff --git a/api/managementpb/ia/status.pb.go b/api/managementpb/ia/status.pb.go index 96211b7c3a..1d3709b53c 100644 --- a/api/managementpb/ia/status.pb.go +++ b/api/managementpb/ia/status.pb.go @@ -7,11 +7,10 @@ package iav1beta1 import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -117,13 +116,10 @@ func file_managementpb_ia_status_proto_rawDescGZIP() []byte { return file_managementpb_ia_status_proto_rawDescData } -var ( - file_managementpb_ia_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_ia_status_proto_goTypes = []interface{}{ - (Status)(0), // 0: ia.v1beta1.Status - } -) - +var file_managementpb_ia_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_ia_status_proto_goTypes = []interface{}{ + (Status)(0), // 0: ia.v1beta1.Status +} var file_managementpb_ia_status_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/ia/status.validator.pb.go b/api/managementpb/ia/status.validator.pb.go index 5fa248f4e8..de35f5e6fa 100644 --- a/api/managementpb/ia/status.validator.pb.go +++ b/api/managementpb/ia/status.validator.pb.go @@ -6,13 +6,10 @@ package iav1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/managementpb/json/client/actions/cancel_action_parameters.go b/api/managementpb/json/client/actions/cancel_action_parameters.go index f89e277a27..64a13fef98 100644 --- a/api/managementpb/json/client/actions/cancel_action_parameters.go +++ b/api/managementpb/json/client/actions/cancel_action_parameters.go @@ -60,6 +60,7 @@ CancelActionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CancelActionParams struct { + // Body. Body CancelActionBody @@ -129,6 +130,7 @@ func (o *CancelActionParams) SetBody(body CancelActionBody) { // WriteToRequest writes these params to a swagger request func (o *CancelActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/cancel_action_responses.go b/api/managementpb/json/client/actions/cancel_action_responses.go index 0816b2f0b2..f336f42d75 100644 --- a/api/managementpb/json/client/actions/cancel_action_responses.go +++ b/api/managementpb/json/client/actions/cancel_action_responses.go @@ -60,12 +60,12 @@ type CancelActionOK struct { func (o *CancelActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Cancel][%d] cancelActionOk %+v", 200, o.Payload) } - func (o *CancelActionOK) GetPayload() interface{} { return o.Payload } func (o *CancelActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CancelActionDefault) Code() int { func (o *CancelActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Cancel][%d] CancelAction default %+v", o._statusCode, o.Payload) } - func (o *CancelActionDefault) GetPayload() *CancelActionDefaultBody { return o.Payload } func (o *CancelActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CancelActionDefaultBody) // response payload @@ -121,6 +121,7 @@ CancelActionBody cancel action body swagger:model CancelActionBody */ type CancelActionBody struct { + // Unique Action ID. Required. ActionID string `json:"action_id,omitempty"` } @@ -158,6 +159,7 @@ CancelActionDefaultBody cancel action default body swagger:model CancelActionDefaultBody */ type CancelActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *CancelActionDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *CancelActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *CancelActionDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -262,6 +267,7 @@ CancelActionDefaultBodyDetailsItems0 cancel action default body details items0 swagger:model CancelActionDefaultBodyDetailsItems0 */ type CancelActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/actions/get_action_parameters.go b/api/managementpb/json/client/actions/get_action_parameters.go index b3a87a7fcb..68bc7cd52b 100644 --- a/api/managementpb/json/client/actions/get_action_parameters.go +++ b/api/managementpb/json/client/actions/get_action_parameters.go @@ -60,6 +60,7 @@ GetActionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetActionParams struct { + // Body. Body GetActionBody @@ -129,6 +130,7 @@ func (o *GetActionParams) SetBody(body GetActionBody) { // WriteToRequest writes these params to a swagger request func (o *GetActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/get_action_responses.go b/api/managementpb/json/client/actions/get_action_responses.go index f8819af27a..11e9b642be 100644 --- a/api/managementpb/json/client/actions/get_action_responses.go +++ b/api/managementpb/json/client/actions/get_action_responses.go @@ -60,12 +60,12 @@ type GetActionOK struct { func (o *GetActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Get][%d] getActionOk %+v", 200, o.Payload) } - func (o *GetActionOK) GetPayload() *GetActionOKBody { return o.Payload } func (o *GetActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetActionDefault) Code() int { func (o *GetActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Get][%d] GetAction default %+v", o._statusCode, o.Payload) } - func (o *GetActionDefault) GetPayload() *GetActionDefaultBody { return o.Payload } func (o *GetActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetActionDefaultBody) // response payload @@ -123,6 +123,7 @@ GetActionBody get action body swagger:model GetActionBody */ type GetActionBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` } @@ -160,6 +161,7 @@ GetActionDefaultBody get action default body swagger:model GetActionDefaultBody */ type GetActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *GetActionDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *GetActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *GetActionDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -264,6 +269,7 @@ GetActionDefaultBodyDetailsItems0 get action default body details items0 swagger:model GetActionDefaultBodyDetailsItems0 */ type GetActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ GetActionOKBody get action OK body swagger:model GetActionOKBody */ type GetActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go b/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go index dfe69462d0..645603cb1d 100644 --- a/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go +++ b/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go @@ -60,6 +60,7 @@ StartMongoDBExplainActionParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type StartMongoDBExplainActionParams struct { + // Body. Body StartMongoDBExplainActionBody @@ -129,6 +130,7 @@ func (o *StartMongoDBExplainActionParams) SetBody(body StartMongoDBExplainAction // WriteToRequest writes these params to a swagger request func (o *StartMongoDBExplainActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go b/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go index 68531bf73c..7492987ad8 100644 --- a/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go +++ b/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go @@ -60,12 +60,12 @@ type StartMongoDBExplainActionOK struct { func (o *StartMongoDBExplainActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMongoDBExplain][%d] startMongoDbExplainActionOk %+v", 200, o.Payload) } - func (o *StartMongoDBExplainActionOK) GetPayload() *StartMongoDBExplainActionOKBody { return o.Payload } func (o *StartMongoDBExplainActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMongoDBExplainActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMongoDBExplainActionDefault) Code() int { func (o *StartMongoDBExplainActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMongoDBExplain][%d] StartMongoDBExplainAction default %+v", o._statusCode, o.Payload) } - func (o *StartMongoDBExplainActionDefault) GetPayload() *StartMongoDBExplainActionDefaultBody { return o.Payload } func (o *StartMongoDBExplainActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMongoDBExplainActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMongoDBExplainActionBody start mongo DB explain action body swagger:model StartMongoDBExplainActionBody */ type StartMongoDBExplainActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -166,6 +167,7 @@ StartMongoDBExplainActionDefaultBody start mongo DB explain action default body swagger:model StartMongoDBExplainActionDefaultBody */ type StartMongoDBExplainActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -231,7 +233,9 @@ func (o *StartMongoDBExplainActionDefaultBody) ContextValidate(ctx context.Conte } func (o *StartMongoDBExplainActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -242,6 +246,7 @@ func (o *StartMongoDBExplainActionDefaultBody) contextValidateDetails(ctx contex return err } } + } return nil @@ -270,6 +275,7 @@ StartMongoDBExplainActionDefaultBodyDetailsItems0 start mongo DB explain action swagger:model StartMongoDBExplainActionDefaultBodyDetailsItems0 */ type StartMongoDBExplainActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -307,6 +313,7 @@ StartMongoDBExplainActionOKBody start mongo DB explain action OK body swagger:model StartMongoDBExplainActionOKBody */ type StartMongoDBExplainActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go index c6046f432b..53a5e5575b 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go @@ -60,6 +60,7 @@ StartMySQLExplainActionParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type StartMySQLExplainActionParams struct { + // Body. Body StartMySQLExplainActionBody @@ -129,6 +130,7 @@ func (o *StartMySQLExplainActionParams) SetBody(body StartMySQLExplainActionBody // WriteToRequest writes these params to a swagger request func (o *StartMySQLExplainActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go index 3a9b33a8a5..9019d17d81 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLExplainActionOK struct { func (o *StartMySQLExplainActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplain][%d] startMySqlExplainActionOk %+v", 200, o.Payload) } - func (o *StartMySQLExplainActionOK) GetPayload() *StartMySQLExplainActionOKBody { return o.Payload } func (o *StartMySQLExplainActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLExplainActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLExplainActionDefault) Code() int { func (o *StartMySQLExplainActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplain][%d] StartMySQLExplainAction default %+v", o._statusCode, o.Payload) } - func (o *StartMySQLExplainActionDefault) GetPayload() *StartMySQLExplainActionDefaultBody { return o.Payload } func (o *StartMySQLExplainActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLExplainActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMySQLExplainActionBody start my SQL explain action body swagger:model StartMySQLExplainActionBody */ type StartMySQLExplainActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartMySQLExplainActionDefaultBody start my SQL explain action default body swagger:model StartMySQLExplainActionDefaultBody */ type StartMySQLExplainActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartMySQLExplainActionDefaultBody) ContextValidate(ctx context.Context } func (o *StartMySQLExplainActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartMySQLExplainActionDefaultBody) contextValidateDetails(ctx context. return err } } + } return nil @@ -273,6 +278,7 @@ StartMySQLExplainActionDefaultBodyDetailsItems0 start my SQL explain action defa swagger:model StartMySQLExplainActionDefaultBodyDetailsItems0 */ type StartMySQLExplainActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartMySQLExplainActionOKBody start my SQL explain action OK body swagger:model StartMySQLExplainActionOKBody */ type StartMySQLExplainActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go index 03d9f224b7..dff9e0b6eb 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go @@ -60,6 +60,7 @@ StartMySQLExplainJSONActionParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type StartMySQLExplainJSONActionParams struct { + // Body. Body StartMySQLExplainJSONActionBody @@ -129,6 +130,7 @@ func (o *StartMySQLExplainJSONActionParams) SetBody(body StartMySQLExplainJSONAc // WriteToRequest writes these params to a swagger request func (o *StartMySQLExplainJSONActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go index 273216b710..abcdf13f50 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLExplainJSONActionOK struct { func (o *StartMySQLExplainJSONActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainJSON][%d] startMySqlExplainJsonActionOk %+v", 200, o.Payload) } - func (o *StartMySQLExplainJSONActionOK) GetPayload() *StartMySQLExplainJSONActionOKBody { return o.Payload } func (o *StartMySQLExplainJSONActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLExplainJSONActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLExplainJSONActionDefault) Code() int { func (o *StartMySQLExplainJSONActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainJSON][%d] StartMySQLExplainJSONAction default %+v", o._statusCode, o.Payload) } - func (o *StartMySQLExplainJSONActionDefault) GetPayload() *StartMySQLExplainJSONActionDefaultBody { return o.Payload } func (o *StartMySQLExplainJSONActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLExplainJSONActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMySQLExplainJSONActionBody start my SQL explain JSON action body swagger:model StartMySQLExplainJSONActionBody */ type StartMySQLExplainJSONActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartMySQLExplainJSONActionDefaultBody start my SQL explain JSON action default swagger:model StartMySQLExplainJSONActionDefaultBody */ type StartMySQLExplainJSONActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartMySQLExplainJSONActionDefaultBody) ContextValidate(ctx context.Con } func (o *StartMySQLExplainJSONActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartMySQLExplainJSONActionDefaultBody) contextValidateDetails(ctx cont return err } } + } return nil @@ -273,6 +278,7 @@ StartMySQLExplainJSONActionDefaultBodyDetailsItems0 start my SQL explain JSON ac swagger:model StartMySQLExplainJSONActionDefaultBodyDetailsItems0 */ type StartMySQLExplainJSONActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartMySQLExplainJSONActionOKBody start my SQL explain JSON action OK body swagger:model StartMySQLExplainJSONActionOKBody */ type StartMySQLExplainJSONActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go index d182205d2b..d1ee5323aa 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go @@ -60,6 +60,7 @@ StartMySQLExplainTraditionalJSONActionParams contains all the parameters to send Typically these are written to a http.Request. */ type StartMySQLExplainTraditionalJSONActionParams struct { + // Body. Body StartMySQLExplainTraditionalJSONActionBody @@ -129,6 +130,7 @@ func (o *StartMySQLExplainTraditionalJSONActionParams) SetBody(body StartMySQLEx // WriteToRequest writes these params to a swagger request func (o *StartMySQLExplainTraditionalJSONActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go index ebea881b94..e58479d1f8 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLExplainTraditionalJSONActionOK struct { func (o *StartMySQLExplainTraditionalJSONActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainTraditionalJSON][%d] startMySqlExplainTraditionalJsonActionOk %+v", 200, o.Payload) } - func (o *StartMySQLExplainTraditionalJSONActionOK) GetPayload() *StartMySQLExplainTraditionalJSONActionOKBody { return o.Payload } func (o *StartMySQLExplainTraditionalJSONActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLExplainTraditionalJSONActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLExplainTraditionalJSONActionDefault) Code() int { func (o *StartMySQLExplainTraditionalJSONActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainTraditionalJSON][%d] StartMySQLExplainTraditionalJSONAction default %+v", o._statusCode, o.Payload) } - func (o *StartMySQLExplainTraditionalJSONActionDefault) GetPayload() *StartMySQLExplainTraditionalJSONActionDefaultBody { return o.Payload } func (o *StartMySQLExplainTraditionalJSONActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLExplainTraditionalJSONActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMySQLExplainTraditionalJSONActionBody start my SQL explain traditional JSON swagger:model StartMySQLExplainTraditionalJSONActionBody */ type StartMySQLExplainTraditionalJSONActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartMySQLExplainTraditionalJSONActionDefaultBody start my SQL explain tradition swagger:model StartMySQLExplainTraditionalJSONActionDefaultBody */ type StartMySQLExplainTraditionalJSONActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) ContextValidate(ctx } func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) contextValidateDetai return err } } + } return nil @@ -273,6 +278,7 @@ StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 start my SQL expl swagger:model StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 */ type StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartMySQLExplainTraditionalJSONActionOKBody start my SQL explain traditional JS swagger:model StartMySQLExplainTraditionalJSONActionOKBody */ type StartMySQLExplainTraditionalJSONActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go index cdb30a1274..3925d5e0b1 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go @@ -60,6 +60,7 @@ StartMySQLShowCreateTableActionParams contains all the parameters to send to the Typically these are written to a http.Request. */ type StartMySQLShowCreateTableActionParams struct { + // Body. Body StartMySQLShowCreateTableActionBody @@ -129,6 +130,7 @@ func (o *StartMySQLShowCreateTableActionParams) SetBody(body StartMySQLShowCreat // WriteToRequest writes these params to a swagger request func (o *StartMySQLShowCreateTableActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go index 3115a5efbf..da0e9f818b 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLShowCreateTableActionOK struct { func (o *StartMySQLShowCreateTableActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowCreateTable][%d] startMySqlShowCreateTableActionOk %+v", 200, o.Payload) } - func (o *StartMySQLShowCreateTableActionOK) GetPayload() *StartMySQLShowCreateTableActionOKBody { return o.Payload } func (o *StartMySQLShowCreateTableActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLShowCreateTableActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLShowCreateTableActionDefault) Code() int { func (o *StartMySQLShowCreateTableActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowCreateTable][%d] StartMySQLShowCreateTableAction default %+v", o._statusCode, o.Payload) } - func (o *StartMySQLShowCreateTableActionDefault) GetPayload() *StartMySQLShowCreateTableActionDefaultBody { return o.Payload } func (o *StartMySQLShowCreateTableActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLShowCreateTableActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMySQLShowCreateTableActionBody start my SQL show create table action body swagger:model StartMySQLShowCreateTableActionBody */ type StartMySQLShowCreateTableActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartMySQLShowCreateTableActionDefaultBody start my SQL show create table action swagger:model StartMySQLShowCreateTableActionDefaultBody */ type StartMySQLShowCreateTableActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartMySQLShowCreateTableActionDefaultBody) ContextValidate(ctx context } func (o *StartMySQLShowCreateTableActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartMySQLShowCreateTableActionDefaultBody) contextValidateDetails(ctx return err } } + } return nil @@ -273,6 +278,7 @@ StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 start my SQL show create swagger:model StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 */ type StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartMySQLShowCreateTableActionOKBody start my SQL show create table action OK b swagger:model StartMySQLShowCreateTableActionOKBody */ type StartMySQLShowCreateTableActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go index a21d88fb3a..084c7e3303 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go @@ -60,6 +60,7 @@ StartMySQLShowIndexActionParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type StartMySQLShowIndexActionParams struct { + // Body. Body StartMySQLShowIndexActionBody @@ -129,6 +130,7 @@ func (o *StartMySQLShowIndexActionParams) SetBody(body StartMySQLShowIndexAction // WriteToRequest writes these params to a swagger request func (o *StartMySQLShowIndexActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go index b82022dd6d..4ab5d4e157 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLShowIndexActionOK struct { func (o *StartMySQLShowIndexActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowIndex][%d] startMySqlShowIndexActionOk %+v", 200, o.Payload) } - func (o *StartMySQLShowIndexActionOK) GetPayload() *StartMySQLShowIndexActionOKBody { return o.Payload } func (o *StartMySQLShowIndexActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLShowIndexActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLShowIndexActionDefault) Code() int { func (o *StartMySQLShowIndexActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowIndex][%d] StartMySQLShowIndexAction default %+v", o._statusCode, o.Payload) } - func (o *StartMySQLShowIndexActionDefault) GetPayload() *StartMySQLShowIndexActionDefaultBody { return o.Payload } func (o *StartMySQLShowIndexActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLShowIndexActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMySQLShowIndexActionBody start my SQL show index action body swagger:model StartMySQLShowIndexActionBody */ type StartMySQLShowIndexActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartMySQLShowIndexActionDefaultBody start my SQL show index action default body swagger:model StartMySQLShowIndexActionDefaultBody */ type StartMySQLShowIndexActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartMySQLShowIndexActionDefaultBody) ContextValidate(ctx context.Conte } func (o *StartMySQLShowIndexActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartMySQLShowIndexActionDefaultBody) contextValidateDetails(ctx contex return err } } + } return nil @@ -273,6 +278,7 @@ StartMySQLShowIndexActionDefaultBodyDetailsItems0 start my SQL show index action swagger:model StartMySQLShowIndexActionDefaultBodyDetailsItems0 */ type StartMySQLShowIndexActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartMySQLShowIndexActionOKBody start my SQL show index action OK body swagger:model StartMySQLShowIndexActionOKBody */ type StartMySQLShowIndexActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go index 9aca846274..fe206c8b70 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go @@ -60,6 +60,7 @@ StartMySQLShowTableStatusActionParams contains all the parameters to send to the Typically these are written to a http.Request. */ type StartMySQLShowTableStatusActionParams struct { + // Body. Body StartMySQLShowTableStatusActionBody @@ -129,6 +130,7 @@ func (o *StartMySQLShowTableStatusActionParams) SetBody(body StartMySQLShowTable // WriteToRequest writes these params to a swagger request func (o *StartMySQLShowTableStatusActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go index d3403dc057..ce045b702e 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLShowTableStatusActionOK struct { func (o *StartMySQLShowTableStatusActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowTableStatus][%d] startMySqlShowTableStatusActionOk %+v", 200, o.Payload) } - func (o *StartMySQLShowTableStatusActionOK) GetPayload() *StartMySQLShowTableStatusActionOKBody { return o.Payload } func (o *StartMySQLShowTableStatusActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLShowTableStatusActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLShowTableStatusActionDefault) Code() int { func (o *StartMySQLShowTableStatusActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowTableStatus][%d] StartMySQLShowTableStatusAction default %+v", o._statusCode, o.Payload) } - func (o *StartMySQLShowTableStatusActionDefault) GetPayload() *StartMySQLShowTableStatusActionDefaultBody { return o.Payload } func (o *StartMySQLShowTableStatusActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartMySQLShowTableStatusActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartMySQLShowTableStatusActionBody start my SQL show table status action body swagger:model StartMySQLShowTableStatusActionBody */ type StartMySQLShowTableStatusActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartMySQLShowTableStatusActionDefaultBody start my SQL show table status action swagger:model StartMySQLShowTableStatusActionDefaultBody */ type StartMySQLShowTableStatusActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartMySQLShowTableStatusActionDefaultBody) ContextValidate(ctx context } func (o *StartMySQLShowTableStatusActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartMySQLShowTableStatusActionDefaultBody) contextValidateDetails(ctx return err } } + } return nil @@ -273,6 +278,7 @@ StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 start my SQL show table swagger:model StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 */ type StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartMySQLShowTableStatusActionOKBody start my SQL show table status action OK b swagger:model StartMySQLShowTableStatusActionOKBody */ type StartMySQLShowTableStatusActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go index bd14d9a514..5245d3004d 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go @@ -60,6 +60,7 @@ StartPostgreSQLShowCreateTableActionParams contains all the parameters to send t Typically these are written to a http.Request. */ type StartPostgreSQLShowCreateTableActionParams struct { + // Body. Body StartPostgreSQLShowCreateTableActionBody @@ -129,6 +130,7 @@ func (o *StartPostgreSQLShowCreateTableActionParams) SetBody(body StartPostgreSQ // WriteToRequest writes these params to a swagger request func (o *StartPostgreSQLShowCreateTableActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go index 97260190f8..3fb66062e4 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go @@ -60,12 +60,12 @@ type StartPostgreSQLShowCreateTableActionOK struct { func (o *StartPostgreSQLShowCreateTableActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowCreateTable][%d] startPostgreSqlShowCreateTableActionOk %+v", 200, o.Payload) } - func (o *StartPostgreSQLShowCreateTableActionOK) GetPayload() *StartPostgreSQLShowCreateTableActionOKBody { return o.Payload } func (o *StartPostgreSQLShowCreateTableActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPostgreSQLShowCreateTableActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPostgreSQLShowCreateTableActionDefault) Code() int { func (o *StartPostgreSQLShowCreateTableActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowCreateTable][%d] StartPostgreSQLShowCreateTableAction default %+v", o._statusCode, o.Payload) } - func (o *StartPostgreSQLShowCreateTableActionDefault) GetPayload() *StartPostgreSQLShowCreateTableActionDefaultBody { return o.Payload } func (o *StartPostgreSQLShowCreateTableActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPostgreSQLShowCreateTableActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartPostgreSQLShowCreateTableActionBody start postgre SQL show create table act swagger:model StartPostgreSQLShowCreateTableActionBody */ type StartPostgreSQLShowCreateTableActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartPostgreSQLShowCreateTableActionDefaultBody start postgre SQL show create ta swagger:model StartPostgreSQLShowCreateTableActionDefaultBody */ type StartPostgreSQLShowCreateTableActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartPostgreSQLShowCreateTableActionDefaultBody) ContextValidate(ctx co } func (o *StartPostgreSQLShowCreateTableActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartPostgreSQLShowCreateTableActionDefaultBody) contextValidateDetails return err } } + } return nil @@ -273,6 +278,7 @@ StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 start postgre SQL s swagger:model StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 */ type StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartPostgreSQLShowCreateTableActionOKBody start postgre SQL show create table a swagger:model StartPostgreSQLShowCreateTableActionOKBody */ type StartPostgreSQLShowCreateTableActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go index c124c400d3..a856b6602c 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go @@ -60,6 +60,7 @@ StartPostgreSQLShowIndexActionParams contains all the parameters to send to the Typically these are written to a http.Request. */ type StartPostgreSQLShowIndexActionParams struct { + // Body. Body StartPostgreSQLShowIndexActionBody @@ -129,6 +130,7 @@ func (o *StartPostgreSQLShowIndexActionParams) SetBody(body StartPostgreSQLShowI // WriteToRequest writes these params to a swagger request func (o *StartPostgreSQLShowIndexActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go index 767c1aa85a..b971a606d0 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go @@ -60,12 +60,12 @@ type StartPostgreSQLShowIndexActionOK struct { func (o *StartPostgreSQLShowIndexActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowIndex][%d] startPostgreSqlShowIndexActionOk %+v", 200, o.Payload) } - func (o *StartPostgreSQLShowIndexActionOK) GetPayload() *StartPostgreSQLShowIndexActionOKBody { return o.Payload } func (o *StartPostgreSQLShowIndexActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPostgreSQLShowIndexActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPostgreSQLShowIndexActionDefault) Code() int { func (o *StartPostgreSQLShowIndexActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowIndex][%d] StartPostgreSQLShowIndexAction default %+v", o._statusCode, o.Payload) } - func (o *StartPostgreSQLShowIndexActionDefault) GetPayload() *StartPostgreSQLShowIndexActionDefaultBody { return o.Payload } func (o *StartPostgreSQLShowIndexActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPostgreSQLShowIndexActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartPostgreSQLShowIndexActionBody start postgre SQL show index action body swagger:model StartPostgreSQLShowIndexActionBody */ type StartPostgreSQLShowIndexActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -169,6 +170,7 @@ StartPostgreSQLShowIndexActionDefaultBody start postgre SQL show index action de swagger:model StartPostgreSQLShowIndexActionDefaultBody */ type StartPostgreSQLShowIndexActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -234,7 +236,9 @@ func (o *StartPostgreSQLShowIndexActionDefaultBody) ContextValidate(ctx context. } func (o *StartPostgreSQLShowIndexActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +249,7 @@ func (o *StartPostgreSQLShowIndexActionDefaultBody) contextValidateDetails(ctx c return err } } + } return nil @@ -273,6 +278,7 @@ StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 start postgre SQL show in swagger:model StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 */ type StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -310,6 +316,7 @@ StartPostgreSQLShowIndexActionOKBody start postgre SQL show index action OK body swagger:model StartPostgreSQLShowIndexActionOKBody */ type StartPostgreSQLShowIndexActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go index c970df2211..96eb6cab1c 100644 --- a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go @@ -60,6 +60,7 @@ StartPTMongoDBSummaryActionParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type StartPTMongoDBSummaryActionParams struct { + // Body. Body StartPTMongoDBSummaryActionBody @@ -129,6 +130,7 @@ func (o *StartPTMongoDBSummaryActionParams) SetBody(body StartPTMongoDBSummaryAc // WriteToRequest writes these params to a swagger request func (o *StartPTMongoDBSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go index 506059ad1f..b14c02c25d 100644 --- a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTMongoDBSummaryActionOK struct { func (o *StartPTMongoDBSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMongoDBSummary][%d] startPtMongoDbSummaryActionOk %+v", 200, o.Payload) } - func (o *StartPTMongoDBSummaryActionOK) GetPayload() *StartPTMongoDBSummaryActionOKBody { return o.Payload } func (o *StartPTMongoDBSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTMongoDBSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTMongoDBSummaryActionDefault) Code() int { func (o *StartPTMongoDBSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMongoDBSummary][%d] StartPTMongoDBSummaryAction default %+v", o._statusCode, o.Payload) } - func (o *StartPTMongoDBSummaryActionDefault) GetPayload() *StartPTMongoDBSummaryActionDefaultBody { return o.Payload } func (o *StartPTMongoDBSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTMongoDBSummaryActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartPTMongoDBSummaryActionBody Message to prepare pt-mongodb-summary data swagger:model StartPTMongoDBSummaryActionBody */ type StartPTMongoDBSummaryActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -163,6 +164,7 @@ StartPTMongoDBSummaryActionDefaultBody start PT mongo DB summary action default swagger:model StartPTMongoDBSummaryActionDefaultBody */ type StartPTMongoDBSummaryActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *StartPTMongoDBSummaryActionDefaultBody) ContextValidate(ctx context.Con } func (o *StartPTMongoDBSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *StartPTMongoDBSummaryActionDefaultBody) contextValidateDetails(ctx cont return err } } + } return nil @@ -267,6 +272,7 @@ StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 start PT mongo DB summary ac swagger:model StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 */ type StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ StartPTMongoDBSummaryActionOKBody Message to retrieve the prepared pt-mongodb-su swagger:model StartPTMongoDBSummaryActionOKBody */ type StartPTMongoDBSummaryActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go index ae4ddbcf89..9f1f2000f6 100644 --- a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go @@ -60,6 +60,7 @@ StartPTMySQLSummaryActionParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type StartPTMySQLSummaryActionParams struct { + // Body. Body StartPTMySQLSummaryActionBody @@ -129,6 +130,7 @@ func (o *StartPTMySQLSummaryActionParams) SetBody(body StartPTMySQLSummaryAction // WriteToRequest writes these params to a swagger request func (o *StartPTMySQLSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go index dcd6b0a240..dfc628253f 100644 --- a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTMySQLSummaryActionOK struct { func (o *StartPTMySQLSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMySQLSummary][%d] startPtMySqlSummaryActionOk %+v", 200, o.Payload) } - func (o *StartPTMySQLSummaryActionOK) GetPayload() *StartPTMySQLSummaryActionOKBody { return o.Payload } func (o *StartPTMySQLSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTMySQLSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTMySQLSummaryActionDefault) Code() int { func (o *StartPTMySQLSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMySQLSummary][%d] StartPTMySQLSummaryAction default %+v", o._statusCode, o.Payload) } - func (o *StartPTMySQLSummaryActionDefault) GetPayload() *StartPTMySQLSummaryActionDefaultBody { return o.Payload } func (o *StartPTMySQLSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTMySQLSummaryActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartPTMySQLSummaryActionBody Message to prepare pt-mysql-summary data swagger:model StartPTMySQLSummaryActionBody */ type StartPTMySQLSummaryActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -163,6 +164,7 @@ StartPTMySQLSummaryActionDefaultBody start PT my SQL summary action default body swagger:model StartPTMySQLSummaryActionDefaultBody */ type StartPTMySQLSummaryActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *StartPTMySQLSummaryActionDefaultBody) ContextValidate(ctx context.Conte } func (o *StartPTMySQLSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *StartPTMySQLSummaryActionDefaultBody) contextValidateDetails(ctx contex return err } } + } return nil @@ -267,6 +272,7 @@ StartPTMySQLSummaryActionDefaultBodyDetailsItems0 start PT my SQL summary action swagger:model StartPTMySQLSummaryActionDefaultBodyDetailsItems0 */ type StartPTMySQLSummaryActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ StartPTMySQLSummaryActionOKBody Message to retrieve the prepared pt-mysql-summar swagger:model StartPTMySQLSummaryActionOKBody */ type StartPTMySQLSummaryActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go index f2eff89d17..e1571372d0 100644 --- a/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go @@ -60,6 +60,7 @@ StartPTPgSummaryActionParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type StartPTPgSummaryActionParams struct { + // Body. Body StartPTPgSummaryActionBody @@ -129,6 +130,7 @@ func (o *StartPTPgSummaryActionParams) SetBody(body StartPTPgSummaryActionBody) // WriteToRequest writes these params to a swagger request func (o *StartPTPgSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go index 92cf81cfbf..7cd914b581 100644 --- a/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTPgSummaryActionOK struct { func (o *StartPTPgSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTPgSummary][%d] startPtPgSummaryActionOk %+v", 200, o.Payload) } - func (o *StartPTPgSummaryActionOK) GetPayload() *StartPTPgSummaryActionOKBody { return o.Payload } func (o *StartPTPgSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTPgSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTPgSummaryActionDefault) Code() int { func (o *StartPTPgSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTPgSummary][%d] StartPTPgSummaryAction default %+v", o._statusCode, o.Payload) } - func (o *StartPTPgSummaryActionDefault) GetPayload() *StartPTPgSummaryActionDefaultBody { return o.Payload } func (o *StartPTPgSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTPgSummaryActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartPTPgSummaryActionBody Message to prepare pt-pg-summary data swagger:model StartPTPgSummaryActionBody */ type StartPTPgSummaryActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -163,6 +164,7 @@ StartPTPgSummaryActionDefaultBody start PT pg summary action default body swagger:model StartPTPgSummaryActionDefaultBody */ type StartPTPgSummaryActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *StartPTPgSummaryActionDefaultBody) ContextValidate(ctx context.Context, } func (o *StartPTPgSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *StartPTPgSummaryActionDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -267,6 +272,7 @@ StartPTPgSummaryActionDefaultBodyDetailsItems0 start PT pg summary action defaul swagger:model StartPTPgSummaryActionDefaultBodyDetailsItems0 */ type StartPTPgSummaryActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ StartPTPgSummaryActionOKBody Message to retrieve the prepared pt-pg-summary data swagger:model StartPTPgSummaryActionOKBody */ type StartPTPgSummaryActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go index 816c3e8e05..055d38f5ba 100644 --- a/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go @@ -60,6 +60,7 @@ StartPTSummaryActionParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type StartPTSummaryActionParams struct { + // Body. Body StartPTSummaryActionBody @@ -129,6 +130,7 @@ func (o *StartPTSummaryActionParams) SetBody(body StartPTSummaryActionBody) { // WriteToRequest writes these params to a swagger request func (o *StartPTSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_summary_action_responses.go index d935512a5c..8be0539893 100644 --- a/api/managementpb/json/client/actions/start_pt_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTSummaryActionOK struct { func (o *StartPTSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTSummary][%d] startPtSummaryActionOk %+v", 200, o.Payload) } - func (o *StartPTSummaryActionOK) GetPayload() *StartPTSummaryActionOKBody { return o.Payload } func (o *StartPTSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTSummaryActionDefault) Code() int { func (o *StartPTSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTSummary][%d] StartPTSummaryAction default %+v", o._statusCode, o.Payload) } - func (o *StartPTSummaryActionDefault) GetPayload() *StartPTSummaryActionDefaultBody { return o.Payload } func (o *StartPTSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTSummaryActionDefaultBody) // response payload @@ -123,6 +123,7 @@ StartPTSummaryActionBody start PT summary action body swagger:model StartPTSummaryActionBody */ type StartPTSummaryActionBody struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -163,6 +164,7 @@ StartPTSummaryActionDefaultBody start PT summary action default body swagger:model StartPTSummaryActionDefaultBody */ type StartPTSummaryActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *StartPTSummaryActionDefaultBody) ContextValidate(ctx context.Context, f } func (o *StartPTSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *StartPTSummaryActionDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -267,6 +272,7 @@ StartPTSummaryActionDefaultBodyDetailsItems0 start PT summary action default bod swagger:model StartPTSummaryActionDefaultBodyDetailsItems0 */ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -304,6 +310,7 @@ StartPTSummaryActionOKBody start PT summary action OK body swagger:model StartPTSummaryActionOKBody */ type StartPTSummaryActionOKBody struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/annotation/add_annotation_parameters.go b/api/managementpb/json/client/annotation/add_annotation_parameters.go index dfd1c36bc5..a3c3439116 100644 --- a/api/managementpb/json/client/annotation/add_annotation_parameters.go +++ b/api/managementpb/json/client/annotation/add_annotation_parameters.go @@ -60,6 +60,7 @@ AddAnnotationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddAnnotationParams struct { + /* Body. AddAnnotationRequest is a params to add new annotation. @@ -132,6 +133,7 @@ func (o *AddAnnotationParams) SetBody(body AddAnnotationBody) { // WriteToRequest writes these params to a swagger request func (o *AddAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/annotation/add_annotation_responses.go b/api/managementpb/json/client/annotation/add_annotation_responses.go index 6f9cf3e3e1..3701159fc5 100644 --- a/api/managementpb/json/client/annotation/add_annotation_responses.go +++ b/api/managementpb/json/client/annotation/add_annotation_responses.go @@ -60,12 +60,12 @@ type AddAnnotationOK struct { func (o *AddAnnotationOK) Error() string { return fmt.Sprintf("[POST /v1/management/Annotations/Add][%d] addAnnotationOk %+v", 200, o.Payload) } - func (o *AddAnnotationOK) GetPayload() interface{} { return o.Payload } func (o *AddAnnotationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *AddAnnotationDefault) Code() int { func (o *AddAnnotationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Annotations/Add][%d] AddAnnotation default %+v", o._statusCode, o.Payload) } - func (o *AddAnnotationDefault) GetPayload() *AddAnnotationDefaultBody { return o.Payload } func (o *AddAnnotationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAnnotationDefaultBody) // response payload @@ -121,6 +121,7 @@ AddAnnotationBody AddAnnotationRequest is a params to add new annotation. swagger:model AddAnnotationBody */ type AddAnnotationBody struct { + // An annotation description. Required. Text string `json:"text,omitempty"` @@ -167,6 +168,7 @@ AddAnnotationDefaultBody add annotation default body swagger:model AddAnnotationDefaultBody */ type AddAnnotationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -232,7 +234,9 @@ func (o *AddAnnotationDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddAnnotationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,6 +247,7 @@ func (o *AddAnnotationDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -271,6 +276,7 @@ AddAnnotationDefaultBodyDetailsItems0 add annotation default body details items0 swagger:model AddAnnotationDefaultBodyDetailsItems0 */ type AddAnnotationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/external/add_external_parameters.go b/api/managementpb/json/client/external/add_external_parameters.go index f58a91ff4f..e965c9d141 100644 --- a/api/managementpb/json/client/external/add_external_parameters.go +++ b/api/managementpb/json/client/external/add_external_parameters.go @@ -60,6 +60,7 @@ AddExternalParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddExternalParams struct { + // Body. Body AddExternalBody @@ -129,6 +130,7 @@ func (o *AddExternalParams) SetBody(body AddExternalBody) { // WriteToRequest writes these params to a swagger request func (o *AddExternalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/external/add_external_responses.go b/api/managementpb/json/client/external/add_external_responses.go index 2b0fed5178..bc959a1835 100644 --- a/api/managementpb/json/client/external/add_external_responses.go +++ b/api/managementpb/json/client/external/add_external_responses.go @@ -62,12 +62,12 @@ type AddExternalOK struct { func (o *AddExternalOK) Error() string { return fmt.Sprintf("[POST /v1/management/External/Add][%d] addExternalOk %+v", 200, o.Payload) } - func (o *AddExternalOK) GetPayload() *AddExternalOKBody { return o.Payload } func (o *AddExternalOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddExternalOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddExternalDefault) Code() int { func (o *AddExternalDefault) Error() string { return fmt.Sprintf("[POST /v1/management/External/Add][%d] AddExternal default %+v", o._statusCode, o.Payload) } - func (o *AddExternalDefault) GetPayload() *AddExternalDefaultBody { return o.Payload } func (o *AddExternalDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddExternalDefaultBody) // response payload @@ -125,6 +125,7 @@ AddExternalBody add external body swagger:model AddExternalBody */ type AddExternalBody struct { + // Node identifier on which an external exporter is been running. // runs_on_node_id always should be passed with node_id. // Exactly one of these parameters should be present: node_id, node_name, add_node. @@ -183,8 +184,8 @@ type AddExternalBody struct { // Skip connection check. SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - // Credentials provider - CredentialsSource string `json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `json:"service_params_source,omitempty"` // add node AddNode *AddExternalParamsBodyAddNode `json:"add_node,omitempty"` @@ -287,6 +288,7 @@ func (o *AddExternalBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddExternalBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -324,6 +326,7 @@ AddExternalDefaultBody add external default body swagger:model AddExternalDefaultBody */ type AddExternalDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -389,7 +392,9 @@ func (o *AddExternalDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddExternalDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -400,6 +405,7 @@ func (o *AddExternalDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -428,6 +434,7 @@ AddExternalDefaultBodyDetailsItems0 add external default body details items0 swagger:model AddExternalDefaultBodyDetailsItems0 */ type AddExternalDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -465,6 +472,7 @@ AddExternalOKBody add external OK body swagger:model AddExternalOKBody */ type AddExternalOKBody struct { + // external exporter ExternalExporter *AddExternalOKBodyExternalExporter `json:"external_exporter,omitempty"` @@ -547,6 +555,7 @@ func (o *AddExternalOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddExternalOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -562,6 +571,7 @@ func (o *AddExternalOKBody) contextValidateExternalExporter(ctx context.Context, } func (o *AddExternalOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -599,6 +609,7 @@ AddExternalOKBodyExternalExporter ExternalExporter runs on any Node type, includ swagger:model AddExternalOKBodyExternalExporter */ type AddExternalOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -666,6 +677,7 @@ AddExternalOKBodyService ExternalService represents a generic External service i swagger:model AddExternalOKBodyService */ type AddExternalOKBodyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -724,6 +736,7 @@ AddExternalParamsBodyAddNode AddNodeParams is a params to add new node to invent swagger:model AddExternalParamsBodyAddNode */ type AddExternalParamsBodyAddNode struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go index ac06a0fc9d..aeacacdc0b 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go @@ -60,6 +60,7 @@ AddHAProxyParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddHAProxyParams struct { + // Body. Body AddHAProxyBody @@ -129,6 +130,7 @@ func (o *AddHAProxyParams) SetBody(body AddHAProxyBody) { // WriteToRequest writes these params to a swagger request func (o *AddHAProxyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go index 160c4bdc7c..a29ed6717a 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go @@ -62,12 +62,12 @@ type AddHAProxyOK struct { func (o *AddHAProxyOK) Error() string { return fmt.Sprintf("[POST /v1/management/HAProxy/Add][%d] addHaProxyOk %+v", 200, o.Payload) } - func (o *AddHAProxyOK) GetPayload() *AddHAProxyOKBody { return o.Payload } func (o *AddHAProxyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddHAProxyOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddHAProxyDefault) Code() int { func (o *AddHAProxyDefault) Error() string { return fmt.Sprintf("[POST /v1/management/HAProxy/Add][%d] AddHAProxy default %+v", o._statusCode, o.Payload) } - func (o *AddHAProxyDefault) GetPayload() *AddHAProxyDefaultBody { return o.Payload } func (o *AddHAProxyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddHAProxyDefaultBody) // response payload @@ -125,6 +125,7 @@ AddHAProxyBody add HA proxy body swagger:model AddHAProxyBody */ type AddHAProxyBody struct { + // Node identifier on which an external exporter is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -175,8 +176,8 @@ type AddHAProxyBody struct { // Skip connection check. SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` - // Credentials provider - CredentialsSource string `json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `json:"service_params_source,omitempty"` // add node AddNode *AddHAProxyParamsBodyAddNode `json:"add_node,omitempty"` @@ -279,6 +280,7 @@ func (o *AddHAProxyBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddHAProxyBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -316,6 +318,7 @@ AddHAProxyDefaultBody add HA proxy default body swagger:model AddHAProxyDefaultBody */ type AddHAProxyDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -381,7 +384,9 @@ func (o *AddHAProxyDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddHAProxyDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -392,6 +397,7 @@ func (o *AddHAProxyDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -420,6 +426,7 @@ AddHAProxyDefaultBodyDetailsItems0 add HA proxy default body details items0 swagger:model AddHAProxyDefaultBodyDetailsItems0 */ type AddHAProxyDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -457,6 +464,7 @@ AddHAProxyOKBody add HA proxy OK body swagger:model AddHAProxyOKBody */ type AddHAProxyOKBody struct { + // external exporter ExternalExporter *AddHAProxyOKBodyExternalExporter `json:"external_exporter,omitempty"` @@ -539,6 +547,7 @@ func (o *AddHAProxyOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddHAProxyOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -554,6 +563,7 @@ func (o *AddHAProxyOKBody) contextValidateExternalExporter(ctx context.Context, } func (o *AddHAProxyOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -591,6 +601,7 @@ AddHAProxyOKBodyExternalExporter ExternalExporter runs on any Node type, includi swagger:model AddHAProxyOKBodyExternalExporter */ type AddHAProxyOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -658,6 +669,7 @@ AddHAProxyOKBodyService HAProxyService represents a generic HAProxy service inst swagger:model AddHAProxyOKBodyService */ type AddHAProxyOKBodyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -713,6 +725,7 @@ AddHAProxyParamsBodyAddNode AddNodeParams is a params to add new node to invento swagger:model AddHAProxyParamsBodyAddNode */ type AddHAProxyParamsBodyAddNode struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go b/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go index d232151552..7990ce64f6 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go @@ -60,6 +60,7 @@ AddMongoDBParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMongoDBParams struct { + // Body. Body AddMongoDBBody @@ -129,6 +130,7 @@ func (o *AddMongoDBParams) SetBody(body AddMongoDBBody) { // WriteToRequest writes these params to a swagger request func (o *AddMongoDBParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go index 5e60898976..3eeb6e88a2 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go @@ -62,12 +62,12 @@ type AddMongoDBOK struct { func (o *AddMongoDBOK) Error() string { return fmt.Sprintf("[POST /v1/management/MongoDB/Add][%d] addMongoDbOk %+v", 200, o.Payload) } - func (o *AddMongoDBOK) GetPayload() *AddMongoDBOKBody { return o.Payload } func (o *AddMongoDBOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMongoDBOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMongoDBDefault) Code() int { func (o *AddMongoDBDefault) Error() string { return fmt.Sprintf("[POST /v1/management/MongoDB/Add][%d] AddMongoDB default %+v", o._statusCode, o.Payload) } - func (o *AddMongoDBDefault) GetPayload() *AddMongoDBDefaultBody { return o.Payload } func (o *AddMongoDBDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMongoDBDefaultBody) // response payload @@ -125,6 +125,7 @@ AddMongoDBBody add mongo DB body swagger:model AddMongoDBBody */ type AddMongoDBBody struct { + // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -223,8 +224,8 @@ type AddMongoDBBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `json:"service_params_source,omitempty"` // add node AddNode *AddMongoDBParamsBodyAddNode `json:"add_node,omitempty"` @@ -385,6 +386,7 @@ func (o *AddMongoDBBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddMongoDBBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -422,6 +424,7 @@ AddMongoDBDefaultBody add mongo DB default body swagger:model AddMongoDBDefaultBody */ type AddMongoDBDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -487,7 +490,9 @@ func (o *AddMongoDBDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddMongoDBDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -498,6 +503,7 @@ func (o *AddMongoDBDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -526,6 +532,7 @@ AddMongoDBDefaultBodyDetailsItems0 add mongo DB default body details items0 swagger:model AddMongoDBDefaultBodyDetailsItems0 */ type AddMongoDBDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -563,6 +570,7 @@ AddMongoDBOKBody add mongo DB OK body swagger:model AddMongoDBOKBody */ type AddMongoDBOKBody struct { + // mongodb exporter MongodbExporter *AddMongoDBOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` @@ -675,6 +683,7 @@ func (o *AddMongoDBOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddMongoDBOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -690,6 +699,7 @@ func (o *AddMongoDBOKBody) contextValidateMongodbExporter(ctx context.Context, f } func (o *AddMongoDBOKBody) contextValidateQANMongodbProfiler(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfiler != nil { if err := o.QANMongodbProfiler.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -705,6 +715,7 @@ func (o *AddMongoDBOKBody) contextValidateQANMongodbProfiler(ctx context.Context } func (o *AddMongoDBOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -742,6 +753,7 @@ AddMongoDBOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Nod swagger:model AddMongoDBOKBodyMongodbExporter */ type AddMongoDBOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -961,6 +973,7 @@ AddMongoDBOKBodyQANMongodbProfiler QANMongoDBProfilerAgent runs within pmm-agent swagger:model AddMongoDBOKBodyQANMongodbProfiler */ type AddMongoDBOKBodyQANMongodbProfiler struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1161,6 +1174,7 @@ AddMongoDBOKBodyService MongoDBService represents a generic MongoDB instance. swagger:model AddMongoDBOKBodyService */ type AddMongoDBOKBodyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1228,6 +1242,7 @@ AddMongoDBParamsBodyAddNode AddNodeParams is a params to add new node to invento swagger:model AddMongoDBParamsBodyAddNode */ type AddMongoDBParamsBodyAddNode struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/my_sql/add_my_sql_parameters.go b/api/managementpb/json/client/my_sql/add_my_sql_parameters.go index 6055393fdc..569c9f5949 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_parameters.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_parameters.go @@ -60,6 +60,7 @@ AddMySQLParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMySQLParams struct { + // Body. Body AddMySQLBody @@ -129,6 +130,7 @@ func (o *AddMySQLParams) SetBody(body AddMySQLBody) { // WriteToRequest writes these params to a swagger request func (o *AddMySQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/my_sql/add_my_sql_responses.go b/api/managementpb/json/client/my_sql/add_my_sql_responses.go index 7d5ff03e53..729609b74d 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_responses.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_responses.go @@ -62,12 +62,12 @@ type AddMySQLOK struct { func (o *AddMySQLOK) Error() string { return fmt.Sprintf("[POST /v1/management/MySQL/Add][%d] addMySqlOk %+v", 200, o.Payload) } - func (o *AddMySQLOK) GetPayload() *AddMySQLOKBody { return o.Payload } func (o *AddMySQLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMySQLOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMySQLDefault) Code() int { func (o *AddMySQLDefault) Error() string { return fmt.Sprintf("[POST /v1/management/MySQL/Add][%d] AddMySQL default %+v", o._statusCode, o.Payload) } - func (o *AddMySQLDefault) GetPayload() *AddMySQLDefaultBody { return o.Payload } func (o *AddMySQLDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddMySQLDefaultBody) // response payload @@ -125,6 +125,7 @@ AddMySQLBody add my SQL body swagger:model AddMySQLBody */ type AddMySQLBody struct { + // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -224,8 +225,8 @@ type AddMySQLBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `json:"service_params_source,omitempty"` // add node AddNode *AddMySQLParamsBodyAddNode `json:"add_node,omitempty"` @@ -386,6 +387,7 @@ func (o *AddMySQLBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *AddMySQLBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -423,6 +425,7 @@ AddMySQLDefaultBody add my SQL default body swagger:model AddMySQLDefaultBody */ type AddMySQLDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -488,7 +491,9 @@ func (o *AddMySQLDefaultBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddMySQLDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -499,6 +504,7 @@ func (o *AddMySQLDefaultBody) contextValidateDetails(ctx context.Context, format return err } } + } return nil @@ -527,6 +533,7 @@ AddMySQLDefaultBodyDetailsItems0 add my SQL default body details items0 swagger:model AddMySQLDefaultBodyDetailsItems0 */ type AddMySQLDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -564,6 +571,7 @@ AddMySQLOKBody add my SQL OK body swagger:model AddMySQLOKBody */ type AddMySQLOKBody struct { + // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -709,6 +717,7 @@ func (o *AddMySQLOKBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddMySQLOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -724,6 +733,7 @@ func (o *AddMySQLOKBody) contextValidateMysqldExporter(ctx context.Context, form } func (o *AddMySQLOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschema != nil { if err := o.QANMysqlPerfschema.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -739,6 +749,7 @@ func (o *AddMySQLOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, } func (o *AddMySQLOKBody) contextValidateQANMysqlSlowlog(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlog != nil { if err := o.QANMysqlSlowlog.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -754,6 +765,7 @@ func (o *AddMySQLOKBody) contextValidateQANMysqlSlowlog(ctx context.Context, for } func (o *AddMySQLOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -791,6 +803,7 @@ AddMySQLOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node an swagger:model AddMySQLOKBodyMysqldExporter */ type AddMySQLOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1017,6 +1030,7 @@ AddMySQLOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent a swagger:model AddMySQLOKBodyQANMysqlPerfschema */ type AddMySQLOKBodyQANMysqlPerfschema struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1232,6 +1246,7 @@ AddMySQLOKBodyQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent and sen swagger:model AddMySQLOKBodyQANMysqlSlowlog */ type AddMySQLOKBodyQANMysqlSlowlog struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1450,6 +1465,7 @@ AddMySQLOKBodyService MySQLService represents a generic MySQL instance. swagger:model AddMySQLOKBodyService */ type AddMySQLOKBodyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1517,6 +1533,7 @@ AddMySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory swagger:model AddMySQLParamsBodyAddNode */ type AddMySQLParamsBodyAddNode struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/node/register_node_parameters.go b/api/managementpb/json/client/node/register_node_parameters.go index df5bbc15e6..e50a9c1a89 100644 --- a/api/managementpb/json/client/node/register_node_parameters.go +++ b/api/managementpb/json/client/node/register_node_parameters.go @@ -60,6 +60,7 @@ RegisterNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RegisterNodeParams struct { + // Body. Body RegisterNodeBody @@ -129,6 +130,7 @@ func (o *RegisterNodeParams) SetBody(body RegisterNodeBody) { // WriteToRequest writes these params to a swagger request func (o *RegisterNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/node/register_node_responses.go b/api/managementpb/json/client/node/register_node_responses.go index b5b0980938..688fed529d 100644 --- a/api/managementpb/json/client/node/register_node_responses.go +++ b/api/managementpb/json/client/node/register_node_responses.go @@ -62,12 +62,12 @@ type RegisterNodeOK struct { func (o *RegisterNodeOK) Error() string { return fmt.Sprintf("[POST /v1/management/Node/Register][%d] registerNodeOk %+v", 200, o.Payload) } - func (o *RegisterNodeOK) GetPayload() *RegisterNodeOKBody { return o.Payload } func (o *RegisterNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RegisterNodeOKBody) // response payload @@ -104,12 +104,12 @@ func (o *RegisterNodeDefault) Code() int { func (o *RegisterNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Node/Register][%d] RegisterNode default %+v", o._statusCode, o.Payload) } - func (o *RegisterNodeDefault) GetPayload() *RegisterNodeDefaultBody { return o.Payload } func (o *RegisterNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RegisterNodeDefaultBody) // response payload @@ -125,6 +125,7 @@ RegisterNodeBody register node body swagger:model RegisterNodeBody */ type RegisterNodeBody struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` @@ -319,6 +320,7 @@ RegisterNodeDefaultBody register node default body swagger:model RegisterNodeDefaultBody */ type RegisterNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -384,7 +386,9 @@ func (o *RegisterNodeDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *RegisterNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -395,6 +399,7 @@ func (o *RegisterNodeDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -423,6 +428,7 @@ RegisterNodeDefaultBodyDetailsItems0 register node default body details items0 swagger:model RegisterNodeDefaultBodyDetailsItems0 */ type RegisterNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -460,6 +466,7 @@ RegisterNodeOKBody register node OK body swagger:model RegisterNodeOKBody */ type RegisterNodeOKBody struct { + // container node ContainerNode *RegisterNodeOKBodyContainerNode `json:"container_node,omitempty"` @@ -572,6 +579,7 @@ func (o *RegisterNodeOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *RegisterNodeOKBody) contextValidateContainerNode(ctx context.Context, formats strfmt.Registry) error { + if o.ContainerNode != nil { if err := o.ContainerNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -587,6 +595,7 @@ func (o *RegisterNodeOKBody) contextValidateContainerNode(ctx context.Context, f } func (o *RegisterNodeOKBody) contextValidateGenericNode(ctx context.Context, formats strfmt.Registry) error { + if o.GenericNode != nil { if err := o.GenericNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -602,6 +611,7 @@ func (o *RegisterNodeOKBody) contextValidateGenericNode(ctx context.Context, for } func (o *RegisterNodeOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -639,6 +649,7 @@ RegisterNodeOKBodyContainerNode ContainerNode represents a Docker container. swagger:model RegisterNodeOKBodyContainerNode */ type RegisterNodeOKBodyContainerNode struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -703,6 +714,7 @@ RegisterNodeOKBodyGenericNode GenericNode represents a bare metal server or virt swagger:model RegisterNodeOKBodyGenericNode */ type RegisterNodeOKBodyGenericNode struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -764,6 +776,7 @@ RegisterNodeOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model RegisterNodeOKBodyPMMAgent */ type RegisterNodeOKBodyPMMAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go index 35e261e3fe..7b16633d78 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go @@ -60,6 +60,7 @@ AddPostgreSQLParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddPostgreSQLParams struct { + // Body. Body AddPostgreSQLBody @@ -129,6 +130,7 @@ func (o *AddPostgreSQLParams) SetBody(body AddPostgreSQLBody) { // WriteToRequest writes these params to a swagger request func (o *AddPostgreSQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go index 4ec036a9ef..73c3785e94 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go @@ -62,12 +62,12 @@ type AddPostgreSQLOK struct { func (o *AddPostgreSQLOK) Error() string { return fmt.Sprintf("[POST /v1/management/PostgreSQL/Add][%d] addPostgreSqlOk %+v", 200, o.Payload) } - func (o *AddPostgreSQLOK) GetPayload() *AddPostgreSQLOKBody { return o.Payload } func (o *AddPostgreSQLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPostgreSQLOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddPostgreSQLDefault) Code() int { func (o *AddPostgreSQLDefault) Error() string { return fmt.Sprintf("[POST /v1/management/PostgreSQL/Add][%d] AddPostgreSQL default %+v", o._statusCode, o.Payload) } - func (o *AddPostgreSQLDefault) GetPayload() *AddPostgreSQLDefaultBody { return o.Payload } func (o *AddPostgreSQLDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddPostgreSQLDefaultBody) // response payload @@ -125,6 +125,7 @@ AddPostgreSQLBody add postgre SQL body swagger:model AddPostgreSQLBody */ type AddPostgreSQLBody struct { + // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -217,8 +218,8 @@ type AddPostgreSQLBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `json:"service_params_source,omitempty"` // add node AddNode *AddPostgreSQLParamsBodyAddNode `json:"add_node,omitempty"` @@ -379,6 +380,7 @@ func (o *AddPostgreSQLBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddPostgreSQLBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -416,6 +418,7 @@ AddPostgreSQLDefaultBody add postgre SQL default body swagger:model AddPostgreSQLDefaultBody */ type AddPostgreSQLDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -481,7 +484,9 @@ func (o *AddPostgreSQLDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddPostgreSQLDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -492,6 +497,7 @@ func (o *AddPostgreSQLDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -520,6 +526,7 @@ AddPostgreSQLDefaultBodyDetailsItems0 add postgre SQL default body details items swagger:model AddPostgreSQLDefaultBodyDetailsItems0 */ type AddPostgreSQLDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -557,6 +564,7 @@ AddPostgreSQLOKBody add postgre SQL OK body swagger:model AddPostgreSQLOKBody */ type AddPostgreSQLOKBody struct { + // postgres exporter PostgresExporter *AddPostgreSQLOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` @@ -699,6 +707,7 @@ func (o *AddPostgreSQLOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddPostgreSQLOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -714,6 +723,7 @@ func (o *AddPostgreSQLOKBody) contextValidatePostgresExporter(ctx context.Contex } func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -729,6 +739,7 @@ func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx } func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -744,6 +755,7 @@ func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx } func (o *AddPostgreSQLOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -781,6 +793,7 @@ AddPostgreSQLOKBodyPostgresExporter PostgresExporter runs on Generic or Containe swagger:model AddPostgreSQLOKBodyPostgresExporter */ type AddPostgreSQLOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -990,6 +1003,7 @@ AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent */ type AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1193,6 +1207,7 @@ AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAge swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent */ type AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1399,6 +1414,7 @@ AddPostgreSQLOKBodyService PostgreSQLService represents a generic PostgreSQL ins swagger:model AddPostgreSQLOKBodyService */ type AddPostgreSQLOKBodyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1469,6 +1485,7 @@ AddPostgreSQLParamsBodyAddNode AddNodeParams is a params to add new node to inve swagger:model AddPostgreSQLParamsBodyAddNode */ type AddPostgreSQLParamsBodyAddNode struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go index 7857dd35b2..f212574e29 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go @@ -60,6 +60,7 @@ AddProxySQLParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddProxySQLParams struct { + // Body. Body AddProxySQLBody @@ -129,6 +130,7 @@ func (o *AddProxySQLParams) SetBody(body AddProxySQLBody) { // WriteToRequest writes these params to a swagger request func (o *AddProxySQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go index 754c69c0a8..c66388aa74 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go @@ -62,12 +62,12 @@ type AddProxySQLOK struct { func (o *AddProxySQLOK) Error() string { return fmt.Sprintf("[POST /v1/management/ProxySQL/Add][%d] addProxySqlOk %+v", 200, o.Payload) } - func (o *AddProxySQLOK) GetPayload() *AddProxySQLOKBody { return o.Payload } func (o *AddProxySQLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddProxySQLOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddProxySQLDefault) Code() int { func (o *AddProxySQLDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ProxySQL/Add][%d] AddProxySQL default %+v", o._statusCode, o.Payload) } - func (o *AddProxySQLDefault) GetPayload() *AddProxySQLDefaultBody { return o.Payload } func (o *AddProxySQLDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddProxySQLDefaultBody) // response payload @@ -125,6 +125,7 @@ AddProxySQLBody add proxy SQL body swagger:model AddProxySQLBody */ type AddProxySQLBody struct { + // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -193,8 +194,8 @@ type AddProxySQLBody struct { // Enum: [auto fatal error warn info debug] LogLevel *string `json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `json:"service_params_source,omitempty"` // add node AddNode *AddProxySQLParamsBodyAddNode `json:"add_node,omitempty"` @@ -355,6 +356,7 @@ func (o *AddProxySQLBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddProxySQLBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -392,6 +394,7 @@ AddProxySQLDefaultBody add proxy SQL default body swagger:model AddProxySQLDefaultBody */ type AddProxySQLDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -457,7 +460,9 @@ func (o *AddProxySQLDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddProxySQLDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -468,6 +473,7 @@ func (o *AddProxySQLDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -496,6 +502,7 @@ AddProxySQLDefaultBodyDetailsItems0 add proxy SQL default body details items0 swagger:model AddProxySQLDefaultBodyDetailsItems0 */ type AddProxySQLDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -533,6 +540,7 @@ AddProxySQLOKBody add proxy SQL OK body swagger:model AddProxySQLOKBody */ type AddProxySQLOKBody struct { + // proxysql exporter ProxysqlExporter *AddProxySQLOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` @@ -615,6 +623,7 @@ func (o *AddProxySQLOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddProxySQLOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -630,6 +639,7 @@ func (o *AddProxySQLOKBody) contextValidateProxysqlExporter(ctx context.Context, } func (o *AddProxySQLOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -667,6 +677,7 @@ AddProxySQLOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container swagger:model AddProxySQLOKBodyProxysqlExporter */ type AddProxySQLOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -876,6 +887,7 @@ AddProxySQLOKBodyService ProxySQLService represents a generic ProxySQL instance. swagger:model AddProxySQLOKBodyService */ type AddProxySQLOKBodyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -943,6 +955,7 @@ AddProxySQLParamsBodyAddNode AddNodeParams is a params to add new node to invent swagger:model AddProxySQLParamsBodyAddNode */ type AddProxySQLParamsBodyAddNode struct { + // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/rds/add_rds_parameters.go b/api/managementpb/json/client/rds/add_rds_parameters.go index a2dc2089bf..8d9148608c 100644 --- a/api/managementpb/json/client/rds/add_rds_parameters.go +++ b/api/managementpb/json/client/rds/add_rds_parameters.go @@ -60,6 +60,7 @@ AddRDSParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRDSParams struct { + // Body. Body AddRDSBody @@ -129,6 +130,7 @@ func (o *AddRDSParams) SetBody(body AddRDSBody) { // WriteToRequest writes these params to a swagger request func (o *AddRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/rds/add_rds_responses.go b/api/managementpb/json/client/rds/add_rds_responses.go index 1a736d7172..aae9868e9a 100644 --- a/api/managementpb/json/client/rds/add_rds_responses.go +++ b/api/managementpb/json/client/rds/add_rds_responses.go @@ -62,12 +62,12 @@ type AddRDSOK struct { func (o *AddRDSOK) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Add][%d] addRdsOk %+v", 200, o.Payload) } - func (o *AddRDSOK) GetPayload() *AddRDSOKBody { return o.Payload } func (o *AddRDSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRDSOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddRDSDefault) Code() int { func (o *AddRDSDefault) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Add][%d] AddRDS default %+v", o._statusCode, o.Payload) } - func (o *AddRDSDefault) GetPayload() *AddRDSDefaultBody { return o.Payload } func (o *AddRDSDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddRDSDefaultBody) // response payload @@ -125,6 +125,7 @@ AddRDSBody add RDS body swagger:model AddRDSBody */ type AddRDSBody struct { + // AWS region. Region string `json:"region,omitempty"` @@ -354,6 +355,7 @@ AddRDSDefaultBody add RDS default body swagger:model AddRDSDefaultBody */ type AddRDSDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -419,7 +421,9 @@ func (o *AddRDSDefaultBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddRDSDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -430,6 +434,7 @@ func (o *AddRDSDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -458,6 +463,7 @@ AddRDSDefaultBodyDetailsItems0 add RDS default body details items0 swagger:model AddRDSDefaultBodyDetailsItems0 */ type AddRDSDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -495,6 +501,7 @@ AddRDSOKBody add RDS OK body swagger:model AddRDSOKBody */ type AddRDSOKBody struct { + // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -760,6 +767,7 @@ func (o *AddRDSOKBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *AddRDSOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if err := o.Mysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -775,6 +783,7 @@ func (o *AddRDSOKBody) contextValidateMysql(ctx context.Context, formats strfmt. } func (o *AddRDSOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -790,6 +799,7 @@ func (o *AddRDSOKBody) contextValidateMysqldExporter(ctx context.Context, format } func (o *AddRDSOKBody) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { + if o.Node != nil { if err := o.Node.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -805,6 +815,7 @@ func (o *AddRDSOKBody) contextValidateNode(ctx context.Context, formats strfmt.R } func (o *AddRDSOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if err := o.Postgresql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -820,6 +831,7 @@ func (o *AddRDSOKBody) contextValidatePostgresql(ctx context.Context, formats st } func (o *AddRDSOKBody) contextValidatePostgresqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresqlExporter != nil { if err := o.PostgresqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -835,6 +847,7 @@ func (o *AddRDSOKBody) contextValidatePostgresqlExporter(ctx context.Context, fo } func (o *AddRDSOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschema != nil { if err := o.QANMysqlPerfschema.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -850,6 +863,7 @@ func (o *AddRDSOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, fo } func (o *AddRDSOKBody) contextValidateQANPostgresqlPgstatements(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatements != nil { if err := o.QANPostgresqlPgstatements.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -865,6 +879,7 @@ func (o *AddRDSOKBody) contextValidateQANPostgresqlPgstatements(ctx context.Cont } func (o *AddRDSOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -902,6 +917,7 @@ AddRDSOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddRDSOKBodyMysql */ type AddRDSOKBodyMysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -969,6 +985,7 @@ AddRDSOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and swagger:model AddRDSOKBodyMysqldExporter */ type AddRDSOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1195,6 +1212,7 @@ AddRDSOKBodyNode RemoteRDSNode represents remote RDS Node. Agents can't run on R swagger:model AddRDSOKBodyNode */ type AddRDSOKBodyNode struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1250,6 +1268,7 @@ AddRDSOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instanc swagger:model AddRDSOKBodyPostgresql */ type AddRDSOKBodyPostgresql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1320,6 +1339,7 @@ AddRDSOKBodyPostgresqlExporter PostgresExporter runs on Generic or Container Nod swagger:model AddRDSOKBodyPostgresqlExporter */ type AddRDSOKBodyPostgresqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1529,6 +1549,7 @@ AddRDSOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and swagger:model AddRDSOKBodyQANMysqlPerfschema */ type AddRDSOKBodyQANMysqlPerfschema struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1744,6 +1765,7 @@ AddRDSOKBodyQANPostgresqlPgstatements QANPostgreSQLPgStatementsAgent runs within swagger:model AddRDSOKBodyQANPostgresqlPgstatements */ type AddRDSOKBodyQANPostgresqlPgstatements struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1947,6 +1969,7 @@ AddRDSOKBodyRDSExporter RDSExporter runs on Generic or Container Node and expose swagger:model AddRDSOKBodyRDSExporter */ type AddRDSOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/managementpb/json/client/rds/discover_rds_parameters.go b/api/managementpb/json/client/rds/discover_rds_parameters.go index 2866e7202c..0d74bf2782 100644 --- a/api/managementpb/json/client/rds/discover_rds_parameters.go +++ b/api/managementpb/json/client/rds/discover_rds_parameters.go @@ -60,6 +60,7 @@ DiscoverRDSParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DiscoverRDSParams struct { + // Body. Body DiscoverRDSBody @@ -129,6 +130,7 @@ func (o *DiscoverRDSParams) SetBody(body DiscoverRDSBody) { // WriteToRequest writes these params to a swagger request func (o *DiscoverRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/rds/discover_rds_responses.go b/api/managementpb/json/client/rds/discover_rds_responses.go index aab13344e2..43bb9fe549 100644 --- a/api/managementpb/json/client/rds/discover_rds_responses.go +++ b/api/managementpb/json/client/rds/discover_rds_responses.go @@ -62,12 +62,12 @@ type DiscoverRDSOK struct { func (o *DiscoverRDSOK) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Discover][%d] discoverRdsOk %+v", 200, o.Payload) } - func (o *DiscoverRDSOK) GetPayload() *DiscoverRDSOKBody { return o.Payload } func (o *DiscoverRDSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverRDSOKBody) // response payload @@ -104,12 +104,12 @@ func (o *DiscoverRDSDefault) Code() int { func (o *DiscoverRDSDefault) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Discover][%d] DiscoverRDS default %+v", o._statusCode, o.Payload) } - func (o *DiscoverRDSDefault) GetPayload() *DiscoverRDSDefaultBody { return o.Payload } func (o *DiscoverRDSDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverRDSDefaultBody) // response payload @@ -125,6 +125,7 @@ DiscoverRDSBody discover RDS body swagger:model DiscoverRDSBody */ type DiscoverRDSBody struct { + // AWS Access key. Optional. AWSAccessKey string `json:"aws_access_key,omitempty"` @@ -165,6 +166,7 @@ DiscoverRDSDefaultBody discover RDS default body swagger:model DiscoverRDSDefaultBody */ type DiscoverRDSDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -230,7 +232,9 @@ func (o *DiscoverRDSDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *DiscoverRDSDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,6 +245,7 @@ func (o *DiscoverRDSDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -269,6 +274,7 @@ DiscoverRDSDefaultBodyDetailsItems0 discover RDS default body details items0 swagger:model DiscoverRDSDefaultBodyDetailsItems0 */ type DiscoverRDSDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -306,6 +312,7 @@ DiscoverRDSOKBody discover RDS OK body swagger:model DiscoverRDSOKBody */ type DiscoverRDSOKBody struct { + // rds instances RDSInstances []*DiscoverRDSOKBodyRDSInstancesItems0 `json:"rds_instances"` } @@ -365,7 +372,9 @@ func (o *DiscoverRDSOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *DiscoverRDSOKBody) contextValidateRDSInstances(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RDSInstances); i++ { + if o.RDSInstances[i] != nil { if err := o.RDSInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -376,6 +385,7 @@ func (o *DiscoverRDSOKBody) contextValidateRDSInstances(ctx context.Context, for return err } } + } return nil @@ -404,6 +414,7 @@ DiscoverRDSOKBodyRDSInstancesItems0 DiscoverRDSInstance models an unique RDS ins swagger:model DiscoverRDSOKBodyRDSInstancesItems0 */ type DiscoverRDSOKBodyRDSInstancesItems0 struct { + // AWS region. Region string `json:"region,omitempty"` diff --git a/api/managementpb/json/client/security_checks/change_security_checks_parameters.go b/api/managementpb/json/client/security_checks/change_security_checks_parameters.go index 36cfeac04a..8120533c57 100644 --- a/api/managementpb/json/client/security_checks/change_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/change_security_checks_parameters.go @@ -60,6 +60,7 @@ ChangeSecurityChecksParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ChangeSecurityChecksParams struct { + // Body. Body ChangeSecurityChecksBody @@ -129,6 +130,7 @@ func (o *ChangeSecurityChecksParams) SetBody(body ChangeSecurityChecksBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeSecurityChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/change_security_checks_responses.go b/api/managementpb/json/client/security_checks/change_security_checks_responses.go index 01c8381711..cda296b947 100644 --- a/api/managementpb/json/client/security_checks/change_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/change_security_checks_responses.go @@ -62,12 +62,12 @@ type ChangeSecurityChecksOK struct { func (o *ChangeSecurityChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Change][%d] changeSecurityChecksOk %+v", 200, o.Payload) } - func (o *ChangeSecurityChecksOK) GetPayload() interface{} { return o.Payload } func (o *ChangeSecurityChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *ChangeSecurityChecksDefault) Code() int { func (o *ChangeSecurityChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Change][%d] ChangeSecurityChecks default %+v", o._statusCode, o.Payload) } - func (o *ChangeSecurityChecksDefault) GetPayload() *ChangeSecurityChecksDefaultBody { return o.Payload } func (o *ChangeSecurityChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeSecurityChecksDefaultBody) // response payload @@ -123,6 +123,7 @@ ChangeSecurityChecksBody change security checks body swagger:model ChangeSecurityChecksBody */ type ChangeSecurityChecksBody struct { + // params Params []*ChangeSecurityChecksParamsBodyParamsItems0 `json:"params"` } @@ -182,7 +183,9 @@ func (o *ChangeSecurityChecksBody) ContextValidate(ctx context.Context, formats } func (o *ChangeSecurityChecksBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Params); i++ { + if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -193,6 +196,7 @@ func (o *ChangeSecurityChecksBody) contextValidateParams(ctx context.Context, fo return err } } + } return nil @@ -221,6 +225,7 @@ ChangeSecurityChecksDefaultBody change security checks default body swagger:model ChangeSecurityChecksDefaultBody */ type ChangeSecurityChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -286,7 +291,9 @@ func (o *ChangeSecurityChecksDefaultBody) ContextValidate(ctx context.Context, f } func (o *ChangeSecurityChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -297,6 +304,7 @@ func (o *ChangeSecurityChecksDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -325,6 +333,7 @@ ChangeSecurityChecksDefaultBodyDetailsItems0 change security checks default body swagger:model ChangeSecurityChecksDefaultBodyDetailsItems0 */ type ChangeSecurityChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -362,6 +371,7 @@ ChangeSecurityChecksParamsBodyParamsItems0 ChangeSecurityCheckParams specifies a swagger:model ChangeSecurityChecksParamsBodyParamsItems0 */ type ChangeSecurityChecksParamsBodyParamsItems0 struct { + // The name of the check to change. Name string `json:"name,omitempty"` diff --git a/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go b/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go index 5cfe658f09..607838916c 100644 --- a/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go @@ -60,6 +60,7 @@ GetFailedChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetFailedChecksParams struct { + // Body. Body GetFailedChecksBody @@ -129,6 +130,7 @@ func (o *GetFailedChecksParams) SetBody(body GetFailedChecksBody) { // WriteToRequest writes these params to a swagger request func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/get_failed_checks_responses.go b/api/managementpb/json/client/security_checks/get_failed_checks_responses.go index f095ef0be5..d8a5c38d34 100644 --- a/api/managementpb/json/client/security_checks/get_failed_checks_responses.go +++ b/api/managementpb/json/client/security_checks/get_failed_checks_responses.go @@ -62,12 +62,12 @@ type GetFailedChecksOK struct { func (o *GetFailedChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/FailedChecks][%d] getFailedChecksOk %+v", 200, o.Payload) } - func (o *GetFailedChecksOK) GetPayload() *GetFailedChecksOKBody { return o.Payload } func (o *GetFailedChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetFailedChecksOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetFailedChecksDefault) Code() int { func (o *GetFailedChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/FailedChecks][%d] GetFailedChecks default %+v", o._statusCode, o.Payload) } - func (o *GetFailedChecksDefault) GetPayload() *GetFailedChecksDefaultBody { return o.Payload } func (o *GetFailedChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetFailedChecksDefaultBody) // response payload @@ -125,6 +125,7 @@ GetFailedChecksBody get failed checks body swagger:model GetFailedChecksBody */ type GetFailedChecksBody struct { + // service id ServiceID string `json:"service_id,omitempty"` @@ -180,6 +181,7 @@ func (o *GetFailedChecksBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetFailedChecksBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { + if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,6 +219,7 @@ GetFailedChecksDefaultBody get failed checks default body swagger:model GetFailedChecksDefaultBody */ type GetFailedChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -282,7 +285,9 @@ func (o *GetFailedChecksDefaultBody) ContextValidate(ctx context.Context, format } func (o *GetFailedChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,6 +298,7 @@ func (o *GetFailedChecksDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -321,6 +327,7 @@ GetFailedChecksDefaultBodyDetailsItems0 get failed checks default body details i swagger:model GetFailedChecksDefaultBodyDetailsItems0 */ type GetFailedChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +365,7 @@ GetFailedChecksOKBody get failed checks OK body swagger:model GetFailedChecksOKBody */ type GetFailedChecksOKBody struct { + // results Results []*GetFailedChecksOKBodyResultsItems0 `json:"results"` @@ -447,7 +455,9 @@ func (o *GetFailedChecksOKBody) ContextValidate(ctx context.Context, formats str } func (o *GetFailedChecksOKBody) contextValidateResults(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Results); i++ { + if o.Results[i] != nil { if err := o.Results[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -458,12 +468,14 @@ func (o *GetFailedChecksOKBody) contextValidateResults(ctx context.Context, form return err } } + } return nil } func (o *GetFailedChecksOKBody) contextValidatePageTotals(ctx context.Context, formats strfmt.Registry) error { + if o.PageTotals != nil { if err := o.PageTotals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -501,6 +513,7 @@ GetFailedChecksOKBodyPageTotals PageTotals represents total values for paginatio swagger:model GetFailedChecksOKBodyPageTotals */ type GetFailedChecksOKBodyPageTotals struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -541,6 +554,7 @@ GetFailedChecksOKBodyResultsItems0 CheckResult represents the check results for swagger:model GetFailedChecksOKBodyResultsItems0 */ type GetFailedChecksOKBodyResultsItems0 struct { + // summary Summary string `json:"summary,omitempty"` @@ -678,6 +692,7 @@ GetFailedChecksParamsBodyPageParams PageParams represents page request parameter swagger:model GetFailedChecksParamsBodyPageParams */ type GetFailedChecksParamsBodyPageParams struct { + // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go b/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go index 36c1b70857..197bcab662 100644 --- a/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go +++ b/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go @@ -60,6 +60,7 @@ GetSecurityCheckResultsParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type GetSecurityCheckResultsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *GetSecurityCheckResultsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetSecurityCheckResultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/get_security_check_results_responses.go b/api/managementpb/json/client/security_checks/get_security_check_results_responses.go index aa03b1b477..432fa0919a 100644 --- a/api/managementpb/json/client/security_checks/get_security_check_results_responses.go +++ b/api/managementpb/json/client/security_checks/get_security_check_results_responses.go @@ -62,12 +62,12 @@ type GetSecurityCheckResultsOK struct { func (o *GetSecurityCheckResultsOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/GetCheckResults][%d] getSecurityCheckResultsOk %+v", 200, o.Payload) } - func (o *GetSecurityCheckResultsOK) GetPayload() *GetSecurityCheckResultsOKBody { return o.Payload } func (o *GetSecurityCheckResultsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetSecurityCheckResultsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetSecurityCheckResultsDefault) Code() int { func (o *GetSecurityCheckResultsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/GetCheckResults][%d] GetSecurityCheckResults default %+v", o._statusCode, o.Payload) } - func (o *GetSecurityCheckResultsDefault) GetPayload() *GetSecurityCheckResultsDefaultBody { return o.Payload } func (o *GetSecurityCheckResultsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetSecurityCheckResultsDefaultBody) // response payload @@ -125,6 +125,7 @@ GetSecurityCheckResultsDefaultBody get security check results default body swagger:model GetSecurityCheckResultsDefaultBody */ type GetSecurityCheckResultsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *GetSecurityCheckResultsDefaultBody) ContextValidate(ctx context.Context } func (o *GetSecurityCheckResultsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *GetSecurityCheckResultsDefaultBody) contextValidateDetails(ctx context. return err } } + } return nil @@ -229,6 +233,7 @@ GetSecurityCheckResultsDefaultBodyDetailsItems0 get security check results defau swagger:model GetSecurityCheckResultsDefaultBodyDetailsItems0 */ type GetSecurityCheckResultsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ GetSecurityCheckResultsOKBody get security check results OK body swagger:model GetSecurityCheckResultsOKBody */ type GetSecurityCheckResultsOKBody struct { + // results Results []*GetSecurityCheckResultsOKBodyResultsItems0 `json:"results"` } @@ -325,7 +331,9 @@ func (o *GetSecurityCheckResultsOKBody) ContextValidate(ctx context.Context, for } func (o *GetSecurityCheckResultsOKBody) contextValidateResults(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Results); i++ { + if o.Results[i] != nil { if err := o.Results[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +344,7 @@ func (o *GetSecurityCheckResultsOKBody) contextValidateResults(ctx context.Conte return err } } + } return nil @@ -364,6 +373,7 @@ GetSecurityCheckResultsOKBodyResultsItems0 SecurityCheckResult represents the ch swagger:model GetSecurityCheckResultsOKBodyResultsItems0 */ type GetSecurityCheckResultsOKBodyResultsItems0 struct { + // summary Summary string `json:"summary,omitempty"` diff --git a/api/managementpb/json/client/security_checks/list_failed_services_parameters.go b/api/managementpb/json/client/security_checks/list_failed_services_parameters.go index 72d842a5c6..38f79dc68c 100644 --- a/api/managementpb/json/client/security_checks/list_failed_services_parameters.go +++ b/api/managementpb/json/client/security_checks/list_failed_services_parameters.go @@ -60,6 +60,7 @@ ListFailedServicesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListFailedServicesParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListFailedServicesParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListFailedServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/list_failed_services_responses.go b/api/managementpb/json/client/security_checks/list_failed_services_responses.go index 5720854349..5b4a499acc 100644 --- a/api/managementpb/json/client/security_checks/list_failed_services_responses.go +++ b/api/managementpb/json/client/security_checks/list_failed_services_responses.go @@ -60,12 +60,12 @@ type ListFailedServicesOK struct { func (o *ListFailedServicesOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ListFailedServices][%d] listFailedServicesOk %+v", 200, o.Payload) } - func (o *ListFailedServicesOK) GetPayload() *ListFailedServicesOKBody { return o.Payload } func (o *ListFailedServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListFailedServicesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListFailedServicesDefault) Code() int { func (o *ListFailedServicesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ListFailedServices][%d] ListFailedServices default %+v", o._statusCode, o.Payload) } - func (o *ListFailedServicesDefault) GetPayload() *ListFailedServicesDefaultBody { return o.Payload } func (o *ListFailedServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListFailedServicesDefaultBody) // response payload @@ -123,6 +123,7 @@ ListFailedServicesDefaultBody list failed services default body swagger:model ListFailedServicesDefaultBody */ type ListFailedServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *ListFailedServicesDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListFailedServicesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *ListFailedServicesDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -227,6 +231,7 @@ ListFailedServicesDefaultBodyDetailsItems0 list failed services default body det swagger:model ListFailedServicesDefaultBodyDetailsItems0 */ type ListFailedServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ ListFailedServicesOKBody list failed services OK body swagger:model ListFailedServicesOKBody */ type ListFailedServicesOKBody struct { + // result Result []*ListFailedServicesOKBodyResultItems0 `json:"result"` } @@ -323,7 +329,9 @@ func (o *ListFailedServicesOKBody) ContextValidate(ctx context.Context, formats } func (o *ListFailedServicesOKBody) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Result); i++ { + if o.Result[i] != nil { if err := o.Result[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -334,6 +342,7 @@ func (o *ListFailedServicesOKBody) contextValidateResult(ctx context.Context, fo return err } } + } return nil @@ -362,6 +371,7 @@ ListFailedServicesOKBodyResultItems0 CheckResultSummary is a summary of check re swagger:model ListFailedServicesOKBodyResultItems0 */ type ListFailedServicesOKBodyResultItems0 struct { + // service name ServiceName string `json:"service_name,omitempty"` diff --git a/api/managementpb/json/client/security_checks/list_security_checks_parameters.go b/api/managementpb/json/client/security_checks/list_security_checks_parameters.go index cee211cf84..5ca872ec7b 100644 --- a/api/managementpb/json/client/security_checks/list_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/list_security_checks_parameters.go @@ -60,6 +60,7 @@ ListSecurityChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListSecurityChecksParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ListSecurityChecksParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListSecurityChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/list_security_checks_responses.go b/api/managementpb/json/client/security_checks/list_security_checks_responses.go index c5702dda19..cf9d54ae23 100644 --- a/api/managementpb/json/client/security_checks/list_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/list_security_checks_responses.go @@ -62,12 +62,12 @@ type ListSecurityChecksOK struct { func (o *ListSecurityChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/List][%d] listSecurityChecksOk %+v", 200, o.Payload) } - func (o *ListSecurityChecksOK) GetPayload() *ListSecurityChecksOKBody { return o.Payload } func (o *ListSecurityChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListSecurityChecksOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListSecurityChecksDefault) Code() int { func (o *ListSecurityChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/List][%d] ListSecurityChecks default %+v", o._statusCode, o.Payload) } - func (o *ListSecurityChecksDefault) GetPayload() *ListSecurityChecksDefaultBody { return o.Payload } func (o *ListSecurityChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListSecurityChecksDefaultBody) // response payload @@ -125,6 +125,7 @@ ListSecurityChecksDefaultBody list security checks default body swagger:model ListSecurityChecksDefaultBody */ type ListSecurityChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *ListSecurityChecksDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListSecurityChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *ListSecurityChecksDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -229,6 +233,7 @@ ListSecurityChecksDefaultBodyDetailsItems0 list security checks default body det swagger:model ListSecurityChecksDefaultBodyDetailsItems0 */ type ListSecurityChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ ListSecurityChecksOKBody list security checks OK body swagger:model ListSecurityChecksOKBody */ type ListSecurityChecksOKBody struct { + // checks Checks []*ListSecurityChecksOKBodyChecksItems0 `json:"checks"` } @@ -325,7 +331,9 @@ func (o *ListSecurityChecksOKBody) ContextValidate(ctx context.Context, formats } func (o *ListSecurityChecksOKBody) contextValidateChecks(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Checks); i++ { + if o.Checks[i] != nil { if err := o.Checks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -336,6 +344,7 @@ func (o *ListSecurityChecksOKBody) contextValidateChecks(ctx context.Context, fo return err } } + } return nil @@ -364,6 +373,7 @@ ListSecurityChecksOKBodyChecksItems0 SecurityCheck contains check name and statu swagger:model ListSecurityChecksOKBodyChecksItems0 */ type ListSecurityChecksOKBodyChecksItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/json/client/security_checks/start_security_checks_parameters.go b/api/managementpb/json/client/security_checks/start_security_checks_parameters.go index 71f2f60549..ef322b5fe7 100644 --- a/api/managementpb/json/client/security_checks/start_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/start_security_checks_parameters.go @@ -60,6 +60,7 @@ StartSecurityChecksParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type StartSecurityChecksParams struct { + // Body. Body StartSecurityChecksBody @@ -129,6 +130,7 @@ func (o *StartSecurityChecksParams) SetBody(body StartSecurityChecksBody) { // WriteToRequest writes these params to a swagger request func (o *StartSecurityChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/start_security_checks_responses.go b/api/managementpb/json/client/security_checks/start_security_checks_responses.go index 8ca64fa631..7857206ea2 100644 --- a/api/managementpb/json/client/security_checks/start_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/start_security_checks_responses.go @@ -60,12 +60,12 @@ type StartSecurityChecksOK struct { func (o *StartSecurityChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Start][%d] startSecurityChecksOk %+v", 200, o.Payload) } - func (o *StartSecurityChecksOK) GetPayload() interface{} { return o.Payload } func (o *StartSecurityChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *StartSecurityChecksDefault) Code() int { func (o *StartSecurityChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Start][%d] StartSecurityChecks default %+v", o._statusCode, o.Payload) } - func (o *StartSecurityChecksDefault) GetPayload() *StartSecurityChecksDefaultBody { return o.Payload } func (o *StartSecurityChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartSecurityChecksDefaultBody) // response payload @@ -121,6 +121,7 @@ StartSecurityChecksBody start security checks body swagger:model StartSecurityChecksBody */ type StartSecurityChecksBody struct { + // Names of the checks that should be started. Names []string `json:"names"` } @@ -158,6 +159,7 @@ StartSecurityChecksDefaultBody start security checks default body swagger:model StartSecurityChecksDefaultBody */ type StartSecurityChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *StartSecurityChecksDefaultBody) ContextValidate(ctx context.Context, fo } func (o *StartSecurityChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *StartSecurityChecksDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -262,6 +267,7 @@ StartSecurityChecksDefaultBodyDetailsItems0 start security checks default body d swagger:model StartSecurityChecksDefaultBodyDetailsItems0 */ type StartSecurityChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go b/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go index 9ebd6258a3..e75fc485f0 100644 --- a/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go +++ b/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go @@ -60,6 +60,7 @@ ToggleCheckAlertParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ToggleCheckAlertParams struct { + // Body. Body ToggleCheckAlertBody @@ -129,6 +130,7 @@ func (o *ToggleCheckAlertParams) SetBody(body ToggleCheckAlertBody) { // WriteToRequest writes these params to a swagger request func (o *ToggleCheckAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go b/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go index 7ef640998f..4b08115b05 100644 --- a/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go +++ b/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go @@ -60,12 +60,12 @@ type ToggleCheckAlertOK struct { func (o *ToggleCheckAlertOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ToggleCheckAlert][%d] toggleCheckAlertOk %+v", 200, o.Payload) } - func (o *ToggleCheckAlertOK) GetPayload() interface{} { return o.Payload } func (o *ToggleCheckAlertOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ToggleCheckAlertDefault) Code() int { func (o *ToggleCheckAlertDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ToggleCheckAlert][%d] ToggleCheckAlert default %+v", o._statusCode, o.Payload) } - func (o *ToggleCheckAlertDefault) GetPayload() *ToggleCheckAlertDefaultBody { return o.Payload } func (o *ToggleCheckAlertDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ToggleCheckAlertDefaultBody) // response payload @@ -121,6 +121,7 @@ ToggleCheckAlertBody toggle check alert body swagger:model ToggleCheckAlertBody */ type ToggleCheckAlertBody struct { + // Alert ID of the check result. AlertID string `json:"alert_id,omitempty"` @@ -161,6 +162,7 @@ ToggleCheckAlertDefaultBody toggle check alert default body swagger:model ToggleCheckAlertDefaultBody */ type ToggleCheckAlertDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *ToggleCheckAlertDefaultBody) ContextValidate(ctx context.Context, forma } func (o *ToggleCheckAlertDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *ToggleCheckAlertDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -265,6 +270,7 @@ ToggleCheckAlertDefaultBodyDetailsItems0 toggle check alert default body details swagger:model ToggleCheckAlertDefaultBodyDetailsItems0 */ type ToggleCheckAlertDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/service/remove_service_parameters.go b/api/managementpb/json/client/service/remove_service_parameters.go index 8e50ba2a18..ecf4d056b8 100644 --- a/api/managementpb/json/client/service/remove_service_parameters.go +++ b/api/managementpb/json/client/service/remove_service_parameters.go @@ -60,6 +60,7 @@ RemoveServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveServiceParams struct { + // Body. Body RemoveServiceBody @@ -129,6 +130,7 @@ func (o *RemoveServiceParams) SetBody(body RemoveServiceBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/service/remove_service_responses.go b/api/managementpb/json/client/service/remove_service_responses.go index 054bb9437b..4e197ba1ed 100644 --- a/api/managementpb/json/client/service/remove_service_responses.go +++ b/api/managementpb/json/client/service/remove_service_responses.go @@ -62,12 +62,12 @@ type RemoveServiceOK struct { func (o *RemoveServiceOK) Error() string { return fmt.Sprintf("[POST /v1/management/Service/Remove][%d] removeServiceOk %+v", 200, o.Payload) } - func (o *RemoveServiceOK) GetPayload() interface{} { return o.Payload } func (o *RemoveServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *RemoveServiceDefault) Code() int { func (o *RemoveServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Service/Remove][%d] RemoveService default %+v", o._statusCode, o.Payload) } - func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { return o.Payload } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -123,6 +123,7 @@ RemoveServiceBody remove service body swagger:model RemoveServiceBody */ type RemoveServiceBody struct { + // ServiceType describes supported Service types. // Enum: [SERVICE_TYPE_INVALID MYSQL_SERVICE MONGODB_SERVICE POSTGRESQL_SERVICE PROXYSQL_SERVICE HAPROXY_SERVICE EXTERNAL_SERVICE] ServiceType *string `json:"service_type,omitempty"` @@ -234,6 +235,7 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -299,7 +301,9 @@ func (o *RemoveServiceDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -310,6 +314,7 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -338,6 +343,7 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/managementpb.json b/api/managementpb/json/managementpb.json index 05e81bdf0c..f9d8139403 100644 --- a/api/managementpb/json/managementpb.json +++ b/api/managementpb/json/managementpb.json @@ -1528,11 +1528,6 @@ "type": "string", "x-order": 12 }, - "credentials_source": { - "type": "string", - "title": "Credentials provider", - "x-order": 18 - }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -1608,6 +1603,11 @@ "type": "string", "x-order": 4 }, + "service_params_source": { + "type": "string", + "title": "Service parameters", + "x-order": 18 + }, "skip_connection_check": { "description": "Skip connection check.", "type": "boolean", @@ -1876,11 +1876,6 @@ "type": "string", "x-order": 11 }, - "credentials_source": { - "type": "string", - "title": "Credentials provider", - "x-order": 16 - }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -1946,6 +1941,11 @@ "type": "string", "x-order": 4 }, + "service_params_source": { + "type": "string", + "title": "Service parameters", + "x-order": 16 + }, "skip_connection_check": { "description": "Skip connection check.", "type": "boolean", @@ -2230,11 +2230,6 @@ "title": "Collections limit. Only get Databases and collection stats if the total number of collections in the server\nis less than this value. 0: no limit", "x-order": 27 }, - "credentials_source": { - "type": "string", - "title": "Credentials provider", - "x-order": 30 - }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -2327,6 +2322,11 @@ "type": "string", "x-order": 3 }, + "service_params_source": { + "type": "string", + "title": "Service parameters", + "x-order": 30 + }, "skip_connection_check": { "description": "Skip connection check.", "type": "boolean", @@ -2789,11 +2789,6 @@ "type": "string", "x-order": 9 }, - "credentials_source": { - "type": "string", - "title": "Credentials provider", - "x-order": 30 - }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -2903,6 +2898,11 @@ "type": "string", "x-order": 3 }, + "service_params_source": { + "type": "string", + "title": "Service parameters", + "x-order": 30 + }, "skip_connection_check": { "description": "Skip connection check.", "type": "boolean", @@ -3827,11 +3827,6 @@ "type": "string", "x-order": 10 }, - "credentials_source": { - "type": "string", - "title": "Credentials provider", - "x-order": 29 - }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -3940,6 +3935,11 @@ "type": "string", "x-order": 3 }, + "service_params_source": { + "type": "string", + "title": "Service parameters", + "x-order": 29 + }, "skip_connection_check": { "description": "Skip connection check.", "type": "boolean", @@ -4481,11 +4481,6 @@ "type": "string", "x-order": 9 }, - "credentials_source": { - "type": "string", - "title": "Credentials provider", - "x-order": 21 - }, "custom_labels": { "description": "Custom user-assigned labels for Service.", "type": "object", @@ -4568,6 +4563,11 @@ "type": "string", "x-order": 3 }, + "service_params_source": { + "type": "string", + "title": "Service parameters", + "x-order": 21 + }, "skip_connection_check": { "description": "Skip connection check.", "type": "boolean", diff --git a/api/managementpb/metrics.pb.go b/api/managementpb/metrics.pb.go index f81729c138..de8e9d70ea 100644 --- a/api/managementpb/metrics.pb.go +++ b/api/managementpb/metrics.pb.go @@ -7,11 +7,10 @@ package managementpb import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -104,13 +103,10 @@ func file_managementpb_metrics_proto_rawDescGZIP() []byte { return file_managementpb_metrics_proto_rawDescData } -var ( - file_managementpb_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_metrics_proto_goTypes = []interface{}{ - (MetricsMode)(0), // 0: management.MetricsMode - } -) - +var file_managementpb_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_metrics_proto_goTypes = []interface{}{ + (MetricsMode)(0), // 0: management.MetricsMode +} var file_managementpb_metrics_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/metrics.validator.pb.go b/api/managementpb/metrics.validator.pb.go index ea97904062..2a216f658c 100644 --- a/api/managementpb/metrics.validator.pb.go +++ b/api/managementpb/metrics.validator.pb.go @@ -6,13 +6,10 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/managementpb/mongodb.pb.go b/api/managementpb/mongodb.pb.go index 52d3912d93..304a4a48aa 100644 --- a/api/managementpb/mongodb.pb.go +++ b/api/managementpb/mongodb.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -102,8 +100,8 @@ type AddMongoDBRequest struct { EnableAllCollectors bool `protobuf:"varint,30,opt,name=enable_all_collectors,json=enableAllCollectors,proto3" json:"enable_all_collectors,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,31,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `protobuf:"bytes,32,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `protobuf:"bytes,32,opt,name=service_params_source,json=serviceParamsSource,proto3" json:"service_params_source,omitempty"` } func (x *AddMongoDBRequest) Reset() { @@ -348,9 +346,9 @@ func (x *AddMongoDBRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } -func (x *AddMongoDBRequest) GetCredentialsSource() string { +func (x *AddMongoDBRequest) GetServiceParamsSource() string { if x != nil { - return x.CredentialsSource + return x.ServiceParamsSource } return "" } @@ -440,7 +438,7 @@ var file_managementpb_mongodb_proto_rawDesc = []byte{ 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf4, 0x0a, 0x0a, 0x11, 0x41, 0x64, + 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x0a, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, @@ -521,63 +519,63 @@ var file_managementpb_mongodb_proto_rawDesc = []byte{ 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, - 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, - 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0xe6, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x10, - 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, - 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, - 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, - 0x62, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x32, 0x93, 0x03, 0x0a, 0x07, 0x4d, 0x6f, - 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x12, 0x87, 0x03, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, - 0x67, 0x6f, 0x44, 0x42, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x02, 0x92, 0x41, 0x90, 0x02, 0x12, 0x0b, 0x41, 0x64, 0x64, 0x20, - 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x1a, 0x80, 0x02, 0x41, 0x64, 0x64, 0x73, 0x20, 0x4d, - 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, - 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, - 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, - 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, - 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, - 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, - 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x6d, - 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, - 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x22, 0x20, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, - 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2f, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, - 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x42, 0x0c, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, - 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, - 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, - 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe6, 0x01, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, + 0x67, 0x6f, 0x44, 0x42, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, + 0x42, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x45, 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, + 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, + 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, + 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x32, 0x93, + 0x03, 0x0a, 0x07, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x12, 0x87, 0x03, 0x0a, 0x0a, 0x41, + 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x12, 0x1d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, + 0x42, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x02, 0x92, 0x41, 0x90, 0x02, 0x12, + 0x0b, 0x41, 0x64, 0x64, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x1a, 0x80, 0x02, 0x41, + 0x64, 0x64, 0x73, 0x20, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x20, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, + 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, + 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, + 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, + 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, + 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, + 0x64, 0x73, 0x20, 0x22, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, + 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, + 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, + 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x44, 0x42, 0x2f, 0x41, 0x64, + 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8f, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x64, 0x62, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, + 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -592,21 +590,18 @@ func file_managementpb_mongodb_proto_rawDescGZIP() []byte { return file_managementpb_mongodb_proto_rawDescData } -var ( - file_managementpb_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_mongodb_proto_goTypes = []interface{}{ - (*AddMongoDBRequest)(nil), // 0: management.AddMongoDBRequest - (*AddMongoDBResponse)(nil), // 1: management.AddMongoDBResponse - nil, // 2: management.AddMongoDBRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.MongoDBService)(nil), // 6: inventory.MongoDBService - (*inventorypb.MongoDBExporter)(nil), // 7: inventory.MongoDBExporter - (*inventorypb.QANMongoDBProfilerAgent)(nil), // 8: inventory.QANMongoDBProfilerAgent - } -) - +var file_managementpb_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_mongodb_proto_goTypes = []interface{}{ + (*AddMongoDBRequest)(nil), // 0: management.AddMongoDBRequest + (*AddMongoDBResponse)(nil), // 1: management.AddMongoDBResponse + nil, // 2: management.AddMongoDBRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.MongoDBService)(nil), // 6: inventory.MongoDBService + (*inventorypb.MongoDBExporter)(nil), // 7: inventory.MongoDBExporter + (*inventorypb.QANMongoDBProfilerAgent)(nil), // 8: inventory.QANMongoDBProfilerAgent +} var file_managementpb_mongodb_proto_depIdxs = []int32{ 3, // 0: management.AddMongoDBRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddMongoDBRequest.custom_labels:type_name -> management.AddMongoDBRequest.CustomLabelsEntry diff --git a/api/managementpb/mongodb.pb.gw.go b/api/managementpb/mongodb.pb.gw.go index bece3f062a..e30c9f021e 100644 --- a/api/managementpb/mongodb.pb.gw.go +++ b/api/managementpb/mongodb.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.Marshaler, client MongoDBClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddMongoDBRequest @@ -47,6 +45,7 @@ func request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.AddMongoDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.Marshaler, server MongoDBServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.M msg, err := server.AddMongoDB(ctx, &protoReq) return msg, metadata, err + } // RegisterMongoDBHandlerServer registers the http handlers for service MongoDB to "mux". @@ -70,6 +70,7 @@ func local_request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMongoDBHandlerFromEndpoint instead. func RegisterMongoDBHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MongoDBServer) error { + mux.Handle("POST", pattern_MongoDB_AddMongoDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterMongoDBHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_MongoDB_AddMongoDB_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterMongoDBHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MongoDBClient" to call the correct interceptors. func RegisterMongoDBHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MongoDBClient) error { + mux.Handle("POST", pattern_MongoDB_AddMongoDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterMongoDBHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_MongoDB_AddMongoDB_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_MongoDB_AddMongoDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MongoDB", "Add"}, "")) +var ( + pattern_MongoDB_AddMongoDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MongoDB", "Add"}, "")) +) -var forward_MongoDB_AddMongoDB_0 = runtime.ForwardResponseMessage +var ( + forward_MongoDB_AddMongoDB_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/mongodb.proto b/api/managementpb/mongodb.proto index e5a4225b9f..efbc4e0fdb 100644 --- a/api/managementpb/mongodb.proto +++ b/api/managementpb/mongodb.proto @@ -98,8 +98,8 @@ message AddMongoDBRequest { bool enable_all_collectors = 30; // Exporter log level inventory.LogLevel log_level = 31; - // Credentials provider - string credentials_source = 32; + // Service parameters + string service_params_source = 32; } message AddMongoDBResponse { diff --git a/api/managementpb/mongodb.validator.pb.go b/api/managementpb/mongodb.validator.pb.go index c2c089f6a4..e8879cc8ad 100644 --- a/api/managementpb/mongodb.validator.pb.go +++ b/api/managementpb/mongodb.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddMongoDBRequest) Validate() error { if this.AddNode != nil { @@ -38,7 +34,6 @@ func (this *AddMongoDBRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddMongoDBResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/mongodb_grpc.pb.go b/api/managementpb/mongodb_grpc.pb.go index e6a83cd061..8b59db9608 100644 --- a/api/managementpb/mongodb_grpc.pb.go +++ b/api/managementpb/mongodb_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -60,7 +59,8 @@ type MongoDBServer interface { } // UnimplementedMongoDBServer must be embedded to have forward compatible implementations. -type UnimplementedMongoDBServer struct{} +type UnimplementedMongoDBServer struct { +} func (UnimplementedMongoDBServer) AddMongoDB(context.Context, *AddMongoDBRequest) (*AddMongoDBResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMongoDB not implemented") diff --git a/api/managementpb/mysql.pb.go b/api/managementpb/mysql.pb.go index 9ae92fae30..67410480bb 100644 --- a/api/managementpb/mysql.pb.go +++ b/api/managementpb/mysql.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -103,8 +101,8 @@ type AddMySQLRequest struct { AgentPassword string `protobuf:"bytes,28,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,29,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `protobuf:"bytes,31,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `protobuf:"bytes,31,opt,name=service_params_source,json=serviceParamsSource,proto3" json:"service_params_source,omitempty"` } func (x *AddMySQLRequest) Reset() { @@ -349,9 +347,9 @@ func (x *AddMySQLRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } -func (x *AddMySQLRequest) GetCredentialsSource() string { +func (x *AddMySQLRequest) GetServiceParamsSource() string { if x != nil { - return x.CredentialsSource + return x.ServiceParamsSource } return "" } @@ -458,7 +456,7 @@ var file_managementpb_mysql_proto_rawDesc = []byte{ 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, - 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x0a, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, + 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x0a, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, @@ -534,69 +532,69 @@ var file_managementpb_mysql_proto_rawDesc = []byte{ 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, - 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, - 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0xcd, 0x02, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, - 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x6d, 0x79, - 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, - 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0e, - 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x54, - 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, - 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x65, 0x72, 0x66, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, - 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x4d, - 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x0f, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, - 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x32, 0x84, 0x03, 0x0a, 0x05, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xfa, 0x02, 0x0a, - 0x08, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1b, 0x2e, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb2, 0x02, 0x92, 0x41, 0x8b, 0x02, 0x12, 0x09, 0x41, 0x64, 0x64, - 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xfd, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x4d, 0x79, - 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, - 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, - 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x6d, 0x79, 0x73, 0x71, - 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x20, 0x61, 0x6e, - 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x65, 0x72, - 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x20, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x20, - 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, - 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x76, - 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4d, 0x79, 0x53, - 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8d, 0x01, 0x0a, 0x0e, 0x63, 0x6f, - 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x4d, 0x79, - 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, - 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x65, 0x6c, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcd, 0x02, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x42, 0x0a, 0x0f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x52, 0x0e, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x45, 0x78, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x72, 0x12, 0x54, 0x0a, 0x14, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, + 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, + 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x50, 0x65, 0x72, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x12, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, + 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x4b, 0x0a, 0x11, 0x71, 0x61, 0x6e, + 0x5f, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x73, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x51, 0x41, 0x4e, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x0f, 0x71, 0x61, 0x6e, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x53, + 0x6c, 0x6f, 0x77, 0x6c, 0x6f, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x84, 0x03, 0x0a, 0x05, 0x4d, 0x79, 0x53, 0x51, + 0x4c, 0x12, 0xfa, 0x02, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1b, + 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, + 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x4d, 0x79, 0x53, 0x51, + 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb2, 0x02, 0x92, 0x41, 0x8b, 0x02, + 0x12, 0x09, 0x41, 0x64, 0x64, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xfd, 0x01, 0x41, 0x64, + 0x64, 0x73, 0x20, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, + 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, + 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, + 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, + 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, + 0x22, 0x6d, 0x79, 0x73, 0x71, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, + 0x22, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x6d, 0x79, 0x73, 0x71, + 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x66, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x20, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1d, 0x22, 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2f, 0x4d, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x8d, + 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x0a, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, + 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, + 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -611,22 +609,19 @@ func file_managementpb_mysql_proto_rawDescGZIP() []byte { return file_managementpb_mysql_proto_rawDescData } -var ( - file_managementpb_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_mysql_proto_goTypes = []interface{}{ - (*AddMySQLRequest)(nil), // 0: management.AddMySQLRequest - (*AddMySQLResponse)(nil), // 1: management.AddMySQLResponse - nil, // 2: management.AddMySQLRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.MySQLService)(nil), // 6: inventory.MySQLService - (*inventorypb.MySQLdExporter)(nil), // 7: inventory.MySQLdExporter - (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent - (*inventorypb.QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent - } -) - +var file_managementpb_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_mysql_proto_goTypes = []interface{}{ + (*AddMySQLRequest)(nil), // 0: management.AddMySQLRequest + (*AddMySQLResponse)(nil), // 1: management.AddMySQLResponse + nil, // 2: management.AddMySQLRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.MySQLService)(nil), // 6: inventory.MySQLService + (*inventorypb.MySQLdExporter)(nil), // 7: inventory.MySQLdExporter + (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent + (*inventorypb.QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent +} var file_managementpb_mysql_proto_depIdxs = []int32{ 3, // 0: management.AddMySQLRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddMySQLRequest.custom_labels:type_name -> management.AddMySQLRequest.CustomLabelsEntry diff --git a/api/managementpb/mysql.pb.gw.go b/api/managementpb/mysql.pb.gw.go index a586eb6377..f86f5fdfd4 100644 --- a/api/managementpb/mysql.pb.gw.go +++ b/api/managementpb/mysql.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marshaler, client MySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddMySQLRequest @@ -47,6 +45,7 @@ func request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.AddMySQL(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marshaler, server MySQLServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marsh msg, err := server.AddMySQL(ctx, &protoReq) return msg, metadata, err + } // RegisterMySQLHandlerServer registers the http handlers for service MySQL to "mux". @@ -70,6 +70,7 @@ func local_request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marsh // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMySQLHandlerFromEndpoint instead. func RegisterMySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MySQLServer) error { + mux.Handle("POST", pattern_MySQL_AddMySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterMySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_MySQL_AddMySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterMySQLHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MySQLClient" to call the correct interceptors. func RegisterMySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MySQLClient) error { + mux.Handle("POST", pattern_MySQL_AddMySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterMySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_MySQL_AddMySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_MySQL_AddMySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MySQL", "Add"}, "")) +var ( + pattern_MySQL_AddMySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MySQL", "Add"}, "")) +) -var forward_MySQL_AddMySQL_0 = runtime.ForwardResponseMessage +var ( + forward_MySQL_AddMySQL_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/mysql.proto b/api/managementpb/mysql.proto index 9a753c516c..2699d96d1c 100644 --- a/api/managementpb/mysql.proto +++ b/api/managementpb/mysql.proto @@ -96,8 +96,8 @@ message AddMySQLRequest { string agent_password = 28; // Exporter log level inventory.LogLevel log_level = 29; - // Credentials provider - string credentials_source = 31; + // Service parameters + string service_params_source = 31; } message AddMySQLResponse { diff --git a/api/managementpb/mysql.validator.pb.go b/api/managementpb/mysql.validator.pb.go index 3ca0022510..d8243501b6 100644 --- a/api/managementpb/mysql.validator.pb.go +++ b/api/managementpb/mysql.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" - - _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddMySQLRequest) Validate() error { if this.AddNode != nil { @@ -38,7 +34,6 @@ func (this *AddMySQLRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddMySQLResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/mysql_grpc.pb.go b/api/managementpb/mysql_grpc.pb.go index aac9d401ba..eb4b3dfdf6 100644 --- a/api/managementpb/mysql_grpc.pb.go +++ b/api/managementpb/mysql_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -60,7 +59,8 @@ type MySQLServer interface { } // UnimplementedMySQLServer must be embedded to have forward compatible implementations. -type UnimplementedMySQLServer struct{} +type UnimplementedMySQLServer struct { +} func (UnimplementedMySQLServer) AddMySQL(context.Context, *AddMySQLRequest) (*AddMySQLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMySQL not implemented") diff --git a/api/managementpb/node.pb.go b/api/managementpb/node.pb.go index ff8963d0f4..2b6068deb1 100644 --- a/api/managementpb/node.pb.go +++ b/api/managementpb/node.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -374,20 +372,17 @@ func file_managementpb_node_proto_rawDescGZIP() []byte { return file_managementpb_node_proto_rawDescData } -var ( - file_managementpb_node_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_node_proto_goTypes = []interface{}{ - (*RegisterNodeRequest)(nil), // 0: management.RegisterNodeRequest - (*RegisterNodeResponse)(nil), // 1: management.RegisterNodeResponse - nil, // 2: management.RegisterNodeRequest.CustomLabelsEntry - (inventorypb.NodeType)(0), // 3: inventory.NodeType - (MetricsMode)(0), // 4: management.MetricsMode - (*inventorypb.GenericNode)(nil), // 5: inventory.GenericNode - (*inventorypb.ContainerNode)(nil), // 6: inventory.ContainerNode - (*inventorypb.PMMAgent)(nil), // 7: inventory.PMMAgent - } -) - +var file_managementpb_node_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_node_proto_goTypes = []interface{}{ + (*RegisterNodeRequest)(nil), // 0: management.RegisterNodeRequest + (*RegisterNodeResponse)(nil), // 1: management.RegisterNodeResponse + nil, // 2: management.RegisterNodeRequest.CustomLabelsEntry + (inventorypb.NodeType)(0), // 3: inventory.NodeType + (MetricsMode)(0), // 4: management.MetricsMode + (*inventorypb.GenericNode)(nil), // 5: inventory.GenericNode + (*inventorypb.ContainerNode)(nil), // 6: inventory.ContainerNode + (*inventorypb.PMMAgent)(nil), // 7: inventory.PMMAgent +} var file_managementpb_node_proto_depIdxs = []int32{ 3, // 0: management.RegisterNodeRequest.node_type:type_name -> inventory.NodeType 2, // 1: management.RegisterNodeRequest.custom_labels:type_name -> management.RegisterNodeRequest.CustomLabelsEntry diff --git a/api/managementpb/node.pb.gw.go b/api/managementpb/node.pb.gw.go index 337f41af22..a78f2f860a 100644 --- a/api/managementpb/node.pb.gw.go +++ b/api/managementpb/node.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodeClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RegisterNodeRequest @@ -47,6 +45,7 @@ func request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.RegisterNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodeServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Ma msg, err := server.RegisterNode(ctx, &protoReq) return msg, metadata, err + } // RegisterNodeHandlerServer registers the http handlers for service Node to "mux". @@ -70,6 +70,7 @@ func local_request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNodeHandlerFromEndpoint instead. func RegisterNodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodeServer) error { + mux.Handle("POST", pattern_Node_RegisterNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterNodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve } forward_Node_RegisterNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterNodeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc. // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "NodeClient" to call the correct interceptors. func RegisterNodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodeClient) error { + mux.Handle("POST", pattern_Node_RegisterNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterNodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien } forward_Node_RegisterNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_Node_RegisterNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Node", "Register"}, "")) +var ( + pattern_Node_RegisterNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Node", "Register"}, "")) +) -var forward_Node_RegisterNode_0 = runtime.ForwardResponseMessage +var ( + forward_Node_RegisterNode_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/node.validator.pb.go b/api/managementpb/node.validator.pb.go index 00b38b52c8..67eb21120c 100644 --- a/api/managementpb/node.validator.pb.go +++ b/api/managementpb/node.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *RegisterNodeRequest) Validate() error { if this.NodeName == "" { @@ -30,7 +26,6 @@ func (this *RegisterNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *RegisterNodeResponse) Validate() error { if this.GenericNode != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.GenericNode); err != nil { diff --git a/api/managementpb/node_grpc.pb.go b/api/managementpb/node_grpc.pb.go index b00dc551e1..9df1c94bd9 100644 --- a/api/managementpb/node_grpc.pb.go +++ b/api/managementpb/node_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type NodeServer interface { } // UnimplementedNodeServer must be embedded to have forward compatible implementations. -type UnimplementedNodeServer struct{} +type UnimplementedNodeServer struct { +} func (UnimplementedNodeServer) RegisterNode(context.Context, *RegisterNodeRequest) (*RegisterNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterNode not implemented") diff --git a/api/managementpb/pagination.pb.go b/api/managementpb/pagination.pb.go index d7dfbadbb9..3e5cc2841e 100644 --- a/api/managementpb/pagination.pb.go +++ b/api/managementpb/pagination.pb.go @@ -7,12 +7,11 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/mwitkow/go-proto-validators" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -182,14 +181,11 @@ func file_managementpb_pagination_proto_rawDescGZIP() []byte { return file_managementpb_pagination_proto_rawDescData } -var ( - file_managementpb_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_managementpb_pagination_proto_goTypes = []interface{}{ - (*PageParams)(nil), // 0: management.PageParams - (*PageTotals)(nil), // 1: management.PageTotals - } -) - +var file_managementpb_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_managementpb_pagination_proto_goTypes = []interface{}{ + (*PageParams)(nil), // 0: management.PageParams + (*PageTotals)(nil), // 1: management.PageTotals +} var file_managementpb_pagination_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/pagination.validator.pb.go b/api/managementpb/pagination.validator.pb.go index dc7c891f82..e05d330be3 100644 --- a/api/managementpb/pagination.validator.pb.go +++ b/api/managementpb/pagination.validator.pb.go @@ -6,18 +6,15 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *PageParams) Validate() error { if !(this.PageSize > 0) { @@ -28,7 +25,6 @@ func (this *PageParams) Validate() error { } return nil } - func (this *PageTotals) Validate() error { return nil } diff --git a/api/managementpb/postgresql.pb.go b/api/managementpb/postgresql.pb.go index 16a3494d12..169c83473b 100644 --- a/api/managementpb/postgresql.pb.go +++ b/api/managementpb/postgresql.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -97,8 +95,8 @@ type AddPostgreSQLRequest struct { AgentPassword string `protobuf:"bytes,26,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,28,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `protobuf:"bytes,30,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `protobuf:"bytes,30,opt,name=service_params_source,json=serviceParamsSource,proto3" json:"service_params_source,omitempty"` } func (x *AddPostgreSQLRequest) Reset() { @@ -336,9 +334,9 @@ func (x *AddPostgreSQLRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } -func (x *AddPostgreSQLRequest) GetCredentialsSource() string { +func (x *AddPostgreSQLRequest) GetServiceParamsSource() string { if x != nil { - return x.CredentialsSource + return x.ServiceParamsSource } return "" } @@ -436,7 +434,7 @@ var file_managementpb_postgresql_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, - 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x0a, 0x0a, + 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x0a, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, @@ -511,72 +509,73 @@ var file_managementpb_postgresql_proto_rawDesc = []byte{ 0x64, 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x88, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, - 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, - 0x72, 0x65, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, - 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, - 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, - 0x74, 0x0a, 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, - 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x77, 0x0a, 0x22, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, - 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, - 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, - 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1f, 0x71, - 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, - 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x32, 0x81, - 0x03, 0x0a, 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, 0xf2, 0x02, - 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x12, - 0x20, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, - 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, - 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x02, 0x92, 0x41, 0xef, 0x01, 0x12, 0x0e, 0x41, 0x64, 0x64, - 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x1a, 0xdc, 0x01, 0x41, 0x64, - 0x64, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, - 0x20, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, - 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, - 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, - 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, - 0x01, 0x2a, 0x42, 0x92, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, - 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, - 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x76, 0x65, 0x6c, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x1e, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x03, 0x0a, 0x15, 0x41, 0x64, 0x64, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x6f, + 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x72, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x12, 0x74, 0x0a, 0x21, 0x71, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, + 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x1e, 0x71, 0x61, 0x6e, 0x50, + 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x77, 0x0a, 0x22, 0x71, 0x61, + 0x6e, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x5f, 0x70, 0x67, 0x73, + 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, + 0x72, 0x79, 0x2e, 0x51, 0x41, 0x4e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x50, 0x67, 0x53, 0x74, 0x61, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x1f, 0x71, 0x61, 0x6e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x71, + 0x6c, 0x50, 0x67, 0x73, 0x74, 0x61, 0x74, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x32, 0x81, 0x03, 0x0a, 0x0a, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, + 0x51, 0x4c, 0x12, 0xf2, 0x02, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, + 0x65, 0x53, 0x51, 0x4c, 0x12, 0x20, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, + 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x02, 0x92, 0x41, 0xef, 0x01, + 0x12, 0x0e, 0x41, 0x64, 0x64, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x1a, 0xdc, 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, + 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x20, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, + 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, + 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, + 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, + 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, + 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, + 0x65, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, + 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, + 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x53, 0x51, 0x4c, + 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x92, 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x50, 0x6f, 0x73, 0x74, + 0x67, 0x72, 0x65, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, + 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -591,22 +590,19 @@ func file_managementpb_postgresql_proto_rawDescGZIP() []byte { return file_managementpb_postgresql_proto_rawDescData } -var ( - file_managementpb_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_postgresql_proto_goTypes = []interface{}{ - (*AddPostgreSQLRequest)(nil), // 0: management.AddPostgreSQLRequest - (*AddPostgreSQLResponse)(nil), // 1: management.AddPostgreSQLResponse - nil, // 2: management.AddPostgreSQLRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.PostgreSQLService)(nil), // 6: inventory.PostgreSQLService - (*inventorypb.PostgresExporter)(nil), // 7: inventory.PostgresExporter - (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.QANPostgreSQLPgStatementsAgent - (*inventorypb.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.QANPostgreSQLPgStatMonitorAgent - } -) - +var file_managementpb_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_postgresql_proto_goTypes = []interface{}{ + (*AddPostgreSQLRequest)(nil), // 0: management.AddPostgreSQLRequest + (*AddPostgreSQLResponse)(nil), // 1: management.AddPostgreSQLResponse + nil, // 2: management.AddPostgreSQLRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.PostgreSQLService)(nil), // 6: inventory.PostgreSQLService + (*inventorypb.PostgresExporter)(nil), // 7: inventory.PostgresExporter + (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.QANPostgreSQLPgStatementsAgent + (*inventorypb.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.QANPostgreSQLPgStatMonitorAgent +} var file_managementpb_postgresql_proto_depIdxs = []int32{ 3, // 0: management.AddPostgreSQLRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddPostgreSQLRequest.custom_labels:type_name -> management.AddPostgreSQLRequest.CustomLabelsEntry diff --git a/api/managementpb/postgresql.pb.gw.go b/api/managementpb/postgresql.pb.gw.go index 0355b4b1ea..d1c280a6d0 100644 --- a/api/managementpb/postgresql.pb.gw.go +++ b/api/managementpb/postgresql.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler runtime.Marshaler, client PostgreSQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddPostgreSQLRequest @@ -47,6 +45,7 @@ func request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler runtime.M msg, err := client.AddPostgreSQL(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler runtime.Marshaler, server PostgreSQLServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler run msg, err := server.AddPostgreSQL(ctx, &protoReq) return msg, metadata, err + } // RegisterPostgreSQLHandlerServer registers the http handlers for service PostgreSQL to "mux". @@ -70,6 +70,7 @@ func local_request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler run // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPostgreSQLHandlerFromEndpoint instead. func RegisterPostgreSQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostgreSQLServer) error { + mux.Handle("POST", pattern_PostgreSQL_AddPostgreSQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterPostgreSQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_PostgreSQL_AddPostgreSQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterPostgreSQLHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PostgreSQLClient" to call the correct interceptors. func RegisterPostgreSQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostgreSQLClient) error { + mux.Handle("POST", pattern_PostgreSQL_AddPostgreSQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterPostgreSQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_PostgreSQL_AddPostgreSQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_PostgreSQL_AddPostgreSQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "PostgreSQL", "Add"}, "")) +var ( + pattern_PostgreSQL_AddPostgreSQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "PostgreSQL", "Add"}, "")) +) -var forward_PostgreSQL_AddPostgreSQL_0 = runtime.ForwardResponseMessage +var ( + forward_PostgreSQL_AddPostgreSQL_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/postgresql.proto b/api/managementpb/postgresql.proto index 763b5bc7cc..eb4b69d25a 100644 --- a/api/managementpb/postgresql.proto +++ b/api/managementpb/postgresql.proto @@ -90,8 +90,8 @@ message AddPostgreSQLRequest { string agent_password = 26; // Exporter log level inventory.LogLevel log_level = 28; - // Credentials provider - string credentials_source = 30; + // Service parameters + string service_params_source = 30; } message AddPostgreSQLResponse { diff --git a/api/managementpb/postgresql.validator.pb.go b/api/managementpb/postgresql.validator.pb.go index aa082f9cf3..095719b290 100644 --- a/api/managementpb/postgresql.validator.pb.go +++ b/api/managementpb/postgresql.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" + _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddPostgreSQLRequest) Validate() error { if this.AddNode != nil { @@ -38,7 +34,6 @@ func (this *AddPostgreSQLRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddPostgreSQLResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/postgresql_grpc.pb.go b/api/managementpb/postgresql_grpc.pb.go index c4dadde723..575fed23bb 100644 --- a/api/managementpb/postgresql_grpc.pb.go +++ b/api/managementpb/postgresql_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -58,7 +57,8 @@ type PostgreSQLServer interface { } // UnimplementedPostgreSQLServer must be embedded to have forward compatible implementations. -type UnimplementedPostgreSQLServer struct{} +type UnimplementedPostgreSQLServer struct { +} func (UnimplementedPostgreSQLServer) AddPostgreSQL(context.Context, *AddPostgreSQLRequest) (*AddPostgreSQLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPostgreSQL not implemented") diff --git a/api/managementpb/proxysql.pb.go b/api/managementpb/proxysql.pb.go index d00e3ae6cf..b2d5ce8561 100644 --- a/api/managementpb/proxysql.pb.go +++ b/api/managementpb/proxysql.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -81,8 +79,8 @@ type AddProxySQLRequest struct { AgentPassword string `protobuf:"bytes,20,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` // Exporter log level LogLevel inventorypb.LogLevel `protobuf:"varint,21,opt,name=log_level,json=logLevel,proto3,enum=inventory.LogLevel" json:"log_level,omitempty"` - // Credentials provider - CredentialsSource string `protobuf:"bytes,22,opt,name=credentials_source,json=credentialsSource,proto3" json:"credentials_source,omitempty"` + // Service parameters + ServiceParamsSource string `protobuf:"bytes,22,opt,name=service_params_source,json=serviceParamsSource,proto3" json:"service_params_source,omitempty"` } func (x *AddProxySQLRequest) Reset() { @@ -264,9 +262,9 @@ func (x *AddProxySQLRequest) GetLogLevel() inventorypb.LogLevel { return inventorypb.LogLevel(0) } -func (x *AddProxySQLRequest) GetCredentialsSource() string { +func (x *AddProxySQLRequest) GetServiceParamsSource() string { if x != nil { - return x.CredentialsSource + return x.ServiceParamsSource } return "" } @@ -348,7 +346,7 @@ var file_managementpb_proxysql_proto_rawDesc = []byte{ 0x6f, 0x1a, 0x1a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x07, 0x0a, 0x12, 0x41, + 0x65, 0x76, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x07, 0x0a, 0x12, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, @@ -400,57 +398,57 @@ var file_managementpb_proxysql_proto_rawDesc = []byte{ 0x67, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2d, - 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x5f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x3f, 0x0a, - 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x95, - 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x11, - 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, - 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xf0, 0x02, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x53, 0x51, 0x4c, 0x12, 0xe3, 0x02, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, - 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x02, 0x92, 0x41, 0xe8, 0x01, 0x12, 0x0c, 0x41, 0x64, 0x64, - 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xd7, 0x01, 0x41, 0x64, 0x64, 0x73, - 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x20, 0x73, 0x65, 0x76, - 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x20, 0x49, 0x74, 0x20, - 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x61, 0x64, - 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, - 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, - 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x6f, 0x6e, 0x20, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, - 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x22, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x22, - 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, - 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x61, 0x6e, - 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, - 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, 0x01, 0x0a, 0x0e, 0x63, 0x6f, - 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0d, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x65, 0x72, 0x63, 0x6f, 0x6e, - 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0a, 0x4d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x76, 0x65, 0x6c, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x32, + 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x95, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x48, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x69, + 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, + 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x32, 0xf0, 0x02, 0x0a, 0x08, + 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0xe3, 0x02, 0x0a, 0x0b, 0x41, 0x64, 0x64, + 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x12, 0x1e, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, + 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x92, 0x02, 0x92, 0x41, 0xe8, 0x01, + 0x12, 0x0c, 0x41, 0x64, 0x64, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x1a, 0xd7, + 0x01, 0x41, 0x64, 0x64, 0x73, 0x20, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x20, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x73, 0x20, 0x73, 0x65, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x20, 0x49, 0x74, 0x20, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, + 0x6c, 0x79, 0x20, 0x61, 0x64, 0x64, 0x73, 0x20, 0x61, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x20, 0x74, 0x6f, 0x20, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2c, 0x20, + 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, + 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x22, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x69, 0x64, 0x22, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x6e, 0x20, 0x61, 0x64, 0x64, + 0x73, 0x20, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x72, 0x22, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x64, 0x20, 0x22, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, + 0x64, 0x22, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, + 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x50, + 0x72, 0x6f, 0x78, 0x79, 0x53, 0x51, 0x4c, 0x2f, 0x41, 0x64, 0x64, 0x3a, 0x01, 0x2a, 0x42, 0x90, + 0x01, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x42, 0x0d, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x73, 0x71, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, + 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x61, 0x2f, 0x70, 0x6d, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x4d, 0x58, + 0x58, 0xaa, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xca, 0x02, + 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0xe2, 0x02, 0x16, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0a, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -465,20 +463,17 @@ func file_managementpb_proxysql_proto_rawDescGZIP() []byte { return file_managementpb_proxysql_proto_rawDescData } -var ( - file_managementpb_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_managementpb_proxysql_proto_goTypes = []interface{}{ - (*AddProxySQLRequest)(nil), // 0: management.AddProxySQLRequest - (*AddProxySQLResponse)(nil), // 1: management.AddProxySQLResponse - nil, // 2: management.AddProxySQLRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.ProxySQLService)(nil), // 6: inventory.ProxySQLService - (*inventorypb.ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter - } -) - +var file_managementpb_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_managementpb_proxysql_proto_goTypes = []interface{}{ + (*AddProxySQLRequest)(nil), // 0: management.AddProxySQLRequest + (*AddProxySQLResponse)(nil), // 1: management.AddProxySQLResponse + nil, // 2: management.AddProxySQLRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.ProxySQLService)(nil), // 6: inventory.ProxySQLService + (*inventorypb.ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter +} var file_managementpb_proxysql_proto_depIdxs = []int32{ 3, // 0: management.AddProxySQLRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddProxySQLRequest.custom_labels:type_name -> management.AddProxySQLRequest.CustomLabelsEntry diff --git a/api/managementpb/proxysql.pb.gw.go b/api/managementpb/proxysql.pb.gw.go index ac0fa323f5..c39c7e4e76 100644 --- a/api/managementpb/proxysql.pb.gw.go +++ b/api/managementpb/proxysql.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime.Marshaler, client ProxySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddProxySQLRequest @@ -47,6 +45,7 @@ func request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.AddProxySQL(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime.Marshaler, server ProxySQLServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime msg, err := server.AddProxySQL(ctx, &protoReq) return msg, metadata, err + } // RegisterProxySQLHandlerServer registers the http handlers for service ProxySQL to "mux". @@ -70,6 +70,7 @@ func local_request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProxySQLHandlerFromEndpoint instead. func RegisterProxySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProxySQLServer) error { + mux.Handle("POST", pattern_ProxySQL_AddProxySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterProxySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_ProxySQL_AddProxySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterProxySQLHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ProxySQLClient" to call the correct interceptors. func RegisterProxySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProxySQLClient) error { + mux.Handle("POST", pattern_ProxySQL_AddProxySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterProxySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_ProxySQL_AddProxySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_ProxySQL_AddProxySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "ProxySQL", "Add"}, "")) +var ( + pattern_ProxySQL_AddProxySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "ProxySQL", "Add"}, "")) +) -var forward_ProxySQL_AddProxySQL_0 = runtime.ForwardResponseMessage +var ( + forward_ProxySQL_AddProxySQL_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/proxysql.proto b/api/managementpb/proxysql.proto index 39547558e6..323816a0d3 100644 --- a/api/managementpb/proxysql.proto +++ b/api/managementpb/proxysql.proto @@ -74,8 +74,8 @@ message AddProxySQLRequest { string agent_password = 20; // Exporter log level inventory.LogLevel log_level = 21; - // Credentials provider - string credentials_source = 22; + // Service parameters + string service_params_source = 22; } diff --git a/api/managementpb/proxysql.validator.pb.go b/api/managementpb/proxysql.validator.pb.go index 74132036a6..dc262b6ea3 100644 --- a/api/managementpb/proxysql.validator.pb.go +++ b/api/managementpb/proxysql.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" - - _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddProxySQLRequest) Validate() error { if this.AddNode != nil { @@ -38,7 +34,6 @@ func (this *AddProxySQLRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddProxySQLResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/proxysql_grpc.pb.go b/api/managementpb/proxysql_grpc.pb.go index 917edc5c2f..02a53a453a 100644 --- a/api/managementpb/proxysql_grpc.pb.go +++ b/api/managementpb/proxysql_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -58,7 +57,8 @@ type ProxySQLServer interface { } // UnimplementedProxySQLServer must be embedded to have forward compatible implementations. -type UnimplementedProxySQLServer struct{} +type UnimplementedProxySQLServer struct { +} func (UnimplementedProxySQLServer) AddProxySQL(context.Context, *AddProxySQLRequest) (*AddProxySQLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddProxySQL not implemented") diff --git a/api/managementpb/rds.pb.go b/api/managementpb/rds.pb.go index d1d16c5944..722cce5ad5 100644 --- a/api/managementpb/rds.pb.go +++ b/api/managementpb/rds.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -924,29 +922,26 @@ func file_managementpb_rds_proto_rawDescGZIP() []byte { return file_managementpb_rds_proto_rawDescData } -var ( - file_managementpb_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_managementpb_rds_proto_goTypes = []interface{}{ - (DiscoverRDSEngine)(0), // 0: management.DiscoverRDSEngine - (*DiscoverRDSInstance)(nil), // 1: management.DiscoverRDSInstance - (*DiscoverRDSRequest)(nil), // 2: management.DiscoverRDSRequest - (*DiscoverRDSResponse)(nil), // 3: management.DiscoverRDSResponse - (*AddRDSRequest)(nil), // 4: management.AddRDSRequest - (*AddRDSResponse)(nil), // 5: management.AddRDSResponse - nil, // 6: management.AddRDSRequest.CustomLabelsEntry - (MetricsMode)(0), // 7: management.MetricsMode - (*inventorypb.RemoteRDSNode)(nil), // 8: inventory.RemoteRDSNode - (*inventorypb.RDSExporter)(nil), // 9: inventory.RDSExporter - (*inventorypb.MySQLService)(nil), // 10: inventory.MySQLService - (*inventorypb.MySQLdExporter)(nil), // 11: inventory.MySQLdExporter - (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.QANMySQLPerfSchemaAgent - (*inventorypb.PostgreSQLService)(nil), // 13: inventory.PostgreSQLService - (*inventorypb.PostgresExporter)(nil), // 14: inventory.PostgresExporter - (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.QANPostgreSQLPgStatementsAgent - } -) - +var file_managementpb_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_managementpb_rds_proto_goTypes = []interface{}{ + (DiscoverRDSEngine)(0), // 0: management.DiscoverRDSEngine + (*DiscoverRDSInstance)(nil), // 1: management.DiscoverRDSInstance + (*DiscoverRDSRequest)(nil), // 2: management.DiscoverRDSRequest + (*DiscoverRDSResponse)(nil), // 3: management.DiscoverRDSResponse + (*AddRDSRequest)(nil), // 4: management.AddRDSRequest + (*AddRDSResponse)(nil), // 5: management.AddRDSResponse + nil, // 6: management.AddRDSRequest.CustomLabelsEntry + (MetricsMode)(0), // 7: management.MetricsMode + (*inventorypb.RemoteRDSNode)(nil), // 8: inventory.RemoteRDSNode + (*inventorypb.RDSExporter)(nil), // 9: inventory.RDSExporter + (*inventorypb.MySQLService)(nil), // 10: inventory.MySQLService + (*inventorypb.MySQLdExporter)(nil), // 11: inventory.MySQLdExporter + (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.QANMySQLPerfSchemaAgent + (*inventorypb.PostgreSQLService)(nil), // 13: inventory.PostgreSQLService + (*inventorypb.PostgresExporter)(nil), // 14: inventory.PostgresExporter + (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.QANPostgreSQLPgStatementsAgent +} var file_managementpb_rds_proto_depIdxs = []int32{ 0, // 0: management.DiscoverRDSInstance.engine:type_name -> management.DiscoverRDSEngine 1, // 1: management.DiscoverRDSResponse.rds_instances:type_name -> management.DiscoverRDSInstance diff --git a/api/managementpb/rds.pb.gw.go b/api/managementpb/rds.pb.gw.go index e36ec258d6..addf91ef49 100644 --- a/api/managementpb/rds.pb.gw.go +++ b/api/managementpb/rds.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq DiscoverRDSRequest @@ -47,6 +45,7 @@ func request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.DiscoverRDS(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Marshaler, server RDSServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Mars msg, err := server.DiscoverRDS(ctx, &protoReq) return msg, metadata, err + } func request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler, clie msg, err := client.AddRDS(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler, server RDSServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler msg, err := server.AddRDS(ctx, &protoReq) return msg, metadata, err + } // RegisterRDSHandlerServer registers the http handlers for service RDS to "mux". @@ -102,6 +104,7 @@ func local_request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRDSHandlerFromEndpoint instead. func RegisterRDSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RDSServer) error { + mux.Handle("POST", pattern_RDS_DiscoverRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -124,6 +127,7 @@ func RegisterRDSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_RDS_DiscoverRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_RDS_AddRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -148,6 +152,7 @@ func RegisterRDSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_RDS_AddRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -190,6 +195,7 @@ func RegisterRDSHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.C // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "RDSClient" to call the correct interceptors. func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RDSClient) error { + mux.Handle("POST", pattern_RDS_DiscoverRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -209,6 +215,7 @@ func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_RDS_DiscoverRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_RDS_AddRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -230,6 +237,7 @@ func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_RDS_AddRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/managementpb/rds.validator.pb.go b/api/managementpb/rds.validator.pb.go index ab0748ef61..0f9a304af1 100644 --- a/api/managementpb/rds.validator.pb.go +++ b/api/managementpb/rds.validator.pb.go @@ -6,31 +6,25 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *DiscoverRDSInstance) Validate() error { return nil } - func (this *DiscoverRDSRequest) Validate() error { return nil } - func (this *DiscoverRDSResponse) Validate() error { for _, item := range this.RdsInstances { if item != nil { @@ -41,7 +35,6 @@ func (this *DiscoverRDSResponse) Validate() error { } return nil } - func (this *AddRDSRequest) Validate() error { if this.Region == "" { return github_com_mwitkow_go_proto_validators.FieldError("Region", fmt.Errorf(`value '%v' must not be an empty string`, this.Region)) @@ -61,7 +54,6 @@ func (this *AddRDSRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *AddRDSResponse) Validate() error { if this.Node != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Node); err != nil { diff --git a/api/managementpb/rds_grpc.pb.go b/api/managementpb/rds_grpc.pb.go index 52cf85dd70..b5d7ca774d 100644 --- a/api/managementpb/rds_grpc.pb.go +++ b/api/managementpb/rds_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -67,12 +66,12 @@ type RDSServer interface { } // UnimplementedRDSServer must be embedded to have forward compatible implementations. -type UnimplementedRDSServer struct{} +type UnimplementedRDSServer struct { +} func (UnimplementedRDSServer) DiscoverRDS(context.Context, *DiscoverRDSRequest) (*DiscoverRDSResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DiscoverRDS not implemented") } - func (UnimplementedRDSServer) AddRDS(context.Context, *AddRDSRequest) (*AddRDSResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRDS not implemented") } diff --git a/api/managementpb/service.pb.go b/api/managementpb/service.pb.go index 1a00ed53b0..c35d803a43 100644 --- a/api/managementpb/service.pb.go +++ b/api/managementpb/service.pb.go @@ -7,16 +7,14 @@ package managementpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -353,18 +351,15 @@ func file_managementpb_service_proto_rawDescGZIP() []byte { return file_managementpb_service_proto_rawDescData } -var ( - file_managementpb_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) - file_managementpb_service_proto_goTypes = []interface{}{ - (*AddNodeParams)(nil), // 0: management.AddNodeParams - (*RemoveServiceRequest)(nil), // 1: management.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 2: management.RemoveServiceResponse - nil, // 3: management.AddNodeParams.CustomLabelsEntry - (inventorypb.NodeType)(0), // 4: inventory.NodeType - (inventorypb.ServiceType)(0), // 5: inventory.ServiceType - } -) - +var file_managementpb_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_managementpb_service_proto_goTypes = []interface{}{ + (*AddNodeParams)(nil), // 0: management.AddNodeParams + (*RemoveServiceRequest)(nil), // 1: management.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 2: management.RemoveServiceResponse + nil, // 3: management.AddNodeParams.CustomLabelsEntry + (inventorypb.NodeType)(0), // 4: inventory.NodeType + (inventorypb.ServiceType)(0), // 5: inventory.ServiceType +} var file_managementpb_service_proto_depIdxs = []int32{ 4, // 0: management.AddNodeParams.node_type:type_name -> inventory.NodeType 3, // 1: management.AddNodeParams.custom_labels:type_name -> management.AddNodeParams.CustomLabelsEntry diff --git a/api/managementpb/service.pb.gw.go b/api/managementpb/service.pb.gw.go index fc6ec296a3..96aaf1c96b 100644 --- a/api/managementpb/service.pb.gw.go +++ b/api/managementpb/service.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Service_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, client ServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RemoveServiceRequest @@ -47,6 +45,7 @@ func request_Service_RemoveService_0(ctx context.Context, marshaler runtime.Mars msg, err := client.RemoveService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Service_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, server ServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Service_RemoveService_0(ctx context.Context, marshaler runtim msg, err := server.RemoveService(ctx, &protoReq) return msg, metadata, err + } // RegisterServiceHandlerServer registers the http handlers for service Service to "mux". @@ -70,6 +70,7 @@ func local_request_Service_RemoveService_0(ctx context.Context, marshaler runtim // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceHandlerFromEndpoint instead. func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error { + mux.Handle("POST", pattern_Service_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Service_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ServiceClient" to call the correct interceptors. func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error { + mux.Handle("POST", pattern_Service_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Service_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_Service_RemoveService_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Service", "Remove"}, "")) +var ( + pattern_Service_RemoveService_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Service", "Remove"}, "")) +) -var forward_Service_RemoveService_0 = runtime.ForwardResponseMessage +var ( + forward_Service_RemoveService_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/service.validator.pb.go b/api/managementpb/service.validator.pb.go index 0e224d523e..45bc1eae17 100644 --- a/api/managementpb/service.validator.pb.go +++ b/api/managementpb/service.validator.pb.go @@ -6,22 +6,18 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *AddNodeParams) Validate() error { if this.NodeName == "" { @@ -30,11 +26,9 @@ func (this *AddNodeParams) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *RemoveServiceRequest) Validate() error { return nil } - func (this *RemoveServiceResponse) Validate() error { return nil } diff --git a/api/managementpb/service_grpc.pb.go b/api/managementpb/service_grpc.pb.go index 0f2072f794..26ac532459 100644 --- a/api/managementpb/service_grpc.pb.go +++ b/api/managementpb/service_grpc.pb.go @@ -8,7 +8,6 @@ package managementpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type ServiceServer interface { } // UnimplementedServiceServer must be embedded to have forward compatible implementations. -type UnimplementedServiceServer struct{} +type UnimplementedServiceServer struct { +} func (UnimplementedServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveService not implemented") diff --git a/api/managementpb/severity.pb.go b/api/managementpb/severity.pb.go index ea217326cc..1c33a25589 100644 --- a/api/managementpb/severity.pb.go +++ b/api/managementpb/severity.pb.go @@ -7,11 +7,10 @@ package managementpb import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -131,13 +130,10 @@ func file_managementpb_severity_proto_rawDescGZIP() []byte { return file_managementpb_severity_proto_rawDescData } -var ( - file_managementpb_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_managementpb_severity_proto_goTypes = []interface{}{ - (Severity)(0), // 0: management.Severity - } -) - +var file_managementpb_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_managementpb_severity_proto_goTypes = []interface{}{ + (Severity)(0), // 0: management.Severity +} var file_managementpb_severity_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/severity.validator.pb.go b/api/managementpb/severity.validator.pb.go index cc779b7912..601961f818 100644 --- a/api/managementpb/severity.validator.pb.go +++ b/api/managementpb/severity.validator.pb.go @@ -6,13 +6,10 @@ package managementpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf diff --git a/api/platformpb/json/client/platform/connect_parameters.go b/api/platformpb/json/client/platform/connect_parameters.go index 59a1edc83b..a12d7ec6ab 100644 --- a/api/platformpb/json/client/platform/connect_parameters.go +++ b/api/platformpb/json/client/platform/connect_parameters.go @@ -60,6 +60,7 @@ ConnectParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ConnectParams struct { + // Body. Body ConnectBody @@ -129,6 +130,7 @@ func (o *ConnectParams) SetBody(body ConnectBody) { // WriteToRequest writes these params to a swagger request func (o *ConnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/connect_responses.go b/api/platformpb/json/client/platform/connect_responses.go index 20c28115f6..b7c2a07bb7 100644 --- a/api/platformpb/json/client/platform/connect_responses.go +++ b/api/platformpb/json/client/platform/connect_responses.go @@ -60,12 +60,12 @@ type ConnectOK struct { func (o *ConnectOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/Connect][%d] connectOk %+v", 200, o.Payload) } - func (o *ConnectOK) GetPayload() interface{} { return o.Payload } func (o *ConnectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ConnectDefault) Code() int { func (o *ConnectDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/Connect][%d] Connect default %+v", o._statusCode, o.Payload) } - func (o *ConnectDefault) GetPayload() *ConnectDefaultBody { return o.Payload } func (o *ConnectDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ConnectDefaultBody) // response payload @@ -121,6 +121,7 @@ ConnectBody connect body swagger:model ConnectBody */ type ConnectBody struct { + // User defined human readable PMM Server Name. ServerName string `json:"server_name,omitempty"` @@ -167,6 +168,7 @@ ConnectDefaultBody connect default body swagger:model ConnectDefaultBody */ type ConnectDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -232,7 +234,9 @@ func (o *ConnectDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ConnectDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,6 +247,7 @@ func (o *ConnectDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -271,6 +276,7 @@ ConnectDefaultBodyDetailsItems0 connect default body details items0 swagger:model ConnectDefaultBodyDetailsItems0 */ type ConnectDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/platformpb/json/client/platform/disconnect_parameters.go b/api/platformpb/json/client/platform/disconnect_parameters.go index a7aa5c50e1..99956f968a 100644 --- a/api/platformpb/json/client/platform/disconnect_parameters.go +++ b/api/platformpb/json/client/platform/disconnect_parameters.go @@ -60,6 +60,7 @@ DisconnectParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DisconnectParams struct { + // Body. Body DisconnectBody @@ -129,6 +130,7 @@ func (o *DisconnectParams) SetBody(body DisconnectBody) { // WriteToRequest writes these params to a swagger request func (o *DisconnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/disconnect_responses.go b/api/platformpb/json/client/platform/disconnect_responses.go index 6ea415058e..f27f6052f4 100644 --- a/api/platformpb/json/client/platform/disconnect_responses.go +++ b/api/platformpb/json/client/platform/disconnect_responses.go @@ -60,12 +60,12 @@ type DisconnectOK struct { func (o *DisconnectOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/Disconnect][%d] disconnectOk %+v", 200, o.Payload) } - func (o *DisconnectOK) GetPayload() interface{} { return o.Payload } func (o *DisconnectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DisconnectDefault) Code() int { func (o *DisconnectDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/Disconnect][%d] Disconnect default %+v", o._statusCode, o.Payload) } - func (o *DisconnectDefault) GetPayload() *DisconnectDefaultBody { return o.Payload } func (o *DisconnectDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DisconnectDefaultBody) // response payload @@ -121,6 +121,7 @@ DisconnectBody disconnect body swagger:model DisconnectBody */ type DisconnectBody struct { + // Forces the cleanup process for connected PMM instances regardless of the Portal API response Force bool `json:"force,omitempty"` } @@ -158,6 +159,7 @@ DisconnectDefaultBody disconnect default body swagger:model DisconnectDefaultBody */ type DisconnectDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *DisconnectDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *DisconnectDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *DisconnectDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -262,6 +267,7 @@ DisconnectDefaultBodyDetailsItems0 disconnect default body details items0 swagger:model DisconnectDefaultBodyDetailsItems0 */ type DisconnectDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/platformpb/json/client/platform/get_contact_information_parameters.go b/api/platformpb/json/client/platform/get_contact_information_parameters.go index 33c2ad7236..9464f5e560 100644 --- a/api/platformpb/json/client/platform/get_contact_information_parameters.go +++ b/api/platformpb/json/client/platform/get_contact_information_parameters.go @@ -60,6 +60,7 @@ GetContactInformationParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type GetContactInformationParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *GetContactInformationParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetContactInformationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/get_contact_information_responses.go b/api/platformpb/json/client/platform/get_contact_information_responses.go index 81cf1651b0..c1eb711c91 100644 --- a/api/platformpb/json/client/platform/get_contact_information_responses.go +++ b/api/platformpb/json/client/platform/get_contact_information_responses.go @@ -60,12 +60,12 @@ type GetContactInformationOK struct { func (o *GetContactInformationOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/GetContactInformation][%d] getContactInformationOk %+v", 200, o.Payload) } - func (o *GetContactInformationOK) GetPayload() *GetContactInformationOKBody { return o.Payload } func (o *GetContactInformationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetContactInformationOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetContactInformationDefault) Code() int { func (o *GetContactInformationDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/GetContactInformation][%d] GetContactInformation default %+v", o._statusCode, o.Payload) } - func (o *GetContactInformationDefault) GetPayload() *GetContactInformationDefaultBody { return o.Payload } func (o *GetContactInformationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetContactInformationDefaultBody) // response payload @@ -123,6 +123,7 @@ GetContactInformationDefaultBody get contact information default body swagger:model GetContactInformationDefaultBody */ type GetContactInformationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *GetContactInformationDefaultBody) ContextValidate(ctx context.Context, } func (o *GetContactInformationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *GetContactInformationDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -227,6 +231,7 @@ GetContactInformationDefaultBodyDetailsItems0 get contact information default bo swagger:model GetContactInformationDefaultBodyDetailsItems0 */ type GetContactInformationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ GetContactInformationOKBody get contact information OK body swagger:model GetContactInformationOKBody */ type GetContactInformationOKBody struct { + // URL to open a new support ticket. NewTicketURL string `json:"new_ticket_url,omitempty"` @@ -319,6 +325,7 @@ func (o *GetContactInformationOKBody) ContextValidate(ctx context.Context, forma } func (o *GetContactInformationOKBody) contextValidateCustomerSuccess(ctx context.Context, formats strfmt.Registry) error { + if o.CustomerSuccess != nil { if err := o.CustomerSuccess.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -356,6 +363,7 @@ GetContactInformationOKBodyCustomerSuccess CustomerSuccess contains the contanct swagger:model GetContactInformationOKBodyCustomerSuccess */ type GetContactInformationOKBodyCustomerSuccess struct { + // name Name string `json:"name,omitempty"` diff --git a/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go b/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go index f13a953027..e7ab2c3344 100644 --- a/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go +++ b/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go @@ -60,6 +60,7 @@ SearchOrganizationEntitlementsParams contains all the parameters to send to the Typically these are written to a http.Request. */ type SearchOrganizationEntitlementsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *SearchOrganizationEntitlementsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *SearchOrganizationEntitlementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/search_organization_entitlements_responses.go b/api/platformpb/json/client/platform/search_organization_entitlements_responses.go index 4b8dc1c532..5150f6824e 100644 --- a/api/platformpb/json/client/platform/search_organization_entitlements_responses.go +++ b/api/platformpb/json/client/platform/search_organization_entitlements_responses.go @@ -61,12 +61,12 @@ type SearchOrganizationEntitlementsOK struct { func (o *SearchOrganizationEntitlementsOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationEntitlements][%d] searchOrganizationEntitlementsOk %+v", 200, o.Payload) } - func (o *SearchOrganizationEntitlementsOK) GetPayload() *SearchOrganizationEntitlementsOKBody { return o.Payload } func (o *SearchOrganizationEntitlementsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SearchOrganizationEntitlementsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *SearchOrganizationEntitlementsDefault) Code() int { func (o *SearchOrganizationEntitlementsDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationEntitlements][%d] SearchOrganizationEntitlements default %+v", o._statusCode, o.Payload) } - func (o *SearchOrganizationEntitlementsDefault) GetPayload() *SearchOrganizationEntitlementsDefaultBody { return o.Payload } func (o *SearchOrganizationEntitlementsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SearchOrganizationEntitlementsDefaultBody) // response payload @@ -124,6 +124,7 @@ SearchOrganizationEntitlementsDefaultBody search organization entitlements defau swagger:model SearchOrganizationEntitlementsDefaultBody */ type SearchOrganizationEntitlementsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -189,7 +190,9 @@ func (o *SearchOrganizationEntitlementsDefaultBody) ContextValidate(ctx context. } func (o *SearchOrganizationEntitlementsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -200,6 +203,7 @@ func (o *SearchOrganizationEntitlementsDefaultBody) contextValidateDetails(ctx c return err } } + } return nil @@ -228,6 +232,7 @@ SearchOrganizationEntitlementsDefaultBodyDetailsItems0 search organization entit swagger:model SearchOrganizationEntitlementsDefaultBodyDetailsItems0 */ type SearchOrganizationEntitlementsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -265,6 +270,7 @@ SearchOrganizationEntitlementsOKBody search organization entitlements OK body swagger:model SearchOrganizationEntitlementsOKBody */ type SearchOrganizationEntitlementsOKBody struct { + // entitlements Entitlements []*SearchOrganizationEntitlementsOKBodyEntitlementsItems0 `json:"entitlements"` } @@ -324,7 +330,9 @@ func (o *SearchOrganizationEntitlementsOKBody) ContextValidate(ctx context.Conte } func (o *SearchOrganizationEntitlementsOKBody) contextValidateEntitlements(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Entitlements); i++ { + if o.Entitlements[i] != nil { if err := o.Entitlements[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -335,6 +343,7 @@ func (o *SearchOrganizationEntitlementsOKBody) contextValidateEntitlements(ctx c return err } } + } return nil @@ -363,6 +372,7 @@ SearchOrganizationEntitlementsOKBodyEntitlementsItems0 OrganizationEntitlement c swagger:model SearchOrganizationEntitlementsOKBodyEntitlementsItems0 */ type SearchOrganizationEntitlementsOKBodyEntitlementsItems0 struct { + // Entitlement number. Number string `json:"number,omitempty"` @@ -481,6 +491,7 @@ func (o *SearchOrganizationEntitlementsOKBodyEntitlementsItems0) ContextValidate } func (o *SearchOrganizationEntitlementsOKBodyEntitlementsItems0) contextValidatePlatform(ctx context.Context, formats strfmt.Registry) error { + if o.Platform != nil { if err := o.Platform.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -518,6 +529,7 @@ SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform Platform indicate swagger:model SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform */ type SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform struct { + // Flag indicates that security advisors are covered by this entitlement. SecurityAdvisor string `json:"security_advisor,omitempty"` diff --git a/api/platformpb/json/client/platform/search_organization_tickets_parameters.go b/api/platformpb/json/client/platform/search_organization_tickets_parameters.go index 61a7269406..72ef0b2a0c 100644 --- a/api/platformpb/json/client/platform/search_organization_tickets_parameters.go +++ b/api/platformpb/json/client/platform/search_organization_tickets_parameters.go @@ -60,6 +60,7 @@ SearchOrganizationTicketsParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type SearchOrganizationTicketsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *SearchOrganizationTicketsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *SearchOrganizationTicketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/search_organization_tickets_responses.go b/api/platformpb/json/client/platform/search_organization_tickets_responses.go index 36c5824177..5fd1e2f7fb 100644 --- a/api/platformpb/json/client/platform/search_organization_tickets_responses.go +++ b/api/platformpb/json/client/platform/search_organization_tickets_responses.go @@ -61,12 +61,12 @@ type SearchOrganizationTicketsOK struct { func (o *SearchOrganizationTicketsOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationTickets][%d] searchOrganizationTicketsOk %+v", 200, o.Payload) } - func (o *SearchOrganizationTicketsOK) GetPayload() *SearchOrganizationTicketsOKBody { return o.Payload } func (o *SearchOrganizationTicketsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SearchOrganizationTicketsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *SearchOrganizationTicketsDefault) Code() int { func (o *SearchOrganizationTicketsDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationTickets][%d] SearchOrganizationTickets default %+v", o._statusCode, o.Payload) } - func (o *SearchOrganizationTicketsDefault) GetPayload() *SearchOrganizationTicketsDefaultBody { return o.Payload } func (o *SearchOrganizationTicketsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SearchOrganizationTicketsDefaultBody) // response payload @@ -124,6 +124,7 @@ SearchOrganizationTicketsDefaultBody search organization tickets default body swagger:model SearchOrganizationTicketsDefaultBody */ type SearchOrganizationTicketsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -189,7 +190,9 @@ func (o *SearchOrganizationTicketsDefaultBody) ContextValidate(ctx context.Conte } func (o *SearchOrganizationTicketsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -200,6 +203,7 @@ func (o *SearchOrganizationTicketsDefaultBody) contextValidateDetails(ctx contex return err } } + } return nil @@ -228,6 +232,7 @@ SearchOrganizationTicketsDefaultBodyDetailsItems0 search organization tickets de swagger:model SearchOrganizationTicketsDefaultBodyDetailsItems0 */ type SearchOrganizationTicketsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -265,6 +270,7 @@ SearchOrganizationTicketsOKBody search organization tickets OK body swagger:model SearchOrganizationTicketsOKBody */ type SearchOrganizationTicketsOKBody struct { + // Support tickets belonging to the Percona Portal Organization. Tickets []*SearchOrganizationTicketsOKBodyTicketsItems0 `json:"tickets"` } @@ -324,7 +330,9 @@ func (o *SearchOrganizationTicketsOKBody) ContextValidate(ctx context.Context, f } func (o *SearchOrganizationTicketsOKBody) contextValidateTickets(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Tickets); i++ { + if o.Tickets[i] != nil { if err := o.Tickets[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -335,6 +343,7 @@ func (o *SearchOrganizationTicketsOKBody) contextValidateTickets(ctx context.Con return err } } + } return nil @@ -363,6 +372,7 @@ SearchOrganizationTicketsOKBodyTicketsItems0 OrganizationTicket contains informa swagger:model SearchOrganizationTicketsOKBodyTicketsItems0 */ type SearchOrganizationTicketsOKBodyTicketsItems0 struct { + // Ticket number. Number string `json:"number,omitempty"` diff --git a/api/platformpb/json/client/platform/server_info_parameters.go b/api/platformpb/json/client/platform/server_info_parameters.go index 895075df3b..a3e7ec413f 100644 --- a/api/platformpb/json/client/platform/server_info_parameters.go +++ b/api/platformpb/json/client/platform/server_info_parameters.go @@ -60,6 +60,7 @@ ServerInfoParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ServerInfoParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *ServerInfoParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ServerInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/server_info_responses.go b/api/platformpb/json/client/platform/server_info_responses.go index 96d64f9b2b..394cd51d9b 100644 --- a/api/platformpb/json/client/platform/server_info_responses.go +++ b/api/platformpb/json/client/platform/server_info_responses.go @@ -60,12 +60,12 @@ type ServerInfoOK struct { func (o *ServerInfoOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/ServerInfo][%d] serverInfoOk %+v", 200, o.Payload) } - func (o *ServerInfoOK) GetPayload() *ServerInfoOKBody { return o.Payload } func (o *ServerInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ServerInfoOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ServerInfoDefault) Code() int { func (o *ServerInfoDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/ServerInfo][%d] ServerInfo default %+v", o._statusCode, o.Payload) } - func (o *ServerInfoDefault) GetPayload() *ServerInfoDefaultBody { return o.Payload } func (o *ServerInfoDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ServerInfoDefaultBody) // response payload @@ -123,6 +123,7 @@ ServerInfoDefaultBody server info default body swagger:model ServerInfoDefaultBody */ type ServerInfoDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *ServerInfoDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *ServerInfoDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *ServerInfoDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -227,6 +231,7 @@ ServerInfoDefaultBodyDetailsItems0 server info default body details items0 swagger:model ServerInfoDefaultBodyDetailsItems0 */ type ServerInfoDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ ServerInfoOKBody server info OK body swagger:model ServerInfoOKBody */ type ServerInfoOKBody struct { + // pmm server name PMMServerName string `json:"pmm_server_name,omitempty"` diff --git a/api/platformpb/json/client/platform/user_status_parameters.go b/api/platformpb/json/client/platform/user_status_parameters.go index e8ef6ea0bf..1e08b3597a 100644 --- a/api/platformpb/json/client/platform/user_status_parameters.go +++ b/api/platformpb/json/client/platform/user_status_parameters.go @@ -60,6 +60,7 @@ UserStatusParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UserStatusParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *UserStatusParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *UserStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/user_status_responses.go b/api/platformpb/json/client/platform/user_status_responses.go index 1456954c54..6c262e490a 100644 --- a/api/platformpb/json/client/platform/user_status_responses.go +++ b/api/platformpb/json/client/platform/user_status_responses.go @@ -60,12 +60,12 @@ type UserStatusOK struct { func (o *UserStatusOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/UserStatus][%d] userStatusOk %+v", 200, o.Payload) } - func (o *UserStatusOK) GetPayload() *UserStatusOKBody { return o.Payload } func (o *UserStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UserStatusOKBody) // response payload @@ -102,12 +102,12 @@ func (o *UserStatusDefault) Code() int { func (o *UserStatusDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/UserStatus][%d] UserStatus default %+v", o._statusCode, o.Payload) } - func (o *UserStatusDefault) GetPayload() *UserStatusDefaultBody { return o.Payload } func (o *UserStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UserStatusDefaultBody) // response payload @@ -123,6 +123,7 @@ UserStatusDefaultBody user status default body swagger:model UserStatusDefaultBody */ type UserStatusDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *UserStatusDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UserStatusDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *UserStatusDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -227,6 +231,7 @@ UserStatusDefaultBodyDetailsItems0 user status default body details items0 swagger:model UserStatusDefaultBodyDetailsItems0 */ type UserStatusDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ UserStatusOKBody user status OK body swagger:model UserStatusOKBody */ type UserStatusOKBody struct { + // is platform user IsPlatformUser bool `json:"is_platform_user,omitempty"` } diff --git a/api/platformpb/platform.pb.go b/api/platformpb/platform.pb.go index f5630ac5bd..014a4984ab 100644 --- a/api/platformpb/platform.pb.go +++ b/api/platformpb/platform.pb.go @@ -7,9 +7,6 @@ package platformpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -17,6 +14,8 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" ) const ( @@ -1363,33 +1362,30 @@ func file_platformpb_platform_proto_rawDescGZIP() []byte { return file_platformpb_platform_proto_rawDescData } -var ( - file_platformpb_platform_proto_msgTypes = make([]protoimpl.MessageInfo, 18) - file_platformpb_platform_proto_goTypes = []interface{}{ - (*ConnectRequest)(nil), // 0: platform.ConnectRequest - (*ConnectResponse)(nil), // 1: platform.ConnectResponse - (*DisconnectRequest)(nil), // 2: platform.DisconnectRequest - (*DisconnectResponse)(nil), // 3: platform.DisconnectResponse - (*SearchOrganizationTicketsRequest)(nil), // 4: platform.SearchOrganizationTicketsRequest - (*SearchOrganizationTicketsResponse)(nil), // 5: platform.SearchOrganizationTicketsResponse - (*OrganizationTicket)(nil), // 6: platform.OrganizationTicket - (*SearchOrganizationEntitlementsRequest)(nil), // 7: platform.SearchOrganizationEntitlementsRequest - (*SearchOrganizationEntitlementsResponse)(nil), // 8: platform.SearchOrganizationEntitlementsResponse - (*OrganizationEntitlement)(nil), // 9: platform.OrganizationEntitlement - (*GetContactInformationRequest)(nil), // 10: platform.GetContactInformationRequest - (*GetContactInformationResponse)(nil), // 11: platform.GetContactInformationResponse - (*ServerInfoRequest)(nil), // 12: platform.ServerInfoRequest - (*ServerInfoResponse)(nil), // 13: platform.ServerInfoResponse - (*UserStatusRequest)(nil), // 14: platform.UserStatusRequest - (*UserStatusResponse)(nil), // 15: platform.UserStatusResponse - (*OrganizationEntitlement_Platform)(nil), // 16: platform.OrganizationEntitlement.Platform - (*GetContactInformationResponse_CustomerSuccess)(nil), // 17: platform.GetContactInformationResponse.CustomerSuccess - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*wrapperspb.StringValue)(nil), // 19: google.protobuf.StringValue - (*wrapperspb.BoolValue)(nil), // 20: google.protobuf.BoolValue - } -) - +var file_platformpb_platform_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_platformpb_platform_proto_goTypes = []interface{}{ + (*ConnectRequest)(nil), // 0: platform.ConnectRequest + (*ConnectResponse)(nil), // 1: platform.ConnectResponse + (*DisconnectRequest)(nil), // 2: platform.DisconnectRequest + (*DisconnectResponse)(nil), // 3: platform.DisconnectResponse + (*SearchOrganizationTicketsRequest)(nil), // 4: platform.SearchOrganizationTicketsRequest + (*SearchOrganizationTicketsResponse)(nil), // 5: platform.SearchOrganizationTicketsResponse + (*OrganizationTicket)(nil), // 6: platform.OrganizationTicket + (*SearchOrganizationEntitlementsRequest)(nil), // 7: platform.SearchOrganizationEntitlementsRequest + (*SearchOrganizationEntitlementsResponse)(nil), // 8: platform.SearchOrganizationEntitlementsResponse + (*OrganizationEntitlement)(nil), // 9: platform.OrganizationEntitlement + (*GetContactInformationRequest)(nil), // 10: platform.GetContactInformationRequest + (*GetContactInformationResponse)(nil), // 11: platform.GetContactInformationResponse + (*ServerInfoRequest)(nil), // 12: platform.ServerInfoRequest + (*ServerInfoResponse)(nil), // 13: platform.ServerInfoResponse + (*UserStatusRequest)(nil), // 14: platform.UserStatusRequest + (*UserStatusResponse)(nil), // 15: platform.UserStatusResponse + (*OrganizationEntitlement_Platform)(nil), // 16: platform.OrganizationEntitlement.Platform + (*GetContactInformationResponse_CustomerSuccess)(nil), // 17: platform.GetContactInformationResponse.CustomerSuccess + (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*wrapperspb.StringValue)(nil), // 19: google.protobuf.StringValue + (*wrapperspb.BoolValue)(nil), // 20: google.protobuf.BoolValue +} var file_platformpb_platform_proto_depIdxs = []int32{ 6, // 0: platform.SearchOrganizationTicketsResponse.tickets:type_name -> platform.OrganizationTicket 18, // 1: platform.OrganizationTicket.create_time:type_name -> google.protobuf.Timestamp diff --git a/api/platformpb/platform.pb.gw.go b/api/platformpb/platform.pb.gw.go index 3d3c9a1603..c45ac4056f 100644 --- a/api/platformpb/platform.pb.gw.go +++ b/api/platformpb/platform.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Platform_Connect_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ConnectRequest @@ -47,6 +45,7 @@ func request_Platform_Connect_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.Connect(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_Connect_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Platform_Connect_0(ctx context.Context, marshaler runtime.Mar msg, err := server.Connect(ctx, &protoReq) return msg, metadata, err + } func request_Platform_Disconnect_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_Platform_Disconnect_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.Disconnect(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_Disconnect_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_Platform_Disconnect_0(ctx context.Context, marshaler runtime. msg, err := server.Disconnect(ctx, &protoReq) return msg, metadata, err + } func request_Platform_SearchOrganizationTickets_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_Platform_SearchOrganizationTickets_0(ctx context.Context, marshaler msg, err := client.SearchOrganizationTickets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_SearchOrganizationTickets_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_Platform_SearchOrganizationTickets_0(ctx context.Context, mar msg, err := server.SearchOrganizationTickets(ctx, &protoReq) return msg, metadata, err + } func request_Platform_SearchOrganizationEntitlements_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_Platform_SearchOrganizationEntitlements_0(ctx context.Context, mars msg, err := client.SearchOrganizationEntitlements(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_SearchOrganizationEntitlements_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_Platform_SearchOrganizationEntitlements_0(ctx context.Context msg, err := server.SearchOrganizationEntitlements(ctx, &protoReq) return msg, metadata, err + } func request_Platform_GetContactInformation_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_Platform_GetContactInformation_0(ctx context.Context, marshaler run msg, err := client.GetContactInformation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_GetContactInformation_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_Platform_GetContactInformation_0(ctx context.Context, marshal msg, err := server.GetContactInformation(ctx, &protoReq) return msg, metadata, err + } func request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.ServerInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime. msg, err := server.ServerInfo(ctx, &protoReq) return msg, metadata, err + } func request_Platform_UserStatus_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +249,7 @@ func request_Platform_UserStatus_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.UserStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Platform_UserStatus_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +266,7 @@ func local_request_Platform_UserStatus_0(ctx context.Context, marshaler runtime. msg, err := server.UserStatus(ctx, &protoReq) return msg, metadata, err + } // RegisterPlatformHandlerServer registers the http handlers for service Platform to "mux". @@ -262,6 +274,7 @@ func local_request_Platform_UserStatus_0(ctx context.Context, marshaler runtime. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPlatformHandlerFromEndpoint instead. func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlatformServer) error { + mux.Handle("POST", pattern_Platform_Connect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -284,6 +297,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_Connect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_Disconnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -308,6 +322,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_Disconnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_SearchOrganizationTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -332,6 +347,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_SearchOrganizationTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_SearchOrganizationEntitlements_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -356,6 +372,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_SearchOrganizationEntitlements_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_GetContactInformation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -380,6 +397,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_GetContactInformation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_ServerInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -404,6 +422,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_ServerInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_UserStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -428,6 +447,7 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_UserStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -470,6 +490,7 @@ func RegisterPlatformHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PlatformClient" to call the correct interceptors. func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlatformClient) error { + mux.Handle("POST", pattern_Platform_Connect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -489,6 +510,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_Connect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_Disconnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -510,6 +532,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_Disconnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_SearchOrganizationTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -531,6 +554,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_SearchOrganizationTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_SearchOrganizationEntitlements_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -552,6 +576,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_SearchOrganizationEntitlements_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_GetContactInformation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -573,6 +598,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_GetContactInformation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_ServerInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -594,6 +620,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_ServerInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Platform_UserStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -615,6 +642,7 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_UserStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/platformpb/platform.validator.pb.go b/api/platformpb/platform.validator.pb.go index 5dd682deb5..91d4874e1e 100644 --- a/api/platformpb/platform.validator.pb.go +++ b/api/platformpb/platform.validator.pb.go @@ -6,22 +6,19 @@ package platformpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" _ "google.golang.org/protobuf/types/known/wrapperspb" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *ConnectRequest) Validate() error { if this.ServerName == "" { @@ -29,23 +26,18 @@ func (this *ConnectRequest) Validate() error { } return nil } - func (this *ConnectResponse) Validate() error { return nil } - func (this *DisconnectRequest) Validate() error { return nil } - func (this *DisconnectResponse) Validate() error { return nil } - func (this *SearchOrganizationTicketsRequest) Validate() error { return nil } - func (this *SearchOrganizationTicketsResponse) Validate() error { for _, item := range this.Tickets { if item != nil { @@ -56,7 +48,6 @@ func (this *SearchOrganizationTicketsResponse) Validate() error { } return nil } - func (this *OrganizationTicket) Validate() error { if this.CreateTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CreateTime); err != nil { @@ -65,11 +56,9 @@ func (this *OrganizationTicket) Validate() error { } return nil } - func (this *SearchOrganizationEntitlementsRequest) Validate() error { return nil } - func (this *SearchOrganizationEntitlementsResponse) Validate() error { for _, item := range this.Entitlements { if item != nil { @@ -80,7 +69,6 @@ func (this *SearchOrganizationEntitlementsResponse) Validate() error { } return nil } - func (this *OrganizationEntitlement) Validate() error { if this.Tier != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Tier); err != nil { @@ -119,7 +107,6 @@ func (this *OrganizationEntitlement) Validate() error { } return nil } - func (this *OrganizationEntitlement_Platform) Validate() error { if this.SecurityAdvisor != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SecurityAdvisor); err != nil { @@ -133,11 +120,9 @@ func (this *OrganizationEntitlement_Platform) Validate() error { } return nil } - func (this *GetContactInformationRequest) Validate() error { return nil } - func (this *GetContactInformationResponse) Validate() error { if this.CustomerSuccess != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CustomerSuccess); err != nil { @@ -146,23 +131,18 @@ func (this *GetContactInformationResponse) Validate() error { } return nil } - func (this *GetContactInformationResponse_CustomerSuccess) Validate() error { return nil } - func (this *ServerInfoRequest) Validate() error { return nil } - func (this *ServerInfoResponse) Validate() error { return nil } - func (this *UserStatusRequest) Validate() error { return nil } - func (this *UserStatusResponse) Validate() error { return nil } diff --git a/api/platformpb/platform_grpc.pb.go b/api/platformpb/platform_grpc.pb.go index 2892e0e978..577245dc00 100644 --- a/api/platformpb/platform_grpc.pb.go +++ b/api/platformpb/platform_grpc.pb.go @@ -8,7 +8,6 @@ package platformpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -132,32 +131,27 @@ type PlatformServer interface { } // UnimplementedPlatformServer must be embedded to have forward compatible implementations. -type UnimplementedPlatformServer struct{} +type UnimplementedPlatformServer struct { +} func (UnimplementedPlatformServer) Connect(context.Context, *ConnectRequest) (*ConnectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented") } - func (UnimplementedPlatformServer) Disconnect(context.Context, *DisconnectRequest) (*DisconnectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Disconnect not implemented") } - func (UnimplementedPlatformServer) SearchOrganizationTickets(context.Context, *SearchOrganizationTicketsRequest) (*SearchOrganizationTicketsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchOrganizationTickets not implemented") } - func (UnimplementedPlatformServer) SearchOrganizationEntitlements(context.Context, *SearchOrganizationEntitlementsRequest) (*SearchOrganizationEntitlementsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchOrganizationEntitlements not implemented") } - func (UnimplementedPlatformServer) GetContactInformation(context.Context, *GetContactInformationRequest) (*GetContactInformationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetContactInformation not implemented") } - func (UnimplementedPlatformServer) ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented") } - func (UnimplementedPlatformServer) UserStatus(context.Context, *UserStatusRequest) (*UserStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UserStatus not implemented") } diff --git a/api/qanpb/collector.pb.go b/api/qanpb/collector.pb.go index 84111947a2..68c76c690a 100644 --- a/api/qanpb/collector.pb.go +++ b/api/qanpb/collector.pb.go @@ -7,13 +7,11 @@ package qanv1beta1 import ( - reflect "reflect" - sync "sync" - + inventorypb "github.com/percona/pmm/api/inventorypb" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" ) const ( @@ -2693,21 +2691,18 @@ func file_qanpb_collector_proto_rawDescGZIP() []byte { return file_qanpb_collector_proto_rawDescData } -var ( - file_qanpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_qanpb_collector_proto_goTypes = []interface{}{ - (*CollectRequest)(nil), // 0: qan.v1beta1.CollectRequest - (*MetricsBucket)(nil), // 1: qan.v1beta1.MetricsBucket - (*CollectResponse)(nil), // 2: qan.v1beta1.CollectResponse - nil, // 3: qan.v1beta1.MetricsBucket.LabelsEntry - nil, // 4: qan.v1beta1.MetricsBucket.WarningsEntry - nil, // 5: qan.v1beta1.MetricsBucket.ErrorsEntry - (inventorypb.AgentType)(0), // 6: inventory.AgentType - (ExampleFormat)(0), // 7: qan.v1beta1.ExampleFormat - (ExampleType)(0), // 8: qan.v1beta1.ExampleType - } -) - +var file_qanpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_qanpb_collector_proto_goTypes = []interface{}{ + (*CollectRequest)(nil), // 0: qan.v1beta1.CollectRequest + (*MetricsBucket)(nil), // 1: qan.v1beta1.MetricsBucket + (*CollectResponse)(nil), // 2: qan.v1beta1.CollectResponse + nil, // 3: qan.v1beta1.MetricsBucket.LabelsEntry + nil, // 4: qan.v1beta1.MetricsBucket.WarningsEntry + nil, // 5: qan.v1beta1.MetricsBucket.ErrorsEntry + (inventorypb.AgentType)(0), // 6: inventory.AgentType + (ExampleFormat)(0), // 7: qan.v1beta1.ExampleFormat + (ExampleType)(0), // 8: qan.v1beta1.ExampleType +} var file_qanpb_collector_proto_depIdxs = []int32{ 1, // 0: qan.v1beta1.CollectRequest.metrics_bucket:type_name -> qan.v1beta1.MetricsBucket 6, // 1: qan.v1beta1.MetricsBucket.agent_type:type_name -> inventory.AgentType diff --git a/api/qanpb/collector.validator.pb.go b/api/qanpb/collector.validator.pb.go index fd692bfdc4..2b382ce997 100644 --- a/api/qanpb/collector.validator.pb.go +++ b/api/qanpb/collector.validator.pb.go @@ -6,19 +6,15 @@ package qanv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" - _ "github.com/percona/pmm/api/inventorypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *CollectRequest) Validate() error { for _, item := range this.MetricsBucket { @@ -30,14 +26,12 @@ func (this *CollectRequest) Validate() error { } return nil } - func (this *MetricsBucket) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. return nil } - func (this *CollectResponse) Validate() error { return nil } diff --git a/api/qanpb/collector_grpc.pb.go b/api/qanpb/collector_grpc.pb.go index 689e890217..d62ba36760 100644 --- a/api/qanpb/collector_grpc.pb.go +++ b/api/qanpb/collector_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type CollectorServer interface { } // UnimplementedCollectorServer must be embedded to have forward compatible implementations. -type UnimplementedCollectorServer struct{} +type UnimplementedCollectorServer struct { +} func (UnimplementedCollectorServer) Collect(context.Context, *CollectRequest) (*CollectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Collect not implemented") diff --git a/api/qanpb/filters.pb.go b/api/qanpb/filters.pb.go index 7439ed5189..136c3e1ce7 100644 --- a/api/qanpb/filters.pb.go +++ b/api/qanpb/filters.pb.go @@ -7,13 +7,12 @@ package qanv1beta1 import ( - reflect "reflect" - sync "sync" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) const ( @@ -335,19 +334,16 @@ func file_qanpb_filters_proto_rawDescGZIP() []byte { return file_qanpb_filters_proto_rawDescData } -var ( - file_qanpb_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) - file_qanpb_filters_proto_goTypes = []interface{}{ - (*FiltersRequest)(nil), // 0: qan.v1beta1.FiltersRequest - (*FiltersReply)(nil), // 1: qan.v1beta1.FiltersReply - (*ListLabels)(nil), // 2: qan.v1beta1.ListLabels - (*Values)(nil), // 3: qan.v1beta1.Values - nil, // 4: qan.v1beta1.FiltersReply.LabelsEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 6: qan.v1beta1.MapFieldEntry - } -) - +var file_qanpb_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_qanpb_filters_proto_goTypes = []interface{}{ + (*FiltersRequest)(nil), // 0: qan.v1beta1.FiltersRequest + (*FiltersReply)(nil), // 1: qan.v1beta1.FiltersReply + (*ListLabels)(nil), // 2: qan.v1beta1.ListLabels + (*Values)(nil), // 3: qan.v1beta1.Values + nil, // 4: qan.v1beta1.FiltersReply.LabelsEntry + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 6: qan.v1beta1.MapFieldEntry +} var file_qanpb_filters_proto_depIdxs = []int32{ 5, // 0: qan.v1beta1.FiltersRequest.period_start_from:type_name -> google.protobuf.Timestamp 5, // 1: qan.v1beta1.FiltersRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qanpb/filters.pb.gw.go b/api/qanpb/filters.pb.gw.go index 52080f2c03..91ac8d9d82 100644 --- a/api/qanpb/filters.pb.gw.go +++ b/api/qanpb/filters.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshaler, client FiltersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq FiltersRequest @@ -47,6 +45,7 @@ func request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshaler, cli msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshaler, server FiltersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshale msg, err := server.Get(ctx, &protoReq) return msg, metadata, err + } // RegisterFiltersHandlerServer registers the http handlers for service Filters to "mux". @@ -70,6 +70,7 @@ func local_request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshale // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFiltersHandlerFromEndpoint instead. func RegisterFiltersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FiltersServer) error { + mux.Handle("POST", pattern_Filters_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterFiltersHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Filters_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterFiltersHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "FiltersClient" to call the correct interceptors. func RegisterFiltersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FiltersClient) error { + mux.Handle("POST", pattern_Filters_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterFiltersHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Filters_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_Filters_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v0", "qan", "Filters", "Get"}, "")) +var ( + pattern_Filters_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v0", "qan", "Filters", "Get"}, "")) +) -var forward_Filters_Get_0 = runtime.ForwardResponseMessage +var ( + forward_Filters_Get_0 = runtime.ForwardResponseMessage +) diff --git a/api/qanpb/filters.validator.pb.go b/api/qanpb/filters.validator.pb.go index 87ba839a42..993e4881da 100644 --- a/api/qanpb/filters.validator.pb.go +++ b/api/qanpb/filters.validator.pb.go @@ -6,19 +6,16 @@ package qanv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *FiltersRequest) Validate() error { if this.PeriodStartFrom != nil { @@ -40,12 +37,10 @@ func (this *FiltersRequest) Validate() error { } return nil } - func (this *FiltersReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ListLabels) Validate() error { for _, item := range this.Name { if item != nil { @@ -56,7 +51,6 @@ func (this *ListLabels) Validate() error { } return nil } - func (this *Values) Validate() error { return nil } diff --git a/api/qanpb/filters_grpc.pb.go b/api/qanpb/filters_grpc.pb.go index 7a2943a2ad..56eafde02e 100644 --- a/api/qanpb/filters_grpc.pb.go +++ b/api/qanpb/filters_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type FiltersServer interface { } // UnimplementedFiltersServer must be embedded to have forward compatible implementations. -type UnimplementedFiltersServer struct{} +type UnimplementedFiltersServer struct { +} func (UnimplementedFiltersServer) Get(context.Context, *FiltersRequest) (*FiltersReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") diff --git a/api/qanpb/json/client/filters/get_parameters.go b/api/qanpb/json/client/filters/get_parameters.go index 7f2a7635c0..30080f93a1 100644 --- a/api/qanpb/json/client/filters/get_parameters.go +++ b/api/qanpb/json/client/filters/get_parameters.go @@ -60,6 +60,7 @@ GetParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetParams struct { + /* Body. FiltersRequest contains period for which we need filters. @@ -132,6 +133,7 @@ func (o *GetParams) SetBody(body GetBody) { // WriteToRequest writes these params to a swagger request func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/filters/get_responses.go b/api/qanpb/json/client/filters/get_responses.go index cfcee19800..63f836cf5b 100644 --- a/api/qanpb/json/client/filters/get_responses.go +++ b/api/qanpb/json/client/filters/get_responses.go @@ -61,12 +61,12 @@ type GetOK struct { func (o *GetOK) Error() string { return fmt.Sprintf("[POST /v0/qan/Filters/Get][%d] getOk %+v", 200, o.Payload) } - func (o *GetOK) GetPayload() *GetOKBody { return o.Payload } func (o *GetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetDefault) Code() int { func (o *GetDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/Filters/Get][%d] Get default %+v", o._statusCode, o.Payload) } - func (o *GetDefault) GetPayload() *GetDefaultBody { return o.Payload } func (o *GetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetDefaultBody) // response payload @@ -124,6 +124,7 @@ GetBody FiltersRequest contains period for which we need filters. swagger:model GetBody */ type GetBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -226,7 +227,9 @@ func (o *GetBody) ContextValidate(ctx context.Context, formats strfmt.Registry) } func (o *GetBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Labels); i++ { + if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +240,7 @@ func (o *GetBody) contextValidateLabels(ctx context.Context, formats strfmt.Regi return err } } + } return nil @@ -265,6 +269,7 @@ GetDefaultBody get default body swagger:model GetDefaultBody */ type GetDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -330,7 +335,9 @@ func (o *GetDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *GetDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -341,6 +348,7 @@ func (o *GetDefaultBody) contextValidateDetails(ctx context.Context, formats str return err } } + } return nil @@ -369,6 +377,7 @@ GetDefaultBodyDetailsItems0 get default body details items0 swagger:model GetDefaultBodyDetailsItems0 */ type GetDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -407,6 +416,7 @@ GetOKBody FiltersReply is map of labels for given period by key. swagger:model GetOKBody */ type GetOKBody struct { + // labels Labels map[string]GetOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -466,12 +476,15 @@ func (o *GetOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry } func (o *GetOKBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Labels { + if val, ok := o.Labels[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -500,6 +513,7 @@ GetOKBodyLabelsAnon ListLabels is list of label's values: duplicates are impossi swagger:model GetOKBodyLabelsAnon */ type GetOKBodyLabelsAnon struct { + // name Name []*GetOKBodyLabelsAnonNameItems0 `json:"name"` } @@ -559,7 +573,9 @@ func (o *GetOKBodyLabelsAnon) ContextValidate(ctx context.Context, formats strfm } func (o *GetOKBodyLabelsAnon) contextValidateName(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Name); i++ { + if o.Name[i] != nil { if err := o.Name[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -570,6 +586,7 @@ func (o *GetOKBodyLabelsAnon) contextValidateName(ctx context.Context, formats s return err } } + } return nil @@ -598,6 +615,7 @@ GetOKBodyLabelsAnonNameItems0 Values is label values and main metric percent and swagger:model GetOKBodyLabelsAnonNameItems0 */ type GetOKBodyLabelsAnonNameItems0 struct { + // value Value string `json:"value,omitempty"` @@ -641,6 +659,7 @@ GetParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form swagger:model GetParamsBodyLabelsItems0 */ type GetParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go b/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go index a054ed1588..9ace427d25 100644 --- a/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go +++ b/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go @@ -60,6 +60,7 @@ GetMetricsNamesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetMetricsNamesParams struct { + /* Body. MetricsNamesRequest is emty. @@ -132,6 +133,7 @@ func (o *GetMetricsNamesParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetMetricsNamesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go b/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go index 1902721a45..ef925ae3cf 100644 --- a/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go +++ b/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go @@ -60,12 +60,12 @@ type GetMetricsNamesOK struct { func (o *GetMetricsNamesOK) Error() string { return fmt.Sprintf("[POST /v0/qan/GetMetricsNames][%d] getMetricsNamesOk %+v", 200, o.Payload) } - func (o *GetMetricsNamesOK) GetPayload() *GetMetricsNamesOKBody { return o.Payload } func (o *GetMetricsNamesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsNamesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetMetricsNamesDefault) Code() int { func (o *GetMetricsNamesDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/GetMetricsNames][%d] GetMetricsNames default %+v", o._statusCode, o.Payload) } - func (o *GetMetricsNamesDefault) GetPayload() *GetMetricsNamesDefaultBody { return o.Payload } func (o *GetMetricsNamesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsNamesDefaultBody) // response payload @@ -123,6 +123,7 @@ GetMetricsNamesDefaultBody get metrics names default body swagger:model GetMetricsNamesDefaultBody */ type GetMetricsNamesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *GetMetricsNamesDefaultBody) ContextValidate(ctx context.Context, format } func (o *GetMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *GetMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -227,6 +231,7 @@ GetMetricsNamesDefaultBodyDetailsItems0 get metrics names default body details i swagger:model GetMetricsNamesDefaultBodyDetailsItems0 */ type GetMetricsNamesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -266,6 +271,7 @@ GetMetricsNamesOKBody MetricsNamesReply is map of stored metrics: swagger:model GetMetricsNamesOKBody */ type GetMetricsNamesOKBody struct { + // data Data map[string]string `json:"data,omitempty"` } diff --git a/api/qanpb/json/client/object_details/get_histogram_parameters.go b/api/qanpb/json/client/object_details/get_histogram_parameters.go index ac3be7715b..92d9df13fd 100644 --- a/api/qanpb/json/client/object_details/get_histogram_parameters.go +++ b/api/qanpb/json/client/object_details/get_histogram_parameters.go @@ -60,6 +60,7 @@ GetHistogramParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetHistogramParams struct { + /* Body. HistogramRequest defines filtering by time range, labels and queryid. @@ -132,6 +133,7 @@ func (o *GetHistogramParams) SetBody(body GetHistogramBody) { // WriteToRequest writes these params to a swagger request func (o *GetHistogramParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_histogram_responses.go b/api/qanpb/json/client/object_details/get_histogram_responses.go index 22441d3d85..b6a8491e46 100644 --- a/api/qanpb/json/client/object_details/get_histogram_responses.go +++ b/api/qanpb/json/client/object_details/get_histogram_responses.go @@ -61,12 +61,12 @@ type GetHistogramOK struct { func (o *GetHistogramOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetHistogram][%d] getHistogramOk %+v", 200, o.Payload) } - func (o *GetHistogramOK) GetPayload() *GetHistogramOKBody { return o.Payload } func (o *GetHistogramOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetHistogramOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetHistogramDefault) Code() int { func (o *GetHistogramDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetHistogram][%d] GetHistogram default %+v", o._statusCode, o.Payload) } - func (o *GetHistogramDefault) GetPayload() *GetHistogramDefaultBody { return o.Payload } func (o *GetHistogramDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetHistogramDefaultBody) // response payload @@ -124,6 +124,7 @@ GetHistogramBody HistogramRequest defines filtering by time range, labels and qu swagger:model GetHistogramBody */ type GetHistogramBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -226,7 +227,9 @@ func (o *GetHistogramBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *GetHistogramBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Labels); i++ { + if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +240,7 @@ func (o *GetHistogramBody) contextValidateLabels(ctx context.Context, formats st return err } } + } return nil @@ -265,6 +269,7 @@ GetHistogramDefaultBody get histogram default body swagger:model GetHistogramDefaultBody */ type GetHistogramDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -330,7 +335,9 @@ func (o *GetHistogramDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetHistogramDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -341,6 +348,7 @@ func (o *GetHistogramDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -369,6 +377,7 @@ GetHistogramDefaultBodyDetailsItems0 get histogram default body details items0 swagger:model GetHistogramDefaultBodyDetailsItems0 */ type GetHistogramDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -406,6 +415,7 @@ GetHistogramOKBody HistogramReply is histogram items as a list. swagger:model GetHistogramOKBody */ type GetHistogramOKBody struct { + // histogram items HistogramItems []*GetHistogramOKBodyHistogramItemsItems0 `json:"histogram_items"` } @@ -465,7 +475,9 @@ func (o *GetHistogramOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetHistogramOKBody) contextValidateHistogramItems(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.HistogramItems); i++ { + if o.HistogramItems[i] != nil { if err := o.HistogramItems[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -476,6 +488,7 @@ func (o *GetHistogramOKBody) contextValidateHistogramItems(ctx context.Context, return err } } + } return nil @@ -504,6 +517,7 @@ GetHistogramOKBodyHistogramItemsItems0 HistogramItem represents one item in hist swagger:model GetHistogramOKBodyHistogramItemsItems0 */ type GetHistogramOKBodyHistogramItemsItems0 struct { + // range Range string `json:"range,omitempty"` @@ -544,6 +558,7 @@ GetHistogramParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimension swagger:model GetHistogramParamsBodyLabelsItems0 */ type GetHistogramParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/object_details/get_labels_parameters.go b/api/qanpb/json/client/object_details/get_labels_parameters.go index 27cd5acdc7..b706dec152 100644 --- a/api/qanpb/json/client/object_details/get_labels_parameters.go +++ b/api/qanpb/json/client/object_details/get_labels_parameters.go @@ -60,6 +60,7 @@ GetLabelsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLabelsParams struct { + /* Body. ObjectDetailsLabelsRequest defines filtering of object detail's labels for specific value of @@ -133,6 +134,7 @@ func (o *GetLabelsParams) SetBody(body GetLabelsBody) { // WriteToRequest writes these params to a swagger request func (o *GetLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_labels_responses.go b/api/qanpb/json/client/object_details/get_labels_responses.go index 5022d06873..21194dcbc9 100644 --- a/api/qanpb/json/client/object_details/get_labels_responses.go +++ b/api/qanpb/json/client/object_details/get_labels_responses.go @@ -61,12 +61,12 @@ type GetLabelsOK struct { func (o *GetLabelsOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetLabels][%d] getLabelsOk %+v", 200, o.Payload) } - func (o *GetLabelsOK) GetPayload() *GetLabelsOKBody { return o.Payload } func (o *GetLabelsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLabelsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetLabelsDefault) Code() int { func (o *GetLabelsDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetLabels][%d] GetLabels default %+v", o._statusCode, o.Payload) } - func (o *GetLabelsDefault) GetPayload() *GetLabelsDefaultBody { return o.Payload } func (o *GetLabelsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLabelsDefaultBody) // response payload @@ -125,6 +125,7 @@ GetLabelsBody ObjectDetailsLabelsRequest defines filtering of object detail's la swagger:model GetLabelsBody */ type GetLabelsBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -210,6 +211,7 @@ GetLabelsDefaultBody get labels default body swagger:model GetLabelsDefaultBody */ type GetLabelsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -275,7 +277,9 @@ func (o *GetLabelsDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *GetLabelsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -286,6 +290,7 @@ func (o *GetLabelsDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -314,6 +319,7 @@ GetLabelsDefaultBodyDetailsItems0 get labels default body details items0 swagger:model GetLabelsDefaultBodyDetailsItems0 */ type GetLabelsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -351,6 +357,7 @@ GetLabelsOKBody ObjectDetailsLabelsReply is a map of labels names as keys and la swagger:model GetLabelsOKBody */ type GetLabelsOKBody struct { + // labels Labels map[string]GetLabelsOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -410,12 +417,15 @@ func (o *GetLabelsOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *GetLabelsOKBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Labels { + if val, ok := o.Labels[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -444,6 +454,7 @@ GetLabelsOKBodyLabelsAnon ListLabelValues is list of label's values. swagger:model GetLabelsOKBodyLabelsAnon */ type GetLabelsOKBodyLabelsAnon struct { + // values Values []string `json:"values"` } diff --git a/api/qanpb/json/client/object_details/get_metrics_parameters.go b/api/qanpb/json/client/object_details/get_metrics_parameters.go index f5d2589a16..ff8ab9f35f 100644 --- a/api/qanpb/json/client/object_details/get_metrics_parameters.go +++ b/api/qanpb/json/client/object_details/get_metrics_parameters.go @@ -60,6 +60,7 @@ GetMetricsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetMetricsParams struct { + /* Body. MetricsRequest defines filtering of metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. @@ -132,6 +133,7 @@ func (o *GetMetricsParams) SetBody(body GetMetricsBody) { // WriteToRequest writes these params to a swagger request func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_metrics_responses.go b/api/qanpb/json/client/object_details/get_metrics_responses.go index 5416259ce0..8ee4ce066a 100644 --- a/api/qanpb/json/client/object_details/get_metrics_responses.go +++ b/api/qanpb/json/client/object_details/get_metrics_responses.go @@ -61,12 +61,12 @@ type GetMetricsOK struct { func (o *GetMetricsOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetMetrics][%d] getMetricsOk %+v", 200, o.Payload) } - func (o *GetMetricsOK) GetPayload() *GetMetricsOKBody { return o.Payload } func (o *GetMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetMetricsDefault) Code() int { func (o *GetMetricsDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetMetrics][%d] GetMetrics default %+v", o._statusCode, o.Payload) } - func (o *GetMetricsDefault) GetPayload() *GetMetricsDefaultBody { return o.Payload } func (o *GetMetricsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsDefaultBody) // response payload @@ -124,6 +124,7 @@ GetMetricsBody MetricsRequest defines filtering of metrics for specific value of swagger:model GetMetricsBody */ type GetMetricsBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -235,7 +236,9 @@ func (o *GetMetricsBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *GetMetricsBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Labels); i++ { + if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -246,6 +249,7 @@ func (o *GetMetricsBody) contextValidateLabels(ctx context.Context, formats strf return err } } + } return nil @@ -274,6 +278,7 @@ GetMetricsDefaultBody get metrics default body swagger:model GetMetricsDefaultBody */ type GetMetricsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -339,7 +344,9 @@ func (o *GetMetricsDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *GetMetricsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -350,6 +357,7 @@ func (o *GetMetricsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -378,6 +386,7 @@ GetMetricsDefaultBodyDetailsItems0 get metrics default body details items0 swagger:model GetMetricsDefaultBodyDetailsItems0 */ type GetMetricsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -415,6 +424,7 @@ GetMetricsOKBody MetricsReply defines metrics for specific value of dimension (e swagger:model GetMetricsOKBody */ type GetMetricsOKBody struct { + // metrics Metrics map[string]GetMetricsOKBodyMetricsAnon `json:"metrics,omitempty"` @@ -554,19 +564,24 @@ func (o *GetMetricsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *GetMetricsOKBody) contextValidateMetrics(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Metrics { + if val, ok := o.Metrics[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetMetricsOKBody) contextValidateSparkline(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Sparkline); i++ { + if o.Sparkline[i] != nil { if err := o.Sparkline[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -577,18 +592,22 @@ func (o *GetMetricsOKBody) contextValidateSparkline(ctx context.Context, formats return err } } + } return nil } func (o *GetMetricsOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Totals { + if val, ok := o.Totals[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil @@ -617,6 +636,7 @@ GetMetricsOKBodyMetricsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyMetricsAnon */ type GetMetricsOKBodyMetricsAnon struct { + // rate Rate float32 `json:"rate,omitempty"` @@ -676,6 +696,7 @@ GetMetricsOKBodySparklineItems0 Point contains values that represents abscissa ( swagger:model GetMetricsOKBodySparklineItems0 */ type GetMetricsOKBodySparklineItems0 struct { + // The serial number of the chart point from the largest time in the time interval to the lowest time in the time range. Point int64 `json:"point,omitempty"` @@ -905,6 +926,7 @@ GetMetricsOKBodyTotalsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyTotalsAnon */ type GetMetricsOKBodyTotalsAnon struct { + // rate Rate float32 `json:"rate,omitempty"` @@ -963,6 +985,7 @@ GetMetricsParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions swagger:model GetMetricsParamsBodyLabelsItems0 */ type GetMetricsParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/object_details/get_query_example_parameters.go b/api/qanpb/json/client/object_details/get_query_example_parameters.go index bccae86cac..a697cb319b 100644 --- a/api/qanpb/json/client/object_details/get_query_example_parameters.go +++ b/api/qanpb/json/client/object_details/get_query_example_parameters.go @@ -60,6 +60,7 @@ GetQueryExampleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetQueryExampleParams struct { + /* Body. QueryExampleRequest defines filtering of query examples for specific value of @@ -133,6 +134,7 @@ func (o *GetQueryExampleParams) SetBody(body GetQueryExampleBody) { // WriteToRequest writes these params to a swagger request func (o *GetQueryExampleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_query_example_responses.go b/api/qanpb/json/client/object_details/get_query_example_responses.go index ee7709800c..31e00a40ee 100644 --- a/api/qanpb/json/client/object_details/get_query_example_responses.go +++ b/api/qanpb/json/client/object_details/get_query_example_responses.go @@ -62,12 +62,12 @@ type GetQueryExampleOK struct { func (o *GetQueryExampleOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryExample][%d] getQueryExampleOk %+v", 200, o.Payload) } - func (o *GetQueryExampleOK) GetPayload() *GetQueryExampleOKBody { return o.Payload } func (o *GetQueryExampleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryExampleOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetQueryExampleDefault) Code() int { func (o *GetQueryExampleDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryExample][%d] GetQueryExample default %+v", o._statusCode, o.Payload) } - func (o *GetQueryExampleDefault) GetPayload() *GetQueryExampleDefaultBody { return o.Payload } func (o *GetQueryExampleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryExampleDefaultBody) // response payload @@ -126,6 +126,7 @@ GetQueryExampleBody QueryExampleRequest defines filtering of query examples for swagger:model GetQueryExampleBody */ type GetQueryExampleBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -234,7 +235,9 @@ func (o *GetQueryExampleBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetQueryExampleBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Labels); i++ { + if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,6 +248,7 @@ func (o *GetQueryExampleBody) contextValidateLabels(ctx context.Context, formats return err } } + } return nil @@ -273,6 +277,7 @@ GetQueryExampleDefaultBody get query example default body swagger:model GetQueryExampleDefaultBody */ type GetQueryExampleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -338,7 +343,9 @@ func (o *GetQueryExampleDefaultBody) ContextValidate(ctx context.Context, format } func (o *GetQueryExampleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -349,6 +356,7 @@ func (o *GetQueryExampleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -377,6 +385,7 @@ GetQueryExampleDefaultBodyDetailsItems0 get query example default body details i swagger:model GetQueryExampleDefaultBodyDetailsItems0 */ type GetQueryExampleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -414,6 +423,7 @@ GetQueryExampleOKBody QueryExampleReply list of query examples. swagger:model GetQueryExampleOKBody */ type GetQueryExampleOKBody struct { + // query examples QueryExamples []*GetQueryExampleOKBodyQueryExamplesItems0 `json:"query_examples"` } @@ -473,7 +483,9 @@ func (o *GetQueryExampleOKBody) ContextValidate(ctx context.Context, formats str } func (o *GetQueryExampleOKBody) contextValidateQueryExamples(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QueryExamples); i++ { + if o.QueryExamples[i] != nil { if err := o.QueryExamples[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -484,6 +496,7 @@ func (o *GetQueryExampleOKBody) contextValidateQueryExamples(ctx context.Context return err } } + } return nil @@ -512,6 +525,7 @@ GetQueryExampleOKBodyQueryExamplesItems0 QueryExample shows query examples and t swagger:model GetQueryExampleOKBodyQueryExamplesItems0 */ type GetQueryExampleOKBodyQueryExamplesItems0 struct { + // example Example string `json:"example,omitempty"` @@ -686,6 +700,7 @@ GetQueryExampleParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimens swagger:model GetQueryExampleParamsBodyLabelsItems0 */ type GetQueryExampleParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/object_details/get_query_plan_parameters.go b/api/qanpb/json/client/object_details/get_query_plan_parameters.go index 951332f0db..ec863f68f8 100644 --- a/api/qanpb/json/client/object_details/get_query_plan_parameters.go +++ b/api/qanpb/json/client/object_details/get_query_plan_parameters.go @@ -60,6 +60,7 @@ GetQueryPlanParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetQueryPlanParams struct { + /* Body. QueryPlanRequest defines filtering by queryid. @@ -132,6 +133,7 @@ func (o *GetQueryPlanParams) SetBody(body GetQueryPlanBody) { // WriteToRequest writes these params to a swagger request func (o *GetQueryPlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_query_plan_responses.go b/api/qanpb/json/client/object_details/get_query_plan_responses.go index c0e5daf471..4d562c717c 100644 --- a/api/qanpb/json/client/object_details/get_query_plan_responses.go +++ b/api/qanpb/json/client/object_details/get_query_plan_responses.go @@ -60,12 +60,12 @@ type GetQueryPlanOK struct { func (o *GetQueryPlanOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryPlan][%d] getQueryPlanOk %+v", 200, o.Payload) } - func (o *GetQueryPlanOK) GetPayload() *GetQueryPlanOKBody { return o.Payload } func (o *GetQueryPlanOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryPlanOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetQueryPlanDefault) Code() int { func (o *GetQueryPlanDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryPlan][%d] GetQueryPlan default %+v", o._statusCode, o.Payload) } - func (o *GetQueryPlanDefault) GetPayload() *GetQueryPlanDefaultBody { return o.Payload } func (o *GetQueryPlanDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryPlanDefaultBody) // response payload @@ -123,6 +123,7 @@ GetQueryPlanBody QueryPlanRequest defines filtering by queryid. swagger:model GetQueryPlanBody */ type GetQueryPlanBody struct { + // queryid Queryid string `json:"queryid,omitempty"` } @@ -160,6 +161,7 @@ GetQueryPlanDefaultBody get query plan default body swagger:model GetQueryPlanDefaultBody */ type GetQueryPlanDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *GetQueryPlanDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetQueryPlanDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *GetQueryPlanDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -264,6 +269,7 @@ GetQueryPlanDefaultBodyDetailsItems0 get query plan default body details items0 swagger:model GetQueryPlanDefaultBodyDetailsItems0 */ type GetQueryPlanDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ GetQueryPlanOKBody QueryPlanReply contains planid and query_plan. swagger:model GetQueryPlanOKBody */ type GetQueryPlanOKBody struct { + // planid Planid string `json:"planid,omitempty"` diff --git a/api/qanpb/json/client/object_details/query_exists_parameters.go b/api/qanpb/json/client/object_details/query_exists_parameters.go index 3147a7c93c..ec330d052a 100644 --- a/api/qanpb/json/client/object_details/query_exists_parameters.go +++ b/api/qanpb/json/client/object_details/query_exists_parameters.go @@ -60,6 +60,7 @@ QueryExistsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type QueryExistsParams struct { + /* Body. QueryExistsRequest check if provided query exists or not. @@ -132,6 +133,7 @@ func (o *QueryExistsParams) SetBody(body QueryExistsBody) { // WriteToRequest writes these params to a swagger request func (o *QueryExistsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/query_exists_responses.go b/api/qanpb/json/client/object_details/query_exists_responses.go index 4e05278cb4..ac5541a701 100644 --- a/api/qanpb/json/client/object_details/query_exists_responses.go +++ b/api/qanpb/json/client/object_details/query_exists_responses.go @@ -60,12 +60,12 @@ type QueryExistsOK struct { func (o *QueryExistsOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/QueryExists][%d] queryExistsOk %+v", 200, o.Payload) } - func (o *QueryExistsOK) GetPayload() bool { return o.Payload } func (o *QueryExistsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *QueryExistsDefault) Code() int { func (o *QueryExistsDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/QueryExists][%d] QueryExists default %+v", o._statusCode, o.Payload) } - func (o *QueryExistsDefault) GetPayload() *QueryExistsDefaultBody { return o.Payload } func (o *QueryExistsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(QueryExistsDefaultBody) // response payload @@ -121,6 +121,7 @@ QueryExistsBody QueryExistsRequest check if provided query exists or not. swagger:model QueryExistsBody */ type QueryExistsBody struct { + // serviceid Serviceid string `json:"serviceid,omitempty"` @@ -161,6 +162,7 @@ QueryExistsDefaultBody query exists default body swagger:model QueryExistsDefaultBody */ type QueryExistsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -226,7 +228,9 @@ func (o *QueryExistsDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *QueryExistsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -237,6 +241,7 @@ func (o *QueryExistsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -265,6 +270,7 @@ QueryExistsDefaultBodyDetailsItems0 query exists default body details items0 swagger:model QueryExistsDefaultBodyDetailsItems0 */ type QueryExistsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/qanpb/json/client/profile/get_report_parameters.go b/api/qanpb/json/client/profile/get_report_parameters.go index 154ce458c2..adea6a5299 100644 --- a/api/qanpb/json/client/profile/get_report_parameters.go +++ b/api/qanpb/json/client/profile/get_report_parameters.go @@ -60,6 +60,7 @@ GetReportParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetReportParams struct { + /* Body. ReportRequest defines filtering of metrics report for db server or other dimentions. @@ -132,6 +133,7 @@ func (o *GetReportParams) SetBody(body GetReportBody) { // WriteToRequest writes these params to a swagger request func (o *GetReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/profile/get_report_responses.go b/api/qanpb/json/client/profile/get_report_responses.go index d72cc8a69f..0835051be4 100644 --- a/api/qanpb/json/client/profile/get_report_responses.go +++ b/api/qanpb/json/client/profile/get_report_responses.go @@ -61,12 +61,12 @@ type GetReportOK struct { func (o *GetReportOK) Error() string { return fmt.Sprintf("[POST /v0/qan/GetReport][%d] getReportOk %+v", 200, o.Payload) } - func (o *GetReportOK) GetPayload() *GetReportOKBody { return o.Payload } func (o *GetReportOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetReportOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetReportDefault) Code() int { func (o *GetReportDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/GetReport][%d] GetReport default %+v", o._statusCode, o.Payload) } - func (o *GetReportDefault) GetPayload() *GetReportDefaultBody { return o.Payload } func (o *GetReportDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetReportDefaultBody) // response payload @@ -124,6 +124,7 @@ GetReportBody ReportRequest defines filtering of metrics report for db server or swagger:model GetReportBody */ type GetReportBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -244,7 +245,9 @@ func (o *GetReportBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetReportBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Labels); i++ { + if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -255,6 +258,7 @@ func (o *GetReportBody) contextValidateLabels(ctx context.Context, formats strfm return err } } + } return nil @@ -283,6 +287,7 @@ GetReportDefaultBody get report default body swagger:model GetReportDefaultBody */ type GetReportDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -348,7 +353,9 @@ func (o *GetReportDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *GetReportDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -359,6 +366,7 @@ func (o *GetReportDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -387,6 +395,7 @@ GetReportDefaultBodyDetailsItems0 get report default body details items0 swagger:model GetReportDefaultBodyDetailsItems0 */ type GetReportDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -424,6 +433,7 @@ GetReportOKBody ReportReply is list of reports per quieryids, hosts etc. swagger:model GetReportOKBody */ type GetReportOKBody struct { + // total rows TotalRows int64 `json:"total_rows,omitempty"` @@ -492,7 +502,9 @@ func (o *GetReportOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *GetReportOKBody) contextValidateRows(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Rows); i++ { + if o.Rows[i] != nil { if err := o.Rows[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -503,6 +515,7 @@ func (o *GetReportOKBody) contextValidateRows(ctx context.Context, formats strfm return err } } + } return nil @@ -531,6 +544,7 @@ GetReportOKBodyRowsItems0 Row define metrics for selected dimention. swagger:model GetReportOKBodyRowsItems0 */ type GetReportOKBodyRowsItems0 struct { + // rank Rank int64 `json:"rank,omitempty"` @@ -648,19 +662,24 @@ func (o *GetReportOKBodyRowsItems0) ContextValidate(ctx context.Context, formats } func (o *GetReportOKBodyRowsItems0) contextValidateMetrics(ctx context.Context, formats strfmt.Registry) error { + for k := range o.Metrics { + if val, ok := o.Metrics[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } + } return nil } func (o *GetReportOKBodyRowsItems0) contextValidateSparkline(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Sparkline); i++ { + if o.Sparkline[i] != nil { if err := o.Sparkline[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -671,6 +690,7 @@ func (o *GetReportOKBodyRowsItems0) contextValidateSparkline(ctx context.Context return err } } + } return nil @@ -699,6 +719,7 @@ GetReportOKBodyRowsItems0MetricsAnon Metric cell. swagger:model GetReportOKBodyRowsItems0MetricsAnon */ type GetReportOKBodyRowsItems0MetricsAnon struct { + // stats Stats *GetReportOKBodyRowsItems0MetricsAnonStats `json:"stats,omitempty"` } @@ -751,6 +772,7 @@ func (o *GetReportOKBodyRowsItems0MetricsAnon) ContextValidate(ctx context.Conte } func (o *GetReportOKBodyRowsItems0MetricsAnon) contextValidateStats(ctx context.Context, formats strfmt.Registry) error { + if o.Stats != nil { if err := o.Stats.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -788,6 +810,7 @@ GetReportOKBodyRowsItems0MetricsAnonStats Stat is statistics of specific metric. swagger:model GetReportOKBodyRowsItems0MetricsAnonStats */ type GetReportOKBodyRowsItems0MetricsAnonStats struct { + // rate Rate float32 `json:"rate,omitempty"` @@ -847,6 +870,7 @@ GetReportOKBodyRowsItems0SparklineItems0 Point contains values that represents a swagger:model GetReportOKBodyRowsItems0SparklineItems0 */ type GetReportOKBodyRowsItems0SparklineItems0 struct { + // The serial number of the chart point from the largest time in the time interval to the lowest time in the time range. Point int64 `json:"point,omitempty"` @@ -1076,6 +1100,7 @@ GetReportParamsBodyLabelsItems0 ReportMapFieldEntry allows to pass labels/diment swagger:model GetReportParamsBodyLabelsItems0 */ type GetReportParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/metrics_names.pb.go b/api/qanpb/metrics_names.pb.go index bb3187d399..35cf701fb0 100644 --- a/api/qanpb/metrics_names.pb.go +++ b/api/qanpb/metrics_names.pb.go @@ -7,12 +7,11 @@ package qanv1beta1 import ( - reflect "reflect" - sync "sync" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -162,15 +161,12 @@ func file_qanpb_metrics_names_proto_rawDescGZIP() []byte { return file_qanpb_metrics_names_proto_rawDescData } -var ( - file_qanpb_metrics_names_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_qanpb_metrics_names_proto_goTypes = []interface{}{ - (*MetricsNamesRequest)(nil), // 0: qan.v1beta1.MetricsNamesRequest - (*MetricsNamesReply)(nil), // 1: qan.v1beta1.MetricsNamesReply - nil, // 2: qan.v1beta1.MetricsNamesReply.DataEntry - } -) - +var file_qanpb_metrics_names_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_qanpb_metrics_names_proto_goTypes = []interface{}{ + (*MetricsNamesRequest)(nil), // 0: qan.v1beta1.MetricsNamesRequest + (*MetricsNamesReply)(nil), // 1: qan.v1beta1.MetricsNamesReply + nil, // 2: qan.v1beta1.MetricsNamesReply.DataEntry +} var file_qanpb_metrics_names_proto_depIdxs = []int32{ 2, // 0: qan.v1beta1.MetricsNamesReply.data:type_name -> qan.v1beta1.MetricsNamesReply.DataEntry 0, // 1: qan.v1beta1.MetricsNames.GetMetricsNames:input_type -> qan.v1beta1.MetricsNamesRequest diff --git a/api/qanpb/metrics_names.pb.gw.go b/api/qanpb/metrics_names.pb.gw.go index de0d7a111f..f2f32563f5 100644 --- a/api/qanpb/metrics_names.pb.gw.go +++ b/api/qanpb/metrics_names.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler runtime.Marshaler, client MetricsNamesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MetricsNamesRequest @@ -47,6 +45,7 @@ func request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler runti msg, err := client.GetMetricsNames(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler runtime.Marshaler, server MetricsNamesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler msg, err := server.GetMetricsNames(ctx, &protoReq) return msg, metadata, err + } // RegisterMetricsNamesHandlerServer registers the http handlers for service MetricsNames to "mux". @@ -70,6 +70,7 @@ func local_request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMetricsNamesHandlerFromEndpoint instead. func RegisterMetricsNamesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetricsNamesServer) error { + mux.Handle("POST", pattern_MetricsNames_GetMetricsNames_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterMetricsNamesHandlerServer(ctx context.Context, mux *runtime.ServeMu } forward_MetricsNames_GetMetricsNames_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterMetricsNamesHandler(ctx context.Context, mux *runtime.ServeMux, con // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MetricsNamesClient" to call the correct interceptors. func RegisterMetricsNamesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetricsNamesClient) error { + mux.Handle("POST", pattern_MetricsNames_GetMetricsNames_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterMetricsNamesHandlerClient(ctx context.Context, mux *runtime.ServeMu } forward_MetricsNames_GetMetricsNames_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_MetricsNames_GetMetricsNames_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetMetricsNames"}, "")) +var ( + pattern_MetricsNames_GetMetricsNames_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetMetricsNames"}, "")) +) -var forward_MetricsNames_GetMetricsNames_0 = runtime.ForwardResponseMessage +var ( + forward_MetricsNames_GetMetricsNames_0 = runtime.ForwardResponseMessage +) diff --git a/api/qanpb/metrics_names.validator.pb.go b/api/qanpb/metrics_names.validator.pb.go index 72c3e5ca01..47201baacd 100644 --- a/api/qanpb/metrics_names.validator.pb.go +++ b/api/qanpb/metrics_names.validator.pb.go @@ -6,22 +6,18 @@ package qanv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *MetricsNamesRequest) Validate() error { return nil } - func (this *MetricsNamesReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil diff --git a/api/qanpb/metrics_names_grpc.pb.go b/api/qanpb/metrics_names_grpc.pb.go index 0be465eaf9..adf9360b45 100644 --- a/api/qanpb/metrics_names_grpc.pb.go +++ b/api/qanpb/metrics_names_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type MetricsNamesServer interface { } // UnimplementedMetricsNamesServer must be embedded to have forward compatible implementations. -type UnimplementedMetricsNamesServer struct{} +type UnimplementedMetricsNamesServer struct { +} func (UnimplementedMetricsNamesServer) GetMetricsNames(context.Context, *MetricsNamesRequest) (*MetricsNamesReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetricsNames not implemented") diff --git a/api/qanpb/object_details.pb.go b/api/qanpb/object_details.pb.go index 80a142bcac..9357287d3f 100644 --- a/api/qanpb/object_details.pb.go +++ b/api/qanpb/object_details.pb.go @@ -7,14 +7,13 @@ package qanv1beta1 import ( - reflect "reflect" - sync "sync" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" ) const ( @@ -1384,38 +1383,35 @@ func file_qanpb_object_details_proto_rawDescGZIP() []byte { return file_qanpb_object_details_proto_rawDescData } -var ( - file_qanpb_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 20) - file_qanpb_object_details_proto_goTypes = []interface{}{ - (*MetricsRequest)(nil), // 0: qan.v1beta1.MetricsRequest - (*MetricsReply)(nil), // 1: qan.v1beta1.MetricsReply - (*MetricValues)(nil), // 2: qan.v1beta1.MetricValues - (*Labels)(nil), // 3: qan.v1beta1.Labels - (*QueryExampleRequest)(nil), // 4: qan.v1beta1.QueryExampleRequest - (*QueryExampleReply)(nil), // 5: qan.v1beta1.QueryExampleReply - (*QueryExample)(nil), // 6: qan.v1beta1.QueryExample - (*ObjectDetailsLabelsRequest)(nil), // 7: qan.v1beta1.ObjectDetailsLabelsRequest - (*ObjectDetailsLabelsReply)(nil), // 8: qan.v1beta1.ObjectDetailsLabelsReply - (*ListLabelValues)(nil), // 9: qan.v1beta1.ListLabelValues - (*QueryPlanRequest)(nil), // 10: qan.v1beta1.QueryPlanRequest - (*QueryPlanReply)(nil), // 11: qan.v1beta1.QueryPlanReply - (*HistogramRequest)(nil), // 12: qan.v1beta1.HistogramRequest - (*HistogramReply)(nil), // 13: qan.v1beta1.HistogramReply - (*HistogramItem)(nil), // 14: qan.v1beta1.HistogramItem - (*QueryExistsRequest)(nil), // 15: qan.v1beta1.QueryExistsRequest - nil, // 16: qan.v1beta1.MetricsReply.MetricsEntry - nil, // 17: qan.v1beta1.MetricsReply.TextMetricsEntry - nil, // 18: qan.v1beta1.MetricsReply.TotalsEntry - nil, // 19: qan.v1beta1.ObjectDetailsLabelsReply.LabelsEntry - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 21: qan.v1beta1.MapFieldEntry - (*Point)(nil), // 22: qan.v1beta1.Point - (ExampleFormat)(0), // 23: qan.v1beta1.ExampleFormat - (ExampleType)(0), // 24: qan.v1beta1.ExampleType - (*wrapperspb.BoolValue)(nil), // 25: google.protobuf.BoolValue - } -) - +var file_qanpb_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_qanpb_object_details_proto_goTypes = []interface{}{ + (*MetricsRequest)(nil), // 0: qan.v1beta1.MetricsRequest + (*MetricsReply)(nil), // 1: qan.v1beta1.MetricsReply + (*MetricValues)(nil), // 2: qan.v1beta1.MetricValues + (*Labels)(nil), // 3: qan.v1beta1.Labels + (*QueryExampleRequest)(nil), // 4: qan.v1beta1.QueryExampleRequest + (*QueryExampleReply)(nil), // 5: qan.v1beta1.QueryExampleReply + (*QueryExample)(nil), // 6: qan.v1beta1.QueryExample + (*ObjectDetailsLabelsRequest)(nil), // 7: qan.v1beta1.ObjectDetailsLabelsRequest + (*ObjectDetailsLabelsReply)(nil), // 8: qan.v1beta1.ObjectDetailsLabelsReply + (*ListLabelValues)(nil), // 9: qan.v1beta1.ListLabelValues + (*QueryPlanRequest)(nil), // 10: qan.v1beta1.QueryPlanRequest + (*QueryPlanReply)(nil), // 11: qan.v1beta1.QueryPlanReply + (*HistogramRequest)(nil), // 12: qan.v1beta1.HistogramRequest + (*HistogramReply)(nil), // 13: qan.v1beta1.HistogramReply + (*HistogramItem)(nil), // 14: qan.v1beta1.HistogramItem + (*QueryExistsRequest)(nil), // 15: qan.v1beta1.QueryExistsRequest + nil, // 16: qan.v1beta1.MetricsReply.MetricsEntry + nil, // 17: qan.v1beta1.MetricsReply.TextMetricsEntry + nil, // 18: qan.v1beta1.MetricsReply.TotalsEntry + nil, // 19: qan.v1beta1.ObjectDetailsLabelsReply.LabelsEntry + (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 21: qan.v1beta1.MapFieldEntry + (*Point)(nil), // 22: qan.v1beta1.Point + (ExampleFormat)(0), // 23: qan.v1beta1.ExampleFormat + (ExampleType)(0), // 24: qan.v1beta1.ExampleType + (*wrapperspb.BoolValue)(nil), // 25: google.protobuf.BoolValue +} var file_qanpb_object_details_proto_depIdxs = []int32{ 20, // 0: qan.v1beta1.MetricsRequest.period_start_from:type_name -> google.protobuf.Timestamp 20, // 1: qan.v1beta1.MetricsRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qanpb/object_details.pb.gw.go b/api/qanpb/object_details.pb.gw.go index 36f4a871da..7614c378d3 100644 --- a/api/qanpb/object_details.pb.gw.go +++ b/api/qanpb/object_details.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MetricsRequest @@ -47,6 +45,7 @@ func request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler runtime.M msg, err := client.GetMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler run msg, err := server.GetMetrics(ctx, &protoReq) return msg, metadata, err + } func request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +79,7 @@ func request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshaler runt msg, err := client.GetQueryExample(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +96,7 @@ func local_request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshale msg, err := server.GetQueryExample(ctx, &protoReq) return msg, metadata, err + } func request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +113,7 @@ func request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runtime.Ma msg, err := client.GetLabels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +130,7 @@ func local_request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runt msg, err := server.GetLabels(ctx, &protoReq) return msg, metadata, err + } func request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +147,7 @@ func request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler runtime msg, err := client.GetQueryPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +164,7 @@ func local_request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler r msg, err := server.GetQueryPlan(ctx, &protoReq) return msg, metadata, err + } func request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +181,7 @@ func request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler runtime msg, err := client.GetHistogram(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +198,7 @@ func local_request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler r msg, err := server.GetHistogram(ctx, &protoReq) return msg, metadata, err + } func request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +215,7 @@ func request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler runtime. msg, err := client.QueryExists(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +232,7 @@ func local_request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler ru msg, err := server.QueryExists(ctx, &protoReq) return msg, metadata, err + } // RegisterObjectDetailsHandlerServer registers the http handlers for service ObjectDetails to "mux". @@ -230,6 +240,7 @@ func local_request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler ru // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterObjectDetailsHandlerFromEndpoint instead. func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ObjectDetailsServer) error { + mux.Handle("POST", pattern_ObjectDetails_GetMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -252,6 +263,7 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetQueryExample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -276,6 +288,7 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryExample_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetLabels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -300,6 +313,7 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetLabels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetQueryPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -324,6 +338,7 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetHistogram_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -348,6 +363,7 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetHistogram_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_QueryExists_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -372,6 +388,7 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_QueryExists_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -414,6 +431,7 @@ func RegisterObjectDetailsHandler(ctx context.Context, mux *runtime.ServeMux, co // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ObjectDetailsClient" to call the correct interceptors. func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectDetailsClient) error { + mux.Handle("POST", pattern_ObjectDetails_GetMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -433,6 +451,7 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetQueryExample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -454,6 +473,7 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryExample_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetLabels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -475,6 +495,7 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetLabels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetQueryPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -496,6 +517,7 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_GetHistogram_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -517,6 +539,7 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetHistogram_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_ObjectDetails_QueryExists_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -538,6 +561,7 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_QueryExists_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/qanpb/object_details.validator.pb.go b/api/qanpb/object_details.validator.pb.go index 146a5749d2..0a0d1e68af 100644 --- a/api/qanpb/object_details.validator.pb.go +++ b/api/qanpb/object_details.validator.pb.go @@ -6,20 +6,17 @@ package qanv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" _ "google.golang.org/protobuf/types/known/wrapperspb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *MetricsRequest) Validate() error { if this.PeriodStartFrom != nil { @@ -41,7 +38,6 @@ func (this *MetricsRequest) Validate() error { } return nil } - func (this *MetricsReply) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. @@ -55,15 +51,12 @@ func (this *MetricsReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *MetricValues) Validate() error { return nil } - func (this *Labels) Validate() error { return nil } - func (this *QueryExampleRequest) Validate() error { if this.PeriodStartFrom != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PeriodStartFrom); err != nil { @@ -84,7 +77,6 @@ func (this *QueryExampleRequest) Validate() error { } return nil } - func (this *QueryExampleReply) Validate() error { for _, item := range this.QueryExamples { if item != nil { @@ -95,11 +87,9 @@ func (this *QueryExampleReply) Validate() error { } return nil } - func (this *QueryExample) Validate() error { return nil } - func (this *ObjectDetailsLabelsRequest) Validate() error { if this.PeriodStartFrom != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PeriodStartFrom); err != nil { @@ -113,24 +103,19 @@ func (this *ObjectDetailsLabelsRequest) Validate() error { } return nil } - func (this *ObjectDetailsLabelsReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } - func (this *ListLabelValues) Validate() error { return nil } - func (this *QueryPlanRequest) Validate() error { return nil } - func (this *QueryPlanReply) Validate() error { return nil } - func (this *HistogramRequest) Validate() error { if this.PeriodStartFrom != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PeriodStartFrom); err != nil { @@ -151,7 +136,6 @@ func (this *HistogramRequest) Validate() error { } return nil } - func (this *HistogramReply) Validate() error { for _, item := range this.HistogramItems { if item != nil { @@ -162,11 +146,9 @@ func (this *HistogramReply) Validate() error { } return nil } - func (this *HistogramItem) Validate() error { return nil } - func (this *QueryExistsRequest) Validate() error { return nil } diff --git a/api/qanpb/object_details_grpc.pb.go b/api/qanpb/object_details_grpc.pb.go index 3c595daec4..11e0acff51 100644 --- a/api/qanpb/object_details_grpc.pb.go +++ b/api/qanpb/object_details_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -120,28 +119,24 @@ type ObjectDetailsServer interface { } // UnimplementedObjectDetailsServer must be embedded to have forward compatible implementations. -type UnimplementedObjectDetailsServer struct{} +type UnimplementedObjectDetailsServer struct { +} func (UnimplementedObjectDetailsServer) GetMetrics(context.Context, *MetricsRequest) (*MetricsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") } - func (UnimplementedObjectDetailsServer) GetQueryExample(context.Context, *QueryExampleRequest) (*QueryExampleReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQueryExample not implemented") } - func (UnimplementedObjectDetailsServer) GetLabels(context.Context, *ObjectDetailsLabelsRequest) (*ObjectDetailsLabelsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLabels not implemented") } - func (UnimplementedObjectDetailsServer) GetQueryPlan(context.Context, *QueryPlanRequest) (*QueryPlanReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQueryPlan not implemented") } - func (UnimplementedObjectDetailsServer) GetHistogram(context.Context, *HistogramRequest) (*HistogramReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetHistogram not implemented") } - func (UnimplementedObjectDetailsServer) QueryExists(context.Context, *QueryExistsRequest) (*wrapperspb.BoolValue, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryExists not implemented") } diff --git a/api/qanpb/profile.pb.go b/api/qanpb/profile.pb.go index c6a4806abe..ff8306fdb4 100644 --- a/api/qanpb/profile.pb.go +++ b/api/qanpb/profile.pb.go @@ -7,13 +7,12 @@ package qanv1beta1 import ( - reflect "reflect" - sync "sync" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) const ( @@ -651,21 +650,18 @@ func file_qanpb_profile_proto_rawDescGZIP() []byte { return file_qanpb_profile_proto_rawDescData } -var ( - file_qanpb_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) - file_qanpb_profile_proto_goTypes = []interface{}{ - (*ReportRequest)(nil), // 0: qan.v1beta1.ReportRequest - (*ReportMapFieldEntry)(nil), // 1: qan.v1beta1.ReportMapFieldEntry - (*ReportReply)(nil), // 2: qan.v1beta1.ReportReply - (*Row)(nil), // 3: qan.v1beta1.Row - (*Metric)(nil), // 4: qan.v1beta1.Metric - (*Stat)(nil), // 5: qan.v1beta1.Stat - nil, // 6: qan.v1beta1.Row.MetricsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*Point)(nil), // 8: qan.v1beta1.Point - } -) - +var file_qanpb_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_qanpb_profile_proto_goTypes = []interface{}{ + (*ReportRequest)(nil), // 0: qan.v1beta1.ReportRequest + (*ReportMapFieldEntry)(nil), // 1: qan.v1beta1.ReportMapFieldEntry + (*ReportReply)(nil), // 2: qan.v1beta1.ReportReply + (*Row)(nil), // 3: qan.v1beta1.Row + (*Metric)(nil), // 4: qan.v1beta1.Metric + (*Stat)(nil), // 5: qan.v1beta1.Stat + nil, // 6: qan.v1beta1.Row.MetricsEntry + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*Point)(nil), // 8: qan.v1beta1.Point +} var file_qanpb_profile_proto_depIdxs = []int32{ 7, // 0: qan.v1beta1.ReportRequest.period_start_from:type_name -> google.protobuf.Timestamp 7, // 1: qan.v1beta1.ReportRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qanpb/profile.pb.gw.go b/api/qanpb/profile.pb.gw.go index c73b09e786..c9b637f5a7 100644 --- a/api/qanpb/profile.pb.gw.go +++ b/api/qanpb/profile.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Marshaler, client ProfileClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ReportRequest @@ -47,6 +45,7 @@ func request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.GetReport(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Marshaler, server ProfileServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +62,7 @@ func local_request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Ma msg, err := server.GetReport(ctx, &protoReq) return msg, metadata, err + } // RegisterProfileHandlerServer registers the http handlers for service Profile to "mux". @@ -70,6 +70,7 @@ func local_request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProfileHandlerFromEndpoint instead. func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServer) error { + mux.Handle("POST", pattern_Profile_GetReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -92,6 +93,7 @@ func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Profile_GetReport_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -134,6 +136,7 @@ func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ProfileClient" to call the correct interceptors. func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileClient) error { + mux.Handle("POST", pattern_Profile_GetReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -153,11 +156,16 @@ func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Profile_GetReport_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil } -var pattern_Profile_GetReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetReport"}, "")) +var ( + pattern_Profile_GetReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetReport"}, "")) +) -var forward_Profile_GetReport_0 = runtime.ForwardResponseMessage +var ( + forward_Profile_GetReport_0 = runtime.ForwardResponseMessage +) diff --git a/api/qanpb/profile.validator.pb.go b/api/qanpb/profile.validator.pb.go index bec3aaa958..77bc4a2363 100644 --- a/api/qanpb/profile.validator.pb.go +++ b/api/qanpb/profile.validator.pb.go @@ -6,19 +6,16 @@ package qanv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *ReportRequest) Validate() error { if this.PeriodStartFrom != nil { @@ -40,11 +37,9 @@ func (this *ReportRequest) Validate() error { } return nil } - func (this *ReportMapFieldEntry) Validate() error { return nil } - func (this *ReportReply) Validate() error { for _, item := range this.Rows { if item != nil { @@ -55,7 +50,6 @@ func (this *ReportReply) Validate() error { } return nil } - func (this *Row) Validate() error { // Validation of proto3 map<> fields is unsupported. for _, item := range this.Sparkline { @@ -67,7 +61,6 @@ func (this *Row) Validate() error { } return nil } - func (this *Metric) Validate() error { if this.Stats != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Stats); err != nil { @@ -76,7 +69,6 @@ func (this *Metric) Validate() error { } return nil } - func (this *Stat) Validate() error { return nil } diff --git a/api/qanpb/profile_grpc.pb.go b/api/qanpb/profile_grpc.pb.go index e409afa3b6..ce2e1e4805 100644 --- a/api/qanpb/profile_grpc.pb.go +++ b/api/qanpb/profile_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -54,7 +53,8 @@ type ProfileServer interface { } // UnimplementedProfileServer must be embedded to have forward compatible implementations. -type UnimplementedProfileServer struct{} +type UnimplementedProfileServer struct { +} func (UnimplementedProfileServer) GetReport(context.Context, *ReportRequest) (*ReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReport not implemented") diff --git a/api/qanpb/qan.pb.go b/api/qanpb/qan.pb.go index 4211c12127..fcf9d7a88f 100644 --- a/api/qanpb/qan.pb.go +++ b/api/qanpb/qan.pb.go @@ -7,11 +7,10 @@ package qanv1beta1 import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) const ( @@ -1069,17 +1068,14 @@ func file_qanpb_qan_proto_rawDescGZIP() []byte { return file_qanpb_qan_proto_rawDescData } -var ( - file_qanpb_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_qanpb_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_qanpb_qan_proto_goTypes = []interface{}{ - (ExampleFormat)(0), // 0: qan.v1beta1.ExampleFormat - (ExampleType)(0), // 1: qan.v1beta1.ExampleType - (*Point)(nil), // 2: qan.v1beta1.Point - (*MapFieldEntry)(nil), // 3: qan.v1beta1.MapFieldEntry - } -) - +var file_qanpb_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_qanpb_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_qanpb_qan_proto_goTypes = []interface{}{ + (ExampleFormat)(0), // 0: qan.v1beta1.ExampleFormat + (ExampleType)(0), // 1: qan.v1beta1.ExampleType + (*Point)(nil), // 2: qan.v1beta1.Point + (*MapFieldEntry)(nil), // 3: qan.v1beta1.MapFieldEntry +} var file_qanpb_qan_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/qanpb/qan.validator.pb.go b/api/qanpb/qan.validator.pb.go index 8154fb42d8..448f309361 100644 --- a/api/qanpb/qan.validator.pb.go +++ b/api/qanpb/qan.validator.pb.go @@ -6,21 +6,17 @@ package qanv1beta1 import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *Point) Validate() error { return nil } - func (this *MapFieldEntry) Validate() error { return nil } diff --git a/api/serverpb/httperror.pb.go b/api/serverpb/httperror.pb.go index beaff90530..43b9c10048 100644 --- a/api/serverpb/httperror.pb.go +++ b/api/serverpb/httperror.pb.go @@ -7,12 +7,11 @@ package serverpb import ( - reflect "reflect" - sync "sync" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + sync "sync" ) const ( @@ -135,14 +134,11 @@ func file_serverpb_httperror_proto_rawDescGZIP() []byte { return file_serverpb_httperror_proto_rawDescData } -var ( - file_serverpb_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) - file_serverpb_httperror_proto_goTypes = []interface{}{ - (*HttpError)(nil), // 0: server.HttpError - (*anypb.Any)(nil), // 1: google.protobuf.Any - } -) - +var file_serverpb_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_serverpb_httperror_proto_goTypes = []interface{}{ + (*HttpError)(nil), // 0: server.HttpError + (*anypb.Any)(nil), // 1: google.protobuf.Any +} var file_serverpb_httperror_proto_depIdxs = []int32{ 1, // 0: server.HttpError.details:type_name -> google.protobuf.Any 1, // [1:1] is the sub-list for method output_type diff --git a/api/serverpb/httperror.validator.pb.go b/api/serverpb/httperror.validator.pb.go index 2bbc32fedc..3f35e339fb 100644 --- a/api/serverpb/httperror.validator.pb.go +++ b/api/serverpb/httperror.validator.pb.go @@ -6,18 +6,15 @@ package serverpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/protobuf/types/known/anypb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *HttpError) Validate() error { for _, item := range this.Details { diff --git a/api/serverpb/json/client/server/aws_instance_check_parameters.go b/api/serverpb/json/client/server/aws_instance_check_parameters.go index 07381b0506..5dc132624f 100644 --- a/api/serverpb/json/client/server/aws_instance_check_parameters.go +++ b/api/serverpb/json/client/server/aws_instance_check_parameters.go @@ -60,6 +60,7 @@ AWSInstanceCheckParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AWSInstanceCheckParams struct { + // Body. Body AWSInstanceCheckBody @@ -129,6 +130,7 @@ func (o *AWSInstanceCheckParams) SetBody(body AWSInstanceCheckBody) { // WriteToRequest writes these params to a swagger request func (o *AWSInstanceCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/aws_instance_check_responses.go b/api/serverpb/json/client/server/aws_instance_check_responses.go index 73b1c3035b..549b2b8094 100644 --- a/api/serverpb/json/client/server/aws_instance_check_responses.go +++ b/api/serverpb/json/client/server/aws_instance_check_responses.go @@ -60,12 +60,12 @@ type AWSInstanceCheckOK struct { func (o *AWSInstanceCheckOK) Error() string { return fmt.Sprintf("[POST /v1/AWSInstanceCheck][%d] awsInstanceCheckOk %+v", 200, o.Payload) } - func (o *AWSInstanceCheckOK) GetPayload() interface{} { return o.Payload } func (o *AWSInstanceCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *AWSInstanceCheckDefault) Code() int { func (o *AWSInstanceCheckDefault) Error() string { return fmt.Sprintf("[POST /v1/AWSInstanceCheck][%d] AWSInstanceCheck default %+v", o._statusCode, o.Payload) } - func (o *AWSInstanceCheckDefault) GetPayload() *AWSInstanceCheckDefaultBody { return o.Payload } func (o *AWSInstanceCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AWSInstanceCheckDefaultBody) // response payload @@ -121,6 +121,7 @@ AWSInstanceCheckBody AWS instance check body swagger:model AWSInstanceCheckBody */ type AWSInstanceCheckBody struct { + // AWS EC2 instance ID (i-1234567890abcdef0). InstanceID string `json:"instance_id,omitempty"` } @@ -158,6 +159,7 @@ AWSInstanceCheckDefaultBody AWS instance check default body swagger:model AWSInstanceCheckDefaultBody */ type AWSInstanceCheckDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -223,7 +225,9 @@ func (o *AWSInstanceCheckDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AWSInstanceCheckDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -234,6 +238,7 @@ func (o *AWSInstanceCheckDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -343,6 +348,7 @@ AWSInstanceCheckDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized swagger:model AWSInstanceCheckDefaultBodyDetailsItems0 */ type AWSInstanceCheckDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent diff --git a/api/serverpb/json/client/server/change_settings_parameters.go b/api/serverpb/json/client/server/change_settings_parameters.go index eb5dc182f6..ea84b96ead 100644 --- a/api/serverpb/json/client/server/change_settings_parameters.go +++ b/api/serverpb/json/client/server/change_settings_parameters.go @@ -60,6 +60,7 @@ ChangeSettingsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeSettingsParams struct { + // Body. Body ChangeSettingsBody @@ -129,6 +130,7 @@ func (o *ChangeSettingsParams) SetBody(body ChangeSettingsBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/change_settings_responses.go b/api/serverpb/json/client/server/change_settings_responses.go index 4f1885bec9..eaeb845cdc 100644 --- a/api/serverpb/json/client/server/change_settings_responses.go +++ b/api/serverpb/json/client/server/change_settings_responses.go @@ -60,12 +60,12 @@ type ChangeSettingsOK struct { func (o *ChangeSettingsOK) Error() string { return fmt.Sprintf("[POST /v1/Settings/Change][%d] changeSettingsOk %+v", 200, o.Payload) } - func (o *ChangeSettingsOK) GetPayload() *ChangeSettingsOKBody { return o.Payload } func (o *ChangeSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeSettingsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ChangeSettingsDefault) Code() int { func (o *ChangeSettingsDefault) Error() string { return fmt.Sprintf("[POST /v1/Settings/Change][%d] ChangeSettings default %+v", o._statusCode, o.Payload) } - func (o *ChangeSettingsDefault) GetPayload() *ChangeSettingsDefaultBody { return o.Payload } func (o *ChangeSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeSettingsDefaultBody) // response payload @@ -123,6 +123,7 @@ ChangeSettingsBody change settings body swagger:model ChangeSettingsBody */ type ChangeSettingsBody struct { + // enable updates EnableUpdates bool `json:"enable_updates,omitempty"` @@ -340,6 +341,7 @@ func (o *ChangeSettingsBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeSettingsBody) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -355,6 +357,7 @@ func (o *ChangeSettingsBody) contextValidateEmailAlertingSettings(ctx context.Co } func (o *ChangeSettingsBody) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -370,6 +373,7 @@ func (o *ChangeSettingsBody) contextValidateMetricsResolutions(ctx context.Conte } func (o *ChangeSettingsBody) contextValidateSlackAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.SlackAlertingSettings != nil { if err := o.SlackAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -385,6 +389,7 @@ func (o *ChangeSettingsBody) contextValidateSlackAlertingSettings(ctx context.Co } func (o *ChangeSettingsBody) contextValidateSttCheckIntervals(ctx context.Context, formats strfmt.Registry) error { + if o.SttCheckIntervals != nil { if err := o.SttCheckIntervals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -422,6 +427,7 @@ ChangeSettingsDefaultBody change settings default body swagger:model ChangeSettingsDefaultBody */ type ChangeSettingsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -487,7 +493,9 @@ func (o *ChangeSettingsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeSettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -498,6 +506,7 @@ func (o *ChangeSettingsDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -607,6 +616,7 @@ ChangeSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized pr swagger:model ChangeSettingsDefaultBodyDetailsItems0 */ type ChangeSettingsDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -670,6 +680,7 @@ ChangeSettingsOKBody change settings OK body swagger:model ChangeSettingsOKBody */ type ChangeSettingsOKBody struct { + // settings Settings *ChangeSettingsOKBodySettings `json:"settings,omitempty"` } @@ -722,6 +733,7 @@ func (o *ChangeSettingsOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ChangeSettingsOKBody) contextValidateSettings(ctx context.Context, formats strfmt.Registry) error { + if o.Settings != nil { if err := o.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -759,6 +771,7 @@ ChangeSettingsOKBodySettings Settings represents PMM Server settings. swagger:model ChangeSettingsOKBodySettings */ type ChangeSettingsOKBodySettings struct { + // True if updates are disabled. UpdatesDisabled bool `json:"updates_disabled,omitempty"` @@ -949,6 +962,7 @@ func (o *ChangeSettingsOKBodySettings) ContextValidate(ctx context.Context, form } func (o *ChangeSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -964,6 +978,7 @@ func (o *ChangeSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx } func (o *ChangeSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -979,6 +994,7 @@ func (o *ChangeSettingsOKBodySettings) contextValidateMetricsResolutions(ctx con } func (o *ChangeSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.SlackAlertingSettings != nil { if err := o.SlackAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -994,6 +1010,7 @@ func (o *ChangeSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx } func (o *ChangeSettingsOKBodySettings) contextValidateSttCheckIntervals(ctx context.Context, formats strfmt.Registry) error { + if o.SttCheckIntervals != nil { if err := o.SttCheckIntervals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1031,6 +1048,7 @@ ChangeSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represen swagger:model ChangeSettingsOKBodySettingsEmailAlertingSettings */ type ChangeSettingsOKBodySettingsEmailAlertingSettings struct { + // SMTP From header field. From string `json:"from,omitempty"` @@ -1089,6 +1107,7 @@ ChangeSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Pro swagger:model ChangeSettingsOKBodySettingsMetricsResolutions */ type ChangeSettingsOKBodySettingsMetricsResolutions struct { + // High resolution. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` @@ -1132,6 +1151,7 @@ ChangeSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represen swagger:model ChangeSettingsOKBodySettingsSlackAlertingSettings */ type ChangeSettingsOKBodySettingsSlackAlertingSettings struct { + // Slack API (webhook) URL. URL string `json:"url,omitempty"` } @@ -1169,6 +1189,7 @@ ChangeSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents inter swagger:model ChangeSettingsOKBodySettingsSttCheckIntervals */ type ChangeSettingsOKBodySettingsSttCheckIntervals struct { + // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -1212,6 +1233,7 @@ ChangeSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings represents e swagger:model ChangeSettingsParamsBodyEmailAlertingSettings */ type ChangeSettingsParamsBodyEmailAlertingSettings struct { + // SMTP From header field. From string `json:"from,omitempty"` @@ -1270,6 +1292,7 @@ ChangeSettingsParamsBodyMetricsResolutions MetricsResolutions represents Prometh swagger:model ChangeSettingsParamsBodyMetricsResolutions */ type ChangeSettingsParamsBodyMetricsResolutions struct { + // High resolution. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` @@ -1313,6 +1336,7 @@ ChangeSettingsParamsBodySlackAlertingSettings SlackAlertingSettings represents S swagger:model ChangeSettingsParamsBodySlackAlertingSettings */ type ChangeSettingsParamsBodySlackAlertingSettings struct { + // Slack API (webhook) URL. URL string `json:"url,omitempty"` } @@ -1350,6 +1374,7 @@ ChangeSettingsParamsBodySttCheckIntervals STTCheckIntervals represents intervals swagger:model ChangeSettingsParamsBodySttCheckIntervals */ type ChangeSettingsParamsBodySttCheckIntervals struct { + // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` diff --git a/api/serverpb/json/client/server/check_updates_parameters.go b/api/serverpb/json/client/server/check_updates_parameters.go index 41df75a538..71a36c3c14 100644 --- a/api/serverpb/json/client/server/check_updates_parameters.go +++ b/api/serverpb/json/client/server/check_updates_parameters.go @@ -60,6 +60,7 @@ CheckUpdatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CheckUpdatesParams struct { + // Body. Body CheckUpdatesBody @@ -129,6 +130,7 @@ func (o *CheckUpdatesParams) SetBody(body CheckUpdatesBody) { // WriteToRequest writes these params to a swagger request func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/check_updates_responses.go b/api/serverpb/json/client/server/check_updates_responses.go index a2c9927fa1..a213874779 100644 --- a/api/serverpb/json/client/server/check_updates_responses.go +++ b/api/serverpb/json/client/server/check_updates_responses.go @@ -61,12 +61,12 @@ type CheckUpdatesOK struct { func (o *CheckUpdatesOK) Error() string { return fmt.Sprintf("[POST /v1/Updates/Check][%d] checkUpdatesOk %+v", 200, o.Payload) } - func (o *CheckUpdatesOK) GetPayload() *CheckUpdatesOKBody { return o.Payload } func (o *CheckUpdatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CheckUpdatesOKBody) // response payload @@ -103,12 +103,12 @@ func (o *CheckUpdatesDefault) Code() int { func (o *CheckUpdatesDefault) Error() string { return fmt.Sprintf("[POST /v1/Updates/Check][%d] CheckUpdates default %+v", o._statusCode, o.Payload) } - func (o *CheckUpdatesDefault) GetPayload() *CheckUpdatesDefaultBody { return o.Payload } func (o *CheckUpdatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CheckUpdatesDefaultBody) // response payload @@ -124,6 +124,7 @@ CheckUpdatesBody check updates body swagger:model CheckUpdatesBody */ type CheckUpdatesBody struct { + // If false, cached information may be returned. Force bool `json:"force,omitempty"` @@ -164,6 +165,7 @@ CheckUpdatesDefaultBody check updates default body swagger:model CheckUpdatesDefaultBody */ type CheckUpdatesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -229,7 +231,9 @@ func (o *CheckUpdatesDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *CheckUpdatesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,6 +244,7 @@ func (o *CheckUpdatesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -349,6 +354,7 @@ CheckUpdatesDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized prot swagger:model CheckUpdatesDefaultBodyDetailsItems0 */ type CheckUpdatesDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -412,6 +418,7 @@ CheckUpdatesOKBody check updates OK body swagger:model CheckUpdatesOKBody */ type CheckUpdatesOKBody struct { + // True if there is a PMM Server update available. UpdateAvailable bool `json:"update_available,omitempty"` @@ -520,6 +527,7 @@ func (o *CheckUpdatesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *CheckUpdatesOKBody) contextValidateInstalled(ctx context.Context, formats strfmt.Registry) error { + if o.Installed != nil { if err := o.Installed.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -535,6 +543,7 @@ func (o *CheckUpdatesOKBody) contextValidateInstalled(ctx context.Context, forma } func (o *CheckUpdatesOKBody) contextValidateLatest(ctx context.Context, formats strfmt.Registry) error { + if o.Latest != nil { if err := o.Latest.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -572,6 +581,7 @@ CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Serv swagger:model CheckUpdatesOKBodyInstalled */ type CheckUpdatesOKBodyInstalled struct { + // User-visible version. Version string `json:"version,omitempty"` @@ -637,6 +647,7 @@ CheckUpdatesOKBodyLatest VersionInfo describes component version, or PMM Server swagger:model CheckUpdatesOKBodyLatest */ type CheckUpdatesOKBodyLatest struct { + // User-visible version. Version string `json:"version,omitempty"` diff --git a/api/serverpb/json/client/server/get_settings_parameters.go b/api/serverpb/json/client/server/get_settings_parameters.go index 286fc45f4d..e7bf706e9d 100644 --- a/api/serverpb/json/client/server/get_settings_parameters.go +++ b/api/serverpb/json/client/server/get_settings_parameters.go @@ -60,6 +60,7 @@ GetSettingsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetSettingsParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *GetSettingsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/get_settings_responses.go b/api/serverpb/json/client/server/get_settings_responses.go index 9eba7eb605..a1125fe31f 100644 --- a/api/serverpb/json/client/server/get_settings_responses.go +++ b/api/serverpb/json/client/server/get_settings_responses.go @@ -60,12 +60,12 @@ type GetSettingsOK struct { func (o *GetSettingsOK) Error() string { return fmt.Sprintf("[POST /v1/Settings/Get][%d] getSettingsOk %+v", 200, o.Payload) } - func (o *GetSettingsOK) GetPayload() *GetSettingsOKBody { return o.Payload } func (o *GetSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetSettingsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetSettingsDefault) Code() int { func (o *GetSettingsDefault) Error() string { return fmt.Sprintf("[POST /v1/Settings/Get][%d] GetSettings default %+v", o._statusCode, o.Payload) } - func (o *GetSettingsDefault) GetPayload() *GetSettingsDefaultBody { return o.Payload } func (o *GetSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetSettingsDefaultBody) // response payload @@ -123,6 +123,7 @@ GetSettingsDefaultBody get settings default body swagger:model GetSettingsDefaultBody */ type GetSettingsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *GetSettingsDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *GetSettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *GetSettingsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -308,6 +312,7 @@ GetSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized proto swagger:model GetSettingsDefaultBodyDetailsItems0 */ type GetSettingsDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -371,6 +376,7 @@ GetSettingsOKBody get settings OK body swagger:model GetSettingsOKBody */ type GetSettingsOKBody struct { + // settings Settings *GetSettingsOKBodySettings `json:"settings,omitempty"` } @@ -423,6 +429,7 @@ func (o *GetSettingsOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *GetSettingsOKBody) contextValidateSettings(ctx context.Context, formats strfmt.Registry) error { + if o.Settings != nil { if err := o.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -460,6 +467,7 @@ GetSettingsOKBodySettings Settings represents PMM Server settings. swagger:model GetSettingsOKBodySettings */ type GetSettingsOKBodySettings struct { + // True if updates are disabled. UpdatesDisabled bool `json:"updates_disabled,omitempty"` @@ -650,6 +658,7 @@ func (o *GetSettingsOKBodySettings) ContextValidate(ctx context.Context, formats } func (o *GetSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -665,6 +674,7 @@ func (o *GetSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx con } func (o *GetSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -680,6 +690,7 @@ func (o *GetSettingsOKBodySettings) contextValidateMetricsResolutions(ctx contex } func (o *GetSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.SlackAlertingSettings != nil { if err := o.SlackAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -695,6 +706,7 @@ func (o *GetSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx con } func (o *GetSettingsOKBodySettings) contextValidateSttCheckIntervals(ctx context.Context, formats strfmt.Registry) error { + if o.SttCheckIntervals != nil { if err := o.SttCheckIntervals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -732,6 +744,7 @@ GetSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represents swagger:model GetSettingsOKBodySettingsEmailAlertingSettings */ type GetSettingsOKBodySettingsEmailAlertingSettings struct { + // SMTP From header field. From string `json:"from,omitempty"` @@ -790,6 +803,7 @@ GetSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Promet swagger:model GetSettingsOKBodySettingsMetricsResolutions */ type GetSettingsOKBodySettingsMetricsResolutions struct { + // High resolution. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` @@ -833,6 +847,7 @@ GetSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represents swagger:model GetSettingsOKBodySettingsSlackAlertingSettings */ type GetSettingsOKBodySettingsSlackAlertingSettings struct { + // Slack API (webhook) URL. URL string `json:"url,omitempty"` } @@ -870,6 +885,7 @@ GetSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents interval swagger:model GetSettingsOKBodySettingsSttCheckIntervals */ type GetSettingsOKBodySettingsSttCheckIntervals struct { + // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` diff --git a/api/serverpb/json/client/server/logs_parameters.go b/api/serverpb/json/client/server/logs_parameters.go index 2463907eae..787e34ced5 100644 --- a/api/serverpb/json/client/server/logs_parameters.go +++ b/api/serverpb/json/client/server/logs_parameters.go @@ -61,6 +61,7 @@ LogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type LogsParams struct { + /* Pprof. Include performance profiling data, @@ -133,6 +134,7 @@ func (o *LogsParams) SetPprof(pprof *bool) { // WriteToRequest writes these params to a swagger request func (o *LogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -148,6 +150,7 @@ func (o *LogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry } qPprof := swag.FormatBool(qrPprof) if qPprof != "" { + if err := r.SetQueryParam("pprof", qPprof); err != nil { return err } diff --git a/api/serverpb/json/client/server/logs_responses.go b/api/serverpb/json/client/server/logs_responses.go index ef66827e2e..b3c3261f74 100644 --- a/api/serverpb/json/client/server/logs_responses.go +++ b/api/serverpb/json/client/server/logs_responses.go @@ -45,6 +45,7 @@ func (o *LogsReader) ReadResponse(response runtime.ClientResponse, consumer runt // NewLogsOK creates a LogsOK with default headers values func NewLogsOK(writer io.Writer) *LogsOK { return &LogsOK{ + Payload: writer, } } @@ -61,12 +62,12 @@ type LogsOK struct { func (o *LogsOK) Error() string { return fmt.Sprintf("[GET /logs.zip][%d] logsOk %+v", 200, o.Payload) } - func (o *LogsOK) GetPayload() io.Writer { return o.Payload } func (o *LogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err @@ -101,12 +102,12 @@ func (o *LogsDefault) Code() int { func (o *LogsDefault) Error() string { return fmt.Sprintf("[GET /logs.zip][%d] Logs default %+v", o._statusCode, o.Payload) } - func (o *LogsDefault) GetPayload() *LogsDefaultBody { return o.Payload } func (o *LogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(LogsDefaultBody) // response payload @@ -122,6 +123,7 @@ LogsDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model LogsDefaultBody */ type LogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` diff --git a/api/serverpb/json/client/server/readiness_parameters.go b/api/serverpb/json/client/server/readiness_parameters.go index 0389af80fe..3ea1fa1a59 100644 --- a/api/serverpb/json/client/server/readiness_parameters.go +++ b/api/serverpb/json/client/server/readiness_parameters.go @@ -115,6 +115,7 @@ func (o *ReadinessParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ReadinessParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/readiness_responses.go b/api/serverpb/json/client/server/readiness_responses.go index bdf7fa9155..63a936f031 100644 --- a/api/serverpb/json/client/server/readiness_responses.go +++ b/api/serverpb/json/client/server/readiness_responses.go @@ -60,12 +60,12 @@ type ReadinessOK struct { func (o *ReadinessOK) Error() string { return fmt.Sprintf("[GET /v1/readyz][%d] readinessOk %+v", 200, o.Payload) } - func (o *ReadinessOK) GetPayload() interface{} { return o.Payload } func (o *ReadinessOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ReadinessDefault) Code() int { func (o *ReadinessDefault) Error() string { return fmt.Sprintf("[GET /v1/readyz][%d] Readiness default %+v", o._statusCode, o.Payload) } - func (o *ReadinessDefault) GetPayload() *ReadinessDefaultBody { return o.Payload } func (o *ReadinessDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ReadinessDefaultBody) // response payload @@ -121,6 +121,7 @@ ReadinessDefaultBody readiness default body swagger:model ReadinessDefaultBody */ type ReadinessDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -186,7 +187,9 @@ func (o *ReadinessDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ReadinessDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -197,6 +200,7 @@ func (o *ReadinessDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -306,6 +310,7 @@ ReadinessDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protoco swagger:model ReadinessDefaultBodyDetailsItems0 */ type ReadinessDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent diff --git a/api/serverpb/json/client/server/start_update_parameters.go b/api/serverpb/json/client/server/start_update_parameters.go index 514a1b9d38..4b070636e0 100644 --- a/api/serverpb/json/client/server/start_update_parameters.go +++ b/api/serverpb/json/client/server/start_update_parameters.go @@ -60,6 +60,7 @@ StartUpdateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartUpdateParams struct { + // Body. Body interface{} @@ -129,6 +130,7 @@ func (o *StartUpdateParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *StartUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/start_update_responses.go b/api/serverpb/json/client/server/start_update_responses.go index bb246586f7..1f2db9af3c 100644 --- a/api/serverpb/json/client/server/start_update_responses.go +++ b/api/serverpb/json/client/server/start_update_responses.go @@ -60,12 +60,12 @@ type StartUpdateOK struct { func (o *StartUpdateOK) Error() string { return fmt.Sprintf("[POST /v1/Updates/Start][%d] startUpdateOk %+v", 200, o.Payload) } - func (o *StartUpdateOK) GetPayload() *StartUpdateOKBody { return o.Payload } func (o *StartUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartUpdateOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartUpdateDefault) Code() int { func (o *StartUpdateDefault) Error() string { return fmt.Sprintf("[POST /v1/Updates/Start][%d] StartUpdate default %+v", o._statusCode, o.Payload) } - func (o *StartUpdateDefault) GetPayload() *StartUpdateDefaultBody { return o.Payload } func (o *StartUpdateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartUpdateDefaultBody) // response payload @@ -123,6 +123,7 @@ StartUpdateDefaultBody start update default body swagger:model StartUpdateDefaultBody */ type StartUpdateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *StartUpdateDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *StartUpdateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *StartUpdateDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -308,6 +312,7 @@ StartUpdateDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized proto swagger:model StartUpdateDefaultBodyDetailsItems0 */ type StartUpdateDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -371,6 +376,7 @@ StartUpdateOKBody start update OK body swagger:model StartUpdateOKBody */ type StartUpdateOKBody struct { + // Authentication token for getting update statuses. AuthToken string `json:"auth_token,omitempty"` diff --git a/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go b/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go index df14058507..fd9d46d8ff 100644 --- a/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go +++ b/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go @@ -60,6 +60,7 @@ TestEmailAlertingSettingsParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type TestEmailAlertingSettingsParams struct { + // Body. Body TestEmailAlertingSettingsBody @@ -129,6 +130,7 @@ func (o *TestEmailAlertingSettingsParams) SetBody(body TestEmailAlertingSettings // WriteToRequest writes these params to a swagger request func (o *TestEmailAlertingSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/test_email_alerting_settings_responses.go b/api/serverpb/json/client/server/test_email_alerting_settings_responses.go index 14ae080753..cf4d187e78 100644 --- a/api/serverpb/json/client/server/test_email_alerting_settings_responses.go +++ b/api/serverpb/json/client/server/test_email_alerting_settings_responses.go @@ -60,12 +60,12 @@ type TestEmailAlertingSettingsOK struct { func (o *TestEmailAlertingSettingsOK) Error() string { return fmt.Sprintf("[POST /v1/Settings/TestEmailAlertingSettings][%d] testEmailAlertingSettingsOk %+v", 200, o.Payload) } - func (o *TestEmailAlertingSettingsOK) GetPayload() interface{} { return o.Payload } func (o *TestEmailAlertingSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *TestEmailAlertingSettingsDefault) Code() int { func (o *TestEmailAlertingSettingsDefault) Error() string { return fmt.Sprintf("[POST /v1/Settings/TestEmailAlertingSettings][%d] TestEmailAlertingSettings default %+v", o._statusCode, o.Payload) } - func (o *TestEmailAlertingSettingsDefault) GetPayload() *TestEmailAlertingSettingsDefaultBody { return o.Payload } func (o *TestEmailAlertingSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(TestEmailAlertingSettingsDefaultBody) // response payload @@ -121,6 +121,7 @@ TestEmailAlertingSettingsBody test email alerting settings body swagger:model TestEmailAlertingSettingsBody */ type TestEmailAlertingSettingsBody struct { + // Target email address to send the email to. EmailTo string `json:"email_to,omitempty"` @@ -176,6 +177,7 @@ func (o *TestEmailAlertingSettingsBody) ContextValidate(ctx context.Context, for } func (o *TestEmailAlertingSettingsBody) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { + if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -213,6 +215,7 @@ TestEmailAlertingSettingsDefaultBody test email alerting settings default body swagger:model TestEmailAlertingSettingsDefaultBody */ type TestEmailAlertingSettingsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -278,7 +281,9 @@ func (o *TestEmailAlertingSettingsDefaultBody) ContextValidate(ctx context.Conte } func (o *TestEmailAlertingSettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -289,6 +294,7 @@ func (o *TestEmailAlertingSettingsDefaultBody) contextValidateDetails(ctx contex return err } } + } return nil @@ -398,6 +404,7 @@ TestEmailAlertingSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary se swagger:model TestEmailAlertingSettingsDefaultBodyDetailsItems0 */ type TestEmailAlertingSettingsDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -461,6 +468,7 @@ TestEmailAlertingSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings r swagger:model TestEmailAlertingSettingsParamsBodyEmailAlertingSettings */ type TestEmailAlertingSettingsParamsBodyEmailAlertingSettings struct { + // SMTP From header field. From string `json:"from,omitempty"` diff --git a/api/serverpb/json/client/server/update_status_parameters.go b/api/serverpb/json/client/server/update_status_parameters.go index c2b50ad2f8..2b035d56e0 100644 --- a/api/serverpb/json/client/server/update_status_parameters.go +++ b/api/serverpb/json/client/server/update_status_parameters.go @@ -60,6 +60,7 @@ UpdateStatusParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateStatusParams struct { + // Body. Body UpdateStatusBody @@ -129,6 +130,7 @@ func (o *UpdateStatusParams) SetBody(body UpdateStatusBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/update_status_responses.go b/api/serverpb/json/client/server/update_status_responses.go index 8aad154fe9..c4ca4f8a59 100644 --- a/api/serverpb/json/client/server/update_status_responses.go +++ b/api/serverpb/json/client/server/update_status_responses.go @@ -60,12 +60,12 @@ type UpdateStatusOK struct { func (o *UpdateStatusOK) Error() string { return fmt.Sprintf("[POST /v1/Updates/Status][%d] updateStatusOk %+v", 200, o.Payload) } - func (o *UpdateStatusOK) GetPayload() *UpdateStatusOKBody { return o.Payload } func (o *UpdateStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateStatusOKBody) // response payload @@ -102,12 +102,12 @@ func (o *UpdateStatusDefault) Code() int { func (o *UpdateStatusDefault) Error() string { return fmt.Sprintf("[POST /v1/Updates/Status][%d] UpdateStatus default %+v", o._statusCode, o.Payload) } - func (o *UpdateStatusDefault) GetPayload() *UpdateStatusDefaultBody { return o.Payload } func (o *UpdateStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateStatusDefaultBody) // response payload @@ -123,6 +123,7 @@ UpdateStatusBody update status body swagger:model UpdateStatusBody */ type UpdateStatusBody struct { + // Authentication token. AuthToken string `json:"auth_token,omitempty"` @@ -163,6 +164,7 @@ UpdateStatusDefaultBody update status default body swagger:model UpdateStatusDefaultBody */ type UpdateStatusDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -228,7 +230,9 @@ func (o *UpdateStatusDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *UpdateStatusDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -239,6 +243,7 @@ func (o *UpdateStatusDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -348,6 +353,7 @@ UpdateStatusDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized prot swagger:model UpdateStatusDefaultBodyDetailsItems0 */ type UpdateStatusDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -411,6 +417,7 @@ UpdateStatusOKBody update status OK body swagger:model UpdateStatusOKBody */ type UpdateStatusOKBody struct { + // Progress log lines. LogLines []string `json:"log_lines"` diff --git a/api/serverpb/json/client/server/version_parameters.go b/api/serverpb/json/client/server/version_parameters.go index 6e1ac5601f..221207560e 100644 --- a/api/serverpb/json/client/server/version_parameters.go +++ b/api/serverpb/json/client/server/version_parameters.go @@ -60,6 +60,7 @@ VersionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type VersionParams struct { + /* Dummy. Dummy parameter for internal testing. Do not use. @@ -132,6 +133,7 @@ func (o *VersionParams) SetDummy(dummy *string) { // WriteToRequest writes these params to a swagger request func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -147,6 +149,7 @@ func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qDummy := qrDummy if qDummy != "" { + if err := r.SetQueryParam("dummy", qDummy); err != nil { return err } diff --git a/api/serverpb/json/client/server/version_responses.go b/api/serverpb/json/client/server/version_responses.go index 1f4a1643ed..c6f61ef3a6 100644 --- a/api/serverpb/json/client/server/version_responses.go +++ b/api/serverpb/json/client/server/version_responses.go @@ -62,12 +62,12 @@ type VersionOK struct { func (o *VersionOK) Error() string { return fmt.Sprintf("[GET /v1/version][%d] versionOk %+v", 200, o.Payload) } - func (o *VersionOK) GetPayload() *VersionOKBody { return o.Payload } func (o *VersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(VersionOKBody) // response payload @@ -104,12 +104,12 @@ func (o *VersionDefault) Code() int { func (o *VersionDefault) Error() string { return fmt.Sprintf("[GET /v1/version][%d] Version default %+v", o._statusCode, o.Payload) } - func (o *VersionDefault) GetPayload() *VersionDefaultBody { return o.Payload } func (o *VersionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(VersionDefaultBody) // response payload @@ -125,6 +125,7 @@ VersionDefaultBody version default body swagger:model VersionDefaultBody */ type VersionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -190,7 +191,9 @@ func (o *VersionDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *VersionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -201,6 +204,7 @@ func (o *VersionDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -310,6 +314,7 @@ VersionDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol swagger:model VersionDefaultBodyDetailsItems0 */ type VersionDefaultBodyDetailsItems0 struct { + // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -373,6 +378,7 @@ VersionOKBody version OK body swagger:model VersionOKBody */ type VersionOKBody struct { + // PMM Server version. Version string `json:"version,omitempty"` @@ -520,6 +526,7 @@ func (o *VersionOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *VersionOKBody) contextValidateManaged(ctx context.Context, formats strfmt.Registry) error { + if o.Managed != nil { if err := o.Managed.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -535,6 +542,7 @@ func (o *VersionOKBody) contextValidateManaged(ctx context.Context, formats strf } func (o *VersionOKBody) contextValidateServer(ctx context.Context, formats strfmt.Registry) error { + if o.Server != nil { if err := o.Server.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -572,6 +580,7 @@ VersionOKBodyManaged VersionInfo describes component version, or PMM Server as a swagger:model VersionOKBodyManaged */ type VersionOKBodyManaged struct { + // User-visible version. Version string `json:"version,omitempty"` @@ -637,6 +646,7 @@ VersionOKBodyServer VersionInfo describes component version, or PMM Server as a swagger:model VersionOKBodyServer */ type VersionOKBodyServer struct { + // User-visible version. Version string `json:"version,omitempty"` diff --git a/api/serverpb/server.pb.go b/api/serverpb/server.pb.go index f8727975ba..7e2f884a22 100644 --- a/api/serverpb/server.pb.go +++ b/api/serverpb/server.pb.go @@ -7,9 +7,6 @@ package serverpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -17,6 +14,8 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" ) const ( @@ -2277,40 +2276,37 @@ func file_serverpb_server_proto_rawDescGZIP() []byte { return file_serverpb_server_proto_rawDescData } -var ( - file_serverpb_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_serverpb_server_proto_msgTypes = make([]protoimpl.MessageInfo, 24) - file_serverpb_server_proto_goTypes = []interface{}{ - (DistributionMethod)(0), // 0: server.DistributionMethod - (*VersionInfo)(nil), // 1: server.VersionInfo - (*VersionRequest)(nil), // 2: server.VersionRequest - (*VersionResponse)(nil), // 3: server.VersionResponse - (*ReadinessRequest)(nil), // 4: server.ReadinessRequest - (*ReadinessResponse)(nil), // 5: server.ReadinessResponse - (*CheckUpdatesRequest)(nil), // 6: server.CheckUpdatesRequest - (*CheckUpdatesResponse)(nil), // 7: server.CheckUpdatesResponse - (*StartUpdateRequest)(nil), // 8: server.StartUpdateRequest - (*StartUpdateResponse)(nil), // 9: server.StartUpdateResponse - (*UpdateStatusRequest)(nil), // 10: server.UpdateStatusRequest - (*UpdateStatusResponse)(nil), // 11: server.UpdateStatusResponse - (*MetricsResolutions)(nil), // 12: server.MetricsResolutions - (*EmailAlertingSettings)(nil), // 13: server.EmailAlertingSettings - (*SlackAlertingSettings)(nil), // 14: server.SlackAlertingSettings - (*STTCheckIntervals)(nil), // 15: server.STTCheckIntervals - (*Settings)(nil), // 16: server.Settings - (*GetSettingsRequest)(nil), // 17: server.GetSettingsRequest - (*GetSettingsResponse)(nil), // 18: server.GetSettingsResponse - (*ChangeSettingsRequest)(nil), // 19: server.ChangeSettingsRequest - (*ChangeSettingsResponse)(nil), // 20: server.ChangeSettingsResponse - (*TestEmailAlertingSettingsRequest)(nil), // 21: server.TestEmailAlertingSettingsRequest - (*TestEmailAlertingSettingsResponse)(nil), // 22: server.TestEmailAlertingSettingsResponse - (*AWSInstanceCheckRequest)(nil), // 23: server.AWSInstanceCheckRequest - (*AWSInstanceCheckResponse)(nil), // 24: server.AWSInstanceCheckResponse - (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 26: google.protobuf.Duration - } -) - +var file_serverpb_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_serverpb_server_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_serverpb_server_proto_goTypes = []interface{}{ + (DistributionMethod)(0), // 0: server.DistributionMethod + (*VersionInfo)(nil), // 1: server.VersionInfo + (*VersionRequest)(nil), // 2: server.VersionRequest + (*VersionResponse)(nil), // 3: server.VersionResponse + (*ReadinessRequest)(nil), // 4: server.ReadinessRequest + (*ReadinessResponse)(nil), // 5: server.ReadinessResponse + (*CheckUpdatesRequest)(nil), // 6: server.CheckUpdatesRequest + (*CheckUpdatesResponse)(nil), // 7: server.CheckUpdatesResponse + (*StartUpdateRequest)(nil), // 8: server.StartUpdateRequest + (*StartUpdateResponse)(nil), // 9: server.StartUpdateResponse + (*UpdateStatusRequest)(nil), // 10: server.UpdateStatusRequest + (*UpdateStatusResponse)(nil), // 11: server.UpdateStatusResponse + (*MetricsResolutions)(nil), // 12: server.MetricsResolutions + (*EmailAlertingSettings)(nil), // 13: server.EmailAlertingSettings + (*SlackAlertingSettings)(nil), // 14: server.SlackAlertingSettings + (*STTCheckIntervals)(nil), // 15: server.STTCheckIntervals + (*Settings)(nil), // 16: server.Settings + (*GetSettingsRequest)(nil), // 17: server.GetSettingsRequest + (*GetSettingsResponse)(nil), // 18: server.GetSettingsResponse + (*ChangeSettingsRequest)(nil), // 19: server.ChangeSettingsRequest + (*ChangeSettingsResponse)(nil), // 20: server.ChangeSettingsResponse + (*TestEmailAlertingSettingsRequest)(nil), // 21: server.TestEmailAlertingSettingsRequest + (*TestEmailAlertingSettingsResponse)(nil), // 22: server.TestEmailAlertingSettingsResponse + (*AWSInstanceCheckRequest)(nil), // 23: server.AWSInstanceCheckRequest + (*AWSInstanceCheckResponse)(nil), // 24: server.AWSInstanceCheckResponse + (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 26: google.protobuf.Duration +} var file_serverpb_server_proto_depIdxs = []int32{ 25, // 0: server.VersionInfo.timestamp:type_name -> google.protobuf.Timestamp 1, // 1: server.VersionResponse.server:type_name -> server.VersionInfo diff --git a/api/serverpb/server.pb.gw.go b/api/serverpb/server.pb.gw.go index 5b7f9b2a37..267e19cc58 100644 --- a/api/serverpb/server.pb.gw.go +++ b/api/serverpb/server.pb.gw.go @@ -24,17 +24,17 @@ import ( ) // Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join + filter_Server_Version_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -var filter_Server_Version_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} - func request_Server_Version_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq VersionRequest var metadata runtime.ServerMetadata @@ -48,6 +48,7 @@ func request_Server_Version_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.Version(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_Version_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +64,7 @@ func local_request_Server_Version_0(ctx context.Context, marshaler runtime.Marsh msg, err := server.Version(ctx, &protoReq) return msg, metadata, err + } func request_Server_Readiness_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -71,6 +73,7 @@ func request_Server_Readiness_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.Readiness(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_Readiness_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +82,7 @@ func local_request_Server_Readiness_0(ctx context.Context, marshaler runtime.Mar msg, err := server.Readiness(ctx, &protoReq) return msg, metadata, err + } func request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -95,6 +99,7 @@ func request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.CheckUpdates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -111,6 +116,7 @@ func local_request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime. msg, err := server.CheckUpdates(ctx, &protoReq) return msg, metadata, err + } func request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -127,6 +133,7 @@ func request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.StartUpdate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -143,6 +150,7 @@ func local_request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.M msg, err := server.StartUpdate(ctx, &protoReq) return msg, metadata, err + } func request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -159,6 +167,7 @@ func request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.UpdateStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -175,6 +184,7 @@ func local_request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime. msg, err := server.UpdateStatus(ctx, &protoReq) return msg, metadata, err + } func request_Server_GetSettings_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -191,6 +201,7 @@ func request_Server_GetSettings_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.GetSettings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_GetSettings_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -207,6 +218,7 @@ func local_request_Server_GetSettings_0(ctx context.Context, marshaler runtime.M msg, err := server.GetSettings(ctx, &protoReq) return msg, metadata, err + } func request_Server_ChangeSettings_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,6 +235,7 @@ func request_Server_ChangeSettings_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ChangeSettings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_ChangeSettings_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -239,6 +252,7 @@ func local_request_Server_ChangeSettings_0(ctx context.Context, marshaler runtim msg, err := server.ChangeSettings(ctx, &protoReq) return msg, metadata, err + } func request_Server_TestEmailAlertingSettings_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -255,6 +269,7 @@ func request_Server_TestEmailAlertingSettings_0(ctx context.Context, marshaler r msg, err := client.TestEmailAlertingSettings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_TestEmailAlertingSettings_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -271,6 +286,7 @@ func local_request_Server_TestEmailAlertingSettings_0(ctx context.Context, marsh msg, err := server.TestEmailAlertingSettings(ctx, &protoReq) return msg, metadata, err + } func request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -287,6 +303,7 @@ func request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runtime.Ma msg, err := client.AWSInstanceCheck(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -303,6 +320,7 @@ func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runt msg, err := server.AWSInstanceCheck(ctx, &protoReq) return msg, metadata, err + } // RegisterServerHandlerServer registers the http handlers for service Server to "mux". @@ -310,6 +328,7 @@ func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runt // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServerHandlerFromEndpoint instead. func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServerServer) error { + mux.Handle("GET", pattern_Server_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -332,6 +351,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_Version_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Server_Readiness_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -356,6 +376,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_Readiness_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_CheckUpdates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -380,6 +401,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_CheckUpdates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_StartUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -404,6 +426,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_StartUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_UpdateStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -428,6 +451,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_UpdateStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_GetSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -452,6 +476,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_GetSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_ChangeSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -476,6 +501,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_ChangeSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_TestEmailAlertingSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -500,6 +526,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_TestEmailAlertingSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_AWSInstanceCheck_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -524,6 +551,7 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_AWSInstanceCheck_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -566,6 +594,7 @@ func RegisterServerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ServerClient" to call the correct interceptors. func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServerClient) error { + mux.Handle("GET", pattern_Server_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -585,6 +614,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_Version_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("GET", pattern_Server_Readiness_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -606,6 +636,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_Readiness_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_CheckUpdates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -627,6 +658,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_CheckUpdates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_StartUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -648,6 +680,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_StartUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_UpdateStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -669,6 +702,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_UpdateStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_GetSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -690,6 +724,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_GetSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_ChangeSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -711,6 +746,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_ChangeSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_TestEmailAlertingSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -732,6 +768,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_TestEmailAlertingSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("POST", pattern_Server_AWSInstanceCheck_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -753,6 +790,7 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_AWSInstanceCheck_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/serverpb/server.validator.pb.go b/api/serverpb/server.validator.pb.go index a05ccba7e8..6922d688d6 100644 --- a/api/serverpb/server.validator.pb.go +++ b/api/serverpb/server.validator.pb.go @@ -6,22 +6,19 @@ package serverpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" + _ "google.golang.org/protobuf/types/known/timestamppb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" - _ "google.golang.org/protobuf/types/known/timestamppb" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *VersionInfo) Validate() error { if this.Timestamp != nil { @@ -31,11 +28,9 @@ func (this *VersionInfo) Validate() error { } return nil } - func (this *VersionRequest) Validate() error { return nil } - func (this *VersionResponse) Validate() error { if this.Server != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Server); err != nil { @@ -49,19 +44,15 @@ func (this *VersionResponse) Validate() error { } return nil } - func (this *ReadinessRequest) Validate() error { return nil } - func (this *ReadinessResponse) Validate() error { return nil } - func (this *CheckUpdatesRequest) Validate() error { return nil } - func (this *CheckUpdatesResponse) Validate() error { if this.Installed != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Installed); err != nil { @@ -80,23 +71,18 @@ func (this *CheckUpdatesResponse) Validate() error { } return nil } - func (this *StartUpdateRequest) Validate() error { return nil } - func (this *StartUpdateResponse) Validate() error { return nil } - func (this *UpdateStatusRequest) Validate() error { return nil } - func (this *UpdateStatusResponse) Validate() error { return nil } - func (this *MetricsResolutions) Validate() error { if this.Hr != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Hr); err != nil { @@ -115,7 +101,6 @@ func (this *MetricsResolutions) Validate() error { } return nil } - func (this *EmailAlertingSettings) Validate() error { if this.From == "" { return github_com_mwitkow_go_proto_validators.FieldError("From", fmt.Errorf(`value '%v' must not be an empty string`, this.From)) @@ -125,14 +110,12 @@ func (this *EmailAlertingSettings) Validate() error { } return nil } - func (this *SlackAlertingSettings) Validate() error { if this.Url == "" { return github_com_mwitkow_go_proto_validators.FieldError("Url", fmt.Errorf(`value '%v' must not be an empty string`, this.Url)) } return nil } - func (this *STTCheckIntervals) Validate() error { if this.StandardInterval != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.StandardInterval); err != nil { @@ -151,7 +134,6 @@ func (this *STTCheckIntervals) Validate() error { } return nil } - func (this *Settings) Validate() error { if this.MetricsResolutions != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MetricsResolutions); err != nil { @@ -180,11 +162,9 @@ func (this *Settings) Validate() error { } return nil } - func (this *GetSettingsRequest) Validate() error { return nil } - func (this *GetSettingsResponse) Validate() error { if this.Settings != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Settings); err != nil { @@ -193,7 +173,6 @@ func (this *GetSettingsResponse) Validate() error { } return nil } - func (this *ChangeSettingsRequest) Validate() error { if this.MetricsResolutions != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MetricsResolutions); err != nil { @@ -222,7 +201,6 @@ func (this *ChangeSettingsRequest) Validate() error { } return nil } - func (this *ChangeSettingsResponse) Validate() error { if this.Settings != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Settings); err != nil { @@ -231,7 +209,6 @@ func (this *ChangeSettingsResponse) Validate() error { } return nil } - func (this *TestEmailAlertingSettingsRequest) Validate() error { if this.EmailAlertingSettings != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.EmailAlertingSettings); err != nil { @@ -240,18 +217,15 @@ func (this *TestEmailAlertingSettingsRequest) Validate() error { } return nil } - func (this *TestEmailAlertingSettingsResponse) Validate() error { return nil } - func (this *AWSInstanceCheckRequest) Validate() error { if this.InstanceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("InstanceId", fmt.Errorf(`value '%v' must not be an empty string`, this.InstanceId)) } return nil } - func (this *AWSInstanceCheckResponse) Validate() error { return nil } diff --git a/api/serverpb/server_grpc.pb.go b/api/serverpb/server_grpc.pb.go index 845805869b..08083a4b40 100644 --- a/api/serverpb/server_grpc.pb.go +++ b/api/serverpb/server_grpc.pb.go @@ -8,7 +8,6 @@ package serverpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -160,40 +159,33 @@ type ServerServer interface { } // UnimplementedServerServer must be embedded to have forward compatible implementations. -type UnimplementedServerServer struct{} +type UnimplementedServerServer struct { +} func (UnimplementedServerServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") } - func (UnimplementedServerServer) Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Readiness not implemented") } - func (UnimplementedServerServer) CheckUpdates(context.Context, *CheckUpdatesRequest) (*CheckUpdatesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckUpdates not implemented") } - func (UnimplementedServerServer) StartUpdate(context.Context, *StartUpdateRequest) (*StartUpdateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartUpdate not implemented") } - func (UnimplementedServerServer) UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateStatus not implemented") } - func (UnimplementedServerServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSettings not implemented") } - func (UnimplementedServerServer) ChangeSettings(context.Context, *ChangeSettingsRequest) (*ChangeSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeSettings not implemented") } - func (UnimplementedServerServer) TestEmailAlertingSettings(context.Context, *TestEmailAlertingSettingsRequest) (*TestEmailAlertingSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TestEmailAlertingSettings not implemented") } - func (UnimplementedServerServer) AWSInstanceCheck(context.Context, *AWSInstanceCheckRequest) (*AWSInstanceCheckResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AWSInstanceCheck not implemented") } diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index 3e7c3f32e3..d9fff5740c 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -21395,9 +21395,9 @@ "type": "boolean", "x-order": 17 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 18 } } @@ -21733,9 +21733,9 @@ "type": "boolean", "x-order": 15 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 16 } } @@ -22152,9 +22152,9 @@ ], "x-order": 29 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 30 } } @@ -22726,9 +22726,9 @@ ], "x-order": 29 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 30 } } @@ -23757,9 +23757,9 @@ ], "x-order": 28 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 29 } } @@ -24370,9 +24370,9 @@ ], "x-order": 20 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 21 } } diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 903c8ad8eb..cbc5cbc8dc 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -15307,9 +15307,9 @@ "type": "boolean", "x-order": 17 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 18 } } @@ -15645,9 +15645,9 @@ "type": "boolean", "x-order": 15 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 16 } } @@ -16064,9 +16064,9 @@ ], "x-order": 29 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 30 } } @@ -16638,9 +16638,9 @@ ], "x-order": 29 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 30 } } @@ -17669,9 +17669,9 @@ ], "x-order": 28 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 29 } } @@ -18282,9 +18282,9 @@ ], "x-order": 20 }, - "credentials_source": { + "service_params_source": { "type": "string", - "title": "Credentials provider", + "title": "Service parameters", "x-order": 21 } } diff --git a/api/userpb/json/client/user/get_user_parameters.go b/api/userpb/json/client/user/get_user_parameters.go index ce903ed286..31920e417d 100644 --- a/api/userpb/json/client/user/get_user_parameters.go +++ b/api/userpb/json/client/user/get_user_parameters.go @@ -115,6 +115,7 @@ func (o *GetUserParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/userpb/json/client/user/get_user_responses.go b/api/userpb/json/client/user/get_user_responses.go index f603c8a71b..8eebfd6bf7 100644 --- a/api/userpb/json/client/user/get_user_responses.go +++ b/api/userpb/json/client/user/get_user_responses.go @@ -60,12 +60,12 @@ type GetUserOK struct { func (o *GetUserOK) Error() string { return fmt.Sprintf("[GET /v1/user][%d] getUserOk %+v", 200, o.Payload) } - func (o *GetUserOK) GetPayload() *GetUserOKBody { return o.Payload } func (o *GetUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetUserOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetUserDefault) Code() int { func (o *GetUserDefault) Error() string { return fmt.Sprintf("[GET /v1/user][%d] GetUser default %+v", o._statusCode, o.Payload) } - func (o *GetUserDefault) GetPayload() *GetUserDefaultBody { return o.Payload } func (o *GetUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetUserDefaultBody) // response payload @@ -123,6 +123,7 @@ GetUserDefaultBody get user default body swagger:model GetUserDefaultBody */ type GetUserDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -188,7 +189,9 @@ func (o *GetUserDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetUserDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -199,6 +202,7 @@ func (o *GetUserDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -227,6 +231,7 @@ GetUserDefaultBodyDetailsItems0 get user default body details items0 swagger:model GetUserDefaultBodyDetailsItems0 */ type GetUserDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -264,6 +269,7 @@ GetUserOKBody get user OK body swagger:model GetUserOKBody */ type GetUserOKBody struct { + // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/userpb/json/client/user/update_user_parameters.go b/api/userpb/json/client/user/update_user_parameters.go index b42c6ce1a8..07ac34de23 100644 --- a/api/userpb/json/client/user/update_user_parameters.go +++ b/api/userpb/json/client/user/update_user_parameters.go @@ -60,6 +60,7 @@ UpdateUserParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateUserParams struct { + // Body. Body UpdateUserBody @@ -129,6 +130,7 @@ func (o *UpdateUserParams) SetBody(body UpdateUserBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/userpb/json/client/user/update_user_responses.go b/api/userpb/json/client/user/update_user_responses.go index bc668882f7..2425c1eb0a 100644 --- a/api/userpb/json/client/user/update_user_responses.go +++ b/api/userpb/json/client/user/update_user_responses.go @@ -60,12 +60,12 @@ type UpdateUserOK struct { func (o *UpdateUserOK) Error() string { return fmt.Sprintf("[PUT /v1/user][%d] updateUserOk %+v", 200, o.Payload) } - func (o *UpdateUserOK) GetPayload() *UpdateUserOKBody { return o.Payload } func (o *UpdateUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateUserOKBody) // response payload @@ -102,12 +102,12 @@ func (o *UpdateUserDefault) Code() int { func (o *UpdateUserDefault) Error() string { return fmt.Sprintf("[PUT /v1/user][%d] UpdateUser default %+v", o._statusCode, o.Payload) } - func (o *UpdateUserDefault) GetPayload() *UpdateUserDefaultBody { return o.Payload } func (o *UpdateUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateUserDefaultBody) // response payload @@ -123,6 +123,7 @@ UpdateUserBody update user body swagger:model UpdateUserBody */ type UpdateUserBody struct { + // Product Tour ProductTourCompleted bool `json:"product_tour_completed,omitempty"` } @@ -160,6 +161,7 @@ UpdateUserDefaultBody update user default body swagger:model UpdateUserDefaultBody */ type UpdateUserDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -225,7 +227,9 @@ func (o *UpdateUserDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UpdateUserDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -236,6 +240,7 @@ func (o *UpdateUserDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -264,6 +269,7 @@ UpdateUserDefaultBodyDetailsItems0 update user default body details items0 swagger:model UpdateUserDefaultBodyDetailsItems0 */ type UpdateUserDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -301,6 +307,7 @@ UpdateUserOKBody update user OK body swagger:model UpdateUserOKBody */ type UpdateUserOKBody struct { + // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/userpb/user.pb.go b/api/userpb/user.pb.go index e354c9bef8..87f01afc80 100644 --- a/api/userpb/user.pb.go +++ b/api/userpb/user.pb.go @@ -7,9 +7,6 @@ package userpb import ( - reflect "reflect" - sync "sync" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -17,6 +14,8 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/known/timestamppb" _ "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" ) const ( @@ -240,15 +239,12 @@ func file_userpb_user_proto_rawDescGZIP() []byte { return file_userpb_user_proto_rawDescData } -var ( - file_userpb_user_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_userpb_user_proto_goTypes = []interface{}{ - (*UserDetailsRequest)(nil), // 0: user.UserDetailsRequest - (*UserDetailsResponse)(nil), // 1: user.UserDetailsResponse - (*UserUpdateRequest)(nil), // 2: user.UserUpdateRequest - } -) - +var file_userpb_user_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_userpb_user_proto_goTypes = []interface{}{ + (*UserDetailsRequest)(nil), // 0: user.UserDetailsRequest + (*UserDetailsResponse)(nil), // 1: user.UserDetailsResponse + (*UserUpdateRequest)(nil), // 2: user.UserUpdateRequest +} var file_userpb_user_proto_depIdxs = []int32{ 0, // 0: user.User.GetUser:input_type -> user.UserDetailsRequest 2, // 1: user.User.UpdateUser:input_type -> user.UserUpdateRequest diff --git a/api/userpb/user.pb.gw.go b/api/userpb/user.pb.gw.go index 3e0f29eda6..64a9077169 100644 --- a/api/userpb/user.pb.gw.go +++ b/api/userpb/user.pb.gw.go @@ -24,14 +24,12 @@ import ( ) // Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join func request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserDetailsRequest @@ -39,6 +37,7 @@ func request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, cl msg, err := client.GetUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, server UserServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -47,6 +46,7 @@ func local_request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshal msg, err := server.GetUser(ctx, &protoReq) return msg, metadata, err + } func request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,6 +63,7 @@ func request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.UpdateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err + } func local_request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, server UserServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,6 +80,7 @@ func local_request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Mars msg, err := server.UpdateUser(ctx, &protoReq) return msg, metadata, err + } // RegisterUserHandlerServer registers the http handlers for service User to "mux". @@ -86,6 +88,7 @@ func local_request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserHandlerFromEndpoint instead. func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServer) error { + mux.Handle("GET", pattern_User_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -108,6 +111,7 @@ func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve } forward_User_GetUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("PUT", pattern_User_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -132,6 +136,7 @@ func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve } forward_User_UpdateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil @@ -174,6 +179,7 @@ func RegisterUserHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc. // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "UserClient" to call the correct interceptors. func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserClient) error { + mux.Handle("GET", pattern_User_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -193,6 +199,7 @@ func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien } forward_User_GetUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle("PUT", pattern_User_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -214,6 +221,7 @@ func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien } forward_User_UpdateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) return nil diff --git a/api/userpb/user.validator.pb.go b/api/userpb/user.validator.pb.go index a86cccacd7..c2cee69f50 100644 --- a/api/userpb/user.validator.pb.go +++ b/api/userpb/user.validator.pb.go @@ -6,7 +6,6 @@ package userpb import ( fmt "fmt" math "math" - proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" @@ -16,20 +15,16 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var ( - _ = proto.Marshal - _ = fmt.Errorf - _ = math.Inf -) +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf func (this *UserDetailsRequest) Validate() error { return nil } - func (this *UserDetailsResponse) Validate() error { return nil } - func (this *UserUpdateRequest) Validate() error { return nil } diff --git a/api/userpb/user_grpc.pb.go b/api/userpb/user_grpc.pb.go index 5a7e8dc041..fab1368b85 100644 --- a/api/userpb/user_grpc.pb.go +++ b/api/userpb/user_grpc.pb.go @@ -8,7 +8,6 @@ package userpb import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -63,12 +62,12 @@ type UserServer interface { } // UnimplementedUserServer must be embedded to have forward compatible implementations. -type UnimplementedUserServer struct{} +type UnimplementedUserServer struct { +} func (UnimplementedUserServer) GetUser(context.Context, *UserDetailsRequest) (*UserDetailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") } - func (UnimplementedUserServer) UpdateUser(context.Context, *UserUpdateRequest) (*UserDetailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented") } diff --git a/descriptor.bin b/descriptor.bin index 3eff01dfcba86991d72652662ee8ad6a3052dc6a..fa7675c1d21b89e4d83683686f43f14ad647850b 100644 GIT binary patch delta 1534 zcmb7@TS!zv7{_-mXV2`YsmI-QFwfgb2Y%x)2r)1Xvp z4e^o<^GiltQNeqhs&;?CvFe*oIBAI<$-IY(h=av^#?@<_J7^pgumehZ36BdnGb(x1 zxRA9qDp61tZD)fCf~a?H4=t~R2|Q_1z!_1=lO~1CEm6snCWXS{t_iciKRuf;i_eaM ze%9M5rUUStjh+)HU~V2YEj$xuen*C~q{t?p2|jLT2E^U!<3=K~*$ZMJ1XC=(Tf9x} zc8akMN)p-wGgFMV^6-$&v00^kVrsmV#`4qhK*S^M8Ek!@=!Ia2-MS`P0rctFi+=IS z{~jucaX=2q9amMcrn`V`etbs=(c3FjB42deh zl_6@Sl|#!MdeTlFK=6_EW|EBn+-0w_$Rn%`ovsBvvx)>D_{qMnCZ70+gB;PVfvC0@ zkiYjDgmH72n+2pc5jTiqeS*3W|TuzU2 z!cb-Q8-?H~L#P5gBXdK@3(uYZ#~{%^D07!V?VXCJBf=c=U=%q4m?gqJ)OtLvLtv0u zG!8<;2n5NEau~O&uAqXfkkiV6)5?v_t%^+$q6CP{KtzKOTh*T{Xe_IX8YYTH6&fB> z!;2 z6&V6T21XR&Nyd_FmUsRJkKE>VU2JYp+=38IPfQoFzExOLfGR#kQ;;f2CKbb+n*rlw z@h&F;<~K`LN4eYoiM)27i(>eV!~n8A1lj$NTgMpzWRnO>b&=KXNp5ef24|vhr4;VT zB)3%uZjlL$^8wf-A9-wKb>fsG$9X0ePcZxoYk=)qkj+MJir5yr9j7EhMVC#BQ=)My z!8j!vrxJ`)qQnX%{$;_l4ER81GVx&mrpbmC&m$e;v~XfVe}H1hZ*If(_+bg{K00#xC?^k+_CS8JCeL4@VHfLfagw9WEhn+ded@?e_@6uVrK`-{3UDeC6ey?+2<{<$## From 9e11efde0529e4d6d7f56231883f52df21e153ca Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Wed, 19 Oct 2022 23:45:58 +0200 Subject: [PATCH 22/29] PMM-10231 service-params-source renaming agent --- agent/agentlocal/mock_client_test.go | 6 +-- agent/agentlocal/mock_supervisor_test.go | 3 +- agent/client/channel/channel.go | 4 +- agent/client/client.go | 40 ++++++++-------- agent/client/deps.go | 6 +-- agent/client/mock_connection_checker_test.go | 4 +- .../mock_credentials_source_parser_test.go | 30 ------------ .../mock_service_params_source_parser_test.go | 29 +++++++++++ agent/client/mock_supervisor_test.go | 4 +- agent/commands/run.go | 6 +-- agent/packages.dot | 13 +++-- .../parser.go | 48 +++++++++---------- .../parser_test.go | 24 +++++----- .../.my.cnf | 0 .../parameters.json} | 2 +- 15 files changed, 112 insertions(+), 107 deletions(-) delete mode 100644 agent/client/mock_credentials_source_parser_test.go create mode 100644 agent/client/mock_service_params_source_parser_test.go rename agent/{credentialssource => serviceparamssource}/parser.go (70%) rename agent/{credentialssource => serviceparamssource}/parser_test.go (79%) rename agent/utils/tests/testdata/{credentialssource => serviceparamssource}/.my.cnf (100%) rename agent/utils/tests/testdata/{credentialssource/credentials.json => serviceparamssource/parameters.json} (59%) diff --git a/agent/agentlocal/mock_client_test.go b/agent/agentlocal/mock_client_test.go index 4714bf1a41..d5f1470ce5 100644 --- a/agent/agentlocal/mock_client_test.go +++ b/agent/agentlocal/mock_client_test.go @@ -3,12 +3,12 @@ package agentlocal import ( - time "time" + agentpb "github.com/percona/pmm/api/agentpb" + mock "github.com/stretchr/testify/mock" prometheus "github.com/prometheus/client_golang/prometheus" - mock "github.com/stretchr/testify/mock" - agentpb "github.com/percona/pmm/api/agentpb" + time "time" ) // mockClient is an autogenerated mock type for the client type diff --git a/agent/agentlocal/mock_supervisor_test.go b/agent/agentlocal/mock_supervisor_test.go index 1fbcbc0cc0..342574e6f3 100644 --- a/agent/agentlocal/mock_supervisor_test.go +++ b/agent/agentlocal/mock_supervisor_test.go @@ -3,9 +3,8 @@ package agentlocal import ( - mock "github.com/stretchr/testify/mock" - agentlocalpb "github.com/percona/pmm/api/agentlocalpb" + mock "github.com/stretchr/testify/mock" ) // mockSupervisor is an autogenerated mock type for the supervisor type diff --git a/agent/client/channel/channel.go b/agent/client/channel/channel.go index 1a5bc4330e..6a1134396d 100644 --- a/agent/client/channel/channel.go +++ b/agent/client/channel/channel.go @@ -285,10 +285,10 @@ func (c *Channel) runReceiver() { ID: msg.Id, Payload: p.PbmSwitchPitr, } - case *agentpb.ServerMessage_ParseCredentialsSource: + case *agentpb.ServerMessage_ParseServiceParamsSource: c.requests <- &ServerRequest{ ID: msg.Id, - Payload: p.ParseCredentialsSource, + Payload: p.ParseServiceParamsSource, } case *agentpb.ServerMessage_AgentLogs: c.requests <- &ServerRequest{ diff --git a/agent/client/client.go b/agent/client/client.go index 2351bb3997..c773303a81 100644 --- a/agent/client/client.go +++ b/agent/client/client.go @@ -56,11 +56,11 @@ const ( // Client represents pmm-agent's connection to nginx/pmm-managed. type Client struct { - cfg *config.Config - supervisor supervisor - connectionChecker connectionChecker - softwareVersioner softwareVersioner - credentialsSourceParser credentialsSourceParser + cfg *config.Config + supervisor supervisor + connectionChecker connectionChecker + softwareVersioner softwareVersioner + serviceParamsSourceParser serviceParamsSourceParser l *logrus.Entry backoff *backoff.Backoff @@ -82,20 +82,20 @@ type Client struct { // New creates new client. // // Caller should call Run. -func New(cfg *config.Config, supervisor supervisor, connectionChecker connectionChecker, sv softwareVersioner, csp credentialsSourceParser, cus *connectionuptime.Service, logStore *tailog.Store) *Client { +func New(cfg *config.Config, supervisor supervisor, connectionChecker connectionChecker, sv softwareVersioner, spsp serviceParamsSourceParser, cus *connectionuptime.Service, logStore *tailog.Store) *Client { return &Client{ - cfg: cfg, - supervisor: supervisor, - connectionChecker: connectionChecker, - softwareVersioner: sv, - l: logrus.WithField("component", "client"), - backoff: backoff.New(backoffMinDelay, backoffMaxDelay), - done: make(chan struct{}), - dialTimeout: dialTimeout, - runner: runner.New(cfg.RunnerCapacity), - credentialsSourceParser: csp, - cus: cus, - logStore: logStore, + cfg: cfg, + supervisor: supervisor, + connectionChecker: connectionChecker, + softwareVersioner: sv, + l: logrus.WithField("component", "client"), + backoff: backoff.New(backoffMinDelay, backoffMaxDelay), + done: make(chan struct{}), + dialTimeout: dialTimeout, + runner: runner.New(cfg.RunnerCapacity), + serviceParamsSourceParser: spsp, + cus: cus, + logStore: logStore, } } @@ -339,8 +339,8 @@ func (c *Client) processChannelRequests(ctx context.Context) { resp.Error = err.Error() } responsePayload = &resp - case *agentpb.ParseCredentialsSourceRequest: - responsePayload = c.credentialsSourceParser.ParseCredentialsSource(p) + case *agentpb.ParseServiceParamsSourceRequest: + responsePayload = c.serviceParamsSourceParser.ParseServiceParamsSource(p) case *agentpb.AgentLogsRequest: logs, configLogLinesCount := c.agentLogByID(p.AgentId, p.Limit) responsePayload = &agentpb.AgentLogsResponse{ diff --git a/agent/client/deps.go b/agent/client/deps.go index 2997012e25..7154e9f609 100644 --- a/agent/client/deps.go +++ b/agent/client/deps.go @@ -24,7 +24,7 @@ import ( //go:generate ../../bin/mockery -name=connectionChecker -case=snake -inpkg -testonly //go:generate ../../bin/mockery -name=supervisor -case=snake -inpkg -testonly -//go:generate ../../bin/mockery -name=credentialsSourceParser -case=snake -inpkg -testonly +//go:generate ../../bin/mockery -name=serviceParamsSourceParser -case=snake -inpkg -testonly // connectionChecker is a subset of methods of connectionchecker.ConnectionChecker used by this package. // We use it instead of real type for testing and to avoid dependency cycle. @@ -50,6 +50,6 @@ type supervisor interface { // Collector added to use client as Prometheus collector prometheus.Collector } -type credentialsSourceParser interface { - ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse +type serviceParamsSourceParser interface { + ParseServiceParamsSource(req *agentpb.ParseServiceParamsSourceRequest) *agentpb.ParseServiceParamsSourceResponse } diff --git a/agent/client/mock_connection_checker_test.go b/agent/client/mock_connection_checker_test.go index 77e0a17cb9..c807311beb 100644 --- a/agent/client/mock_connection_checker_test.go +++ b/agent/client/mock_connection_checker_test.go @@ -5,9 +5,9 @@ package client import ( context "context" - mock "github.com/stretchr/testify/mock" - agentpb "github.com/percona/pmm/api/agentpb" + + mock "github.com/stretchr/testify/mock" ) // mockConnectionChecker is an autogenerated mock type for the connectionChecker type diff --git a/agent/client/mock_credentials_source_parser_test.go b/agent/client/mock_credentials_source_parser_test.go deleted file mode 100644 index 6554644bc7..0000000000 --- a/agent/client/mock_credentials_source_parser_test.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by mockery v1.0.0. DO NOT EDIT. - -package client - -import ( - mock "github.com/stretchr/testify/mock" - - agentpb "github.com/percona/pmm/api/agentpb" -) - -// mockCredentialsSourceParser is an autogenerated mock type for the credentialsSourceParser type -type mockCredentialsSourceParser struct { - mock.Mock -} - -// ParseCredentialsSource provides a mock function with given fields: req -func (_m *mockCredentialsSourceParser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { - ret := _m.Called(req) - - var r0 *agentpb.ParseCredentialsSourceResponse - if rf, ok := ret.Get(0).(func(*agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse); ok { - r0 = rf(req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*agentpb.ParseCredentialsSourceResponse) - } - } - - return r0 -} diff --git a/agent/client/mock_service_params_source_parser_test.go b/agent/client/mock_service_params_source_parser_test.go new file mode 100644 index 0000000000..c94badd858 --- /dev/null +++ b/agent/client/mock_service_params_source_parser_test.go @@ -0,0 +1,29 @@ +// Code generated by mockery v1.0.0. DO NOT EDIT. + +package client + +import ( + agentpb "github.com/percona/pmm/api/agentpb" + mock "github.com/stretchr/testify/mock" +) + +// mockServiceParamsSourceParser is an autogenerated mock type for the serviceParamsSourceParser type +type mockServiceParamsSourceParser struct { + mock.Mock +} + +// ParseServiceParamsSource provides a mock function with given fields: req +func (_m *mockServiceParamsSourceParser) ParseServiceParamsSource(req *agentpb.ParseServiceParamsSourceRequest) *agentpb.ParseServiceParamsSourceResponse { + ret := _m.Called(req) + + var r0 *agentpb.ParseServiceParamsSourceResponse + if rf, ok := ret.Get(0).(func(*agentpb.ParseServiceParamsSourceRequest) *agentpb.ParseServiceParamsSourceResponse); ok { + r0 = rf(req) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*agentpb.ParseServiceParamsSourceResponse) + } + } + + return r0 +} diff --git a/agent/client/mock_supervisor_test.go b/agent/client/mock_supervisor_test.go index 1460ca2df4..64e5aa9266 100644 --- a/agent/client/mock_supervisor_test.go +++ b/agent/client/mock_supervisor_test.go @@ -3,10 +3,10 @@ package client import ( - prometheus "github.com/prometheus/client_golang/prometheus" + agentpb "github.com/percona/pmm/api/agentpb" mock "github.com/stretchr/testify/mock" - agentpb "github.com/percona/pmm/api/agentpb" + prometheus "github.com/prometheus/client_golang/prometheus" ) // mockSupervisor is an autogenerated mock type for the supervisor type diff --git a/agent/commands/run.go b/agent/commands/run.go index 25ab6406c8..5781803ce2 100644 --- a/agent/commands/run.go +++ b/agent/commands/run.go @@ -31,7 +31,7 @@ import ( "github.com/percona/pmm/agent/config" "github.com/percona/pmm/agent/connectionchecker" "github.com/percona/pmm/agent/connectionuptime" - "github.com/percona/pmm/agent/credentialssource" + parser "github.com/percona/pmm/agent/serviceparamssource" "github.com/percona/pmm/agent/tailog" "github.com/percona/pmm/agent/versioner" "github.com/percona/pmm/api/inventorypb" @@ -112,9 +112,9 @@ func run(ctx context.Context, cfg *config.Config, configFilepath string, cs *con supervisor := supervisor.NewSupervisor(ctx, &cfg.Paths, &cfg.Ports, &cfg.Server, cfg.LogLinesCount) connectionChecker := connectionchecker.New(&cfg.Paths) - credentialsSourceParser := credentialssource.New() + serviceParamsSourceParser := parser.New() v := versioner.New(&versioner.RealExecFunctions{}) - client := client.New(cfg, supervisor, connectionChecker, v, credentialsSourceParser, cs, logStore) + client := client.New(cfg, supervisor, connectionChecker, v, serviceParamsSourceParser, cs, logStore) localServer := agentlocal.NewServer(cfg, supervisor, client, configFilepath, logStore) go func() { diff --git a/agent/packages.dot b/agent/packages.dot index 70ccefc82b..ceec979ce6 100644 --- a/agent/packages.dot +++ b/agent/packages.dot @@ -1,5 +1,6 @@ digraph packages { "/agentlocal" -> "/config"; + "/agentlocal" -> "/tailog"; "/agentlocal.test" -> "/agentlocal"; "/agents/cache.test" -> "/agents/cache"; "/agents/mongodb" -> "/agents"; @@ -33,11 +34,15 @@ digraph packages { "/agents/supervisor" -> "/agents/postgres/pgstatstatements"; "/agents/supervisor" -> "/agents/process"; "/agents/supervisor" -> "/config"; + "/agents/supervisor" -> "/tailog"; "/agents/supervisor.test" -> "/agents/supervisor"; - "/client" -> "/actions"; "/client" -> "/client/channel"; "/client" -> "/config"; - "/client" -> "/jobs"; + "/client" -> "/connectionuptime"; + "/client" -> "/runner"; + "/client" -> "/runner/actions"; + "/client" -> "/runner/jobs"; + "/client" -> "/tailog"; "/client" -> "/versioner"; "/client.test" -> "/client"; "/commands" -> "/agentlocal"; @@ -45,7 +50,9 @@ digraph packages { "/commands" -> "/client"; "/commands" -> "/config"; "/commands" -> "/connectionchecker"; - "/commands" -> "/defaultsfile"; + "/commands" -> "/connectionuptime"; + "/commands" -> "/serviceparamssource"; + "/commands" -> "/tailog"; "/commands" -> "/versioner"; "/connectionchecker" -> "/config"; "/connectionchecker" -> "/tlshelpers"; diff --git a/agent/credentialssource/parser.go b/agent/serviceparamssource/parser.go similarity index 70% rename from agent/credentialssource/parser.go rename to agent/serviceparamssource/parser.go index 6cb500f43d..72ea12bacb 100644 --- a/agent/credentialssource/parser.go +++ b/agent/serviceparamssource/parser.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Package credentialssource provides managing of defaults file. -package credentialssource +// Package serviceparamssource provides managing of service parameters source file. +package serviceparamssource import ( "encoding/json" @@ -29,7 +29,7 @@ import ( "github.com/percona/pmm/api/inventorypb" ) -// Parser is a struct which is responsible for parsing credentialsJSON source/defaults file. +// Parser is a struct which is responsible for parsing service parameters file json source/mysql defaults file. type Parser struct{} // New creates new Parser. @@ -37,7 +37,7 @@ func New() *Parser { return &Parser{} } -type credentialsSource struct { +type serviceParamsSource struct { username string password string host string @@ -46,19 +46,19 @@ type credentialsSource struct { socket string } -// credentialsJSON provides access to an external provider so that +// serviceParamsSourceJSON provides access to an external provider so that // the username, password, or agent password can be managed // externally, e.g. HashiCorp Vault, Ansible Vault, etc. -type credentialsJSON struct { +type serviceParamsSourceJSON struct { AgentPassword string `json:"agentpassword"` Password string `json:"password"` Username string `json:"username"` } -// ParseCredentialsSource parses given file in request. It returns the database specs. -func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceRequest) *agentpb.ParseCredentialsSourceResponse { - var res agentpb.ParseCredentialsSourceResponse - parsedData, err := parseCredentialsSourceFile(req.FilePath, req.ServiceType) +// ParseServiceParamsSource parses given file in request. It returns the database specs. +func (d *Parser) ParseServiceParamsSource(req *agentpb.ParseServiceParamsSourceRequest) *agentpb.ParseServiceParamsSourceResponse { + var res agentpb.ParseServiceParamsSourceResponse + parsedData, err := parseServiceParamsSourceFile(req.FilePath, req.ServiceType) if err != nil { res.Error = err.Error() return &res @@ -80,9 +80,9 @@ func (d *Parser) ParseCredentialsSource(req *agentpb.ParseCredentialsSourceReque return &res } -func parseCredentialsSourceFile(filePath string, serviceType inventorypb.ServiceType) (*credentialsSource, error) { +func parseServiceParamsSourceFile(filePath string, serviceType inventorypb.ServiceType) (*serviceParamsSource, error) { if filePath == "" { - return nil, errors.New("configPath for parseCredentialsSourceFile is empty") + return nil, errors.New("configPath for parseServiceParamsSourceFile is empty") } filePath, err := expandPath(filePath) @@ -95,9 +95,9 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service return nil, errors.Errorf("file doesn't exist: %s", filePath) } - credentialsJSONFile, err := parseJSONFile(filePath) + parametersJSONFile, err := parseJSONFile(filePath) if err == nil { - return credentialsJSONFile, nil + return parametersJSONFile, nil } if serviceType == inventorypb.ServiceType_MYSQL_SERVICE { @@ -107,28 +107,28 @@ func parseCredentialsSourceFile(filePath string, serviceType inventorypb.Service return nil, errors.Wrapf(err, "unrecognized file type %s", filePath) } -func parseJSONFile(filePath string) (*credentialsSource, error) { +func parseJSONFile(filePath string) (*serviceParamsSource, error) { // Read the file content, err := readFile(filePath) if err != nil { return nil, errors.Wrapf(err, "cannot read file %s", filePath) } - var creds credentialsJSON - if err := json.Unmarshal([]byte(content), &creds); err != nil { + var parameters serviceParamsSourceJSON + if err := json.Unmarshal([]byte(content), ¶meters); err != nil { return nil, errors.Wrapf(err, "cannot umarshal file %s", filePath) } - parsedData := &credentialsSource{ - username: creds.Username, - password: creds.Password, - agentPassword: creds.AgentPassword, + parsedData := &serviceParamsSource{ + username: parameters.Username, + password: parameters.Password, + agentPassword: parameters.AgentPassword, } return parsedData, nil } -func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { +func parseMySQLDefaultsFile(configPath string) (*serviceParamsSource, error) { cfg, err := ini.Load(configPath) if err != nil { return nil, errors.Wrapf(err, "fail to read config file: %s", configPath) @@ -137,7 +137,7 @@ func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { cfgSection := cfg.Section("client") port, _ := cfgSection.Key("port").Uint() - parsedData := &credentialsSource{ + parsedData := &serviceParamsSource{ username: cfgSection.Key("user").String(), password: cfgSection.Key("password").String(), host: cfgSection.Key("host").String(), @@ -148,7 +148,7 @@ func parseMySQLDefaultsFile(configPath string) (*credentialsSource, error) { return parsedData, nil } -func validateResults(data *credentialsSource) error { +func validateResults(data *serviceParamsSource) error { if data.username == "" && data.password == "" && data.host == "" && data.port == 0 && data.socket == "" && data.agentPassword == "" { return errors.New("no data found in file") } diff --git a/agent/credentialssource/parser_test.go b/agent/serviceparamssource/parser_test.go similarity index 79% rename from agent/credentialssource/parser_test.go rename to agent/serviceparamssource/parser_test.go index 057305c624..2691a50aac 100644 --- a/agent/credentialssource/parser_test.go +++ b/agent/serviceparamssource/parser_test.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package credentialssource +package serviceparamssource import ( "path/filepath" @@ -27,33 +27,33 @@ import ( func TestDefaultsFileParser(t *testing.T) { t.Parallel() - cnfFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/.my.cnf") + cnfFilePath, err := filepath.Abs("../utils/tests/testdata/serviceparamssource/.my.cnf") assert.NoError(t, err) - jsonFilePath, err := filepath.Abs("../utils/tests/testdata/credentialssource/credentials.json") + jsonFilePath, err := filepath.Abs("../utils/tests/testdata/serviceparamssource/parameters.json") assert.NoError(t, err) testCases := []struct { name string - req *agentpb.ParseCredentialsSourceRequest + req *agentpb.ParseServiceParamsSourceRequest expectedErr string }{ { name: "Test json parser", - req: &agentpb.ParseCredentialsSourceRequest{ + req: &agentpb.ParseServiceParamsSourceRequest{ ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, FilePath: jsonFilePath, }, }, { name: "Valid MySQL file", - req: &agentpb.ParseCredentialsSourceRequest{ + req: &agentpb.ParseServiceParamsSourceRequest{ ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, FilePath: cnfFilePath, }, }, { name: "File not found", - req: &agentpb.ParseCredentialsSourceRequest{ + req: &agentpb.ParseServiceParamsSourceRequest{ ServiceType: inventorypb.ServiceType_MYSQL_SERVICE, FilePath: "path/to/invalid/file.cnf", }, @@ -61,7 +61,7 @@ func TestDefaultsFileParser(t *testing.T) { }, { name: "Unrecognized file type (haproxy not implemented yet)", - req: &agentpb.ParseCredentialsSourceRequest{ + req: &agentpb.ParseServiceParamsSourceRequest{ ServiceType: inventorypb.ServiceType_HAPROXY_SERVICE, FilePath: cnfFilePath, }, @@ -74,7 +74,7 @@ func TestDefaultsFileParser(t *testing.T) { t.Run(testCase.name, func(t *testing.T) { t.Parallel() c := New() - resp := c.ParseCredentialsSource(testCase.req) + resp := c.ParseServiceParamsSource(testCase.req) require.NotNil(t, resp) if testCase.expectedErr == "" { assert.Empty(t, resp.Error) @@ -90,7 +90,7 @@ func TestValidateResults(t *testing.T) { t.Parallel() t.Run("validation error", func(t *testing.T) { t.Parallel() - err := validateResults(&credentialsSource{ + err := validateResults(&serviceParamsSource{ "", "", "", @@ -104,7 +104,7 @@ func TestValidateResults(t *testing.T) { t.Run("validation ok - user and password", func(t *testing.T) { t.Parallel() - err := validateResults(&credentialsSource{ + err := validateResults(&serviceParamsSource{ "root", "root123", "", @@ -118,7 +118,7 @@ func TestValidateResults(t *testing.T) { t.Run("validation ok - only port", func(t *testing.T) { t.Parallel() - err := validateResults(&credentialsSource{ + err := validateResults(&serviceParamsSource{ "", "", "", diff --git a/agent/utils/tests/testdata/credentialssource/.my.cnf b/agent/utils/tests/testdata/serviceparamssource/.my.cnf similarity index 100% rename from agent/utils/tests/testdata/credentialssource/.my.cnf rename to agent/utils/tests/testdata/serviceparamssource/.my.cnf diff --git a/agent/utils/tests/testdata/credentialssource/credentials.json b/agent/utils/tests/testdata/serviceparamssource/parameters.json similarity index 59% rename from agent/utils/tests/testdata/credentialssource/credentials.json rename to agent/utils/tests/testdata/serviceparamssource/parameters.json index 27e4af1864..0fa0b22620 100644 --- a/agent/utils/tests/testdata/credentialssource/credentials.json +++ b/agent/utils/tests/testdata/serviceparamssource/parameters.json @@ -1,5 +1,5 @@ { - "agentPassword1": "agentPassword", + "agentPassword": "agentPassword", "username": "username", "password": "password" } From 8b2d48106e8a5dd94248aaaba5c7f1428e04af90 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 20 Oct 2022 00:41:03 +0200 Subject: [PATCH 23/29] PMM-10231 service-params-source renaming managed --- agent/agentlocal/mock_client_test.go | 6 +- agent/agentlocal/mock_supervisor_test.go | 3 +- agent/client/mock_connection_checker_test.go | 4 +- .../mock_service_params_source_parser_test.go | 3 +- agent/client/mock_supervisor_test.go | 4 +- managed/cmd/pmm-managed/main.go | 142 +++++++++--------- ...rce_result.go => service_params_source.go} | 4 +- managed/services/agents/channel/channel.go | 4 +- .../services/agents/channel/channel_test.go | 10 +- ...der.go => service_params_source_loader.go} | 28 ++-- ...o => service_params_source_loader_test.go} | 4 +- managed/services/management/deps.go | 8 +- managed/services/management/external.go | 16 +- managed/services/management/haproxy.go | 16 +- ...mock_service_params_source_loader_test.go} | 14 +- managed/services/management/mongodb.go | 16 +- managed/services/management/mysql.go | 14 +- managed/services/management/postgresql.go | 20 +-- managed/services/management/proxysql.go | 18 +-- 19 files changed, 168 insertions(+), 166 deletions(-) rename managed/models/{credentials_source_result.go => service_params_source.go} (86%) rename managed/services/agents/{credentials_source_loader.go => service_params_source_loader.go} (70%) rename managed/services/agents/{credentials_source_loader_test.go => service_params_source_loader_test.go} (88%) rename managed/services/management/{mock_credentials_source_loader_test.go => mock_service_params_source_loader_test.go} (50%) diff --git a/agent/agentlocal/mock_client_test.go b/agent/agentlocal/mock_client_test.go index d5f1470ce5..4714bf1a41 100644 --- a/agent/agentlocal/mock_client_test.go +++ b/agent/agentlocal/mock_client_test.go @@ -3,12 +3,12 @@ package agentlocal import ( - agentpb "github.com/percona/pmm/api/agentpb" - mock "github.com/stretchr/testify/mock" + time "time" prometheus "github.com/prometheus/client_golang/prometheus" + mock "github.com/stretchr/testify/mock" - time "time" + agentpb "github.com/percona/pmm/api/agentpb" ) // mockClient is an autogenerated mock type for the client type diff --git a/agent/agentlocal/mock_supervisor_test.go b/agent/agentlocal/mock_supervisor_test.go index 342574e6f3..1fbcbc0cc0 100644 --- a/agent/agentlocal/mock_supervisor_test.go +++ b/agent/agentlocal/mock_supervisor_test.go @@ -3,8 +3,9 @@ package agentlocal import ( - agentlocalpb "github.com/percona/pmm/api/agentlocalpb" mock "github.com/stretchr/testify/mock" + + agentlocalpb "github.com/percona/pmm/api/agentlocalpb" ) // mockSupervisor is an autogenerated mock type for the supervisor type diff --git a/agent/client/mock_connection_checker_test.go b/agent/client/mock_connection_checker_test.go index c807311beb..77e0a17cb9 100644 --- a/agent/client/mock_connection_checker_test.go +++ b/agent/client/mock_connection_checker_test.go @@ -5,9 +5,9 @@ package client import ( context "context" - agentpb "github.com/percona/pmm/api/agentpb" - mock "github.com/stretchr/testify/mock" + + agentpb "github.com/percona/pmm/api/agentpb" ) // mockConnectionChecker is an autogenerated mock type for the connectionChecker type diff --git a/agent/client/mock_service_params_source_parser_test.go b/agent/client/mock_service_params_source_parser_test.go index c94badd858..db2aeaa5ab 100644 --- a/agent/client/mock_service_params_source_parser_test.go +++ b/agent/client/mock_service_params_source_parser_test.go @@ -3,8 +3,9 @@ package client import ( - agentpb "github.com/percona/pmm/api/agentpb" mock "github.com/stretchr/testify/mock" + + agentpb "github.com/percona/pmm/api/agentpb" ) // mockServiceParamsSourceParser is an autogenerated mock type for the serviceParamsSourceParser type diff --git a/agent/client/mock_supervisor_test.go b/agent/client/mock_supervisor_test.go index 64e5aa9266..1460ca2df4 100644 --- a/agent/client/mock_supervisor_test.go +++ b/agent/client/mock_supervisor_test.go @@ -3,10 +3,10 @@ package client import ( - agentpb "github.com/percona/pmm/api/agentpb" + prometheus "github.com/prometheus/client_golang/prometheus" mock "github.com/stretchr/testify/mock" - prometheus "github.com/prometheus/client_golang/prometheus" + agentpb "github.com/percona/pmm/api/agentpb" ) // mockSupervisor is an autogenerated mock type for the supervisor type diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index dccf8e7f02..4f73aef150 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -166,38 +166,38 @@ func addLogsHandler(mux *http.ServeMux, logs *supervisord.Logs) { } type gRPCServerDeps struct { - db *reform.DB - vmdb *victoriametrics.Service - platformClient *platformClient.Client - server *server.Server - agentsRegistry *agents.Registry - handler *agents.Handler - actions *agents.ActionsService - agentsStateUpdater *agents.StateUpdater - connectionCheck *agents.ConnectionChecker - credentialsSourceLoader *agents.CredentialsSourceLoader - grafanaClient *grafana.Client - checksService *checks.Service - dbaasClient *dbaas.Client - alertmanager *alertmanager.Service - vmalert *vmalert.Service - settings *models.Settings - alertsService *ia.AlertsService - templatesService *alerting.Service - rulesService *ia.RulesService - jobsService *agents.JobsService - versionServiceClient *managementdbaas.VersionServiceClient - schedulerService *scheduler.Service - backupService *backup.Service - compatibilityService *backup.CompatibilityService - backupRemovalService *backup.RemovalService - minioService *minio.Service - versionCache *versioncache.Service - supervisord *supervisord.Service - config *config.Config - componentsService *managementdbaas.ComponentsService - dbaasInitializer *managementdbaas.Initializer - agentService *agents.AgentService + db *reform.DB + vmdb *victoriametrics.Service + platformClient *platformClient.Client + server *server.Server + agentsRegistry *agents.Registry + handler *agents.Handler + actions *agents.ActionsService + agentsStateUpdater *agents.StateUpdater + connectionCheck *agents.ConnectionChecker + serviceParamsSourceLoader *agents.ServiceParamsSourceLoader + grafanaClient *grafana.Client + checksService *checks.Service + dbaasClient *dbaas.Client + alertmanager *alertmanager.Service + vmalert *vmalert.Service + settings *models.Settings + alertsService *ia.AlertsService + templatesService *alerting.Service + rulesService *ia.RulesService + jobsService *agents.JobsService + versionServiceClient *managementdbaas.VersionServiceClient + schedulerService *scheduler.Service + backupService *backup.Service + compatibilityService *backup.CompatibilityService + backupRemovalService *backup.RemovalService + minioService *minio.Service + versionCache *versioncache.Service + supervisord *supervisord.Service + config *config.Config + componentsService *managementdbaas.ComponentsService + dbaasInitializer *managementdbaas.Initializer + agentService *agents.AgentService } // runGRPCServer runs gRPC server until context is canceled, then gracefully stops it. @@ -234,10 +234,10 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { nodeSvc := management.NewNodeService(deps.db) serviceSvc := management.NewServiceService(deps.db, deps.agentsStateUpdater, deps.vmdb) - mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.credentialsSourceLoader) - mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader) - postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader) - proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader) + mysqlSvc := management.NewMySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.versionCache, deps.serviceParamsSourceLoader) + mongodbSvc := management.NewMongoDBService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.serviceParamsSourceLoader) + postgresqlSvc := management.NewPostgreSQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.serviceParamsSourceLoader) + proxysqlSvc := management.NewProxySQLService(deps.db, deps.agentsStateUpdater, deps.connectionCheck, deps.serviceParamsSourceLoader) managementpb.RegisterNodeServer(gRPCServer, managementgrpc.NewManagementNodeServer(nodeSvc)) managementpb.RegisterServiceServer(gRPCServer, managementgrpc.NewManagementServiceServer(serviceSvc)) @@ -248,8 +248,8 @@ func runGRPCServer(ctx context.Context, deps *gRPCServerDeps) { managementpb.RegisterActionsServer(gRPCServer, managementgrpc.NewActionsServer(deps.actions, deps.db)) managementpb.RegisterRDSServer(gRPCServer, management.NewRDSService(deps.db, deps.agentsStateUpdater, deps.connectionCheck)) azurev1beta1.RegisterAzureDatabaseServer(gRPCServer, management.NewAzureDatabaseService(deps.db, deps.agentsRegistry, deps.agentsStateUpdater, deps.connectionCheck)) - managementpb.RegisterHAProxyServer(gRPCServer, management.NewHAProxyService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader)) - managementpb.RegisterExternalServer(gRPCServer, management.NewExternalService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.credentialsSourceLoader)) + managementpb.RegisterHAProxyServer(gRPCServer, management.NewHAProxyService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.serviceParamsSourceLoader)) + managementpb.RegisterExternalServer(gRPCServer, management.NewExternalService(deps.db, deps.vmdb, deps.agentsStateUpdater, deps.connectionCheck, deps.serviceParamsSourceLoader)) managementpb.RegisterAnnotationServer(gRPCServer, managementgrpc.NewAnnotationServer(deps.db, deps.grafanaClient)) managementpb.RegisterSecurityChecksServer(gRPCServer, management.NewChecksAPIService(deps.checksService)) @@ -806,7 +806,7 @@ func main() { schedulerService := scheduler.New(db, backupService) versionCache := versioncache.New(db, versioner) emailer := alertmanager.NewEmailer(logrus.WithField("component", "alertmanager-emailer").Logger) - credentialsSourceLoader := agents.NewCredentialsSourceLoader(agentsRegistry) + serviceParamsSourceLoader := agents.NewServiceParamsSourceLoader(agentsRegistry) componentsService := managementdbaas.NewComponentsService(db, dbaasClient, versionService) @@ -965,38 +965,38 @@ func main() { defer wg.Done() runGRPCServer(ctx, &gRPCServerDeps{ - db: db, - vmdb: vmdb, - platformClient: platformClient, - server: server, - agentsRegistry: agentsRegistry, - handler: agentsHandler, - actions: actionsService, - agentsStateUpdater: agentsStateUpdater, - connectionCheck: connectionCheck, - grafanaClient: grafanaClient, - checksService: checksService, - dbaasClient: dbaasClient, - alertmanager: alertManager, - vmalert: vmalert, - settings: settings, - alertsService: alertsService, - templatesService: templatesService, - rulesService: rulesService, - jobsService: jobsService, - versionServiceClient: versionService, - schedulerService: schedulerService, - backupService: backupService, - compatibilityService: compatibilityService, - backupRemovalService: backupRemovalService, - minioService: minioService, - versionCache: versionCache, - supervisord: supervisord, - config: &cfg.Config, - credentialsSourceLoader: credentialsSourceLoader, - componentsService: componentsService, - dbaasInitializer: dbaasInitializer, - agentService: agentService, + db: db, + vmdb: vmdb, + platformClient: platformClient, + server: server, + agentsRegistry: agentsRegistry, + handler: agentsHandler, + actions: actionsService, + agentsStateUpdater: agentsStateUpdater, + connectionCheck: connectionCheck, + grafanaClient: grafanaClient, + checksService: checksService, + dbaasClient: dbaasClient, + alertmanager: alertManager, + vmalert: vmalert, + settings: settings, + alertsService: alertsService, + templatesService: templatesService, + rulesService: rulesService, + jobsService: jobsService, + versionServiceClient: versionService, + schedulerService: schedulerService, + backupService: backupService, + compatibilityService: compatibilityService, + backupRemovalService: backupRemovalService, + minioService: minioService, + versionCache: versionCache, + supervisord: supervisord, + config: &cfg.Config, + serviceParamsSourceLoader: serviceParamsSourceLoader, + componentsService: componentsService, + dbaasInitializer: dbaasInitializer, + agentService: agentService, }) }() diff --git a/managed/models/credentials_source_result.go b/managed/models/service_params_source.go similarity index 86% rename from managed/models/credentials_source_result.go rename to managed/models/service_params_source.go index 47a6662a00..018475dd82 100644 --- a/managed/models/credentials_source_result.go +++ b/managed/models/service_params_source.go @@ -15,8 +15,8 @@ package models -// CredentialsSourceParsingResult contains result of parsing defaults file. -type CredentialsSourceParsingResult struct { +// ServiceParamsSourceParsingResult contains result of parsing service parameters file. +type ServiceParamsSourceParsingResult struct { Username string Password string AgentPassword string diff --git a/managed/services/agents/channel/channel.go b/managed/services/agents/channel/channel.go index 9b1e5ae327..56442d3160 100644 --- a/managed/services/agents/channel/channel.go +++ b/managed/services/agents/channel/channel.go @@ -283,8 +283,8 @@ func (c *Channel) runReceiver() { c.publish(msg.Id, msg.Status, p.GetVersions) case *agentpb.AgentMessage_PbmSwitchPitr: c.publish(msg.Id, msg.Status, p.PbmSwitchPitr) - case *agentpb.AgentMessage_ParseCredentialsSource: - c.publish(msg.Id, msg.Status, p.ParseCredentialsSource) + case *agentpb.AgentMessage_ParseServiceParamsSource: + c.publish(msg.Id, msg.Status, p.ParseServiceParamsSource) case *agentpb.AgentMessage_AgentLogs: c.publish(msg.Id, msg.Status, p.AgentLogs) diff --git a/managed/services/agents/channel/channel_test.go b/managed/services/agents/channel/channel_test.go index 49bb5a6909..07621ae1f9 100644 --- a/managed/services/agents/channel/channel_test.go +++ b/managed/services/agents/channel/channel_test.go @@ -356,7 +356,7 @@ func TestUnexpectedResponsePayloadFromAgent(t *testing.T) { <-stop } -func TestChannelForCredentialsSourceParser(t *testing.T) { +func TestChannelForServiceParamsSourceParser(t *testing.T) { const count = 50 require.True(t, count > agentRequestsCap) @@ -364,9 +364,9 @@ func TestChannelForCredentialsSourceParser(t *testing.T) { testValue := "test" testPort := uint32(123123) for i := uint32(1); i <= count; i++ { - resp, err := ch.SendAndWaitResponse(&agentpb.ParseCredentialsSourceRequest{}) + resp, err := ch.SendAndWaitResponse(&agentpb.ParseServiceParamsSourceRequest{}) assert.NotNil(t, resp) - parserResponse := resp.(*agentpb.ParseCredentialsSourceResponse) + parserResponse := resp.(*agentpb.ParseServiceParamsSourceResponse) assert.Equal(t, parserResponse.Username, testValue) assert.Equal(t, parserResponse.Password, testValue) assert.Equal(t, parserResponse.Socket, testValue) @@ -385,11 +385,11 @@ func TestChannelForCredentialsSourceParser(t *testing.T) { msg, err := stream.Recv() assert.NoError(t, err) assert.Equal(t, i, msg.Id) - assert.NotNil(t, msg.GetParseCredentialsSource()) + assert.NotNil(t, msg.GetParseServiceParamsSource()) err = stream.Send(&agentpb.AgentMessage{ Id: i, - Payload: (&agentpb.ParseCredentialsSourceResponse{ + Payload: (&agentpb.ParseServiceParamsSourceResponse{ Username: "test", Password: "test", Port: 123123, diff --git a/managed/services/agents/credentials_source_loader.go b/managed/services/agents/service_params_source_loader.go similarity index 70% rename from managed/services/agents/credentials_source_loader.go rename to managed/services/agents/service_params_source_loader.go index 9e0c96c3e1..e208a4baaf 100644 --- a/managed/services/agents/credentials_source_loader.go +++ b/managed/services/agents/service_params_source_loader.go @@ -27,8 +27,8 @@ import ( "github.com/percona/pmm/managed/utils/logger" ) -// CredentialsSourceLoader requests from agent to parse credentials-source passed in request. -type CredentialsSourceLoader struct { +// ServiceParamsSourceLoader requests from agent to parse service parameters file passed in request. +type ServiceParamsSourceLoader struct { r *Registry } @@ -41,15 +41,15 @@ var serviceTypes = map[models.ServiceType]inventorypb.ServiceType{ models.ExternalServiceType: inventorypb.ServiceType_EXTERNAL_SERVICE, } -// NewCredentialsSourceLoader creates new CredentialsSourceLoader request. -func NewCredentialsSourceLoader(r *Registry) *CredentialsSourceLoader { - return &CredentialsSourceLoader{ +// NewServiceParamsSourceLoader creates new ServiceParamsSourceLoader request. +func NewServiceParamsSourceLoader(r *Registry) *ServiceParamsSourceLoader { + return &ServiceParamsSourceLoader{ r: r, } } -// GetCredentials sends request (with file path) to pmm-agent to parse credentials-source file. -func (p *CredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { +// GetParameters sends request (with file path) to pmm-agent to parse given source file. +func (p *ServiceParamsSourceLoader) GetParameters(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.ServiceParamsSourceParsingResult, error) { l := logger.Get(ctx) pmmAgent, err := p.r.get(pmmAgentID) @@ -65,7 +65,7 @@ func (p *CredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID request, err := createRequest(filePath, serviceType) if err != nil { - l.Debugf("can't create ParseCredentialsSourceRequest %s", err) + l.Debugf("can't create ParseServiceParamsSourceRequest %s", err) return nil, err } @@ -74,16 +74,16 @@ func (p *CredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID return nil, err } - l.Infof("ParseCredentialsSource response from agent: %+v.", resp) - parserResponse, ok := resp.(*agentpb.ParseCredentialsSourceResponse) + l.Infof("ParseServiceParamsSource response from agent: %+v.", resp) + parserResponse, ok := resp.(*agentpb.ParseServiceParamsSourceResponse) if !ok { - return nil, errors.New("wrong response from agent (not ParseCredentialsSourceResponse model)") + return nil, errors.New("wrong response from agent (not ParseServiceParamsSourceResponse model)") } if parserResponse.Error != "" { return nil, errors.New(parserResponse.Error) } - return &models.CredentialsSourceParsingResult{ + return &models.ServiceParamsSourceParsingResult{ Username: parserResponse.Username, Password: parserResponse.Password, AgentPassword: parserResponse.AgentPassword, @@ -93,13 +93,13 @@ func (p *CredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID }, nil } -func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseCredentialsSourceRequest, error) { +func createRequest(configPath string, serviceType models.ServiceType) (*agentpb.ParseServiceParamsSourceRequest, error) { inventorypbServiceType, ok := serviceTypes[serviceType] if !ok { return nil, errors.Errorf("unhandled service type %s", serviceType) } - return &agentpb.ParseCredentialsSourceRequest{ + return &agentpb.ParseServiceParamsSourceRequest{ ServiceType: inventorypbServiceType, FilePath: configPath, }, nil diff --git a/managed/services/agents/credentials_source_loader_test.go b/managed/services/agents/service_params_source_loader_test.go similarity index 88% rename from managed/services/agents/credentials_source_loader_test.go rename to managed/services/agents/service_params_source_loader_test.go index e6d7be92d9..a3645ab073 100644 --- a/managed/services/agents/credentials_source_loader_test.go +++ b/managed/services/agents/service_params_source_loader_test.go @@ -28,7 +28,7 @@ func TestCreateRequest(t *testing.T) { response, err := createRequest("/path/to/file", models.MySQLServiceType) require.NoError(t, err) - require.NotNil(t, response, "ParseCredentialsSourceRequest is nil") + require.NotNil(t, response, "ParseServiceParamsSourceRequest is nil") } func TestCreateRequestNotSupported(t *testing.T) { @@ -36,5 +36,5 @@ func TestCreateRequestNotSupported(t *testing.T) { response, err := createRequest("/path/to/file", "unsupported") require.Error(t, err) - require.Nil(t, response, "ParseCredentialsSourceRequest is not nil") + require.Nil(t, response, "ParseServiceParamsSourceRequest is not nil") } diff --git a/managed/services/management/deps.go b/managed/services/management/deps.go index 3472174610..62c8ab51ca 100644 --- a/managed/services/management/deps.go +++ b/managed/services/management/deps.go @@ -33,7 +33,7 @@ import ( //go:generate ../../../bin/mockery -name=grafanaClient -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=jobsService -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=connectionChecker -case=snake -inpkg -testonly -//go:generate ../../../bin/mockery -name=credentialsSourceLoader -case=snake -inpkg -testonly +//go:generate ../../../bin/mockery -name=serviceParamsSourceLoader -case=snake -inpkg -testonly //go:generate ../../../bin/mockery -name=versionCache -case=snake -inpkg -testonly // agentsRegistry is a subset of methods of agents.Registry used by this package. @@ -95,8 +95,8 @@ type versionCache interface { RequestSoftwareVersionsUpdate() } -// credentialsSourceLoader is a subset of methods of agents.ParseCredentialsSource. +// serviceParamsSourceLoader is a subset of methods of agents.ParseServiceParamsSource. // We use it instead of real type for testing and to avoid dependency cycle. -type credentialsSourceLoader interface { - GetCredentials(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) +type serviceParamsSourceLoader interface { + GetParameters(ctx context.Context, pmmAgentID, filePath string, serviceType models.ServiceType) (*models.ServiceParamsSourceParsingResult, error) } diff --git a/managed/services/management/external.go b/managed/services/management/external.go index 123a2203b9..7317b0fe70 100644 --- a/managed/services/management/external.go +++ b/managed/services/management/external.go @@ -37,19 +37,19 @@ type ExternalService struct { vmdb prometheusService state agentsStateUpdater cc connectionChecker - csl credentialsSourceLoader + spsl serviceParamsSourceLoader managementpb.UnimplementedExternalServer } // NewExternalService creates new External Management Service. -func NewExternalService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *ExternalService { +func NewExternalService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, spsl serviceParamsSourceLoader) *ExternalService { return &ExternalService{ db: db, vmdb: vmdb, state: state, cc: cc, - csl: csl, + spsl: spsl, } } @@ -72,17 +72,17 @@ func (e *ExternalService) AddExternal(ctx context.Context, req *managementpb.Add if req.AddNode != nil && runsOnNodeId == "" { runsOnNodeId = nodeID } - if req.CredentialsSource != "" { + if req.ServiceParamsSource != "" { agentIDs, err := models.FindPMMAgentsRunningOnNode(tx.Querier, req.RunsOnNodeId) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("cannot find agents: %s.", err)) } - result, err := e.csl.GetCredentials(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) + result, err := e.spsl.GetParameters(ctx, agentIDs[0].AgentID, req.ServiceParamsSource, models.PostgreSQLServiceType) if err != nil { - return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Service Params Source file error: %s.", err)) } - e.applyCredentialsSource(req, result) + e.applyParameters(req, result) } service, err := models.AddNewService(tx.Querier, models.ExternalServiceType, &models.AddDBMSServiceParams{ @@ -160,7 +160,7 @@ func (e *ExternalService) AddExternal(ctx context.Context, req *managementpb.Add return res, nil } -func (e *ExternalService) applyCredentialsSource(req *managementpb.AddExternalRequest, result *models.CredentialsSourceParsingResult) { +func (e *ExternalService) applyParameters(req *managementpb.AddExternalRequest, result *models.ServiceParamsSourceParsingResult) { if req.Username == "" && result.Username != "" { req.Username = result.Username } diff --git a/managed/services/management/haproxy.go b/managed/services/management/haproxy.go index 06dc1c9b8a..2049543464 100644 --- a/managed/services/management/haproxy.go +++ b/managed/services/management/haproxy.go @@ -35,19 +35,19 @@ type HAProxyService struct { vmdb prometheusService state agentsStateUpdater cc connectionChecker - csl credentialsSourceLoader + spsl serviceParamsSourceLoader managementpb.UnimplementedHAProxyServer } // NewHAProxyService creates new HAProxy Management Service. -func NewHAProxyService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *HAProxyService { +func NewHAProxyService(db *reform.DB, vmdb prometheusService, state agentsStateUpdater, cc connectionChecker, spsl serviceParamsSourceLoader) *HAProxyService { return &HAProxyService{ db: db, vmdb: vmdb, state: state, cc: cc, - csl: csl, + spsl: spsl, } } @@ -63,17 +63,17 @@ func (e HAProxyService) AddHAProxy(ctx context.Context, req *managementpb.AddHAP return err } - if req.CredentialsSource != "" { + if req.ServiceParamsSource != "" { agentIDs, err := models.FindPMMAgentsRunningOnNode(tx.Querier, req.NodeId) if err != nil { return status.Error(codes.FailedPrecondition, fmt.Sprintf("cannot find agents: %s.", err)) } - result, err := e.csl.GetCredentials(ctx, agentIDs[0].AgentID, req.CredentialsSource, models.PostgreSQLServiceType) + result, err := e.spsl.GetParameters(ctx, agentIDs[0].AgentID, req.ServiceParamsSource, models.PostgreSQLServiceType) if err != nil { - return status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + return status.Error(codes.FailedPrecondition, fmt.Sprintf("Service Params Source file error: %s.", err)) } - e.applyCredentialsSource(req, result) + e.applyParameters(req, result) } service, err := models.AddNewService(tx.Querier, models.HAProxyServiceType, &models.AddDBMSServiceParams{ @@ -150,7 +150,7 @@ func (e HAProxyService) AddHAProxy(ctx context.Context, req *managementpb.AddHAP return res, nil } -func (e HAProxyService) applyCredentialsSource(req *managementpb.AddHAProxyRequest, result *models.CredentialsSourceParsingResult) { +func (e HAProxyService) applyParameters(req *managementpb.AddHAProxyRequest, result *models.ServiceParamsSourceParsingResult) { if req.Username == "" && result.Username != "" { req.Username = result.Username } diff --git a/managed/services/management/mock_credentials_source_loader_test.go b/managed/services/management/mock_service_params_source_loader_test.go similarity index 50% rename from managed/services/management/mock_credentials_source_loader_test.go rename to managed/services/management/mock_service_params_source_loader_test.go index c97a959463..b3d399359a 100644 --- a/managed/services/management/mock_credentials_source_loader_test.go +++ b/managed/services/management/mock_service_params_source_loader_test.go @@ -10,21 +10,21 @@ import ( models "github.com/percona/pmm/managed/models" ) -// mockCredentialsSourceLoader is an autogenerated mock type for the credentialsSourceLoader type -type mockCredentialsSourceLoader struct { +// mockServiceParamsSourceLoader is an autogenerated mock type for the serviceParamsSourceLoader type +type mockServiceParamsSourceLoader struct { mock.Mock } -// GetCredentials provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType -func (_m *mockCredentialsSourceLoader) GetCredentials(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.CredentialsSourceParsingResult, error) { +// GetParameters provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType +func (_m *mockServiceParamsSourceLoader) GetParameters(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.ServiceParamsSourceParsingResult, error) { ret := _m.Called(ctx, pmmAgentID, filePath, serviceType) - var r0 *models.CredentialsSourceParsingResult - if rf, ok := ret.Get(0).(func(context.Context, string, string, models.ServiceType) *models.CredentialsSourceParsingResult); ok { + var r0 *models.ServiceParamsSourceParsingResult + if rf, ok := ret.Get(0).(func(context.Context, string, string, models.ServiceType) *models.ServiceParamsSourceParsingResult); ok { r0 = rf(ctx, pmmAgentID, filePath, serviceType) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*models.CredentialsSourceParsingResult) + r0 = ret.Get(0).(*models.ServiceParamsSourceParsingResult) } } diff --git a/managed/services/management/mongodb.go b/managed/services/management/mongodb.go index e1c8f5f16c..5880ad14ce 100644 --- a/managed/services/management/mongodb.go +++ b/managed/services/management/mongodb.go @@ -37,16 +37,16 @@ type MongoDBService struct { db *reform.DB state agentsStateUpdater cc connectionChecker - csl credentialsSourceLoader + spsl serviceParamsSourceLoader } // NewMongoDBService creates new MongoDB Management Service. -func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *MongoDBService { +func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, spsl serviceParamsSourceLoader) *MongoDBService { return &MongoDBService{ db: db, state: state, cc: cc, - csl: csl, + spsl: spsl, } } @@ -54,13 +54,13 @@ func NewMongoDBService(db *reform.DB, state agentsStateUpdater, cc connectionChe func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRequest) (*managementpb.AddMongoDBResponse, error) { res := &managementpb.AddMongoDBResponse{} - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.MongoDBServiceType) + if req.ServiceParamsSource != "" { + result, err := s.spsl.GetParameters(ctx, req.PmmAgentId, req.ServiceParamsSource, models.MongoDBServiceType) if err != nil { - return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Service Params Source file error: %s.", err)) } - s.applyCredentialsSource(req, result) + s.applyParameters(req, result) } if e := s.db.InTransaction(func(tx *reform.TX) error { @@ -157,7 +157,7 @@ func (s *MongoDBService) Add(ctx context.Context, req *managementpb.AddMongoDBRe return res, nil } -func (s *MongoDBService) applyCredentialsSource(req *managementpb.AddMongoDBRequest, result *models.CredentialsSourceParsingResult) { +func (s *MongoDBService) applyParameters(req *managementpb.AddMongoDBRequest, result *models.ServiceParamsSourceParsingResult) { if req.Username == "" && result.Username != "" { req.Username = result.Username } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index c1b05ee50d..ef64317e21 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -41,17 +41,17 @@ type MySQLService struct { state agentsStateUpdater cc connectionChecker vc versionCache - csl credentialsSourceLoader + spsl serviceParamsSourceLoader } // NewMySQLService creates new MySQL Management Service. -func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, vc versionCache, csl credentialsSourceLoader) *MySQLService { +func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, vc versionCache, spsl serviceParamsSourceLoader) *MySQLService { return &MySQLService{ db: db, state: state, cc: cc, vc: vc, - csl: csl, + spsl: spsl, } } @@ -59,13 +59,13 @@ func NewMySQLService(db *reform.DB, state agentsStateUpdater, cc connectionCheck func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLRequest) (*managementpb.AddMySQLResponse, error) { res := &managementpb.AddMySQLResponse{} - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.MySQLServiceType) + if req.ServiceParamsSource != "" { + result, err := s.spsl.GetParameters(ctx, req.PmmAgentId, req.ServiceParamsSource, models.MySQLServiceType) if err != nil { return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } - s.applyCredentialsSource(req, result) + s.applyParameters(req, result) } if req.Username == "" { @@ -212,7 +212,7 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques return res, nil } -func (s *MySQLService) applyCredentialsSource(req *managementpb.AddMySQLRequest, result *models.CredentialsSourceParsingResult) { +func (s *MySQLService) applyParameters(req *managementpb.AddMySQLRequest, result *models.ServiceParamsSourceParsingResult) { if req.Username == "" && result.Username != "" { req.Username = result.Username } diff --git a/managed/services/management/postgresql.go b/managed/services/management/postgresql.go index 81d58ce252..424bbbe192 100644 --- a/managed/services/management/postgresql.go +++ b/managed/services/management/postgresql.go @@ -35,16 +35,16 @@ type PostgreSQLService struct { db *reform.DB state agentsStateUpdater cc connectionChecker - csl credentialsSourceLoader + spsl serviceParamsSourceLoader } // NewPostgreSQLService creates new PostgreSQL Management Service. -func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *PostgreSQLService { +func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, spsl serviceParamsSourceLoader) *PostgreSQLService { return &PostgreSQLService{ db: db, state: state, cc: cc, - csl: csl, + spsl: spsl, } } @@ -52,13 +52,13 @@ func NewPostgreSQLService(db *reform.DB, state agentsStateUpdater, cc connection func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgreSQLRequest) (*managementpb.AddPostgreSQLResponse, error) { res := &managementpb.AddPostgreSQLResponse{} - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.PostgreSQLServiceType) + if req.ServiceParamsSource != "" { + result, err := s.spsl.GetParameters(ctx, req.PmmAgentId, req.ServiceParamsSource, models.PostgreSQLServiceType) if err != nil { - return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Service Params Source file error: %s.", err)) } - s.applyCredentialsSource(req, result) + s.applyParameters(req, result) } if req.Username == "" { @@ -183,9 +183,9 @@ func (s *PostgreSQLService) Add(ctx context.Context, req *managementpb.AddPostgr return res, nil } -// applyCredentialsSource apply strategy: passed username/password/...etc in request have higher priority than -// credentials from credentialsSource file. -func (s *PostgreSQLService) applyCredentialsSource(req *managementpb.AddPostgreSQLRequest, result *models.CredentialsSourceParsingResult) { +// applyParameters apply strategy: passed username/password/...etc in request have higher priority than +// credentials from service parameters source file. +func (s *PostgreSQLService) applyParameters(req *managementpb.AddPostgreSQLRequest, result *models.ServiceParamsSourceParsingResult) { if req.Username == "" && result.Username != "" { req.Username = result.Username } diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 86de6c9651..27275b0b3d 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -35,16 +35,16 @@ type ProxySQLService struct { db *reform.DB state agentsStateUpdater cc connectionChecker - csl credentialsSourceLoader + spsl serviceParamsSourceLoader } // NewProxySQLService creates new ProxySQL Management Service. -func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, csl credentialsSourceLoader) *ProxySQLService { +func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionChecker, spsl serviceParamsSourceLoader) *ProxySQLService { return &ProxySQLService{ db: db, state: state, cc: cc, - csl: csl, + spsl: spsl, } } @@ -52,13 +52,13 @@ func NewProxySQLService(db *reform.DB, state agentsStateUpdater, cc connectionCh func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQLRequest) (*managementpb.AddProxySQLResponse, error) { res := &managementpb.AddProxySQLResponse{} - if req.CredentialsSource != "" { - result, err := s.csl.GetCredentials(ctx, req.PmmAgentId, req.CredentialsSource, models.ProxySQLServiceType) + if req.ServiceParamsSource != "" { + result, err := s.spsl.GetParameters(ctx, req.PmmAgentId, req.ServiceParamsSource, models.ProxySQLServiceType) if err != nil { return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) } - s.applyCredentialsSource(req, result) + s.applyParameters(req, result) } if req.Username == "" { @@ -133,9 +133,9 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL return res, nil } -// applyCredentialsSource apply strategy: passed username/password/...etc in request have higher priority than -// credentials from credentialsSource file. -func (s *ProxySQLService) applyCredentialsSource(req *managementpb.AddProxySQLRequest, result *models.CredentialsSourceParsingResult) { +// applyParameters apply strategy: passed username/password/...etc in request have higher priority than +// credentials from service parameters source file. +func (s *ProxySQLService) applyParameters(req *managementpb.AddProxySQLRequest, result *models.ServiceParamsSourceParsingResult) { if req.Username == "" && result.Username != "" { req.Username = result.Username } From d78199bd79b74a490ebb1e0254cf04b25fe0803d Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 20 Oct 2022 00:46:15 +0200 Subject: [PATCH 24/29] PMM-10231 api regenerate --- api/agentlocalpb/agentlocal.pb.go | 35 +-- api/agentlocalpb/agentlocal.pb.gw.go | 32 +-- api/agentlocalpb/agentlocal.validator.pb.go | 17 +- api/agentlocalpb/agentlocal_grpc.pb.go | 5 +- .../client/agent_local/reload_parameters.go | 2 - .../client/agent_local/reload_responses.go | 9 +- .../client/agent_local/status2_parameters.go | 3 - .../client/agent_local/status2_responses.go | 16 +- .../client/agent_local/status_parameters.go | 2 - .../client/agent_local/status_responses.go | 17 +- api/agentpb/agent.pb.go | 215 ++++++++-------- api/agentpb/agent.validator.pb.go | 96 ++++++- api/agentpb/agent_grpc.pb.go | 4 +- api/agentpb/collector.pb.go | 39 +-- api/agentpb/collector.validator.pb.go | 17 +- api/inventorypb/agent_status.pb.go | 16 +- api/inventorypb/agent_status.validator.pb.go | 9 +- api/inventorypb/agents.pb.go | 236 +++++++++--------- api/inventorypb/agents.pb.gw.go | 140 +---------- api/inventorypb/agents.validator.pb.go | 90 ++++++- api/inventorypb/agents_grpc.pb.go | 34 ++- .../add_azure_database_exporter_parameters.go | 2 - .../add_azure_database_exporter_responses.go | 13 +- .../add_external_exporter_parameters.go | 2 - .../agents/add_external_exporter_responses.go | 13 +- .../add_mongo_db_exporter_parameters.go | 2 - .../agents/add_mongo_db_exporter_responses.go | 13 +- .../add_my_s_q_ld_exporter_parameters.go | 2 - .../add_my_s_q_ld_exporter_responses.go | 13 +- .../agents/add_node_exporter_parameters.go | 2 - .../agents/add_node_exporter_responses.go | 13 +- .../client/agents/add_pmm_agent_parameters.go | 2 - .../client/agents/add_pmm_agent_responses.go | 13 +- .../add_postgres_exporter_parameters.go | 2 - .../agents/add_postgres_exporter_responses.go | 13 +- .../add_proxy_sql_exporter_parameters.go | 2 - .../add_proxy_sql_exporter_responses.go | 13 +- ..._qan_mongo_db_profiler_agent_parameters.go | 2 - ...d_qan_mongo_db_profiler_agent_responses.go | 13 +- ...qan_my_sql_perf_schema_agent_parameters.go | 2 - ..._qan_my_sql_perf_schema_agent_responses.go | 13 +- ...add_qan_my_sql_slowlog_agent_parameters.go | 2 - .../add_qan_my_sql_slowlog_agent_responses.go | 13 +- ...re_sql_pg_stat_monitor_agent_parameters.go | 2 - ...gre_sql_pg_stat_monitor_agent_responses.go | 13 +- ...tgre_sql_pg_statements_agent_parameters.go | 2 - ...stgre_sql_pg_statements_agent_responses.go | 13 +- .../agents/add_rds_exporter_parameters.go | 2 - .../agents/add_rds_exporter_responses.go | 13 +- ...ange_azure_database_exporter_parameters.go | 2 - ...hange_azure_database_exporter_responses.go | 15 +- .../change_external_exporter_parameters.go | 2 - .../change_external_exporter_responses.go | 15 +- .../change_mongo_db_exporter_parameters.go | 2 - .../change_mongo_db_exporter_responses.go | 15 +- .../change_my_s_q_ld_exporter_parameters.go | 2 - .../change_my_s_q_ld_exporter_responses.go | 15 +- .../agents/change_node_exporter_parameters.go | 2 - .../agents/change_node_exporter_responses.go | 15 +- .../change_postgres_exporter_parameters.go | 2 - .../change_postgres_exporter_responses.go | 15 +- .../change_proxy_sql_exporter_parameters.go | 2 - .../change_proxy_sql_exporter_responses.go | 15 +- ..._qan_mongo_db_profiler_agent_parameters.go | 2 - ...e_qan_mongo_db_profiler_agent_responses.go | 15 +- ...qan_my_sql_perf_schema_agent_parameters.go | 2 - ..._qan_my_sql_perf_schema_agent_responses.go | 15 +- ...nge_qan_my_sql_slowlog_agent_parameters.go | 2 - ...ange_qan_my_sql_slowlog_agent_responses.go | 15 +- ...re_sql_pg_stat_monitor_agent_parameters.go | 2 - ...gre_sql_pg_stat_monitor_agent_responses.go | 15 +- ...tgre_sql_pg_statements_agent_parameters.go | 2 - ...stgre_sql_pg_statements_agent_responses.go | 15 +- .../agents/change_rds_exporter_parameters.go | 2 - .../agents/change_rds_exporter_responses.go | 15 +- .../agents/get_agent_logs_parameters.go | 2 - .../client/agents/get_agent_logs_responses.go | 11 +- .../client/agents/get_agent_parameters.go | 2 - .../json/client/agents/get_agent_responses.go | 41 +-- .../client/agents/list_agents_parameters.go | 2 - .../client/agents/list_agents_responses.go | 71 +----- .../client/agents/remove_agent_parameters.go | 2 - .../client/agents/remove_agent_responses.go | 10 +- .../nodes/add_container_node_parameters.go | 2 - .../nodes/add_container_node_responses.go | 13 +- .../nodes/add_generic_node_parameters.go | 2 - .../nodes/add_generic_node_responses.go | 13 +- ...d_remote_azure_database_node_parameters.go | 2 - ...dd_remote_azure_database_node_responses.go | 13 +- .../nodes/add_remote_node_parameters.go | 2 - .../client/nodes/add_remote_node_responses.go | 13 +- .../nodes/add_remote_rds_node_parameters.go | 2 - .../nodes/add_remote_rds_node_responses.go | 13 +- .../json/client/nodes/get_node_parameters.go | 2 - .../json/client/nodes/get_node_responses.go | 21 +- .../client/nodes/list_nodes_parameters.go | 2 - .../json/client/nodes/list_nodes_responses.go | 31 +-- .../client/nodes/remove_node_parameters.go | 2 - .../client/nodes/remove_node_responses.go | 10 +- .../add_external_service_parameters.go | 2 - .../add_external_service_responses.go | 13 +- .../add_ha_proxy_service_parameters.go | 2 - .../add_ha_proxy_service_responses.go | 13 +- .../add_mongo_db_service_parameters.go | 2 - .../add_mongo_db_service_responses.go | 13 +- .../services/add_my_sql_service_parameters.go | 2 - .../services/add_my_sql_service_responses.go | 13 +- .../add_postgre_sql_service_parameters.go | 2 - .../add_postgre_sql_service_responses.go | 13 +- .../add_proxy_sql_service_parameters.go | 2 - .../add_proxy_sql_service_responses.go | 13 +- .../client/services/get_service_parameters.go | 2 - .../client/services/get_service_responses.go | 23 +- .../services/list_services_parameters.go | 2 - .../services/list_services_responses.go | 35 +-- .../services/remove_service_parameters.go | 2 - .../services/remove_service_responses.go | 10 +- api/inventorypb/log_level.pb.go | 16 +- api/inventorypb/log_level.validator.pb.go | 9 +- api/inventorypb/nodes.pb.go | 80 +++--- api/inventorypb/nodes.pb.gw.go | 48 +--- api/inventorypb/nodes.validator.pb.go | 33 ++- api/inventorypb/nodes_grpc.pb.go | 11 +- api/inventorypb/services.pb.go | 90 +++---- api/inventorypb/services.pb.gw.go | 52 +--- api/inventorypb/services.validator.pb.go | 34 ++- api/inventorypb/services_grpc.pb.go | 12 +- api/managementpb/actions.pb.go | 78 +++--- api/managementpb/actions.pb.gw.go | 76 +----- api/managementpb/actions.validator.pb.go | 40 ++- api/managementpb/actions_grpc.pb.go | 18 +- api/managementpb/alerting/alerting.pb.go | 79 +++--- api/managementpb/alerting/alerting.pb.gw.go | 36 +-- .../alerting/alerting.validator.pb.go | 28 ++- api/managementpb/alerting/alerting_grpc.pb.go | 8 +- .../client/alerting/create_rule_parameters.go | 2 - .../client/alerting/create_rule_responses.go | 18 +- .../alerting/create_template_parameters.go | 2 - .../alerting/create_template_responses.go | 10 +- .../alerting/delete_template_parameters.go | 2 - .../alerting/delete_template_responses.go | 10 +- .../alerting/list_templates_parameters.go | 2 - .../alerting/list_templates_responses.go | 29 +-- .../alerting/update_template_parameters.go | 2 - .../alerting/update_template_responses.go | 10 +- api/managementpb/alerting/params.pb.go | 18 +- .../alerting/params.validator.pb.go | 9 +- api/managementpb/annotation.pb.go | 18 +- api/managementpb/annotation.pb.gw.go | 28 +-- api/managementpb/annotation.validator.pb.go | 12 +- api/managementpb/annotation_grpc.pb.go | 4 +- api/managementpb/azure/azure.pb.go | 30 ++- api/managementpb/azure/azure.pb.gw.go | 24 +- api/managementpb/azure/azure.validator.pb.go | 15 +- api/managementpb/azure/azure_grpc.pb.go | 5 +- .../add_azure_database_parameters.go | 2 - .../add_azure_database_responses.go | 10 +- .../discover_azure_database_parameters.go | 2 - .../discover_azure_database_responses.go | 15 +- api/managementpb/backup/artifacts.pb.go | 34 +-- api/managementpb/backup/artifacts.pb.gw.go | 24 +- .../backup/artifacts.validator.pb.go | 15 +- api/managementpb/backup/artifacts_grpc.pb.go | 5 +- api/managementpb/backup/backups.pb.go | 71 +++--- api/managementpb/backup/backups.pb.gw.go | 48 +--- .../backup/backups.validator.pb.go | 33 ++- api/managementpb/backup/backups_grpc.pb.go | 11 +- api/managementpb/backup/common.pb.go | 18 +- .../backup/common.validator.pb.go | 9 +- api/managementpb/backup/errors.pb.go | 20 +- .../backup/errors.validator.pb.go | 9 +- .../artifacts/delete_artifact_parameters.go | 2 - .../artifacts/delete_artifact_responses.go | 10 +- .../artifacts/list_artifacts_parameters.go | 2 - .../artifacts/list_artifacts_responses.go | 14 +- .../change_scheduled_backup_parameters.go | 2 - .../change_scheduled_backup_responses.go | 10 +- .../client/backups/get_logs_parameters.go | 2 - .../json/client/backups/get_logs_responses.go | 15 +- ...artifact_compatible_services_parameters.go | 2 - ..._artifact_compatible_services_responses.go | 19 +- .../list_scheduled_backups_parameters.go | 2 - .../list_scheduled_backups_responses.go | 14 +- .../remove_scheduled_backup_parameters.go | 2 - .../remove_scheduled_backup_responses.go | 10 +- .../backups/restore_backup_parameters.go | 2 - .../backups/restore_backup_responses.go | 11 +- .../backups/schedule_backup_parameters.go | 2 - .../backups/schedule_backup_responses.go | 11 +- .../client/backups/start_backup_parameters.go | 2 - .../client/backups/start_backup_responses.go | 11 +- .../locations/add_location_parameters.go | 2 - .../locations/add_location_responses.go | 17 +- .../locations/change_location_parameters.go | 2 - .../locations/change_location_responses.go | 16 +- .../locations/list_locations_parameters.go | 2 - .../locations/list_locations_responses.go | 20 +- .../locations/remove_location_parameters.go | 2 - .../locations/remove_location_responses.go | 10 +- .../test_location_config_parameters.go | 2 - .../test_location_config_responses.go | 16 +- .../list_restore_history_parameters.go | 2 - .../list_restore_history_responses.go | 14 +- api/managementpb/backup/locations.pb.go | 42 ++-- api/managementpb/backup/locations.pb.gw.go | 36 +-- .../backup/locations.validator.pb.go | 24 +- api/managementpb/backup/locations_grpc.pb.go | 8 +- api/managementpb/backup/restores.pb.go | 28 ++- api/managementpb/backup/restores.pb.gw.go | 28 +-- .../backup/restores.validator.pb.go | 13 +- api/managementpb/backup/restores_grpc.pb.go | 4 +- api/managementpb/boolean_flag.pb.go | 16 +- api/managementpb/boolean_flag.validator.pb.go | 9 +- api/managementpb/checks.pb.go | 66 ++--- api/managementpb/checks.pb.gw.go | 44 +--- api/managementpb/checks.validator.pb.go | 29 ++- api/managementpb/checks_grpc.pb.go | 10 +- api/managementpb/dbaas/components.pb.go | 74 +++--- api/managementpb/dbaas/components.pb.gw.go | 40 +-- .../dbaas/components.validator.pb.go | 29 ++- api/managementpb/dbaas/components_grpc.pb.go | 9 +- api/managementpb/dbaas/db_clusters.pb.go | 42 ++-- api/managementpb/dbaas/db_clusters.pb.gw.go | 28 +-- .../dbaas/db_clusters.validator.pb.go | 18 +- api/managementpb/dbaas/db_clusters_grpc.pb.go | 6 +- api/managementpb/dbaas/dbaas.pb.go | 26 +- api/managementpb/dbaas/dbaas.validator.pb.go | 11 +- .../change_psmdb_components_parameters.go | 2 - .../change_psmdb_components_responses.go | 16 +- .../change_pxc_components_parameters.go | 2 - .../change_pxc_components_responses.go | 28 +-- .../check_for_operator_update_parameters.go | 2 - .../check_for_operator_update_responses.go | 18 +- .../get_psmdb_components_parameters.go | 2 - .../get_psmdb_components_responses.go | 49 +--- .../get_pxc_components_parameters.go | 2 - .../get_pxc_components_responses.go | 49 +--- .../components/install_operator_parameters.go | 2 - .../components/install_operator_responses.go | 11 +- .../delete_db_cluster_parameters.go | 2 - .../delete_db_cluster_responses.go | 10 +- .../list_db_clusters_parameters.go | 2 - .../db_clusters/list_db_clusters_responses.go | 43 +--- .../restart_db_cluster_parameters.go | 2 - .../restart_db_cluster_responses.go | 10 +- .../get_kubernetes_cluster_parameters.go | 2 - .../get_kubernetes_cluster_responses.go | 13 +- .../kubernetes/get_resources_parameters.go | 2 - .../kubernetes/get_resources_responses.go | 15 +- .../list_kubernetes_clusters_parameters.go | 2 - .../list_kubernetes_clusters_responses.go | 20 +- .../register_kubernetes_cluster_parameters.go | 2 - .../register_kubernetes_cluster_responses.go | 12 +- ...nregister_kubernetes_cluster_parameters.go | 2 - ...unregister_kubernetes_cluster_responses.go | 10 +- .../client/logs_api/get_logs_parameters.go | 2 - .../client/logs_api/get_logs_responses.go | 15 +- .../create_psmdb_cluster_parameters.go | 2 - .../create_psmdb_cluster_responses.go | 16 +- ...et_psmdb_cluster_credentials_parameters.go | 2 - ...get_psmdb_cluster_credentials_responses.go | 13 +- .../get_psmdb_cluster_resources_parameters.go | 2 - .../get_psmdb_cluster_resources_responses.go | 19 +- .../update_psmdb_cluster_parameters.go | 2 - .../update_psmdb_cluster_responses.go | 16 +- .../create_pxc_cluster_parameters.go | 2 - .../create_pxc_cluster_responses.go | 24 +- .../get_pxc_cluster_credentials_parameters.go | 2 - .../get_pxc_cluster_credentials_responses.go | 13 +- .../get_pxc_cluster_resources_parameters.go | 2 - .../get_pxc_cluster_resources_responses.go | 27 +- .../update_pxc_cluster_parameters.go | 2 - .../update_pxc_cluster_responses.go | 24 +- api/managementpb/dbaas/kubernetes.pb.go | 50 ++-- api/managementpb/dbaas/kubernetes.pb.gw.go | 36 +-- .../dbaas/kubernetes.validator.pb.go | 24 +- api/managementpb/dbaas/kubernetes_grpc.pb.go | 8 +- api/managementpb/dbaas/logs.pb.go | 20 +- api/managementpb/dbaas/logs.pb.gw.go | 28 +-- api/managementpb/dbaas/logs.validator.pb.go | 13 +- api/managementpb/dbaas/logs_grpc.pb.go | 4 +- api/managementpb/dbaas/psmdb_clusters.pb.go | 44 ++-- .../dbaas/psmdb_clusters.pb.gw.go | 32 +-- .../dbaas/psmdb_clusters.validator.pb.go | 23 +- .../dbaas/psmdb_clusters_grpc.pb.go | 7 +- api/managementpb/dbaas/pxc_clusters.pb.go | 56 +++-- api/managementpb/dbaas/pxc_clusters.pb.gw.go | 32 +-- .../dbaas/pxc_clusters.validator.pb.go | 27 +- .../dbaas/pxc_clusters_grpc.pb.go | 7 +- api/managementpb/external.pb.go | 31 ++- api/managementpb/external.pb.gw.go | 28 +-- api/managementpb/external.validator.pb.go | 13 +- api/managementpb/external_grpc.pb.go | 4 +- api/managementpb/haproxy.pb.go | 31 ++- api/managementpb/haproxy.pb.gw.go | 28 +-- api/managementpb/haproxy.validator.pb.go | 13 +- api/managementpb/haproxy_grpc.pb.go | 4 +- api/managementpb/ia/alerts.pb.go | 43 ++-- api/managementpb/ia/alerts.pb.gw.go | 24 +- api/managementpb/ia/alerts.validator.pb.go | 16 +- api/managementpb/ia/alerts_grpc.pb.go | 5 +- api/managementpb/ia/channels.pb.go | 53 ++-- api/managementpb/ia/channels.pb.gw.go | 32 +-- api/managementpb/ia/channels.validator.pb.go | 27 +- api/managementpb/ia/channels_grpc.pb.go | 7 +- .../client/alerts/list_alerts_parameters.go | 2 - .../client/alerts/list_alerts_responses.go | 57 +---- .../client/alerts/toggle_alerts_parameters.go | 2 - .../client/alerts/toggle_alerts_responses.go | 10 +- .../client/channels/add_channel_parameters.go | 2 - .../client/channels/add_channel_responses.go | 25 +- .../channels/change_channel_parameters.go | 2 - .../channels/change_channel_responses.go | 24 +- .../channels/list_channels_parameters.go | 2 - .../channels/list_channels_responses.go | 33 +-- .../channels/remove_channel_parameters.go | 2 - .../channels/remove_channel_responses.go | 10 +- .../rules/create_alert_rule_parameters.go | 2 - .../rules/create_alert_rule_responses.go | 19 +- .../rules/delete_alert_rule_parameters.go | 2 - .../rules/delete_alert_rule_responses.go | 10 +- .../rules/list_alert_rules_parameters.go | 2 - .../rules/list_alert_rules_responses.go | 55 +--- .../rules/toggle_alert_rule_parameters.go | 2 - .../rules/toggle_alert_rule_responses.go | 10 +- .../rules/update_alert_rule_parameters.go | 2 - .../rules/update_alert_rule_responses.go | 18 +- api/managementpb/ia/rules.pb.go | 77 +++--- api/managementpb/ia/rules.pb.gw.go | 36 +-- api/managementpb/ia/rules.validator.pb.go | 30 ++- api/managementpb/ia/rules_grpc.pb.go | 8 +- api/managementpb/ia/status.pb.go | 16 +- api/managementpb/ia/status.validator.pb.go | 9 +- .../actions/cancel_action_parameters.go | 2 - .../client/actions/cancel_action_responses.go | 10 +- .../client/actions/get_action_parameters.go | 2 - .../client/actions/get_action_responses.go | 11 +- ...tart_mongo_db_explain_action_parameters.go | 2 - ...start_mongo_db_explain_action_responses.go | 11 +- .../start_my_sql_explain_action_parameters.go | 2 - .../start_my_sql_explain_action_responses.go | 11 +- ...t_my_sql_explain_json_action_parameters.go | 2 - ...rt_my_sql_explain_json_action_responses.go | 11 +- ...lain_traditional_json_action_parameters.go | 2 - ...plain_traditional_json_action_responses.go | 11 +- ...sql_show_create_table_action_parameters.go | 2 - ..._sql_show_create_table_action_responses.go | 11 +- ...art_my_sql_show_index_action_parameters.go | 2 - ...tart_my_sql_show_index_action_responses.go | 11 +- ...sql_show_table_status_action_parameters.go | 2 - ..._sql_show_table_status_action_responses.go | 11 +- ...sql_show_create_table_action_parameters.go | 2 - ..._sql_show_create_table_action_responses.go | 11 +- ...ostgre_sql_show_index_action_parameters.go | 2 - ...postgre_sql_show_index_action_responses.go | 11 +- ...t_pt_mongo_db_summary_action_parameters.go | 2 - ...rt_pt_mongo_db_summary_action_responses.go | 11 +- ...art_pt_my_sql_summary_action_parameters.go | 2 - ...tart_pt_my_sql_summary_action_responses.go | 11 +- .../start_pt_pg_summary_action_parameters.go | 2 - .../start_pt_pg_summary_action_responses.go | 11 +- .../start_pt_summary_action_parameters.go | 2 - .../start_pt_summary_action_responses.go | 11 +- .../annotation/add_annotation_parameters.go | 2 - .../annotation/add_annotation_responses.go | 10 +- .../external/add_external_parameters.go | 2 - .../client/external/add_external_responses.go | 17 +- .../ha_proxy/add_ha_proxy_parameters.go | 2 - .../client/ha_proxy/add_ha_proxy_responses.go | 17 +- .../mongo_db/add_mongo_db_parameters.go | 2 - .../client/mongo_db/add_mongo_db_responses.go | 19 +- .../client/my_sql/add_my_sql_parameters.go | 2 - .../client/my_sql/add_my_sql_responses.go | 21 +- .../client/node/register_node_parameters.go | 2 - .../client/node/register_node_responses.go | 17 +- .../postgre_sql/add_postgre_sql_parameters.go | 2 - .../postgre_sql/add_postgre_sql_responses.go | 21 +- .../proxy_sql/add_proxy_sql_parameters.go | 2 - .../proxy_sql/add_proxy_sql_responses.go | 17 +- .../json/client/rds/add_rds_parameters.go | 2 - .../json/client/rds/add_rds_responses.go | 27 +- .../client/rds/discover_rds_parameters.go | 2 - .../json/client/rds/discover_rds_responses.go | 15 +- .../change_security_checks_parameters.go | 2 - .../change_security_checks_responses.go | 14 +- .../get_failed_checks_parameters.go | 2 - .../get_failed_checks_responses.go | 19 +- .../get_security_check_results_parameters.go | 2 - .../get_security_check_results_responses.go | 14 +- .../list_failed_services_parameters.go | 2 - .../list_failed_services_responses.go | 14 +- .../list_security_checks_parameters.go | 2 - .../list_security_checks_responses.go | 14 +- .../start_security_checks_parameters.go | 2 - .../start_security_checks_responses.go | 10 +- .../toggle_check_alert_parameters.go | 2 - .../toggle_check_alert_responses.go | 10 +- .../service/remove_service_parameters.go | 2 - .../service/remove_service_responses.go | 10 +- api/managementpb/metrics.pb.go | 16 +- api/managementpb/metrics.validator.pb.go | 9 +- api/managementpb/mongodb.pb.go | 35 +-- api/managementpb/mongodb.pb.gw.go | 28 +-- api/managementpb/mongodb.validator.pb.go | 13 +- api/managementpb/mongodb_grpc.pb.go | 4 +- api/managementpb/mysql.pb.go | 37 +-- api/managementpb/mysql.pb.gw.go | 28 +-- api/managementpb/mysql.validator.pb.go | 15 +- api/managementpb/mysql_grpc.pb.go | 4 +- api/managementpb/node.pb.go | 33 +-- api/managementpb/node.pb.gw.go | 28 +-- api/managementpb/node.validator.pb.go | 13 +- api/managementpb/node_grpc.pb.go | 4 +- api/managementpb/pagination.pb.go | 18 +- api/managementpb/pagination.validator.pb.go | 10 +- api/managementpb/postgresql.pb.go | 37 +-- api/managementpb/postgresql.pb.gw.go | 28 +-- api/managementpb/postgresql.validator.pb.go | 15 +- api/managementpb/postgresql_grpc.pb.go | 4 +- api/managementpb/proxysql.pb.go | 33 +-- api/managementpb/proxysql.pb.gw.go | 28 +-- api/managementpb/proxysql.validator.pb.go | 15 +- api/managementpb/proxysql_grpc.pb.go | 4 +- api/managementpb/rds.pb.go | 51 ++-- api/managementpb/rds.pb.gw.go | 24 +- api/managementpb/rds.validator.pb.go | 16 +- api/managementpb/rds_grpc.pb.go | 5 +- api/managementpb/service.pb.go | 29 ++- api/managementpb/service.pb.gw.go | 28 +-- api/managementpb/service.validator.pb.go | 14 +- api/managementpb/service_grpc.pb.go | 4 +- api/managementpb/severity.pb.go | 16 +- api/managementpb/severity.validator.pb.go | 9 +- .../client/platform/connect_parameters.go | 2 - .../json/client/platform/connect_responses.go | 10 +- .../client/platform/disconnect_parameters.go | 2 - .../client/platform/disconnect_responses.go | 10 +- .../get_contact_information_parameters.go | 2 - .../get_contact_information_responses.go | 12 +- ...ch_organization_entitlements_parameters.go | 2 - ...rch_organization_entitlements_responses.go | 16 +- .../search_organization_tickets_parameters.go | 2 - .../search_organization_tickets_responses.go | 14 +- .../client/platform/server_info_parameters.go | 2 - .../client/platform/server_info_responses.go | 10 +- .../client/platform/user_status_parameters.go | 2 - .../client/platform/user_status_responses.go | 10 +- api/platformpb/platform.pb.go | 56 +++-- api/platformpb/platform.pb.gw.go | 44 +--- api/platformpb/platform.validator.pb.go | 32 ++- api/platformpb/platform_grpc.pb.go | 10 +- api/qanpb/collector.pb.go | 35 +-- api/qanpb/collector.validator.pb.go | 14 +- api/qanpb/collector_grpc.pb.go | 4 +- api/qanpb/filters.pb.go | 28 ++- api/qanpb/filters.pb.gw.go | 28 +-- api/qanpb/filters.validator.pb.go | 14 +- api/qanpb/filters_grpc.pb.go | 4 +- .../json/client/filters/get_parameters.go | 2 - .../json/client/filters/get_responses.go | 23 +- .../get_metrics_names_parameters.go | 2 - .../get_metrics_names_responses.go | 10 +- .../get_histogram_parameters.go | 2 - .../object_details/get_histogram_responses.go | 19 +- .../object_details/get_labels_parameters.go | 2 - .../object_details/get_labels_responses.go | 15 +- .../object_details/get_metrics_parameters.go | 2 - .../object_details/get_metrics_responses.go | 27 +- .../get_query_example_parameters.go | 2 - .../get_query_example_responses.go | 19 +- .../get_query_plan_parameters.go | 2 - .../get_query_plan_responses.go | 11 +- .../object_details/query_exists_parameters.go | 2 - .../object_details/query_exists_responses.go | 10 +- .../client/profile/get_report_parameters.go | 2 - .../client/profile/get_report_responses.go | 29 +-- api/qanpb/metrics_names.pb.go | 20 +- api/qanpb/metrics_names.pb.gw.go | 28 +-- api/qanpb/metrics_names.validator.pb.go | 10 +- api/qanpb/metrics_names_grpc.pb.go | 4 +- api/qanpb/object_details.pb.go | 66 ++--- api/qanpb/object_details.pb.gw.go | 40 +-- api/qanpb/object_details.validator.pb.go | 26 +- api/qanpb/object_details_grpc.pb.go | 9 +- api/qanpb/profile.pb.go | 32 +-- api/qanpb/profile.pb.gw.go | 28 +-- api/qanpb/profile.validator.pb.go | 16 +- api/qanpb/profile_grpc.pb.go | 4 +- api/qanpb/qan.pb.go | 24 +- api/qanpb/qan.validator.pb.go | 10 +- api/serverpb/httperror.pb.go | 18 +- api/serverpb/httperror.validator.pb.go | 11 +- .../server/aws_instance_check_parameters.go | 2 - .../server/aws_instance_check_responses.go | 10 +- .../server/change_settings_parameters.go | 2 - .../server/change_settings_responses.go | 29 +-- .../client/server/check_updates_parameters.go | 2 - .../client/server/check_updates_responses.go | 15 +- .../client/server/get_settings_parameters.go | 2 - .../client/server/get_settings_responses.go | 20 +- .../json/client/server/logs_parameters.go | 3 - .../json/client/server/logs_responses.go | 6 +- .../client/server/readiness_parameters.go | 1 - .../json/client/server/readiness_responses.go | 9 +- .../client/server/start_update_parameters.go | 2 - .../client/server/start_update_responses.go | 10 +- ...test_email_alerting_settings_parameters.go | 2 - .../test_email_alerting_settings_responses.go | 12 +- .../client/server/update_status_parameters.go | 2 - .../client/server/update_status_responses.go | 11 +- .../json/client/server/version_parameters.go | 3 - .../json/client/server/version_responses.go | 14 +- api/serverpb/server.pb.go | 70 +++--- api/serverpb/server.pb.gw.go | 54 +--- api/serverpb/server.validator.pb.go | 36 ++- api/serverpb/server_grpc.pb.go | 12 +- .../json/client/user/get_user_parameters.go | 1 - .../json/client/user/get_user_responses.go | 10 +- .../client/user/update_user_parameters.go | 2 - .../json/client/user/update_user_responses.go | 11 +- api/userpb/user.pb.go | 20 +- api/userpb/user.pb.gw.go | 24 +- api/userpb/user.validator.pb.go | 11 +- api/userpb/user_grpc.pb.go | 5 +- 524 files changed, 3134 insertions(+), 5225 deletions(-) diff --git a/api/agentlocalpb/agentlocal.pb.go b/api/agentlocalpb/agentlocal.pb.go index 0cc08ffbb2..8c34013984 100644 --- a/api/agentlocalpb/agentlocal.pb.go +++ b/api/agentlocalpb/agentlocal.pb.go @@ -7,13 +7,15 @@ package agentlocalpb import ( - inventorypb "github.com/percona/pmm/api/inventorypb" + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -537,18 +539,21 @@ func file_agentlocalpb_agentlocal_proto_rawDescGZIP() []byte { return file_agentlocalpb_agentlocal_proto_rawDescData } -var file_agentlocalpb_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_agentlocalpb_agentlocal_proto_goTypes = []interface{}{ - (*ServerInfo)(nil), // 0: agentlocal.ServerInfo - (*AgentInfo)(nil), // 1: agentlocal.AgentInfo - (*StatusRequest)(nil), // 2: agentlocal.StatusRequest - (*StatusResponse)(nil), // 3: agentlocal.StatusResponse - (*ReloadRequest)(nil), // 4: agentlocal.ReloadRequest - (*ReloadResponse)(nil), // 5: agentlocal.ReloadResponse - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration - (inventorypb.AgentType)(0), // 7: inventory.AgentType - (inventorypb.AgentStatus)(0), // 8: inventory.AgentStatus -} +var ( + file_agentlocalpb_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_agentlocalpb_agentlocal_proto_goTypes = []interface{}{ + (*ServerInfo)(nil), // 0: agentlocal.ServerInfo + (*AgentInfo)(nil), // 1: agentlocal.AgentInfo + (*StatusRequest)(nil), // 2: agentlocal.StatusRequest + (*StatusResponse)(nil), // 3: agentlocal.StatusResponse + (*ReloadRequest)(nil), // 4: agentlocal.ReloadRequest + (*ReloadResponse)(nil), // 5: agentlocal.ReloadResponse + (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (inventorypb.AgentType)(0), // 7: inventory.AgentType + (inventorypb.AgentStatus)(0), // 8: inventory.AgentStatus + } +) + var file_agentlocalpb_agentlocal_proto_depIdxs = []int32{ 6, // 0: agentlocal.ServerInfo.latency:type_name -> google.protobuf.Duration 6, // 1: agentlocal.ServerInfo.clock_drift:type_name -> google.protobuf.Duration diff --git a/api/agentlocalpb/agentlocal.pb.gw.go b/api/agentlocalpb/agentlocal.pb.gw.go index d594a5b768..9056dcea80 100644 --- a/api/agentlocalpb/agentlocal.pb.gw.go +++ b/api/agentlocalpb/agentlocal.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Marshaler, client AgentLocalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StatusRequest @@ -45,7 +47,6 @@ func request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.Status(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Marshaler, server AgentLocalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,12 +63,9 @@ func local_request_AgentLocal_Status_0(ctx context.Context, marshaler runtime.Ma msg, err := server.Status(ctx, &protoReq) return msg, metadata, err - } -var ( - filter_AgentLocal_Status_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) +var filter_AgentLocal_Status_1 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} func request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Marshaler, client AgentLocalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StatusRequest @@ -82,7 +80,6 @@ func request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Marshale msg, err := client.Status(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Marshaler, server AgentLocalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -98,7 +95,6 @@ func local_request_AgentLocal_Status_1(ctx context.Context, marshaler runtime.Ma msg, err := server.Status(ctx, &protoReq) return msg, metadata, err - } func request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Marshaler, client AgentLocalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -115,7 +111,6 @@ func request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.Reload(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Marshaler, server AgentLocalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -132,7 +127,6 @@ func local_request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Ma msg, err := server.Reload(ctx, &protoReq) return msg, metadata, err - } // RegisterAgentLocalHandlerServer registers the http handlers for service AgentLocal to "mux". @@ -140,7 +134,6 @@ func local_request_AgentLocal_Reload_0(ctx context.Context, marshaler runtime.Ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentLocalHandlerFromEndpoint instead. func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AgentLocalServer) error { - mux.Handle("POST", pattern_AgentLocal_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -163,7 +156,6 @@ func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_AgentLocal_Status_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -188,7 +180,6 @@ func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_AgentLocal_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -213,7 +204,6 @@ func RegisterAgentLocalHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Reload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -256,7 +246,6 @@ func RegisterAgentLocalHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AgentLocalClient" to call the correct interceptors. func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentLocalClient) error { - mux.Handle("POST", pattern_AgentLocal_Status_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -276,7 +265,6 @@ func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_AgentLocal_Status_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -298,7 +286,6 @@ func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Status_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_AgentLocal_Reload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -320,7 +307,6 @@ func RegisterAgentLocalHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_AgentLocal_Reload_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/agentlocalpb/agentlocal.validator.pb.go b/api/agentlocalpb/agentlocal.validator.pb.go index 88e57f9d09..c7d1f87664 100644 --- a/api/agentlocalpb/agentlocal.validator.pb.go +++ b/api/agentlocalpb/agentlocal.validator.pb.go @@ -6,17 +6,21 @@ package agentlocalpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *ServerInfo) Validate() error { if this.Latency != nil { @@ -31,12 +35,15 @@ func (this *ServerInfo) Validate() error { } return nil } + func (this *AgentInfo) Validate() error { return nil } + func (this *StatusRequest) Validate() error { return nil } + func (this *StatusResponse) Validate() error { if this.ServerInfo != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ServerInfo); err != nil { @@ -52,9 +59,11 @@ func (this *StatusResponse) Validate() error { } return nil } + func (this *ReloadRequest) Validate() error { return nil } + func (this *ReloadResponse) Validate() error { return nil } diff --git a/api/agentlocalpb/agentlocal_grpc.pb.go b/api/agentlocalpb/agentlocal_grpc.pb.go index 1d795375c8..902916946b 100644 --- a/api/agentlocalpb/agentlocal_grpc.pb.go +++ b/api/agentlocalpb/agentlocal_grpc.pb.go @@ -8,6 +8,7 @@ package agentlocalpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -66,12 +67,12 @@ type AgentLocalServer interface { } // UnimplementedAgentLocalServer must be embedded to have forward compatible implementations. -type UnimplementedAgentLocalServer struct { -} +type UnimplementedAgentLocalServer struct{} func (UnimplementedAgentLocalServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") } + func (UnimplementedAgentLocalServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Reload not implemented") } diff --git a/api/agentlocalpb/json/client/agent_local/reload_parameters.go b/api/agentlocalpb/json/client/agent_local/reload_parameters.go index 2b88f1c563..99cb61bfaf 100644 --- a/api/agentlocalpb/json/client/agent_local/reload_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/reload_parameters.go @@ -60,7 +60,6 @@ ReloadParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ReloadParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ReloadParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ReloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/agentlocalpb/json/client/agent_local/reload_responses.go b/api/agentlocalpb/json/client/agent_local/reload_responses.go index 7913d61dd4..ce4fcb8c03 100644 --- a/api/agentlocalpb/json/client/agent_local/reload_responses.go +++ b/api/agentlocalpb/json/client/agent_local/reload_responses.go @@ -60,12 +60,12 @@ type ReloadOK struct { func (o *ReloadOK) Error() string { return fmt.Sprintf("[POST /local/Reload][%d] reloadOk %+v", 200, o.Payload) } + func (o *ReloadOK) GetPayload() interface{} { return o.Payload } func (o *ReloadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ReloadDefault) Code() int { func (o *ReloadDefault) Error() string { return fmt.Sprintf("[POST /local/Reload][%d] Reload default %+v", o._statusCode, o.Payload) } + func (o *ReloadDefault) GetPayload() *ReloadDefaultBody { return o.Payload } func (o *ReloadDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ReloadDefaultBody) // response payload @@ -121,7 +121,6 @@ ReloadDefaultBody reload default body swagger:model ReloadDefaultBody */ type ReloadDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -187,9 +186,7 @@ func (o *ReloadDefaultBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ReloadDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -200,7 +197,6 @@ func (o *ReloadDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -229,7 +225,6 @@ ReloadDefaultBodyDetailsItems0 reload default body details items0 swagger:model ReloadDefaultBodyDetailsItems0 */ type ReloadDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/agentlocalpb/json/client/agent_local/status2_parameters.go b/api/agentlocalpb/json/client/agent_local/status2_parameters.go index c60f9ca220..75d8c38d16 100644 --- a/api/agentlocalpb/json/client/agent_local/status2_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/status2_parameters.go @@ -61,7 +61,6 @@ Status2Params contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type Status2Params struct { - /* GetNetworkInfo. Returns network info (latency and clock_drift) if true. @@ -134,7 +133,6 @@ func (o *Status2Params) SetGetNetworkInfo(getNetworkInfo *bool) { // WriteToRequest writes these params to a swagger request func (o *Status2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -150,7 +148,6 @@ func (o *Status2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qGetNetworkInfo := swag.FormatBool(qrGetNetworkInfo) if qGetNetworkInfo != "" { - if err := r.SetQueryParam("get_network_info", qGetNetworkInfo); err != nil { return err } diff --git a/api/agentlocalpb/json/client/agent_local/status2_responses.go b/api/agentlocalpb/json/client/agent_local/status2_responses.go index 0b3dd3f133..e4b3cec66a 100644 --- a/api/agentlocalpb/json/client/agent_local/status2_responses.go +++ b/api/agentlocalpb/json/client/agent_local/status2_responses.go @@ -62,12 +62,12 @@ type Status2OK struct { func (o *Status2OK) Error() string { return fmt.Sprintf("[GET /local/Status][%d] status2Ok %+v", 200, o.Payload) } + func (o *Status2OK) GetPayload() *Status2OKBody { return o.Payload } func (o *Status2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(Status2OKBody) // response payload @@ -104,12 +104,12 @@ func (o *Status2Default) Code() int { func (o *Status2Default) Error() string { return fmt.Sprintf("[GET /local/Status][%d] Status2 default %+v", o._statusCode, o.Payload) } + func (o *Status2Default) GetPayload() *Status2DefaultBody { return o.Payload } func (o *Status2Default) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(Status2DefaultBody) // response payload @@ -125,7 +125,6 @@ Status2DefaultBody status2 default body swagger:model Status2DefaultBody */ type Status2DefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *Status2DefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *Status2DefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *Status2DefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -233,7 +229,6 @@ Status2DefaultBodyDetailsItems0 status2 default body details items0 swagger:model Status2DefaultBodyDetailsItems0 */ type Status2DefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ Status2OKBody status2 OK body swagger:model Status2OKBody */ type Status2OKBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -379,9 +373,7 @@ func (o *Status2OKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *Status2OKBody) contextValidateAgentsInfo(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.AgentsInfo); i++ { - if o.AgentsInfo[i] != nil { if err := o.AgentsInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -392,14 +384,12 @@ func (o *Status2OKBody) contextValidateAgentsInfo(ctx context.Context, formats s return err } } - } return nil } func (o *Status2OKBody) contextValidateServerInfo(ctx context.Context, formats strfmt.Registry) error { - if o.ServerInfo != nil { if err := o.ServerInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -437,7 +427,6 @@ Status2OKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model Status2OKBodyAgentsInfoItems0 */ type Status2OKBodyAgentsInfoItems0 struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -651,7 +640,6 @@ Status2OKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model Status2OKBodyServerInfo */ type Status2OKBodyServerInfo struct { - // PMM Server URL in a form https://HOST:PORT/. URL string `json:"url,omitempty"` diff --git a/api/agentlocalpb/json/client/agent_local/status_parameters.go b/api/agentlocalpb/json/client/agent_local/status_parameters.go index df5607cccf..bcd6f41c92 100644 --- a/api/agentlocalpb/json/client/agent_local/status_parameters.go +++ b/api/agentlocalpb/json/client/agent_local/status_parameters.go @@ -60,7 +60,6 @@ StatusParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StatusParams struct { - // Body. Body StatusBody @@ -130,7 +129,6 @@ func (o *StatusParams) SetBody(body StatusBody) { // WriteToRequest writes these params to a swagger request func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/agentlocalpb/json/client/agent_local/status_responses.go b/api/agentlocalpb/json/client/agent_local/status_responses.go index e9bf238296..fa69048f34 100644 --- a/api/agentlocalpb/json/client/agent_local/status_responses.go +++ b/api/agentlocalpb/json/client/agent_local/status_responses.go @@ -62,12 +62,12 @@ type StatusOK struct { func (o *StatusOK) Error() string { return fmt.Sprintf("[POST /local/Status][%d] statusOk %+v", 200, o.Payload) } + func (o *StatusOK) GetPayload() *StatusOKBody { return o.Payload } func (o *StatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StatusOKBody) // response payload @@ -104,12 +104,12 @@ func (o *StatusDefault) Code() int { func (o *StatusDefault) Error() string { return fmt.Sprintf("[POST /local/Status][%d] Status default %+v", o._statusCode, o.Payload) } + func (o *StatusDefault) GetPayload() *StatusDefaultBody { return o.Payload } func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StatusDefaultBody) // response payload @@ -125,7 +125,6 @@ StatusBody status body swagger:model StatusBody */ type StatusBody struct { - // Returns network info (latency and clock_drift) if true. GetNetworkInfo bool `json:"get_network_info,omitempty"` } @@ -163,7 +162,6 @@ StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -229,9 +227,7 @@ func (o *StatusDefaultBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -242,7 +238,6 @@ func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -271,7 +266,6 @@ StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -309,7 +303,6 @@ StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -417,9 +410,7 @@ func (o *StatusOKBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *StatusOKBody) contextValidateAgentsInfo(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.AgentsInfo); i++ { - if o.AgentsInfo[i] != nil { if err := o.AgentsInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -430,14 +421,12 @@ func (o *StatusOKBody) contextValidateAgentsInfo(ctx context.Context, formats st return err } } - } return nil } func (o *StatusOKBody) contextValidateServerInfo(ctx context.Context, formats strfmt.Registry) error { - if o.ServerInfo != nil { if err := o.ServerInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -475,7 +464,6 @@ StatusOKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model StatusOKBodyAgentsInfoItems0 */ type StatusOKBodyAgentsInfoItems0 struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -689,7 +677,6 @@ StatusOKBodyServerInfo ServerInfo contains information about the PMM Server. swagger:model StatusOKBodyServerInfo */ type StatusOKBodyServerInfo struct { - // PMM Server URL in a form https://HOST:PORT/. URL string `json:"url,omitempty"` diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index 251061d02c..40b447dd6c 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -7,15 +7,17 @@ package agentpb import ( - inventorypb "github.com/percona/pmm/api/inventorypb" - backup "github.com/percona/pmm/api/managementpb/backup" + reflect "reflect" + sync "sync" + status "google.golang.org/genproto/googleapis/rpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" + backup "github.com/percona/pmm/api/managementpb/backup" ) const ( @@ -7326,107 +7328,110 @@ func file_agentpb_agent_proto_rawDescGZIP() []byte { return file_agentpb_agent_proto_rawDescData } -var file_agentpb_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_agentpb_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 88) -var file_agentpb_agent_proto_goTypes = []interface{}{ - (MysqlExplainOutputFormat)(0), // 0: agent.MysqlExplainOutputFormat - (*TextFiles)(nil), // 1: agent.TextFiles - (*Ping)(nil), // 2: agent.Ping - (*Pong)(nil), // 3: agent.Pong - (*QANCollectRequest)(nil), // 4: agent.QANCollectRequest - (*QANCollectResponse)(nil), // 5: agent.QANCollectResponse - (*StateChangedRequest)(nil), // 6: agent.StateChangedRequest - (*StateChangedResponse)(nil), // 7: agent.StateChangedResponse - (*SetStateRequest)(nil), // 8: agent.SetStateRequest - (*SetStateResponse)(nil), // 9: agent.SetStateResponse - (*QueryActionValue)(nil), // 10: agent.QueryActionValue - (*QueryActionSlice)(nil), // 11: agent.QueryActionSlice - (*QueryActionMap)(nil), // 12: agent.QueryActionMap - (*QueryActionBinary)(nil), // 13: agent.QueryActionBinary - (*QueryActionResult)(nil), // 14: agent.QueryActionResult - (*StartActionRequest)(nil), // 15: agent.StartActionRequest - (*StartActionResponse)(nil), // 16: agent.StartActionResponse - (*StopActionRequest)(nil), // 17: agent.StopActionRequest - (*StopActionResponse)(nil), // 18: agent.StopActionResponse - (*ActionResultRequest)(nil), // 19: agent.ActionResultRequest - (*ActionResultResponse)(nil), // 20: agent.ActionResultResponse - (*PBMSwitchPITRRequest)(nil), // 21: agent.PBMSwitchPITRRequest - (*PBMSwitchPITRResponse)(nil), // 22: agent.PBMSwitchPITRResponse - (*ParseServiceParamsSourceRequest)(nil), // 23: agent.ParseServiceParamsSourceRequest - (*ParseServiceParamsSourceResponse)(nil), // 24: agent.ParseServiceParamsSourceResponse - (*AgentLogsRequest)(nil), // 25: agent.AgentLogsRequest - (*AgentLogsResponse)(nil), // 26: agent.AgentLogsResponse - (*CheckConnectionRequest)(nil), // 27: agent.CheckConnectionRequest - (*CheckConnectionResponse)(nil), // 28: agent.CheckConnectionResponse - (*JobStatusRequest)(nil), // 29: agent.JobStatusRequest - (*JobStatusResponse)(nil), // 30: agent.JobStatusResponse - (*S3LocationConfig)(nil), // 31: agent.S3LocationConfig - (*PMMClientLocationConfig)(nil), // 32: agent.PMMClientLocationConfig - (*StartJobRequest)(nil), // 33: agent.StartJobRequest - (*StartJobResponse)(nil), // 34: agent.StartJobResponse - (*StopJobRequest)(nil), // 35: agent.StopJobRequest - (*StopJobResponse)(nil), // 36: agent.StopJobResponse - (*JobResult)(nil), // 37: agent.JobResult - (*JobProgress)(nil), // 38: agent.JobProgress - (*GetVersionsRequest)(nil), // 39: agent.GetVersionsRequest - (*GetVersionsResponse)(nil), // 40: agent.GetVersionsResponse - (*AgentMessage)(nil), // 41: agent.AgentMessage - (*ServerMessage)(nil), // 42: agent.ServerMessage - nil, // 43: agent.TextFiles.FilesEntry - (*SetStateRequest_AgentProcess)(nil), // 44: agent.SetStateRequest.AgentProcess - nil, // 45: agent.SetStateRequest.AgentProcessesEntry - (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.SetStateRequest.BuiltinAgent - nil, // 47: agent.SetStateRequest.BuiltinAgentsEntry - nil, // 48: agent.SetStateRequest.AgentProcess.TextFilesEntry - nil, // 49: agent.QueryActionMap.MapEntry - (*StartActionRequest_MySQLExplainParams)(nil), // 50: agent.StartActionRequest.MySQLExplainParams - (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 51: agent.StartActionRequest.MySQLShowCreateTableParams - (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 52: agent.StartActionRequest.MySQLShowTableStatusParams - (*StartActionRequest_MySQLShowIndexParams)(nil), // 53: agent.StartActionRequest.MySQLShowIndexParams - (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 54: agent.StartActionRequest.PostgreSQLShowCreateTableParams - (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 55: agent.StartActionRequest.PostgreSQLShowIndexParams - (*StartActionRequest_MongoDBExplainParams)(nil), // 56: agent.StartActionRequest.MongoDBExplainParams - (*StartActionRequest_PTSummaryParams)(nil), // 57: agent.StartActionRequest.PTSummaryParams - (*StartActionRequest_PTPgSummaryParams)(nil), // 58: agent.StartActionRequest.PTPgSummaryParams - (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 59: agent.StartActionRequest.PTMongoDBSummaryParams - (*StartActionRequest_PTMySQLSummaryParams)(nil), // 60: agent.StartActionRequest.PTMySQLSummaryParams - (*StartActionRequest_MySQLQueryShowParams)(nil), // 61: agent.StartActionRequest.MySQLQueryShowParams - (*StartActionRequest_MySQLQuerySelectParams)(nil), // 62: agent.StartActionRequest.MySQLQuerySelectParams - (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 63: agent.StartActionRequest.PostgreSQLQueryShowParams - (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 64: agent.StartActionRequest.PostgreSQLQuerySelectParams - (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 65: agent.StartActionRequest.MongoDBQueryGetParameterParams - (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 66: agent.StartActionRequest.MongoDBQueryBuildInfoParams - (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 67: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams - (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 68: agent.StartActionRequest.MongoDBQueryReplSetGetStatusParams - (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 69: agent.StartActionRequest.MongoDBQueryGetDiagnosticDataParams - (*CheckConnectionResponse_Stats)(nil), // 70: agent.CheckConnectionResponse.Stats - (*StartJobRequest_MySQLBackup)(nil), // 71: agent.StartJobRequest.MySQLBackup - (*StartJobRequest_MySQLRestoreBackup)(nil), // 72: agent.StartJobRequest.MySQLRestoreBackup - (*StartJobRequest_MongoDBBackup)(nil), // 73: agent.StartJobRequest.MongoDBBackup - (*StartJobRequest_MongoDBRestoreBackup)(nil), // 74: agent.StartJobRequest.MongoDBRestoreBackup - (*JobResult_Error)(nil), // 75: agent.JobResult.Error - (*JobResult_MongoDBBackup)(nil), // 76: agent.JobResult.MongoDBBackup - (*JobResult_MySQLBackup)(nil), // 77: agent.JobResult.MySQLBackup - (*JobResult_MySQLRestoreBackup)(nil), // 78: agent.JobResult.MySQLRestoreBackup - (*JobResult_MongoDBRestoreBackup)(nil), // 79: agent.JobResult.MongoDBRestoreBackup - (*JobProgress_MySQLBackup)(nil), // 80: agent.JobProgress.MySQLBackup - (*JobProgress_MySQLRestoreBackup)(nil), // 81: agent.JobProgress.MySQLRestoreBackup - (*JobProgress_Logs)(nil), // 82: agent.JobProgress.Logs - (*GetVersionsRequest_MySQLd)(nil), // 83: agent.GetVersionsRequest.MySQLd - (*GetVersionsRequest_Xtrabackup)(nil), // 84: agent.GetVersionsRequest.Xtrabackup - (*GetVersionsRequest_Xbcloud)(nil), // 85: agent.GetVersionsRequest.Xbcloud - (*GetVersionsRequest_Qpress)(nil), // 86: agent.GetVersionsRequest.Qpress - (*GetVersionsRequest_Software)(nil), // 87: agent.GetVersionsRequest.Software - (*GetVersionsResponse_Version)(nil), // 88: agent.GetVersionsResponse.Version - (*timestamppb.Timestamp)(nil), // 89: google.protobuf.Timestamp - (*MetricsBucket)(nil), // 90: agent.MetricsBucket - (inventorypb.AgentStatus)(0), // 91: inventory.AgentStatus - (*durationpb.Duration)(nil), // 92: google.protobuf.Duration - (inventorypb.ServiceType)(0), // 93: inventory.ServiceType - (*status.Status)(nil), // 94: google.rpc.Status - (inventorypb.AgentType)(0), // 95: inventory.AgentType - (backup.DataModel)(0), // 96: backup.v1beta1.DataModel -} +var ( + file_agentpb_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_agentpb_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 88) + file_agentpb_agent_proto_goTypes = []interface{}{ + (MysqlExplainOutputFormat)(0), // 0: agent.MysqlExplainOutputFormat + (*TextFiles)(nil), // 1: agent.TextFiles + (*Ping)(nil), // 2: agent.Ping + (*Pong)(nil), // 3: agent.Pong + (*QANCollectRequest)(nil), // 4: agent.QANCollectRequest + (*QANCollectResponse)(nil), // 5: agent.QANCollectResponse + (*StateChangedRequest)(nil), // 6: agent.StateChangedRequest + (*StateChangedResponse)(nil), // 7: agent.StateChangedResponse + (*SetStateRequest)(nil), // 8: agent.SetStateRequest + (*SetStateResponse)(nil), // 9: agent.SetStateResponse + (*QueryActionValue)(nil), // 10: agent.QueryActionValue + (*QueryActionSlice)(nil), // 11: agent.QueryActionSlice + (*QueryActionMap)(nil), // 12: agent.QueryActionMap + (*QueryActionBinary)(nil), // 13: agent.QueryActionBinary + (*QueryActionResult)(nil), // 14: agent.QueryActionResult + (*StartActionRequest)(nil), // 15: agent.StartActionRequest + (*StartActionResponse)(nil), // 16: agent.StartActionResponse + (*StopActionRequest)(nil), // 17: agent.StopActionRequest + (*StopActionResponse)(nil), // 18: agent.StopActionResponse + (*ActionResultRequest)(nil), // 19: agent.ActionResultRequest + (*ActionResultResponse)(nil), // 20: agent.ActionResultResponse + (*PBMSwitchPITRRequest)(nil), // 21: agent.PBMSwitchPITRRequest + (*PBMSwitchPITRResponse)(nil), // 22: agent.PBMSwitchPITRResponse + (*ParseServiceParamsSourceRequest)(nil), // 23: agent.ParseServiceParamsSourceRequest + (*ParseServiceParamsSourceResponse)(nil), // 24: agent.ParseServiceParamsSourceResponse + (*AgentLogsRequest)(nil), // 25: agent.AgentLogsRequest + (*AgentLogsResponse)(nil), // 26: agent.AgentLogsResponse + (*CheckConnectionRequest)(nil), // 27: agent.CheckConnectionRequest + (*CheckConnectionResponse)(nil), // 28: agent.CheckConnectionResponse + (*JobStatusRequest)(nil), // 29: agent.JobStatusRequest + (*JobStatusResponse)(nil), // 30: agent.JobStatusResponse + (*S3LocationConfig)(nil), // 31: agent.S3LocationConfig + (*PMMClientLocationConfig)(nil), // 32: agent.PMMClientLocationConfig + (*StartJobRequest)(nil), // 33: agent.StartJobRequest + (*StartJobResponse)(nil), // 34: agent.StartJobResponse + (*StopJobRequest)(nil), // 35: agent.StopJobRequest + (*StopJobResponse)(nil), // 36: agent.StopJobResponse + (*JobResult)(nil), // 37: agent.JobResult + (*JobProgress)(nil), // 38: agent.JobProgress + (*GetVersionsRequest)(nil), // 39: agent.GetVersionsRequest + (*GetVersionsResponse)(nil), // 40: agent.GetVersionsResponse + (*AgentMessage)(nil), // 41: agent.AgentMessage + (*ServerMessage)(nil), // 42: agent.ServerMessage + nil, // 43: agent.TextFiles.FilesEntry + (*SetStateRequest_AgentProcess)(nil), // 44: agent.SetStateRequest.AgentProcess + nil, // 45: agent.SetStateRequest.AgentProcessesEntry + (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.SetStateRequest.BuiltinAgent + nil, // 47: agent.SetStateRequest.BuiltinAgentsEntry + nil, // 48: agent.SetStateRequest.AgentProcess.TextFilesEntry + nil, // 49: agent.QueryActionMap.MapEntry + (*StartActionRequest_MySQLExplainParams)(nil), // 50: agent.StartActionRequest.MySQLExplainParams + (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 51: agent.StartActionRequest.MySQLShowCreateTableParams + (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 52: agent.StartActionRequest.MySQLShowTableStatusParams + (*StartActionRequest_MySQLShowIndexParams)(nil), // 53: agent.StartActionRequest.MySQLShowIndexParams + (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 54: agent.StartActionRequest.PostgreSQLShowCreateTableParams + (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 55: agent.StartActionRequest.PostgreSQLShowIndexParams + (*StartActionRequest_MongoDBExplainParams)(nil), // 56: agent.StartActionRequest.MongoDBExplainParams + (*StartActionRequest_PTSummaryParams)(nil), // 57: agent.StartActionRequest.PTSummaryParams + (*StartActionRequest_PTPgSummaryParams)(nil), // 58: agent.StartActionRequest.PTPgSummaryParams + (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 59: agent.StartActionRequest.PTMongoDBSummaryParams + (*StartActionRequest_PTMySQLSummaryParams)(nil), // 60: agent.StartActionRequest.PTMySQLSummaryParams + (*StartActionRequest_MySQLQueryShowParams)(nil), // 61: agent.StartActionRequest.MySQLQueryShowParams + (*StartActionRequest_MySQLQuerySelectParams)(nil), // 62: agent.StartActionRequest.MySQLQuerySelectParams + (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 63: agent.StartActionRequest.PostgreSQLQueryShowParams + (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 64: agent.StartActionRequest.PostgreSQLQuerySelectParams + (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 65: agent.StartActionRequest.MongoDBQueryGetParameterParams + (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 66: agent.StartActionRequest.MongoDBQueryBuildInfoParams + (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 67: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams + (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 68: agent.StartActionRequest.MongoDBQueryReplSetGetStatusParams + (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 69: agent.StartActionRequest.MongoDBQueryGetDiagnosticDataParams + (*CheckConnectionResponse_Stats)(nil), // 70: agent.CheckConnectionResponse.Stats + (*StartJobRequest_MySQLBackup)(nil), // 71: agent.StartJobRequest.MySQLBackup + (*StartJobRequest_MySQLRestoreBackup)(nil), // 72: agent.StartJobRequest.MySQLRestoreBackup + (*StartJobRequest_MongoDBBackup)(nil), // 73: agent.StartJobRequest.MongoDBBackup + (*StartJobRequest_MongoDBRestoreBackup)(nil), // 74: agent.StartJobRequest.MongoDBRestoreBackup + (*JobResult_Error)(nil), // 75: agent.JobResult.Error + (*JobResult_MongoDBBackup)(nil), // 76: agent.JobResult.MongoDBBackup + (*JobResult_MySQLBackup)(nil), // 77: agent.JobResult.MySQLBackup + (*JobResult_MySQLRestoreBackup)(nil), // 78: agent.JobResult.MySQLRestoreBackup + (*JobResult_MongoDBRestoreBackup)(nil), // 79: agent.JobResult.MongoDBRestoreBackup + (*JobProgress_MySQLBackup)(nil), // 80: agent.JobProgress.MySQLBackup + (*JobProgress_MySQLRestoreBackup)(nil), // 81: agent.JobProgress.MySQLRestoreBackup + (*JobProgress_Logs)(nil), // 82: agent.JobProgress.Logs + (*GetVersionsRequest_MySQLd)(nil), // 83: agent.GetVersionsRequest.MySQLd + (*GetVersionsRequest_Xtrabackup)(nil), // 84: agent.GetVersionsRequest.Xtrabackup + (*GetVersionsRequest_Xbcloud)(nil), // 85: agent.GetVersionsRequest.Xbcloud + (*GetVersionsRequest_Qpress)(nil), // 86: agent.GetVersionsRequest.Qpress + (*GetVersionsRequest_Software)(nil), // 87: agent.GetVersionsRequest.Software + (*GetVersionsResponse_Version)(nil), // 88: agent.GetVersionsResponse.Version + (*timestamppb.Timestamp)(nil), // 89: google.protobuf.Timestamp + (*MetricsBucket)(nil), // 90: agent.MetricsBucket + (inventorypb.AgentStatus)(0), // 91: inventory.AgentStatus + (*durationpb.Duration)(nil), // 92: google.protobuf.Duration + (inventorypb.ServiceType)(0), // 93: inventory.ServiceType + (*status.Status)(nil), // 94: google.rpc.Status + (inventorypb.AgentType)(0), // 95: inventory.AgentType + (backup.DataModel)(0), // 96: backup.v1beta1.DataModel + } +) + var file_agentpb_agent_proto_depIdxs = []int32{ 43, // 0: agent.TextFiles.files:type_name -> agent.TextFiles.FilesEntry 89, // 1: agent.Pong.current_time:type_name -> google.protobuf.Timestamp diff --git a/api/agentpb/agent.validator.pb.go b/api/agentpb/agent.validator.pb.go index 076e37662a..d4d4cbd93c 100644 --- a/api/agentpb/agent.validator.pb.go +++ b/api/agentpb/agent.validator.pb.go @@ -6,27 +6,33 @@ package agentpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/rpc/status" _ "google.golang.org/protobuf/types/known/durationpb" _ "google.golang.org/protobuf/types/known/timestamppb" - _ "google.golang.org/genproto/googleapis/rpc/status" + _ "github.com/percona/pmm/api/inventorypb" _ "github.com/percona/pmm/api/managementpb/backup" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *TextFiles) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *Ping) Validate() error { return nil } + func (this *Pong) Validate() error { if this.CurrentTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CurrentTime); err != nil { @@ -35,6 +41,7 @@ func (this *Pong) Validate() error { } return nil } + func (this *QANCollectRequest) Validate() error { for _, item := range this.MetricsBucket { if item != nil { @@ -45,24 +52,30 @@ func (this *QANCollectRequest) Validate() error { } return nil } + func (this *QANCollectResponse) Validate() error { return nil } + func (this *StateChangedRequest) Validate() error { return nil } + func (this *StateChangedResponse) Validate() error { return nil } + func (this *SetStateRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. return nil } + func (this *SetStateRequest_AgentProcess) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *SetStateRequest_BuiltinAgent) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -71,9 +84,11 @@ func (this *SetStateRequest_BuiltinAgent) Validate() error { } return nil } + func (this *SetStateResponse) Validate() error { return nil } + func (this *QueryActionValue) Validate() error { if oneOfNester, ok := this.GetKind().(*QueryActionValue_Timestamp); ok { if oneOfNester.Timestamp != nil { @@ -105,6 +120,7 @@ func (this *QueryActionValue) Validate() error { } return nil } + func (this *QueryActionSlice) Validate() error { for _, item := range this.Slice { if item != nil { @@ -115,13 +131,16 @@ func (this *QueryActionSlice) Validate() error { } return nil } + func (this *QueryActionMap) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *QueryActionBinary) Validate() error { return nil } + func (this *QueryActionResult) Validate() error { for _, item := range this.Rows { if item != nil { @@ -139,6 +158,7 @@ func (this *QueryActionResult) Validate() error { } return nil } + func (this *StartActionRequest) Validate() error { if oneOfNester, ok := this.GetParams().(*StartActionRequest_MysqlExplainParams); ok { if oneOfNester.MysqlExplainParams != nil { @@ -287,6 +307,7 @@ func (this *StartActionRequest) Validate() error { } return nil } + func (this *StartActionRequest_MySQLExplainParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -295,6 +316,7 @@ func (this *StartActionRequest_MySQLExplainParams) Validate() error { } return nil } + func (this *StartActionRequest_MySQLShowCreateTableParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -303,6 +325,7 @@ func (this *StartActionRequest_MySQLShowCreateTableParams) Validate() error { } return nil } + func (this *StartActionRequest_MySQLShowTableStatusParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -311,6 +334,7 @@ func (this *StartActionRequest_MySQLShowTableStatusParams) Validate() error { } return nil } + func (this *StartActionRequest_MySQLShowIndexParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -319,6 +343,7 @@ func (this *StartActionRequest_MySQLShowIndexParams) Validate() error { } return nil } + func (this *StartActionRequest_PostgreSQLShowCreateTableParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -327,6 +352,7 @@ func (this *StartActionRequest_PostgreSQLShowCreateTableParams) Validate() error } return nil } + func (this *StartActionRequest_PostgreSQLShowIndexParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -335,6 +361,7 @@ func (this *StartActionRequest_PostgreSQLShowIndexParams) Validate() error { } return nil } + func (this *StartActionRequest_MongoDBExplainParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -343,18 +370,23 @@ func (this *StartActionRequest_MongoDBExplainParams) Validate() error { } return nil } + func (this *StartActionRequest_PTSummaryParams) Validate() error { return nil } + func (this *StartActionRequest_PTPgSummaryParams) Validate() error { return nil } + func (this *StartActionRequest_PTMongoDBSummaryParams) Validate() error { return nil } + func (this *StartActionRequest_PTMySQLSummaryParams) Validate() error { return nil } + func (this *StartActionRequest_MySQLQueryShowParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -363,6 +395,7 @@ func (this *StartActionRequest_MySQLQueryShowParams) Validate() error { } return nil } + func (this *StartActionRequest_MySQLQuerySelectParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -371,6 +404,7 @@ func (this *StartActionRequest_MySQLQuerySelectParams) Validate() error { } return nil } + func (this *StartActionRequest_PostgreSQLQueryShowParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -379,6 +413,7 @@ func (this *StartActionRequest_PostgreSQLQueryShowParams) Validate() error { } return nil } + func (this *StartActionRequest_PostgreSQLQuerySelectParams) Validate() error { if this.TlsFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TlsFiles); err != nil { @@ -387,6 +422,7 @@ func (this *StartActionRequest_PostgreSQLQuerySelectParams) Validate() error { } return nil } + func (this *StartActionRequest_MongoDBQueryGetParameterParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -395,6 +431,7 @@ func (this *StartActionRequest_MongoDBQueryGetParameterParams) Validate() error } return nil } + func (this *StartActionRequest_MongoDBQueryBuildInfoParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -403,6 +440,7 @@ func (this *StartActionRequest_MongoDBQueryBuildInfoParams) Validate() error { } return nil } + func (this *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -411,6 +449,7 @@ func (this *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Validate() erro } return nil } + func (this *StartActionRequest_MongoDBQueryReplSetGetStatusParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -419,6 +458,7 @@ func (this *StartActionRequest_MongoDBQueryReplSetGetStatusParams) Validate() er } return nil } + func (this *StartActionRequest_MongoDBQueryGetDiagnosticDataParams) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -427,21 +467,27 @@ func (this *StartActionRequest_MongoDBQueryGetDiagnosticDataParams) Validate() e } return nil } + func (this *StartActionResponse) Validate() error { return nil } + func (this *StopActionRequest) Validate() error { return nil } + func (this *StopActionResponse) Validate() error { return nil } + func (this *ActionResultRequest) Validate() error { return nil } + func (this *ActionResultResponse) Validate() error { return nil } + func (this *PBMSwitchPITRRequest) Validate() error { if this.TextFiles != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.TextFiles); err != nil { @@ -450,21 +496,27 @@ func (this *PBMSwitchPITRRequest) Validate() error { } return nil } + func (this *PBMSwitchPITRResponse) Validate() error { return nil } + func (this *ParseServiceParamsSourceRequest) Validate() error { return nil } + func (this *ParseServiceParamsSourceResponse) Validate() error { return nil } + func (this *AgentLogsRequest) Validate() error { return nil } + func (this *AgentLogsResponse) Validate() error { return nil } + func (this *CheckConnectionRequest) Validate() error { if this.Timeout != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timeout); err != nil { @@ -478,6 +530,7 @@ func (this *CheckConnectionRequest) Validate() error { } return nil } + func (this *CheckConnectionResponse) Validate() error { if this.Stats != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Stats); err != nil { @@ -486,21 +539,27 @@ func (this *CheckConnectionResponse) Validate() error { } return nil } + func (this *CheckConnectionResponse_Stats) Validate() error { return nil } + func (this *JobStatusRequest) Validate() error { return nil } + func (this *JobStatusResponse) Validate() error { return nil } + func (this *S3LocationConfig) Validate() error { return nil } + func (this *PMMClientLocationConfig) Validate() error { return nil } + func (this *StartJobRequest) Validate() error { if this.Timeout != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timeout); err != nil { @@ -537,6 +596,7 @@ func (this *StartJobRequest) Validate() error { } return nil } + func (this *StartJobRequest_MySQLBackup) Validate() error { if oneOfNester, ok := this.GetLocationConfig().(*StartJobRequest_MySQLBackup_S3Config); ok { if oneOfNester.S3Config != nil { @@ -547,6 +607,7 @@ func (this *StartJobRequest_MySQLBackup) Validate() error { } return nil } + func (this *StartJobRequest_MySQLRestoreBackup) Validate() error { if oneOfNester, ok := this.GetLocationConfig().(*StartJobRequest_MySQLRestoreBackup_S3Config); ok { if oneOfNester.S3Config != nil { @@ -557,6 +618,7 @@ func (this *StartJobRequest_MySQLRestoreBackup) Validate() error { } return nil } + func (this *StartJobRequest_MongoDBBackup) Validate() error { if oneOfNester, ok := this.GetLocationConfig().(*StartJobRequest_MongoDBBackup_S3Config); ok { if oneOfNester.S3Config != nil { @@ -574,6 +636,7 @@ func (this *StartJobRequest_MongoDBBackup) Validate() error { } return nil } + func (this *StartJobRequest_MongoDBRestoreBackup) Validate() error { if this.PitrTimestamp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PitrTimestamp); err != nil { @@ -596,15 +659,19 @@ func (this *StartJobRequest_MongoDBRestoreBackup) Validate() error { } return nil } + func (this *StartJobResponse) Validate() error { return nil } + func (this *StopJobRequest) Validate() error { return nil } + func (this *StopJobResponse) Validate() error { return nil } + func (this *JobResult) Validate() error { if this.Timestamp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamp); err != nil { @@ -648,21 +715,27 @@ func (this *JobResult) Validate() error { } return nil } + func (this *JobResult_Error) Validate() error { return nil } + func (this *JobResult_MongoDBBackup) Validate() error { return nil } + func (this *JobResult_MySQLBackup) Validate() error { return nil } + func (this *JobResult_MySQLRestoreBackup) Validate() error { return nil } + func (this *JobResult_MongoDBRestoreBackup) Validate() error { return nil } + func (this *JobProgress) Validate() error { if this.Timestamp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamp); err != nil { @@ -692,15 +765,19 @@ func (this *JobProgress) Validate() error { } return nil } + func (this *JobProgress_MySQLBackup) Validate() error { return nil } + func (this *JobProgress_MySQLRestoreBackup) Validate() error { return nil } + func (this *JobProgress_Logs) Validate() error { return nil } + func (this *GetVersionsRequest) Validate() error { for _, item := range this.Softwares { if item != nil { @@ -711,18 +788,23 @@ func (this *GetVersionsRequest) Validate() error { } return nil } + func (this *GetVersionsRequest_MySQLd) Validate() error { return nil } + func (this *GetVersionsRequest_Xtrabackup) Validate() error { return nil } + func (this *GetVersionsRequest_Xbcloud) Validate() error { return nil } + func (this *GetVersionsRequest_Qpress) Validate() error { return nil } + func (this *GetVersionsRequest_Software) Validate() error { if oneOfNester, ok := this.GetSoftware().(*GetVersionsRequest_Software_Mysqld); ok { if oneOfNester.Mysqld != nil { @@ -754,6 +836,7 @@ func (this *GetVersionsRequest_Software) Validate() error { } return nil } + func (this *GetVersionsResponse) Validate() error { for _, item := range this.Versions { if item != nil { @@ -764,9 +847,11 @@ func (this *GetVersionsResponse) Validate() error { } return nil } + func (this *GetVersionsResponse_Version) Validate() error { return nil } + func (this *AgentMessage) Validate() error { if this.Status != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Status); err != nil { @@ -901,6 +986,7 @@ func (this *AgentMessage) Validate() error { } return nil } + func (this *ServerMessage) Validate() error { if this.Status != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Status); err != nil { diff --git a/api/agentpb/agent_grpc.pb.go b/api/agentpb/agent_grpc.pb.go index 881f5482f7..688c0c0df5 100644 --- a/api/agentpb/agent_grpc.pb.go +++ b/api/agentpb/agent_grpc.pb.go @@ -8,6 +8,7 @@ package agentpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -75,8 +76,7 @@ type AgentServer interface { } // UnimplementedAgentServer must be embedded to have forward compatible implementations. -type UnimplementedAgentServer struct { -} +type UnimplementedAgentServer struct{} func (UnimplementedAgentServer) Connect(Agent_ConnectServer) error { return status.Errorf(codes.Unimplemented, "method Connect not implemented") diff --git a/api/agentpb/collector.pb.go b/api/agentpb/collector.pb.go index 6d31a31830..a83128ef5a 100644 --- a/api/agentpb/collector.pb.go +++ b/api/agentpb/collector.pb.go @@ -7,11 +7,13 @@ package agentpb import ( - inventorypb "github.com/percona/pmm/api/inventorypb" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -2790,20 +2792,23 @@ func file_agentpb_collector_proto_rawDescGZIP() []byte { return file_agentpb_collector_proto_rawDescData } -var file_agentpb_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_agentpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_agentpb_collector_proto_goTypes = []interface{}{ - (ExampleFormat)(0), // 0: agent.ExampleFormat - (ExampleType)(0), // 1: agent.ExampleType - (*MetricsBucket)(nil), // 2: agent.MetricsBucket - (*HistogramItem)(nil), // 3: agent.HistogramItem - (*MetricsBucket_Common)(nil), // 4: agent.MetricsBucket.Common - (*MetricsBucket_MySQL)(nil), // 5: agent.MetricsBucket.MySQL - (*MetricsBucket_MongoDB)(nil), // 6: agent.MetricsBucket.MongoDB - (*MetricsBucket_PostgreSQL)(nil), // 7: agent.MetricsBucket.PostgreSQL - nil, // 8: agent.MetricsBucket.Common.ErrorsEntry - (inventorypb.AgentType)(0), // 9: inventory.AgentType -} +var ( + file_agentpb_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_agentpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 7) + file_agentpb_collector_proto_goTypes = []interface{}{ + (ExampleFormat)(0), // 0: agent.ExampleFormat + (ExampleType)(0), // 1: agent.ExampleType + (*MetricsBucket)(nil), // 2: agent.MetricsBucket + (*HistogramItem)(nil), // 3: agent.HistogramItem + (*MetricsBucket_Common)(nil), // 4: agent.MetricsBucket.Common + (*MetricsBucket_MySQL)(nil), // 5: agent.MetricsBucket.MySQL + (*MetricsBucket_MongoDB)(nil), // 6: agent.MetricsBucket.MongoDB + (*MetricsBucket_PostgreSQL)(nil), // 7: agent.MetricsBucket.PostgreSQL + nil, // 8: agent.MetricsBucket.Common.ErrorsEntry + (inventorypb.AgentType)(0), // 9: inventory.AgentType + } +) + var file_agentpb_collector_proto_depIdxs = []int32{ 4, // 0: agent.MetricsBucket.common:type_name -> agent.MetricsBucket.Common 5, // 1: agent.MetricsBucket.mysql:type_name -> agent.MetricsBucket.MySQL diff --git a/api/agentpb/collector.validator.pb.go b/api/agentpb/collector.validator.pb.go index fb0c9f4b9e..a2636b9f1c 100644 --- a/api/agentpb/collector.validator.pb.go +++ b/api/agentpb/collector.validator.pb.go @@ -6,15 +6,19 @@ package agentpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "github.com/percona/pmm/api/inventorypb" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + + _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *MetricsBucket) Validate() error { if this.Common != nil { @@ -39,16 +43,20 @@ func (this *MetricsBucket) Validate() error { } return nil } + func (this *MetricsBucket_Common) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *MetricsBucket_MySQL) Validate() error { return nil } + func (this *MetricsBucket_MongoDB) Validate() error { return nil } + func (this *MetricsBucket_PostgreSQL) Validate() error { for _, item := range this.HistogramItems { if item != nil { @@ -59,6 +67,7 @@ func (this *MetricsBucket_PostgreSQL) Validate() error { } return nil } + func (this *HistogramItem) Validate() error { return nil } diff --git a/api/inventorypb/agent_status.pb.go b/api/inventorypb/agent_status.pb.go index 5419fd5ecd..194d419e6c 100644 --- a/api/inventorypb/agent_status.pb.go +++ b/api/inventorypb/agent_status.pb.go @@ -7,10 +7,11 @@ package inventorypb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -125,10 +126,13 @@ func file_inventorypb_agent_status_proto_rawDescGZIP() []byte { return file_inventorypb_agent_status_proto_rawDescData } -var file_inventorypb_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventorypb_agent_status_proto_goTypes = []interface{}{ - (AgentStatus)(0), // 0: inventory.AgentStatus -} +var ( + file_inventorypb_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventorypb_agent_status_proto_goTypes = []interface{}{ + (AgentStatus)(0), // 0: inventory.AgentStatus + } +) + var file_inventorypb_agent_status_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/inventorypb/agent_status.validator.pb.go b/api/inventorypb/agent_status.validator.pb.go index 150f1b6f25..42b48185ac 100644 --- a/api/inventorypb/agent_status.validator.pb.go +++ b/api/inventorypb/agent_status.validator.pb.go @@ -6,10 +6,13 @@ package inventorypb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/inventorypb/agents.pb.go b/api/inventorypb/agents.pb.go index a7f0925d28..a068c3e35b 100644 --- a/api/inventorypb/agents.pb.go +++ b/api/inventorypb/agents.pb.go @@ -7,13 +7,14 @@ package inventorypb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -9498,120 +9499,123 @@ func file_inventorypb_agents_proto_rawDescGZIP() []byte { return file_inventorypb_agents_proto_rawDescData } -var file_inventorypb_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventorypb_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) -var file_inventorypb_agents_proto_goTypes = []interface{}{ - (AgentType)(0), // 0: inventory.AgentType - (*PMMAgent)(nil), // 1: inventory.PMMAgent - (*VMAgent)(nil), // 2: inventory.VMAgent - (*NodeExporter)(nil), // 3: inventory.NodeExporter - (*MySQLdExporter)(nil), // 4: inventory.MySQLdExporter - (*MongoDBExporter)(nil), // 5: inventory.MongoDBExporter - (*PostgresExporter)(nil), // 6: inventory.PostgresExporter - (*ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter - (*QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent - (*QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent - (*QANMongoDBProfilerAgent)(nil), // 10: inventory.QANMongoDBProfilerAgent - (*QANPostgreSQLPgStatementsAgent)(nil), // 11: inventory.QANPostgreSQLPgStatementsAgent - (*QANPostgreSQLPgStatMonitorAgent)(nil), // 12: inventory.QANPostgreSQLPgStatMonitorAgent - (*RDSExporter)(nil), // 13: inventory.RDSExporter - (*ExternalExporter)(nil), // 14: inventory.ExternalExporter - (*AzureDatabaseExporter)(nil), // 15: inventory.AzureDatabaseExporter - (*ChangeCommonAgentParams)(nil), // 16: inventory.ChangeCommonAgentParams - (*ListAgentsRequest)(nil), // 17: inventory.ListAgentsRequest - (*ListAgentsResponse)(nil), // 18: inventory.ListAgentsResponse - (*GetAgentRequest)(nil), // 19: inventory.GetAgentRequest - (*GetAgentResponse)(nil), // 20: inventory.GetAgentResponse - (*GetAgentLogsRequest)(nil), // 21: inventory.GetAgentLogsRequest - (*GetAgentLogsResponse)(nil), // 22: inventory.GetAgentLogsResponse - (*AddPMMAgentRequest)(nil), // 23: inventory.AddPMMAgentRequest - (*AddPMMAgentResponse)(nil), // 24: inventory.AddPMMAgentResponse - (*AddNodeExporterRequest)(nil), // 25: inventory.AddNodeExporterRequest - (*AddNodeExporterResponse)(nil), // 26: inventory.AddNodeExporterResponse - (*ChangeNodeExporterRequest)(nil), // 27: inventory.ChangeNodeExporterRequest - (*ChangeNodeExporterResponse)(nil), // 28: inventory.ChangeNodeExporterResponse - (*AddMySQLdExporterRequest)(nil), // 29: inventory.AddMySQLdExporterRequest - (*AddMySQLdExporterResponse)(nil), // 30: inventory.AddMySQLdExporterResponse - (*ChangeMySQLdExporterRequest)(nil), // 31: inventory.ChangeMySQLdExporterRequest - (*ChangeMySQLdExporterResponse)(nil), // 32: inventory.ChangeMySQLdExporterResponse - (*AddMongoDBExporterRequest)(nil), // 33: inventory.AddMongoDBExporterRequest - (*AddMongoDBExporterResponse)(nil), // 34: inventory.AddMongoDBExporterResponse - (*ChangeMongoDBExporterRequest)(nil), // 35: inventory.ChangeMongoDBExporterRequest - (*ChangeMongoDBExporterResponse)(nil), // 36: inventory.ChangeMongoDBExporterResponse - (*AddPostgresExporterRequest)(nil), // 37: inventory.AddPostgresExporterRequest - (*AddPostgresExporterResponse)(nil), // 38: inventory.AddPostgresExporterResponse - (*ChangePostgresExporterRequest)(nil), // 39: inventory.ChangePostgresExporterRequest - (*ChangePostgresExporterResponse)(nil), // 40: inventory.ChangePostgresExporterResponse - (*AddProxySQLExporterRequest)(nil), // 41: inventory.AddProxySQLExporterRequest - (*AddProxySQLExporterResponse)(nil), // 42: inventory.AddProxySQLExporterResponse - (*ChangeProxySQLExporterRequest)(nil), // 43: inventory.ChangeProxySQLExporterRequest - (*ChangeProxySQLExporterResponse)(nil), // 44: inventory.ChangeProxySQLExporterResponse - (*AddQANMySQLPerfSchemaAgentRequest)(nil), // 45: inventory.AddQANMySQLPerfSchemaAgentRequest - (*AddQANMySQLPerfSchemaAgentResponse)(nil), // 46: inventory.AddQANMySQLPerfSchemaAgentResponse - (*ChangeQANMySQLPerfSchemaAgentRequest)(nil), // 47: inventory.ChangeQANMySQLPerfSchemaAgentRequest - (*ChangeQANMySQLPerfSchemaAgentResponse)(nil), // 48: inventory.ChangeQANMySQLPerfSchemaAgentResponse - (*AddQANMySQLSlowlogAgentRequest)(nil), // 49: inventory.AddQANMySQLSlowlogAgentRequest - (*AddQANMySQLSlowlogAgentResponse)(nil), // 50: inventory.AddQANMySQLSlowlogAgentResponse - (*ChangeQANMySQLSlowlogAgentRequest)(nil), // 51: inventory.ChangeQANMySQLSlowlogAgentRequest - (*ChangeQANMySQLSlowlogAgentResponse)(nil), // 52: inventory.ChangeQANMySQLSlowlogAgentResponse - (*AddQANMongoDBProfilerAgentRequest)(nil), // 53: inventory.AddQANMongoDBProfilerAgentRequest - (*AddQANMongoDBProfilerAgentResponse)(nil), // 54: inventory.AddQANMongoDBProfilerAgentResponse - (*ChangeQANMongoDBProfilerAgentRequest)(nil), // 55: inventory.ChangeQANMongoDBProfilerAgentRequest - (*ChangeQANMongoDBProfilerAgentResponse)(nil), // 56: inventory.ChangeQANMongoDBProfilerAgentResponse - (*AddQANPostgreSQLPgStatementsAgentRequest)(nil), // 57: inventory.AddQANPostgreSQLPgStatementsAgentRequest - (*AddQANPostgreSQLPgStatementsAgentResponse)(nil), // 58: inventory.AddQANPostgreSQLPgStatementsAgentResponse - (*ChangeQANPostgreSQLPgStatementsAgentRequest)(nil), // 59: inventory.ChangeQANPostgreSQLPgStatementsAgentRequest - (*ChangeQANPostgreSQLPgStatementsAgentResponse)(nil), // 60: inventory.ChangeQANPostgreSQLPgStatementsAgentResponse - (*AddQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 61: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest - (*AddQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 62: inventory.AddQANPostgreSQLPgStatMonitorAgentResponse - (*ChangeQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 63: inventory.ChangeQANPostgreSQLPgStatMonitorAgentRequest - (*ChangeQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 64: inventory.ChangeQANPostgreSQLPgStatMonitorAgentResponse - (*AddRDSExporterRequest)(nil), // 65: inventory.AddRDSExporterRequest - (*AddRDSExporterResponse)(nil), // 66: inventory.AddRDSExporterResponse - (*ChangeRDSExporterRequest)(nil), // 67: inventory.ChangeRDSExporterRequest - (*ChangeRDSExporterResponse)(nil), // 68: inventory.ChangeRDSExporterResponse - (*AddExternalExporterRequest)(nil), // 69: inventory.AddExternalExporterRequest - (*AddExternalExporterResponse)(nil), // 70: inventory.AddExternalExporterResponse - (*ChangeExternalExporterRequest)(nil), // 71: inventory.ChangeExternalExporterRequest - (*ChangeExternalExporterResponse)(nil), // 72: inventory.ChangeExternalExporterResponse - (*AddAzureDatabaseExporterRequest)(nil), // 73: inventory.AddAzureDatabaseExporterRequest - (*AddAzureDatabaseExporterResponse)(nil), // 74: inventory.AddAzureDatabaseExporterResponse - (*ChangeAzureDatabaseExporterRequest)(nil), // 75: inventory.ChangeAzureDatabaseExporterRequest - (*ChangeAzureDatabaseExporterResponse)(nil), // 76: inventory.ChangeAzureDatabaseExporterResponse - (*RemoveAgentRequest)(nil), // 77: inventory.RemoveAgentRequest - (*RemoveAgentResponse)(nil), // 78: inventory.RemoveAgentResponse - nil, // 79: inventory.PMMAgent.CustomLabelsEntry - nil, // 80: inventory.NodeExporter.CustomLabelsEntry - nil, // 81: inventory.MySQLdExporter.CustomLabelsEntry - nil, // 82: inventory.MongoDBExporter.CustomLabelsEntry - nil, // 83: inventory.PostgresExporter.CustomLabelsEntry - nil, // 84: inventory.ProxySQLExporter.CustomLabelsEntry - nil, // 85: inventory.QANMySQLPerfSchemaAgent.CustomLabelsEntry - nil, // 86: inventory.QANMySQLSlowlogAgent.CustomLabelsEntry - nil, // 87: inventory.QANMongoDBProfilerAgent.CustomLabelsEntry - nil, // 88: inventory.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry - nil, // 89: inventory.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry - nil, // 90: inventory.RDSExporter.CustomLabelsEntry - nil, // 91: inventory.ExternalExporter.CustomLabelsEntry - nil, // 92: inventory.AzureDatabaseExporter.CustomLabelsEntry - nil, // 93: inventory.ChangeCommonAgentParams.CustomLabelsEntry - nil, // 94: inventory.AddPMMAgentRequest.CustomLabelsEntry - nil, // 95: inventory.AddNodeExporterRequest.CustomLabelsEntry - nil, // 96: inventory.AddMySQLdExporterRequest.CustomLabelsEntry - nil, // 97: inventory.AddMongoDBExporterRequest.CustomLabelsEntry - nil, // 98: inventory.AddPostgresExporterRequest.CustomLabelsEntry - nil, // 99: inventory.AddProxySQLExporterRequest.CustomLabelsEntry - nil, // 100: inventory.AddQANMySQLPerfSchemaAgentRequest.CustomLabelsEntry - nil, // 101: inventory.AddQANMySQLSlowlogAgentRequest.CustomLabelsEntry - nil, // 102: inventory.AddQANMongoDBProfilerAgentRequest.CustomLabelsEntry - nil, // 103: inventory.AddQANPostgreSQLPgStatementsAgentRequest.CustomLabelsEntry - nil, // 104: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest.CustomLabelsEntry - nil, // 105: inventory.AddRDSExporterRequest.CustomLabelsEntry - nil, // 106: inventory.AddExternalExporterRequest.CustomLabelsEntry - nil, // 107: inventory.AddAzureDatabaseExporterRequest.CustomLabelsEntry - (AgentStatus)(0), // 108: inventory.AgentStatus - (LogLevel)(0), // 109: inventory.LogLevel -} +var ( + file_inventorypb_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventorypb_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) + file_inventorypb_agents_proto_goTypes = []interface{}{ + (AgentType)(0), // 0: inventory.AgentType + (*PMMAgent)(nil), // 1: inventory.PMMAgent + (*VMAgent)(nil), // 2: inventory.VMAgent + (*NodeExporter)(nil), // 3: inventory.NodeExporter + (*MySQLdExporter)(nil), // 4: inventory.MySQLdExporter + (*MongoDBExporter)(nil), // 5: inventory.MongoDBExporter + (*PostgresExporter)(nil), // 6: inventory.PostgresExporter + (*ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter + (*QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent + (*QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent + (*QANMongoDBProfilerAgent)(nil), // 10: inventory.QANMongoDBProfilerAgent + (*QANPostgreSQLPgStatementsAgent)(nil), // 11: inventory.QANPostgreSQLPgStatementsAgent + (*QANPostgreSQLPgStatMonitorAgent)(nil), // 12: inventory.QANPostgreSQLPgStatMonitorAgent + (*RDSExporter)(nil), // 13: inventory.RDSExporter + (*ExternalExporter)(nil), // 14: inventory.ExternalExporter + (*AzureDatabaseExporter)(nil), // 15: inventory.AzureDatabaseExporter + (*ChangeCommonAgentParams)(nil), // 16: inventory.ChangeCommonAgentParams + (*ListAgentsRequest)(nil), // 17: inventory.ListAgentsRequest + (*ListAgentsResponse)(nil), // 18: inventory.ListAgentsResponse + (*GetAgentRequest)(nil), // 19: inventory.GetAgentRequest + (*GetAgentResponse)(nil), // 20: inventory.GetAgentResponse + (*GetAgentLogsRequest)(nil), // 21: inventory.GetAgentLogsRequest + (*GetAgentLogsResponse)(nil), // 22: inventory.GetAgentLogsResponse + (*AddPMMAgentRequest)(nil), // 23: inventory.AddPMMAgentRequest + (*AddPMMAgentResponse)(nil), // 24: inventory.AddPMMAgentResponse + (*AddNodeExporterRequest)(nil), // 25: inventory.AddNodeExporterRequest + (*AddNodeExporterResponse)(nil), // 26: inventory.AddNodeExporterResponse + (*ChangeNodeExporterRequest)(nil), // 27: inventory.ChangeNodeExporterRequest + (*ChangeNodeExporterResponse)(nil), // 28: inventory.ChangeNodeExporterResponse + (*AddMySQLdExporterRequest)(nil), // 29: inventory.AddMySQLdExporterRequest + (*AddMySQLdExporterResponse)(nil), // 30: inventory.AddMySQLdExporterResponse + (*ChangeMySQLdExporterRequest)(nil), // 31: inventory.ChangeMySQLdExporterRequest + (*ChangeMySQLdExporterResponse)(nil), // 32: inventory.ChangeMySQLdExporterResponse + (*AddMongoDBExporterRequest)(nil), // 33: inventory.AddMongoDBExporterRequest + (*AddMongoDBExporterResponse)(nil), // 34: inventory.AddMongoDBExporterResponse + (*ChangeMongoDBExporterRequest)(nil), // 35: inventory.ChangeMongoDBExporterRequest + (*ChangeMongoDBExporterResponse)(nil), // 36: inventory.ChangeMongoDBExporterResponse + (*AddPostgresExporterRequest)(nil), // 37: inventory.AddPostgresExporterRequest + (*AddPostgresExporterResponse)(nil), // 38: inventory.AddPostgresExporterResponse + (*ChangePostgresExporterRequest)(nil), // 39: inventory.ChangePostgresExporterRequest + (*ChangePostgresExporterResponse)(nil), // 40: inventory.ChangePostgresExporterResponse + (*AddProxySQLExporterRequest)(nil), // 41: inventory.AddProxySQLExporterRequest + (*AddProxySQLExporterResponse)(nil), // 42: inventory.AddProxySQLExporterResponse + (*ChangeProxySQLExporterRequest)(nil), // 43: inventory.ChangeProxySQLExporterRequest + (*ChangeProxySQLExporterResponse)(nil), // 44: inventory.ChangeProxySQLExporterResponse + (*AddQANMySQLPerfSchemaAgentRequest)(nil), // 45: inventory.AddQANMySQLPerfSchemaAgentRequest + (*AddQANMySQLPerfSchemaAgentResponse)(nil), // 46: inventory.AddQANMySQLPerfSchemaAgentResponse + (*ChangeQANMySQLPerfSchemaAgentRequest)(nil), // 47: inventory.ChangeQANMySQLPerfSchemaAgentRequest + (*ChangeQANMySQLPerfSchemaAgentResponse)(nil), // 48: inventory.ChangeQANMySQLPerfSchemaAgentResponse + (*AddQANMySQLSlowlogAgentRequest)(nil), // 49: inventory.AddQANMySQLSlowlogAgentRequest + (*AddQANMySQLSlowlogAgentResponse)(nil), // 50: inventory.AddQANMySQLSlowlogAgentResponse + (*ChangeQANMySQLSlowlogAgentRequest)(nil), // 51: inventory.ChangeQANMySQLSlowlogAgentRequest + (*ChangeQANMySQLSlowlogAgentResponse)(nil), // 52: inventory.ChangeQANMySQLSlowlogAgentResponse + (*AddQANMongoDBProfilerAgentRequest)(nil), // 53: inventory.AddQANMongoDBProfilerAgentRequest + (*AddQANMongoDBProfilerAgentResponse)(nil), // 54: inventory.AddQANMongoDBProfilerAgentResponse + (*ChangeQANMongoDBProfilerAgentRequest)(nil), // 55: inventory.ChangeQANMongoDBProfilerAgentRequest + (*ChangeQANMongoDBProfilerAgentResponse)(nil), // 56: inventory.ChangeQANMongoDBProfilerAgentResponse + (*AddQANPostgreSQLPgStatementsAgentRequest)(nil), // 57: inventory.AddQANPostgreSQLPgStatementsAgentRequest + (*AddQANPostgreSQLPgStatementsAgentResponse)(nil), // 58: inventory.AddQANPostgreSQLPgStatementsAgentResponse + (*ChangeQANPostgreSQLPgStatementsAgentRequest)(nil), // 59: inventory.ChangeQANPostgreSQLPgStatementsAgentRequest + (*ChangeQANPostgreSQLPgStatementsAgentResponse)(nil), // 60: inventory.ChangeQANPostgreSQLPgStatementsAgentResponse + (*AddQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 61: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest + (*AddQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 62: inventory.AddQANPostgreSQLPgStatMonitorAgentResponse + (*ChangeQANPostgreSQLPgStatMonitorAgentRequest)(nil), // 63: inventory.ChangeQANPostgreSQLPgStatMonitorAgentRequest + (*ChangeQANPostgreSQLPgStatMonitorAgentResponse)(nil), // 64: inventory.ChangeQANPostgreSQLPgStatMonitorAgentResponse + (*AddRDSExporterRequest)(nil), // 65: inventory.AddRDSExporterRequest + (*AddRDSExporterResponse)(nil), // 66: inventory.AddRDSExporterResponse + (*ChangeRDSExporterRequest)(nil), // 67: inventory.ChangeRDSExporterRequest + (*ChangeRDSExporterResponse)(nil), // 68: inventory.ChangeRDSExporterResponse + (*AddExternalExporterRequest)(nil), // 69: inventory.AddExternalExporterRequest + (*AddExternalExporterResponse)(nil), // 70: inventory.AddExternalExporterResponse + (*ChangeExternalExporterRequest)(nil), // 71: inventory.ChangeExternalExporterRequest + (*ChangeExternalExporterResponse)(nil), // 72: inventory.ChangeExternalExporterResponse + (*AddAzureDatabaseExporterRequest)(nil), // 73: inventory.AddAzureDatabaseExporterRequest + (*AddAzureDatabaseExporterResponse)(nil), // 74: inventory.AddAzureDatabaseExporterResponse + (*ChangeAzureDatabaseExporterRequest)(nil), // 75: inventory.ChangeAzureDatabaseExporterRequest + (*ChangeAzureDatabaseExporterResponse)(nil), // 76: inventory.ChangeAzureDatabaseExporterResponse + (*RemoveAgentRequest)(nil), // 77: inventory.RemoveAgentRequest + (*RemoveAgentResponse)(nil), // 78: inventory.RemoveAgentResponse + nil, // 79: inventory.PMMAgent.CustomLabelsEntry + nil, // 80: inventory.NodeExporter.CustomLabelsEntry + nil, // 81: inventory.MySQLdExporter.CustomLabelsEntry + nil, // 82: inventory.MongoDBExporter.CustomLabelsEntry + nil, // 83: inventory.PostgresExporter.CustomLabelsEntry + nil, // 84: inventory.ProxySQLExporter.CustomLabelsEntry + nil, // 85: inventory.QANMySQLPerfSchemaAgent.CustomLabelsEntry + nil, // 86: inventory.QANMySQLSlowlogAgent.CustomLabelsEntry + nil, // 87: inventory.QANMongoDBProfilerAgent.CustomLabelsEntry + nil, // 88: inventory.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry + nil, // 89: inventory.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry + nil, // 90: inventory.RDSExporter.CustomLabelsEntry + nil, // 91: inventory.ExternalExporter.CustomLabelsEntry + nil, // 92: inventory.AzureDatabaseExporter.CustomLabelsEntry + nil, // 93: inventory.ChangeCommonAgentParams.CustomLabelsEntry + nil, // 94: inventory.AddPMMAgentRequest.CustomLabelsEntry + nil, // 95: inventory.AddNodeExporterRequest.CustomLabelsEntry + nil, // 96: inventory.AddMySQLdExporterRequest.CustomLabelsEntry + nil, // 97: inventory.AddMongoDBExporterRequest.CustomLabelsEntry + nil, // 98: inventory.AddPostgresExporterRequest.CustomLabelsEntry + nil, // 99: inventory.AddProxySQLExporterRequest.CustomLabelsEntry + nil, // 100: inventory.AddQANMySQLPerfSchemaAgentRequest.CustomLabelsEntry + nil, // 101: inventory.AddQANMySQLSlowlogAgentRequest.CustomLabelsEntry + nil, // 102: inventory.AddQANMongoDBProfilerAgentRequest.CustomLabelsEntry + nil, // 103: inventory.AddQANPostgreSQLPgStatementsAgentRequest.CustomLabelsEntry + nil, // 104: inventory.AddQANPostgreSQLPgStatMonitorAgentRequest.CustomLabelsEntry + nil, // 105: inventory.AddRDSExporterRequest.CustomLabelsEntry + nil, // 106: inventory.AddExternalExporterRequest.CustomLabelsEntry + nil, // 107: inventory.AddAzureDatabaseExporterRequest.CustomLabelsEntry + (AgentStatus)(0), // 108: inventory.AgentStatus + (LogLevel)(0), // 109: inventory.LogLevel + } +) + var file_inventorypb_agents_proto_depIdxs = []int32{ 79, // 0: inventory.PMMAgent.custom_labels:type_name -> inventory.PMMAgent.CustomLabelsEntry 108, // 1: inventory.VMAgent.status:type_name -> inventory.AgentStatus diff --git a/api/inventorypb/agents.pb.gw.go b/api/inventorypb/agents.pb.gw.go index 556acffa7e..4c935e5831 100644 --- a/api/inventorypb/agents.pb.gw.go +++ b/api/inventorypb/agents.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListAgentsRequest @@ -45,7 +47,6 @@ func request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.ListAgents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Agents_ListAgents_0(ctx context.Context, marshaler runtime.Ma msg, err := server.ListAgents(ctx, &protoReq) return msg, metadata, err - } func request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Agents_GetAgent_0(ctx context.Context, marshaler runtime.Mars msg, err := server.GetAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.GetAgentLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Agents_GetAgentLogs_0(ctx context.Context, marshaler runtime. msg, err := server.GetAgentLogs(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.AddPMMAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Agents_AddPMMAgent_0(ctx context.Context, marshaler runtime.M msg, err := server.AddPMMAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AddNodeExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Agents_AddNodeExporter_0(ctx context.Context, marshaler runti msg, err := server.AddNodeExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler runtime. msg, err := client.ChangeNodeExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Agents_ChangeNodeExporter_0(ctx context.Context, marshaler ru msg, err := server.ChangeNodeExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.M msg, err := client.AddMySQLdExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_Agents_AddMySQLdExporter_0(ctx context.Context, marshaler run msg, err := server.AddMySQLdExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -283,7 +271,6 @@ func request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtim msg, err := client.ChangeMySQLdExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -300,7 +287,6 @@ func local_request_Agents_ChangeMySQLdExporter_0(ctx context.Context, marshaler msg, err := server.ChangeMySQLdExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -317,7 +303,6 @@ func request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler runtime. msg, err := client.AddMongoDBExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -334,7 +319,6 @@ func local_request_Agents_AddMongoDBExporter_0(ctx context.Context, marshaler ru msg, err := server.AddMongoDBExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -351,7 +335,6 @@ func request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler runti msg, err := client.ChangeMongoDBExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -368,7 +351,6 @@ func local_request_Agents_ChangeMongoDBExporter_0(ctx context.Context, marshaler msg, err := server.ChangeMongoDBExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -385,7 +367,6 @@ func request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler runtime msg, err := client.AddPostgresExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -402,7 +383,6 @@ func local_request_Agents_AddPostgresExporter_0(ctx context.Context, marshaler r msg, err := server.AddPostgresExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangePostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -419,7 +399,6 @@ func request_Agents_ChangePostgresExporter_0(ctx context.Context, marshaler runt msg, err := client.ChangePostgresExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangePostgresExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -436,7 +415,6 @@ func local_request_Agents_ChangePostgresExporter_0(ctx context.Context, marshale msg, err := server.ChangePostgresExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -453,7 +431,6 @@ func request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler runtime msg, err := client.AddProxySQLExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -470,7 +447,6 @@ func local_request_Agents_AddProxySQLExporter_0(ctx context.Context, marshaler r msg, err := server.AddProxySQLExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -487,7 +463,6 @@ func request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshaler runt msg, err := client.ChangeProxySQLExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -504,7 +479,6 @@ func local_request_Agents_ChangeProxySQLExporter_0(ctx context.Context, marshale msg, err := server.ChangeProxySQLExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -521,7 +495,6 @@ func request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler msg, err := client.AddQANMySQLPerfSchemaAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -538,7 +511,6 @@ func local_request_Agents_AddQANMySQLPerfSchemaAgent_0(ctx context.Context, mars msg, err := server.AddQANMySQLPerfSchemaAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -555,7 +527,6 @@ func request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshal msg, err := client.ChangeQANMySQLPerfSchemaAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -572,7 +543,6 @@ func local_request_Agents_ChangeQANMySQLPerfSchemaAgent_0(ctx context.Context, m msg, err := server.ChangeQANMySQLPerfSchemaAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -589,7 +559,6 @@ func request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler run msg, err := client.AddQANMySQLSlowlogAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -606,7 +575,6 @@ func local_request_Agents_AddQANMySQLSlowlogAgent_0(ctx context.Context, marshal msg, err := server.AddQANMySQLSlowlogAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -623,7 +591,6 @@ func request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler msg, err := client.ChangeQANMySQLSlowlogAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -640,7 +607,6 @@ func local_request_Agents_ChangeQANMySQLSlowlogAgent_0(ctx context.Context, mars msg, err := server.ChangeQANMySQLSlowlogAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -657,7 +623,6 @@ func request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler msg, err := client.AddQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -674,7 +639,6 @@ func local_request_Agents_AddQANMongoDBProfilerAgent_0(ctx context.Context, mars msg, err := server.AddQANMongoDBProfilerAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -691,7 +655,6 @@ func request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshal msg, err := client.ChangeQANMongoDBProfilerAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -708,7 +671,6 @@ func local_request_Agents_ChangeQANMongoDBProfilerAgent_0(ctx context.Context, m msg, err := server.ChangeQANMongoDBProfilerAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -725,7 +687,6 @@ func request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, mar msg, err := client.AddQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -742,7 +703,6 @@ func local_request_Agents_AddQANPostgreSQLPgStatementsAgent_0(ctx context.Contex msg, err := server.AddQANPostgreSQLPgStatementsAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -759,7 +719,6 @@ func request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, msg, err := client.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -776,7 +735,6 @@ func local_request_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(ctx context.Con msg, err := server.ChangeQANPostgreSQLPgStatementsAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -793,7 +751,6 @@ func request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, ma msg, err := client.AddQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -810,7 +767,6 @@ func local_request_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(ctx context.Conte msg, err := server.AddQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -827,7 +783,6 @@ func request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, msg, err := client.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -844,7 +799,6 @@ func local_request_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(ctx context.Co msg, err := server.ChangeQANPostgreSQLPgStatMonitorAgent(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -861,7 +815,6 @@ func request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtime.Mars msg, err := client.AddRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -878,7 +831,6 @@ func local_request_Agents_AddRDSExporter_0(ctx context.Context, marshaler runtim msg, err := server.AddRDSExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -895,7 +847,6 @@ func request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.M msg, err := client.ChangeRDSExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -912,7 +863,6 @@ func local_request_Agents_ChangeRDSExporter_0(ctx context.Context, marshaler run msg, err := server.ChangeRDSExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -929,7 +879,6 @@ func request_Agents_AddExternalExporter_0(ctx context.Context, marshaler runtime msg, err := client.AddExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -946,7 +895,6 @@ func local_request_Agents_AddExternalExporter_0(ctx context.Context, marshaler r msg, err := server.AddExternalExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -963,7 +911,6 @@ func request_Agents_ChangeExternalExporter_0(ctx context.Context, marshaler runt msg, err := client.ChangeExternalExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeExternalExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -980,7 +927,6 @@ func local_request_Agents_ChangeExternalExporter_0(ctx context.Context, marshale msg, err := server.ChangeExternalExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -997,7 +943,6 @@ func request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marshaler ru msg, err := client.AddAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1014,7 +959,6 @@ func local_request_Agents_AddAzureDatabaseExporter_0(ctx context.Context, marsha msg, err := server.AddAzureDatabaseExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1031,7 +975,6 @@ func request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler msg, err := client.ChangeAzureDatabaseExporter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1048,7 +991,6 @@ func local_request_Agents_ChangeAzureDatabaseExporter_0(ctx context.Context, mar msg, err := server.ChangeAzureDatabaseExporter(ctx, &protoReq) return msg, metadata, err - } func request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1065,7 +1007,6 @@ func request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.RemoveAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.Marshaler, server AgentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1082,7 +1023,6 @@ func local_request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.M msg, err := server.RemoveAgent(ctx, &protoReq) return msg, metadata, err - } // RegisterAgentsHandlerServer registers the http handlers for service Agents to "mux". @@ -1090,7 +1030,6 @@ func local_request_Agents_RemoveAgent_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentsHandlerFromEndpoint instead. func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AgentsServer) error { - mux.Handle("POST", pattern_Agents_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1113,7 +1052,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1138,7 +1076,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_GetAgentLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1163,7 +1100,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddPMMAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1188,7 +1124,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddPMMAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1213,7 +1148,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1238,7 +1172,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1263,7 +1196,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1288,7 +1220,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1313,7 +1244,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1338,7 +1268,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddPostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1363,7 +1292,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddPostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1388,7 +1316,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1413,7 +1340,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1438,7 +1364,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1463,7 +1388,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1488,7 +1412,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1513,7 +1436,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1538,7 +1460,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1563,7 +1484,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1588,7 +1508,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1613,7 +1532,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1638,7 +1556,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1663,7 +1580,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1688,7 +1604,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1713,7 +1628,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1738,7 +1652,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1763,7 +1676,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1788,7 +1700,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1813,7 +1724,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_AddAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1838,7 +1748,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_ChangeAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_RemoveAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1863,7 +1772,6 @@ func RegisterAgentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Agents_RemoveAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -1906,7 +1814,6 @@ func RegisterAgentsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AgentsClient" to call the correct interceptors. func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentsClient) error { - mux.Handle("POST", pattern_Agents_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1926,7 +1833,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1948,7 +1854,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_GetAgentLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1970,7 +1875,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_GetAgentLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddPMMAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1992,7 +1896,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddPMMAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2014,7 +1917,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeNodeExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2036,7 +1938,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeNodeExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2058,7 +1959,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeMySQLdExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2080,7 +1980,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeMySQLdExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2102,7 +2001,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeMongoDBExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2124,7 +2022,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeMongoDBExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddPostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2146,7 +2043,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddPostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangePostgresExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2168,7 +2064,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangePostgresExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2190,7 +2085,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeProxySQLExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2212,7 +2106,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeProxySQLExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2234,7 +2127,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLPerfSchemaAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2256,7 +2148,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANMySQLPerfSchemaAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2278,7 +2169,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANMySQLSlowlogAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2300,7 +2190,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANMySQLSlowlogAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2322,7 +2211,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANMongoDBProfilerAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2344,7 +2232,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANMongoDBProfilerAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2366,7 +2253,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatementsAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2388,7 +2274,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANPostgreSQLPgStatementsAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2410,7 +2295,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2432,7 +2316,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeQANPostgreSQLPgStatMonitorAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2454,7 +2337,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeRDSExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2476,7 +2358,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeRDSExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2498,7 +2379,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeExternalExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2520,7 +2400,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeExternalExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_AddAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2542,7 +2421,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_AddAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_ChangeAzureDatabaseExporter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2564,7 +2442,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_ChangeAzureDatabaseExporter_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Agents_RemoveAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -2586,7 +2463,6 @@ func RegisterAgentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Agents_RemoveAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/inventorypb/agents.validator.pb.go b/api/inventorypb/agents.validator.pb.go index 6518cc93c6..41006983d7 100644 --- a/api/inventorypb/agents.validator.pb.go +++ b/api/inventorypb/agents.validator.pb.go @@ -6,84 +6,104 @@ package inventorypb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *PMMAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *VMAgent) Validate() error { return nil } + func (this *NodeExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *MySQLdExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *MongoDBExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *PostgresExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ProxySQLExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *QANMySQLPerfSchemaAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *QANMySQLSlowlogAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *QANMongoDBProfilerAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *QANPostgreSQLPgStatementsAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *QANPostgreSQLPgStatMonitorAgent) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *RDSExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ExternalExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AzureDatabaseExporter) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ChangeCommonAgentParams) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ListAgentsRequest) Validate() error { return nil } + func (this *ListAgentsResponse) Validate() error { for _, item := range this.PmmAgent { if item != nil { @@ -192,12 +212,14 @@ func (this *ListAgentsResponse) Validate() error { } return nil } + func (this *GetAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) } return nil } + func (this *GetAgentResponse) Validate() error { if oneOfNester, ok := this.GetAgent().(*GetAgentResponse_PmmAgent); ok { if oneOfNester.PmmAgent != nil { @@ -306,15 +328,18 @@ func (this *GetAgentResponse) Validate() error { } return nil } + func (this *GetAgentLogsRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) } return nil } + func (this *GetAgentLogsResponse) Validate() error { return nil } + func (this *AddPMMAgentRequest) Validate() error { if this.RunsOnNodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RunsOnNodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.RunsOnNodeId)) @@ -322,6 +347,7 @@ func (this *AddPMMAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddPMMAgentResponse) Validate() error { if this.PmmAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PmmAgent); err != nil { @@ -330,6 +356,7 @@ func (this *AddPMMAgentResponse) Validate() error { } return nil } + func (this *AddNodeExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -337,6 +364,7 @@ func (this *AddNodeExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddNodeExporterResponse) Validate() error { if this.NodeExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.NodeExporter); err != nil { @@ -345,6 +373,7 @@ func (this *AddNodeExporterResponse) Validate() error { } return nil } + func (this *ChangeNodeExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -356,6 +385,7 @@ func (this *ChangeNodeExporterRequest) Validate() error { } return nil } + func (this *ChangeNodeExporterResponse) Validate() error { if this.NodeExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.NodeExporter); err != nil { @@ -364,6 +394,7 @@ func (this *ChangeNodeExporterResponse) Validate() error { } return nil } + func (this *AddMySQLdExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -377,6 +408,7 @@ func (this *AddMySQLdExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddMySQLdExporterResponse) Validate() error { if this.MysqldExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MysqldExporter); err != nil { @@ -385,6 +417,7 @@ func (this *AddMySQLdExporterResponse) Validate() error { } return nil } + func (this *ChangeMySQLdExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -396,6 +429,7 @@ func (this *ChangeMySQLdExporterRequest) Validate() error { } return nil } + func (this *ChangeMySQLdExporterResponse) Validate() error { if this.MysqldExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MysqldExporter); err != nil { @@ -404,6 +438,7 @@ func (this *ChangeMySQLdExporterResponse) Validate() error { } return nil } + func (this *AddMongoDBExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -414,6 +449,7 @@ func (this *AddMongoDBExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddMongoDBExporterResponse) Validate() error { if this.MongodbExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MongodbExporter); err != nil { @@ -422,6 +458,7 @@ func (this *AddMongoDBExporterResponse) Validate() error { } return nil } + func (this *ChangeMongoDBExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -433,6 +470,7 @@ func (this *ChangeMongoDBExporterRequest) Validate() error { } return nil } + func (this *ChangeMongoDBExporterResponse) Validate() error { if this.MongodbExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MongodbExporter); err != nil { @@ -441,6 +479,7 @@ func (this *ChangeMongoDBExporterResponse) Validate() error { } return nil } + func (this *AddPostgresExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -454,6 +493,7 @@ func (this *AddPostgresExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddPostgresExporterResponse) Validate() error { if this.PostgresExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PostgresExporter); err != nil { @@ -462,6 +502,7 @@ func (this *AddPostgresExporterResponse) Validate() error { } return nil } + func (this *ChangePostgresExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -473,6 +514,7 @@ func (this *ChangePostgresExporterRequest) Validate() error { } return nil } + func (this *ChangePostgresExporterResponse) Validate() error { if this.PostgresExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PostgresExporter); err != nil { @@ -481,6 +523,7 @@ func (this *ChangePostgresExporterResponse) Validate() error { } return nil } + func (this *AddProxySQLExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -494,6 +537,7 @@ func (this *AddProxySQLExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddProxySQLExporterResponse) Validate() error { if this.ProxysqlExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ProxysqlExporter); err != nil { @@ -502,6 +546,7 @@ func (this *AddProxySQLExporterResponse) Validate() error { } return nil } + func (this *ChangeProxySQLExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -513,6 +558,7 @@ func (this *ChangeProxySQLExporterRequest) Validate() error { } return nil } + func (this *ChangeProxySQLExporterResponse) Validate() error { if this.ProxysqlExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ProxysqlExporter); err != nil { @@ -521,6 +567,7 @@ func (this *ChangeProxySQLExporterResponse) Validate() error { } return nil } + func (this *AddQANMySQLPerfSchemaAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -534,6 +581,7 @@ func (this *AddQANMySQLPerfSchemaAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddQANMySQLPerfSchemaAgentResponse) Validate() error { if this.QanMysqlPerfschemaAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlPerfschemaAgent); err != nil { @@ -542,6 +590,7 @@ func (this *AddQANMySQLPerfSchemaAgentResponse) Validate() error { } return nil } + func (this *ChangeQANMySQLPerfSchemaAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -553,6 +602,7 @@ func (this *ChangeQANMySQLPerfSchemaAgentRequest) Validate() error { } return nil } + func (this *ChangeQANMySQLPerfSchemaAgentResponse) Validate() error { if this.QanMysqlPerfschemaAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlPerfschemaAgent); err != nil { @@ -561,6 +611,7 @@ func (this *ChangeQANMySQLPerfSchemaAgentResponse) Validate() error { } return nil } + func (this *AddQANMySQLSlowlogAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -574,6 +625,7 @@ func (this *AddQANMySQLSlowlogAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddQANMySQLSlowlogAgentResponse) Validate() error { if this.QanMysqlSlowlogAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlSlowlogAgent); err != nil { @@ -582,6 +634,7 @@ func (this *AddQANMySQLSlowlogAgentResponse) Validate() error { } return nil } + func (this *ChangeQANMySQLSlowlogAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -593,6 +646,7 @@ func (this *ChangeQANMySQLSlowlogAgentRequest) Validate() error { } return nil } + func (this *ChangeQANMySQLSlowlogAgentResponse) Validate() error { if this.QanMysqlSlowlogAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMysqlSlowlogAgent); err != nil { @@ -601,6 +655,7 @@ func (this *ChangeQANMySQLSlowlogAgentResponse) Validate() error { } return nil } + func (this *AddQANMongoDBProfilerAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -611,6 +666,7 @@ func (this *AddQANMongoDBProfilerAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddQANMongoDBProfilerAgentResponse) Validate() error { if this.QanMongodbProfilerAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMongodbProfilerAgent); err != nil { @@ -619,6 +675,7 @@ func (this *AddQANMongoDBProfilerAgentResponse) Validate() error { } return nil } + func (this *ChangeQANMongoDBProfilerAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -630,6 +687,7 @@ func (this *ChangeQANMongoDBProfilerAgentRequest) Validate() error { } return nil } + func (this *ChangeQANMongoDBProfilerAgentResponse) Validate() error { if this.QanMongodbProfilerAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanMongodbProfilerAgent); err != nil { @@ -638,6 +696,7 @@ func (this *ChangeQANMongoDBProfilerAgentResponse) Validate() error { } return nil } + func (this *AddQANPostgreSQLPgStatementsAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -651,6 +710,7 @@ func (this *AddQANPostgreSQLPgStatementsAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddQANPostgreSQLPgStatementsAgentResponse) Validate() error { if this.QanPostgresqlPgstatementsAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatementsAgent); err != nil { @@ -659,6 +719,7 @@ func (this *AddQANPostgreSQLPgStatementsAgentResponse) Validate() error { } return nil } + func (this *ChangeQANPostgreSQLPgStatementsAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -670,6 +731,7 @@ func (this *ChangeQANPostgreSQLPgStatementsAgentRequest) Validate() error { } return nil } + func (this *ChangeQANPostgreSQLPgStatementsAgentResponse) Validate() error { if this.QanPostgresqlPgstatementsAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatementsAgent); err != nil { @@ -678,6 +740,7 @@ func (this *ChangeQANPostgreSQLPgStatementsAgentResponse) Validate() error { } return nil } + func (this *AddQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -691,6 +754,7 @@ func (this *AddQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { if this.QanPostgresqlPgstatmonitorAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatmonitorAgent); err != nil { @@ -699,6 +763,7 @@ func (this *AddQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { } return nil } + func (this *ChangeQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -710,6 +775,7 @@ func (this *ChangeQANPostgreSQLPgStatMonitorAgentRequest) Validate() error { } return nil } + func (this *ChangeQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { if this.QanPostgresqlPgstatmonitorAgent != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.QanPostgresqlPgstatmonitorAgent); err != nil { @@ -718,6 +784,7 @@ func (this *ChangeQANPostgreSQLPgStatMonitorAgentResponse) Validate() error { } return nil } + func (this *AddRDSExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -728,6 +795,7 @@ func (this *AddRDSExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddRDSExporterResponse) Validate() error { if this.RdsExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RdsExporter); err != nil { @@ -736,6 +804,7 @@ func (this *AddRDSExporterResponse) Validate() error { } return nil } + func (this *ChangeRDSExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -747,6 +816,7 @@ func (this *ChangeRDSExporterRequest) Validate() error { } return nil } + func (this *ChangeRDSExporterResponse) Validate() error { if this.RdsExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RdsExporter); err != nil { @@ -755,6 +825,7 @@ func (this *ChangeRDSExporterResponse) Validate() error { } return nil } + func (this *AddExternalExporterRequest) Validate() error { if this.RunsOnNodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RunsOnNodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.RunsOnNodeId)) @@ -768,6 +839,7 @@ func (this *AddExternalExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddExternalExporterResponse) Validate() error { if this.ExternalExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ExternalExporter); err != nil { @@ -776,6 +848,7 @@ func (this *AddExternalExporterResponse) Validate() error { } return nil } + func (this *ChangeExternalExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -787,6 +860,7 @@ func (this *ChangeExternalExporterRequest) Validate() error { } return nil } + func (this *ChangeExternalExporterResponse) Validate() error { if this.ExternalExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ExternalExporter); err != nil { @@ -795,6 +869,7 @@ func (this *ChangeExternalExporterResponse) Validate() error { } return nil } + func (this *AddAzureDatabaseExporterRequest) Validate() error { if this.PmmAgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) @@ -808,6 +883,7 @@ func (this *AddAzureDatabaseExporterRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddAzureDatabaseExporterResponse) Validate() error { if this.AzureDatabaseExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AzureDatabaseExporter); err != nil { @@ -816,6 +892,7 @@ func (this *AddAzureDatabaseExporterResponse) Validate() error { } return nil } + func (this *ChangeAzureDatabaseExporterRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) @@ -827,6 +904,7 @@ func (this *ChangeAzureDatabaseExporterRequest) Validate() error { } return nil } + func (this *ChangeAzureDatabaseExporterResponse) Validate() error { if this.AzureDatabaseExporter != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AzureDatabaseExporter); err != nil { @@ -835,12 +913,14 @@ func (this *ChangeAzureDatabaseExporterResponse) Validate() error { } return nil } + func (this *RemoveAgentRequest) Validate() error { if this.AgentId == "" { return github_com_mwitkow_go_proto_validators.FieldError("AgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.AgentId)) } return nil } + func (this *RemoveAgentResponse) Validate() error { return nil } diff --git a/api/inventorypb/agents_grpc.pb.go b/api/inventorypb/agents_grpc.pb.go index 131b77879c..0391f42e2f 100644 --- a/api/inventorypb/agents_grpc.pb.go +++ b/api/inventorypb/agents_grpc.pb.go @@ -8,6 +8,7 @@ package inventorypb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -443,99 +444,128 @@ type AgentsServer interface { } // UnimplementedAgentsServer must be embedded to have forward compatible implementations. -type UnimplementedAgentsServer struct { -} +type UnimplementedAgentsServer struct{} func (UnimplementedAgentsServer) ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAgents not implemented") } + func (UnimplementedAgentsServer) GetAgent(context.Context, *GetAgentRequest) (*GetAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAgent not implemented") } + func (UnimplementedAgentsServer) GetAgentLogs(context.Context, *GetAgentLogsRequest) (*GetAgentLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAgentLogs not implemented") } + func (UnimplementedAgentsServer) AddPMMAgent(context.Context, *AddPMMAgentRequest) (*AddPMMAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPMMAgent not implemented") } + func (UnimplementedAgentsServer) AddNodeExporter(context.Context, *AddNodeExporterRequest) (*AddNodeExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddNodeExporter not implemented") } + func (UnimplementedAgentsServer) ChangeNodeExporter(context.Context, *ChangeNodeExporterRequest) (*ChangeNodeExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeNodeExporter not implemented") } + func (UnimplementedAgentsServer) AddMySQLdExporter(context.Context, *AddMySQLdExporterRequest) (*AddMySQLdExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMySQLdExporter not implemented") } + func (UnimplementedAgentsServer) ChangeMySQLdExporter(context.Context, *ChangeMySQLdExporterRequest) (*ChangeMySQLdExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMySQLdExporter not implemented") } + func (UnimplementedAgentsServer) AddMongoDBExporter(context.Context, *AddMongoDBExporterRequest) (*AddMongoDBExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMongoDBExporter not implemented") } + func (UnimplementedAgentsServer) ChangeMongoDBExporter(context.Context, *ChangeMongoDBExporterRequest) (*ChangeMongoDBExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeMongoDBExporter not implemented") } + func (UnimplementedAgentsServer) AddPostgresExporter(context.Context, *AddPostgresExporterRequest) (*AddPostgresExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPostgresExporter not implemented") } + func (UnimplementedAgentsServer) ChangePostgresExporter(context.Context, *ChangePostgresExporterRequest) (*ChangePostgresExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePostgresExporter not implemented") } + func (UnimplementedAgentsServer) AddProxySQLExporter(context.Context, *AddProxySQLExporterRequest) (*AddProxySQLExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddProxySQLExporter not implemented") } + func (UnimplementedAgentsServer) ChangeProxySQLExporter(context.Context, *ChangeProxySQLExporterRequest) (*ChangeProxySQLExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeProxySQLExporter not implemented") } + func (UnimplementedAgentsServer) AddQANMySQLPerfSchemaAgent(context.Context, *AddQANMySQLPerfSchemaAgentRequest) (*AddQANMySQLPerfSchemaAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANMySQLPerfSchemaAgent not implemented") } + func (UnimplementedAgentsServer) ChangeQANMySQLPerfSchemaAgent(context.Context, *ChangeQANMySQLPerfSchemaAgentRequest) (*ChangeQANMySQLPerfSchemaAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMySQLPerfSchemaAgent not implemented") } + func (UnimplementedAgentsServer) AddQANMySQLSlowlogAgent(context.Context, *AddQANMySQLSlowlogAgentRequest) (*AddQANMySQLSlowlogAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANMySQLSlowlogAgent not implemented") } + func (UnimplementedAgentsServer) ChangeQANMySQLSlowlogAgent(context.Context, *ChangeQANMySQLSlowlogAgentRequest) (*ChangeQANMySQLSlowlogAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMySQLSlowlogAgent not implemented") } + func (UnimplementedAgentsServer) AddQANMongoDBProfilerAgent(context.Context, *AddQANMongoDBProfilerAgentRequest) (*AddQANMongoDBProfilerAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANMongoDBProfilerAgent not implemented") } + func (UnimplementedAgentsServer) ChangeQANMongoDBProfilerAgent(context.Context, *ChangeQANMongoDBProfilerAgentRequest) (*ChangeQANMongoDBProfilerAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANMongoDBProfilerAgent not implemented") } + func (UnimplementedAgentsServer) AddQANPostgreSQLPgStatementsAgent(context.Context, *AddQANPostgreSQLPgStatementsAgentRequest) (*AddQANPostgreSQLPgStatementsAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANPostgreSQLPgStatementsAgent not implemented") } + func (UnimplementedAgentsServer) ChangeQANPostgreSQLPgStatementsAgent(context.Context, *ChangeQANPostgreSQLPgStatementsAgentRequest) (*ChangeQANPostgreSQLPgStatementsAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANPostgreSQLPgStatementsAgent not implemented") } + func (UnimplementedAgentsServer) AddQANPostgreSQLPgStatMonitorAgent(context.Context, *AddQANPostgreSQLPgStatMonitorAgentRequest) (*AddQANPostgreSQLPgStatMonitorAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddQANPostgreSQLPgStatMonitorAgent not implemented") } + func (UnimplementedAgentsServer) ChangeQANPostgreSQLPgStatMonitorAgent(context.Context, *ChangeQANPostgreSQLPgStatMonitorAgentRequest) (*ChangeQANPostgreSQLPgStatMonitorAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeQANPostgreSQLPgStatMonitorAgent not implemented") } + func (UnimplementedAgentsServer) AddRDSExporter(context.Context, *AddRDSExporterRequest) (*AddRDSExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRDSExporter not implemented") } + func (UnimplementedAgentsServer) ChangeRDSExporter(context.Context, *ChangeRDSExporterRequest) (*ChangeRDSExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeRDSExporter not implemented") } + func (UnimplementedAgentsServer) AddExternalExporter(context.Context, *AddExternalExporterRequest) (*AddExternalExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddExternalExporter not implemented") } + func (UnimplementedAgentsServer) ChangeExternalExporter(context.Context, *ChangeExternalExporterRequest) (*ChangeExternalExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeExternalExporter not implemented") } + func (UnimplementedAgentsServer) AddAzureDatabaseExporter(context.Context, *AddAzureDatabaseExporterRequest) (*AddAzureDatabaseExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAzureDatabaseExporter not implemented") } + func (UnimplementedAgentsServer) ChangeAzureDatabaseExporter(context.Context, *ChangeAzureDatabaseExporterRequest) (*ChangeAzureDatabaseExporterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeAzureDatabaseExporter not implemented") } + func (UnimplementedAgentsServer) RemoveAgent(context.Context, *RemoveAgentRequest) (*RemoveAgentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveAgent not implemented") } diff --git a/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go b/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go index d583c6a51a..3db16b94a2 100644 --- a/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_azure_database_exporter_parameters.go @@ -60,7 +60,6 @@ AddAzureDatabaseExporterParams contains all the parameters to send to the API en Typically these are written to a http.Request. */ type AddAzureDatabaseExporterParams struct { - // Body. Body AddAzureDatabaseExporterBody @@ -130,7 +129,6 @@ func (o *AddAzureDatabaseExporterParams) SetBody(body AddAzureDatabaseExporterBo // WriteToRequest writes these params to a swagger request func (o *AddAzureDatabaseExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go b/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go index 05ec80a32a..297e128f25 100644 --- a/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_azure_database_exporter_responses.go @@ -62,12 +62,12 @@ type AddAzureDatabaseExporterOK struct { func (o *AddAzureDatabaseExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddAzureDatabaseExporter][%d] addAzureDatabaseExporterOk %+v", 200, o.Payload) } + func (o *AddAzureDatabaseExporterOK) GetPayload() *AddAzureDatabaseExporterOKBody { return o.Payload } func (o *AddAzureDatabaseExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAzureDatabaseExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddAzureDatabaseExporterDefault) Code() int { func (o *AddAzureDatabaseExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddAzureDatabaseExporter][%d] AddAzureDatabaseExporter default %+v", o._statusCode, o.Payload) } + func (o *AddAzureDatabaseExporterDefault) GetPayload() *AddAzureDatabaseExporterDefaultBody { return o.Payload } func (o *AddAzureDatabaseExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAzureDatabaseExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddAzureDatabaseExporterBody add azure database exporter body swagger:model AddAzureDatabaseExporterBody */ type AddAzureDatabaseExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -260,7 +259,6 @@ AddAzureDatabaseExporterDefaultBody add azure database exporter default body swagger:model AddAzureDatabaseExporterDefaultBody */ type AddAzureDatabaseExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -326,9 +324,7 @@ func (o *AddAzureDatabaseExporterDefaultBody) ContextValidate(ctx context.Contex } func (o *AddAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -339,7 +335,6 @@ func (o *AddAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context return err } } - } return nil @@ -368,7 +363,6 @@ AddAzureDatabaseExporterDefaultBodyDetailsItems0 add azure database exporter def swagger:model AddAzureDatabaseExporterDefaultBodyDetailsItems0 */ type AddAzureDatabaseExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -406,7 +400,6 @@ AddAzureDatabaseExporterOKBody add azure database exporter OK body swagger:model AddAzureDatabaseExporterOKBody */ type AddAzureDatabaseExporterOKBody struct { - // azure database exporter AzureDatabaseExporter *AddAzureDatabaseExporterOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` } @@ -459,7 +452,6 @@ func (o *AddAzureDatabaseExporterOKBody) ContextValidate(ctx context.Context, fo } func (o *AddAzureDatabaseExporterOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -497,7 +489,6 @@ AddAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter runs o swagger:model AddAzureDatabaseExporterOKBodyAzureDatabaseExporter */ type AddAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_external_exporter_parameters.go b/api/inventorypb/json/client/agents/add_external_exporter_parameters.go index 3672f81075..5a5ae9a946 100644 --- a/api/inventorypb/json/client/agents/add_external_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_external_exporter_parameters.go @@ -60,7 +60,6 @@ AddExternalExporterParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type AddExternalExporterParams struct { - // Body. Body AddExternalExporterBody @@ -130,7 +129,6 @@ func (o *AddExternalExporterParams) SetBody(body AddExternalExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddExternalExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_external_exporter_responses.go b/api/inventorypb/json/client/agents/add_external_exporter_responses.go index e6c53a045c..33a3d17e6e 100644 --- a/api/inventorypb/json/client/agents/add_external_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_external_exporter_responses.go @@ -60,12 +60,12 @@ type AddExternalExporterOK struct { func (o *AddExternalExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddExternalExporter][%d] addExternalExporterOk %+v", 200, o.Payload) } + func (o *AddExternalExporterOK) GetPayload() *AddExternalExporterOKBody { return o.Payload } func (o *AddExternalExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalExporterOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddExternalExporterDefault) Code() int { func (o *AddExternalExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddExternalExporter][%d] AddExternalExporter default %+v", o._statusCode, o.Payload) } + func (o *AddExternalExporterDefault) GetPayload() *AddExternalExporterDefaultBody { return o.Payload } func (o *AddExternalExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalExporterDefaultBody) // response payload @@ -123,7 +123,6 @@ AddExternalExporterBody add external exporter body swagger:model AddExternalExporterBody */ type AddExternalExporterBody struct { - // The node identifier where this instance is run. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -185,7 +184,6 @@ AddExternalExporterDefaultBody add external exporter default body swagger:model AddExternalExporterDefaultBody */ type AddExternalExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -251,9 +249,7 @@ func (o *AddExternalExporterDefaultBody) ContextValidate(ctx context.Context, fo } func (o *AddExternalExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -264,7 +260,6 @@ func (o *AddExternalExporterDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -293,7 +288,6 @@ AddExternalExporterDefaultBodyDetailsItems0 add external exporter default body d swagger:model AddExternalExporterDefaultBodyDetailsItems0 */ type AddExternalExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -331,7 +325,6 @@ AddExternalExporterOKBody add external exporter OK body swagger:model AddExternalExporterOKBody */ type AddExternalExporterOKBody struct { - // external exporter ExternalExporter *AddExternalExporterOKBodyExternalExporter `json:"external_exporter,omitempty"` } @@ -384,7 +377,6 @@ func (o *AddExternalExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddExternalExporterOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -422,7 +414,6 @@ AddExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node type swagger:model AddExternalExporterOKBodyExternalExporter */ type AddExternalExporterOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go b/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go index dbab1c8589..d7083686bf 100644 --- a/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_mongo_db_exporter_parameters.go @@ -60,7 +60,6 @@ AddMongoDBExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMongoDBExporterParams struct { - // Body. Body AddMongoDBExporterBody @@ -130,7 +129,6 @@ func (o *AddMongoDBExporterParams) SetBody(body AddMongoDBExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddMongoDBExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go b/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go index 34bbadd52f..1396da9ac7 100644 --- a/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_mongo_db_exporter_responses.go @@ -62,12 +62,12 @@ type AddMongoDBExporterOK struct { func (o *AddMongoDBExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMongoDBExporter][%d] addMongoDbExporterOk %+v", 200, o.Payload) } + func (o *AddMongoDBExporterOK) GetPayload() *AddMongoDBExporterOKBody { return o.Payload } func (o *AddMongoDBExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMongoDBExporterDefault) Code() int { func (o *AddMongoDBExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMongoDBExporter][%d] AddMongoDBExporter default %+v", o._statusCode, o.Payload) } + func (o *AddMongoDBExporterDefault) GetPayload() *AddMongoDBExporterDefaultBody { return o.Payload } func (o *AddMongoDBExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddMongoDBExporterBody add mongo DB exporter body swagger:model AddMongoDBExporterBody */ type AddMongoDBExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -284,7 +283,6 @@ AddMongoDBExporterDefaultBody add mongo DB exporter default body swagger:model AddMongoDBExporterDefaultBody */ type AddMongoDBExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -350,9 +348,7 @@ func (o *AddMongoDBExporterDefaultBody) ContextValidate(ctx context.Context, for } func (o *AddMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -363,7 +359,6 @@ func (o *AddMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -392,7 +387,6 @@ AddMongoDBExporterDefaultBodyDetailsItems0 add mongo DB exporter default body de swagger:model AddMongoDBExporterDefaultBodyDetailsItems0 */ type AddMongoDBExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +424,6 @@ AddMongoDBExporterOKBody add mongo DB exporter OK body swagger:model AddMongoDBExporterOKBody */ type AddMongoDBExporterOKBody struct { - // mongodb exporter MongodbExporter *AddMongoDBExporterOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` } @@ -483,7 +476,6 @@ func (o *AddMongoDBExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddMongoDBExporterOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -521,7 +513,6 @@ AddMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Conta swagger:model AddMongoDBExporterOKBodyMongodbExporter */ type AddMongoDBExporterOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go index 8640aea896..155ca1d3ff 100644 --- a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_parameters.go @@ -60,7 +60,6 @@ AddMySQLdExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMySQLdExporterParams struct { - // Body. Body AddMySQLdExporterBody @@ -130,7 +129,6 @@ func (o *AddMySQLdExporterParams) SetBody(body AddMySQLdExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddMySQLdExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go index 25127a5848..3b066d1f20 100644 --- a/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_my_s_q_ld_exporter_responses.go @@ -62,12 +62,12 @@ type AddMySQLdExporterOK struct { func (o *AddMySQLdExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMySQLdExporter][%d] addMySQLdExporterOk %+v", 200, o.Payload) } + func (o *AddMySQLdExporterOK) GetPayload() *AddMySQLdExporterOKBody { return o.Payload } func (o *AddMySQLdExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLdExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMySQLdExporterDefault) Code() int { func (o *AddMySQLdExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddMySQLdExporter][%d] AddMySQLdExporter default %+v", o._statusCode, o.Payload) } + func (o *AddMySQLdExporterDefault) GetPayload() *AddMySQLdExporterDefaultBody { return o.Payload } func (o *AddMySQLdExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLdExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddMySQLdExporterBody add my s q ld exporter body swagger:model AddMySQLdExporterBody */ type AddMySQLdExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -274,7 +273,6 @@ AddMySQLdExporterDefaultBody add my s q ld exporter default body swagger:model AddMySQLdExporterDefaultBody */ type AddMySQLdExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -340,9 +338,7 @@ func (o *AddMySQLdExporterDefaultBody) ContextValidate(ctx context.Context, form } func (o *AddMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -353,7 +349,6 @@ func (o *AddMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -382,7 +377,6 @@ AddMySQLdExporterDefaultBodyDetailsItems0 add my s q ld exporter default body de swagger:model AddMySQLdExporterDefaultBodyDetailsItems0 */ type AddMySQLdExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -420,7 +414,6 @@ AddMySQLdExporterOKBody add my s q ld exporter OK body swagger:model AddMySQLdExporterOKBody */ type AddMySQLdExporterOKBody struct { - // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -476,7 +469,6 @@ func (o *AddMySQLdExporterOKBody) ContextValidate(ctx context.Context, formats s } func (o *AddMySQLdExporterOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -514,7 +506,6 @@ AddMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Containe swagger:model AddMySQLdExporterOKBodyMysqldExporter */ type AddMySQLdExporterOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_node_exporter_parameters.go b/api/inventorypb/json/client/agents/add_node_exporter_parameters.go index 825eda1184..534c79bbf6 100644 --- a/api/inventorypb/json/client/agents/add_node_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_node_exporter_parameters.go @@ -60,7 +60,6 @@ AddNodeExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddNodeExporterParams struct { - // Body. Body AddNodeExporterBody @@ -130,7 +129,6 @@ func (o *AddNodeExporterParams) SetBody(body AddNodeExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddNodeExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_node_exporter_responses.go b/api/inventorypb/json/client/agents/add_node_exporter_responses.go index 589177e0ff..c36cb227fe 100644 --- a/api/inventorypb/json/client/agents/add_node_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_node_exporter_responses.go @@ -62,12 +62,12 @@ type AddNodeExporterOK struct { func (o *AddNodeExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddNodeExporter][%d] addNodeExporterOk %+v", 200, o.Payload) } + func (o *AddNodeExporterOK) GetPayload() *AddNodeExporterOKBody { return o.Payload } func (o *AddNodeExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddNodeExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddNodeExporterDefault) Code() int { func (o *AddNodeExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddNodeExporter][%d] AddNodeExporter default %+v", o._statusCode, o.Payload) } + func (o *AddNodeExporterDefault) GetPayload() *AddNodeExporterDefaultBody { return o.Payload } func (o *AddNodeExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddNodeExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddNodeExporterBody add node exporter body swagger:model AddNodeExporterBody */ type AddNodeExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -239,7 +238,6 @@ AddNodeExporterDefaultBody add node exporter default body swagger:model AddNodeExporterDefaultBody */ type AddNodeExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -305,9 +303,7 @@ func (o *AddNodeExporterDefaultBody) ContextValidate(ctx context.Context, format } func (o *AddNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -318,7 +314,6 @@ func (o *AddNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -347,7 +342,6 @@ AddNodeExporterDefaultBodyDetailsItems0 add node exporter default body details i swagger:model AddNodeExporterDefaultBodyDetailsItems0 */ type AddNodeExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -385,7 +379,6 @@ AddNodeExporterOKBody add node exporter OK body swagger:model AddNodeExporterOKBody */ type AddNodeExporterOKBody struct { - // node exporter NodeExporter *AddNodeExporterOKBodyNodeExporter `json:"node_exporter,omitempty"` } @@ -438,7 +431,6 @@ func (o *AddNodeExporterOKBody) ContextValidate(ctx context.Context, formats str } func (o *AddNodeExporterOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -476,7 +468,6 @@ AddNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container Node swagger:model AddNodeExporterOKBodyNodeExporter */ type AddNodeExporterOKBodyNodeExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go b/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go index 2598082ee0..b9defeaafd 100644 --- a/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_pmm_agent_parameters.go @@ -60,7 +60,6 @@ AddPMMAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddPMMAgentParams struct { - // Body. Body AddPMMAgentBody @@ -130,7 +129,6 @@ func (o *AddPMMAgentParams) SetBody(body AddPMMAgentBody) { // WriteToRequest writes these params to a swagger request func (o *AddPMMAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_pmm_agent_responses.go b/api/inventorypb/json/client/agents/add_pmm_agent_responses.go index 26f63a56b8..de99cda787 100644 --- a/api/inventorypb/json/client/agents/add_pmm_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_pmm_agent_responses.go @@ -60,12 +60,12 @@ type AddPMMAgentOK struct { func (o *AddPMMAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPMMAgent][%d] addPmmAgentOk %+v", 200, o.Payload) } + func (o *AddPMMAgentOK) GetPayload() *AddPMMAgentOKBody { return o.Payload } func (o *AddPMMAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPMMAgentOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddPMMAgentDefault) Code() int { func (o *AddPMMAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPMMAgent][%d] AddPMMAgent default %+v", o._statusCode, o.Payload) } + func (o *AddPMMAgentDefault) GetPayload() *AddPMMAgentDefaultBody { return o.Payload } func (o *AddPMMAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPMMAgentDefaultBody) // response payload @@ -123,7 +123,6 @@ AddPMMAgentBody add PMM agent body swagger:model AddPMMAgentBody */ type AddPMMAgentBody struct { - // Node identifier where this instance runs. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -164,7 +163,6 @@ AddPMMAgentDefaultBody add PMM agent default body swagger:model AddPMMAgentDefaultBody */ type AddPMMAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *AddPMMAgentDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddPMMAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *AddPMMAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -272,7 +267,6 @@ AddPMMAgentDefaultBodyDetailsItems0 add PMM agent default body details items0 swagger:model AddPMMAgentDefaultBodyDetailsItems0 */ type AddPMMAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ AddPMMAgentOKBody add PMM agent OK body swagger:model AddPMMAgentOKBody */ type AddPMMAgentOKBody struct { - // pmm agent PMMAgent *AddPMMAgentOKBodyPMMAgent `json:"pmm_agent,omitempty"` } @@ -363,7 +356,6 @@ func (o *AddPMMAgentOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddPMMAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -401,7 +393,6 @@ AddPMMAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model AddPMMAgentOKBodyPMMAgent */ type AddPMMAgentOKBodyPMMAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go b/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go index 7c99c11083..48999a85e6 100644 --- a/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_postgres_exporter_parameters.go @@ -60,7 +60,6 @@ AddPostgresExporterParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type AddPostgresExporterParams struct { - // Body. Body AddPostgresExporterBody @@ -130,7 +129,6 @@ func (o *AddPostgresExporterParams) SetBody(body AddPostgresExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddPostgresExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go b/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go index 7d1ce734b7..a443028e3f 100644 --- a/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_postgres_exporter_responses.go @@ -62,12 +62,12 @@ type AddPostgresExporterOK struct { func (o *AddPostgresExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPostgresExporter][%d] addPostgresExporterOk %+v", 200, o.Payload) } + func (o *AddPostgresExporterOK) GetPayload() *AddPostgresExporterOKBody { return o.Payload } func (o *AddPostgresExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgresExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddPostgresExporterDefault) Code() int { func (o *AddPostgresExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddPostgresExporter][%d] AddPostgresExporter default %+v", o._statusCode, o.Payload) } + func (o *AddPostgresExporterDefault) GetPayload() *AddPostgresExporterDefaultBody { return o.Payload } func (o *AddPostgresExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgresExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddPostgresExporterBody add postgres exporter body swagger:model AddPostgresExporterBody */ type AddPostgresExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -269,7 +268,6 @@ AddPostgresExporterDefaultBody add postgres exporter default body swagger:model AddPostgresExporterDefaultBody */ type AddPostgresExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -335,9 +333,7 @@ func (o *AddPostgresExporterDefaultBody) ContextValidate(ctx context.Context, fo } func (o *AddPostgresExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -348,7 +344,6 @@ func (o *AddPostgresExporterDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -377,7 +372,6 @@ AddPostgresExporterDefaultBodyDetailsItems0 add postgres exporter default body d swagger:model AddPostgresExporterDefaultBodyDetailsItems0 */ type AddPostgresExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -415,7 +409,6 @@ AddPostgresExporterOKBody add postgres exporter OK body swagger:model AddPostgresExporterOKBody */ type AddPostgresExporterOKBody struct { - // postgres exporter PostgresExporter *AddPostgresExporterOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` } @@ -468,7 +461,6 @@ func (o *AddPostgresExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddPostgresExporterOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -506,7 +498,6 @@ AddPostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or Co swagger:model AddPostgresExporterOKBodyPostgresExporter */ type AddPostgresExporterOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go index a483205bb7..1d26aff287 100644 --- a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_parameters.go @@ -60,7 +60,6 @@ AddProxySQLExporterParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type AddProxySQLExporterParams struct { - // Body. Body AddProxySQLExporterBody @@ -130,7 +129,6 @@ func (o *AddProxySQLExporterParams) SetBody(body AddProxySQLExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddProxySQLExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go index b9047f5b6d..dfedefda3c 100644 --- a/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_proxy_sql_exporter_responses.go @@ -62,12 +62,12 @@ type AddProxySQLExporterOK struct { func (o *AddProxySQLExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddProxySQLExporter][%d] addProxySqlExporterOk %+v", 200, o.Payload) } + func (o *AddProxySQLExporterOK) GetPayload() *AddProxySQLExporterOKBody { return o.Payload } func (o *AddProxySQLExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddProxySQLExporterDefault) Code() int { func (o *AddProxySQLExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddProxySQLExporter][%d] AddProxySQLExporter default %+v", o._statusCode, o.Payload) } + func (o *AddProxySQLExporterDefault) GetPayload() *AddProxySQLExporterDefaultBody { return o.Payload } func (o *AddProxySQLExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddProxySQLExporterBody add proxy SQL exporter body swagger:model AddProxySQLExporterBody */ type AddProxySQLExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -260,7 +259,6 @@ AddProxySQLExporterDefaultBody add proxy SQL exporter default body swagger:model AddProxySQLExporterDefaultBody */ type AddProxySQLExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -326,9 +324,7 @@ func (o *AddProxySQLExporterDefaultBody) ContextValidate(ctx context.Context, fo } func (o *AddProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -339,7 +335,6 @@ func (o *AddProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -368,7 +363,6 @@ AddProxySQLExporterDefaultBodyDetailsItems0 add proxy SQL exporter default body swagger:model AddProxySQLExporterDefaultBodyDetailsItems0 */ type AddProxySQLExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -406,7 +400,6 @@ AddProxySQLExporterOKBody add proxy SQL exporter OK body swagger:model AddProxySQLExporterOKBody */ type AddProxySQLExporterOKBody struct { - // proxysql exporter ProxysqlExporter *AddProxySQLExporterOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` } @@ -459,7 +452,6 @@ func (o *AddProxySQLExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *AddProxySQLExporterOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -497,7 +489,6 @@ AddProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Co swagger:model AddProxySQLExporterOKBodyProxysqlExporter */ type AddProxySQLExporterOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go index 240c207558..4ba6b76646 100644 --- a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_parameters.go @@ -60,7 +60,6 @@ AddQANMongoDBProfilerAgentParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type AddQANMongoDBProfilerAgentParams struct { - // Body. Body AddQANMongoDBProfilerAgentBody @@ -130,7 +129,6 @@ func (o *AddQANMongoDBProfilerAgentParams) SetBody(body AddQANMongoDBProfilerAge // WriteToRequest writes these params to a swagger request func (o *AddQANMongoDBProfilerAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go index f9ef037f41..4b43b3ab90 100644 --- a/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_mongo_db_profiler_agent_responses.go @@ -62,12 +62,12 @@ type AddQANMongoDBProfilerAgentOK struct { func (o *AddQANMongoDBProfilerAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMongoDBProfilerAgent][%d] addQanMongoDbProfilerAgentOk %+v", 200, o.Payload) } + func (o *AddQANMongoDBProfilerAgentOK) GetPayload() *AddQANMongoDBProfilerAgentOKBody { return o.Payload } func (o *AddQANMongoDBProfilerAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMongoDBProfilerAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANMongoDBProfilerAgentDefault) Code() int { func (o *AddQANMongoDBProfilerAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMongoDBProfilerAgent][%d] AddQANMongoDBProfilerAgent default %+v", o._statusCode, o.Payload) } + func (o *AddQANMongoDBProfilerAgentDefault) GetPayload() *AddQANMongoDBProfilerAgentDefaultBody { return o.Payload } func (o *AddQANMongoDBProfilerAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMongoDBProfilerAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ AddQANMongoDBProfilerAgentBody add QAN mongo DB profiler agent body swagger:model AddQANMongoDBProfilerAgentBody */ type AddQANMongoDBProfilerAgentBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -268,7 +267,6 @@ AddQANMongoDBProfilerAgentDefaultBody add QAN mongo DB profiler agent default bo swagger:model AddQANMongoDBProfilerAgentDefaultBody */ type AddQANMongoDBProfilerAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -334,9 +332,7 @@ func (o *AddQANMongoDBProfilerAgentDefaultBody) ContextValidate(ctx context.Cont } func (o *AddQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -347,7 +343,6 @@ func (o *AddQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx conte return err } } - } return nil @@ -376,7 +371,6 @@ AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 add QAN mongo DB profiler age swagger:model AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 */ type AddQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -414,7 +408,6 @@ AddQANMongoDBProfilerAgentOKBody add QAN mongo DB profiler agent OK body swagger:model AddQANMongoDBProfilerAgentOKBody */ type AddQANMongoDBProfilerAgentOKBody struct { - // qan mongodb profiler agent QANMongodbProfilerAgent *AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` } @@ -467,7 +460,6 @@ func (o *AddQANMongoDBProfilerAgentOKBody) ContextValidate(ctx context.Context, } func (o *AddQANMongoDBProfilerAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -505,7 +497,6 @@ AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent swagger:model AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent */ type AddQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go index 14f12e0d93..c96dd4f37b 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_parameters.go @@ -60,7 +60,6 @@ AddQANMySQLPerfSchemaAgentParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type AddQANMySQLPerfSchemaAgentParams struct { - // Body. Body AddQANMySQLPerfSchemaAgentBody @@ -130,7 +129,6 @@ func (o *AddQANMySQLPerfSchemaAgentParams) SetBody(body AddQANMySQLPerfSchemaAge // WriteToRequest writes these params to a swagger request func (o *AddQANMySQLPerfSchemaAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go index cf36b9844e..2ba5070113 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_perf_schema_agent_responses.go @@ -62,12 +62,12 @@ type AddQANMySQLPerfSchemaAgentOK struct { func (o *AddQANMySQLPerfSchemaAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLPerfSchemaAgent][%d] addQanMySqlPerfSchemaAgentOk %+v", 200, o.Payload) } + func (o *AddQANMySQLPerfSchemaAgentOK) GetPayload() *AddQANMySQLPerfSchemaAgentOKBody { return o.Payload } func (o *AddQANMySQLPerfSchemaAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLPerfSchemaAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANMySQLPerfSchemaAgentDefault) Code() int { func (o *AddQANMySQLPerfSchemaAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLPerfSchemaAgent][%d] AddQANMySQLPerfSchemaAgent default %+v", o._statusCode, o.Payload) } + func (o *AddQANMySQLPerfSchemaAgentDefault) GetPayload() *AddQANMySQLPerfSchemaAgentDefaultBody { return o.Payload } func (o *AddQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLPerfSchemaAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ AddQANMySQLPerfSchemaAgentBody add QAN my SQL perf schema agent body swagger:model AddQANMySQLPerfSchemaAgentBody */ type AddQANMySQLPerfSchemaAgentBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -266,7 +265,6 @@ AddQANMySQLPerfSchemaAgentDefaultBody add QAN my SQL perf schema agent default b swagger:model AddQANMySQLPerfSchemaAgentDefaultBody */ type AddQANMySQLPerfSchemaAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -332,9 +330,7 @@ func (o *AddQANMySQLPerfSchemaAgentDefaultBody) ContextValidate(ctx context.Cont } func (o *AddQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -345,7 +341,6 @@ func (o *AddQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx conte return err } } - } return nil @@ -374,7 +369,6 @@ AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 add QAN my SQL perf schema ag swagger:model AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 */ type AddQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -412,7 +406,6 @@ AddQANMySQLPerfSchemaAgentOKBody add QAN my SQL perf schema agent OK body swagger:model AddQANMySQLPerfSchemaAgentOKBody */ type AddQANMySQLPerfSchemaAgentOKBody struct { - // qan mysql perfschema agent QANMysqlPerfschemaAgent *AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` } @@ -465,7 +458,6 @@ func (o *AddQANMySQLPerfSchemaAgentOKBody) ContextValidate(ctx context.Context, } func (o *AddQANMySQLPerfSchemaAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -503,7 +495,6 @@ AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent swagger:model AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent */ type AddQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go index 6f632e00e1..f1f42c5244 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_parameters.go @@ -60,7 +60,6 @@ AddQANMySQLSlowlogAgentParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type AddQANMySQLSlowlogAgentParams struct { - // Body. Body AddQANMySQLSlowlogAgentBody @@ -130,7 +129,6 @@ func (o *AddQANMySQLSlowlogAgentParams) SetBody(body AddQANMySQLSlowlogAgentBody // WriteToRequest writes these params to a swagger request func (o *AddQANMySQLSlowlogAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go index 19c6ee6831..d0164fe1e0 100644 --- a/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_my_sql_slowlog_agent_responses.go @@ -62,12 +62,12 @@ type AddQANMySQLSlowlogAgentOK struct { func (o *AddQANMySQLSlowlogAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLSlowlogAgent][%d] addQanMySqlSlowlogAgentOk %+v", 200, o.Payload) } + func (o *AddQANMySQLSlowlogAgentOK) GetPayload() *AddQANMySQLSlowlogAgentOKBody { return o.Payload } func (o *AddQANMySQLSlowlogAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLSlowlogAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANMySQLSlowlogAgentDefault) Code() int { func (o *AddQANMySQLSlowlogAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANMySQLSlowlogAgent][%d] AddQANMySQLSlowlogAgent default %+v", o._statusCode, o.Payload) } + func (o *AddQANMySQLSlowlogAgentDefault) GetPayload() *AddQANMySQLSlowlogAgentDefaultBody { return o.Payload } func (o *AddQANMySQLSlowlogAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANMySQLSlowlogAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ AddQANMySQLSlowlogAgentBody add QAN my SQL slowlog agent body swagger:model AddQANMySQLSlowlogAgentBody */ type AddQANMySQLSlowlogAgentBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -270,7 +269,6 @@ AddQANMySQLSlowlogAgentDefaultBody add QAN my SQL slowlog agent default body swagger:model AddQANMySQLSlowlogAgentDefaultBody */ type AddQANMySQLSlowlogAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -336,9 +334,7 @@ func (o *AddQANMySQLSlowlogAgentDefaultBody) ContextValidate(ctx context.Context } func (o *AddQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -349,7 +345,6 @@ func (o *AddQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context. return err } } - } return nil @@ -378,7 +373,6 @@ AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 add QAN my SQL slowlog agent def swagger:model AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 */ type AddQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -416,7 +410,6 @@ AddQANMySQLSlowlogAgentOKBody add QAN my SQL slowlog agent OK body swagger:model AddQANMySQLSlowlogAgentOKBody */ type AddQANMySQLSlowlogAgentOKBody struct { - // qan mysql slowlog agent QANMysqlSlowlogAgent *AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` } @@ -469,7 +462,6 @@ func (o *AddQANMySQLSlowlogAgentOKBody) ContextValidate(ctx context.Context, for } func (o *AddQANMySQLSlowlogAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -507,7 +499,6 @@ AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs with swagger:model AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent */ type AddQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go index 7f12076bb4..be2ca5ab96 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_parameters.go @@ -60,7 +60,6 @@ AddQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send to Typically these are written to a http.Request. */ type AddQANPostgreSQLPgStatMonitorAgentParams struct { - // Body. Body AddQANPostgreSQLPgStatMonitorAgentBody @@ -130,7 +129,6 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentParams) SetBody(body AddQANPostgreSQL // WriteToRequest writes these params to a swagger request func (o *AddQANPostgreSQLPgStatMonitorAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go index 417e96d977..6f8f6d40d6 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_stat_monitor_agent_responses.go @@ -62,12 +62,12 @@ type AddQANPostgreSQLPgStatMonitorAgentOK struct { func (o *AddQANPostgreSQLPgStatMonitorAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent][%d] addQanPostgreSqlPgStatMonitorAgentOk %+v", 200, o.Payload) } + func (o *AddQANPostgreSQLPgStatMonitorAgentOK) GetPayload() *AddQANPostgreSQLPgStatMonitorAgentOKBody { return o.Payload } func (o *AddQANPostgreSQLPgStatMonitorAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatMonitorAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) Code() int { func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatMonitorAgent][%d] AddQANPostgreSQLPgStatMonitorAgent default %+v", o._statusCode, o.Payload) } + func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) GetPayload() *AddQANPostgreSQLPgStatMonitorAgentDefaultBody { return o.Payload } func (o *AddQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatMonitorAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ AddQANPostgreSQLPgStatMonitorAgentBody add QAN postgre SQL pg stat monitor agent swagger:model AddQANPostgreSQLPgStatMonitorAgentBody */ type AddQANPostgreSQLPgStatMonitorAgentBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -266,7 +265,6 @@ AddQANPostgreSQLPgStatMonitorAgentDefaultBody add QAN postgre SQL pg stat monito swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBody */ type AddQANPostgreSQLPgStatMonitorAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -332,9 +330,7 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) ContextValidate(ctx cont } func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -345,7 +341,6 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(c return err } } - } return nil @@ -374,7 +369,6 @@ AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 add QAN postgre SQL p swagger:model AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 */ type AddQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -412,7 +406,6 @@ AddQANPostgreSQLPgStatMonitorAgentOKBody add QAN postgre SQL pg stat monitor age swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBody */ type AddQANPostgreSQLPgStatMonitorAgentOKBody struct { - // qan postgresql pgstatmonitor agent QANPostgresqlPgstatmonitorAgent *AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` } @@ -465,7 +458,6 @@ func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) ContextValidate(ctx context.C } func (o *AddQANPostgreSQLPgStatMonitorAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -503,7 +495,6 @@ AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostg swagger:model AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type AddQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go index b9cecfa0a9..6ed493954b 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_parameters.go @@ -60,7 +60,6 @@ AddQANPostgreSQLPgStatementsAgentParams contains all the parameters to send to t Typically these are written to a http.Request. */ type AddQANPostgreSQLPgStatementsAgentParams struct { - // Body. Body AddQANPostgreSQLPgStatementsAgentBody @@ -130,7 +129,6 @@ func (o *AddQANPostgreSQLPgStatementsAgentParams) SetBody(body AddQANPostgreSQLP // WriteToRequest writes these params to a swagger request func (o *AddQANPostgreSQLPgStatementsAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go index e5bbad2317..9f3dd6e74a 100644 --- a/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go +++ b/api/inventorypb/json/client/agents/add_qan_postgre_sql_pg_statements_agent_responses.go @@ -62,12 +62,12 @@ type AddQANPostgreSQLPgStatementsAgentOK struct { func (o *AddQANPostgreSQLPgStatementsAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent][%d] addQanPostgreSqlPgStatementsAgentOk %+v", 200, o.Payload) } + func (o *AddQANPostgreSQLPgStatementsAgentOK) GetPayload() *AddQANPostgreSQLPgStatementsAgentOKBody { return o.Payload } func (o *AddQANPostgreSQLPgStatementsAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatementsAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefault) Code() int { func (o *AddQANPostgreSQLPgStatementsAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddQANPostgreSQLPgStatementsAgent][%d] AddQANPostgreSQLPgStatementsAgent default %+v", o._statusCode, o.Payload) } + func (o *AddQANPostgreSQLPgStatementsAgentDefault) GetPayload() *AddQANPostgreSQLPgStatementsAgentDefaultBody { return o.Payload } func (o *AddQANPostgreSQLPgStatementsAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddQANPostgreSQLPgStatementsAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ AddQANPostgreSQLPgStatementsAgentBody add QAN postgre SQL pg statements agent bo swagger:model AddQANPostgreSQLPgStatementsAgentBody */ type AddQANPostgreSQLPgStatementsAgentBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -263,7 +262,6 @@ AddQANPostgreSQLPgStatementsAgentDefaultBody add QAN postgre SQL pg statements a swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBody */ type AddQANPostgreSQLPgStatementsAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -329,9 +327,7 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) ContextValidate(ctx conte } func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -342,7 +338,6 @@ func (o *AddQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ct return err } } - } return nil @@ -371,7 +366,6 @@ AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 add QAN postgre SQL pg swagger:model AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 */ type AddQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -409,7 +403,6 @@ AddQANPostgreSQLPgStatementsAgentOKBody add QAN postgre SQL pg statements agent swagger:model AddQANPostgreSQLPgStatementsAgentOKBody */ type AddQANPostgreSQLPgStatementsAgentOKBody struct { - // qan postgresql pgstatements agent QANPostgresqlPgstatementsAgent *AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` } @@ -462,7 +455,6 @@ func (o *AddQANPostgreSQLPgStatementsAgentOKBody) ContextValidate(ctx context.Co } func (o *AddQANPostgreSQLPgStatementsAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -500,7 +492,6 @@ AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgre swagger:model AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent */ type AddQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go b/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go index 9958797e27..f8cc041126 100644 --- a/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/add_rds_exporter_parameters.go @@ -60,7 +60,6 @@ AddRDSExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRDSExporterParams struct { - // Body. Body AddRDSExporterBody @@ -130,7 +129,6 @@ func (o *AddRDSExporterParams) SetBody(body AddRDSExporterBody) { // WriteToRequest writes these params to a swagger request func (o *AddRDSExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/add_rds_exporter_responses.go b/api/inventorypb/json/client/agents/add_rds_exporter_responses.go index 566f807feb..b1ca39b203 100644 --- a/api/inventorypb/json/client/agents/add_rds_exporter_responses.go +++ b/api/inventorypb/json/client/agents/add_rds_exporter_responses.go @@ -62,12 +62,12 @@ type AddRDSExporterOK struct { func (o *AddRDSExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddRDSExporter][%d] addRdsExporterOk %+v", 200, o.Payload) } + func (o *AddRDSExporterOK) GetPayload() *AddRDSExporterOKBody { return o.Payload } func (o *AddRDSExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRDSExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddRDSExporterDefault) Code() int { func (o *AddRDSExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/AddRDSExporter][%d] AddRDSExporter default %+v", o._statusCode, o.Payload) } + func (o *AddRDSExporterDefault) GetPayload() *AddRDSExporterDefaultBody { return o.Payload } func (o *AddRDSExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRDSExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ AddRDSExporterBody add RDS exporter body swagger:model AddRDSExporterBody */ type AddRDSExporterBody struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -254,7 +253,6 @@ AddRDSExporterDefaultBody add RDS exporter default body swagger:model AddRDSExporterDefaultBody */ type AddRDSExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -320,9 +318,7 @@ func (o *AddRDSExporterDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -333,7 +329,6 @@ func (o *AddRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -362,7 +357,6 @@ AddRDSExporterDefaultBodyDetailsItems0 add RDS exporter default body details ite swagger:model AddRDSExporterDefaultBodyDetailsItems0 */ type AddRDSExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -400,7 +394,6 @@ AddRDSExporterOKBody add RDS exporter OK body swagger:model AddRDSExporterOKBody */ type AddRDSExporterOKBody struct { - // rds exporter RDSExporter *AddRDSExporterOKBodyRDSExporter `json:"rds_exporter,omitempty"` } @@ -453,7 +446,6 @@ func (o *AddRDSExporterOKBody) ContextValidate(ctx context.Context, formats strf } func (o *AddRDSExporterOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -491,7 +483,6 @@ AddRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node an swagger:model AddRDSExporterOKBodyRDSExporter */ type AddRDSExporterOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go b/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go index b9707c910b..49727b75e6 100644 --- a/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_azure_database_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeAzureDatabaseExporterParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type ChangeAzureDatabaseExporterParams struct { - // Body. Body ChangeAzureDatabaseExporterBody @@ -130,7 +129,6 @@ func (o *ChangeAzureDatabaseExporterParams) SetBody(body ChangeAzureDatabaseExpo // WriteToRequest writes these params to a swagger request func (o *ChangeAzureDatabaseExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go b/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go index a4313bc9b2..c2ce3e1d82 100644 --- a/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_azure_database_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeAzureDatabaseExporterOK struct { func (o *ChangeAzureDatabaseExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeAzureDatabaseExporter][%d] changeAzureDatabaseExporterOk %+v", 200, o.Payload) } + func (o *ChangeAzureDatabaseExporterOK) GetPayload() *ChangeAzureDatabaseExporterOKBody { return o.Payload } func (o *ChangeAzureDatabaseExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeAzureDatabaseExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeAzureDatabaseExporterDefault) Code() int { func (o *ChangeAzureDatabaseExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeAzureDatabaseExporter][%d] ChangeAzureDatabaseExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeAzureDatabaseExporterDefault) GetPayload() *ChangeAzureDatabaseExporterDefaultBody { return o.Payload } func (o *ChangeAzureDatabaseExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeAzureDatabaseExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeAzureDatabaseExporterBody change azure database exporter body swagger:model ChangeAzureDatabaseExporterBody */ type ChangeAzureDatabaseExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeAzureDatabaseExporterBody) ContextValidate(ctx context.Context, f } func (o *ChangeAzureDatabaseExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeAzureDatabaseExporterDefaultBody change azure database exporter default bo swagger:model ChangeAzureDatabaseExporterDefaultBody */ type ChangeAzureDatabaseExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeAzureDatabaseExporterDefaultBody) ContextValidate(ctx context.Con } func (o *ChangeAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeAzureDatabaseExporterDefaultBody) contextValidateDetails(ctx cont return err } } - } return nil @@ -327,7 +321,6 @@ ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 change azure database export swagger:model ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 */ type ChangeAzureDatabaseExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeAzureDatabaseExporterOKBody change azure database exporter OK body swagger:model ChangeAzureDatabaseExporterOKBody */ type ChangeAzureDatabaseExporterOKBody struct { - // azure database exporter AzureDatabaseExporter *ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeAzureDatabaseExporterOKBody) ContextValidate(ctx context.Context, } func (o *ChangeAzureDatabaseExporterOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter AzureDatabaseExporter run swagger:model ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter */ type ChangeAzureDatabaseExporterOKBodyAzureDatabaseExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -660,7 +650,6 @@ ChangeAzureDatabaseExporterParamsBodyCommon ChangeCommonAgentParams contains par swagger:model ChangeAzureDatabaseExporterParamsBodyCommon */ type ChangeAzureDatabaseExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_external_exporter_parameters.go b/api/inventorypb/json/client/agents/change_external_exporter_parameters.go index 706c60c9fe..96ed75e52e 100644 --- a/api/inventorypb/json/client/agents/change_external_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_external_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeExternalExporterParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ChangeExternalExporterParams struct { - // Body. Body ChangeExternalExporterBody @@ -130,7 +129,6 @@ func (o *ChangeExternalExporterParams) SetBody(body ChangeExternalExporterBody) // WriteToRequest writes these params to a swagger request func (o *ChangeExternalExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_external_exporter_responses.go b/api/inventorypb/json/client/agents/change_external_exporter_responses.go index 9066e45afa..15dc5e5a58 100644 --- a/api/inventorypb/json/client/agents/change_external_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_external_exporter_responses.go @@ -60,12 +60,12 @@ type ChangeExternalExporterOK struct { func (o *ChangeExternalExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeExternalExporter][%d] changeExternalExporterOk %+v", 200, o.Payload) } + func (o *ChangeExternalExporterOK) GetPayload() *ChangeExternalExporterOKBody { return o.Payload } func (o *ChangeExternalExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeExternalExporterOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ChangeExternalExporterDefault) Code() int { func (o *ChangeExternalExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeExternalExporter][%d] ChangeExternalExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeExternalExporterDefault) GetPayload() *ChangeExternalExporterDefaultBody { return o.Payload } func (o *ChangeExternalExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeExternalExporterDefaultBody) // response payload @@ -123,7 +123,6 @@ ChangeExternalExporterBody change external exporter body swagger:model ChangeExternalExporterBody */ type ChangeExternalExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -179,7 +178,6 @@ func (o *ChangeExternalExporterBody) ContextValidate(ctx context.Context, format } func (o *ChangeExternalExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -217,7 +215,6 @@ ChangeExternalExporterDefaultBody change external exporter default body swagger:model ChangeExternalExporterDefaultBody */ type ChangeExternalExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -283,9 +280,7 @@ func (o *ChangeExternalExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeExternalExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -296,7 +291,6 @@ func (o *ChangeExternalExporterDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -325,7 +319,6 @@ ChangeExternalExporterDefaultBodyDetailsItems0 change external exporter default swagger:model ChangeExternalExporterDefaultBodyDetailsItems0 */ type ChangeExternalExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +356,6 @@ ChangeExternalExporterOKBody change external exporter OK body swagger:model ChangeExternalExporterOKBody */ type ChangeExternalExporterOKBody struct { - // external exporter ExternalExporter *ChangeExternalExporterOKBodyExternalExporter `json:"external_exporter,omitempty"` } @@ -416,7 +408,6 @@ func (o *ChangeExternalExporterOKBody) ContextValidate(ctx context.Context, form } func (o *ChangeExternalExporterOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -454,7 +445,6 @@ ChangeExternalExporterOKBodyExternalExporter ExternalExporter runs on any Node t swagger:model ChangeExternalExporterOKBodyExternalExporter */ type ChangeExternalExporterOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -522,7 +512,6 @@ ChangeExternalExporterParamsBodyCommon ChangeCommonAgentParams contains paramete swagger:model ChangeExternalExporterParamsBodyCommon */ type ChangeExternalExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go b/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go index c590bfc347..dfa26df26f 100644 --- a/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_mongo_db_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeMongoDBExporterParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type ChangeMongoDBExporterParams struct { - // Body. Body ChangeMongoDBExporterBody @@ -130,7 +129,6 @@ func (o *ChangeMongoDBExporterParams) SetBody(body ChangeMongoDBExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeMongoDBExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go b/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go index 9b0c0a7ec3..3e9fd507dc 100644 --- a/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_mongo_db_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeMongoDBExporterOK struct { func (o *ChangeMongoDBExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMongoDBExporter][%d] changeMongoDbExporterOk %+v", 200, o.Payload) } + func (o *ChangeMongoDBExporterOK) GetPayload() *ChangeMongoDBExporterOKBody { return o.Payload } func (o *ChangeMongoDBExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeMongoDBExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeMongoDBExporterDefault) Code() int { func (o *ChangeMongoDBExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMongoDBExporter][%d] ChangeMongoDBExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeMongoDBExporterDefault) GetPayload() *ChangeMongoDBExporterDefaultBody { return o.Payload } func (o *ChangeMongoDBExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeMongoDBExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeMongoDBExporterBody change mongo DB exporter body swagger:model ChangeMongoDBExporterBody */ type ChangeMongoDBExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeMongoDBExporterBody) ContextValidate(ctx context.Context, formats } func (o *ChangeMongoDBExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeMongoDBExporterDefaultBody change mongo DB exporter default body swagger:model ChangeMongoDBExporterDefaultBody */ type ChangeMongoDBExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeMongoDBExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeMongoDBExporterDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -327,7 +321,6 @@ ChangeMongoDBExporterDefaultBodyDetailsItems0 change mongo DB exporter default b swagger:model ChangeMongoDBExporterDefaultBodyDetailsItems0 */ type ChangeMongoDBExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeMongoDBExporterOKBody change mongo DB exporter OK body swagger:model ChangeMongoDBExporterOKBody */ type ChangeMongoDBExporterOKBody struct { - // mongodb exporter MongodbExporter *ChangeMongoDBExporterOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeMongoDBExporterOKBody) ContextValidate(ctx context.Context, forma } func (o *ChangeMongoDBExporterOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeMongoDBExporterOKBodyMongodbExporter MongoDBExporter runs on Generic or Co swagger:model ChangeMongoDBExporterOKBodyMongodbExporter */ type ChangeMongoDBExporterOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -676,7 +666,6 @@ ChangeMongoDBExporterParamsBodyCommon ChangeCommonAgentParams contains parameter swagger:model ChangeMongoDBExporterParamsBodyCommon */ type ChangeMongoDBExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go index 72bc19103d..c1662cbe59 100644 --- a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeMySQLdExporterParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ChangeMySQLdExporterParams struct { - // Body. Body ChangeMySQLdExporterBody @@ -130,7 +129,6 @@ func (o *ChangeMySQLdExporterParams) SetBody(body ChangeMySQLdExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeMySQLdExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go index 8c595cf0c5..5cd35eec21 100644 --- a/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_my_s_q_ld_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeMySQLdExporterOK struct { func (o *ChangeMySQLdExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMySQLdExporter][%d] changeMySQLdExporterOk %+v", 200, o.Payload) } + func (o *ChangeMySQLdExporterOK) GetPayload() *ChangeMySQLdExporterOKBody { return o.Payload } func (o *ChangeMySQLdExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeMySQLdExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeMySQLdExporterDefault) Code() int { func (o *ChangeMySQLdExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeMySQLdExporter][%d] ChangeMySQLdExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeMySQLdExporterDefault) GetPayload() *ChangeMySQLdExporterDefaultBody { return o.Payload } func (o *ChangeMySQLdExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeMySQLdExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeMySQLdExporterBody change my s q ld exporter body swagger:model ChangeMySQLdExporterBody */ type ChangeMySQLdExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeMySQLdExporterBody) ContextValidate(ctx context.Context, formats } func (o *ChangeMySQLdExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeMySQLdExporterDefaultBody change my s q ld exporter default body swagger:model ChangeMySQLdExporterDefaultBody */ type ChangeMySQLdExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeMySQLdExporterDefaultBody) ContextValidate(ctx context.Context, f } func (o *ChangeMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeMySQLdExporterDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -327,7 +321,6 @@ ChangeMySQLdExporterDefaultBodyDetailsItems0 change my s q ld exporter default b swagger:model ChangeMySQLdExporterDefaultBodyDetailsItems0 */ type ChangeMySQLdExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeMySQLdExporterOKBody change my s q ld exporter OK body swagger:model ChangeMySQLdExporterOKBody */ type ChangeMySQLdExporterOKBody struct { - // mysqld exporter MysqldExporter *ChangeMySQLdExporterOKBodyMysqldExporter `json:"mysqld_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeMySQLdExporterOKBody) ContextValidate(ctx context.Context, format } func (o *ChangeMySQLdExporterOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeMySQLdExporterOKBodyMysqldExporter MySQLdExporter runs on Generic or Conta swagger:model ChangeMySQLdExporterOKBodyMysqldExporter */ type ChangeMySQLdExporterOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -683,7 +673,6 @@ ChangeMySQLdExporterParamsBodyCommon ChangeCommonAgentParams contains parameters swagger:model ChangeMySQLdExporterParamsBodyCommon */ type ChangeMySQLdExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_node_exporter_parameters.go b/api/inventorypb/json/client/agents/change_node_exporter_parameters.go index d252cfc072..0006c8d16f 100644 --- a/api/inventorypb/json/client/agents/change_node_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_node_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeNodeExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeNodeExporterParams struct { - // Body. Body ChangeNodeExporterBody @@ -130,7 +129,6 @@ func (o *ChangeNodeExporterParams) SetBody(body ChangeNodeExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeNodeExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_node_exporter_responses.go b/api/inventorypb/json/client/agents/change_node_exporter_responses.go index b8fdc14bbc..ce55280d3f 100644 --- a/api/inventorypb/json/client/agents/change_node_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_node_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeNodeExporterOK struct { func (o *ChangeNodeExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeNodeExporter][%d] changeNodeExporterOk %+v", 200, o.Payload) } + func (o *ChangeNodeExporterOK) GetPayload() *ChangeNodeExporterOKBody { return o.Payload } func (o *ChangeNodeExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeNodeExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeNodeExporterDefault) Code() int { func (o *ChangeNodeExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeNodeExporter][%d] ChangeNodeExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeNodeExporterDefault) GetPayload() *ChangeNodeExporterDefaultBody { return o.Payload } func (o *ChangeNodeExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeNodeExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeNodeExporterBody change node exporter body swagger:model ChangeNodeExporterBody */ type ChangeNodeExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeNodeExporterBody) ContextValidate(ctx context.Context, formats st } func (o *ChangeNodeExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeNodeExporterDefaultBody change node exporter default body swagger:model ChangeNodeExporterDefaultBody */ type ChangeNodeExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeNodeExporterDefaultBody) ContextValidate(ctx context.Context, for } func (o *ChangeNodeExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeNodeExporterDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -327,7 +321,6 @@ ChangeNodeExporterDefaultBodyDetailsItems0 change node exporter default body det swagger:model ChangeNodeExporterDefaultBodyDetailsItems0 */ type ChangeNodeExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeNodeExporterOKBody change node exporter OK body swagger:model ChangeNodeExporterOKBody */ type ChangeNodeExporterOKBody struct { - // node exporter NodeExporter *ChangeNodeExporterOKBodyNodeExporter `json:"node_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeNodeExporterOKBody) ContextValidate(ctx context.Context, formats } func (o *ChangeNodeExporterOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeNodeExporterOKBodyNodeExporter NodeExporter runs on Generic or Container N swagger:model ChangeNodeExporterOKBodyNodeExporter */ type ChangeNodeExporterOKBodyNodeExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -654,7 +644,6 @@ ChangeNodeExporterParamsBodyCommon ChangeCommonAgentParams contains parameters t swagger:model ChangeNodeExporterParamsBodyCommon */ type ChangeNodeExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go b/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go index 6ea9423b53..b6a0e657ec 100644 --- a/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_postgres_exporter_parameters.go @@ -60,7 +60,6 @@ ChangePostgresExporterParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ChangePostgresExporterParams struct { - // Body. Body ChangePostgresExporterBody @@ -130,7 +129,6 @@ func (o *ChangePostgresExporterParams) SetBody(body ChangePostgresExporterBody) // WriteToRequest writes these params to a swagger request func (o *ChangePostgresExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go b/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go index 259d9b369b..f0bcb24ab9 100644 --- a/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_postgres_exporter_responses.go @@ -62,12 +62,12 @@ type ChangePostgresExporterOK struct { func (o *ChangePostgresExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangePostgresExporter][%d] changePostgresExporterOk %+v", 200, o.Payload) } + func (o *ChangePostgresExporterOK) GetPayload() *ChangePostgresExporterOKBody { return o.Payload } func (o *ChangePostgresExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangePostgresExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangePostgresExporterDefault) Code() int { func (o *ChangePostgresExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangePostgresExporter][%d] ChangePostgresExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangePostgresExporterDefault) GetPayload() *ChangePostgresExporterDefaultBody { return o.Payload } func (o *ChangePostgresExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangePostgresExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangePostgresExporterBody change postgres exporter body swagger:model ChangePostgresExporterBody */ type ChangePostgresExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangePostgresExporterBody) ContextValidate(ctx context.Context, format } func (o *ChangePostgresExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangePostgresExporterDefaultBody change postgres exporter default body swagger:model ChangePostgresExporterDefaultBody */ type ChangePostgresExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangePostgresExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangePostgresExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangePostgresExporterDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -327,7 +321,6 @@ ChangePostgresExporterDefaultBodyDetailsItems0 change postgres exporter default swagger:model ChangePostgresExporterDefaultBodyDetailsItems0 */ type ChangePostgresExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangePostgresExporterOKBody change postgres exporter OK body swagger:model ChangePostgresExporterOKBody */ type ChangePostgresExporterOKBody struct { - // postgres exporter PostgresExporter *ChangePostgresExporterOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangePostgresExporterOKBody) ContextValidate(ctx context.Context, form } func (o *ChangePostgresExporterOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangePostgresExporterOKBodyPostgresExporter PostgresExporter runs on Generic or swagger:model ChangePostgresExporterOKBodyPostgresExporter */ type ChangePostgresExporterOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -666,7 +656,6 @@ ChangePostgresExporterParamsBodyCommon ChangeCommonAgentParams contains paramete swagger:model ChangePostgresExporterParamsBodyCommon */ type ChangePostgresExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go index 1e9ecc1470..672412700e 100644 --- a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeProxySQLExporterParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ChangeProxySQLExporterParams struct { - // Body. Body ChangeProxySQLExporterBody @@ -130,7 +129,6 @@ func (o *ChangeProxySQLExporterParams) SetBody(body ChangeProxySQLExporterBody) // WriteToRequest writes these params to a swagger request func (o *ChangeProxySQLExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go index 13cc92558e..5aa9e41d5c 100644 --- a/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_proxy_sql_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeProxySQLExporterOK struct { func (o *ChangeProxySQLExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeProxySQLExporter][%d] changeProxySqlExporterOk %+v", 200, o.Payload) } + func (o *ChangeProxySQLExporterOK) GetPayload() *ChangeProxySQLExporterOKBody { return o.Payload } func (o *ChangeProxySQLExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeProxySQLExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeProxySQLExporterDefault) Code() int { func (o *ChangeProxySQLExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeProxySQLExporter][%d] ChangeProxySQLExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeProxySQLExporterDefault) GetPayload() *ChangeProxySQLExporterDefaultBody { return o.Payload } func (o *ChangeProxySQLExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeProxySQLExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeProxySQLExporterBody change proxy SQL exporter body swagger:model ChangeProxySQLExporterBody */ type ChangeProxySQLExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeProxySQLExporterBody) ContextValidate(ctx context.Context, format } func (o *ChangeProxySQLExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeProxySQLExporterDefaultBody change proxy SQL exporter default body swagger:model ChangeProxySQLExporterDefaultBody */ type ChangeProxySQLExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeProxySQLExporterDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeProxySQLExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeProxySQLExporterDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -327,7 +321,6 @@ ChangeProxySQLExporterDefaultBodyDetailsItems0 change proxy SQL exporter default swagger:model ChangeProxySQLExporterDefaultBodyDetailsItems0 */ type ChangeProxySQLExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeProxySQLExporterOKBody change proxy SQL exporter OK body swagger:model ChangeProxySQLExporterOKBody */ type ChangeProxySQLExporterOKBody struct { - // proxysql exporter ProxysqlExporter *ChangeProxySQLExporterOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeProxySQLExporterOKBody) ContextValidate(ctx context.Context, form } func (o *ChangeProxySQLExporterOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeProxySQLExporterOKBodyProxysqlExporter ProxySQLExporter runs on Generic or swagger:model ChangeProxySQLExporterOKBodyProxysqlExporter */ type ChangeProxySQLExporterOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -666,7 +656,6 @@ ChangeProxySQLExporterParamsBodyCommon ChangeCommonAgentParams contains paramete swagger:model ChangeProxySQLExporterParamsBodyCommon */ type ChangeProxySQLExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go index c318d3dd2b..474f009ca3 100644 --- a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_parameters.go @@ -60,7 +60,6 @@ ChangeQANMongoDBProfilerAgentParams contains all the parameters to send to the A Typically these are written to a http.Request. */ type ChangeQANMongoDBProfilerAgentParams struct { - // Body. Body ChangeQANMongoDBProfilerAgentBody @@ -130,7 +129,6 @@ func (o *ChangeQANMongoDBProfilerAgentParams) SetBody(body ChangeQANMongoDBProfi // WriteToRequest writes these params to a swagger request func (o *ChangeQANMongoDBProfilerAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go index b506c45b27..99ed7e54f3 100644 --- a/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_mongo_db_profiler_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANMongoDBProfilerAgentOK struct { func (o *ChangeQANMongoDBProfilerAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMongoDBProfilerAgent][%d] changeQanMongoDbProfilerAgentOk %+v", 200, o.Payload) } + func (o *ChangeQANMongoDBProfilerAgentOK) GetPayload() *ChangeQANMongoDBProfilerAgentOKBody { return o.Payload } func (o *ChangeQANMongoDBProfilerAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANMongoDBProfilerAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANMongoDBProfilerAgentDefault) Code() int { func (o *ChangeQANMongoDBProfilerAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMongoDBProfilerAgent][%d] ChangeQANMongoDBProfilerAgent default %+v", o._statusCode, o.Payload) } + func (o *ChangeQANMongoDBProfilerAgentDefault) GetPayload() *ChangeQANMongoDBProfilerAgentDefaultBody { return o.Payload } func (o *ChangeQANMongoDBProfilerAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANMongoDBProfilerAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeQANMongoDBProfilerAgentBody change QAN mongo DB profiler agent body swagger:model ChangeQANMongoDBProfilerAgentBody */ type ChangeQANMongoDBProfilerAgentBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeQANMongoDBProfilerAgentBody) ContextValidate(ctx context.Context, } func (o *ChangeQANMongoDBProfilerAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeQANMongoDBProfilerAgentDefaultBody change QAN mongo DB profiler agent defa swagger:model ChangeQANMongoDBProfilerAgentDefaultBody */ type ChangeQANMongoDBProfilerAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeQANMongoDBProfilerAgentDefaultBody) ContextValidate(ctx context.C } func (o *ChangeQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeQANMongoDBProfilerAgentDefaultBody) contextValidateDetails(ctx co return err } } - } return nil @@ -327,7 +321,6 @@ ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 change QAN mongo DB profil swagger:model ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 */ type ChangeQANMongoDBProfilerAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeQANMongoDBProfilerAgentOKBody change QAN mongo DB profiler agent OK body swagger:model ChangeQANMongoDBProfilerAgentOKBody */ type ChangeQANMongoDBProfilerAgentOKBody struct { - // qan mongodb profiler agent QANMongodbProfilerAgent *ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent `json:"qan_mongodb_profiler_agent,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeQANMongoDBProfilerAgentOKBody) ContextValidate(ctx context.Contex } func (o *ChangeQANMongoDBProfilerAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAge swagger:model ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent */ type ChangeQANMongoDBProfilerAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -657,7 +647,6 @@ ChangeQANMongoDBProfilerAgentParamsBodyCommon ChangeCommonAgentParams contains p swagger:model ChangeQANMongoDBProfilerAgentParamsBodyCommon */ type ChangeQANMongoDBProfilerAgentParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go index d00ede7b82..c5c7f64dc9 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_parameters.go @@ -60,7 +60,6 @@ ChangeQANMySQLPerfSchemaAgentParams contains all the parameters to send to the A Typically these are written to a http.Request. */ type ChangeQANMySQLPerfSchemaAgentParams struct { - // Body. Body ChangeQANMySQLPerfSchemaAgentBody @@ -130,7 +129,6 @@ func (o *ChangeQANMySQLPerfSchemaAgentParams) SetBody(body ChangeQANMySQLPerfSch // WriteToRequest writes these params to a swagger request func (o *ChangeQANMySQLPerfSchemaAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go index f521a9fac2..6ba7c53a42 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_perf_schema_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANMySQLPerfSchemaAgentOK struct { func (o *ChangeQANMySQLPerfSchemaAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent][%d] changeQanMySqlPerfSchemaAgentOk %+v", 200, o.Payload) } + func (o *ChangeQANMySQLPerfSchemaAgentOK) GetPayload() *ChangeQANMySQLPerfSchemaAgentOKBody { return o.Payload } func (o *ChangeQANMySQLPerfSchemaAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANMySQLPerfSchemaAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefault) Code() int { func (o *ChangeQANMySQLPerfSchemaAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLPerfSchemaAgent][%d] ChangeQANMySQLPerfSchemaAgent default %+v", o._statusCode, o.Payload) } + func (o *ChangeQANMySQLPerfSchemaAgentDefault) GetPayload() *ChangeQANMySQLPerfSchemaAgentDefaultBody { return o.Payload } func (o *ChangeQANMySQLPerfSchemaAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANMySQLPerfSchemaAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeQANMySQLPerfSchemaAgentBody change QAN my SQL perf schema agent body swagger:model ChangeQANMySQLPerfSchemaAgentBody */ type ChangeQANMySQLPerfSchemaAgentBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeQANMySQLPerfSchemaAgentBody) ContextValidate(ctx context.Context, } func (o *ChangeQANMySQLPerfSchemaAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeQANMySQLPerfSchemaAgentDefaultBody change QAN my SQL perf schema agent def swagger:model ChangeQANMySQLPerfSchemaAgentDefaultBody */ type ChangeQANMySQLPerfSchemaAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) ContextValidate(ctx context.C } func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeQANMySQLPerfSchemaAgentDefaultBody) contextValidateDetails(ctx co return err } } - } return nil @@ -327,7 +321,6 @@ ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 change QAN my SQL perf sch swagger:model ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 */ type ChangeQANMySQLPerfSchemaAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeQANMySQLPerfSchemaAgentOKBody change QAN my SQL perf schema agent OK body swagger:model ChangeQANMySQLPerfSchemaAgentOKBody */ type ChangeQANMySQLPerfSchemaAgentOKBody struct { - // qan mysql perfschema agent QANMysqlPerfschemaAgent *ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent `json:"qan_mysql_perfschema_agent,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeQANMySQLPerfSchemaAgentOKBody) ContextValidate(ctx context.Contex } func (o *ChangeQANMySQLPerfSchemaAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAge swagger:model ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent */ type ChangeQANMySQLPerfSchemaAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -672,7 +662,6 @@ ChangeQANMySQLPerfSchemaAgentParamsBodyCommon ChangeCommonAgentParams contains p swagger:model ChangeQANMySQLPerfSchemaAgentParamsBodyCommon */ type ChangeQANMySQLPerfSchemaAgentParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go index 2fde2c4d15..dbbe017f33 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_parameters.go @@ -60,7 +60,6 @@ ChangeQANMySQLSlowlogAgentParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type ChangeQANMySQLSlowlogAgentParams struct { - // Body. Body ChangeQANMySQLSlowlogAgentBody @@ -130,7 +129,6 @@ func (o *ChangeQANMySQLSlowlogAgentParams) SetBody(body ChangeQANMySQLSlowlogAge // WriteToRequest writes these params to a swagger request func (o *ChangeQANMySQLSlowlogAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go index fb7c8a534e..7ba38d2d40 100644 --- a/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_my_sql_slowlog_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANMySQLSlowlogAgentOK struct { func (o *ChangeQANMySQLSlowlogAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLSlowlogAgent][%d] changeQanMySqlSlowlogAgentOk %+v", 200, o.Payload) } + func (o *ChangeQANMySQLSlowlogAgentOK) GetPayload() *ChangeQANMySQLSlowlogAgentOKBody { return o.Payload } func (o *ChangeQANMySQLSlowlogAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANMySQLSlowlogAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANMySQLSlowlogAgentDefault) Code() int { func (o *ChangeQANMySQLSlowlogAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANMySQLSlowlogAgent][%d] ChangeQANMySQLSlowlogAgent default %+v", o._statusCode, o.Payload) } + func (o *ChangeQANMySQLSlowlogAgentDefault) GetPayload() *ChangeQANMySQLSlowlogAgentDefaultBody { return o.Payload } func (o *ChangeQANMySQLSlowlogAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANMySQLSlowlogAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeQANMySQLSlowlogAgentBody change QAN my SQL slowlog agent body swagger:model ChangeQANMySQLSlowlogAgentBody */ type ChangeQANMySQLSlowlogAgentBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeQANMySQLSlowlogAgentBody) ContextValidate(ctx context.Context, fo } func (o *ChangeQANMySQLSlowlogAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeQANMySQLSlowlogAgentDefaultBody change QAN my SQL slowlog agent default bo swagger:model ChangeQANMySQLSlowlogAgentDefaultBody */ type ChangeQANMySQLSlowlogAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeQANMySQLSlowlogAgentDefaultBody) ContextValidate(ctx context.Cont } func (o *ChangeQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeQANMySQLSlowlogAgentDefaultBody) contextValidateDetails(ctx conte return err } } - } return nil @@ -327,7 +321,6 @@ ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 change QAN my SQL slowlog age swagger:model ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 */ type ChangeQANMySQLSlowlogAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeQANMySQLSlowlogAgentOKBody change QAN my SQL slowlog agent OK body swagger:model ChangeQANMySQLSlowlogAgentOKBody */ type ChangeQANMySQLSlowlogAgentOKBody struct { - // qan mysql slowlog agent QANMysqlSlowlogAgent *ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent `json:"qan_mysql_slowlog_agent,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeQANMySQLSlowlogAgentOKBody) ContextValidate(ctx context.Context, } func (o *ChangeQANMySQLSlowlogAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs w swagger:model ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent */ type ChangeQANMySQLSlowlogAgentOKBodyQANMysqlSlowlogAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -675,7 +665,6 @@ ChangeQANMySQLSlowlogAgentParamsBodyCommon ChangeCommonAgentParams contains para swagger:model ChangeQANMySQLSlowlogAgentParamsBodyCommon */ type ChangeQANMySQLSlowlogAgentParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go index ec06fe6545..b68464b06e 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_parameters.go @@ -60,7 +60,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentParams contains all the parameters to send Typically these are written to a http.Request. */ type ChangeQANPostgreSQLPgStatMonitorAgentParams struct { - // Body. Body ChangeQANPostgreSQLPgStatMonitorAgentBody @@ -130,7 +129,6 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentParams) SetBody(body ChangeQANPost // WriteToRequest writes these params to a swagger request func (o *ChangeQANPostgreSQLPgStatMonitorAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go index 7bb2d46091..65408d237e 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_stat_monitor_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANPostgreSQLPgStatMonitorAgentOK struct { func (o *ChangeQANPostgreSQLPgStatMonitorAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent][%d] changeQanPostgreSqlPgStatMonitorAgentOk %+v", 200, o.Payload) } + func (o *ChangeQANPostgreSQLPgStatMonitorAgentOK) GetPayload() *ChangeQANPostgreSQLPgStatMonitorAgentOKBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatMonitorAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANPostgreSQLPgStatMonitorAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) Code() int { func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatMonitorAgent][%d] ChangeQANPostgreSQLPgStatMonitorAgent default %+v", o._statusCode, o.Payload) } + func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) GetPayload() *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentBody change QAN postgre SQL pg stat monitor swagger:model ChangeQANPostgreSQLPgStatMonitorAgentBody */ type ChangeQANPostgreSQLPgStatMonitorAgentBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentBody) ContextValidate(ctx context. } func (o *ChangeQANPostgreSQLPgStatMonitorAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody change QAN postgre SQL pg stat swagger:model ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody */ type ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) ContextValidate(ctx c } func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentDefaultBody) contextValidateDetail return err } } - } return nil @@ -327,7 +321,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 change QAN postgre swagger:model ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 */ type ChangeQANPostgreSQLPgStatMonitorAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentOKBody change QAN postgre SQL pg stat monit swagger:model ChangeQANPostgreSQLPgStatMonitorAgentOKBody */ type ChangeQANPostgreSQLPgStatMonitorAgentOKBody struct { - // qan postgresql pgstatmonitor agent QANPostgresqlPgstatmonitorAgent *ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent `json:"qan_postgresql_pgstatmonitor_agent,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeQANPostgreSQLPgStatMonitorAgentOKBody) ContextValidate(ctx contex } func (o *ChangeQANPostgreSQLPgStatMonitorAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPo swagger:model ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type ChangeQANPostgreSQLPgStatMonitorAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -663,7 +653,6 @@ ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon ChangeCommonAgentParams co swagger:model ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon */ type ChangeQANPostgreSQLPgStatMonitorAgentParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go index aadc876620..e298289e91 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_parameters.go @@ -60,7 +60,6 @@ ChangeQANPostgreSQLPgStatementsAgentParams contains all the parameters to send t Typically these are written to a http.Request. */ type ChangeQANPostgreSQLPgStatementsAgentParams struct { - // Body. Body ChangeQANPostgreSQLPgStatementsAgentBody @@ -130,7 +129,6 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentParams) SetBody(body ChangeQANPostg // WriteToRequest writes these params to a swagger request func (o *ChangeQANPostgreSQLPgStatementsAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go index f5e2f20069..8598081f6b 100644 --- a/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go +++ b/api/inventorypb/json/client/agents/change_qan_postgre_sql_pg_statements_agent_responses.go @@ -62,12 +62,12 @@ type ChangeQANPostgreSQLPgStatementsAgentOK struct { func (o *ChangeQANPostgreSQLPgStatementsAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent][%d] changeQanPostgreSqlPgStatementsAgentOk %+v", 200, o.Payload) } + func (o *ChangeQANPostgreSQLPgStatementsAgentOK) GetPayload() *ChangeQANPostgreSQLPgStatementsAgentOKBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatementsAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANPostgreSQLPgStatementsAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) Code() int { func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeQANPostgreSQLPgStatementsAgent][%d] ChangeQANPostgreSQLPgStatementsAgent default %+v", o._statusCode, o.Payload) } + func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) GetPayload() *ChangeQANPostgreSQLPgStatementsAgentDefaultBody { return o.Payload } func (o *ChangeQANPostgreSQLPgStatementsAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeQANPostgreSQLPgStatementsAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeQANPostgreSQLPgStatementsAgentBody change QAN postgre SQL pg statements ag swagger:model ChangeQANPostgreSQLPgStatementsAgentBody */ type ChangeQANPostgreSQLPgStatementsAgentBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentBody) ContextValidate(ctx context.C } func (o *ChangeQANPostgreSQLPgStatementsAgentBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeQANPostgreSQLPgStatementsAgentDefaultBody change QAN postgre SQL pg statem swagger:model ChangeQANPostgreSQLPgStatementsAgentDefaultBody */ type ChangeQANPostgreSQLPgStatementsAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) ContextValidate(ctx co } func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentDefaultBody) contextValidateDetails return err } } - } return nil @@ -327,7 +321,6 @@ ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 change QAN postgre swagger:model ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 */ type ChangeQANPostgreSQLPgStatementsAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeQANPostgreSQLPgStatementsAgentOKBody change QAN postgre SQL pg statements swagger:model ChangeQANPostgreSQLPgStatementsAgentOKBody */ type ChangeQANPostgreSQLPgStatementsAgentOKBody struct { - // qan postgresql pgstatements agent QANPostgresqlPgstatementsAgent *ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent `json:"qan_postgresql_pgstatements_agent,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeQANPostgreSQLPgStatementsAgentOKBody) ContextValidate(ctx context } func (o *ChangeQANPostgreSQLPgStatementsAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent QANPost swagger:model ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent */ type ChangeQANPostgreSQLPgStatementsAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -660,7 +650,6 @@ ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon ChangeCommonAgentParams con swagger:model ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon */ type ChangeQANPostgreSQLPgStatementsAgentParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go b/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go index f071fa78f7..a4c20a2fae 100644 --- a/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go +++ b/api/inventorypb/json/client/agents/change_rds_exporter_parameters.go @@ -60,7 +60,6 @@ ChangeRDSExporterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeRDSExporterParams struct { - // Body. Body ChangeRDSExporterBody @@ -130,7 +129,6 @@ func (o *ChangeRDSExporterParams) SetBody(body ChangeRDSExporterBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeRDSExporterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/change_rds_exporter_responses.go b/api/inventorypb/json/client/agents/change_rds_exporter_responses.go index 90510c9f12..53eb141dd9 100644 --- a/api/inventorypb/json/client/agents/change_rds_exporter_responses.go +++ b/api/inventorypb/json/client/agents/change_rds_exporter_responses.go @@ -62,12 +62,12 @@ type ChangeRDSExporterOK struct { func (o *ChangeRDSExporterOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeRDSExporter][%d] changeRdsExporterOk %+v", 200, o.Payload) } + func (o *ChangeRDSExporterOK) GetPayload() *ChangeRDSExporterOKBody { return o.Payload } func (o *ChangeRDSExporterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeRDSExporterOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ChangeRDSExporterDefault) Code() int { func (o *ChangeRDSExporterDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/ChangeRDSExporter][%d] ChangeRDSExporter default %+v", o._statusCode, o.Payload) } + func (o *ChangeRDSExporterDefault) GetPayload() *ChangeRDSExporterDefaultBody { return o.Payload } func (o *ChangeRDSExporterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeRDSExporterDefaultBody) // response payload @@ -125,7 +125,6 @@ ChangeRDSExporterBody change RDS exporter body swagger:model ChangeRDSExporterBody */ type ChangeRDSExporterBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -181,7 +180,6 @@ func (o *ChangeRDSExporterBody) ContextValidate(ctx context.Context, formats str } func (o *ChangeRDSExporterBody) contextValidateCommon(ctx context.Context, formats strfmt.Registry) error { - if o.Common != nil { if err := o.Common.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ChangeRDSExporterDefaultBody change RDS exporter default body swagger:model ChangeRDSExporterDefaultBody */ type ChangeRDSExporterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ChangeRDSExporterDefaultBody) ContextValidate(ctx context.Context, form } func (o *ChangeRDSExporterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ChangeRDSExporterDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -327,7 +321,6 @@ ChangeRDSExporterDefaultBodyDetailsItems0 change RDS exporter default body detai swagger:model ChangeRDSExporterDefaultBodyDetailsItems0 */ type ChangeRDSExporterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ChangeRDSExporterOKBody change RDS exporter OK body swagger:model ChangeRDSExporterOKBody */ type ChangeRDSExporterOKBody struct { - // rds exporter RDSExporter *ChangeRDSExporterOKBodyRDSExporter `json:"rds_exporter,omitempty"` } @@ -418,7 +410,6 @@ func (o *ChangeRDSExporterOKBody) ContextValidate(ctx context.Context, formats s } func (o *ChangeRDSExporterOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -456,7 +447,6 @@ ChangeRDSExporterOKBodyRDSExporter RDSExporter runs on Generic or Container Node swagger:model ChangeRDSExporterOKBodyRDSExporter */ type ChangeRDSExporterOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -663,7 +653,6 @@ ChangeRDSExporterParamsBodyCommon ChangeCommonAgentParams contains parameters th swagger:model ChangeRDSExporterParamsBodyCommon */ type ChangeRDSExporterParamsBodyCommon struct { - // Enable this Agent. Can't be used with disabled. Enable bool `json:"enable,omitempty"` diff --git a/api/inventorypb/json/client/agents/get_agent_logs_parameters.go b/api/inventorypb/json/client/agents/get_agent_logs_parameters.go index fba72db550..78082ad59f 100644 --- a/api/inventorypb/json/client/agents/get_agent_logs_parameters.go +++ b/api/inventorypb/json/client/agents/get_agent_logs_parameters.go @@ -60,7 +60,6 @@ GetAgentLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetAgentLogsParams struct { - // Body. Body GetAgentLogsBody @@ -130,7 +129,6 @@ func (o *GetAgentLogsParams) SetBody(body GetAgentLogsBody) { // WriteToRequest writes these params to a swagger request func (o *GetAgentLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/get_agent_logs_responses.go b/api/inventorypb/json/client/agents/get_agent_logs_responses.go index 06de9b93f9..71c2f38be2 100644 --- a/api/inventorypb/json/client/agents/get_agent_logs_responses.go +++ b/api/inventorypb/json/client/agents/get_agent_logs_responses.go @@ -60,12 +60,12 @@ type GetAgentLogsOK struct { func (o *GetAgentLogsOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/GetLogs][%d] getAgentLogsOk %+v", 200, o.Payload) } + func (o *GetAgentLogsOK) GetPayload() *GetAgentLogsOKBody { return o.Payload } func (o *GetAgentLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentLogsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetAgentLogsDefault) Code() int { func (o *GetAgentLogsDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/GetLogs][%d] GetAgentLogs default %+v", o._statusCode, o.Payload) } + func (o *GetAgentLogsDefault) GetPayload() *GetAgentLogsDefaultBody { return o.Payload } func (o *GetAgentLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentLogsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetAgentLogsBody get agent logs body swagger:model GetAgentLogsBody */ type GetAgentLogsBody struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -164,7 +163,6 @@ GetAgentLogsDefaultBody get agent logs default body swagger:model GetAgentLogsDefaultBody */ type GetAgentLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *GetAgentLogsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetAgentLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *GetAgentLogsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -272,7 +267,6 @@ GetAgentLogsDefaultBodyDetailsItems0 get agent logs default body details items0 swagger:model GetAgentLogsDefaultBodyDetailsItems0 */ type GetAgentLogsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ GetAgentLogsOKBody get agent logs OK body swagger:model GetAgentLogsOKBody */ type GetAgentLogsOKBody struct { - // logs Logs []string `json:"logs"` diff --git a/api/inventorypb/json/client/agents/get_agent_parameters.go b/api/inventorypb/json/client/agents/get_agent_parameters.go index 96d93864cd..f546eed4ef 100644 --- a/api/inventorypb/json/client/agents/get_agent_parameters.go +++ b/api/inventorypb/json/client/agents/get_agent_parameters.go @@ -60,7 +60,6 @@ GetAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetAgentParams struct { - // Body. Body GetAgentBody @@ -130,7 +129,6 @@ func (o *GetAgentParams) SetBody(body GetAgentBody) { // WriteToRequest writes these params to a swagger request func (o *GetAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/get_agent_responses.go b/api/inventorypb/json/client/agents/get_agent_responses.go index a0620fed12..d14219d731 100644 --- a/api/inventorypb/json/client/agents/get_agent_responses.go +++ b/api/inventorypb/json/client/agents/get_agent_responses.go @@ -62,12 +62,12 @@ type GetAgentOK struct { func (o *GetAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Get][%d] getAgentOk %+v", 200, o.Payload) } + func (o *GetAgentOK) GetPayload() *GetAgentOKBody { return o.Payload } func (o *GetAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetAgentDefault) Code() int { func (o *GetAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Get][%d] GetAgent default %+v", o._statusCode, o.Payload) } + func (o *GetAgentDefault) GetPayload() *GetAgentDefaultBody { return o.Payload } func (o *GetAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentDefaultBody) // response payload @@ -125,7 +125,6 @@ GetAgentBody get agent body swagger:model GetAgentBody */ type GetAgentBody struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` } @@ -163,7 +162,6 @@ GetAgentDefaultBody get agent default body swagger:model GetAgentDefaultBody */ type GetAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -229,9 +227,7 @@ func (o *GetAgentDefaultBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -242,7 +238,6 @@ func (o *GetAgentDefaultBody) contextValidateDetails(ctx context.Context, format return err } } - } return nil @@ -271,7 +266,6 @@ GetAgentDefaultBodyDetailsItems0 get agent default body details items0 swagger:model GetAgentDefaultBodyDetailsItems0 */ type GetAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -309,7 +303,6 @@ GetAgentOKBody get agent OK body swagger:model GetAgentOKBody */ type GetAgentOKBody struct { - // azure database exporter AzureDatabaseExporter *GetAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -782,7 +775,6 @@ func (o *GetAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *GetAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if err := o.AzureDatabaseExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -798,7 +790,6 @@ func (o *GetAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Contex } func (o *GetAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -814,7 +805,6 @@ func (o *GetAgentOKBody) contextValidateExternalExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -830,7 +820,6 @@ func (o *GetAgentOKBody) contextValidateMongodbExporter(ctx context.Context, for } func (o *GetAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -846,7 +835,6 @@ func (o *GetAgentOKBody) contextValidateMysqldExporter(ctx context.Context, form } func (o *GetAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if err := o.NodeExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -862,7 +850,6 @@ func (o *GetAgentOKBody) contextValidateNodeExporter(ctx context.Context, format } func (o *GetAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -878,7 +865,6 @@ func (o *GetAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats st } func (o *GetAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -894,7 +880,6 @@ func (o *GetAgentOKBody) contextValidatePostgresExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -910,7 +895,6 @@ func (o *GetAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if err := o.QANMongodbProfilerAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -926,7 +910,6 @@ func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if err := o.QANMysqlPerfschemaAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -942,7 +925,6 @@ func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if err := o.QANMysqlSlowlogAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -958,7 +940,6 @@ func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -974,7 +955,6 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx conte } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -990,7 +970,6 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx cont } func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1006,7 +985,6 @@ func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats } func (o *GetAgentOKBody) contextValidateVmagent(ctx context.Context, formats strfmt.Registry) error { - if o.Vmagent != nil { if err := o.Vmagent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1044,7 +1022,6 @@ GetAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Con swagger:model GetAgentOKBodyAzureDatabaseExporter */ type GetAgentOKBodyAzureDatabaseExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1248,7 +1225,6 @@ GetAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including swagger:model GetAgentOKBodyExternalExporter */ type GetAgentOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1316,7 +1292,6 @@ GetAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node swagger:model GetAgentOKBodyMongodbExporter */ type GetAgentOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1536,7 +1511,6 @@ GetAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node an swagger:model GetAgentOKBodyMysqldExporter */ type GetAgentOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1763,7 +1737,6 @@ GetAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and ex swagger:model GetAgentOKBodyNodeExporter */ type GetAgentOKBodyNodeExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1961,7 +1934,6 @@ GetAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model GetAgentOKBodyPMMAgent */ type GetAgentOKBodyPMMAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2011,7 +1983,6 @@ GetAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Nod swagger:model GetAgentOKBodyPostgresExporter */ type GetAgentOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2221,7 +2192,6 @@ GetAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Nod swagger:model GetAgentOKBodyProxysqlExporter */ type GetAgentOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2431,7 +2401,6 @@ GetAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMongodbProfilerAgent */ type GetAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2632,7 +2601,6 @@ GetAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMysqlPerfschemaAgent */ type GetAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2848,7 +2816,6 @@ GetAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent an swagger:model GetAgentOKBodyQANMysqlSlowlogAgent */ type GetAgentOKBodyQANMysqlSlowlogAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3067,7 +3034,6 @@ GetAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs swagger:model GetAgentOKBodyQANPostgresqlPgstatementsAgent */ type GetAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3271,7 +3237,6 @@ GetAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent ru swagger:model GetAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type GetAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3478,7 +3443,6 @@ GetAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and expo swagger:model GetAgentOKBodyRDSExporter */ type GetAgentOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3687,7 +3651,6 @@ GetAgentOKBodyVmagent VMAgent runs on Generic or Container Node alongside pmm-ag swagger:model GetAgentOKBodyVmagent */ type GetAgentOKBodyVmagent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/list_agents_parameters.go b/api/inventorypb/json/client/agents/list_agents_parameters.go index 9abf6624ab..45319cd49a 100644 --- a/api/inventorypb/json/client/agents/list_agents_parameters.go +++ b/api/inventorypb/json/client/agents/list_agents_parameters.go @@ -60,7 +60,6 @@ ListAgentsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListAgentsParams struct { - // Body. Body ListAgentsBody @@ -130,7 +129,6 @@ func (o *ListAgentsParams) SetBody(body ListAgentsBody) { // WriteToRequest writes these params to a swagger request func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/list_agents_responses.go b/api/inventorypb/json/client/agents/list_agents_responses.go index a04efd2734..0826dc2db8 100644 --- a/api/inventorypb/json/client/agents/list_agents_responses.go +++ b/api/inventorypb/json/client/agents/list_agents_responses.go @@ -62,12 +62,12 @@ type ListAgentsOK struct { func (o *ListAgentsOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/List][%d] listAgentsOk %+v", 200, o.Payload) } + func (o *ListAgentsOK) GetPayload() *ListAgentsOKBody { return o.Payload } func (o *ListAgentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListAgentsDefault) Code() int { func (o *ListAgentsDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/List][%d] ListAgents default %+v", o._statusCode, o.Payload) } + func (o *ListAgentsDefault) GetPayload() *ListAgentsDefaultBody { return o.Payload } func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentsDefaultBody) // response payload @@ -125,7 +125,6 @@ ListAgentsBody list agents body swagger:model ListAgentsBody */ type ListAgentsBody struct { - // Return only Agents started by this pmm-agent. // Exactly one of these parameters should be present: pmm_agent_id, node_id, service_id. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -269,7 +268,6 @@ ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -335,9 +333,7 @@ func (o *ListAgentsDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -348,7 +344,6 @@ func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -377,7 +372,6 @@ ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -415,7 +409,6 @@ ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { - // pmm agent PMMAgent []*ListAgentsOKBodyPMMAgentItems0 `json:"pmm_agent"` @@ -993,9 +986,7 @@ func (o *ListAgentsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListAgentsOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.PMMAgent); i++ { - if o.PMMAgent[i] != nil { if err := o.PMMAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1006,16 +997,13 @@ func (o *ListAgentsOKBody) contextValidatePMMAgent(ctx context.Context, formats return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateVMAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.VMAgent); i++ { - if o.VMAgent[i] != nil { if err := o.VMAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1026,16 +1014,13 @@ func (o *ListAgentsOKBody) contextValidateVMAgent(ctx context.Context, formats s return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.NodeExporter); i++ { - if o.NodeExporter[i] != nil { if err := o.NodeExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1046,16 +1031,13 @@ func (o *ListAgentsOKBody) contextValidateNodeExporter(ctx context.Context, form return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.MysqldExporter); i++ { - if o.MysqldExporter[i] != nil { if err := o.MysqldExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1066,16 +1048,13 @@ func (o *ListAgentsOKBody) contextValidateMysqldExporter(ctx context.Context, fo return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.MongodbExporter); i++ { - if o.MongodbExporter[i] != nil { if err := o.MongodbExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1086,16 +1065,13 @@ func (o *ListAgentsOKBody) contextValidateMongodbExporter(ctx context.Context, f return err } } - } return nil } func (o *ListAgentsOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.PostgresExporter); i++ { - if o.PostgresExporter[i] != nil { if err := o.PostgresExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1106,16 +1082,13 @@ func (o *ListAgentsOKBody) contextValidatePostgresExporter(ctx context.Context, return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ProxysqlExporter); i++ { - if o.ProxysqlExporter[i] != nil { if err := o.ProxysqlExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1126,16 +1099,13 @@ func (o *ListAgentsOKBody) contextValidateProxysqlExporter(ctx context.Context, return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QANMysqlPerfschemaAgent); i++ { - if o.QANMysqlPerfschemaAgent[i] != nil { if err := o.QANMysqlPerfschemaAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1146,16 +1116,13 @@ func (o *ListAgentsOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Co return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QANMysqlSlowlogAgent); i++ { - if o.QANMysqlSlowlogAgent[i] != nil { if err := o.QANMysqlSlowlogAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1166,16 +1133,13 @@ func (o *ListAgentsOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Conte return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QANMongodbProfilerAgent); i++ { - if o.QANMongodbProfilerAgent[i] != nil { if err := o.QANMongodbProfilerAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1186,16 +1150,13 @@ func (o *ListAgentsOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Co return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QANPostgresqlPgstatementsAgent); i++ { - if o.QANPostgresqlPgstatementsAgent[i] != nil { if err := o.QANPostgresqlPgstatementsAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1206,16 +1167,13 @@ func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx con return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QANPostgresqlPgstatmonitorAgent); i++ { - if o.QANPostgresqlPgstatmonitorAgent[i] != nil { if err := o.QANPostgresqlPgstatmonitorAgent[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1226,16 +1184,13 @@ func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx co return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.RDSExporter); i++ { - if o.RDSExporter[i] != nil { if err := o.RDSExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1246,16 +1201,13 @@ func (o *ListAgentsOKBody) contextValidateRDSExporter(ctx context.Context, forma return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ExternalExporter); i++ { - if o.ExternalExporter[i] != nil { if err := o.ExternalExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1266,16 +1218,13 @@ func (o *ListAgentsOKBody) contextValidateExternalExporter(ctx context.Context, return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.AzureDatabaseExporter); i++ { - if o.AzureDatabaseExporter[i] != nil { if err := o.AzureDatabaseExporter[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1286,7 +1235,6 @@ func (o *ListAgentsOKBody) contextValidateAzureDatabaseExporter(ctx context.Cont return err } } - } return nil @@ -1315,7 +1263,6 @@ ListAgentsOKBodyAzureDatabaseExporterItems0 AzureDatabaseExporter runs on Generi swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0 */ type ListAgentsOKBodyAzureDatabaseExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1519,7 +1466,6 @@ ListAgentsOKBodyExternalExporterItems0 ExternalExporter runs on any Node type, i swagger:model ListAgentsOKBodyExternalExporterItems0 */ type ListAgentsOKBodyExternalExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1587,7 +1533,6 @@ ListAgentsOKBodyMongodbExporterItems0 MongoDBExporter runs on Generic or Contain swagger:model ListAgentsOKBodyMongodbExporterItems0 */ type ListAgentsOKBodyMongodbExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1807,7 +1752,6 @@ ListAgentsOKBodyMysqldExporterItems0 MySQLdExporter runs on Generic or Container swagger:model ListAgentsOKBodyMysqldExporterItems0 */ type ListAgentsOKBodyMysqldExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2034,7 +1978,6 @@ ListAgentsOKBodyNodeExporterItems0 NodeExporter runs on Generic or Container Nod swagger:model ListAgentsOKBodyNodeExporterItems0 */ type ListAgentsOKBodyNodeExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2232,7 +2175,6 @@ ListAgentsOKBodyPMMAgentItems0 PMMAgent runs on Generic or Container Node. swagger:model ListAgentsOKBodyPMMAgentItems0 */ type ListAgentsOKBodyPMMAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2282,7 +2224,6 @@ ListAgentsOKBodyPostgresExporterItems0 PostgresExporter runs on Generic or Conta swagger:model ListAgentsOKBodyPostgresExporterItems0 */ type ListAgentsOKBodyPostgresExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2492,7 +2433,6 @@ ListAgentsOKBodyProxysqlExporterItems0 ProxySQLExporter runs on Generic or Conta swagger:model ListAgentsOKBodyProxysqlExporterItems0 */ type ListAgentsOKBodyProxysqlExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2702,7 +2642,6 @@ ListAgentsOKBodyQANMongodbProfilerAgentItems0 QANMongoDBProfilerAgent runs withi swagger:model ListAgentsOKBodyQANMongodbProfilerAgentItems0 */ type ListAgentsOKBodyQANMongodbProfilerAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2903,7 +2842,6 @@ ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 QANMySQLPerfSchemaAgent runs withi swagger:model ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 */ type ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3119,7 +3057,6 @@ ListAgentsOKBodyQANMysqlSlowlogAgentItems0 QANMySQLSlowlogAgent runs within pmm- swagger:model ListAgentsOKBodyQANMysqlSlowlogAgentItems0 */ type ListAgentsOKBodyQANMysqlSlowlogAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3338,7 +3275,6 @@ ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 QANPostgreSQLPgStatementsAg swagger:model ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3542,7 +3478,6 @@ ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 QANPostgreSQLPgStatMonitor swagger:model ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3749,7 +3684,6 @@ ListAgentsOKBodyRDSExporterItems0 RDSExporter runs on Generic or Container Node swagger:model ListAgentsOKBodyRDSExporterItems0 */ type ListAgentsOKBodyRDSExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3958,7 +3892,6 @@ ListAgentsOKBodyVMAgentItems0 VMAgent runs on Generic or Container Node alongsid swagger:model ListAgentsOKBodyVMAgentItems0 */ type ListAgentsOKBodyVMAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/inventorypb/json/client/agents/remove_agent_parameters.go b/api/inventorypb/json/client/agents/remove_agent_parameters.go index b7e75d496d..de9f9fb549 100644 --- a/api/inventorypb/json/client/agents/remove_agent_parameters.go +++ b/api/inventorypb/json/client/agents/remove_agent_parameters.go @@ -60,7 +60,6 @@ RemoveAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveAgentParams struct { - // Body. Body RemoveAgentBody @@ -130,7 +129,6 @@ func (o *RemoveAgentParams) SetBody(body RemoveAgentBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/agents/remove_agent_responses.go b/api/inventorypb/json/client/agents/remove_agent_responses.go index fea21242f6..00cb211405 100644 --- a/api/inventorypb/json/client/agents/remove_agent_responses.go +++ b/api/inventorypb/json/client/agents/remove_agent_responses.go @@ -60,12 +60,12 @@ type RemoveAgentOK struct { func (o *RemoveAgentOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Remove][%d] removeAgentOk %+v", 200, o.Payload) } + func (o *RemoveAgentOK) GetPayload() interface{} { return o.Payload } func (o *RemoveAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveAgentDefault) Code() int { func (o *RemoveAgentDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Agents/Remove][%d] RemoveAgent default %+v", o._statusCode, o.Payload) } + func (o *RemoveAgentDefault) GetPayload() *RemoveAgentDefaultBody { return o.Payload } func (o *RemoveAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveAgentDefaultBody) // response payload @@ -121,7 +121,6 @@ RemoveAgentBody remove agent body swagger:model RemoveAgentBody */ type RemoveAgentBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -162,7 +161,6 @@ RemoveAgentDefaultBody remove agent default body swagger:model RemoveAgentDefaultBody */ type RemoveAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *RemoveAgentDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *RemoveAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *RemoveAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -270,7 +265,6 @@ RemoveAgentDefaultBodyDetailsItems0 remove agent default body details items0 swagger:model RemoveAgentDefaultBodyDetailsItems0 */ type RemoveAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventorypb/json/client/nodes/add_container_node_parameters.go b/api/inventorypb/json/client/nodes/add_container_node_parameters.go index 42c5dfc5da..733d4a807b 100644 --- a/api/inventorypb/json/client/nodes/add_container_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_container_node_parameters.go @@ -60,7 +60,6 @@ AddContainerNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddContainerNodeParams struct { - // Body. Body AddContainerNodeBody @@ -130,7 +129,6 @@ func (o *AddContainerNodeParams) SetBody(body AddContainerNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddContainerNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_container_node_responses.go b/api/inventorypb/json/client/nodes/add_container_node_responses.go index 9213beea4f..1243859a12 100644 --- a/api/inventorypb/json/client/nodes/add_container_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_container_node_responses.go @@ -60,12 +60,12 @@ type AddContainerNodeOK struct { func (o *AddContainerNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddContainer][%d] addContainerNodeOk %+v", 200, o.Payload) } + func (o *AddContainerNodeOK) GetPayload() *AddContainerNodeOKBody { return o.Payload } func (o *AddContainerNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddContainerNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddContainerNodeDefault) Code() int { func (o *AddContainerNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddContainer][%d] AddContainerNode default %+v", o._statusCode, o.Payload) } + func (o *AddContainerNodeDefault) GetPayload() *AddContainerNodeDefaultBody { return o.Payload } func (o *AddContainerNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddContainerNodeDefaultBody) // response payload @@ -123,7 +123,6 @@ AddContainerNodeBody add container node body swagger:model AddContainerNodeBody */ type AddContainerNodeBody struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -185,7 +184,6 @@ AddContainerNodeDefaultBody add container node default body swagger:model AddContainerNodeDefaultBody */ type AddContainerNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -251,9 +249,7 @@ func (o *AddContainerNodeDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AddContainerNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -264,7 +260,6 @@ func (o *AddContainerNodeDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -293,7 +288,6 @@ AddContainerNodeDefaultBodyDetailsItems0 add container node default body details swagger:model AddContainerNodeDefaultBodyDetailsItems0 */ type AddContainerNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -331,7 +325,6 @@ AddContainerNodeOKBody add container node OK body swagger:model AddContainerNodeOKBody */ type AddContainerNodeOKBody struct { - // container Container *AddContainerNodeOKBodyContainer `json:"container,omitempty"` } @@ -384,7 +377,6 @@ func (o *AddContainerNodeOKBody) ContextValidate(ctx context.Context, formats st } func (o *AddContainerNodeOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { - if o.Container != nil { if err := o.Container.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -422,7 +414,6 @@ AddContainerNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model AddContainerNodeOKBodyContainer */ type AddContainerNodeOKBodyContainer struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_generic_node_parameters.go b/api/inventorypb/json/client/nodes/add_generic_node_parameters.go index b3f4ee12ae..b8a549c522 100644 --- a/api/inventorypb/json/client/nodes/add_generic_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_generic_node_parameters.go @@ -60,7 +60,6 @@ AddGenericNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddGenericNodeParams struct { - // Body. Body AddGenericNodeBody @@ -130,7 +129,6 @@ func (o *AddGenericNodeParams) SetBody(body AddGenericNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddGenericNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_generic_node_responses.go b/api/inventorypb/json/client/nodes/add_generic_node_responses.go index 3d526d312c..97378c70ad 100644 --- a/api/inventorypb/json/client/nodes/add_generic_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_generic_node_responses.go @@ -60,12 +60,12 @@ type AddGenericNodeOK struct { func (o *AddGenericNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddGeneric][%d] addGenericNodeOk %+v", 200, o.Payload) } + func (o *AddGenericNodeOK) GetPayload() *AddGenericNodeOKBody { return o.Payload } func (o *AddGenericNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddGenericNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddGenericNodeDefault) Code() int { func (o *AddGenericNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddGeneric][%d] AddGenericNode default %+v", o._statusCode, o.Payload) } + func (o *AddGenericNodeDefault) GetPayload() *AddGenericNodeDefaultBody { return o.Payload } func (o *AddGenericNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddGenericNodeDefaultBody) // response payload @@ -123,7 +123,6 @@ AddGenericNodeBody add generic node body swagger:model AddGenericNodeBody */ type AddGenericNodeBody struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -182,7 +181,6 @@ AddGenericNodeDefaultBody add generic node default body swagger:model AddGenericNodeDefaultBody */ type AddGenericNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -248,9 +246,7 @@ func (o *AddGenericNodeDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddGenericNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -261,7 +257,6 @@ func (o *AddGenericNodeDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -290,7 +285,6 @@ AddGenericNodeDefaultBodyDetailsItems0 add generic node default body details ite swagger:model AddGenericNodeDefaultBodyDetailsItems0 */ type AddGenericNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -328,7 +322,6 @@ AddGenericNodeOKBody add generic node OK body swagger:model AddGenericNodeOKBody */ type AddGenericNodeOKBody struct { - // generic Generic *AddGenericNodeOKBodyGeneric `json:"generic,omitempty"` } @@ -381,7 +374,6 @@ func (o *AddGenericNodeOKBody) ContextValidate(ctx context.Context, formats strf } func (o *AddGenericNodeOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { - if o.Generic != nil { if err := o.Generic.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -419,7 +411,6 @@ AddGenericNodeOKBodyGeneric GenericNode represents a bare metal server or virtua swagger:model AddGenericNodeOKBodyGeneric */ type AddGenericNodeOKBodyGeneric struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go index 0cd94f5bf4..a26c9249f8 100644 --- a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_parameters.go @@ -60,7 +60,6 @@ AddRemoteAzureDatabaseNodeParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type AddRemoteAzureDatabaseNodeParams struct { - // Body. Body AddRemoteAzureDatabaseNodeBody @@ -130,7 +129,6 @@ func (o *AddRemoteAzureDatabaseNodeParams) SetBody(body AddRemoteAzureDatabaseNo // WriteToRequest writes these params to a swagger request func (o *AddRemoteAzureDatabaseNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go index 3579eb5c3d..17c871dc64 100644 --- a/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_azure_database_node_responses.go @@ -60,12 +60,12 @@ type AddRemoteAzureDatabaseNodeOK struct { func (o *AddRemoteAzureDatabaseNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteAzureDatabase][%d] addRemoteAzureDatabaseNodeOk %+v", 200, o.Payload) } + func (o *AddRemoteAzureDatabaseNodeOK) GetPayload() *AddRemoteAzureDatabaseNodeOKBody { return o.Payload } func (o *AddRemoteAzureDatabaseNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRemoteAzureDatabaseNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddRemoteAzureDatabaseNodeDefault) Code() int { func (o *AddRemoteAzureDatabaseNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteAzureDatabase][%d] AddRemoteAzureDatabaseNode default %+v", o._statusCode, o.Payload) } + func (o *AddRemoteAzureDatabaseNodeDefault) GetPayload() *AddRemoteAzureDatabaseNodeDefaultBody { return o.Payload } func (o *AddRemoteAzureDatabaseNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRemoteAzureDatabaseNodeDefaultBody) // response payload @@ -123,7 +123,6 @@ AddRemoteAzureDatabaseNodeBody add remote azure database node body swagger:model AddRemoteAzureDatabaseNodeBody */ type AddRemoteAzureDatabaseNodeBody struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -176,7 +175,6 @@ AddRemoteAzureDatabaseNodeDefaultBody add remote azure database node default bod swagger:model AddRemoteAzureDatabaseNodeDefaultBody */ type AddRemoteAzureDatabaseNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -242,9 +240,7 @@ func (o *AddRemoteAzureDatabaseNodeDefaultBody) ContextValidate(ctx context.Cont } func (o *AddRemoteAzureDatabaseNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -255,7 +251,6 @@ func (o *AddRemoteAzureDatabaseNodeDefaultBody) contextValidateDetails(ctx conte return err } } - } return nil @@ -284,7 +279,6 @@ AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 add remote azure database nod swagger:model AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 */ type AddRemoteAzureDatabaseNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -322,7 +316,6 @@ AddRemoteAzureDatabaseNodeOKBody add remote azure database node OK body swagger:model AddRemoteAzureDatabaseNodeOKBody */ type AddRemoteAzureDatabaseNodeOKBody struct { - // remote azure database RemoteAzureDatabase *AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase `json:"remote_azure_database,omitempty"` } @@ -375,7 +368,6 @@ func (o *AddRemoteAzureDatabaseNodeOKBody) ContextValidate(ctx context.Context, } func (o *AddRemoteAzureDatabaseNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteAzureDatabase != nil { if err := o.RemoteAzureDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -413,7 +405,6 @@ AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode repr swagger:model AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase */ type AddRemoteAzureDatabaseNodeOKBodyRemoteAzureDatabase struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_remote_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_node_parameters.go index 4fc9c7f4dc..1cda2acb2a 100644 --- a/api/inventorypb/json/client/nodes/add_remote_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_node_parameters.go @@ -60,7 +60,6 @@ AddRemoteNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRemoteNodeParams struct { - // Body. Body AddRemoteNodeBody @@ -130,7 +129,6 @@ func (o *AddRemoteNodeParams) SetBody(body AddRemoteNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddRemoteNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_remote_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_node_responses.go index cfe69cdbb4..59afde419e 100644 --- a/api/inventorypb/json/client/nodes/add_remote_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_node_responses.go @@ -60,12 +60,12 @@ type AddRemoteNodeOK struct { func (o *AddRemoteNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemote][%d] addRemoteNodeOk %+v", 200, o.Payload) } + func (o *AddRemoteNodeOK) GetPayload() *AddRemoteNodeOKBody { return o.Payload } func (o *AddRemoteNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRemoteNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddRemoteNodeDefault) Code() int { func (o *AddRemoteNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemote][%d] AddRemoteNode default %+v", o._statusCode, o.Payload) } + func (o *AddRemoteNodeDefault) GetPayload() *AddRemoteNodeDefaultBody { return o.Payload } func (o *AddRemoteNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRemoteNodeDefaultBody) // response payload @@ -123,7 +123,6 @@ AddRemoteNodeBody add remote node body swagger:model AddRemoteNodeBody */ type AddRemoteNodeBody struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -176,7 +175,6 @@ AddRemoteNodeDefaultBody add remote node default body swagger:model AddRemoteNodeDefaultBody */ type AddRemoteNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -242,9 +240,7 @@ func (o *AddRemoteNodeDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddRemoteNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -255,7 +251,6 @@ func (o *AddRemoteNodeDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -284,7 +279,6 @@ AddRemoteNodeDefaultBodyDetailsItems0 add remote node default body details items swagger:model AddRemoteNodeDefaultBodyDetailsItems0 */ type AddRemoteNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -322,7 +316,6 @@ AddRemoteNodeOKBody add remote node OK body swagger:model AddRemoteNodeOKBody */ type AddRemoteNodeOKBody struct { - // remote Remote *AddRemoteNodeOKBodyRemote `json:"remote,omitempty"` } @@ -375,7 +368,6 @@ func (o *AddRemoteNodeOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddRemoteNodeOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { - if o.Remote != nil { if err := o.Remote.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -413,7 +405,6 @@ AddRemoteNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node swagger:model AddRemoteNodeOKBodyRemote */ type AddRemoteNodeOKBodyRemote struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go b/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go index c47491c1e2..24a2a4aee5 100644 --- a/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go +++ b/api/inventorypb/json/client/nodes/add_remote_rds_node_parameters.go @@ -60,7 +60,6 @@ AddRemoteRDSNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRemoteRDSNodeParams struct { - // Body. Body AddRemoteRDSNodeBody @@ -130,7 +129,6 @@ func (o *AddRemoteRDSNodeParams) SetBody(body AddRemoteRDSNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddRemoteRDSNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go b/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go index ce02b1afdf..614e87de2a 100644 --- a/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go +++ b/api/inventorypb/json/client/nodes/add_remote_rds_node_responses.go @@ -60,12 +60,12 @@ type AddRemoteRDSNodeOK struct { func (o *AddRemoteRDSNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteRDS][%d] addRemoteRdsNodeOk %+v", 200, o.Payload) } + func (o *AddRemoteRDSNodeOK) GetPayload() *AddRemoteRDSNodeOKBody { return o.Payload } func (o *AddRemoteRDSNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRemoteRDSNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddRemoteRDSNodeDefault) Code() int { func (o *AddRemoteRDSNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/AddRemoteRDS][%d] AddRemoteRDSNode default %+v", o._statusCode, o.Payload) } + func (o *AddRemoteRDSNodeDefault) GetPayload() *AddRemoteRDSNodeDefaultBody { return o.Payload } func (o *AddRemoteRDSNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRemoteRDSNodeDefaultBody) // response payload @@ -123,7 +123,6 @@ AddRemoteRDSNodeBody add remote RDS node body swagger:model AddRemoteRDSNodeBody */ type AddRemoteRDSNodeBody struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -176,7 +175,6 @@ AddRemoteRDSNodeDefaultBody add remote RDS node default body swagger:model AddRemoteRDSNodeDefaultBody */ type AddRemoteRDSNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -242,9 +240,7 @@ func (o *AddRemoteRDSNodeDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AddRemoteRDSNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -255,7 +251,6 @@ func (o *AddRemoteRDSNodeDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -284,7 +279,6 @@ AddRemoteRDSNodeDefaultBodyDetailsItems0 add remote RDS node default body detail swagger:model AddRemoteRDSNodeDefaultBodyDetailsItems0 */ type AddRemoteRDSNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -322,7 +316,6 @@ AddRemoteRDSNodeOKBody add remote RDS node OK body swagger:model AddRemoteRDSNodeOKBody */ type AddRemoteRDSNodeOKBody struct { - // remote rds RemoteRDS *AddRemoteRDSNodeOKBodyRemoteRDS `json:"remote_rds,omitempty"` } @@ -375,7 +368,6 @@ func (o *AddRemoteRDSNodeOKBody) ContextValidate(ctx context.Context, formats st } func (o *AddRemoteRDSNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteRDS != nil { if err := o.RemoteRDS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -413,7 +405,6 @@ AddRemoteRDSNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents swagger:model AddRemoteRDSNodeOKBodyRemoteRDS */ type AddRemoteRDSNodeOKBodyRemoteRDS struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/get_node_parameters.go b/api/inventorypb/json/client/nodes/get_node_parameters.go index b6366fb7f4..f6ad37b23f 100644 --- a/api/inventorypb/json/client/nodes/get_node_parameters.go +++ b/api/inventorypb/json/client/nodes/get_node_parameters.go @@ -60,7 +60,6 @@ GetNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetNodeParams struct { - // Body. Body GetNodeBody @@ -130,7 +129,6 @@ func (o *GetNodeParams) SetBody(body GetNodeBody) { // WriteToRequest writes these params to a swagger request func (o *GetNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/get_node_responses.go b/api/inventorypb/json/client/nodes/get_node_responses.go index ffd86561ea..6e1a34baf1 100644 --- a/api/inventorypb/json/client/nodes/get_node_responses.go +++ b/api/inventorypb/json/client/nodes/get_node_responses.go @@ -60,12 +60,12 @@ type GetNodeOK struct { func (o *GetNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Get][%d] getNodeOk %+v", 200, o.Payload) } + func (o *GetNodeOK) GetPayload() *GetNodeOKBody { return o.Payload } func (o *GetNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetNodeOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetNodeDefault) Code() int { func (o *GetNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Get][%d] GetNode default %+v", o._statusCode, o.Payload) } + func (o *GetNodeDefault) GetPayload() *GetNodeDefaultBody { return o.Payload } func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetNodeDefaultBody) // response payload @@ -123,7 +123,6 @@ GetNodeBody get node body swagger:model GetNodeBody */ type GetNodeBody struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` } @@ -161,7 +160,6 @@ GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *GetNodeDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -269,7 +264,6 @@ GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { - // container Container *GetNodeOKBodyContainer `json:"container,omitempty"` @@ -480,7 +473,6 @@ func (o *GetNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetNodeOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { - if o.Container != nil { if err := o.Container.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -496,7 +488,6 @@ func (o *GetNodeOKBody) contextValidateContainer(ctx context.Context, formats st } func (o *GetNodeOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { - if o.Generic != nil { if err := o.Generic.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -512,7 +503,6 @@ func (o *GetNodeOKBody) contextValidateGeneric(ctx context.Context, formats strf } func (o *GetNodeOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { - if o.Remote != nil { if err := o.Remote.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -528,7 +518,6 @@ func (o *GetNodeOKBody) contextValidateRemote(ctx context.Context, formats strfm } func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteAzureDatabase != nil { if err := o.RemoteAzureDatabase.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -544,7 +533,6 @@ func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, } func (o *GetNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteRDS != nil { if err := o.RemoteRDS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -582,7 +570,6 @@ GetNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model GetNodeOKBodyContainer */ type GetNodeOKBodyContainer struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -647,7 +634,6 @@ GetNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machi swagger:model GetNodeOKBodyGeneric */ type GetNodeOKBodyGeneric struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -709,7 +695,6 @@ GetNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where swagger:model GetNodeOKBodyRemote */ type GetNodeOKBodyRemote struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -765,7 +750,6 @@ GetNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote Azure swagger:model GetNodeOKBodyRemoteAzureDatabase */ type GetNodeOKBodyRemoteAzureDatabase struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -821,7 +805,6 @@ GetNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't ru swagger:model GetNodeOKBodyRemoteRDS */ type GetNodeOKBodyRemoteRDS struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/list_nodes_parameters.go b/api/inventorypb/json/client/nodes/list_nodes_parameters.go index 75d49cd9e7..ed94a2202b 100644 --- a/api/inventorypb/json/client/nodes/list_nodes_parameters.go +++ b/api/inventorypb/json/client/nodes/list_nodes_parameters.go @@ -60,7 +60,6 @@ ListNodesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListNodesParams struct { - // Body. Body ListNodesBody @@ -130,7 +129,6 @@ func (o *ListNodesParams) SetBody(body ListNodesBody) { // WriteToRequest writes these params to a swagger request func (o *ListNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/list_nodes_responses.go b/api/inventorypb/json/client/nodes/list_nodes_responses.go index 968fcfc6a7..e8bf829521 100644 --- a/api/inventorypb/json/client/nodes/list_nodes_responses.go +++ b/api/inventorypb/json/client/nodes/list_nodes_responses.go @@ -62,12 +62,12 @@ type ListNodesOK struct { func (o *ListNodesOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/List][%d] listNodesOk %+v", 200, o.Payload) } + func (o *ListNodesOK) GetPayload() *ListNodesOKBody { return o.Payload } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListNodesDefault) Code() int { func (o *ListNodesDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/List][%d] ListNodes default %+v", o._statusCode, o.Payload) } + func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { return o.Payload } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesDefaultBody) // response payload @@ -125,7 +125,6 @@ ListNodesBody list nodes body swagger:model ListNodesBody */ type ListNodesBody struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` @@ -227,7 +226,6 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -293,9 +291,7 @@ func (o *ListNodesDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -306,7 +302,6 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -335,7 +330,6 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -373,7 +367,6 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { - // generic Generic []*ListNodesOKBodyGenericItems0 `json:"generic"` @@ -581,9 +574,7 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListNodesOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Generic); i++ { - if o.Generic[i] != nil { if err := o.Generic[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -594,16 +585,13 @@ func (o *ListNodesOKBody) contextValidateGeneric(ctx context.Context, formats st return err } } - } return nil } func (o *ListNodesOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Container); i++ { - if o.Container[i] != nil { if err := o.Container[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -614,16 +602,13 @@ func (o *ListNodesOKBody) contextValidateContainer(ctx context.Context, formats return err } } - } return nil } func (o *ListNodesOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Remote); i++ { - if o.Remote[i] != nil { if err := o.Remote[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -634,16 +619,13 @@ func (o *ListNodesOKBody) contextValidateRemote(ctx context.Context, formats str return err } } - } return nil } func (o *ListNodesOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.RemoteRDS); i++ { - if o.RemoteRDS[i] != nil { if err := o.RemoteRDS[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -654,16 +636,13 @@ func (o *ListNodesOKBody) contextValidateRemoteRDS(ctx context.Context, formats return err } } - } return nil } func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.RemoteAzureDatabase); i++ { - if o.RemoteAzureDatabase[i] != nil { if err := o.RemoteAzureDatabase[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -674,7 +653,6 @@ func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context return err } } - } return nil @@ -703,7 +681,6 @@ ListNodesOKBodyContainerItems0 ContainerNode represents a Docker container. swagger:model ListNodesOKBodyContainerItems0 */ type ListNodesOKBodyContainerItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -768,7 +745,6 @@ ListNodesOKBodyGenericItems0 GenericNode represents a bare metal server or virtu swagger:model ListNodesOKBodyGenericItems0 */ type ListNodesOKBodyGenericItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -830,7 +806,6 @@ ListNodesOKBodyRemoteAzureDatabaseItems0 RemoteAzureDatabaseNode represents remo swagger:model ListNodesOKBodyRemoteAzureDatabaseItems0 */ type ListNodesOKBodyRemoteAzureDatabaseItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -886,7 +861,6 @@ ListNodesOKBodyRemoteItems0 RemoteNode represents generic remote Node. It's a no swagger:model ListNodesOKBodyRemoteItems0 */ type ListNodesOKBodyRemoteItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -942,7 +916,6 @@ ListNodesOKBodyRemoteRDSItems0 RemoteRDSNode represents remote RDS Node. Agents swagger:model ListNodesOKBodyRemoteRDSItems0 */ type ListNodesOKBodyRemoteRDSItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` diff --git a/api/inventorypb/json/client/nodes/remove_node_parameters.go b/api/inventorypb/json/client/nodes/remove_node_parameters.go index eaf31ae4bf..5948139b98 100644 --- a/api/inventorypb/json/client/nodes/remove_node_parameters.go +++ b/api/inventorypb/json/client/nodes/remove_node_parameters.go @@ -60,7 +60,6 @@ RemoveNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveNodeParams struct { - // Body. Body RemoveNodeBody @@ -130,7 +129,6 @@ func (o *RemoveNodeParams) SetBody(body RemoveNodeBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/nodes/remove_node_responses.go b/api/inventorypb/json/client/nodes/remove_node_responses.go index cfdc304f44..7de78f1ea0 100644 --- a/api/inventorypb/json/client/nodes/remove_node_responses.go +++ b/api/inventorypb/json/client/nodes/remove_node_responses.go @@ -60,12 +60,12 @@ type RemoveNodeOK struct { func (o *RemoveNodeOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Remove][%d] removeNodeOk %+v", 200, o.Payload) } + func (o *RemoveNodeOK) GetPayload() interface{} { return o.Payload } func (o *RemoveNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveNodeDefault) Code() int { func (o *RemoveNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Nodes/Remove][%d] RemoveNode default %+v", o._statusCode, o.Payload) } + func (o *RemoveNodeDefault) GetPayload() *RemoveNodeDefaultBody { return o.Payload } func (o *RemoveNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveNodeDefaultBody) // response payload @@ -121,7 +121,6 @@ RemoveNodeBody remove node body swagger:model RemoveNodeBody */ type RemoveNodeBody struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -162,7 +161,6 @@ RemoveNodeDefaultBody remove node default body swagger:model RemoveNodeDefaultBody */ type RemoveNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *RemoveNodeDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *RemoveNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *RemoveNodeDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -270,7 +265,6 @@ RemoveNodeDefaultBodyDetailsItems0 remove node default body details items0 swagger:model RemoveNodeDefaultBodyDetailsItems0 */ type RemoveNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventorypb/json/client/services/add_external_service_parameters.go b/api/inventorypb/json/client/services/add_external_service_parameters.go index 6ae016be94..53b34253d6 100644 --- a/api/inventorypb/json/client/services/add_external_service_parameters.go +++ b/api/inventorypb/json/client/services/add_external_service_parameters.go @@ -60,7 +60,6 @@ AddExternalServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddExternalServiceParams struct { - // Body. Body AddExternalServiceBody @@ -130,7 +129,6 @@ func (o *AddExternalServiceParams) SetBody(body AddExternalServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddExternalServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_external_service_responses.go b/api/inventorypb/json/client/services/add_external_service_responses.go index 7a972d4637..7f2cf9fbf2 100644 --- a/api/inventorypb/json/client/services/add_external_service_responses.go +++ b/api/inventorypb/json/client/services/add_external_service_responses.go @@ -60,12 +60,12 @@ type AddExternalServiceOK struct { func (o *AddExternalServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddExternalService][%d] addExternalServiceOk %+v", 200, o.Payload) } + func (o *AddExternalServiceOK) GetPayload() *AddExternalServiceOKBody { return o.Payload } func (o *AddExternalServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddExternalServiceDefault) Code() int { func (o *AddExternalServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddExternalService][%d] AddExternalService default %+v", o._statusCode, o.Payload) } + func (o *AddExternalServiceDefault) GetPayload() *AddExternalServiceDefaultBody { return o.Payload } func (o *AddExternalServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ AddExternalServiceBody add external service body swagger:model AddExternalServiceBody */ type AddExternalServiceBody struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -179,7 +178,6 @@ AddExternalServiceDefaultBody add external service default body swagger:model AddExternalServiceDefaultBody */ type AddExternalServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -245,9 +243,7 @@ func (o *AddExternalServiceDefaultBody) ContextValidate(ctx context.Context, for } func (o *AddExternalServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -258,7 +254,6 @@ func (o *AddExternalServiceDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -287,7 +282,6 @@ AddExternalServiceDefaultBodyDetailsItems0 add external service default body det swagger:model AddExternalServiceDefaultBodyDetailsItems0 */ type AddExternalServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -325,7 +319,6 @@ AddExternalServiceOKBody add external service OK body swagger:model AddExternalServiceOKBody */ type AddExternalServiceOKBody struct { - // external External *AddExternalServiceOKBodyExternal `json:"external,omitempty"` } @@ -378,7 +371,6 @@ func (o *AddExternalServiceOKBody) ContextValidate(ctx context.Context, formats } func (o *AddExternalServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if err := o.External.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -416,7 +408,6 @@ AddExternalServiceOKBodyExternal ExternalService represents a generic External s swagger:model AddExternalServiceOKBodyExternal */ type AddExternalServiceOKBodyExternal struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go b/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go index aabfe33f42..b90ea92106 100644 --- a/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go +++ b/api/inventorypb/json/client/services/add_ha_proxy_service_parameters.go @@ -60,7 +60,6 @@ AddHAProxyServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddHAProxyServiceParams struct { - // Body. Body AddHAProxyServiceBody @@ -130,7 +129,6 @@ func (o *AddHAProxyServiceParams) SetBody(body AddHAProxyServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddHAProxyServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go b/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go index f8ccb95aa6..812d6866cb 100644 --- a/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go +++ b/api/inventorypb/json/client/services/add_ha_proxy_service_responses.go @@ -60,12 +60,12 @@ type AddHAProxyServiceOK struct { func (o *AddHAProxyServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddHAProxyService][%d] addHaProxyServiceOk %+v", 200, o.Payload) } + func (o *AddHAProxyServiceOK) GetPayload() *AddHAProxyServiceOKBody { return o.Payload } func (o *AddHAProxyServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddHAProxyServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddHAProxyServiceDefault) Code() int { func (o *AddHAProxyServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddHAProxyService][%d] AddHAProxyService default %+v", o._statusCode, o.Payload) } + func (o *AddHAProxyServiceDefault) GetPayload() *AddHAProxyServiceDefaultBody { return o.Payload } func (o *AddHAProxyServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddHAProxyServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ AddHAProxyServiceBody add HA proxy service body swagger:model AddHAProxyServiceBody */ type AddHAProxyServiceBody struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -176,7 +175,6 @@ AddHAProxyServiceDefaultBody add HA proxy service default body swagger:model AddHAProxyServiceDefaultBody */ type AddHAProxyServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -242,9 +240,7 @@ func (o *AddHAProxyServiceDefaultBody) ContextValidate(ctx context.Context, form } func (o *AddHAProxyServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -255,7 +251,6 @@ func (o *AddHAProxyServiceDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -284,7 +279,6 @@ AddHAProxyServiceDefaultBodyDetailsItems0 add HA proxy service default body deta swagger:model AddHAProxyServiceDefaultBodyDetailsItems0 */ type AddHAProxyServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -322,7 +316,6 @@ AddHAProxyServiceOKBody add HA proxy service OK body swagger:model AddHAProxyServiceOKBody */ type AddHAProxyServiceOKBody struct { - // haproxy Haproxy *AddHAProxyServiceOKBodyHaproxy `json:"haproxy,omitempty"` } @@ -375,7 +368,6 @@ func (o *AddHAProxyServiceOKBody) ContextValidate(ctx context.Context, formats s } func (o *AddHAProxyServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -413,7 +405,6 @@ AddHAProxyServiceOKBodyHaproxy HAProxyService represents a generic HAProxy servi swagger:model AddHAProxyServiceOKBodyHaproxy */ type AddHAProxyServiceOKBodyHaproxy struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go b/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go index f2fd5ab729..c5b0806ad0 100644 --- a/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go +++ b/api/inventorypb/json/client/services/add_mongo_db_service_parameters.go @@ -60,7 +60,6 @@ AddMongoDBServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMongoDBServiceParams struct { - // Body. Body AddMongoDBServiceBody @@ -130,7 +129,6 @@ func (o *AddMongoDBServiceParams) SetBody(body AddMongoDBServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddMongoDBServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_mongo_db_service_responses.go b/api/inventorypb/json/client/services/add_mongo_db_service_responses.go index 069c8377e2..2f0a715d74 100644 --- a/api/inventorypb/json/client/services/add_mongo_db_service_responses.go +++ b/api/inventorypb/json/client/services/add_mongo_db_service_responses.go @@ -60,12 +60,12 @@ type AddMongoDBServiceOK struct { func (o *AddMongoDBServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMongoDB][%d] addMongoDbServiceOk %+v", 200, o.Payload) } + func (o *AddMongoDBServiceOK) GetPayload() *AddMongoDBServiceOKBody { return o.Payload } func (o *AddMongoDBServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddMongoDBServiceDefault) Code() int { func (o *AddMongoDBServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMongoDB][%d] AddMongoDBService default %+v", o._statusCode, o.Payload) } + func (o *AddMongoDBServiceDefault) GetPayload() *AddMongoDBServiceDefaultBody { return o.Payload } func (o *AddMongoDBServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ AddMongoDBServiceBody add mongo DB service body swagger:model AddMongoDBServiceBody */ type AddMongoDBServiceBody struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -188,7 +187,6 @@ AddMongoDBServiceDefaultBody add mongo DB service default body swagger:model AddMongoDBServiceDefaultBody */ type AddMongoDBServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -254,9 +252,7 @@ func (o *AddMongoDBServiceDefaultBody) ContextValidate(ctx context.Context, form } func (o *AddMongoDBServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -267,7 +263,6 @@ func (o *AddMongoDBServiceDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -296,7 +291,6 @@ AddMongoDBServiceDefaultBodyDetailsItems0 add mongo DB service default body deta swagger:model AddMongoDBServiceDefaultBodyDetailsItems0 */ type AddMongoDBServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -334,7 +328,6 @@ AddMongoDBServiceOKBody add mongo DB service OK body swagger:model AddMongoDBServiceOKBody */ type AddMongoDBServiceOKBody struct { - // mongodb Mongodb *AddMongoDBServiceOKBodyMongodb `json:"mongodb,omitempty"` } @@ -387,7 +380,6 @@ func (o *AddMongoDBServiceOKBody) ContextValidate(ctx context.Context, formats s } func (o *AddMongoDBServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if err := o.Mongodb.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -425,7 +417,6 @@ AddMongoDBServiceOKBodyMongodb MongoDBService represents a generic MongoDB insta swagger:model AddMongoDBServiceOKBodyMongodb */ type AddMongoDBServiceOKBodyMongodb struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_my_sql_service_parameters.go b/api/inventorypb/json/client/services/add_my_sql_service_parameters.go index 2b8548fe57..9b3cd35b43 100644 --- a/api/inventorypb/json/client/services/add_my_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_my_sql_service_parameters.go @@ -60,7 +60,6 @@ AddMySQLServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMySQLServiceParams struct { - // Body. Body AddMySQLServiceBody @@ -130,7 +129,6 @@ func (o *AddMySQLServiceParams) SetBody(body AddMySQLServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddMySQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_my_sql_service_responses.go b/api/inventorypb/json/client/services/add_my_sql_service_responses.go index 65308c3e90..d3e8511769 100644 --- a/api/inventorypb/json/client/services/add_my_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_my_sql_service_responses.go @@ -60,12 +60,12 @@ type AddMySQLServiceOK struct { func (o *AddMySQLServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMySQL][%d] addMySqlServiceOk %+v", 200, o.Payload) } + func (o *AddMySQLServiceOK) GetPayload() *AddMySQLServiceOKBody { return o.Payload } func (o *AddMySQLServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddMySQLServiceDefault) Code() int { func (o *AddMySQLServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddMySQL][%d] AddMySQLService default %+v", o._statusCode, o.Payload) } + func (o *AddMySQLServiceDefault) GetPayload() *AddMySQLServiceDefaultBody { return o.Payload } func (o *AddMySQLServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ AddMySQLServiceBody add my SQL service body swagger:model AddMySQLServiceBody */ type AddMySQLServiceBody struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -188,7 +187,6 @@ AddMySQLServiceDefaultBody add my SQL service default body swagger:model AddMySQLServiceDefaultBody */ type AddMySQLServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -254,9 +252,7 @@ func (o *AddMySQLServiceDefaultBody) ContextValidate(ctx context.Context, format } func (o *AddMySQLServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -267,7 +263,6 @@ func (o *AddMySQLServiceDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -296,7 +291,6 @@ AddMySQLServiceDefaultBodyDetailsItems0 add my SQL service default body details swagger:model AddMySQLServiceDefaultBodyDetailsItems0 */ type AddMySQLServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -334,7 +328,6 @@ AddMySQLServiceOKBody add my SQL service OK body swagger:model AddMySQLServiceOKBody */ type AddMySQLServiceOKBody struct { - // mysql Mysql *AddMySQLServiceOKBodyMysql `json:"mysql,omitempty"` } @@ -387,7 +380,6 @@ func (o *AddMySQLServiceOKBody) ContextValidate(ctx context.Context, formats str } func (o *AddMySQLServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if err := o.Mysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -425,7 +417,6 @@ AddMySQLServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddMySQLServiceOKBodyMysql */ type AddMySQLServiceOKBodyMysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go b/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go index 8bd61385f7..7f77afbcb7 100644 --- a/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_postgre_sql_service_parameters.go @@ -60,7 +60,6 @@ AddPostgreSQLServiceParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type AddPostgreSQLServiceParams struct { - // Body. Body AddPostgreSQLServiceBody @@ -130,7 +129,6 @@ func (o *AddPostgreSQLServiceParams) SetBody(body AddPostgreSQLServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddPostgreSQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go b/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go index b7846e8570..c704610153 100644 --- a/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_postgre_sql_service_responses.go @@ -60,12 +60,12 @@ type AddPostgreSQLServiceOK struct { func (o *AddPostgreSQLServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddPostgreSQL][%d] addPostgreSqlServiceOk %+v", 200, o.Payload) } + func (o *AddPostgreSQLServiceOK) GetPayload() *AddPostgreSQLServiceOKBody { return o.Payload } func (o *AddPostgreSQLServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgreSQLServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddPostgreSQLServiceDefault) Code() int { func (o *AddPostgreSQLServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddPostgreSQL][%d] AddPostgreSQLService default %+v", o._statusCode, o.Payload) } + func (o *AddPostgreSQLServiceDefault) GetPayload() *AddPostgreSQLServiceDefaultBody { return o.Payload } func (o *AddPostgreSQLServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgreSQLServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ AddPostgreSQLServiceBody add postgre SQL service body swagger:model AddPostgreSQLServiceBody */ type AddPostgreSQLServiceBody struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -188,7 +187,6 @@ AddPostgreSQLServiceDefaultBody add postgre SQL service default body swagger:model AddPostgreSQLServiceDefaultBody */ type AddPostgreSQLServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -254,9 +252,7 @@ func (o *AddPostgreSQLServiceDefaultBody) ContextValidate(ctx context.Context, f } func (o *AddPostgreSQLServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -267,7 +263,6 @@ func (o *AddPostgreSQLServiceDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -296,7 +291,6 @@ AddPostgreSQLServiceDefaultBodyDetailsItems0 add postgre SQL service default bod swagger:model AddPostgreSQLServiceDefaultBodyDetailsItems0 */ type AddPostgreSQLServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -334,7 +328,6 @@ AddPostgreSQLServiceOKBody add postgre SQL service OK body swagger:model AddPostgreSQLServiceOKBody */ type AddPostgreSQLServiceOKBody struct { - // postgresql Postgresql *AddPostgreSQLServiceOKBodyPostgresql `json:"postgresql,omitempty"` } @@ -387,7 +380,6 @@ func (o *AddPostgreSQLServiceOKBody) ContextValidate(ctx context.Context, format } func (o *AddPostgreSQLServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if err := o.Postgresql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -425,7 +417,6 @@ AddPostgreSQLServiceOKBodyPostgresql PostgreSQLService represents a generic Post swagger:model AddPostgreSQLServiceOKBodyPostgresql */ type AddPostgreSQLServiceOKBodyPostgresql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go b/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go index ebbac7a9fd..f41482ed2c 100644 --- a/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go +++ b/api/inventorypb/json/client/services/add_proxy_sql_service_parameters.go @@ -60,7 +60,6 @@ AddProxySQLServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddProxySQLServiceParams struct { - // Body. Body AddProxySQLServiceBody @@ -130,7 +129,6 @@ func (o *AddProxySQLServiceParams) SetBody(body AddProxySQLServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddProxySQLServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go b/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go index eeebe808db..4bd65d4a30 100644 --- a/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go +++ b/api/inventorypb/json/client/services/add_proxy_sql_service_responses.go @@ -60,12 +60,12 @@ type AddProxySQLServiceOK struct { func (o *AddProxySQLServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddProxySQL][%d] addProxySqlServiceOk %+v", 200, o.Payload) } + func (o *AddProxySQLServiceOK) GetPayload() *AddProxySQLServiceOKBody { return o.Payload } func (o *AddProxySQLServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddProxySQLServiceDefault) Code() int { func (o *AddProxySQLServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/AddProxySQL][%d] AddProxySQLService default %+v", o._statusCode, o.Payload) } + func (o *AddProxySQLServiceDefault) GetPayload() *AddProxySQLServiceDefaultBody { return o.Payload } func (o *AddProxySQLServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ AddProxySQLServiceBody add proxy SQL service body swagger:model AddProxySQLServiceBody */ type AddProxySQLServiceBody struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -188,7 +187,6 @@ AddProxySQLServiceDefaultBody add proxy SQL service default body swagger:model AddProxySQLServiceDefaultBody */ type AddProxySQLServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -254,9 +252,7 @@ func (o *AddProxySQLServiceDefaultBody) ContextValidate(ctx context.Context, for } func (o *AddProxySQLServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -267,7 +263,6 @@ func (o *AddProxySQLServiceDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -296,7 +291,6 @@ AddProxySQLServiceDefaultBodyDetailsItems0 add proxy SQL service default body de swagger:model AddProxySQLServiceDefaultBodyDetailsItems0 */ type AddProxySQLServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -334,7 +328,6 @@ AddProxySQLServiceOKBody add proxy SQL service OK body swagger:model AddProxySQLServiceOKBody */ type AddProxySQLServiceOKBody struct { - // proxysql Proxysql *AddProxySQLServiceOKBodyProxysql `json:"proxysql,omitempty"` } @@ -387,7 +380,6 @@ func (o *AddProxySQLServiceOKBody) ContextValidate(ctx context.Context, formats } func (o *AddProxySQLServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -425,7 +417,6 @@ AddProxySQLServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL i swagger:model AddProxySQLServiceOKBodyProxysql */ type AddProxySQLServiceOKBodyProxysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/get_service_parameters.go b/api/inventorypb/json/client/services/get_service_parameters.go index 02011f9506..45db6f950a 100644 --- a/api/inventorypb/json/client/services/get_service_parameters.go +++ b/api/inventorypb/json/client/services/get_service_parameters.go @@ -60,7 +60,6 @@ GetServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetServiceParams struct { - // Body. Body GetServiceBody @@ -130,7 +129,6 @@ func (o *GetServiceParams) SetBody(body GetServiceBody) { // WriteToRequest writes these params to a swagger request func (o *GetServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/get_service_responses.go b/api/inventorypb/json/client/services/get_service_responses.go index be355fa3fe..5249f7e578 100644 --- a/api/inventorypb/json/client/services/get_service_responses.go +++ b/api/inventorypb/json/client/services/get_service_responses.go @@ -60,12 +60,12 @@ type GetServiceOK struct { func (o *GetServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Get][%d] getServiceOk %+v", 200, o.Payload) } + func (o *GetServiceOK) GetPayload() *GetServiceOKBody { return o.Payload } func (o *GetServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetServiceOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetServiceDefault) Code() int { func (o *GetServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Get][%d] GetService default %+v", o._statusCode, o.Payload) } + func (o *GetServiceDefault) GetPayload() *GetServiceDefaultBody { return o.Payload } func (o *GetServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ GetServiceBody get service body swagger:model GetServiceBody */ type GetServiceBody struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` } @@ -161,7 +160,6 @@ GetServiceDefaultBody get service default body swagger:model GetServiceDefaultBody */ type GetServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *GetServiceDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *GetServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *GetServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -269,7 +264,6 @@ GetServiceDefaultBodyDetailsItems0 get service default body details items0 swagger:model GetServiceDefaultBodyDetailsItems0 */ type GetServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ GetServiceOKBody get service OK body swagger:model GetServiceOKBody */ type GetServiceOKBody struct { - // external External *GetServiceOKBodyExternal `json:"external,omitempty"` @@ -510,7 +503,6 @@ func (o *GetServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *GetServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if err := o.External.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -526,7 +518,6 @@ func (o *GetServiceOKBody) contextValidateExternal(ctx context.Context, formats } func (o *GetServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -542,7 +533,6 @@ func (o *GetServiceOKBody) contextValidateHaproxy(ctx context.Context, formats s } func (o *GetServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if err := o.Mongodb.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -558,7 +548,6 @@ func (o *GetServiceOKBody) contextValidateMongodb(ctx context.Context, formats s } func (o *GetServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if err := o.Mysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -574,7 +563,6 @@ func (o *GetServiceOKBody) contextValidateMysql(ctx context.Context, formats str } func (o *GetServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if err := o.Postgresql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -590,7 +578,6 @@ func (o *GetServiceOKBody) contextValidatePostgresql(ctx context.Context, format } func (o *GetServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -628,7 +615,6 @@ GetServiceOKBodyExternal ExternalService represents a generic External service i swagger:model GetServiceOKBodyExternal */ type GetServiceOKBodyExternal struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -687,7 +673,6 @@ GetServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service inst swagger:model GetServiceOKBodyHaproxy */ type GetServiceOKBodyHaproxy struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -743,7 +728,6 @@ GetServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model GetServiceOKBodyMongodb */ type GetServiceOKBodyMongodb struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -811,7 +795,6 @@ GetServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model GetServiceOKBodyMysql */ type GetServiceOKBodyMysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -879,7 +862,6 @@ GetServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL ins swagger:model GetServiceOKBodyPostgresql */ type GetServiceOKBodyPostgresql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -950,7 +932,6 @@ GetServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model GetServiceOKBodyProxysql */ type GetServiceOKBodyProxysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/list_services_parameters.go b/api/inventorypb/json/client/services/list_services_parameters.go index 7553a0559e..152f648dca 100644 --- a/api/inventorypb/json/client/services/list_services_parameters.go +++ b/api/inventorypb/json/client/services/list_services_parameters.go @@ -60,7 +60,6 @@ ListServicesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListServicesParams struct { - // Body. Body ListServicesBody @@ -130,7 +129,6 @@ func (o *ListServicesParams) SetBody(body ListServicesBody) { // WriteToRequest writes these params to a swagger request func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/list_services_responses.go b/api/inventorypb/json/client/services/list_services_responses.go index d68e3b161a..d7d093f09d 100644 --- a/api/inventorypb/json/client/services/list_services_responses.go +++ b/api/inventorypb/json/client/services/list_services_responses.go @@ -62,12 +62,12 @@ type ListServicesOK struct { func (o *ListServicesOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/List][%d] listServicesOk %+v", 200, o.Payload) } + func (o *ListServicesOK) GetPayload() *ListServicesOKBody { return o.Payload } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListServicesDefault) Code() int { func (o *ListServicesDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/List][%d] ListServices default %+v", o._statusCode, o.Payload) } + func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { return o.Payload } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesDefaultBody) // response payload @@ -125,7 +125,6 @@ ListServicesBody list services body swagger:model ListServicesBody */ type ListServicesBody struct { - // Return only Services running on that Node. NodeID string `json:"node_id,omitempty"` @@ -236,7 +235,6 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -302,9 +300,7 @@ func (o *ListServicesDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -315,7 +311,6 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -344,7 +339,6 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -382,7 +376,6 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { - // mysql Mysql []*ListServicesOKBodyMysqlItems0 `json:"mysql"` @@ -627,9 +620,7 @@ func (o *ListServicesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListServicesOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Mysql); i++ { - if o.Mysql[i] != nil { if err := o.Mysql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -640,16 +631,13 @@ func (o *ListServicesOKBody) contextValidateMysql(ctx context.Context, formats s return err } } - } return nil } func (o *ListServicesOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Mongodb); i++ { - if o.Mongodb[i] != nil { if err := o.Mongodb[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -660,16 +648,13 @@ func (o *ListServicesOKBody) contextValidateMongodb(ctx context.Context, formats return err } } - } return nil } func (o *ListServicesOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Postgresql); i++ { - if o.Postgresql[i] != nil { if err := o.Postgresql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -680,16 +665,13 @@ func (o *ListServicesOKBody) contextValidatePostgresql(ctx context.Context, form return err } } - } return nil } func (o *ListServicesOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Proxysql); i++ { - if o.Proxysql[i] != nil { if err := o.Proxysql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -700,16 +682,13 @@ func (o *ListServicesOKBody) contextValidateProxysql(ctx context.Context, format return err } } - } return nil } func (o *ListServicesOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Haproxy); i++ { - if o.Haproxy[i] != nil { if err := o.Haproxy[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -720,16 +699,13 @@ func (o *ListServicesOKBody) contextValidateHaproxy(ctx context.Context, formats return err } } - } return nil } func (o *ListServicesOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.External); i++ { - if o.External[i] != nil { if err := o.External[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -740,7 +716,6 @@ func (o *ListServicesOKBody) contextValidateExternal(ctx context.Context, format return err } } - } return nil @@ -769,7 +744,6 @@ ListServicesOKBodyExternalItems0 ExternalService represents a generic External s swagger:model ListServicesOKBodyExternalItems0 */ type ListServicesOKBodyExternalItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -828,7 +802,6 @@ ListServicesOKBodyHaproxyItems0 HAProxyService represents a generic HAProxy serv swagger:model ListServicesOKBodyHaproxyItems0 */ type ListServicesOKBodyHaproxyItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -884,7 +857,6 @@ ListServicesOKBodyMongodbItems0 MongoDBService represents a generic MongoDB inst swagger:model ListServicesOKBodyMongodbItems0 */ type ListServicesOKBodyMongodbItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -952,7 +924,6 @@ ListServicesOKBodyMysqlItems0 MySQLService represents a generic MySQL instance. swagger:model ListServicesOKBodyMysqlItems0 */ type ListServicesOKBodyMysqlItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1020,7 +991,6 @@ ListServicesOKBodyPostgresqlItems0 PostgreSQLService represents a generic Postgr swagger:model ListServicesOKBodyPostgresqlItems0 */ type ListServicesOKBodyPostgresqlItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1091,7 +1061,6 @@ ListServicesOKBodyProxysqlItems0 ProxySQLService represents a generic ProxySQL i swagger:model ListServicesOKBodyProxysqlItems0 */ type ListServicesOKBodyProxysqlItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventorypb/json/client/services/remove_service_parameters.go b/api/inventorypb/json/client/services/remove_service_parameters.go index ed9f9dd5d8..4246b7a5ce 100644 --- a/api/inventorypb/json/client/services/remove_service_parameters.go +++ b/api/inventorypb/json/client/services/remove_service_parameters.go @@ -60,7 +60,6 @@ RemoveServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveServiceParams struct { - // Body. Body RemoveServiceBody @@ -130,7 +129,6 @@ func (o *RemoveServiceParams) SetBody(body RemoveServiceBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventorypb/json/client/services/remove_service_responses.go b/api/inventorypb/json/client/services/remove_service_responses.go index 387b8aa924..c7bbbf1ce0 100644 --- a/api/inventorypb/json/client/services/remove_service_responses.go +++ b/api/inventorypb/json/client/services/remove_service_responses.go @@ -60,12 +60,12 @@ type RemoveServiceOK struct { func (o *RemoveServiceOK) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Remove][%d] removeServiceOk %+v", 200, o.Payload) } + func (o *RemoveServiceOK) GetPayload() interface{} { return o.Payload } func (o *RemoveServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveServiceDefault) Code() int { func (o *RemoveServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/inventory/Services/Remove][%d] RemoveService default %+v", o._statusCode, o.Payload) } + func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { return o.Payload } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -121,7 +121,6 @@ RemoveServiceBody remove service body swagger:model RemoveServiceBody */ type RemoveServiceBody struct { - // Unique randomly generated instance identifier. Required. ServiceID string `json:"service_id,omitempty"` @@ -162,7 +161,6 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *RemoveServiceDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -270,7 +265,6 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventorypb/log_level.pb.go b/api/inventorypb/log_level.pb.go index fea118a4f3..7cc6b70172 100644 --- a/api/inventorypb/log_level.pb.go +++ b/api/inventorypb/log_level.pb.go @@ -7,10 +7,11 @@ package inventorypb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -113,10 +114,13 @@ func file_inventorypb_log_level_proto_rawDescGZIP() []byte { return file_inventorypb_log_level_proto_rawDescData } -var file_inventorypb_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventorypb_log_level_proto_goTypes = []interface{}{ - (LogLevel)(0), // 0: inventory.LogLevel -} +var ( + file_inventorypb_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventorypb_log_level_proto_goTypes = []interface{}{ + (LogLevel)(0), // 0: inventory.LogLevel + } +) + var file_inventorypb_log_level_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/inventorypb/log_level.validator.pb.go b/api/inventorypb/log_level.validator.pb.go index f2bd6df8bf..8e94d8ba3a 100644 --- a/api/inventorypb/log_level.validator.pb.go +++ b/api/inventorypb/log_level.validator.pb.go @@ -6,10 +6,13 @@ package inventorypb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/inventorypb/nodes.pb.go b/api/inventorypb/nodes.pb.go index cc13faa94f..a95bea1cfb 100644 --- a/api/inventorypb/nodes.pb.go +++ b/api/inventorypb/nodes.pb.go @@ -7,13 +7,14 @@ package inventorypb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -2220,42 +2221,45 @@ func file_inventorypb_nodes_proto_rawDescGZIP() []byte { return file_inventorypb_nodes_proto_rawDescData } -var file_inventorypb_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventorypb_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 31) -var file_inventorypb_nodes_proto_goTypes = []interface{}{ - (NodeType)(0), // 0: inventory.NodeType - (*GenericNode)(nil), // 1: inventory.GenericNode - (*ContainerNode)(nil), // 2: inventory.ContainerNode - (*RemoteNode)(nil), // 3: inventory.RemoteNode - (*RemoteRDSNode)(nil), // 4: inventory.RemoteRDSNode - (*RemoteAzureDatabaseNode)(nil), // 5: inventory.RemoteAzureDatabaseNode - (*ListNodesRequest)(nil), // 6: inventory.ListNodesRequest - (*ListNodesResponse)(nil), // 7: inventory.ListNodesResponse - (*GetNodeRequest)(nil), // 8: inventory.GetNodeRequest - (*GetNodeResponse)(nil), // 9: inventory.GetNodeResponse - (*AddGenericNodeRequest)(nil), // 10: inventory.AddGenericNodeRequest - (*AddGenericNodeResponse)(nil), // 11: inventory.AddGenericNodeResponse - (*AddContainerNodeRequest)(nil), // 12: inventory.AddContainerNodeRequest - (*AddContainerNodeResponse)(nil), // 13: inventory.AddContainerNodeResponse - (*AddRemoteNodeRequest)(nil), // 14: inventory.AddRemoteNodeRequest - (*AddRemoteNodeResponse)(nil), // 15: inventory.AddRemoteNodeResponse - (*AddRemoteRDSNodeRequest)(nil), // 16: inventory.AddRemoteRDSNodeRequest - (*AddRemoteRDSNodeResponse)(nil), // 17: inventory.AddRemoteRDSNodeResponse - (*AddRemoteAzureDatabaseNodeRequest)(nil), // 18: inventory.AddRemoteAzureDatabaseNodeRequest - (*AddRemoteAzureDatabaseNodeResponse)(nil), // 19: inventory.AddRemoteAzureDatabaseNodeResponse - (*RemoveNodeRequest)(nil), // 20: inventory.RemoveNodeRequest - (*RemoveNodeResponse)(nil), // 21: inventory.RemoveNodeResponse - nil, // 22: inventory.GenericNode.CustomLabelsEntry - nil, // 23: inventory.ContainerNode.CustomLabelsEntry - nil, // 24: inventory.RemoteNode.CustomLabelsEntry - nil, // 25: inventory.RemoteRDSNode.CustomLabelsEntry - nil, // 26: inventory.RemoteAzureDatabaseNode.CustomLabelsEntry - nil, // 27: inventory.AddGenericNodeRequest.CustomLabelsEntry - nil, // 28: inventory.AddContainerNodeRequest.CustomLabelsEntry - nil, // 29: inventory.AddRemoteNodeRequest.CustomLabelsEntry - nil, // 30: inventory.AddRemoteRDSNodeRequest.CustomLabelsEntry - nil, // 31: inventory.AddRemoteAzureDatabaseNodeRequest.CustomLabelsEntry -} +var ( + file_inventorypb_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventorypb_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 31) + file_inventorypb_nodes_proto_goTypes = []interface{}{ + (NodeType)(0), // 0: inventory.NodeType + (*GenericNode)(nil), // 1: inventory.GenericNode + (*ContainerNode)(nil), // 2: inventory.ContainerNode + (*RemoteNode)(nil), // 3: inventory.RemoteNode + (*RemoteRDSNode)(nil), // 4: inventory.RemoteRDSNode + (*RemoteAzureDatabaseNode)(nil), // 5: inventory.RemoteAzureDatabaseNode + (*ListNodesRequest)(nil), // 6: inventory.ListNodesRequest + (*ListNodesResponse)(nil), // 7: inventory.ListNodesResponse + (*GetNodeRequest)(nil), // 8: inventory.GetNodeRequest + (*GetNodeResponse)(nil), // 9: inventory.GetNodeResponse + (*AddGenericNodeRequest)(nil), // 10: inventory.AddGenericNodeRequest + (*AddGenericNodeResponse)(nil), // 11: inventory.AddGenericNodeResponse + (*AddContainerNodeRequest)(nil), // 12: inventory.AddContainerNodeRequest + (*AddContainerNodeResponse)(nil), // 13: inventory.AddContainerNodeResponse + (*AddRemoteNodeRequest)(nil), // 14: inventory.AddRemoteNodeRequest + (*AddRemoteNodeResponse)(nil), // 15: inventory.AddRemoteNodeResponse + (*AddRemoteRDSNodeRequest)(nil), // 16: inventory.AddRemoteRDSNodeRequest + (*AddRemoteRDSNodeResponse)(nil), // 17: inventory.AddRemoteRDSNodeResponse + (*AddRemoteAzureDatabaseNodeRequest)(nil), // 18: inventory.AddRemoteAzureDatabaseNodeRequest + (*AddRemoteAzureDatabaseNodeResponse)(nil), // 19: inventory.AddRemoteAzureDatabaseNodeResponse + (*RemoveNodeRequest)(nil), // 20: inventory.RemoveNodeRequest + (*RemoveNodeResponse)(nil), // 21: inventory.RemoveNodeResponse + nil, // 22: inventory.GenericNode.CustomLabelsEntry + nil, // 23: inventory.ContainerNode.CustomLabelsEntry + nil, // 24: inventory.RemoteNode.CustomLabelsEntry + nil, // 25: inventory.RemoteRDSNode.CustomLabelsEntry + nil, // 26: inventory.RemoteAzureDatabaseNode.CustomLabelsEntry + nil, // 27: inventory.AddGenericNodeRequest.CustomLabelsEntry + nil, // 28: inventory.AddContainerNodeRequest.CustomLabelsEntry + nil, // 29: inventory.AddRemoteNodeRequest.CustomLabelsEntry + nil, // 30: inventory.AddRemoteRDSNodeRequest.CustomLabelsEntry + nil, // 31: inventory.AddRemoteAzureDatabaseNodeRequest.CustomLabelsEntry + } +) + var file_inventorypb_nodes_proto_depIdxs = []int32{ 22, // 0: inventory.GenericNode.custom_labels:type_name -> inventory.GenericNode.CustomLabelsEntry 23, // 1: inventory.ContainerNode.custom_labels:type_name -> inventory.ContainerNode.CustomLabelsEntry diff --git a/api/inventorypb/nodes.pb.gw.go b/api/inventorypb/nodes.pb.gw.go index 097868be44..3e9c1e5645 100644 --- a/api/inventorypb/nodes.pb.gw.go +++ b/api/inventorypb/nodes.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListNodesRequest @@ -45,7 +47,6 @@ func request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.ListNodes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Nodes_ListNodes_0(ctx context.Context, marshaler runtime.Mars msg, err := server.ListNodes(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marshaler, c msg, err := client.GetNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Nodes_GetNode_0(ctx context.Context, marshaler runtime.Marsha msg, err := server.GetNode(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.AddGenericNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Nodes_AddGenericNode_0(ctx context.Context, marshaler runtime msg, err := server.AddGenericNode(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AddContainerNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Nodes_AddContainerNode_0(ctx context.Context, marshaler runti msg, err := server.AddContainerNode(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.AddRemoteNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Nodes_AddRemoteNode_0(ctx context.Context, marshaler runtime. msg, err := server.AddRemoteNode(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runtime.Mar msg, err := client.AddRemoteRDSNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Nodes_AddRemoteRDSNode_0(ctx context.Context, marshaler runti msg, err := server.AddRemoteRDSNode(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marshaler r msg, err := client.AddRemoteAzureDatabaseNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_Nodes_AddRemoteAzureDatabaseNode_0(ctx context.Context, marsh msg, err := server.AddRemoteAzureDatabaseNode(ctx, &protoReq) return msg, metadata, err - } func request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -283,7 +271,6 @@ func request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.RemoveNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -300,7 +287,6 @@ func local_request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Mar msg, err := server.RemoveNode(ctx, &protoReq) return msg, metadata, err - } // RegisterNodesHandlerServer registers the http handlers for service Nodes to "mux". @@ -308,7 +294,6 @@ func local_request_Nodes_RemoveNode_0(ctx context.Context, marshaler runtime.Mar // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNodesHandlerFromEndpoint instead. func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodesServer) error { - mux.Handle("POST", pattern_Nodes_ListNodes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -331,7 +316,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_ListNodes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_GetNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -356,7 +340,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_GetNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddGenericNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -381,7 +364,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddGenericNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddContainerNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -406,7 +388,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddContainerNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddRemoteNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -431,7 +412,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddRemoteNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddRemoteRDSNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -456,7 +436,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddRemoteRDSNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddRemoteAzureDatabaseNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -481,7 +460,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_AddRemoteAzureDatabaseNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_RemoveNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -506,7 +484,6 @@ func RegisterNodesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Nodes_RemoveNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -549,7 +526,6 @@ func RegisterNodesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "NodesClient" to call the correct interceptors. func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodesClient) error { - mux.Handle("POST", pattern_Nodes_ListNodes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -569,7 +545,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_ListNodes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_GetNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -591,7 +566,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_GetNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddGenericNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -613,7 +587,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddGenericNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddContainerNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -635,7 +608,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddContainerNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddRemoteNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -657,7 +629,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddRemoteNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddRemoteRDSNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -679,7 +650,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddRemoteRDSNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_AddRemoteAzureDatabaseNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -701,7 +671,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_AddRemoteAzureDatabaseNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Nodes_RemoveNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -723,7 +692,6 @@ func RegisterNodesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Nodes_RemoveNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/inventorypb/nodes.validator.pb.go b/api/inventorypb/nodes.validator.pb.go index b73c27a416..6f39b65c25 100644 --- a/api/inventorypb/nodes.validator.pb.go +++ b/api/inventorypb/nodes.validator.pb.go @@ -6,41 +6,50 @@ package inventorypb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *GenericNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ContainerNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *RemoteNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *RemoteRDSNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *RemoteAzureDatabaseNode) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ListNodesRequest) Validate() error { return nil } + func (this *ListNodesResponse) Validate() error { for _, item := range this.Generic { if item != nil { @@ -79,12 +88,14 @@ func (this *ListNodesResponse) Validate() error { } return nil } + func (this *GetNodeRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } return nil } + func (this *GetNodeResponse) Validate() error { if oneOfNester, ok := this.GetNode().(*GetNodeResponse_Generic); ok { if oneOfNester.Generic != nil { @@ -123,6 +134,7 @@ func (this *GetNodeResponse) Validate() error { } return nil } + func (this *AddGenericNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -133,6 +145,7 @@ func (this *AddGenericNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddGenericNodeResponse) Validate() error { if this.Generic != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Generic); err != nil { @@ -141,6 +154,7 @@ func (this *AddGenericNodeResponse) Validate() error { } return nil } + func (this *AddContainerNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -151,6 +165,7 @@ func (this *AddContainerNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddContainerNodeResponse) Validate() error { if this.Container != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Container); err != nil { @@ -159,6 +174,7 @@ func (this *AddContainerNodeResponse) Validate() error { } return nil } + func (this *AddRemoteNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -169,6 +185,7 @@ func (this *AddRemoteNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddRemoteNodeResponse) Validate() error { if this.Remote != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Remote); err != nil { @@ -177,6 +194,7 @@ func (this *AddRemoteNodeResponse) Validate() error { } return nil } + func (this *AddRemoteRDSNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -190,6 +208,7 @@ func (this *AddRemoteRDSNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddRemoteRDSNodeResponse) Validate() error { if this.RemoteRds != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RemoteRds); err != nil { @@ -198,6 +217,7 @@ func (this *AddRemoteRDSNodeResponse) Validate() error { } return nil } + func (this *AddRemoteAzureDatabaseNodeRequest) Validate() error { if this.NodeName == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeName", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeName)) @@ -211,6 +231,7 @@ func (this *AddRemoteAzureDatabaseNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddRemoteAzureDatabaseNodeResponse) Validate() error { if this.RemoteAzureDatabase != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.RemoteAzureDatabase); err != nil { @@ -219,12 +240,14 @@ func (this *AddRemoteAzureDatabaseNodeResponse) Validate() error { } return nil } + func (this *RemoveNodeRequest) Validate() error { if this.NodeId == "" { return github_com_mwitkow_go_proto_validators.FieldError("NodeId", fmt.Errorf(`value '%v' must not be an empty string`, this.NodeId)) } return nil } + func (this *RemoveNodeResponse) Validate() error { return nil } diff --git a/api/inventorypb/nodes_grpc.pb.go b/api/inventorypb/nodes_grpc.pb.go index a8cc471ad9..1ba7839334 100644 --- a/api/inventorypb/nodes_grpc.pb.go +++ b/api/inventorypb/nodes_grpc.pb.go @@ -8,6 +8,7 @@ package inventorypb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -144,30 +145,36 @@ type NodesServer interface { } // UnimplementedNodesServer must be embedded to have forward compatible implementations. -type UnimplementedNodesServer struct { -} +type UnimplementedNodesServer struct{} func (UnimplementedNodesServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListNodes not implemented") } + func (UnimplementedNodesServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetNode not implemented") } + func (UnimplementedNodesServer) AddGenericNode(context.Context, *AddGenericNodeRequest) (*AddGenericNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddGenericNode not implemented") } + func (UnimplementedNodesServer) AddContainerNode(context.Context, *AddContainerNodeRequest) (*AddContainerNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddContainerNode not implemented") } + func (UnimplementedNodesServer) AddRemoteNode(context.Context, *AddRemoteNodeRequest) (*AddRemoteNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRemoteNode not implemented") } + func (UnimplementedNodesServer) AddRemoteRDSNode(context.Context, *AddRemoteRDSNodeRequest) (*AddRemoteRDSNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRemoteRDSNode not implemented") } + func (UnimplementedNodesServer) AddRemoteAzureDatabaseNode(context.Context, *AddRemoteAzureDatabaseNodeRequest) (*AddRemoteAzureDatabaseNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRemoteAzureDatabaseNode not implemented") } + func (UnimplementedNodesServer) RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveNode not implemented") } diff --git a/api/inventorypb/services.pb.go b/api/inventorypb/services.pb.go index dd2e7e4369..23cfc99220 100644 --- a/api/inventorypb/services.pb.go +++ b/api/inventorypb/services.pb.go @@ -7,13 +7,14 @@ package inventorypb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -2805,47 +2806,50 @@ func file_inventorypb_services_proto_rawDescGZIP() []byte { return file_inventorypb_services_proto_rawDescData } -var file_inventorypb_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventorypb_services_proto_msgTypes = make([]protoimpl.MessageInfo, 36) -var file_inventorypb_services_proto_goTypes = []interface{}{ - (ServiceType)(0), // 0: inventory.ServiceType - (*MySQLService)(nil), // 1: inventory.MySQLService - (*MongoDBService)(nil), // 2: inventory.MongoDBService - (*PostgreSQLService)(nil), // 3: inventory.PostgreSQLService - (*ProxySQLService)(nil), // 4: inventory.ProxySQLService - (*HAProxyService)(nil), // 5: inventory.HAProxyService - (*ExternalService)(nil), // 6: inventory.ExternalService - (*ListServicesRequest)(nil), // 7: inventory.ListServicesRequest - (*ListServicesResponse)(nil), // 8: inventory.ListServicesResponse - (*GetServiceRequest)(nil), // 9: inventory.GetServiceRequest - (*GetServiceResponse)(nil), // 10: inventory.GetServiceResponse - (*AddMySQLServiceRequest)(nil), // 11: inventory.AddMySQLServiceRequest - (*AddMySQLServiceResponse)(nil), // 12: inventory.AddMySQLServiceResponse - (*AddMongoDBServiceRequest)(nil), // 13: inventory.AddMongoDBServiceRequest - (*AddMongoDBServiceResponse)(nil), // 14: inventory.AddMongoDBServiceResponse - (*AddPostgreSQLServiceRequest)(nil), // 15: inventory.AddPostgreSQLServiceRequest - (*AddPostgreSQLServiceResponse)(nil), // 16: inventory.AddPostgreSQLServiceResponse - (*AddProxySQLServiceRequest)(nil), // 17: inventory.AddProxySQLServiceRequest - (*AddProxySQLServiceResponse)(nil), // 18: inventory.AddProxySQLServiceResponse - (*AddHAProxyServiceRequest)(nil), // 19: inventory.AddHAProxyServiceRequest - (*AddHAProxyServiceResponse)(nil), // 20: inventory.AddHAProxyServiceResponse - (*AddExternalServiceRequest)(nil), // 21: inventory.AddExternalServiceRequest - (*AddExternalServiceResponse)(nil), // 22: inventory.AddExternalServiceResponse - (*RemoveServiceRequest)(nil), // 23: inventory.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 24: inventory.RemoveServiceResponse - nil, // 25: inventory.MySQLService.CustomLabelsEntry - nil, // 26: inventory.MongoDBService.CustomLabelsEntry - nil, // 27: inventory.PostgreSQLService.CustomLabelsEntry - nil, // 28: inventory.ProxySQLService.CustomLabelsEntry - nil, // 29: inventory.HAProxyService.CustomLabelsEntry - nil, // 30: inventory.ExternalService.CustomLabelsEntry - nil, // 31: inventory.AddMySQLServiceRequest.CustomLabelsEntry - nil, // 32: inventory.AddMongoDBServiceRequest.CustomLabelsEntry - nil, // 33: inventory.AddPostgreSQLServiceRequest.CustomLabelsEntry - nil, // 34: inventory.AddProxySQLServiceRequest.CustomLabelsEntry - nil, // 35: inventory.AddHAProxyServiceRequest.CustomLabelsEntry - nil, // 36: inventory.AddExternalServiceRequest.CustomLabelsEntry -} +var ( + file_inventorypb_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventorypb_services_proto_msgTypes = make([]protoimpl.MessageInfo, 36) + file_inventorypb_services_proto_goTypes = []interface{}{ + (ServiceType)(0), // 0: inventory.ServiceType + (*MySQLService)(nil), // 1: inventory.MySQLService + (*MongoDBService)(nil), // 2: inventory.MongoDBService + (*PostgreSQLService)(nil), // 3: inventory.PostgreSQLService + (*ProxySQLService)(nil), // 4: inventory.ProxySQLService + (*HAProxyService)(nil), // 5: inventory.HAProxyService + (*ExternalService)(nil), // 6: inventory.ExternalService + (*ListServicesRequest)(nil), // 7: inventory.ListServicesRequest + (*ListServicesResponse)(nil), // 8: inventory.ListServicesResponse + (*GetServiceRequest)(nil), // 9: inventory.GetServiceRequest + (*GetServiceResponse)(nil), // 10: inventory.GetServiceResponse + (*AddMySQLServiceRequest)(nil), // 11: inventory.AddMySQLServiceRequest + (*AddMySQLServiceResponse)(nil), // 12: inventory.AddMySQLServiceResponse + (*AddMongoDBServiceRequest)(nil), // 13: inventory.AddMongoDBServiceRequest + (*AddMongoDBServiceResponse)(nil), // 14: inventory.AddMongoDBServiceResponse + (*AddPostgreSQLServiceRequest)(nil), // 15: inventory.AddPostgreSQLServiceRequest + (*AddPostgreSQLServiceResponse)(nil), // 16: inventory.AddPostgreSQLServiceResponse + (*AddProxySQLServiceRequest)(nil), // 17: inventory.AddProxySQLServiceRequest + (*AddProxySQLServiceResponse)(nil), // 18: inventory.AddProxySQLServiceResponse + (*AddHAProxyServiceRequest)(nil), // 19: inventory.AddHAProxyServiceRequest + (*AddHAProxyServiceResponse)(nil), // 20: inventory.AddHAProxyServiceResponse + (*AddExternalServiceRequest)(nil), // 21: inventory.AddExternalServiceRequest + (*AddExternalServiceResponse)(nil), // 22: inventory.AddExternalServiceResponse + (*RemoveServiceRequest)(nil), // 23: inventory.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 24: inventory.RemoveServiceResponse + nil, // 25: inventory.MySQLService.CustomLabelsEntry + nil, // 26: inventory.MongoDBService.CustomLabelsEntry + nil, // 27: inventory.PostgreSQLService.CustomLabelsEntry + nil, // 28: inventory.ProxySQLService.CustomLabelsEntry + nil, // 29: inventory.HAProxyService.CustomLabelsEntry + nil, // 30: inventory.ExternalService.CustomLabelsEntry + nil, // 31: inventory.AddMySQLServiceRequest.CustomLabelsEntry + nil, // 32: inventory.AddMongoDBServiceRequest.CustomLabelsEntry + nil, // 33: inventory.AddPostgreSQLServiceRequest.CustomLabelsEntry + nil, // 34: inventory.AddProxySQLServiceRequest.CustomLabelsEntry + nil, // 35: inventory.AddHAProxyServiceRequest.CustomLabelsEntry + nil, // 36: inventory.AddExternalServiceRequest.CustomLabelsEntry + } +) + var file_inventorypb_services_proto_depIdxs = []int32{ 25, // 0: inventory.MySQLService.custom_labels:type_name -> inventory.MySQLService.CustomLabelsEntry 26, // 1: inventory.MongoDBService.custom_labels:type_name -> inventory.MongoDBService.CustomLabelsEntry diff --git a/api/inventorypb/services.pb.gw.go b/api/inventorypb/services.pb.gw.go index bcee5fcc91..59bb9c8043 100644 --- a/api/inventorypb/services.pb.gw.go +++ b/api/inventorypb/services.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Services_ListServices_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListServicesRequest @@ -45,7 +47,6 @@ func request_Services_ListServices_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ListServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_ListServices_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Services_ListServices_0(ctx context.Context, marshaler runtim msg, err := server.ListServices(ctx, &protoReq) return msg, metadata, err - } func request_Services_GetService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Services_GetService_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.GetService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_GetService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Services_GetService_0(ctx context.Context, marshaler runtime. msg, err := server.GetService(ctx, &protoReq) return msg, metadata, err - } func request_Services_AddMySQLService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Services_AddMySQLService_0(ctx context.Context, marshaler runtime.M msg, err := client.AddMySQLService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_AddMySQLService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Services_AddMySQLService_0(ctx context.Context, marshaler run msg, err := server.AddMySQLService(ctx, &protoReq) return msg, metadata, err - } func request_Services_AddMongoDBService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Services_AddMongoDBService_0(ctx context.Context, marshaler runtime msg, err := client.AddMongoDBService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_AddMongoDBService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Services_AddMongoDBService_0(ctx context.Context, marshaler r msg, err := server.AddMongoDBService(ctx, &protoReq) return msg, metadata, err - } func request_Services_AddPostgreSQLService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Services_AddPostgreSQLService_0(ctx context.Context, marshaler runt msg, err := client.AddPostgreSQLService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_AddPostgreSQLService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Services_AddPostgreSQLService_0(ctx context.Context, marshale msg, err := server.AddPostgreSQLService(ctx, &protoReq) return msg, metadata, err - } func request_Services_AddProxySQLService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Services_AddProxySQLService_0(ctx context.Context, marshaler runtim msg, err := client.AddProxySQLService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_AddProxySQLService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Services_AddProxySQLService_0(ctx context.Context, marshaler msg, err := server.AddProxySQLService(ctx, &protoReq) return msg, metadata, err - } func request_Services_AddHAProxyService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_Services_AddHAProxyService_0(ctx context.Context, marshaler runtime msg, err := client.AddHAProxyService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_AddHAProxyService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_Services_AddHAProxyService_0(ctx context.Context, marshaler r msg, err := server.AddHAProxyService(ctx, &protoReq) return msg, metadata, err - } func request_Services_AddExternalService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -283,7 +271,6 @@ func request_Services_AddExternalService_0(ctx context.Context, marshaler runtim msg, err := client.AddExternalService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_AddExternalService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -300,7 +287,6 @@ func local_request_Services_AddExternalService_0(ctx context.Context, marshaler msg, err := server.AddExternalService(ctx, &protoReq) return msg, metadata, err - } func request_Services_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, client ServicesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -317,7 +303,6 @@ func request_Services_RemoveService_0(ctx context.Context, marshaler runtime.Mar msg, err := client.RemoveService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Services_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, server ServicesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -334,7 +319,6 @@ func local_request_Services_RemoveService_0(ctx context.Context, marshaler runti msg, err := server.RemoveService(ctx, &protoReq) return msg, metadata, err - } // RegisterServicesHandlerServer registers the http handlers for service Services to "mux". @@ -342,7 +326,6 @@ func local_request_Services_RemoveService_0(ctx context.Context, marshaler runti // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServicesHandlerFromEndpoint instead. func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServicesServer) error { - mux.Handle("POST", pattern_Services_ListServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -365,7 +348,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_ListServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_GetService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -390,7 +372,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_GetService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddMySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -415,7 +396,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddMySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddMongoDBService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -440,7 +420,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddMongoDBService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddPostgreSQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -465,7 +444,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddPostgreSQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddProxySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -490,7 +468,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddProxySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddHAProxyService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -515,7 +492,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddHAProxyService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddExternalService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -540,7 +516,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_AddExternalService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -565,7 +540,6 @@ func RegisterServicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Services_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -608,7 +582,6 @@ func RegisterServicesHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ServicesClient" to call the correct interceptors. func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServicesClient) error { - mux.Handle("POST", pattern_Services_ListServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -628,7 +601,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_ListServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_GetService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -650,7 +622,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_GetService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddMySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -672,7 +643,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddMySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddMongoDBService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -694,7 +664,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddMongoDBService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddPostgreSQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -716,7 +685,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddPostgreSQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddProxySQLService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -738,7 +706,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddProxySQLService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddHAProxyService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -760,7 +727,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddHAProxyService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_AddExternalService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -782,7 +748,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_AddExternalService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Services_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -804,7 +769,6 @@ func RegisterServicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Services_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/inventorypb/services.validator.pb.go b/api/inventorypb/services.validator.pb.go index 47acc4fff4..f92d456df3 100644 --- a/api/inventorypb/services.validator.pb.go +++ b/api/inventorypb/services.validator.pb.go @@ -6,45 +6,55 @@ package inventorypb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *MySQLService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *MongoDBService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *PostgreSQLService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ProxySQLService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *HAProxyService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ExternalService) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ListServicesRequest) Validate() error { return nil } + func (this *ListServicesResponse) Validate() error { for _, item := range this.Mysql { if item != nil { @@ -90,12 +100,14 @@ func (this *ListServicesResponse) Validate() error { } return nil } + func (this *GetServiceRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) } return nil } + func (this *GetServiceResponse) Validate() error { if oneOfNester, ok := this.GetService().(*GetServiceResponse_Mysql); ok { if oneOfNester.Mysql != nil { @@ -141,6 +153,7 @@ func (this *GetServiceResponse) Validate() error { } return nil } + func (this *AddMySQLServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -151,6 +164,7 @@ func (this *AddMySQLServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddMySQLServiceResponse) Validate() error { if this.Mysql != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Mysql); err != nil { @@ -159,6 +173,7 @@ func (this *AddMySQLServiceResponse) Validate() error { } return nil } + func (this *AddMongoDBServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -169,6 +184,7 @@ func (this *AddMongoDBServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddMongoDBServiceResponse) Validate() error { if this.Mongodb != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Mongodb); err != nil { @@ -177,6 +193,7 @@ func (this *AddMongoDBServiceResponse) Validate() error { } return nil } + func (this *AddPostgreSQLServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -187,6 +204,7 @@ func (this *AddPostgreSQLServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddPostgreSQLServiceResponse) Validate() error { if this.Postgresql != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Postgresql); err != nil { @@ -195,6 +213,7 @@ func (this *AddPostgreSQLServiceResponse) Validate() error { } return nil } + func (this *AddProxySQLServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -205,6 +224,7 @@ func (this *AddProxySQLServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddProxySQLServiceResponse) Validate() error { if this.Proxysql != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Proxysql); err != nil { @@ -213,6 +233,7 @@ func (this *AddProxySQLServiceResponse) Validate() error { } return nil } + func (this *AddHAProxyServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -223,6 +244,7 @@ func (this *AddHAProxyServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddHAProxyServiceResponse) Validate() error { if this.Haproxy != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Haproxy); err != nil { @@ -231,6 +253,7 @@ func (this *AddHAProxyServiceResponse) Validate() error { } return nil } + func (this *AddExternalServiceRequest) Validate() error { if this.ServiceName == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceName", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceName)) @@ -241,6 +264,7 @@ func (this *AddExternalServiceRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddExternalServiceResponse) Validate() error { if this.External != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.External); err != nil { @@ -249,12 +273,14 @@ func (this *AddExternalServiceResponse) Validate() error { } return nil } + func (this *RemoveServiceRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) } return nil } + func (this *RemoveServiceResponse) Validate() error { return nil } diff --git a/api/inventorypb/services_grpc.pb.go b/api/inventorypb/services_grpc.pb.go index f21c7fb80a..6d98bdca25 100644 --- a/api/inventorypb/services_grpc.pb.go +++ b/api/inventorypb/services_grpc.pb.go @@ -8,6 +8,7 @@ package inventorypb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -157,33 +158,40 @@ type ServicesServer interface { } // UnimplementedServicesServer must be embedded to have forward compatible implementations. -type UnimplementedServicesServer struct { -} +type UnimplementedServicesServer struct{} func (UnimplementedServicesServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented") } + func (UnimplementedServicesServer) GetService(context.Context, *GetServiceRequest) (*GetServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented") } + func (UnimplementedServicesServer) AddMySQLService(context.Context, *AddMySQLServiceRequest) (*AddMySQLServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMySQLService not implemented") } + func (UnimplementedServicesServer) AddMongoDBService(context.Context, *AddMongoDBServiceRequest) (*AddMongoDBServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMongoDBService not implemented") } + func (UnimplementedServicesServer) AddPostgreSQLService(context.Context, *AddPostgreSQLServiceRequest) (*AddPostgreSQLServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPostgreSQLService not implemented") } + func (UnimplementedServicesServer) AddProxySQLService(context.Context, *AddProxySQLServiceRequest) (*AddProxySQLServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddProxySQLService not implemented") } + func (UnimplementedServicesServer) AddHAProxyService(context.Context, *AddHAProxyServiceRequest) (*AddHAProxyServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddHAProxyService not implemented") } + func (UnimplementedServicesServer) AddExternalService(context.Context, *AddExternalServiceRequest) (*AddExternalServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddExternalService not implemented") } + func (UnimplementedServicesServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveService not implemented") } diff --git a/api/managementpb/actions.pb.go b/api/managementpb/actions.pb.go index 3bbeb518d2..8b83370835 100644 --- a/api/managementpb/actions.pb.go +++ b/api/managementpb/actions.pb.go @@ -7,13 +7,14 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -2485,41 +2486,44 @@ func file_managementpb_actions_proto_rawDescGZIP() []byte { return file_managementpb_actions_proto_rawDescData } -var file_managementpb_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 30) -var file_managementpb_actions_proto_goTypes = []interface{}{ - (ActionType)(0), // 0: management.ActionType - (*GetActionRequest)(nil), // 1: management.GetActionRequest - (*GetActionResponse)(nil), // 2: management.GetActionResponse - (*StartMySQLExplainActionRequest)(nil), // 3: management.StartMySQLExplainActionRequest - (*StartMySQLExplainActionResponse)(nil), // 4: management.StartMySQLExplainActionResponse - (*StartMySQLExplainJSONActionRequest)(nil), // 5: management.StartMySQLExplainJSONActionRequest - (*StartMySQLExplainJSONActionResponse)(nil), // 6: management.StartMySQLExplainJSONActionResponse - (*StartMySQLExplainTraditionalJSONActionRequest)(nil), // 7: management.StartMySQLExplainTraditionalJSONActionRequest - (*StartMySQLExplainTraditionalJSONActionResponse)(nil), // 8: management.StartMySQLExplainTraditionalJSONActionResponse - (*StartMySQLShowCreateTableActionRequest)(nil), // 9: management.StartMySQLShowCreateTableActionRequest - (*StartMySQLShowCreateTableActionResponse)(nil), // 10: management.StartMySQLShowCreateTableActionResponse - (*StartMySQLShowTableStatusActionRequest)(nil), // 11: management.StartMySQLShowTableStatusActionRequest - (*StartMySQLShowTableStatusActionResponse)(nil), // 12: management.StartMySQLShowTableStatusActionResponse - (*StartMySQLShowIndexActionRequest)(nil), // 13: management.StartMySQLShowIndexActionRequest - (*StartMySQLShowIndexActionResponse)(nil), // 14: management.StartMySQLShowIndexActionResponse - (*StartPostgreSQLShowCreateTableActionRequest)(nil), // 15: management.StartPostgreSQLShowCreateTableActionRequest - (*StartPostgreSQLShowCreateTableActionResponse)(nil), // 16: management.StartPostgreSQLShowCreateTableActionResponse - (*StartPostgreSQLShowIndexActionRequest)(nil), // 17: management.StartPostgreSQLShowIndexActionRequest - (*StartPostgreSQLShowIndexActionResponse)(nil), // 18: management.StartPostgreSQLShowIndexActionResponse - (*StartMongoDBExplainActionRequest)(nil), // 19: management.StartMongoDBExplainActionRequest - (*StartMongoDBExplainActionResponse)(nil), // 20: management.StartMongoDBExplainActionResponse - (*StartPTSummaryActionRequest)(nil), // 21: management.StartPTSummaryActionRequest - (*StartPTSummaryActionResponse)(nil), // 22: management.StartPTSummaryActionResponse - (*StartPTPgSummaryActionRequest)(nil), // 23: management.StartPTPgSummaryActionRequest - (*StartPTPgSummaryActionResponse)(nil), // 24: management.StartPTPgSummaryActionResponse - (*StartPTMongoDBSummaryActionRequest)(nil), // 25: management.StartPTMongoDBSummaryActionRequest - (*StartPTMongoDBSummaryActionResponse)(nil), // 26: management.StartPTMongoDBSummaryActionResponse - (*StartPTMySQLSummaryActionRequest)(nil), // 27: management.StartPTMySQLSummaryActionRequest - (*StartPTMySQLSummaryActionResponse)(nil), // 28: management.StartPTMySQLSummaryActionResponse - (*CancelActionRequest)(nil), // 29: management.CancelActionRequest - (*CancelActionResponse)(nil), // 30: management.CancelActionResponse -} +var ( + file_managementpb_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 30) + file_managementpb_actions_proto_goTypes = []interface{}{ + (ActionType)(0), // 0: management.ActionType + (*GetActionRequest)(nil), // 1: management.GetActionRequest + (*GetActionResponse)(nil), // 2: management.GetActionResponse + (*StartMySQLExplainActionRequest)(nil), // 3: management.StartMySQLExplainActionRequest + (*StartMySQLExplainActionResponse)(nil), // 4: management.StartMySQLExplainActionResponse + (*StartMySQLExplainJSONActionRequest)(nil), // 5: management.StartMySQLExplainJSONActionRequest + (*StartMySQLExplainJSONActionResponse)(nil), // 6: management.StartMySQLExplainJSONActionResponse + (*StartMySQLExplainTraditionalJSONActionRequest)(nil), // 7: management.StartMySQLExplainTraditionalJSONActionRequest + (*StartMySQLExplainTraditionalJSONActionResponse)(nil), // 8: management.StartMySQLExplainTraditionalJSONActionResponse + (*StartMySQLShowCreateTableActionRequest)(nil), // 9: management.StartMySQLShowCreateTableActionRequest + (*StartMySQLShowCreateTableActionResponse)(nil), // 10: management.StartMySQLShowCreateTableActionResponse + (*StartMySQLShowTableStatusActionRequest)(nil), // 11: management.StartMySQLShowTableStatusActionRequest + (*StartMySQLShowTableStatusActionResponse)(nil), // 12: management.StartMySQLShowTableStatusActionResponse + (*StartMySQLShowIndexActionRequest)(nil), // 13: management.StartMySQLShowIndexActionRequest + (*StartMySQLShowIndexActionResponse)(nil), // 14: management.StartMySQLShowIndexActionResponse + (*StartPostgreSQLShowCreateTableActionRequest)(nil), // 15: management.StartPostgreSQLShowCreateTableActionRequest + (*StartPostgreSQLShowCreateTableActionResponse)(nil), // 16: management.StartPostgreSQLShowCreateTableActionResponse + (*StartPostgreSQLShowIndexActionRequest)(nil), // 17: management.StartPostgreSQLShowIndexActionRequest + (*StartPostgreSQLShowIndexActionResponse)(nil), // 18: management.StartPostgreSQLShowIndexActionResponse + (*StartMongoDBExplainActionRequest)(nil), // 19: management.StartMongoDBExplainActionRequest + (*StartMongoDBExplainActionResponse)(nil), // 20: management.StartMongoDBExplainActionResponse + (*StartPTSummaryActionRequest)(nil), // 21: management.StartPTSummaryActionRequest + (*StartPTSummaryActionResponse)(nil), // 22: management.StartPTSummaryActionResponse + (*StartPTPgSummaryActionRequest)(nil), // 23: management.StartPTPgSummaryActionRequest + (*StartPTPgSummaryActionResponse)(nil), // 24: management.StartPTPgSummaryActionResponse + (*StartPTMongoDBSummaryActionRequest)(nil), // 25: management.StartPTMongoDBSummaryActionRequest + (*StartPTMongoDBSummaryActionResponse)(nil), // 26: management.StartPTMongoDBSummaryActionResponse + (*StartPTMySQLSummaryActionRequest)(nil), // 27: management.StartPTMySQLSummaryActionRequest + (*StartPTMySQLSummaryActionResponse)(nil), // 28: management.StartPTMySQLSummaryActionResponse + (*CancelActionRequest)(nil), // 29: management.CancelActionRequest + (*CancelActionResponse)(nil), // 30: management.CancelActionResponse + } +) + var file_managementpb_actions_proto_depIdxs = []int32{ 1, // 0: management.Actions.GetAction:input_type -> management.GetActionRequest 3, // 1: management.Actions.StartMySQLExplainAction:input_type -> management.StartMySQLExplainActionRequest diff --git a/api/managementpb/actions.pb.gw.go b/api/managementpb/actions.pb.gw.go index 836fb125bf..d1254c1060 100644 --- a/api/managementpb/actions.pb.gw.go +++ b/api/managementpb/actions.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetActionRequest @@ -45,7 +47,6 @@ func request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.GetAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Actions_GetAction_0(ctx context.Context, marshaler runtime.Ma msg, err := server.GetAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMySQLExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Actions_StartMySQLExplainAction_0(ctx context.Context, marshaler ru msg, err := client.StartMySQLExplainAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMySQLExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Actions_StartMySQLExplainAction_0(ctx context.Context, marsha msg, err := server.StartMySQLExplainAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, marshale msg, err := client.StartMySQLExplainJSONAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Actions_StartMySQLExplainJSONAction_0(ctx context.Context, ma msg, err := server.StartMySQLExplainJSONAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context.Contex msg, err := client.StartMySQLExplainTraditionalJSONAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Actions_StartMySQLExplainTraditionalJSONAction_0(ctx context. msg, err := server.StartMySQLExplainTraditionalJSONAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context, mars msg, err := client.StartMySQLShowCreateTableAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Actions_StartMySQLShowCreateTableAction_0(ctx context.Context msg, err := server.StartMySQLShowCreateTableAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context, mars msg, err := client.StartMySQLShowTableStatusAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Actions_StartMySQLShowTableStatusAction_0(ctx context.Context msg, err := server.StartMySQLShowTableStatusAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, marshaler msg, err := client.StartMySQLShowIndexAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_Actions_StartMySQLShowIndexAction_0(ctx context.Context, mars msg, err := server.StartMySQLShowIndexAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -283,7 +271,6 @@ func request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Context, msg, err := client.StartPostgreSQLShowCreateTableAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -300,7 +287,6 @@ func local_request_Actions_StartPostgreSQLShowCreateTableAction_0(ctx context.Co msg, err := server.StartPostgreSQLShowCreateTableAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -317,7 +303,6 @@ func request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, marsh msg, err := client.StartPostgreSQLShowIndexAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -334,7 +319,6 @@ func local_request_Actions_StartPostgreSQLShowIndexAction_0(ctx context.Context, msg, err := server.StartPostgreSQLShowIndexAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartMongoDBExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -351,7 +335,6 @@ func request_Actions_StartMongoDBExplainAction_0(ctx context.Context, marshaler msg, err := client.StartMongoDBExplainAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartMongoDBExplainAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -368,7 +351,6 @@ func local_request_Actions_StartMongoDBExplainAction_0(ctx context.Context, mars msg, err := server.StartMongoDBExplainAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -385,7 +367,6 @@ func request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler runti msg, err := client.StartPTSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -402,7 +383,6 @@ func local_request_Actions_StartPTSummaryAction_0(ctx context.Context, marshaler msg, err := server.StartPTSummaryAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -419,7 +399,6 @@ func request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshaler run msg, err := client.StartPTPgSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -436,7 +415,6 @@ func local_request_Actions_StartPTPgSummaryAction_0(ctx context.Context, marshal msg, err := server.StartPTPgSummaryAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -453,7 +431,6 @@ func request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, marshale msg, err := client.StartPTMongoDBSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -470,7 +447,6 @@ func local_request_Actions_StartPTMongoDBSummaryAction_0(ctx context.Context, ma msg, err := server.StartPTMongoDBSummaryAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -487,7 +463,6 @@ func request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, marshaler msg, err := client.StartPTMySQLSummaryAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -504,7 +479,6 @@ func local_request_Actions_StartPTMySQLSummaryAction_0(ctx context.Context, mars msg, err := server.StartPTMySQLSummaryAction(ctx, &protoReq) return msg, metadata, err - } func request_Actions_CancelAction_0(ctx context.Context, marshaler runtime.Marshaler, client ActionsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -521,7 +495,6 @@ func request_Actions_CancelAction_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.CancelAction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Actions_CancelAction_0(ctx context.Context, marshaler runtime.Marshaler, server ActionsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -538,7 +511,6 @@ func local_request_Actions_CancelAction_0(ctx context.Context, marshaler runtime msg, err := server.CancelAction(ctx, &protoReq) return msg, metadata, err - } // RegisterActionsHandlerServer registers the http handlers for service Actions to "mux". @@ -546,7 +518,6 @@ func local_request_Actions_CancelAction_0(ctx context.Context, marshaler runtime // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActionsHandlerFromEndpoint instead. func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActionsServer) error { - mux.Handle("POST", pattern_Actions_GetAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -569,7 +540,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_GetAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -594,7 +564,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLExplainJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -619,7 +588,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLExplainJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLExplainTraditionalJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -644,7 +612,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLExplainTraditionalJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -669,7 +636,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLShowTableStatusAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -694,7 +660,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLShowTableStatusAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -719,7 +684,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMySQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -744,7 +708,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPostgreSQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -769,7 +732,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPostgreSQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMongoDBExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -794,7 +756,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartMongoDBExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -819,7 +780,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTPgSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -844,7 +804,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTPgSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTMongoDBSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -869,7 +828,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTMongoDBSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTMySQLSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -894,7 +852,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_StartPTMySQLSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_CancelAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -919,7 +876,6 @@ func RegisterActionsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Actions_CancelAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -962,7 +918,6 @@ func RegisterActionsHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ActionsClient" to call the correct interceptors. func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActionsClient) error { - mux.Handle("POST", pattern_Actions_GetAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -982,7 +937,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_GetAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1004,7 +958,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLExplainJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1026,7 +979,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLExplainJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLExplainTraditionalJSONAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1048,7 +1000,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLExplainTraditionalJSONAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1070,7 +1021,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLShowTableStatusAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1092,7 +1042,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLShowTableStatusAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMySQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1114,7 +1063,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMySQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowCreateTableAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1136,7 +1084,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPostgreSQLShowCreateTableAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPostgreSQLShowIndexAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1158,7 +1105,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPostgreSQLShowIndexAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartMongoDBExplainAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1180,7 +1126,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartMongoDBExplainAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1202,7 +1147,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTPgSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1224,7 +1168,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTPgSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTMongoDBSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1246,7 +1189,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTMongoDBSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_StartPTMySQLSummaryAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1268,7 +1210,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_StartPTMySQLSummaryAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Actions_CancelAction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -1290,7 +1231,6 @@ func RegisterActionsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Actions_CancelAction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/actions.validator.pb.go b/api/managementpb/actions.validator.pb.go index e257d8a8b2..6ac28644d2 100644 --- a/api/managementpb/actions.validator.pb.go +++ b/api/managementpb/actions.validator.pb.go @@ -6,17 +6,20 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *GetActionRequest) Validate() error { if this.ActionId == "" { @@ -24,9 +27,11 @@ func (this *GetActionRequest) Validate() error { } return nil } + func (this *GetActionResponse) Validate() error { return nil } + func (this *StartMySQLExplainActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -36,9 +41,11 @@ func (this *StartMySQLExplainActionRequest) Validate() error { } return nil } + func (this *StartMySQLExplainActionResponse) Validate() error { return nil } + func (this *StartMySQLExplainJSONActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -48,9 +55,11 @@ func (this *StartMySQLExplainJSONActionRequest) Validate() error { } return nil } + func (this *StartMySQLExplainJSONActionResponse) Validate() error { return nil } + func (this *StartMySQLExplainTraditionalJSONActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -60,9 +69,11 @@ func (this *StartMySQLExplainTraditionalJSONActionRequest) Validate() error { } return nil } + func (this *StartMySQLExplainTraditionalJSONActionResponse) Validate() error { return nil } + func (this *StartMySQLShowCreateTableActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -72,9 +83,11 @@ func (this *StartMySQLShowCreateTableActionRequest) Validate() error { } return nil } + func (this *StartMySQLShowCreateTableActionResponse) Validate() error { return nil } + func (this *StartMySQLShowTableStatusActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -84,9 +97,11 @@ func (this *StartMySQLShowTableStatusActionRequest) Validate() error { } return nil } + func (this *StartMySQLShowTableStatusActionResponse) Validate() error { return nil } + func (this *StartMySQLShowIndexActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -96,9 +111,11 @@ func (this *StartMySQLShowIndexActionRequest) Validate() error { } return nil } + func (this *StartMySQLShowIndexActionResponse) Validate() error { return nil } + func (this *StartPostgreSQLShowCreateTableActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -108,9 +125,11 @@ func (this *StartPostgreSQLShowCreateTableActionRequest) Validate() error { } return nil } + func (this *StartPostgreSQLShowCreateTableActionResponse) Validate() error { return nil } + func (this *StartPostgreSQLShowIndexActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -120,9 +139,11 @@ func (this *StartPostgreSQLShowIndexActionRequest) Validate() error { } return nil } + func (this *StartPostgreSQLShowIndexActionResponse) Validate() error { return nil } + func (this *StartMongoDBExplainActionRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -132,39 +153,50 @@ func (this *StartMongoDBExplainActionRequest) Validate() error { } return nil } + func (this *StartMongoDBExplainActionResponse) Validate() error { return nil } + func (this *StartPTSummaryActionRequest) Validate() error { return nil } + func (this *StartPTSummaryActionResponse) Validate() error { return nil } + func (this *StartPTPgSummaryActionRequest) Validate() error { return nil } + func (this *StartPTPgSummaryActionResponse) Validate() error { return nil } + func (this *StartPTMongoDBSummaryActionRequest) Validate() error { return nil } + func (this *StartPTMongoDBSummaryActionResponse) Validate() error { return nil } + func (this *StartPTMySQLSummaryActionRequest) Validate() error { return nil } + func (this *StartPTMySQLSummaryActionResponse) Validate() error { return nil } + func (this *CancelActionRequest) Validate() error { if this.ActionId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ActionId", fmt.Errorf(`value '%v' must not be an empty string`, this.ActionId)) } return nil } + func (this *CancelActionResponse) Validate() error { return nil } diff --git a/api/managementpb/actions_grpc.pb.go b/api/managementpb/actions_grpc.pb.go index 5858c48e09..b7d3bb5f92 100644 --- a/api/managementpb/actions_grpc.pb.go +++ b/api/managementpb/actions_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -235,51 +236,64 @@ type ActionsServer interface { } // UnimplementedActionsServer must be embedded to have forward compatible implementations. -type UnimplementedActionsServer struct { -} +type UnimplementedActionsServer struct{} func (UnimplementedActionsServer) GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAction not implemented") } + func (UnimplementedActionsServer) StartMySQLExplainAction(context.Context, *StartMySQLExplainActionRequest) (*StartMySQLExplainActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLExplainAction not implemented") } + func (UnimplementedActionsServer) StartMySQLExplainJSONAction(context.Context, *StartMySQLExplainJSONActionRequest) (*StartMySQLExplainJSONActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLExplainJSONAction not implemented") } + func (UnimplementedActionsServer) StartMySQLExplainTraditionalJSONAction(context.Context, *StartMySQLExplainTraditionalJSONActionRequest) (*StartMySQLExplainTraditionalJSONActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLExplainTraditionalJSONAction not implemented") } + func (UnimplementedActionsServer) StartMySQLShowCreateTableAction(context.Context, *StartMySQLShowCreateTableActionRequest) (*StartMySQLShowCreateTableActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLShowCreateTableAction not implemented") } + func (UnimplementedActionsServer) StartMySQLShowTableStatusAction(context.Context, *StartMySQLShowTableStatusActionRequest) (*StartMySQLShowTableStatusActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLShowTableStatusAction not implemented") } + func (UnimplementedActionsServer) StartMySQLShowIndexAction(context.Context, *StartMySQLShowIndexActionRequest) (*StartMySQLShowIndexActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMySQLShowIndexAction not implemented") } + func (UnimplementedActionsServer) StartPostgreSQLShowCreateTableAction(context.Context, *StartPostgreSQLShowCreateTableActionRequest) (*StartPostgreSQLShowCreateTableActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPostgreSQLShowCreateTableAction not implemented") } + func (UnimplementedActionsServer) StartPostgreSQLShowIndexAction(context.Context, *StartPostgreSQLShowIndexActionRequest) (*StartPostgreSQLShowIndexActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPostgreSQLShowIndexAction not implemented") } + func (UnimplementedActionsServer) StartMongoDBExplainAction(context.Context, *StartMongoDBExplainActionRequest) (*StartMongoDBExplainActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartMongoDBExplainAction not implemented") } + func (UnimplementedActionsServer) StartPTSummaryAction(context.Context, *StartPTSummaryActionRequest) (*StartPTSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTSummaryAction not implemented") } + func (UnimplementedActionsServer) StartPTPgSummaryAction(context.Context, *StartPTPgSummaryActionRequest) (*StartPTPgSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTPgSummaryAction not implemented") } + func (UnimplementedActionsServer) StartPTMongoDBSummaryAction(context.Context, *StartPTMongoDBSummaryActionRequest) (*StartPTMongoDBSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTMongoDBSummaryAction not implemented") } + func (UnimplementedActionsServer) StartPTMySQLSummaryAction(context.Context, *StartPTMySQLSummaryActionRequest) (*StartPTMySQLSummaryActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartPTMySQLSummaryAction not implemented") } + func (UnimplementedActionsServer) CancelAction(context.Context, *CancelActionRequest) (*CancelActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelAction not implemented") } diff --git a/api/managementpb/alerting/alerting.pb.go b/api/managementpb/alerting/alerting.pb.go index 86610f8f9b..3f696d9faa 100644 --- a/api/managementpb/alerting/alerting.pb.go +++ b/api/managementpb/alerting/alerting.pb.go @@ -7,15 +7,17 @@ package alertingv1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" - managementpb "github.com/percona/pmm/api/managementpb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + + managementpb "github.com/percona/pmm/api/managementpb" ) const ( @@ -1596,40 +1598,43 @@ func file_managementpb_alerting_alerting_proto_rawDescGZIP() []byte { return file_managementpb_alerting_alerting_proto_rawDescData } -var file_managementpb_alerting_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_managementpb_alerting_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) -var file_managementpb_alerting_alerting_proto_goTypes = []interface{}{ - (TemplateSource)(0), // 0: alerting.v1.TemplateSource - (FilterType)(0), // 1: alerting.v1.FilterType - (*BoolParamDefinition)(nil), // 2: alerting.v1.BoolParamDefinition - (*FloatParamDefinition)(nil), // 3: alerting.v1.FloatParamDefinition - (*StringParamDefinition)(nil), // 4: alerting.v1.StringParamDefinition - (*ParamDefinition)(nil), // 5: alerting.v1.ParamDefinition - (*Template)(nil), // 6: alerting.v1.Template - (*ListTemplatesRequest)(nil), // 7: alerting.v1.ListTemplatesRequest - (*ListTemplatesResponse)(nil), // 8: alerting.v1.ListTemplatesResponse - (*CreateTemplateRequest)(nil), // 9: alerting.v1.CreateTemplateRequest - (*CreateTemplateResponse)(nil), // 10: alerting.v1.CreateTemplateResponse - (*UpdateTemplateRequest)(nil), // 11: alerting.v1.UpdateTemplateRequest - (*UpdateTemplateResponse)(nil), // 12: alerting.v1.UpdateTemplateResponse - (*DeleteTemplateRequest)(nil), // 13: alerting.v1.DeleteTemplateRequest - (*DeleteTemplateResponse)(nil), // 14: alerting.v1.DeleteTemplateResponse - (*Filter)(nil), // 15: alerting.v1.Filter - (*ParamValue)(nil), // 16: alerting.v1.ParamValue - (*CreateRuleRequest)(nil), // 17: alerting.v1.CreateRuleRequest - (*CreateRuleResponse)(nil), // 18: alerting.v1.CreateRuleResponse - nil, // 19: alerting.v1.Template.LabelsEntry - nil, // 20: alerting.v1.Template.AnnotationsEntry - nil, // 21: alerting.v1.CreateRuleRequest.CustomLabelsEntry - (managementpb.BooleanFlag)(0), // 22: managementpb.BooleanFlag - (ParamUnit)(0), // 23: alerting.v1.ParamUnit - (ParamType)(0), // 24: alerting.v1.ParamType - (*durationpb.Duration)(nil), // 25: google.protobuf.Duration - (managementpb.Severity)(0), // 26: management.Severity - (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp - (*managementpb.PageParams)(nil), // 28: management.PageParams - (*managementpb.PageTotals)(nil), // 29: management.PageTotals -} +var ( + file_managementpb_alerting_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_managementpb_alerting_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) + file_managementpb_alerting_alerting_proto_goTypes = []interface{}{ + (TemplateSource)(0), // 0: alerting.v1.TemplateSource + (FilterType)(0), // 1: alerting.v1.FilterType + (*BoolParamDefinition)(nil), // 2: alerting.v1.BoolParamDefinition + (*FloatParamDefinition)(nil), // 3: alerting.v1.FloatParamDefinition + (*StringParamDefinition)(nil), // 4: alerting.v1.StringParamDefinition + (*ParamDefinition)(nil), // 5: alerting.v1.ParamDefinition + (*Template)(nil), // 6: alerting.v1.Template + (*ListTemplatesRequest)(nil), // 7: alerting.v1.ListTemplatesRequest + (*ListTemplatesResponse)(nil), // 8: alerting.v1.ListTemplatesResponse + (*CreateTemplateRequest)(nil), // 9: alerting.v1.CreateTemplateRequest + (*CreateTemplateResponse)(nil), // 10: alerting.v1.CreateTemplateResponse + (*UpdateTemplateRequest)(nil), // 11: alerting.v1.UpdateTemplateRequest + (*UpdateTemplateResponse)(nil), // 12: alerting.v1.UpdateTemplateResponse + (*DeleteTemplateRequest)(nil), // 13: alerting.v1.DeleteTemplateRequest + (*DeleteTemplateResponse)(nil), // 14: alerting.v1.DeleteTemplateResponse + (*Filter)(nil), // 15: alerting.v1.Filter + (*ParamValue)(nil), // 16: alerting.v1.ParamValue + (*CreateRuleRequest)(nil), // 17: alerting.v1.CreateRuleRequest + (*CreateRuleResponse)(nil), // 18: alerting.v1.CreateRuleResponse + nil, // 19: alerting.v1.Template.LabelsEntry + nil, // 20: alerting.v1.Template.AnnotationsEntry + nil, // 21: alerting.v1.CreateRuleRequest.CustomLabelsEntry + (managementpb.BooleanFlag)(0), // 22: managementpb.BooleanFlag + (ParamUnit)(0), // 23: alerting.v1.ParamUnit + (ParamType)(0), // 24: alerting.v1.ParamType + (*durationpb.Duration)(nil), // 25: google.protobuf.Duration + (managementpb.Severity)(0), // 26: management.Severity + (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp + (*managementpb.PageParams)(nil), // 28: management.PageParams + (*managementpb.PageTotals)(nil), // 29: management.PageTotals + } +) + var file_managementpb_alerting_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.BoolParamDefinition.default:type_name -> managementpb.BooleanFlag 23, // 1: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit diff --git a/api/managementpb/alerting/alerting.pb.gw.go b/api/managementpb/alerting/alerting.pb.gw.go index bc2915b9de..46c09f2214 100644 --- a/api/managementpb/alerting/alerting.pb.gw.go +++ b/api/managementpb/alerting/alerting.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Alerting_ListTemplates_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListTemplatesRequest @@ -45,7 +47,6 @@ func request_Alerting_ListTemplates_0(ctx context.Context, marshaler runtime.Mar msg, err := client.ListTemplates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerting_ListTemplates_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Alerting_ListTemplates_0(ctx context.Context, marshaler runti msg, err := server.ListTemplates(ctx, &protoReq) return msg, metadata, err - } func request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runtime.Ma msg, err := client.CreateTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Alerting_CreateTemplate_0(ctx context.Context, marshaler runt msg, err := server.CreateTemplate(ctx, &protoReq) return msg, metadata, err - } func request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runtime.Ma msg, err := client.UpdateTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Alerting_UpdateTemplate_0(ctx context.Context, marshaler runt msg, err := server.UpdateTemplate(ctx, &protoReq) return msg, metadata, err - } func request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runtime.Ma msg, err := client.DeleteTemplate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Alerting_DeleteTemplate_0(ctx context.Context, marshaler runt msg, err := server.DeleteTemplate(ctx, &protoReq) return msg, metadata, err - } func request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime.Marshaler, client AlertingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.CreateRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime.Marshaler, server AlertingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime. msg, err := server.CreateRule(ctx, &protoReq) return msg, metadata, err - } // RegisterAlertingHandlerServer registers the http handlers for service Alerting to "mux". @@ -206,7 +198,6 @@ func local_request_Alerting_CreateRule_0(ctx context.Context, marshaler runtime. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAlertingHandlerFromEndpoint instead. func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertingServer) error { - mux.Handle("POST", pattern_Alerting_ListTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -229,7 +220,6 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_ListTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_CreateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -254,7 +244,6 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_CreateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_UpdateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -279,7 +268,6 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_UpdateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_DeleteTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -304,7 +292,6 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_DeleteTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_CreateRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -329,7 +316,6 @@ func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Alerting_CreateRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -372,7 +358,6 @@ func RegisterAlertingHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AlertingClient" to call the correct interceptors. func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertingClient) error { - mux.Handle("POST", pattern_Alerting_ListTemplates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -392,7 +377,6 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_ListTemplates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_CreateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -414,7 +398,6 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_CreateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_UpdateTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -436,7 +419,6 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_UpdateTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_DeleteTemplate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -458,7 +440,6 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_DeleteTemplate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerting_CreateRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -480,7 +461,6 @@ func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Alerting_CreateRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/alerting/alerting.validator.pb.go b/api/managementpb/alerting/alerting.validator.pb.go index dff0e2905e..89effe6e7e 100644 --- a/api/managementpb/alerting/alerting.validator.pb.go +++ b/api/managementpb/alerting/alerting.validator.pb.go @@ -6,29 +6,36 @@ package alertingv1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" _ "google.golang.org/protobuf/types/known/timestamppb" + _ "github.com/percona/pmm/api/managementpb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *BoolParamDefinition) Validate() error { return nil } + func (this *FloatParamDefinition) Validate() error { return nil } + func (this *StringParamDefinition) Validate() error { return nil } + func (this *ParamDefinition) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) @@ -59,6 +66,7 @@ func (this *ParamDefinition) Validate() error { } return nil } + func (this *Template) Validate() error { for _, item := range this.Params { if item != nil { @@ -81,6 +89,7 @@ func (this *Template) Validate() error { } return nil } + func (this *ListTemplatesRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -89,6 +98,7 @@ func (this *ListTemplatesRequest) Validate() error { } return nil } + func (this *ListTemplatesResponse) Validate() error { for _, item := range this.Templates { if item != nil { @@ -104,15 +114,18 @@ func (this *ListTemplatesResponse) Validate() error { } return nil } + func (this *CreateTemplateRequest) Validate() error { if this.Yaml == "" { return github_com_mwitkow_go_proto_validators.FieldError("Yaml", fmt.Errorf(`value '%v' must not be an empty string`, this.Yaml)) } return nil } + func (this *CreateTemplateResponse) Validate() error { return nil } + func (this *UpdateTemplateRequest) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) @@ -122,27 +135,33 @@ func (this *UpdateTemplateRequest) Validate() error { } return nil } + func (this *UpdateTemplateResponse) Validate() error { return nil } + func (this *DeleteTemplateRequest) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) } return nil } + func (this *DeleteTemplateResponse) Validate() error { return nil } + func (this *Filter) Validate() error { return nil } + func (this *ParamValue) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) } return nil } + func (this *CreateRuleRequest) Validate() error { for _, item := range this.Params { if item != nil { @@ -166,6 +185,7 @@ func (this *CreateRuleRequest) Validate() error { } return nil } + func (this *CreateRuleResponse) Validate() error { return nil } diff --git a/api/managementpb/alerting/alerting_grpc.pb.go b/api/managementpb/alerting/alerting_grpc.pb.go index 5ace022939..351225ade9 100644 --- a/api/managementpb/alerting/alerting_grpc.pb.go +++ b/api/managementpb/alerting/alerting_grpc.pb.go @@ -8,6 +8,7 @@ package alertingv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -105,21 +106,24 @@ type AlertingServer interface { } // UnimplementedAlertingServer must be embedded to have forward compatible implementations. -type UnimplementedAlertingServer struct { -} +type UnimplementedAlertingServer struct{} func (UnimplementedAlertingServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTemplates not implemented") } + func (UnimplementedAlertingServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTemplate not implemented") } + func (UnimplementedAlertingServer) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateTemplate not implemented") } + func (UnimplementedAlertingServer) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteTemplate not implemented") } + func (UnimplementedAlertingServer) CreateRule(context.Context, *CreateRuleRequest) (*CreateRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateRule not implemented") } diff --git a/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go b/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go index 0a8a84af09..2ed45ff356 100644 --- a/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/create_rule_parameters.go @@ -60,7 +60,6 @@ CreateRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateRuleParams struct { - // Body. Body CreateRuleBody @@ -130,7 +129,6 @@ func (o *CreateRuleParams) SetBody(body CreateRuleBody) { // WriteToRequest writes these params to a swagger request func (o *CreateRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/create_rule_responses.go b/api/managementpb/alerting/json/client/alerting/create_rule_responses.go index 635bb12234..645d3f8b71 100644 --- a/api/managementpb/alerting/json/client/alerting/create_rule_responses.go +++ b/api/managementpb/alerting/json/client/alerting/create_rule_responses.go @@ -62,12 +62,12 @@ type CreateRuleOK struct { func (o *CreateRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Rules/Create][%d] createRuleOk %+v", 200, o.Payload) } + func (o *CreateRuleOK) GetPayload() interface{} { return o.Payload } func (o *CreateRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *CreateRuleDefault) Code() int { func (o *CreateRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Rules/Create][%d] CreateRule default %+v", o._statusCode, o.Payload) } + func (o *CreateRuleDefault) GetPayload() *CreateRuleDefaultBody { return o.Payload } func (o *CreateRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateRuleDefaultBody) // response payload @@ -123,7 +123,6 @@ CreateRuleBody create rule body swagger:model CreateRuleBody */ type CreateRuleBody struct { - // Template name. TemplateName string `json:"template_name,omitempty"` @@ -309,9 +308,7 @@ func (o *CreateRuleBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *CreateRuleBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Params); i++ { - if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -322,16 +319,13 @@ func (o *CreateRuleBody) contextValidateParams(ctx context.Context, formats strf return err } } - } return nil } func (o *CreateRuleBody) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Filters); i++ { - if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -342,7 +336,6 @@ func (o *CreateRuleBody) contextValidateFilters(ctx context.Context, formats str return err } } - } return nil @@ -371,7 +364,6 @@ CreateRuleDefaultBody create rule default body swagger:model CreateRuleDefaultBody */ type CreateRuleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -437,9 +429,7 @@ func (o *CreateRuleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *CreateRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -450,7 +440,6 @@ func (o *CreateRuleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -479,7 +468,6 @@ CreateRuleDefaultBodyDetailsItems0 create rule default body details items0 swagger:model CreateRuleDefaultBodyDetailsItems0 */ type CreateRuleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -517,7 +505,6 @@ CreateRuleParamsBodyFiltersItems0 Filter represents a single filter condition. swagger:model CreateRuleParamsBodyFiltersItems0 */ type CreateRuleParamsBodyFiltersItems0 struct { - // FilterType represents filter matching type. // Enum: [FILTER_TYPE_INVALID MATCH MISMATCH] Type *string `json:"type,omitempty"` @@ -616,7 +603,6 @@ CreateRuleParamsBodyParamsItems0 ParamValue represents a single rule parameter v swagger:model CreateRuleParamsBodyParamsItems0 */ type CreateRuleParamsBodyParamsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/alerting/json/client/alerting/create_template_parameters.go b/api/managementpb/alerting/json/client/alerting/create_template_parameters.go index b0f1301962..02a03694ee 100644 --- a/api/managementpb/alerting/json/client/alerting/create_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/create_template_parameters.go @@ -60,7 +60,6 @@ CreateTemplateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateTemplateParams struct { - // Body. Body CreateTemplateBody @@ -130,7 +129,6 @@ func (o *CreateTemplateParams) SetBody(body CreateTemplateBody) { // WriteToRequest writes these params to a swagger request func (o *CreateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/create_template_responses.go b/api/managementpb/alerting/json/client/alerting/create_template_responses.go index c9761f6fff..b7f4dd8f7d 100644 --- a/api/managementpb/alerting/json/client/alerting/create_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/create_template_responses.go @@ -60,12 +60,12 @@ type CreateTemplateOK struct { func (o *CreateTemplateOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Create][%d] createTemplateOk %+v", 200, o.Payload) } + func (o *CreateTemplateOK) GetPayload() interface{} { return o.Payload } func (o *CreateTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CreateTemplateDefault) Code() int { func (o *CreateTemplateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Create][%d] CreateTemplate default %+v", o._statusCode, o.Payload) } + func (o *CreateTemplateDefault) GetPayload() *CreateTemplateDefaultBody { return o.Payload } func (o *CreateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateTemplateDefaultBody) // response payload @@ -121,7 +121,6 @@ CreateTemplateBody create template body swagger:model CreateTemplateBody */ type CreateTemplateBody struct { - // YAML (or JSON) template file content. Yaml string `json:"yaml,omitempty"` } @@ -159,7 +158,6 @@ CreateTemplateDefaultBody create template default body swagger:model CreateTemplateDefaultBody */ type CreateTemplateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *CreateTemplateDefaultBody) ContextValidate(ctx context.Context, formats } func (o *CreateTemplateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *CreateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -267,7 +262,6 @@ CreateTemplateDefaultBodyDetailsItems0 create template default body details item swagger:model CreateTemplateDefaultBodyDetailsItems0 */ type CreateTemplateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go b/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go index 9a5fb37a1f..ba1bfb54cd 100644 --- a/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/delete_template_parameters.go @@ -60,7 +60,6 @@ DeleteTemplateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteTemplateParams struct { - // Body. Body DeleteTemplateBody @@ -130,7 +129,6 @@ func (o *DeleteTemplateParams) SetBody(body DeleteTemplateBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/delete_template_responses.go b/api/managementpb/alerting/json/client/alerting/delete_template_responses.go index 83a429dc72..07d858421d 100644 --- a/api/managementpb/alerting/json/client/alerting/delete_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/delete_template_responses.go @@ -60,12 +60,12 @@ type DeleteTemplateOK struct { func (o *DeleteTemplateOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Delete][%d] deleteTemplateOk %+v", 200, o.Payload) } + func (o *DeleteTemplateOK) GetPayload() interface{} { return o.Payload } func (o *DeleteTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DeleteTemplateDefault) Code() int { func (o *DeleteTemplateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Delete][%d] DeleteTemplate default %+v", o._statusCode, o.Payload) } + func (o *DeleteTemplateDefault) GetPayload() *DeleteTemplateDefaultBody { return o.Payload } func (o *DeleteTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteTemplateDefaultBody) // response payload @@ -121,7 +121,6 @@ DeleteTemplateBody delete template body swagger:model DeleteTemplateBody */ type DeleteTemplateBody struct { - // name Name string `json:"name,omitempty"` } @@ -159,7 +158,6 @@ DeleteTemplateDefaultBody delete template default body swagger:model DeleteTemplateDefaultBody */ type DeleteTemplateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *DeleteTemplateDefaultBody) ContextValidate(ctx context.Context, formats } func (o *DeleteTemplateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *DeleteTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -267,7 +262,6 @@ DeleteTemplateDefaultBodyDetailsItems0 delete template default body details item swagger:model DeleteTemplateDefaultBodyDetailsItems0 */ type DeleteTemplateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go b/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go index 5d959c0791..c8054173a2 100644 --- a/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/list_templates_parameters.go @@ -60,7 +60,6 @@ ListTemplatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListTemplatesParams struct { - // Body. Body ListTemplatesBody @@ -130,7 +129,6 @@ func (o *ListTemplatesParams) SetBody(body ListTemplatesBody) { // WriteToRequest writes these params to a swagger request func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/list_templates_responses.go b/api/managementpb/alerting/json/client/alerting/list_templates_responses.go index 8b4b7e1b9c..cee8c814a3 100644 --- a/api/managementpb/alerting/json/client/alerting/list_templates_responses.go +++ b/api/managementpb/alerting/json/client/alerting/list_templates_responses.go @@ -62,12 +62,12 @@ type ListTemplatesOK struct { func (o *ListTemplatesOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/List][%d] listTemplatesOk %+v", 200, o.Payload) } + func (o *ListTemplatesOK) GetPayload() *ListTemplatesOKBody { return o.Payload } func (o *ListTemplatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListTemplatesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListTemplatesDefault) Code() int { func (o *ListTemplatesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/List][%d] ListTemplates default %+v", o._statusCode, o.Payload) } + func (o *ListTemplatesDefault) GetPayload() *ListTemplatesDefaultBody { return o.Payload } func (o *ListTemplatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListTemplatesDefaultBody) // response payload @@ -125,7 +125,6 @@ ListTemplatesBody list templates body swagger:model ListTemplatesBody */ type ListTemplatesBody struct { - // If true, template files will be re-read from disk. Reload bool `json:"reload,omitempty"` @@ -181,7 +180,6 @@ func (o *ListTemplatesBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ListTemplatesBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { - if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ ListTemplatesDefaultBody list templates default body swagger:model ListTemplatesDefaultBody */ type ListTemplatesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *ListTemplatesDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListTemplatesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *ListTemplatesDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -327,7 +321,6 @@ ListTemplatesDefaultBodyDetailsItems0 list templates default body details items0 swagger:model ListTemplatesDefaultBodyDetailsItems0 */ type ListTemplatesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ ListTemplatesOKBody list templates OK body swagger:model ListTemplatesOKBody */ type ListTemplatesOKBody struct { - // templates Templates []*ListTemplatesOKBodyTemplatesItems0 `json:"templates"` @@ -455,9 +447,7 @@ func (o *ListTemplatesOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ListTemplatesOKBody) contextValidateTemplates(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Templates); i++ { - if o.Templates[i] != nil { if err := o.Templates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -468,14 +458,12 @@ func (o *ListTemplatesOKBody) contextValidateTemplates(ctx context.Context, form return err } } - } return nil } func (o *ListTemplatesOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { - if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -513,7 +501,6 @@ ListTemplatesOKBodyTemplatesItems0 Template represents Alert Template that is us swagger:model ListTemplatesOKBodyTemplatesItems0 */ type ListTemplatesOKBodyTemplatesItems0 struct { - // Machine-readable name (ID). Name string `json:"name,omitempty"` @@ -749,9 +736,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0) ContextValidate(ctx context.Context } func (o *ListTemplatesOKBodyTemplatesItems0) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Params); i++ { - if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -762,7 +747,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0) contextValidateParams(ctx context.C return err } } - } return nil @@ -791,7 +775,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0 ParamDefinition represents a sing swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0 */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -1023,7 +1006,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) ContextValidate(ctx con } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { - if o.Bool != nil { if err := o.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1039,7 +1021,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { - if o.Float != nil { if err := o.Float.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1055,7 +1036,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ct } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { - if o.String != nil { if err := o.String.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1093,7 +1073,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool BoolParamDefinition represent swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool struct { - // BooleanFlag represent a command to set some boolean property to true, // to false, or avoid changing that property. // @@ -1191,7 +1170,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Float FloatParamDefinition represe swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Float */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Float struct { - // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -1244,7 +1222,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0String StringParamDefinition repre swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0String */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0String struct { - // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -1285,7 +1262,6 @@ ListTemplatesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListTemplatesOKBodyTotals */ type ListTemplatesOKBodyTotals struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -1326,7 +1302,6 @@ ListTemplatesParamsBodyPageParams PageParams represents page request parameters swagger:model ListTemplatesParamsBodyPageParams */ type ListTemplatesParamsBodyPageParams struct { - // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/alerting/json/client/alerting/update_template_parameters.go b/api/managementpb/alerting/json/client/alerting/update_template_parameters.go index 2b82bcdeed..9fa2d67282 100644 --- a/api/managementpb/alerting/json/client/alerting/update_template_parameters.go +++ b/api/managementpb/alerting/json/client/alerting/update_template_parameters.go @@ -60,7 +60,6 @@ UpdateTemplateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateTemplateParams struct { - // Body. Body UpdateTemplateBody @@ -130,7 +129,6 @@ func (o *UpdateTemplateParams) SetBody(body UpdateTemplateBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/alerting/json/client/alerting/update_template_responses.go b/api/managementpb/alerting/json/client/alerting/update_template_responses.go index d9e8b83554..3d051b737b 100644 --- a/api/managementpb/alerting/json/client/alerting/update_template_responses.go +++ b/api/managementpb/alerting/json/client/alerting/update_template_responses.go @@ -60,12 +60,12 @@ type UpdateTemplateOK struct { func (o *UpdateTemplateOK) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Update][%d] updateTemplateOk %+v", 200, o.Payload) } + func (o *UpdateTemplateOK) GetPayload() interface{} { return o.Payload } func (o *UpdateTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UpdateTemplateDefault) Code() int { func (o *UpdateTemplateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/alerting/Templates/Update][%d] UpdateTemplate default %+v", o._statusCode, o.Payload) } + func (o *UpdateTemplateDefault) GetPayload() *UpdateTemplateDefaultBody { return o.Payload } func (o *UpdateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateTemplateDefaultBody) // response payload @@ -121,7 +121,6 @@ UpdateTemplateBody update template body swagger:model UpdateTemplateBody */ type UpdateTemplateBody struct { - // Machine-readable name (ID). Name string `json:"name,omitempty"` @@ -162,7 +161,6 @@ UpdateTemplateDefaultBody update template default body swagger:model UpdateTemplateDefaultBody */ type UpdateTemplateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *UpdateTemplateDefaultBody) ContextValidate(ctx context.Context, formats } func (o *UpdateTemplateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *UpdateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -270,7 +265,6 @@ UpdateTemplateDefaultBodyDetailsItems0 update template default body details item swagger:model UpdateTemplateDefaultBodyDetailsItems0 */ type UpdateTemplateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/alerting/params.pb.go b/api/managementpb/alerting/params.pb.go index 9caff2bc23..7b1807213a 100644 --- a/api/managementpb/alerting/params.pb.go +++ b/api/managementpb/alerting/params.pb.go @@ -7,10 +7,11 @@ package alertingv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -166,11 +167,14 @@ func file_managementpb_alerting_params_proto_rawDescGZIP() []byte { return file_managementpb_alerting_params_proto_rawDescData } -var file_managementpb_alerting_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_managementpb_alerting_params_proto_goTypes = []interface{}{ - (ParamUnit)(0), // 0: alerting.v1.ParamUnit - (ParamType)(0), // 1: alerting.v1.ParamType -} +var ( + file_managementpb_alerting_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_managementpb_alerting_params_proto_goTypes = []interface{}{ + (ParamUnit)(0), // 0: alerting.v1.ParamUnit + (ParamType)(0), // 1: alerting.v1.ParamType + } +) + var file_managementpb_alerting_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/alerting/params.validator.pb.go b/api/managementpb/alerting/params.validator.pb.go index e0aae2356b..dc3ebf3e63 100644 --- a/api/managementpb/alerting/params.validator.pb.go +++ b/api/managementpb/alerting/params.validator.pb.go @@ -6,10 +6,13 @@ package alertingv1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/managementpb/annotation.pb.go b/api/managementpb/annotation.pb.go index c0bd0921f5..a8dc49bbd3 100644 --- a/api/managementpb/annotation.pb.go +++ b/api/managementpb/annotation.pb.go @@ -7,13 +7,14 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -197,11 +198,14 @@ func file_managementpb_annotation_proto_rawDescGZIP() []byte { return file_managementpb_annotation_proto_rawDescData } -var file_managementpb_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_managementpb_annotation_proto_goTypes = []interface{}{ - (*AddAnnotationRequest)(nil), // 0: management.AddAnnotationRequest - (*AddAnnotationResponse)(nil), // 1: management.AddAnnotationResponse -} +var ( + file_managementpb_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_managementpb_annotation_proto_goTypes = []interface{}{ + (*AddAnnotationRequest)(nil), // 0: management.AddAnnotationRequest + (*AddAnnotationResponse)(nil), // 1: management.AddAnnotationResponse + } +) + var file_managementpb_annotation_proto_depIdxs = []int32{ 0, // 0: management.Annotation.AddAnnotation:input_type -> management.AddAnnotationRequest 1, // 1: management.Annotation.AddAnnotation:output_type -> management.AddAnnotationResponse diff --git a/api/managementpb/annotation.pb.gw.go b/api/managementpb/annotation.pb.gw.go index cd2cf1f3bd..ef9049548f 100644 --- a/api/managementpb/annotation.pb.gw.go +++ b/api/managementpb/annotation.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Annotation_AddAnnotation_0(ctx context.Context, marshaler runtime.Marshaler, client AnnotationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddAnnotationRequest @@ -45,7 +47,6 @@ func request_Annotation_AddAnnotation_0(ctx context.Context, marshaler runtime.M msg, err := client.AddAnnotation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Annotation_AddAnnotation_0(ctx context.Context, marshaler runtime.Marshaler, server AnnotationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Annotation_AddAnnotation_0(ctx context.Context, marshaler run msg, err := server.AddAnnotation(ctx, &protoReq) return msg, metadata, err - } // RegisterAnnotationHandlerServer registers the http handlers for service Annotation to "mux". @@ -70,7 +70,6 @@ func local_request_Annotation_AddAnnotation_0(ctx context.Context, marshaler run // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAnnotationHandlerFromEndpoint instead. func RegisterAnnotationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnnotationServer) error { - mux.Handle("POST", pattern_Annotation_AddAnnotation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterAnnotationHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Annotation_AddAnnotation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterAnnotationHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AnnotationClient" to call the correct interceptors. func RegisterAnnotationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnnotationClient) error { - mux.Handle("POST", pattern_Annotation_AddAnnotation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterAnnotationHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Annotation_AddAnnotation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_Annotation_AddAnnotation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Annotations", "Add"}, "")) -) +var pattern_Annotation_AddAnnotation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Annotations", "Add"}, "")) -var ( - forward_Annotation_AddAnnotation_0 = runtime.ForwardResponseMessage -) +var forward_Annotation_AddAnnotation_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/annotation.validator.pb.go b/api/managementpb/annotation.validator.pb.go index faca3eabcc..99793fab68 100644 --- a/api/managementpb/annotation.validator.pb.go +++ b/api/managementpb/annotation.validator.pb.go @@ -6,17 +6,20 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddAnnotationRequest) Validate() error { if this.Text == "" { @@ -24,6 +27,7 @@ func (this *AddAnnotationRequest) Validate() error { } return nil } + func (this *AddAnnotationResponse) Validate() error { return nil } diff --git a/api/managementpb/annotation_grpc.pb.go b/api/managementpb/annotation_grpc.pb.go index 1fdbe17d21..2e5e6f2f7b 100644 --- a/api/managementpb/annotation_grpc.pb.go +++ b/api/managementpb/annotation_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type AnnotationServer interface { } // UnimplementedAnnotationServer must be embedded to have forward compatible implementations. -type UnimplementedAnnotationServer struct { -} +type UnimplementedAnnotationServer struct{} func (UnimplementedAnnotationServer) AddAnnotation(context.Context, *AddAnnotationRequest) (*AddAnnotationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAnnotation not implemented") diff --git a/api/managementpb/azure/azure.pb.go b/api/managementpb/azure/azure.pb.go index 50795d2720..1b80bc550a 100644 --- a/api/managementpb/azure/azure.pb.go +++ b/api/managementpb/azure/azure.pb.go @@ -7,12 +7,13 @@ package azurev1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -825,17 +826,20 @@ func file_managementpb_azure_azure_proto_rawDescGZIP() []byte { return file_managementpb_azure_azure_proto_rawDescData } -var file_managementpb_azure_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_azure_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_managementpb_azure_azure_proto_goTypes = []interface{}{ - (DiscoverAzureDatabaseType)(0), // 0: azure.v1beta1.DiscoverAzureDatabaseType - (*DiscoverAzureDatabaseRequest)(nil), // 1: azure.v1beta1.DiscoverAzureDatabaseRequest - (*DiscoverAzureDatabaseInstance)(nil), // 2: azure.v1beta1.DiscoverAzureDatabaseInstance - (*DiscoverAzureDatabaseResponse)(nil), // 3: azure.v1beta1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseRequest)(nil), // 4: azure.v1beta1.AddAzureDatabaseRequest - (*AddAzureDatabaseResponse)(nil), // 5: azure.v1beta1.AddAzureDatabaseResponse - nil, // 6: azure.v1beta1.AddAzureDatabaseRequest.CustomLabelsEntry -} +var ( + file_managementpb_azure_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_azure_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_managementpb_azure_azure_proto_goTypes = []interface{}{ + (DiscoverAzureDatabaseType)(0), // 0: azure.v1beta1.DiscoverAzureDatabaseType + (*DiscoverAzureDatabaseRequest)(nil), // 1: azure.v1beta1.DiscoverAzureDatabaseRequest + (*DiscoverAzureDatabaseInstance)(nil), // 2: azure.v1beta1.DiscoverAzureDatabaseInstance + (*DiscoverAzureDatabaseResponse)(nil), // 3: azure.v1beta1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseRequest)(nil), // 4: azure.v1beta1.AddAzureDatabaseRequest + (*AddAzureDatabaseResponse)(nil), // 5: azure.v1beta1.AddAzureDatabaseResponse + nil, // 6: azure.v1beta1.AddAzureDatabaseRequest.CustomLabelsEntry + } +) + var file_managementpb_azure_azure_proto_depIdxs = []int32{ 0, // 0: azure.v1beta1.DiscoverAzureDatabaseInstance.type:type_name -> azure.v1beta1.DiscoverAzureDatabaseType 2, // 1: azure.v1beta1.DiscoverAzureDatabaseResponse.azure_database_instance:type_name -> azure.v1beta1.DiscoverAzureDatabaseInstance diff --git a/api/managementpb/azure/azure.pb.gw.go b/api/managementpb/azure/azure.pb.gw.go index 0d6bbeb811..30c6d2b5d2 100644 --- a/api/managementpb/azure/azure.pb.gw.go +++ b/api/managementpb/azure/azure.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, client AzureDatabaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq DiscoverAzureDatabaseRequest @@ -45,7 +47,6 @@ func request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, marshale msg, err := client.DiscoverAzureDatabase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, server AzureDatabaseServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_AzureDatabase_DiscoverAzureDatabase_0(ctx context.Context, ma msg, err := server.DiscoverAzureDatabase(ctx, &protoReq) return msg, metadata, err - } func request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, client AzureDatabaseClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshaler run msg, err := client.AddAzureDatabase(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshaler runtime.Marshaler, server AzureDatabaseServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshal msg, err := server.AddAzureDatabase(ctx, &protoReq) return msg, metadata, err - } // RegisterAzureDatabaseHandlerServer registers the http handlers for service AzureDatabase to "mux". @@ -104,7 +102,6 @@ func local_request_AzureDatabase_AddAzureDatabase_0(ctx context.Context, marshal // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAzureDatabaseHandlerFromEndpoint instead. func RegisterAzureDatabaseHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AzureDatabaseServer) error { - mux.Handle("POST", pattern_AzureDatabase_DiscoverAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -127,7 +124,6 @@ func RegisterAzureDatabaseHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_DiscoverAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_AzureDatabase_AddAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -152,7 +148,6 @@ func RegisterAzureDatabaseHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_AddAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -195,7 +190,6 @@ func RegisterAzureDatabaseHandler(ctx context.Context, mux *runtime.ServeMux, co // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AzureDatabaseClient" to call the correct interceptors. func RegisterAzureDatabaseHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AzureDatabaseClient) error { - mux.Handle("POST", pattern_AzureDatabase_DiscoverAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -215,7 +209,6 @@ func RegisterAzureDatabaseHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_DiscoverAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_AzureDatabase_AddAzureDatabase_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -237,7 +230,6 @@ func RegisterAzureDatabaseHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_AzureDatabase_AddAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/azure/azure.validator.pb.go b/api/managementpb/azure/azure.validator.pb.go index 61ffccb202..b0a3d93a8e 100644 --- a/api/managementpb/azure/azure.validator.pb.go +++ b/api/managementpb/azure/azure.validator.pb.go @@ -6,16 +6,19 @@ package azurev1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *DiscoverAzureDatabaseRequest) Validate() error { if this.AzureClientId == "" { @@ -32,9 +35,11 @@ func (this *DiscoverAzureDatabaseRequest) Validate() error { } return nil } + func (this *DiscoverAzureDatabaseInstance) Validate() error { return nil } + func (this *DiscoverAzureDatabaseResponse) Validate() error { for _, item := range this.AzureDatabaseInstance { if item != nil { @@ -45,6 +50,7 @@ func (this *DiscoverAzureDatabaseResponse) Validate() error { } return nil } + func (this *AddAzureDatabaseRequest) Validate() error { if this.Region == "" { return github_com_mwitkow_go_proto_validators.FieldError("Region", fmt.Errorf(`value '%v' must not be an empty string`, this.Region)) @@ -79,6 +85,7 @@ func (this *AddAzureDatabaseRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddAzureDatabaseResponse) Validate() error { return nil } diff --git a/api/managementpb/azure/azure_grpc.pb.go b/api/managementpb/azure/azure_grpc.pb.go index dd5dc8376f..39d3da81aa 100644 --- a/api/managementpb/azure/azure_grpc.pb.go +++ b/api/managementpb/azure/azure_grpc.pb.go @@ -8,6 +8,7 @@ package azurev1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -66,12 +67,12 @@ type AzureDatabaseServer interface { } // UnimplementedAzureDatabaseServer must be embedded to have forward compatible implementations. -type UnimplementedAzureDatabaseServer struct { -} +type UnimplementedAzureDatabaseServer struct{} func (UnimplementedAzureDatabaseServer) DiscoverAzureDatabase(context.Context, *DiscoverAzureDatabaseRequest) (*DiscoverAzureDatabaseResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DiscoverAzureDatabase not implemented") } + func (UnimplementedAzureDatabaseServer) AddAzureDatabase(context.Context, *AddAzureDatabaseRequest) (*AddAzureDatabaseResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddAzureDatabase not implemented") } diff --git a/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go b/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go index 416354a45e..0eb4da68c3 100644 --- a/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go +++ b/api/managementpb/azure/json/client/azure_database/add_azure_database_parameters.go @@ -60,7 +60,6 @@ AddAzureDatabaseParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddAzureDatabaseParams struct { - // Body. Body AddAzureDatabaseBody @@ -130,7 +129,6 @@ func (o *AddAzureDatabaseParams) SetBody(body AddAzureDatabaseBody) { // WriteToRequest writes these params to a swagger request func (o *AddAzureDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go b/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go index e07c79a6d6..84dff23137 100644 --- a/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go +++ b/api/managementpb/azure/json/client/azure_database/add_azure_database_responses.go @@ -62,12 +62,12 @@ type AddAzureDatabaseOK struct { func (o *AddAzureDatabaseOK) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Add][%d] addAzureDatabaseOk %+v", 200, o.Payload) } + func (o *AddAzureDatabaseOK) GetPayload() interface{} { return o.Payload } func (o *AddAzureDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *AddAzureDatabaseDefault) Code() int { func (o *AddAzureDatabaseDefault) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Add][%d] AddAzureDatabase default %+v", o._statusCode, o.Payload) } + func (o *AddAzureDatabaseDefault) GetPayload() *AddAzureDatabaseDefaultBody { return o.Payload } func (o *AddAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAzureDatabaseDefaultBody) // response payload @@ -123,7 +123,6 @@ AddAzureDatabaseBody add azure database body swagger:model AddAzureDatabaseBody */ type AddAzureDatabaseBody struct { - // Azure database location. Region string `json:"region,omitempty"` @@ -294,7 +293,6 @@ AddAzureDatabaseDefaultBody add azure database default body swagger:model AddAzureDatabaseDefaultBody */ type AddAzureDatabaseDefaultBody struct { - // error Error string `json:"error,omitempty"` @@ -363,9 +361,7 @@ func (o *AddAzureDatabaseDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AddAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -376,7 +372,6 @@ func (o *AddAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -405,7 +400,6 @@ AddAzureDatabaseDefaultBodyDetailsItems0 add azure database default body details swagger:model AddAzureDatabaseDefaultBodyDetailsItems0 */ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { - // type url TypeURL string `json:"type_url,omitempty"` diff --git a/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go b/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go index e3e4400c01..a3d93a92e1 100644 --- a/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go +++ b/api/managementpb/azure/json/client/azure_database/discover_azure_database_parameters.go @@ -60,7 +60,6 @@ DiscoverAzureDatabaseParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type DiscoverAzureDatabaseParams struct { - // Body. Body DiscoverAzureDatabaseBody @@ -130,7 +129,6 @@ func (o *DiscoverAzureDatabaseParams) SetBody(body DiscoverAzureDatabaseBody) { // WriteToRequest writes these params to a swagger request func (o *DiscoverAzureDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go b/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go index 3e32f8f17b..8198487041 100644 --- a/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go +++ b/api/managementpb/azure/json/client/azure_database/discover_azure_database_responses.go @@ -62,12 +62,12 @@ type DiscoverAzureDatabaseOK struct { func (o *DiscoverAzureDatabaseOK) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Discover][%d] discoverAzureDatabaseOk %+v", 200, o.Payload) } + func (o *DiscoverAzureDatabaseOK) GetPayload() *DiscoverAzureDatabaseOKBody { return o.Payload } func (o *DiscoverAzureDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverAzureDatabaseOKBody) // response payload @@ -104,12 +104,12 @@ func (o *DiscoverAzureDatabaseDefault) Code() int { func (o *DiscoverAzureDatabaseDefault) Error() string { return fmt.Sprintf("[POST /v1/management/azure/AzureDatabase/Discover][%d] DiscoverAzureDatabase default %+v", o._statusCode, o.Payload) } + func (o *DiscoverAzureDatabaseDefault) GetPayload() *DiscoverAzureDatabaseDefaultBody { return o.Payload } func (o *DiscoverAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverAzureDatabaseDefaultBody) // response payload @@ -125,7 +125,6 @@ DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases swagger:model DiscoverAzureDatabaseBody */ type DiscoverAzureDatabaseBody struct { - // Azure client ID. AzureClientID string `json:"azure_client_id,omitempty"` @@ -172,7 +171,6 @@ DiscoverAzureDatabaseDefaultBody discover azure database default body swagger:model DiscoverAzureDatabaseDefaultBody */ type DiscoverAzureDatabaseDefaultBody struct { - // error Error string `json:"error,omitempty"` @@ -241,9 +239,7 @@ func (o *DiscoverAzureDatabaseDefaultBody) ContextValidate(ctx context.Context, } func (o *DiscoverAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -254,7 +250,6 @@ func (o *DiscoverAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -283,7 +278,6 @@ DiscoverAzureDatabaseDefaultBodyDetailsItems0 discover azure database default bo swagger:model DiscoverAzureDatabaseDefaultBodyDetailsItems0 */ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { - // type url TypeURL string `json:"type_url,omitempty"` @@ -325,7 +319,6 @@ DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databas swagger:model DiscoverAzureDatabaseOKBody */ type DiscoverAzureDatabaseOKBody struct { - // azure database instance AzureDatabaseInstance []*DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 `json:"azure_database_instance"` } @@ -385,9 +378,7 @@ func (o *DiscoverAzureDatabaseOKBody) ContextValidate(ctx context.Context, forma } func (o *DiscoverAzureDatabaseOKBody) contextValidateAzureDatabaseInstance(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.AzureDatabaseInstance); i++ { - if o.AzureDatabaseInstance[i] != nil { if err := o.AzureDatabaseInstance[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -398,7 +389,6 @@ func (o *DiscoverAzureDatabaseOKBody) contextValidateAzureDatabaseInstance(ctx c return err } } - } return nil @@ -427,7 +417,6 @@ DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 DiscoverAzureDatabaseInst swagger:model DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 */ type DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 struct { - // Azure database instance ID. InstanceID string `json:"instance_id,omitempty"` diff --git a/api/managementpb/backup/artifacts.pb.go b/api/managementpb/backup/artifacts.pb.go index 9830346639..f6ffe840a7 100644 --- a/api/managementpb/backup/artifacts.pb.go +++ b/api/managementpb/backup/artifacts.pb.go @@ -7,12 +7,13 @@ package backupv1beta1 import ( + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" ) const ( @@ -521,19 +522,22 @@ func file_managementpb_backup_artifacts_proto_rawDescGZIP() []byte { return file_managementpb_backup_artifacts_proto_rawDescData } -var file_managementpb_backup_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_backup_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_managementpb_backup_artifacts_proto_goTypes = []interface{}{ - (BackupStatus)(0), // 0: backup.v1beta1.BackupStatus - (*Artifact)(nil), // 1: backup.v1beta1.Artifact - (*ListArtifactsRequest)(nil), // 2: backup.v1beta1.ListArtifactsRequest - (*ListArtifactsResponse)(nil), // 3: backup.v1beta1.ListArtifactsResponse - (*DeleteArtifactRequest)(nil), // 4: backup.v1beta1.DeleteArtifactRequest - (*DeleteArtifactResponse)(nil), // 5: backup.v1beta1.DeleteArtifactResponse - (DataModel)(0), // 6: backup.v1beta1.DataModel - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (BackupMode)(0), // 8: backup.v1beta1.BackupMode -} +var ( + file_managementpb_backup_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_backup_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 5) + file_managementpb_backup_artifacts_proto_goTypes = []interface{}{ + (BackupStatus)(0), // 0: backup.v1beta1.BackupStatus + (*Artifact)(nil), // 1: backup.v1beta1.Artifact + (*ListArtifactsRequest)(nil), // 2: backup.v1beta1.ListArtifactsRequest + (*ListArtifactsResponse)(nil), // 3: backup.v1beta1.ListArtifactsResponse + (*DeleteArtifactRequest)(nil), // 4: backup.v1beta1.DeleteArtifactRequest + (*DeleteArtifactResponse)(nil), // 5: backup.v1beta1.DeleteArtifactResponse + (DataModel)(0), // 6: backup.v1beta1.DataModel + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (BackupMode)(0), // 8: backup.v1beta1.BackupMode + } +) + var file_managementpb_backup_artifacts_proto_depIdxs = []int32{ 6, // 0: backup.v1beta1.Artifact.data_model:type_name -> backup.v1beta1.DataModel 0, // 1: backup.v1beta1.Artifact.status:type_name -> backup.v1beta1.BackupStatus diff --git a/api/managementpb/backup/artifacts.pb.gw.go b/api/managementpb/backup/artifacts.pb.gw.go index fcb89f7b5c..ca3cd17335 100644 --- a/api/managementpb/backup/artifacts.pb.gw.go +++ b/api/managementpb/backup/artifacts.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListArtifactsRequest @@ -45,7 +47,6 @@ func request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runtime.Ma msg, err := client.ListArtifacts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Artifacts_ListArtifacts_0(ctx context.Context, marshaler runt msg, err := server.ListArtifacts(ctx, &protoReq) return msg, metadata, err - } func request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler runtime.M msg, err := client.DeleteArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler runtime.Marshaler, server ArtifactsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler run msg, err := server.DeleteArtifact(ctx, &protoReq) return msg, metadata, err - } // RegisterArtifactsHandlerServer registers the http handlers for service Artifacts to "mux". @@ -104,7 +102,6 @@ func local_request_Artifacts_DeleteArtifact_0(ctx context.Context, marshaler run // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterArtifactsHandlerFromEndpoint instead. func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactsServer) error { - mux.Handle("POST", pattern_Artifacts_ListArtifacts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -127,7 +124,6 @@ func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_ListArtifacts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Artifacts_DeleteArtifact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -152,7 +148,6 @@ func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_DeleteArtifact_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -195,7 +190,6 @@ func RegisterArtifactsHandler(ctx context.Context, mux *runtime.ServeMux, conn * // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ArtifactsClient" to call the correct interceptors. func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactsClient) error { - mux.Handle("POST", pattern_Artifacts_ListArtifacts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -215,7 +209,6 @@ func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_ListArtifacts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Artifacts_DeleteArtifact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -237,7 +230,6 @@ func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Artifacts_DeleteArtifact_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/backup/artifacts.validator.pb.go b/api/managementpb/backup/artifacts.validator.pb.go index 77e0991b02..953763345e 100644 --- a/api/managementpb/backup/artifacts.validator.pb.go +++ b/api/managementpb/backup/artifacts.validator.pb.go @@ -6,16 +6,19 @@ package backupv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Artifact) Validate() error { if this.CreatedAt != nil { @@ -25,9 +28,11 @@ func (this *Artifact) Validate() error { } return nil } + func (this *ListArtifactsRequest) Validate() error { return nil } + func (this *ListArtifactsResponse) Validate() error { for _, item := range this.Artifacts { if item != nil { @@ -38,9 +43,11 @@ func (this *ListArtifactsResponse) Validate() error { } return nil } + func (this *DeleteArtifactRequest) Validate() error { return nil } + func (this *DeleteArtifactResponse) Validate() error { return nil } diff --git a/api/managementpb/backup/artifacts_grpc.pb.go b/api/managementpb/backup/artifacts_grpc.pb.go index 6ae392f659..cf412e404e 100644 --- a/api/managementpb/backup/artifacts_grpc.pb.go +++ b/api/managementpb/backup/artifacts_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -66,12 +67,12 @@ type ArtifactsServer interface { } // UnimplementedArtifactsServer must be embedded to have forward compatible implementations. -type UnimplementedArtifactsServer struct { -} +type UnimplementedArtifactsServer struct{} func (UnimplementedArtifactsServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") } + func (UnimplementedArtifactsServer) DeleteArtifact(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteArtifact not implemented") } diff --git a/api/managementpb/backup/backups.pb.go b/api/managementpb/backup/backups.pb.go index 126a958b30..8cfc4213c9 100644 --- a/api/managementpb/backup/backups.pb.go +++ b/api/managementpb/backup/backups.pb.go @@ -7,17 +7,19 @@ package backupv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -1668,36 +1670,39 @@ func file_managementpb_backup_backups_proto_rawDescGZIP() []byte { return file_managementpb_backup_backups_proto_rawDescData } -var file_managementpb_backup_backups_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_managementpb_backup_backups_proto_goTypes = []interface{}{ - (*StartBackupRequest)(nil), // 0: backup.v1beta1.StartBackupRequest - (*StartBackupResponse)(nil), // 1: backup.v1beta1.StartBackupResponse - (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1beta1.ListArtifactCompatibleServicesRequest - (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1beta1.ListArtifactCompatibleServicesResponse - (*RestoreBackupRequest)(nil), // 4: backup.v1beta1.RestoreBackupRequest - (*RestoreBackupResponse)(nil), // 5: backup.v1beta1.RestoreBackupResponse - (*ScheduledBackup)(nil), // 6: backup.v1beta1.ScheduledBackup - (*ScheduleBackupRequest)(nil), // 7: backup.v1beta1.ScheduleBackupRequest - (*ScheduleBackupResponse)(nil), // 8: backup.v1beta1.ScheduleBackupResponse - (*ListScheduledBackupsRequest)(nil), // 9: backup.v1beta1.ListScheduledBackupsRequest - (*ListScheduledBackupsResponse)(nil), // 10: backup.v1beta1.ListScheduledBackupsResponse - (*ChangeScheduledBackupRequest)(nil), // 11: backup.v1beta1.ChangeScheduledBackupRequest - (*ChangeScheduledBackupResponse)(nil), // 12: backup.v1beta1.ChangeScheduledBackupResponse - (*RemoveScheduledBackupRequest)(nil), // 13: backup.v1beta1.RemoveScheduledBackupRequest - (*RemoveScheduledBackupResponse)(nil), // 14: backup.v1beta1.RemoveScheduledBackupResponse - (*GetLogsRequest)(nil), // 15: backup.v1beta1.GetLogsRequest - (*GetLogsResponse)(nil), // 16: backup.v1beta1.GetLogsResponse - (*LogChunk)(nil), // 17: backup.v1beta1.LogChunk - (*durationpb.Duration)(nil), // 18: google.protobuf.Duration - (DataModel)(0), // 19: backup.v1beta1.DataModel - (*inventorypb.MySQLService)(nil), // 20: inventory.MySQLService - (*inventorypb.MongoDBService)(nil), // 21: inventory.MongoDBService - (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp - (BackupMode)(0), // 23: backup.v1beta1.BackupMode - (*wrapperspb.BoolValue)(nil), // 24: google.protobuf.BoolValue - (*wrapperspb.StringValue)(nil), // 25: google.protobuf.StringValue - (*wrapperspb.UInt32Value)(nil), // 26: google.protobuf.UInt32Value -} +var ( + file_managementpb_backup_backups_proto_msgTypes = make([]protoimpl.MessageInfo, 18) + file_managementpb_backup_backups_proto_goTypes = []interface{}{ + (*StartBackupRequest)(nil), // 0: backup.v1beta1.StartBackupRequest + (*StartBackupResponse)(nil), // 1: backup.v1beta1.StartBackupResponse + (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1beta1.ListArtifactCompatibleServicesRequest + (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1beta1.ListArtifactCompatibleServicesResponse + (*RestoreBackupRequest)(nil), // 4: backup.v1beta1.RestoreBackupRequest + (*RestoreBackupResponse)(nil), // 5: backup.v1beta1.RestoreBackupResponse + (*ScheduledBackup)(nil), // 6: backup.v1beta1.ScheduledBackup + (*ScheduleBackupRequest)(nil), // 7: backup.v1beta1.ScheduleBackupRequest + (*ScheduleBackupResponse)(nil), // 8: backup.v1beta1.ScheduleBackupResponse + (*ListScheduledBackupsRequest)(nil), // 9: backup.v1beta1.ListScheduledBackupsRequest + (*ListScheduledBackupsResponse)(nil), // 10: backup.v1beta1.ListScheduledBackupsResponse + (*ChangeScheduledBackupRequest)(nil), // 11: backup.v1beta1.ChangeScheduledBackupRequest + (*ChangeScheduledBackupResponse)(nil), // 12: backup.v1beta1.ChangeScheduledBackupResponse + (*RemoveScheduledBackupRequest)(nil), // 13: backup.v1beta1.RemoveScheduledBackupRequest + (*RemoveScheduledBackupResponse)(nil), // 14: backup.v1beta1.RemoveScheduledBackupResponse + (*GetLogsRequest)(nil), // 15: backup.v1beta1.GetLogsRequest + (*GetLogsResponse)(nil), // 16: backup.v1beta1.GetLogsResponse + (*LogChunk)(nil), // 17: backup.v1beta1.LogChunk + (*durationpb.Duration)(nil), // 18: google.protobuf.Duration + (DataModel)(0), // 19: backup.v1beta1.DataModel + (*inventorypb.MySQLService)(nil), // 20: inventory.MySQLService + (*inventorypb.MongoDBService)(nil), // 21: inventory.MongoDBService + (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp + (BackupMode)(0), // 23: backup.v1beta1.BackupMode + (*wrapperspb.BoolValue)(nil), // 24: google.protobuf.BoolValue + (*wrapperspb.StringValue)(nil), // 25: google.protobuf.StringValue + (*wrapperspb.UInt32Value)(nil), // 26: google.protobuf.UInt32Value + } +) + var file_managementpb_backup_backups_proto_depIdxs = []int32{ 18, // 0: backup.v1beta1.StartBackupRequest.retry_interval:type_name -> google.protobuf.Duration 19, // 1: backup.v1beta1.StartBackupRequest.data_model:type_name -> backup.v1beta1.DataModel diff --git a/api/managementpb/backup/backups.pb.gw.go b/api/managementpb/backup/backups.pb.gw.go index 9cd4bb7ed8..5588af913b 100644 --- a/api/managementpb/backup/backups.pb.gw.go +++ b/api/managementpb/backup/backups.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Backups_StartBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StartBackupRequest @@ -45,7 +47,6 @@ func request_Backups_StartBackup_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.StartBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_StartBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Backups_StartBackup_0(ctx context.Context, marshaler runtime. msg, err := server.StartBackup(ctx, &protoReq) return msg, metadata, err - } func request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, marsh msg, err := client.ListArtifactCompatibleServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Backups_ListArtifactCompatibleServices_0(ctx context.Context, msg, err := server.ListArtifactCompatibleServices(ctx, &protoReq) return msg, metadata, err - } func request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtime.Mars msg, err := client.RestoreBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Backups_RestoreBackup_0(ctx context.Context, marshaler runtim msg, err := server.RestoreBackup(ctx, &protoReq) return msg, metadata, err - } func request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runtime.Mar msg, err := client.ScheduleBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Backups_ScheduleBackup_0(ctx context.Context, marshaler runti msg, err := server.ScheduleBackup(ctx, &protoReq) return msg, metadata, err - } func request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler runti msg, err := client.ListScheduledBackups(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Backups_ListScheduledBackups_0(ctx context.Context, marshaler msg, err := server.ListScheduledBackups(ctx, &protoReq) return msg, metadata, err - } func request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshaler runt msg, err := client.ChangeScheduledBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Backups_ChangeScheduledBackup_0(ctx context.Context, marshale msg, err := server.ChangeScheduledBackup(ctx, &protoReq) return msg, metadata, err - } func request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshaler runt msg, err := client.RemoveScheduledBackup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_Backups_RemoveScheduledBackup_0(ctx context.Context, marshale msg, err := server.RemoveScheduledBackup(ctx, &protoReq) return msg, metadata, err - } func request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, client BackupsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -283,7 +271,6 @@ func request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.GetLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, server BackupsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -300,7 +287,6 @@ func local_request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Mars msg, err := server.GetLogs(ctx, &protoReq) return msg, metadata, err - } // RegisterBackupsHandlerServer registers the http handlers for service Backups to "mux". @@ -308,7 +294,6 @@ func local_request_Backups_GetLogs_0(ctx context.Context, marshaler runtime.Mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBackupsHandlerFromEndpoint instead. func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BackupsServer) error { - mux.Handle("POST", pattern_Backups_StartBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -331,7 +316,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_StartBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ListArtifactCompatibleServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -356,7 +340,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ListArtifactCompatibleServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_RestoreBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -381,7 +364,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_RestoreBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ScheduleBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -406,7 +388,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ScheduleBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ListScheduledBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -431,7 +412,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ListScheduledBackups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ChangeScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -456,7 +436,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_ChangeScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_RemoveScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -481,7 +460,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_RemoveScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -506,7 +484,6 @@ func RegisterBackupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Backups_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -549,7 +526,6 @@ func RegisterBackupsHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "BackupsClient" to call the correct interceptors. func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackupsClient) error { - mux.Handle("POST", pattern_Backups_StartBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -569,7 +545,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_StartBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ListArtifactCompatibleServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -591,7 +566,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ListArtifactCompatibleServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_RestoreBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -613,7 +587,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_RestoreBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ScheduleBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -635,7 +608,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ScheduleBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ListScheduledBackups_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -657,7 +629,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ListScheduledBackups_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_ChangeScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -679,7 +650,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_ChangeScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_RemoveScheduledBackup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -701,7 +671,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_RemoveScheduledBackup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Backups_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -723,7 +692,6 @@ func RegisterBackupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Backups_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/backup/backups.validator.pb.go b/api/managementpb/backup/backups.validator.pb.go index e297b81517..cdddc8947d 100644 --- a/api/managementpb/backup/backups.validator.pb.go +++ b/api/managementpb/backup/backups.validator.pb.go @@ -6,21 +6,25 @@ package backupv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/protobuf/types/known/wrapperspb" - _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" _ "google.golang.org/protobuf/types/known/timestamppb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/protobuf/types/known/wrapperspb" + + _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *StartBackupRequest) Validate() error { if this.ServiceId == "" { @@ -36,15 +40,18 @@ func (this *StartBackupRequest) Validate() error { } return nil } + func (this *StartBackupResponse) Validate() error { return nil } + func (this *ListArtifactCompatibleServicesRequest) Validate() error { if this.ArtifactId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ArtifactId", fmt.Errorf(`value '%v' must not be an empty string`, this.ArtifactId)) } return nil } + func (this *ListArtifactCompatibleServicesResponse) Validate() error { for _, item := range this.Mysql { if item != nil { @@ -62,6 +69,7 @@ func (this *ListArtifactCompatibleServicesResponse) Validate() error { } return nil } + func (this *RestoreBackupRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -71,9 +79,11 @@ func (this *RestoreBackupRequest) Validate() error { } return nil } + func (this *RestoreBackupResponse) Validate() error { return nil } + func (this *ScheduledBackup) Validate() error { if this.StartTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.StartTime); err != nil { @@ -97,6 +107,7 @@ func (this *ScheduledBackup) Validate() error { } return nil } + func (this *ScheduleBackupRequest) Validate() error { if this.ServiceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ServiceId", fmt.Errorf(`value '%v' must not be an empty string`, this.ServiceId)) @@ -119,12 +130,15 @@ func (this *ScheduleBackupRequest) Validate() error { } return nil } + func (this *ScheduleBackupResponse) Validate() error { return nil } + func (this *ListScheduledBackupsRequest) Validate() error { return nil } + func (this *ListScheduledBackupsResponse) Validate() error { for _, item := range this.ScheduledBackups { if item != nil { @@ -135,6 +149,7 @@ func (this *ListScheduledBackupsResponse) Validate() error { } return nil } + func (this *ChangeScheduledBackupRequest) Validate() error { if this.ScheduledBackupId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ScheduledBackupId", fmt.Errorf(`value '%v' must not be an empty string`, this.ScheduledBackupId)) @@ -181,24 +196,29 @@ func (this *ChangeScheduledBackupRequest) Validate() error { } return nil } + func (this *ChangeScheduledBackupResponse) Validate() error { return nil } + func (this *RemoveScheduledBackupRequest) Validate() error { if this.ScheduledBackupId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ScheduledBackupId", fmt.Errorf(`value '%v' must not be an empty string`, this.ScheduledBackupId)) } return nil } + func (this *RemoveScheduledBackupResponse) Validate() error { return nil } + func (this *GetLogsRequest) Validate() error { if this.ArtifactId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ArtifactId", fmt.Errorf(`value '%v' must not be an empty string`, this.ArtifactId)) } return nil } + func (this *GetLogsResponse) Validate() error { for _, item := range this.Logs { if item != nil { @@ -209,6 +229,7 @@ func (this *GetLogsResponse) Validate() error { } return nil } + func (this *LogChunk) Validate() error { return nil } diff --git a/api/managementpb/backup/backups_grpc.pb.go b/api/managementpb/backup/backups_grpc.pb.go index b7b555f6df..077ba9bf31 100644 --- a/api/managementpb/backup/backups_grpc.pb.go +++ b/api/managementpb/backup/backups_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -144,30 +145,36 @@ type BackupsServer interface { } // UnimplementedBackupsServer must be embedded to have forward compatible implementations. -type UnimplementedBackupsServer struct { -} +type UnimplementedBackupsServer struct{} func (UnimplementedBackupsServer) StartBackup(context.Context, *StartBackupRequest) (*StartBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartBackup not implemented") } + func (UnimplementedBackupsServer) ListArtifactCompatibleServices(context.Context, *ListArtifactCompatibleServicesRequest) (*ListArtifactCompatibleServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListArtifactCompatibleServices not implemented") } + func (UnimplementedBackupsServer) RestoreBackup(context.Context, *RestoreBackupRequest) (*RestoreBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RestoreBackup not implemented") } + func (UnimplementedBackupsServer) ScheduleBackup(context.Context, *ScheduleBackupRequest) (*ScheduleBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ScheduleBackup not implemented") } + func (UnimplementedBackupsServer) ListScheduledBackups(context.Context, *ListScheduledBackupsRequest) (*ListScheduledBackupsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListScheduledBackups not implemented") } + func (UnimplementedBackupsServer) ChangeScheduledBackup(context.Context, *ChangeScheduledBackupRequest) (*ChangeScheduledBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeScheduledBackup not implemented") } + func (UnimplementedBackupsServer) RemoveScheduledBackup(context.Context, *RemoveScheduledBackupRequest) (*RemoveScheduledBackupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveScheduledBackup not implemented") } + func (UnimplementedBackupsServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLogs not implemented") } diff --git a/api/managementpb/backup/common.pb.go b/api/managementpb/backup/common.pb.go index 3fcabca2c9..ef854c20e9 100644 --- a/api/managementpb/backup/common.pb.go +++ b/api/managementpb/backup/common.pb.go @@ -7,10 +7,11 @@ package backupv1beta1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -165,11 +166,14 @@ func file_managementpb_backup_common_proto_rawDescGZIP() []byte { return file_managementpb_backup_common_proto_rawDescData } -var file_managementpb_backup_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_managementpb_backup_common_proto_goTypes = []interface{}{ - (DataModel)(0), // 0: backup.v1beta1.DataModel - (BackupMode)(0), // 1: backup.v1beta1.BackupMode -} +var ( + file_managementpb_backup_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_managementpb_backup_common_proto_goTypes = []interface{}{ + (DataModel)(0), // 0: backup.v1beta1.DataModel + (BackupMode)(0), // 1: backup.v1beta1.BackupMode + } +) + var file_managementpb_backup_common_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/backup/common.validator.pb.go b/api/managementpb/backup/common.validator.pb.go index 33dfd6104e..793e08bce3 100644 --- a/api/managementpb/backup/common.validator.pb.go +++ b/api/managementpb/backup/common.validator.pb.go @@ -6,10 +6,13 @@ package backupv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/managementpb/backup/errors.pb.go b/api/managementpb/backup/errors.pb.go index 7e948ac996..53c4c987dc 100644 --- a/api/managementpb/backup/errors.pb.go +++ b/api/managementpb/backup/errors.pb.go @@ -7,10 +7,11 @@ package backupv1beta1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -178,12 +179,15 @@ func file_managementpb_backup_errors_proto_rawDescGZIP() []byte { return file_managementpb_backup_errors_proto_rawDescData } -var file_managementpb_backup_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_backup_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_managementpb_backup_errors_proto_goTypes = []interface{}{ - (ErrorCode)(0), // 0: backup.v1beta1.ErrorCode - (*Error)(nil), // 1: backup.v1beta1.Error -} +var ( + file_managementpb_backup_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_backup_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) + file_managementpb_backup_errors_proto_goTypes = []interface{}{ + (ErrorCode)(0), // 0: backup.v1beta1.ErrorCode + (*Error)(nil), // 1: backup.v1beta1.Error + } +) + var file_managementpb_backup_errors_proto_depIdxs = []int32{ 0, // 0: backup.v1beta1.Error.code:type_name -> backup.v1beta1.ErrorCode 1, // [1:1] is the sub-list for method output_type diff --git a/api/managementpb/backup/errors.validator.pb.go b/api/managementpb/backup/errors.validator.pb.go index c3684b0b45..cedf20614a 100644 --- a/api/managementpb/backup/errors.validator.pb.go +++ b/api/managementpb/backup/errors.validator.pb.go @@ -6,13 +6,16 @@ package backupv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Error) Validate() error { return nil diff --git a/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go b/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go index ab13b0db89..cdf5c2d89b 100644 --- a/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go +++ b/api/managementpb/backup/json/client/artifacts/delete_artifact_parameters.go @@ -60,7 +60,6 @@ DeleteArtifactParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteArtifactParams struct { - // Body. Body DeleteArtifactBody @@ -130,7 +129,6 @@ func (o *DeleteArtifactParams) SetBody(body DeleteArtifactBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go b/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go index cfb1223155..03cd4b4f68 100644 --- a/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go +++ b/api/managementpb/backup/json/client/artifacts/delete_artifact_responses.go @@ -60,12 +60,12 @@ type DeleteArtifactOK struct { func (o *DeleteArtifactOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/Delete][%d] deleteArtifactOk %+v", 200, o.Payload) } + func (o *DeleteArtifactOK) GetPayload() interface{} { return o.Payload } func (o *DeleteArtifactOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DeleteArtifactDefault) Code() int { func (o *DeleteArtifactDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/Delete][%d] DeleteArtifact default %+v", o._statusCode, o.Payload) } + func (o *DeleteArtifactDefault) GetPayload() *DeleteArtifactDefaultBody { return o.Payload } func (o *DeleteArtifactDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteArtifactDefaultBody) // response payload @@ -121,7 +121,6 @@ DeleteArtifactBody delete artifact body swagger:model DeleteArtifactBody */ type DeleteArtifactBody struct { - // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` @@ -162,7 +161,6 @@ DeleteArtifactDefaultBody delete artifact default body swagger:model DeleteArtifactDefaultBody */ type DeleteArtifactDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *DeleteArtifactDefaultBody) ContextValidate(ctx context.Context, formats } func (o *DeleteArtifactDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *DeleteArtifactDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -270,7 +265,6 @@ DeleteArtifactDefaultBodyDetailsItems0 delete artifact default body details item swagger:model DeleteArtifactDefaultBodyDetailsItems0 */ type DeleteArtifactDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go b/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go index df511fdabf..5932e115ec 100644 --- a/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go +++ b/api/managementpb/backup/json/client/artifacts/list_artifacts_parameters.go @@ -60,7 +60,6 @@ ListArtifactsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListArtifactsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListArtifactsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListArtifactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go b/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go index 519d816119..ddd8dd676b 100644 --- a/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go +++ b/api/managementpb/backup/json/client/artifacts/list_artifacts_responses.go @@ -62,12 +62,12 @@ type ListArtifactsOK struct { func (o *ListArtifactsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/List][%d] listArtifactsOk %+v", 200, o.Payload) } + func (o *ListArtifactsOK) GetPayload() *ListArtifactsOKBody { return o.Payload } func (o *ListArtifactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListArtifactsDefault) Code() int { func (o *ListArtifactsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Artifacts/List][%d] ListArtifacts default %+v", o._statusCode, o.Payload) } + func (o *ListArtifactsDefault) GetPayload() *ListArtifactsDefaultBody { return o.Payload } func (o *ListArtifactsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactsDefaultBody) // response payload @@ -125,7 +125,6 @@ ListArtifactsDefaultBody list artifacts default body swagger:model ListArtifactsDefaultBody */ type ListArtifactsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *ListArtifactsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListArtifactsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *ListArtifactsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -233,7 +229,6 @@ ListArtifactsDefaultBodyDetailsItems0 list artifacts default body details items0 swagger:model ListArtifactsDefaultBodyDetailsItems0 */ type ListArtifactsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ ListArtifactsOKBody list artifacts OK body swagger:model ListArtifactsOKBody */ type ListArtifactsOKBody struct { - // artifacts Artifacts []*ListArtifactsOKBodyArtifactsItems0 `json:"artifacts"` } @@ -331,9 +325,7 @@ func (o *ListArtifactsOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ListArtifactsOKBody) contextValidateArtifacts(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Artifacts); i++ { - if o.Artifacts[i] != nil { if err := o.Artifacts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,7 +336,6 @@ func (o *ListArtifactsOKBody) contextValidateArtifacts(ctx context.Context, form return err } } - } return nil @@ -373,7 +364,6 @@ ListArtifactsOKBodyArtifactsItems0 Artifact represents single backup artifact. swagger:model ListArtifactsOKBodyArtifactsItems0 */ type ListArtifactsOKBodyArtifactsItems0 struct { - // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go b/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go index 8cb9679de3..e372d89f19 100644 --- a/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/change_scheduled_backup_parameters.go @@ -60,7 +60,6 @@ ChangeScheduledBackupParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type ChangeScheduledBackupParams struct { - // Body. Body ChangeScheduledBackupBody @@ -130,7 +129,6 @@ func (o *ChangeScheduledBackupParams) SetBody(body ChangeScheduledBackupBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeScheduledBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go b/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go index d6ef4dc441..eaefe8fc84 100644 --- a/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/change_scheduled_backup_responses.go @@ -61,12 +61,12 @@ type ChangeScheduledBackupOK struct { func (o *ChangeScheduledBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ChangeScheduled][%d] changeScheduledBackupOk %+v", 200, o.Payload) } + func (o *ChangeScheduledBackupOK) GetPayload() interface{} { return o.Payload } func (o *ChangeScheduledBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -101,12 +101,12 @@ func (o *ChangeScheduledBackupDefault) Code() int { func (o *ChangeScheduledBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ChangeScheduled][%d] ChangeScheduledBackup default %+v", o._statusCode, o.Payload) } + func (o *ChangeScheduledBackupDefault) GetPayload() *ChangeScheduledBackupDefaultBody { return o.Payload } func (o *ChangeScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeScheduledBackupDefaultBody) // response payload @@ -122,7 +122,6 @@ ChangeScheduledBackupBody change scheduled backup body swagger:model ChangeScheduledBackupBody */ type ChangeScheduledBackupBody struct { - // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` @@ -206,7 +205,6 @@ ChangeScheduledBackupDefaultBody change scheduled backup default body swagger:model ChangeScheduledBackupDefaultBody */ type ChangeScheduledBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -272,9 +270,7 @@ func (o *ChangeScheduledBackupDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangeScheduledBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -285,7 +281,6 @@ func (o *ChangeScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -314,7 +309,6 @@ ChangeScheduledBackupDefaultBodyDetailsItems0 change scheduled backup default bo swagger:model ChangeScheduledBackupDefaultBodyDetailsItems0 */ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/get_logs_parameters.go b/api/managementpb/backup/json/client/backups/get_logs_parameters.go index 5b43e385bf..d6540699d4 100644 --- a/api/managementpb/backup/json/client/backups/get_logs_parameters.go +++ b/api/managementpb/backup/json/client/backups/get_logs_parameters.go @@ -60,7 +60,6 @@ GetLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsParams struct { - // Body. Body GetLogsBody @@ -130,7 +129,6 @@ func (o *GetLogsParams) SetBody(body GetLogsBody) { // WriteToRequest writes these params to a swagger request func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/get_logs_responses.go b/api/managementpb/backup/json/client/backups/get_logs_responses.go index 8454c99c64..2b517f0b74 100644 --- a/api/managementpb/backup/json/client/backups/get_logs_responses.go +++ b/api/managementpb/backup/json/client/backups/get_logs_responses.go @@ -60,12 +60,12 @@ type GetLogsOK struct { func (o *GetLogsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/GetLogs][%d] getLogsOk %+v", 200, o.Payload) } + func (o *GetLogsOK) GetPayload() *GetLogsOKBody { return o.Payload } func (o *GetLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetLogsDefault) Code() int { func (o *GetLogsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/GetLogs][%d] GetLogs default %+v", o._statusCode, o.Payload) } + func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody { return o.Payload } func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetLogsBody get logs body swagger:model GetLogsBody */ type GetLogsBody struct { - // artifact id ArtifactID string `json:"artifact_id,omitempty"` @@ -167,7 +166,6 @@ GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -233,9 +231,7 @@ func (o *GetLogsDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -246,7 +242,6 @@ func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -275,7 +270,6 @@ GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -313,7 +307,6 @@ GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { - // logs Logs []*GetLogsOKBodyLogsItems0 `json:"logs"` @@ -376,9 +369,7 @@ func (o *GetLogsOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Logs); i++ { - if o.Logs[i] != nil { if err := o.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -389,7 +380,6 @@ func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt. return err } } - } return nil @@ -418,7 +408,6 @@ GetLogsOKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetLogsOKBodyLogsItems0 */ type GetLogsOKBodyLogsItems0 struct { - // chunk id ChunkID int64 `json:"chunk_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go index ae5fb30e84..a5ecbdeece 100644 --- a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go +++ b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_parameters.go @@ -60,7 +60,6 @@ ListArtifactCompatibleServicesParams contains all the parameters to send to the Typically these are written to a http.Request. */ type ListArtifactCompatibleServicesParams struct { - // Body. Body ListArtifactCompatibleServicesBody @@ -130,7 +129,6 @@ func (o *ListArtifactCompatibleServicesParams) SetBody(body ListArtifactCompatib // WriteToRequest writes these params to a swagger request func (o *ListArtifactCompatibleServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go index 2f1764be77..cde43dc58d 100644 --- a/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go +++ b/api/managementpb/backup/json/client/backups/list_artifact_compatible_services_responses.go @@ -60,12 +60,12 @@ type ListArtifactCompatibleServicesOK struct { func (o *ListArtifactCompatibleServicesOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListArtifactCompatibleServices][%d] listArtifactCompatibleServicesOk %+v", 200, o.Payload) } + func (o *ListArtifactCompatibleServicesOK) GetPayload() *ListArtifactCompatibleServicesOKBody { return o.Payload } func (o *ListArtifactCompatibleServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactCompatibleServicesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListArtifactCompatibleServicesDefault) Code() int { func (o *ListArtifactCompatibleServicesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListArtifactCompatibleServices][%d] ListArtifactCompatibleServices default %+v", o._statusCode, o.Payload) } + func (o *ListArtifactCompatibleServicesDefault) GetPayload() *ListArtifactCompatibleServicesDefaultBody { return o.Payload } func (o *ListArtifactCompatibleServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactCompatibleServicesDefaultBody) // response payload @@ -123,7 +123,6 @@ ListArtifactCompatibleServicesBody list artifact compatible services body swagger:model ListArtifactCompatibleServicesBody */ type ListArtifactCompatibleServicesBody struct { - // Artifact id used to determine restore compatibility. ArtifactID string `json:"artifact_id,omitempty"` } @@ -161,7 +160,6 @@ ListArtifactCompatibleServicesDefaultBody list artifact compatible services defa swagger:model ListArtifactCompatibleServicesDefaultBody */ type ListArtifactCompatibleServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *ListArtifactCompatibleServicesDefaultBody) ContextValidate(ctx context. } func (o *ListArtifactCompatibleServicesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *ListArtifactCompatibleServicesDefaultBody) contextValidateDetails(ctx c return err } } - } return nil @@ -269,7 +264,6 @@ ListArtifactCompatibleServicesDefaultBodyDetailsItems0 list artifact compatible swagger:model ListArtifactCompatibleServicesDefaultBodyDetailsItems0 */ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ ListArtifactCompatibleServicesOKBody list artifact compatible services OK body swagger:model ListArtifactCompatibleServicesOKBody */ type ListArtifactCompatibleServicesOKBody struct { - // mysql Mysql []*ListArtifactCompatibleServicesOKBodyMysqlItems0 `json:"mysql"` @@ -404,9 +397,7 @@ func (o *ListArtifactCompatibleServicesOKBody) ContextValidate(ctx context.Conte } func (o *ListArtifactCompatibleServicesOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Mysql); i++ { - if o.Mysql[i] != nil { if err := o.Mysql[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -417,16 +408,13 @@ func (o *ListArtifactCompatibleServicesOKBody) contextValidateMysql(ctx context. return err } } - } return nil } func (o *ListArtifactCompatibleServicesOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Mongodb); i++ { - if o.Mongodb[i] != nil { if err := o.Mongodb[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -437,7 +425,6 @@ func (o *ListArtifactCompatibleServicesOKBody) contextValidateMongodb(ctx contex return err } } - } return nil @@ -466,7 +453,6 @@ ListArtifactCompatibleServicesOKBodyMongodbItems0 MongoDBService represents a ge swagger:model ListArtifactCompatibleServicesOKBodyMongodbItems0 */ type ListArtifactCompatibleServicesOKBodyMongodbItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -534,7 +520,6 @@ ListArtifactCompatibleServicesOKBodyMysqlItems0 MySQLService represents a generi swagger:model ListArtifactCompatibleServicesOKBodyMysqlItems0 */ type ListArtifactCompatibleServicesOKBodyMysqlItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go b/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go index d0c6e616ea..e906ca98b7 100644 --- a/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go +++ b/api/managementpb/backup/json/client/backups/list_scheduled_backups_parameters.go @@ -60,7 +60,6 @@ ListScheduledBackupsParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ListScheduledBackupsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListScheduledBackupsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListScheduledBackupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go b/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go index c0af1d01c7..caccf8b760 100644 --- a/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go +++ b/api/managementpb/backup/json/client/backups/list_scheduled_backups_responses.go @@ -62,12 +62,12 @@ type ListScheduledBackupsOK struct { func (o *ListScheduledBackupsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListScheduled][%d] listScheduledBackupsOk %+v", 200, o.Payload) } + func (o *ListScheduledBackupsOK) GetPayload() *ListScheduledBackupsOKBody { return o.Payload } func (o *ListScheduledBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListScheduledBackupsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListScheduledBackupsDefault) Code() int { func (o *ListScheduledBackupsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/ListScheduled][%d] ListScheduledBackups default %+v", o._statusCode, o.Payload) } + func (o *ListScheduledBackupsDefault) GetPayload() *ListScheduledBackupsDefaultBody { return o.Payload } func (o *ListScheduledBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListScheduledBackupsDefaultBody) // response payload @@ -125,7 +125,6 @@ ListScheduledBackupsDefaultBody list scheduled backups default body swagger:model ListScheduledBackupsDefaultBody */ type ListScheduledBackupsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *ListScheduledBackupsDefaultBody) ContextValidate(ctx context.Context, f } func (o *ListScheduledBackupsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *ListScheduledBackupsDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -233,7 +229,6 @@ ListScheduledBackupsDefaultBodyDetailsItems0 list scheduled backups default body swagger:model ListScheduledBackupsDefaultBodyDetailsItems0 */ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ ListScheduledBackupsOKBody list scheduled backups OK body swagger:model ListScheduledBackupsOKBody */ type ListScheduledBackupsOKBody struct { - // scheduled backups ScheduledBackups []*ListScheduledBackupsOKBodyScheduledBackupsItems0 `json:"scheduled_backups"` } @@ -331,9 +325,7 @@ func (o *ListScheduledBackupsOKBody) ContextValidate(ctx context.Context, format } func (o *ListScheduledBackupsOKBody) contextValidateScheduledBackups(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ScheduledBackups); i++ { - if o.ScheduledBackups[i] != nil { if err := o.ScheduledBackups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,7 +336,6 @@ func (o *ListScheduledBackupsOKBody) contextValidateScheduledBackups(ctx context return err } } - } return nil @@ -373,7 +364,6 @@ ListScheduledBackupsOKBodyScheduledBackupsItems0 ScheduledBackup represents sche swagger:model ListScheduledBackupsOKBodyScheduledBackupsItems0 */ type ListScheduledBackupsOKBodyScheduledBackupsItems0 struct { - // Machine-readable ID. ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` diff --git a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go index 6bfb93d977..a488611ff2 100644 --- a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_parameters.go @@ -60,7 +60,6 @@ RemoveScheduledBackupParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type RemoveScheduledBackupParams struct { - // Body. Body RemoveScheduledBackupBody @@ -130,7 +129,6 @@ func (o *RemoveScheduledBackupParams) SetBody(body RemoveScheduledBackupBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveScheduledBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go index 431c7af8b5..053d701ed4 100644 --- a/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/remove_scheduled_backup_responses.go @@ -60,12 +60,12 @@ type RemoveScheduledBackupOK struct { func (o *RemoveScheduledBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/RemoveScheduled][%d] removeScheduledBackupOk %+v", 200, o.Payload) } + func (o *RemoveScheduledBackupOK) GetPayload() interface{} { return o.Payload } func (o *RemoveScheduledBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveScheduledBackupDefault) Code() int { func (o *RemoveScheduledBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/RemoveScheduled][%d] RemoveScheduledBackup default %+v", o._statusCode, o.Payload) } + func (o *RemoveScheduledBackupDefault) GetPayload() *RemoveScheduledBackupDefaultBody { return o.Payload } func (o *RemoveScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveScheduledBackupDefaultBody) // response payload @@ -121,7 +121,6 @@ RemoveScheduledBackupBody remove scheduled backup body swagger:model RemoveScheduledBackupBody */ type RemoveScheduledBackupBody struct { - // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` } @@ -159,7 +158,6 @@ RemoveScheduledBackupDefaultBody remove scheduled backup default body swagger:model RemoveScheduledBackupDefaultBody */ type RemoveScheduledBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *RemoveScheduledBackupDefaultBody) ContextValidate(ctx context.Context, } func (o *RemoveScheduledBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *RemoveScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -267,7 +262,6 @@ RemoveScheduledBackupDefaultBodyDetailsItems0 remove scheduled backup default bo swagger:model RemoveScheduledBackupDefaultBodyDetailsItems0 */ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/restore_backup_parameters.go b/api/managementpb/backup/json/client/backups/restore_backup_parameters.go index 9fa0d9bf9f..99b307bab3 100644 --- a/api/managementpb/backup/json/client/backups/restore_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/restore_backup_parameters.go @@ -60,7 +60,6 @@ RestoreBackupParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RestoreBackupParams struct { - // Body. Body RestoreBackupBody @@ -130,7 +129,6 @@ func (o *RestoreBackupParams) SetBody(body RestoreBackupBody) { // WriteToRequest writes these params to a swagger request func (o *RestoreBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/restore_backup_responses.go b/api/managementpb/backup/json/client/backups/restore_backup_responses.go index 213539ed73..608b6e352c 100644 --- a/api/managementpb/backup/json/client/backups/restore_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/restore_backup_responses.go @@ -60,12 +60,12 @@ type RestoreBackupOK struct { func (o *RestoreBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Restore][%d] restoreBackupOk %+v", 200, o.Payload) } + func (o *RestoreBackupOK) GetPayload() *RestoreBackupOKBody { return o.Payload } func (o *RestoreBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RestoreBackupOKBody) // response payload @@ -102,12 +102,12 @@ func (o *RestoreBackupDefault) Code() int { func (o *RestoreBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Restore][%d] RestoreBackup default %+v", o._statusCode, o.Payload) } + func (o *RestoreBackupDefault) GetPayload() *RestoreBackupDefaultBody { return o.Payload } func (o *RestoreBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RestoreBackupDefaultBody) // response payload @@ -123,7 +123,6 @@ RestoreBackupBody restore backup body swagger:model RestoreBackupBody */ type RestoreBackupBody struct { - // Service identifier where backup should be restored. ServiceID string `json:"service_id,omitempty"` @@ -164,7 +163,6 @@ RestoreBackupDefaultBody restore backup default body swagger:model RestoreBackupDefaultBody */ type RestoreBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *RestoreBackupDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RestoreBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *RestoreBackupDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -272,7 +267,6 @@ RestoreBackupDefaultBodyDetailsItems0 restore backup default body details items0 swagger:model RestoreBackupDefaultBodyDetailsItems0 */ type RestoreBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ RestoreBackupOKBody restore backup OK body swagger:model RestoreBackupOKBody */ type RestoreBackupOKBody struct { - // Unique restore identifier. RestoreID string `json:"restore_id,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go b/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go index a5fcdafba4..3aec66ead3 100644 --- a/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/schedule_backup_parameters.go @@ -60,7 +60,6 @@ ScheduleBackupParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ScheduleBackupParams struct { - // Body. Body ScheduleBackupBody @@ -130,7 +129,6 @@ func (o *ScheduleBackupParams) SetBody(body ScheduleBackupBody) { // WriteToRequest writes these params to a swagger request func (o *ScheduleBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/schedule_backup_responses.go b/api/managementpb/backup/json/client/backups/schedule_backup_responses.go index 88a4bc7c3c..4753ffc4b3 100644 --- a/api/managementpb/backup/json/client/backups/schedule_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/schedule_backup_responses.go @@ -62,12 +62,12 @@ type ScheduleBackupOK struct { func (o *ScheduleBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Schedule][%d] scheduleBackupOk %+v", 200, o.Payload) } + func (o *ScheduleBackupOK) GetPayload() *ScheduleBackupOKBody { return o.Payload } func (o *ScheduleBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ScheduleBackupOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ScheduleBackupDefault) Code() int { func (o *ScheduleBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Schedule][%d] ScheduleBackup default %+v", o._statusCode, o.Payload) } + func (o *ScheduleBackupDefault) GetPayload() *ScheduleBackupDefaultBody { return o.Payload } func (o *ScheduleBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ScheduleBackupDefaultBody) // response payload @@ -125,7 +125,6 @@ ScheduleBackupBody schedule backup body swagger:model ScheduleBackupBody */ type ScheduleBackupBody struct { - // Service identifier where backup should be performed. ServiceID string `json:"service_id,omitempty"` @@ -321,7 +320,6 @@ ScheduleBackupDefaultBody schedule backup default body swagger:model ScheduleBackupDefaultBody */ type ScheduleBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -387,9 +385,7 @@ func (o *ScheduleBackupDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ScheduleBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -400,7 +396,6 @@ func (o *ScheduleBackupDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -429,7 +424,6 @@ ScheduleBackupDefaultBodyDetailsItems0 schedule backup default body details item swagger:model ScheduleBackupDefaultBodyDetailsItems0 */ type ScheduleBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -467,7 +461,6 @@ ScheduleBackupOKBody schedule backup OK body swagger:model ScheduleBackupOKBody */ type ScheduleBackupOKBody struct { - // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` } diff --git a/api/managementpb/backup/json/client/backups/start_backup_parameters.go b/api/managementpb/backup/json/client/backups/start_backup_parameters.go index fd66c34dcd..55fffd3ba5 100644 --- a/api/managementpb/backup/json/client/backups/start_backup_parameters.go +++ b/api/managementpb/backup/json/client/backups/start_backup_parameters.go @@ -60,7 +60,6 @@ StartBackupParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartBackupParams struct { - // Body. Body StartBackupBody @@ -130,7 +129,6 @@ func (o *StartBackupParams) SetBody(body StartBackupBody) { // WriteToRequest writes these params to a swagger request func (o *StartBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/backups/start_backup_responses.go b/api/managementpb/backup/json/client/backups/start_backup_responses.go index f04239a670..6c4786db9d 100644 --- a/api/managementpb/backup/json/client/backups/start_backup_responses.go +++ b/api/managementpb/backup/json/client/backups/start_backup_responses.go @@ -62,12 +62,12 @@ type StartBackupOK struct { func (o *StartBackupOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Start][%d] startBackupOk %+v", 200, o.Payload) } + func (o *StartBackupOK) GetPayload() *StartBackupOKBody { return o.Payload } func (o *StartBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartBackupOKBody) // response payload @@ -104,12 +104,12 @@ func (o *StartBackupDefault) Code() int { func (o *StartBackupDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Backups/Start][%d] StartBackup default %+v", o._statusCode, o.Payload) } + func (o *StartBackupDefault) GetPayload() *StartBackupDefaultBody { return o.Payload } func (o *StartBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartBackupDefaultBody) // response payload @@ -125,7 +125,6 @@ StartBackupBody start backup body swagger:model StartBackupBody */ type StartBackupBody struct { - // Service identifier. ServiceID string `json:"service_id,omitempty"` @@ -236,7 +235,6 @@ StartBackupDefaultBody start backup default body swagger:model StartBackupDefaultBody */ type StartBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -302,9 +300,7 @@ func (o *StartBackupDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *StartBackupDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -315,7 +311,6 @@ func (o *StartBackupDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -344,7 +339,6 @@ StartBackupDefaultBodyDetailsItems0 start backup default body details items0 swagger:model StartBackupDefaultBodyDetailsItems0 */ type StartBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -382,7 +376,6 @@ StartBackupOKBody start backup OK body swagger:model StartBackupOKBody */ type StartBackupOKBody struct { - // Unique identifier. ArtifactID string `json:"artifact_id,omitempty"` } diff --git a/api/managementpb/backup/json/client/locations/add_location_parameters.go b/api/managementpb/backup/json/client/locations/add_location_parameters.go index 595587c4a4..7c8120fc3d 100644 --- a/api/managementpb/backup/json/client/locations/add_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/add_location_parameters.go @@ -60,7 +60,6 @@ AddLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddLocationParams struct { - // Body. Body AddLocationBody @@ -130,7 +129,6 @@ func (o *AddLocationParams) SetBody(body AddLocationBody) { // WriteToRequest writes these params to a swagger request func (o *AddLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/add_location_responses.go b/api/managementpb/backup/json/client/locations/add_location_responses.go index d271ae9eb2..541af9a52d 100644 --- a/api/managementpb/backup/json/client/locations/add_location_responses.go +++ b/api/managementpb/backup/json/client/locations/add_location_responses.go @@ -60,12 +60,12 @@ type AddLocationOK struct { func (o *AddLocationOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Add][%d] addLocationOk %+v", 200, o.Payload) } + func (o *AddLocationOK) GetPayload() *AddLocationOKBody { return o.Payload } func (o *AddLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddLocationOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddLocationDefault) Code() int { func (o *AddLocationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Add][%d] AddLocation default %+v", o._statusCode, o.Payload) } + func (o *AddLocationDefault) GetPayload() *AddLocationDefaultBody { return o.Payload } func (o *AddLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddLocationDefaultBody) // response payload @@ -123,7 +123,6 @@ AddLocationBody add location body swagger:model AddLocationBody */ type AddLocationBody struct { - // Location name Name string `json:"name,omitempty"` @@ -242,7 +241,6 @@ func (o *AddLocationBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddLocationBody) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -258,7 +256,6 @@ func (o *AddLocationBody) contextValidatePMMClientConfig(ctx context.Context, fo } func (o *AddLocationBody) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -274,7 +271,6 @@ func (o *AddLocationBody) contextValidatePMMServerConfig(ctx context.Context, fo } func (o *AddLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -312,7 +308,6 @@ AddLocationDefaultBody add location default body swagger:model AddLocationDefaultBody */ type AddLocationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -378,9 +373,7 @@ func (o *AddLocationDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddLocationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -391,7 +384,6 @@ func (o *AddLocationDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -420,7 +412,6 @@ AddLocationDefaultBodyDetailsItems0 add location default body details items0 swagger:model AddLocationDefaultBodyDetailsItems0 */ type AddLocationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -458,7 +449,6 @@ AddLocationOKBody add location OK body swagger:model AddLocationOKBody */ type AddLocationOKBody struct { - // Machine-readable ID. LocationID string `json:"location_id,omitempty"` } @@ -496,7 +486,6 @@ AddLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file sys swagger:model AddLocationParamsBodyPMMClientConfig */ type AddLocationParamsBodyPMMClientConfig struct { - // path Path string `json:"path,omitempty"` } @@ -534,7 +523,6 @@ AddLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file sys swagger:model AddLocationParamsBodyPMMServerConfig */ type AddLocationParamsBodyPMMServerConfig struct { - // path Path string `json:"path,omitempty"` } @@ -572,7 +560,6 @@ AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuratio swagger:model AddLocationParamsBodyS3Config */ type AddLocationParamsBodyS3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/locations/change_location_parameters.go b/api/managementpb/backup/json/client/locations/change_location_parameters.go index d86902776e..c24f94e848 100644 --- a/api/managementpb/backup/json/client/locations/change_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/change_location_parameters.go @@ -60,7 +60,6 @@ ChangeLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeLocationParams struct { - // Body. Body ChangeLocationBody @@ -130,7 +129,6 @@ func (o *ChangeLocationParams) SetBody(body ChangeLocationBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/change_location_responses.go b/api/managementpb/backup/json/client/locations/change_location_responses.go index 1e9f274a15..9f71cf16f4 100644 --- a/api/managementpb/backup/json/client/locations/change_location_responses.go +++ b/api/managementpb/backup/json/client/locations/change_location_responses.go @@ -60,12 +60,12 @@ type ChangeLocationOK struct { func (o *ChangeLocationOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Change][%d] changeLocationOk %+v", 200, o.Payload) } + func (o *ChangeLocationOK) GetPayload() interface{} { return o.Payload } func (o *ChangeLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangeLocationDefault) Code() int { func (o *ChangeLocationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Change][%d] ChangeLocation default %+v", o._statusCode, o.Payload) } + func (o *ChangeLocationDefault) GetPayload() *ChangeLocationDefaultBody { return o.Payload } func (o *ChangeLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeLocationDefaultBody) // response payload @@ -121,7 +121,6 @@ ChangeLocationBody change location body swagger:model ChangeLocationBody */ type ChangeLocationBody struct { - // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -243,7 +242,6 @@ func (o *ChangeLocationBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeLocationBody) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -259,7 +257,6 @@ func (o *ChangeLocationBody) contextValidatePMMClientConfig(ctx context.Context, } func (o *ChangeLocationBody) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -275,7 +272,6 @@ func (o *ChangeLocationBody) contextValidatePMMServerConfig(ctx context.Context, } func (o *ChangeLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -313,7 +309,6 @@ ChangeLocationDefaultBody change location default body swagger:model ChangeLocationDefaultBody */ type ChangeLocationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -379,9 +374,7 @@ func (o *ChangeLocationDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeLocationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -392,7 +385,6 @@ func (o *ChangeLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -421,7 +413,6 @@ ChangeLocationDefaultBodyDetailsItems0 change location default body details item swagger:model ChangeLocationDefaultBodyDetailsItems0 */ type ChangeLocationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -459,7 +450,6 @@ ChangeLocationParamsBodyPMMClientConfig PMMClientLocationConfig represents file swagger:model ChangeLocationParamsBodyPMMClientConfig */ type ChangeLocationParamsBodyPMMClientConfig struct { - // path Path string `json:"path,omitempty"` } @@ -497,7 +487,6 @@ ChangeLocationParamsBodyPMMServerConfig PMMServerLocationConfig represents file swagger:model ChangeLocationParamsBodyPMMServerConfig */ type ChangeLocationParamsBodyPMMServerConfig struct { - // path Path string `json:"path,omitempty"` } @@ -535,7 +524,6 @@ ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configura swagger:model ChangeLocationParamsBodyS3Config */ type ChangeLocationParamsBodyS3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/locations/list_locations_parameters.go b/api/managementpb/backup/json/client/locations/list_locations_parameters.go index e26ff5121d..070bf3c0d3 100644 --- a/api/managementpb/backup/json/client/locations/list_locations_parameters.go +++ b/api/managementpb/backup/json/client/locations/list_locations_parameters.go @@ -60,7 +60,6 @@ ListLocationsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListLocationsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListLocationsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/list_locations_responses.go b/api/managementpb/backup/json/client/locations/list_locations_responses.go index 7d0aec99a3..4400e58783 100644 --- a/api/managementpb/backup/json/client/locations/list_locations_responses.go +++ b/api/managementpb/backup/json/client/locations/list_locations_responses.go @@ -60,12 +60,12 @@ type ListLocationsOK struct { func (o *ListLocationsOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/List][%d] listLocationsOk %+v", 200, o.Payload) } + func (o *ListLocationsOK) GetPayload() *ListLocationsOKBody { return o.Payload } func (o *ListLocationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListLocationsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListLocationsDefault) Code() int { func (o *ListLocationsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/List][%d] ListLocations default %+v", o._statusCode, o.Payload) } + func (o *ListLocationsDefault) GetPayload() *ListLocationsDefaultBody { return o.Payload } func (o *ListLocationsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListLocationsDefaultBody) // response payload @@ -123,7 +123,6 @@ ListLocationsDefaultBody list locations default body swagger:model ListLocationsDefaultBody */ type ListLocationsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *ListLocationsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListLocationsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *ListLocationsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -231,7 +227,6 @@ ListLocationsDefaultBodyDetailsItems0 list locations default body details items0 swagger:model ListLocationsDefaultBodyDetailsItems0 */ type ListLocationsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ ListLocationsOKBody list locations OK body swagger:model ListLocationsOKBody */ type ListLocationsOKBody struct { - // locations Locations []*ListLocationsOKBodyLocationsItems0 `json:"locations"` } @@ -329,9 +323,7 @@ func (o *ListLocationsOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ListLocationsOKBody) contextValidateLocations(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Locations); i++ { - if o.Locations[i] != nil { if err := o.Locations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -342,7 +334,6 @@ func (o *ListLocationsOKBody) contextValidateLocations(ctx context.Context, form return err } } - } return nil @@ -371,7 +362,6 @@ ListLocationsOKBodyLocationsItems0 Location represents single Backup Location. swagger:model ListLocationsOKBodyLocationsItems0 */ type ListLocationsOKBodyLocationsItems0 struct { - // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -493,7 +483,6 @@ func (o *ListLocationsOKBodyLocationsItems0) ContextValidate(ctx context.Context } func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -509,7 +498,6 @@ func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMClientConfig(ctx } func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -525,7 +513,6 @@ func (o *ListLocationsOKBodyLocationsItems0) contextValidatePMMServerConfig(ctx } func (o *ListLocationsOKBodyLocationsItems0) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -563,7 +550,6 @@ ListLocationsOKBodyLocationsItems0PMMClientConfig PMMClientLocationConfig repres swagger:model ListLocationsOKBodyLocationsItems0PMMClientConfig */ type ListLocationsOKBodyLocationsItems0PMMClientConfig struct { - // path Path string `json:"path,omitempty"` } @@ -601,7 +587,6 @@ ListLocationsOKBodyLocationsItems0PMMServerConfig PMMServerLocationConfig repres swagger:model ListLocationsOKBodyLocationsItems0PMMServerConfig */ type ListLocationsOKBodyLocationsItems0PMMServerConfig struct { - // path Path string `json:"path,omitempty"` } @@ -639,7 +624,6 @@ ListLocationsOKBodyLocationsItems0S3Config S3LocationConfig represents S3 bucket swagger:model ListLocationsOKBodyLocationsItems0S3Config */ type ListLocationsOKBodyLocationsItems0S3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/locations/remove_location_parameters.go b/api/managementpb/backup/json/client/locations/remove_location_parameters.go index 279d1a1654..593dd04ecd 100644 --- a/api/managementpb/backup/json/client/locations/remove_location_parameters.go +++ b/api/managementpb/backup/json/client/locations/remove_location_parameters.go @@ -60,7 +60,6 @@ RemoveLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveLocationParams struct { - // Body. Body RemoveLocationBody @@ -130,7 +129,6 @@ func (o *RemoveLocationParams) SetBody(body RemoveLocationBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/remove_location_responses.go b/api/managementpb/backup/json/client/locations/remove_location_responses.go index 70c7ae2160..9177250956 100644 --- a/api/managementpb/backup/json/client/locations/remove_location_responses.go +++ b/api/managementpb/backup/json/client/locations/remove_location_responses.go @@ -60,12 +60,12 @@ type RemoveLocationOK struct { func (o *RemoveLocationOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Remove][%d] removeLocationOk %+v", 200, o.Payload) } + func (o *RemoveLocationOK) GetPayload() interface{} { return o.Payload } func (o *RemoveLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveLocationDefault) Code() int { func (o *RemoveLocationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/Remove][%d] RemoveLocation default %+v", o._statusCode, o.Payload) } + func (o *RemoveLocationDefault) GetPayload() *RemoveLocationDefaultBody { return o.Payload } func (o *RemoveLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveLocationDefaultBody) // response payload @@ -121,7 +121,6 @@ RemoveLocationBody remove location body swagger:model RemoveLocationBody */ type RemoveLocationBody struct { - // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -162,7 +161,6 @@ RemoveLocationDefaultBody remove location default body swagger:model RemoveLocationDefaultBody */ type RemoveLocationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *RemoveLocationDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveLocationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *RemoveLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -270,7 +265,6 @@ RemoveLocationDefaultBodyDetailsItems0 remove location default body details item swagger:model RemoveLocationDefaultBodyDetailsItems0 */ type RemoveLocationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/backup/json/client/locations/test_location_config_parameters.go b/api/managementpb/backup/json/client/locations/test_location_config_parameters.go index 4e65319e8a..b694abba5e 100644 --- a/api/managementpb/backup/json/client/locations/test_location_config_parameters.go +++ b/api/managementpb/backup/json/client/locations/test_location_config_parameters.go @@ -60,7 +60,6 @@ TestLocationConfigParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type TestLocationConfigParams struct { - // Body. Body TestLocationConfigBody @@ -130,7 +129,6 @@ func (o *TestLocationConfigParams) SetBody(body TestLocationConfigBody) { // WriteToRequest writes these params to a swagger request func (o *TestLocationConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/locations/test_location_config_responses.go b/api/managementpb/backup/json/client/locations/test_location_config_responses.go index 46f138bc90..30b30ae21d 100644 --- a/api/managementpb/backup/json/client/locations/test_location_config_responses.go +++ b/api/managementpb/backup/json/client/locations/test_location_config_responses.go @@ -60,12 +60,12 @@ type TestLocationConfigOK struct { func (o *TestLocationConfigOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/TestConfig][%d] testLocationConfigOk %+v", 200, o.Payload) } + func (o *TestLocationConfigOK) GetPayload() interface{} { return o.Payload } func (o *TestLocationConfigOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *TestLocationConfigDefault) Code() int { func (o *TestLocationConfigDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/Locations/TestConfig][%d] TestLocationConfig default %+v", o._statusCode, o.Payload) } + func (o *TestLocationConfigDefault) GetPayload() *TestLocationConfigDefaultBody { return o.Payload } func (o *TestLocationConfigDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(TestLocationConfigDefaultBody) // response payload @@ -121,7 +121,6 @@ TestLocationConfigBody test location config body swagger:model TestLocationConfigBody */ type TestLocationConfigBody struct { - // pmm client config PMMClientConfig *TestLocationConfigParamsBodyPMMClientConfig `json:"pmm_client_config,omitempty"` @@ -234,7 +233,6 @@ func (o *TestLocationConfigBody) ContextValidate(ctx context.Context, formats st } func (o *TestLocationConfigBody) contextValidatePMMClientConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMClientConfig != nil { if err := o.PMMClientConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -250,7 +248,6 @@ func (o *TestLocationConfigBody) contextValidatePMMClientConfig(ctx context.Cont } func (o *TestLocationConfigBody) contextValidatePMMServerConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PMMServerConfig != nil { if err := o.PMMServerConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -266,7 +263,6 @@ func (o *TestLocationConfigBody) contextValidatePMMServerConfig(ctx context.Cont } func (o *TestLocationConfigBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if err := o.S3Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -304,7 +300,6 @@ TestLocationConfigDefaultBody test location config default body swagger:model TestLocationConfigDefaultBody */ type TestLocationConfigDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -370,9 +365,7 @@ func (o *TestLocationConfigDefaultBody) ContextValidate(ctx context.Context, for } func (o *TestLocationConfigDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -383,7 +376,6 @@ func (o *TestLocationConfigDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -412,7 +404,6 @@ TestLocationConfigDefaultBodyDetailsItems0 test location config default body det swagger:model TestLocationConfigDefaultBodyDetailsItems0 */ type TestLocationConfigDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -450,7 +441,6 @@ TestLocationConfigParamsBodyPMMClientConfig PMMClientLocationConfig represents f swagger:model TestLocationConfigParamsBodyPMMClientConfig */ type TestLocationConfigParamsBodyPMMClientConfig struct { - // path Path string `json:"path,omitempty"` } @@ -488,7 +478,6 @@ TestLocationConfigParamsBodyPMMServerConfig PMMServerLocationConfig represents f swagger:model TestLocationConfigParamsBodyPMMServerConfig */ type TestLocationConfigParamsBodyPMMServerConfig struct { - // path Path string `json:"path,omitempty"` } @@ -526,7 +515,6 @@ TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket confi swagger:model TestLocationConfigParamsBodyS3Config */ type TestLocationConfigParamsBodyS3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go b/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go index d60458608c..e9058f4280 100644 --- a/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go +++ b/api/managementpb/backup/json/client/restore_history/list_restore_history_parameters.go @@ -60,7 +60,6 @@ ListRestoreHistoryParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListRestoreHistoryParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListRestoreHistoryParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListRestoreHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go b/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go index 1ecf1b0f87..e981d190f7 100644 --- a/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go +++ b/api/managementpb/backup/json/client/restore_history/list_restore_history_responses.go @@ -62,12 +62,12 @@ type ListRestoreHistoryOK struct { func (o *ListRestoreHistoryOK) Error() string { return fmt.Sprintf("[POST /v1/management/backup/RestoreHistory/List][%d] listRestoreHistoryOk %+v", 200, o.Payload) } + func (o *ListRestoreHistoryOK) GetPayload() *ListRestoreHistoryOKBody { return o.Payload } func (o *ListRestoreHistoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListRestoreHistoryOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListRestoreHistoryDefault) Code() int { func (o *ListRestoreHistoryDefault) Error() string { return fmt.Sprintf("[POST /v1/management/backup/RestoreHistory/List][%d] ListRestoreHistory default %+v", o._statusCode, o.Payload) } + func (o *ListRestoreHistoryDefault) GetPayload() *ListRestoreHistoryDefaultBody { return o.Payload } func (o *ListRestoreHistoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListRestoreHistoryDefaultBody) // response payload @@ -125,7 +125,6 @@ ListRestoreHistoryDefaultBody list restore history default body swagger:model ListRestoreHistoryDefaultBody */ type ListRestoreHistoryDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *ListRestoreHistoryDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListRestoreHistoryDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *ListRestoreHistoryDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -233,7 +229,6 @@ ListRestoreHistoryDefaultBodyDetailsItems0 list restore history default body det swagger:model ListRestoreHistoryDefaultBodyDetailsItems0 */ type ListRestoreHistoryDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ ListRestoreHistoryOKBody list restore history OK body swagger:model ListRestoreHistoryOKBody */ type ListRestoreHistoryOKBody struct { - // items Items []*ListRestoreHistoryOKBodyItemsItems0 `json:"items"` } @@ -331,9 +325,7 @@ func (o *ListRestoreHistoryOKBody) ContextValidate(ctx context.Context, formats } func (o *ListRestoreHistoryOKBody) contextValidateItems(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Items); i++ { - if o.Items[i] != nil { if err := o.Items[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,7 +336,6 @@ func (o *ListRestoreHistoryOKBody) contextValidateItems(ctx context.Context, for return err } } - } return nil @@ -373,7 +364,6 @@ ListRestoreHistoryOKBodyItemsItems0 RestoreHistoryItem represents single backup swagger:model ListRestoreHistoryOKBodyItemsItems0 */ type ListRestoreHistoryOKBodyItemsItems0 struct { - // Machine-readable restore id. RestoreID string `json:"restore_id,omitempty"` diff --git a/api/managementpb/backup/locations.pb.go b/api/managementpb/backup/locations.pb.go index 6a01f3061e..1acd5309f7 100644 --- a/api/managementpb/backup/locations.pb.go +++ b/api/managementpb/backup/locations.pb.go @@ -7,12 +7,13 @@ package backupv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -1074,23 +1075,26 @@ func file_managementpb_backup_locations_proto_rawDescGZIP() []byte { return file_managementpb_backup_locations_proto_rawDescData } -var file_managementpb_backup_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_managementpb_backup_locations_proto_goTypes = []interface{}{ - (*PMMServerLocationConfig)(nil), // 0: backup.v1beta1.PMMServerLocationConfig - (*PMMClientLocationConfig)(nil), // 1: backup.v1beta1.PMMClientLocationConfig - (*S3LocationConfig)(nil), // 2: backup.v1beta1.S3LocationConfig - (*Location)(nil), // 3: backup.v1beta1.Location - (*ListLocationsRequest)(nil), // 4: backup.v1beta1.ListLocationsRequest - (*ListLocationsResponse)(nil), // 5: backup.v1beta1.ListLocationsResponse - (*AddLocationRequest)(nil), // 6: backup.v1beta1.AddLocationRequest - (*AddLocationResponse)(nil), // 7: backup.v1beta1.AddLocationResponse - (*ChangeLocationRequest)(nil), // 8: backup.v1beta1.ChangeLocationRequest - (*ChangeLocationResponse)(nil), // 9: backup.v1beta1.ChangeLocationResponse - (*RemoveLocationRequest)(nil), // 10: backup.v1beta1.RemoveLocationRequest - (*RemoveLocationResponse)(nil), // 11: backup.v1beta1.RemoveLocationResponse - (*TestLocationConfigRequest)(nil), // 12: backup.v1beta1.TestLocationConfigRequest - (*TestLocationConfigResponse)(nil), // 13: backup.v1beta1.TestLocationConfigResponse -} +var ( + file_managementpb_backup_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 14) + file_managementpb_backup_locations_proto_goTypes = []interface{}{ + (*PMMServerLocationConfig)(nil), // 0: backup.v1beta1.PMMServerLocationConfig + (*PMMClientLocationConfig)(nil), // 1: backup.v1beta1.PMMClientLocationConfig + (*S3LocationConfig)(nil), // 2: backup.v1beta1.S3LocationConfig + (*Location)(nil), // 3: backup.v1beta1.Location + (*ListLocationsRequest)(nil), // 4: backup.v1beta1.ListLocationsRequest + (*ListLocationsResponse)(nil), // 5: backup.v1beta1.ListLocationsResponse + (*AddLocationRequest)(nil), // 6: backup.v1beta1.AddLocationRequest + (*AddLocationResponse)(nil), // 7: backup.v1beta1.AddLocationResponse + (*ChangeLocationRequest)(nil), // 8: backup.v1beta1.ChangeLocationRequest + (*ChangeLocationResponse)(nil), // 9: backup.v1beta1.ChangeLocationResponse + (*RemoveLocationRequest)(nil), // 10: backup.v1beta1.RemoveLocationRequest + (*RemoveLocationResponse)(nil), // 11: backup.v1beta1.RemoveLocationResponse + (*TestLocationConfigRequest)(nil), // 12: backup.v1beta1.TestLocationConfigRequest + (*TestLocationConfigResponse)(nil), // 13: backup.v1beta1.TestLocationConfigResponse + } +) + var file_managementpb_backup_locations_proto_depIdxs = []int32{ 1, // 0: backup.v1beta1.Location.pmm_client_config:type_name -> backup.v1beta1.PMMClientLocationConfig 0, // 1: backup.v1beta1.Location.pmm_server_config:type_name -> backup.v1beta1.PMMServerLocationConfig diff --git a/api/managementpb/backup/locations.pb.gw.go b/api/managementpb/backup/locations.pb.gw.go index 80e901f8a9..1551fc8548 100644 --- a/api/managementpb/backup/locations.pb.gw.go +++ b/api/managementpb/backup/locations.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Locations_ListLocations_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListLocationsRequest @@ -45,7 +47,6 @@ func request_Locations_ListLocations_0(ctx context.Context, marshaler runtime.Ma msg, err := client.ListLocations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Locations_ListLocations_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Locations_ListLocations_0(ctx context.Context, marshaler runt msg, err := server.ListLocations(ctx, &protoReq) return msg, metadata, err - } func request_Locations_AddLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Locations_AddLocation_0(ctx context.Context, marshaler runtime.Mars msg, err := client.AddLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Locations_AddLocation_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Locations_AddLocation_0(ctx context.Context, marshaler runtim msg, err := server.AddLocation(ctx, &protoReq) return msg, metadata, err - } func request_Locations_ChangeLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Locations_ChangeLocation_0(ctx context.Context, marshaler runtime.M msg, err := client.ChangeLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Locations_ChangeLocation_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Locations_ChangeLocation_0(ctx context.Context, marshaler run msg, err := server.ChangeLocation(ctx, &protoReq) return msg, metadata, err - } func request_Locations_RemoveLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Locations_RemoveLocation_0(ctx context.Context, marshaler runtime.M msg, err := client.RemoveLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Locations_RemoveLocation_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Locations_RemoveLocation_0(ctx context.Context, marshaler run msg, err := server.RemoveLocation(ctx, &protoReq) return msg, metadata, err - } func request_Locations_TestLocationConfig_0(ctx context.Context, marshaler runtime.Marshaler, client LocationsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Locations_TestLocationConfig_0(ctx context.Context, marshaler runti msg, err := client.TestLocationConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Locations_TestLocationConfig_0(ctx context.Context, marshaler runtime.Marshaler, server LocationsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Locations_TestLocationConfig_0(ctx context.Context, marshaler msg, err := server.TestLocationConfig(ctx, &protoReq) return msg, metadata, err - } // RegisterLocationsHandlerServer registers the http handlers for service Locations to "mux". @@ -206,7 +198,6 @@ func local_request_Locations_TestLocationConfig_0(ctx context.Context, marshaler // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLocationsHandlerFromEndpoint instead. func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LocationsServer) error { - mux.Handle("POST", pattern_Locations_ListLocations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -229,7 +220,6 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ListLocations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_AddLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -254,7 +244,6 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_AddLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_ChangeLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -279,7 +268,6 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ChangeLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_RemoveLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -304,7 +292,6 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_RemoveLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_TestLocationConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -329,7 +316,6 @@ func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_TestLocationConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -372,7 +358,6 @@ func RegisterLocationsHandler(ctx context.Context, mux *runtime.ServeMux, conn * // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "LocationsClient" to call the correct interceptors. func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LocationsClient) error { - mux.Handle("POST", pattern_Locations_ListLocations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -392,7 +377,6 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ListLocations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_AddLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -414,7 +398,6 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_AddLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_ChangeLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -436,7 +419,6 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_ChangeLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_RemoveLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -458,7 +440,6 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_RemoveLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Locations_TestLocationConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -480,7 +461,6 @@ func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Locations_TestLocationConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/backup/locations.validator.pb.go b/api/managementpb/backup/locations.validator.pb.go index 0c7fd85bcc..23252104e5 100644 --- a/api/managementpb/backup/locations.validator.pb.go +++ b/api/managementpb/backup/locations.validator.pb.go @@ -6,16 +6,19 @@ package backupv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *PMMServerLocationConfig) Validate() error { if this.Path == "" { @@ -23,12 +26,14 @@ func (this *PMMServerLocationConfig) Validate() error { } return nil } + func (this *PMMClientLocationConfig) Validate() error { if this.Path == "" { return github_com_mwitkow_go_proto_validators.FieldError("Path", fmt.Errorf(`value '%v' must not be an empty string`, this.Path)) } return nil } + func (this *S3LocationConfig) Validate() error { if this.Endpoint == "" { return github_com_mwitkow_go_proto_validators.FieldError("Endpoint", fmt.Errorf(`value '%v' must not be an empty string`, this.Endpoint)) @@ -44,6 +49,7 @@ func (this *S3LocationConfig) Validate() error { } return nil } + func (this *Location) Validate() error { if oneOfNester, ok := this.GetConfig().(*Location_PmmClientConfig); ok { if oneOfNester.PmmClientConfig != nil { @@ -68,9 +74,11 @@ func (this *Location) Validate() error { } return nil } + func (this *ListLocationsRequest) Validate() error { return nil } + func (this *ListLocationsResponse) Validate() error { for _, item := range this.Locations { if item != nil { @@ -81,6 +89,7 @@ func (this *ListLocationsResponse) Validate() error { } return nil } + func (this *AddLocationRequest) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) @@ -102,9 +111,11 @@ func (this *AddLocationRequest) Validate() error { } return nil } + func (this *AddLocationResponse) Validate() error { return nil } + func (this *ChangeLocationRequest) Validate() error { if this.LocationId == "" { return github_com_mwitkow_go_proto_validators.FieldError("LocationId", fmt.Errorf(`value '%v' must not be an empty string`, this.LocationId)) @@ -126,15 +137,19 @@ func (this *ChangeLocationRequest) Validate() error { } return nil } + func (this *ChangeLocationResponse) Validate() error { return nil } + func (this *RemoveLocationRequest) Validate() error { return nil } + func (this *RemoveLocationResponse) Validate() error { return nil } + func (this *TestLocationConfigRequest) Validate() error { if this.PmmClientConfig != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PmmClientConfig); err != nil { @@ -153,6 +168,7 @@ func (this *TestLocationConfigRequest) Validate() error { } return nil } + func (this *TestLocationConfigResponse) Validate() error { return nil } diff --git a/api/managementpb/backup/locations_grpc.pb.go b/api/managementpb/backup/locations_grpc.pb.go index 6bec37e469..54c7ee33d8 100644 --- a/api/managementpb/backup/locations_grpc.pb.go +++ b/api/managementpb/backup/locations_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -105,21 +106,24 @@ type LocationsServer interface { } // UnimplementedLocationsServer must be embedded to have forward compatible implementations. -type UnimplementedLocationsServer struct { -} +type UnimplementedLocationsServer struct{} func (UnimplementedLocationsServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListLocations not implemented") } + func (UnimplementedLocationsServer) AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddLocation not implemented") } + func (UnimplementedLocationsServer) ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeLocation not implemented") } + func (UnimplementedLocationsServer) RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveLocation not implemented") } + func (UnimplementedLocationsServer) TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TestLocationConfig not implemented") } diff --git a/api/managementpb/backup/restores.pb.go b/api/managementpb/backup/restores.pb.go index 096d44b34d..70699f5ffa 100644 --- a/api/managementpb/backup/restores.pb.go +++ b/api/managementpb/backup/restores.pb.go @@ -7,12 +7,13 @@ package backupv1beta1 import ( + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" ) const ( @@ -405,16 +406,19 @@ func file_managementpb_backup_restores_proto_rawDescGZIP() []byte { return file_managementpb_backup_restores_proto_rawDescData } -var file_managementpb_backup_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_backup_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_backup_restores_proto_goTypes = []interface{}{ - (RestoreStatus)(0), // 0: backup.v1beta1.RestoreStatus - (*RestoreHistoryItem)(nil), // 1: backup.v1beta1.RestoreHistoryItem - (*ListRestoreHistoryRequest)(nil), // 2: backup.v1beta1.ListRestoreHistoryRequest - (*ListRestoreHistoryResponse)(nil), // 3: backup.v1beta1.ListRestoreHistoryResponse - (DataModel)(0), // 4: backup.v1beta1.DataModel - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp -} +var ( + file_managementpb_backup_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_backup_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_backup_restores_proto_goTypes = []interface{}{ + (RestoreStatus)(0), // 0: backup.v1beta1.RestoreStatus + (*RestoreHistoryItem)(nil), // 1: backup.v1beta1.RestoreHistoryItem + (*ListRestoreHistoryRequest)(nil), // 2: backup.v1beta1.ListRestoreHistoryRequest + (*ListRestoreHistoryResponse)(nil), // 3: backup.v1beta1.ListRestoreHistoryResponse + (DataModel)(0), // 4: backup.v1beta1.DataModel + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + } +) + var file_managementpb_backup_restores_proto_depIdxs = []int32{ 4, // 0: backup.v1beta1.RestoreHistoryItem.data_model:type_name -> backup.v1beta1.DataModel 0, // 1: backup.v1beta1.RestoreHistoryItem.status:type_name -> backup.v1beta1.RestoreStatus diff --git a/api/managementpb/backup/restores.pb.gw.go b/api/managementpb/backup/restores.pb.gw.go index d6575081a3..c564f3251b 100644 --- a/api/managementpb/backup/restores.pb.gw.go +++ b/api/managementpb/backup/restores.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, marshaler runtime.Marshaler, client RestoreHistoryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListRestoreHistoryRequest @@ -45,7 +47,6 @@ func request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, marshaler msg, err := client.ListRestoreHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, marshaler runtime.Marshaler, server RestoreHistoryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, mars msg, err := server.ListRestoreHistory(ctx, &protoReq) return msg, metadata, err - } // RegisterRestoreHistoryHandlerServer registers the http handlers for service RestoreHistory to "mux". @@ -70,7 +70,6 @@ func local_request_RestoreHistory_ListRestoreHistory_0(ctx context.Context, mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRestoreHistoryHandlerFromEndpoint instead. func RegisterRestoreHistoryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RestoreHistoryServer) error { - mux.Handle("POST", pattern_RestoreHistory_ListRestoreHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterRestoreHistoryHandlerServer(ctx context.Context, mux *runtime.Serve } forward_RestoreHistory_ListRestoreHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterRestoreHistoryHandler(ctx context.Context, mux *runtime.ServeMux, c // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "RestoreHistoryClient" to call the correct interceptors. func RegisterRestoreHistoryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RestoreHistoryClient) error { - mux.Handle("POST", pattern_RestoreHistory_ListRestoreHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterRestoreHistoryHandlerClient(ctx context.Context, mux *runtime.Serve } forward_RestoreHistory_ListRestoreHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_RestoreHistory_ListRestoreHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "backup", "RestoreHistory", "List"}, "")) -) +var pattern_RestoreHistory_ListRestoreHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"v1", "management", "backup", "RestoreHistory", "List"}, "")) -var ( - forward_RestoreHistory_ListRestoreHistory_0 = runtime.ForwardResponseMessage -) +var forward_RestoreHistory_ListRestoreHistory_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/backup/restores.validator.pb.go b/api/managementpb/backup/restores.validator.pb.go index 3bd327b06a..e9080d17b4 100644 --- a/api/managementpb/backup/restores.validator.pb.go +++ b/api/managementpb/backup/restores.validator.pb.go @@ -6,16 +6,19 @@ package backupv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *RestoreHistoryItem) Validate() error { if this.StartedAt != nil { @@ -30,9 +33,11 @@ func (this *RestoreHistoryItem) Validate() error { } return nil } + func (this *ListRestoreHistoryRequest) Validate() error { return nil } + func (this *ListRestoreHistoryResponse) Validate() error { for _, item := range this.Items { if item != nil { diff --git a/api/managementpb/backup/restores_grpc.pb.go b/api/managementpb/backup/restores_grpc.pb.go index 3f5423beee..0b9ff8c078 100644 --- a/api/managementpb/backup/restores_grpc.pb.go +++ b/api/managementpb/backup/restores_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type RestoreHistoryServer interface { } // UnimplementedRestoreHistoryServer must be embedded to have forward compatible implementations. -type UnimplementedRestoreHistoryServer struct { -} +type UnimplementedRestoreHistoryServer struct{} func (UnimplementedRestoreHistoryServer) ListRestoreHistory(context.Context, *ListRestoreHistoryRequest) (*ListRestoreHistoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListRestoreHistory not implemented") diff --git a/api/managementpb/boolean_flag.pb.go b/api/managementpb/boolean_flag.pb.go index ca3102dbd7..24140f2a60 100644 --- a/api/managementpb/boolean_flag.pb.go +++ b/api/managementpb/boolean_flag.pb.go @@ -7,10 +7,11 @@ package managementpb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -108,10 +109,13 @@ func file_managementpb_boolean_flag_proto_rawDescGZIP() []byte { return file_managementpb_boolean_flag_proto_rawDescData } -var file_managementpb_boolean_flag_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_boolean_flag_proto_goTypes = []interface{}{ - (BooleanFlag)(0), // 0: managementpb.BooleanFlag -} +var ( + file_managementpb_boolean_flag_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_boolean_flag_proto_goTypes = []interface{}{ + (BooleanFlag)(0), // 0: managementpb.BooleanFlag + } +) + var file_managementpb_boolean_flag_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/boolean_flag.validator.pb.go b/api/managementpb/boolean_flag.validator.pb.go index f4ac09afe9..5484086337 100644 --- a/api/managementpb/boolean_flag.validator.pb.go +++ b/api/managementpb/boolean_flag.validator.pb.go @@ -6,10 +6,13 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/managementpb/checks.pb.go b/api/managementpb/checks.pb.go index 26dddddd2b..d3ef647114 100644 --- a/api/managementpb/checks.pb.go +++ b/api/managementpb/checks.pb.go @@ -7,12 +7,13 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -1522,35 +1523,38 @@ func file_managementpb_checks_proto_rawDescGZIP() []byte { return file_managementpb_checks_proto_rawDescData } -var file_managementpb_checks_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_checks_proto_msgTypes = make([]protoimpl.MessageInfo, 21) -var file_managementpb_checks_proto_goTypes = []interface{}{ - (SecurityCheckInterval)(0), // 0: management.SecurityCheckInterval - (*SecurityCheckResult)(nil), // 1: management.SecurityCheckResult - (*CheckResultSummary)(nil), // 2: management.CheckResultSummary - (*CheckResult)(nil), // 3: management.CheckResult - (*SecurityCheck)(nil), // 4: management.SecurityCheck - (*ChangeSecurityCheckParams)(nil), // 5: management.ChangeSecurityCheckParams - (*GetSecurityCheckResultsRequest)(nil), // 6: management.GetSecurityCheckResultsRequest - (*GetSecurityCheckResultsResponse)(nil), // 7: management.GetSecurityCheckResultsResponse - (*StartSecurityChecksRequest)(nil), // 8: management.StartSecurityChecksRequest - (*StartSecurityChecksResponse)(nil), // 9: management.StartSecurityChecksResponse - (*ListSecurityChecksRequest)(nil), // 10: management.ListSecurityChecksRequest - (*ListSecurityChecksResponse)(nil), // 11: management.ListSecurityChecksResponse - (*ChangeSecurityChecksRequest)(nil), // 12: management.ChangeSecurityChecksRequest - (*ChangeSecurityChecksResponse)(nil), // 13: management.ChangeSecurityChecksResponse - (*ListFailedServicesRequest)(nil), // 14: management.ListFailedServicesRequest - (*ListFailedServicesResponse)(nil), // 15: management.ListFailedServicesResponse - (*GetFailedChecksRequest)(nil), // 16: management.GetFailedChecksRequest - (*GetFailedChecksResponse)(nil), // 17: management.GetFailedChecksResponse - (*ToggleCheckAlertRequest)(nil), // 18: management.ToggleCheckAlertRequest - (*ToggleCheckAlertResponse)(nil), // 19: management.ToggleCheckAlertResponse - nil, // 20: management.SecurityCheckResult.LabelsEntry - nil, // 21: management.CheckResult.LabelsEntry - (Severity)(0), // 22: management.Severity - (*PageParams)(nil), // 23: management.PageParams - (*PageTotals)(nil), // 24: management.PageTotals -} +var ( + file_managementpb_checks_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_checks_proto_msgTypes = make([]protoimpl.MessageInfo, 21) + file_managementpb_checks_proto_goTypes = []interface{}{ + (SecurityCheckInterval)(0), // 0: management.SecurityCheckInterval + (*SecurityCheckResult)(nil), // 1: management.SecurityCheckResult + (*CheckResultSummary)(nil), // 2: management.CheckResultSummary + (*CheckResult)(nil), // 3: management.CheckResult + (*SecurityCheck)(nil), // 4: management.SecurityCheck + (*ChangeSecurityCheckParams)(nil), // 5: management.ChangeSecurityCheckParams + (*GetSecurityCheckResultsRequest)(nil), // 6: management.GetSecurityCheckResultsRequest + (*GetSecurityCheckResultsResponse)(nil), // 7: management.GetSecurityCheckResultsResponse + (*StartSecurityChecksRequest)(nil), // 8: management.StartSecurityChecksRequest + (*StartSecurityChecksResponse)(nil), // 9: management.StartSecurityChecksResponse + (*ListSecurityChecksRequest)(nil), // 10: management.ListSecurityChecksRequest + (*ListSecurityChecksResponse)(nil), // 11: management.ListSecurityChecksResponse + (*ChangeSecurityChecksRequest)(nil), // 12: management.ChangeSecurityChecksRequest + (*ChangeSecurityChecksResponse)(nil), // 13: management.ChangeSecurityChecksResponse + (*ListFailedServicesRequest)(nil), // 14: management.ListFailedServicesRequest + (*ListFailedServicesResponse)(nil), // 15: management.ListFailedServicesResponse + (*GetFailedChecksRequest)(nil), // 16: management.GetFailedChecksRequest + (*GetFailedChecksResponse)(nil), // 17: management.GetFailedChecksResponse + (*ToggleCheckAlertRequest)(nil), // 18: management.ToggleCheckAlertRequest + (*ToggleCheckAlertResponse)(nil), // 19: management.ToggleCheckAlertResponse + nil, // 20: management.SecurityCheckResult.LabelsEntry + nil, // 21: management.CheckResult.LabelsEntry + (Severity)(0), // 22: management.Severity + (*PageParams)(nil), // 23: management.PageParams + (*PageTotals)(nil), // 24: management.PageTotals + } +) + var file_managementpb_checks_proto_depIdxs = []int32{ 22, // 0: management.SecurityCheckResult.severity:type_name -> management.Severity 20, // 1: management.SecurityCheckResult.labels:type_name -> management.SecurityCheckResult.LabelsEntry diff --git a/api/managementpb/checks.pb.gw.go b/api/managementpb/checks.pb.gw.go index fc000aceb2..ad8af336d9 100644 --- a/api/managementpb/checks.pb.gw.go +++ b/api/managementpb/checks.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_SecurityChecks_ListFailedServices_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListFailedServicesRequest @@ -45,7 +47,6 @@ func request_SecurityChecks_ListFailedServices_0(ctx context.Context, marshaler msg, err := client.ListFailedServices(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_ListFailedServices_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_SecurityChecks_ListFailedServices_0(ctx context.Context, mars msg, err := server.ListFailedServices(ctx, &protoReq) return msg, metadata, err - } func request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshaler run msg, err := client.GetFailedChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_SecurityChecks_GetFailedChecks_0(ctx context.Context, marshal msg, err := server.GetFailedChecks(ctx, &protoReq) return msg, metadata, err - } func request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marshaler ru msg, err := client.ToggleCheckAlert(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_SecurityChecks_ToggleCheckAlert_0(ctx context.Context, marsha msg, err := server.ToggleCheckAlert(ctx, &protoReq) return msg, metadata, err - } func request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, marsh msg, err := client.GetSecurityCheckResults(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_SecurityChecks_GetSecurityCheckResults_0(ctx context.Context, msg, err := server.GetSecurityCheckResults(ctx, &protoReq) return msg, metadata, err - } func request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, marshaler msg, err := client.StartSecurityChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_SecurityChecks_StartSecurityChecks_0(ctx context.Context, mar msg, err := server.StartSecurityChecks(ctx, &protoReq) return msg, metadata, err - } func request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, marshaler msg, err := client.ListSecurityChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_SecurityChecks_ListSecurityChecks_0(ctx context.Context, mars msg, err := server.ListSecurityChecks(ctx, &protoReq) return msg, metadata, err - } func request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, client SecurityChecksClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, marshale msg, err := client.ChangeSecurityChecks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, marshaler runtime.Marshaler, server SecurityChecksServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, ma msg, err := server.ChangeSecurityChecks(ctx, &protoReq) return msg, metadata, err - } // RegisterSecurityChecksHandlerServer registers the http handlers for service SecurityChecks to "mux". @@ -274,7 +262,6 @@ func local_request_SecurityChecks_ChangeSecurityChecks_0(ctx context.Context, ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSecurityChecksHandlerFromEndpoint instead. func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecurityChecksServer) error { - mux.Handle("POST", pattern_SecurityChecks_ListFailedServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -297,7 +284,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListFailedServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_GetFailedChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -322,7 +308,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetFailedChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_ToggleCheckAlert_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -347,7 +332,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ToggleCheckAlert_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_GetSecurityCheckResults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -372,7 +356,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetSecurityCheckResults_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_StartSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -397,7 +380,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_StartSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_ListSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -422,7 +404,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_ChangeSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -447,7 +428,6 @@ func RegisterSecurityChecksHandlerServer(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ChangeSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -490,7 +470,6 @@ func RegisterSecurityChecksHandler(ctx context.Context, mux *runtime.ServeMux, c // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "SecurityChecksClient" to call the correct interceptors. func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecurityChecksClient) error { - mux.Handle("POST", pattern_SecurityChecks_ListFailedServices_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -510,7 +489,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListFailedServices_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_GetFailedChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -532,7 +510,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetFailedChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_ToggleCheckAlert_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -554,7 +531,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ToggleCheckAlert_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_GetSecurityCheckResults_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -576,7 +552,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_GetSecurityCheckResults_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_StartSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -598,7 +573,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_StartSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_ListSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -620,7 +594,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ListSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_SecurityChecks_ChangeSecurityChecks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -642,7 +615,6 @@ func RegisterSecurityChecksHandlerClient(ctx context.Context, mux *runtime.Serve } forward_SecurityChecks_ChangeSecurityChecks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/checks.validator.pb.go b/api/managementpb/checks.validator.pb.go index b42c872ad4..60dc874e6f 100644 --- a/api/managementpb/checks.validator.pb.go +++ b/api/managementpb/checks.validator.pb.go @@ -6,37 +6,46 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *SecurityCheckResult) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *CheckResultSummary) Validate() error { return nil } + func (this *CheckResult) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *SecurityCheck) Validate() error { return nil } + func (this *ChangeSecurityCheckParams) Validate() error { return nil } + func (this *GetSecurityCheckResultsRequest) Validate() error { return nil } + func (this *GetSecurityCheckResultsResponse) Validate() error { for _, item := range this.Results { if item != nil { @@ -47,15 +56,19 @@ func (this *GetSecurityCheckResultsResponse) Validate() error { } return nil } + func (this *StartSecurityChecksRequest) Validate() error { return nil } + func (this *StartSecurityChecksResponse) Validate() error { return nil } + func (this *ListSecurityChecksRequest) Validate() error { return nil } + func (this *ListSecurityChecksResponse) Validate() error { for _, item := range this.Checks { if item != nil { @@ -66,6 +79,7 @@ func (this *ListSecurityChecksResponse) Validate() error { } return nil } + func (this *ChangeSecurityChecksRequest) Validate() error { for _, item := range this.Params { if item != nil { @@ -76,12 +90,15 @@ func (this *ChangeSecurityChecksRequest) Validate() error { } return nil } + func (this *ChangeSecurityChecksResponse) Validate() error { return nil } + func (this *ListFailedServicesRequest) Validate() error { return nil } + func (this *ListFailedServicesResponse) Validate() error { for _, item := range this.Result { if item != nil { @@ -92,6 +109,7 @@ func (this *ListFailedServicesResponse) Validate() error { } return nil } + func (this *GetFailedChecksRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -100,6 +118,7 @@ func (this *GetFailedChecksRequest) Validate() error { } return nil } + func (this *GetFailedChecksResponse) Validate() error { for _, item := range this.Results { if item != nil { @@ -115,9 +134,11 @@ func (this *GetFailedChecksResponse) Validate() error { } return nil } + func (this *ToggleCheckAlertRequest) Validate() error { return nil } + func (this *ToggleCheckAlertResponse) Validate() error { return nil } diff --git a/api/managementpb/checks_grpc.pb.go b/api/managementpb/checks_grpc.pb.go index 1f3f4d75be..ef4b167e7f 100644 --- a/api/managementpb/checks_grpc.pb.go +++ b/api/managementpb/checks_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -134,27 +135,32 @@ type SecurityChecksServer interface { } // UnimplementedSecurityChecksServer must be embedded to have forward compatible implementations. -type UnimplementedSecurityChecksServer struct { -} +type UnimplementedSecurityChecksServer struct{} func (UnimplementedSecurityChecksServer) ListFailedServices(context.Context, *ListFailedServicesRequest) (*ListFailedServicesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListFailedServices not implemented") } + func (UnimplementedSecurityChecksServer) GetFailedChecks(context.Context, *GetFailedChecksRequest) (*GetFailedChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFailedChecks not implemented") } + func (UnimplementedSecurityChecksServer) ToggleCheckAlert(context.Context, *ToggleCheckAlertRequest) (*ToggleCheckAlertResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ToggleCheckAlert not implemented") } + func (UnimplementedSecurityChecksServer) GetSecurityCheckResults(context.Context, *GetSecurityCheckResultsRequest) (*GetSecurityCheckResultsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSecurityCheckResults not implemented") } + func (UnimplementedSecurityChecksServer) StartSecurityChecks(context.Context, *StartSecurityChecksRequest) (*StartSecurityChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartSecurityChecks not implemented") } + func (UnimplementedSecurityChecksServer) ListSecurityChecks(context.Context, *ListSecurityChecksRequest) (*ListSecurityChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSecurityChecks not implemented") } + func (UnimplementedSecurityChecksServer) ChangeSecurityChecks(context.Context, *ChangeSecurityChecksRequest) (*ChangeSecurityChecksResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeSecurityChecks not implemented") } diff --git a/api/managementpb/dbaas/components.pb.go b/api/managementpb/dbaas/components.pb.go index 603e876ce7..577bd65bf3 100644 --- a/api/managementpb/dbaas/components.pb.go +++ b/api/managementpb/dbaas/components.pb.go @@ -7,12 +7,13 @@ package dbaasv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -1434,39 +1435,42 @@ func file_managementpb_dbaas_components_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_components_proto_rawDescData } -var file_managementpb_dbaas_components_proto_msgTypes = make([]protoimpl.MessageInfo, 29) -var file_managementpb_dbaas_components_proto_goTypes = []interface{}{ - (*Component)(nil), // 0: dbaas.v1beta1.Component - (*Matrix)(nil), // 1: dbaas.v1beta1.Matrix - (*OperatorVersion)(nil), // 2: dbaas.v1beta1.OperatorVersion - (*GetPSMDBComponentsRequest)(nil), // 3: dbaas.v1beta1.GetPSMDBComponentsRequest - (*GetPSMDBComponentsResponse)(nil), // 4: dbaas.v1beta1.GetPSMDBComponentsResponse - (*GetPXCComponentsRequest)(nil), // 5: dbaas.v1beta1.GetPXCComponentsRequest - (*GetPXCComponentsResponse)(nil), // 6: dbaas.v1beta1.GetPXCComponentsResponse - (*ChangeComponent)(nil), // 7: dbaas.v1beta1.ChangeComponent - (*ChangePSMDBComponentsRequest)(nil), // 8: dbaas.v1beta1.ChangePSMDBComponentsRequest - (*ChangePSMDBComponentsResponse)(nil), // 9: dbaas.v1beta1.ChangePSMDBComponentsResponse - (*ChangePXCComponentsRequest)(nil), // 10: dbaas.v1beta1.ChangePXCComponentsRequest - (*ChangePXCComponentsResponse)(nil), // 11: dbaas.v1beta1.ChangePXCComponentsResponse - (*InstallOperatorRequest)(nil), // 12: dbaas.v1beta1.InstallOperatorRequest - (*InstallOperatorResponse)(nil), // 13: dbaas.v1beta1.InstallOperatorResponse - (*CheckForOperatorUpdateRequest)(nil), // 14: dbaas.v1beta1.CheckForOperatorUpdateRequest - (*ComponentUpdateInformation)(nil), // 15: dbaas.v1beta1.ComponentUpdateInformation - (*ComponentsUpdateInformation)(nil), // 16: dbaas.v1beta1.ComponentsUpdateInformation - (*CheckForOperatorUpdateResponse)(nil), // 17: dbaas.v1beta1.CheckForOperatorUpdateResponse - nil, // 18: dbaas.v1beta1.Matrix.MongodEntry - nil, // 19: dbaas.v1beta1.Matrix.PxcEntry - nil, // 20: dbaas.v1beta1.Matrix.PmmEntry - nil, // 21: dbaas.v1beta1.Matrix.ProxysqlEntry - nil, // 22: dbaas.v1beta1.Matrix.HaproxyEntry - nil, // 23: dbaas.v1beta1.Matrix.BackupEntry - nil, // 24: dbaas.v1beta1.Matrix.OperatorEntry - nil, // 25: dbaas.v1beta1.Matrix.LogCollectorEntry - (*ChangeComponent_ComponentVersion)(nil), // 26: dbaas.v1beta1.ChangeComponent.ComponentVersion - nil, // 27: dbaas.v1beta1.ComponentsUpdateInformation.ComponentToUpdateInformationEntry - nil, // 28: dbaas.v1beta1.CheckForOperatorUpdateResponse.ClusterToComponentsEntry - (OperatorsStatus)(0), // 29: dbaas.v1beta1.OperatorsStatus -} +var ( + file_managementpb_dbaas_components_proto_msgTypes = make([]protoimpl.MessageInfo, 29) + file_managementpb_dbaas_components_proto_goTypes = []interface{}{ + (*Component)(nil), // 0: dbaas.v1beta1.Component + (*Matrix)(nil), // 1: dbaas.v1beta1.Matrix + (*OperatorVersion)(nil), // 2: dbaas.v1beta1.OperatorVersion + (*GetPSMDBComponentsRequest)(nil), // 3: dbaas.v1beta1.GetPSMDBComponentsRequest + (*GetPSMDBComponentsResponse)(nil), // 4: dbaas.v1beta1.GetPSMDBComponentsResponse + (*GetPXCComponentsRequest)(nil), // 5: dbaas.v1beta1.GetPXCComponentsRequest + (*GetPXCComponentsResponse)(nil), // 6: dbaas.v1beta1.GetPXCComponentsResponse + (*ChangeComponent)(nil), // 7: dbaas.v1beta1.ChangeComponent + (*ChangePSMDBComponentsRequest)(nil), // 8: dbaas.v1beta1.ChangePSMDBComponentsRequest + (*ChangePSMDBComponentsResponse)(nil), // 9: dbaas.v1beta1.ChangePSMDBComponentsResponse + (*ChangePXCComponentsRequest)(nil), // 10: dbaas.v1beta1.ChangePXCComponentsRequest + (*ChangePXCComponentsResponse)(nil), // 11: dbaas.v1beta1.ChangePXCComponentsResponse + (*InstallOperatorRequest)(nil), // 12: dbaas.v1beta1.InstallOperatorRequest + (*InstallOperatorResponse)(nil), // 13: dbaas.v1beta1.InstallOperatorResponse + (*CheckForOperatorUpdateRequest)(nil), // 14: dbaas.v1beta1.CheckForOperatorUpdateRequest + (*ComponentUpdateInformation)(nil), // 15: dbaas.v1beta1.ComponentUpdateInformation + (*ComponentsUpdateInformation)(nil), // 16: dbaas.v1beta1.ComponentsUpdateInformation + (*CheckForOperatorUpdateResponse)(nil), // 17: dbaas.v1beta1.CheckForOperatorUpdateResponse + nil, // 18: dbaas.v1beta1.Matrix.MongodEntry + nil, // 19: dbaas.v1beta1.Matrix.PxcEntry + nil, // 20: dbaas.v1beta1.Matrix.PmmEntry + nil, // 21: dbaas.v1beta1.Matrix.ProxysqlEntry + nil, // 22: dbaas.v1beta1.Matrix.HaproxyEntry + nil, // 23: dbaas.v1beta1.Matrix.BackupEntry + nil, // 24: dbaas.v1beta1.Matrix.OperatorEntry + nil, // 25: dbaas.v1beta1.Matrix.LogCollectorEntry + (*ChangeComponent_ComponentVersion)(nil), // 26: dbaas.v1beta1.ChangeComponent.ComponentVersion + nil, // 27: dbaas.v1beta1.ComponentsUpdateInformation.ComponentToUpdateInformationEntry + nil, // 28: dbaas.v1beta1.CheckForOperatorUpdateResponse.ClusterToComponentsEntry + (OperatorsStatus)(0), // 29: dbaas.v1beta1.OperatorsStatus + } +) + var file_managementpb_dbaas_components_proto_depIdxs = []int32{ 18, // 0: dbaas.v1beta1.Matrix.mongod:type_name -> dbaas.v1beta1.Matrix.MongodEntry 19, // 1: dbaas.v1beta1.Matrix.pxc:type_name -> dbaas.v1beta1.Matrix.PxcEntry diff --git a/api/managementpb/dbaas/components.pb.gw.go b/api/managementpb/dbaas/components.pb.gw.go index a93c5b7ce7..15e795334d 100644 --- a/api/managementpb/dbaas/components.pb.gw.go +++ b/api/managementpb/dbaas/components.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Components_GetPSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetPSMDBComponentsRequest @@ -45,7 +47,6 @@ func request_Components_GetPSMDBComponents_0(ctx context.Context, marshaler runt msg, err := client.GetPSMDBComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Components_GetPSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Components_GetPSMDBComponents_0(ctx context.Context, marshale msg, err := server.GetPSMDBComponents(ctx, &protoReq) return msg, metadata, err - } func request_Components_GetPXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Components_GetPXCComponents_0(ctx context.Context, marshaler runtim msg, err := client.GetPXCComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Components_GetPXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Components_GetPXCComponents_0(ctx context.Context, marshaler msg, err := server.GetPXCComponents(ctx, &protoReq) return msg, metadata, err - } func request_Components_ChangePSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Components_ChangePSMDBComponents_0(ctx context.Context, marshaler r msg, err := client.ChangePSMDBComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Components_ChangePSMDBComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Components_ChangePSMDBComponents_0(ctx context.Context, marsh msg, err := server.ChangePSMDBComponents(ctx, &protoReq) return msg, metadata, err - } func request_Components_ChangePXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Components_ChangePXCComponents_0(ctx context.Context, marshaler run msg, err := client.ChangePXCComponents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Components_ChangePXCComponents_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Components_ChangePXCComponents_0(ctx context.Context, marshal msg, err := server.ChangePXCComponents(ctx, &protoReq) return msg, metadata, err - } func request_Components_InstallOperator_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Components_InstallOperator_0(ctx context.Context, marshaler runtime msg, err := client.InstallOperator(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Components_InstallOperator_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Components_InstallOperator_0(ctx context.Context, marshaler r msg, err := server.InstallOperator(ctx, &protoReq) return msg, metadata, err - } func request_Components_CheckForOperatorUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client ComponentsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Components_CheckForOperatorUpdate_0(ctx context.Context, marshaler msg, err := client.CheckForOperatorUpdate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Components_CheckForOperatorUpdate_0(ctx context.Context, marshaler runtime.Marshaler, server ComponentsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Components_CheckForOperatorUpdate_0(ctx context.Context, mars msg, err := server.CheckForOperatorUpdate(ctx, &protoReq) return msg, metadata, err - } // RegisterComponentsHandlerServer registers the http handlers for service Components to "mux". @@ -240,7 +230,6 @@ func local_request_Components_CheckForOperatorUpdate_0(ctx context.Context, mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterComponentsHandlerFromEndpoint instead. func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ComponentsServer) error { - mux.Handle("POST", pattern_Components_GetPSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -263,7 +252,6 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_GetPXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -288,7 +276,6 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_ChangePSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -313,7 +300,6 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_ChangePXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -338,7 +324,6 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_InstallOperator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -363,7 +348,6 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_InstallOperator_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_CheckForOperatorUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -388,7 +372,6 @@ func RegisterComponentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Components_CheckForOperatorUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -431,7 +414,6 @@ func RegisterComponentsHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ComponentsClient" to call the correct interceptors. func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ComponentsClient) error { - mux.Handle("POST", pattern_Components_GetPSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -451,7 +433,6 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_GetPXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -473,7 +454,6 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_GetPXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_ChangePSMDBComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -495,7 +475,6 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePSMDBComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_ChangePXCComponents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -517,7 +496,6 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_ChangePXCComponents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_InstallOperator_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -539,7 +517,6 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_InstallOperator_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Components_CheckForOperatorUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -561,7 +538,6 @@ func RegisterComponentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Components_CheckForOperatorUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/dbaas/components.validator.pb.go b/api/managementpb/dbaas/components.validator.pb.go index 9508cad026..828945e1c5 100644 --- a/api/managementpb/dbaas/components.validator.pb.go +++ b/api/managementpb/dbaas/components.validator.pb.go @@ -6,20 +6,24 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Component) Validate() error { return nil } + func (this *Matrix) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. @@ -31,6 +35,7 @@ func (this *Matrix) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *OperatorVersion) Validate() error { if this.Matrix != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Matrix); err != nil { @@ -39,9 +44,11 @@ func (this *OperatorVersion) Validate() error { } return nil } + func (this *GetPSMDBComponentsRequest) Validate() error { return nil } + func (this *GetPSMDBComponentsResponse) Validate() error { for _, item := range this.Versions { if item != nil { @@ -52,9 +59,11 @@ func (this *GetPSMDBComponentsResponse) Validate() error { } return nil } + func (this *GetPXCComponentsRequest) Validate() error { return nil } + func (this *GetPXCComponentsResponse) Validate() error { for _, item := range this.Versions { if item != nil { @@ -65,6 +74,7 @@ func (this *GetPXCComponentsResponse) Validate() error { } return nil } + func (this *ChangeComponent) Validate() error { for _, item := range this.Versions { if item != nil { @@ -75,12 +85,14 @@ func (this *ChangeComponent) Validate() error { } return nil } + func (this *ChangeComponent_ComponentVersion) Validate() error { if this.Version == "" { return github_com_mwitkow_go_proto_validators.FieldError("Version", fmt.Errorf(`value '%v' must not be an empty string`, this.Version)) } return nil } + func (this *ChangePSMDBComponentsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -92,9 +104,11 @@ func (this *ChangePSMDBComponentsRequest) Validate() error { } return nil } + func (this *ChangePSMDBComponentsResponse) Validate() error { return nil } + func (this *ChangePXCComponentsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -116,9 +130,11 @@ func (this *ChangePXCComponentsRequest) Validate() error { } return nil } + func (this *ChangePXCComponentsResponse) Validate() error { return nil } + func (this *InstallOperatorRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -131,19 +147,24 @@ func (this *InstallOperatorRequest) Validate() error { } return nil } + func (this *InstallOperatorResponse) Validate() error { return nil } + func (this *CheckForOperatorUpdateRequest) Validate() error { return nil } + func (this *ComponentUpdateInformation) Validate() error { return nil } + func (this *ComponentsUpdateInformation) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *CheckForOperatorUpdateResponse) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil diff --git a/api/managementpb/dbaas/components_grpc.pb.go b/api/managementpb/dbaas/components_grpc.pb.go index 4fe48506b2..a8cb09c67b 100644 --- a/api/managementpb/dbaas/components_grpc.pb.go +++ b/api/managementpb/dbaas/components_grpc.pb.go @@ -8,6 +8,7 @@ package dbaasv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -118,24 +119,28 @@ type ComponentsServer interface { } // UnimplementedComponentsServer must be embedded to have forward compatible implementations. -type UnimplementedComponentsServer struct { -} +type UnimplementedComponentsServer struct{} func (UnimplementedComponentsServer) GetPSMDBComponents(context.Context, *GetPSMDBComponentsRequest) (*GetPSMDBComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPSMDBComponents not implemented") } + func (UnimplementedComponentsServer) GetPXCComponents(context.Context, *GetPXCComponentsRequest) (*GetPXCComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPXCComponents not implemented") } + func (UnimplementedComponentsServer) ChangePSMDBComponents(context.Context, *ChangePSMDBComponentsRequest) (*ChangePSMDBComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePSMDBComponents not implemented") } + func (UnimplementedComponentsServer) ChangePXCComponents(context.Context, *ChangePXCComponentsRequest) (*ChangePXCComponentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangePXCComponents not implemented") } + func (UnimplementedComponentsServer) InstallOperator(context.Context, *InstallOperatorRequest) (*InstallOperatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InstallOperator not implemented") } + func (UnimplementedComponentsServer) CheckForOperatorUpdate(context.Context, *CheckForOperatorUpdateRequest) (*CheckForOperatorUpdateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckForOperatorUpdate not implemented") } diff --git a/api/managementpb/dbaas/db_clusters.pb.go b/api/managementpb/dbaas/db_clusters.pb.go index f0415b36ac..7e69d352fa 100644 --- a/api/managementpb/dbaas/db_clusters.pb.go +++ b/api/managementpb/dbaas/db_clusters.pb.go @@ -7,12 +7,13 @@ package dbaasv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -784,23 +785,26 @@ func file_managementpb_dbaas_db_clusters_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_db_clusters_proto_rawDescData } -var file_managementpb_dbaas_db_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_dbaas_db_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_managementpb_dbaas_db_clusters_proto_goTypes = []interface{}{ - (DBClusterState)(0), // 0: dbaas.v1beta1.DBClusterState - (*PSMDBCluster)(nil), // 1: dbaas.v1beta1.PSMDBCluster - (*PXCCluster)(nil), // 2: dbaas.v1beta1.PXCCluster - (*ListDBClustersRequest)(nil), // 3: dbaas.v1beta1.ListDBClustersRequest - (*ListDBClustersResponse)(nil), // 4: dbaas.v1beta1.ListDBClustersResponse - (*RestartDBClusterRequest)(nil), // 5: dbaas.v1beta1.RestartDBClusterRequest - (*RestartDBClusterResponse)(nil), // 6: dbaas.v1beta1.RestartDBClusterResponse - (*DeleteDBClusterRequest)(nil), // 7: dbaas.v1beta1.DeleteDBClusterRequest - (*DeleteDBClusterResponse)(nil), // 8: dbaas.v1beta1.DeleteDBClusterResponse - (*RunningOperation)(nil), // 9: dbaas.v1beta1.RunningOperation - (*PSMDBClusterParams)(nil), // 10: dbaas.v1beta1.PSMDBClusterParams - (*PXCClusterParams)(nil), // 11: dbaas.v1beta1.PXCClusterParams - (DBClusterType)(0), // 12: dbaas.v1beta1.DBClusterType -} +var ( + file_managementpb_dbaas_db_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_dbaas_db_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 8) + file_managementpb_dbaas_db_clusters_proto_goTypes = []interface{}{ + (DBClusterState)(0), // 0: dbaas.v1beta1.DBClusterState + (*PSMDBCluster)(nil), // 1: dbaas.v1beta1.PSMDBCluster + (*PXCCluster)(nil), // 2: dbaas.v1beta1.PXCCluster + (*ListDBClustersRequest)(nil), // 3: dbaas.v1beta1.ListDBClustersRequest + (*ListDBClustersResponse)(nil), // 4: dbaas.v1beta1.ListDBClustersResponse + (*RestartDBClusterRequest)(nil), // 5: dbaas.v1beta1.RestartDBClusterRequest + (*RestartDBClusterResponse)(nil), // 6: dbaas.v1beta1.RestartDBClusterResponse + (*DeleteDBClusterRequest)(nil), // 7: dbaas.v1beta1.DeleteDBClusterRequest + (*DeleteDBClusterResponse)(nil), // 8: dbaas.v1beta1.DeleteDBClusterResponse + (*RunningOperation)(nil), // 9: dbaas.v1beta1.RunningOperation + (*PSMDBClusterParams)(nil), // 10: dbaas.v1beta1.PSMDBClusterParams + (*PXCClusterParams)(nil), // 11: dbaas.v1beta1.PXCClusterParams + (DBClusterType)(0), // 12: dbaas.v1beta1.DBClusterType + } +) + var file_managementpb_dbaas_db_clusters_proto_depIdxs = []int32{ 0, // 0: dbaas.v1beta1.PSMDBCluster.state:type_name -> dbaas.v1beta1.DBClusterState 9, // 1: dbaas.v1beta1.PSMDBCluster.operation:type_name -> dbaas.v1beta1.RunningOperation diff --git a/api/managementpb/dbaas/db_clusters.pb.gw.go b/api/managementpb/dbaas/db_clusters.pb.gw.go index acd795246d..a880463bfc 100644 --- a/api/managementpb/dbaas/db_clusters.pb.gw.go +++ b/api/managementpb/dbaas/db_clusters.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler runtime.Marshaler, client DBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListDBClustersRequest @@ -45,7 +47,6 @@ func request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler runtime. msg, err := client.ListDBClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler runtime.Marshaler, server DBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_DBClusters_ListDBClusters_0(ctx context.Context, marshaler ru msg, err := server.ListDBClusters(ctx, &protoReq) return msg, metadata, err - } func request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client DBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler runtim msg, err := client.RestartDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server DBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_DBClusters_RestartDBCluster_0(ctx context.Context, marshaler msg, err := server.RestartDBCluster(ctx, &protoReq) return msg, metadata, err - } func request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client DBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler runtime msg, err := client.DeleteDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server DBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler r msg, err := server.DeleteDBCluster(ctx, &protoReq) return msg, metadata, err - } // RegisterDBClustersHandlerServer registers the http handlers for service DBClusters to "mux". @@ -138,7 +134,6 @@ func local_request_DBClusters_DeleteDBCluster_0(ctx context.Context, marshaler r // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDBClustersHandlerFromEndpoint instead. func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DBClustersServer) error { - mux.Handle("POST", pattern_DBClusters_ListDBClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -161,7 +156,6 @@ func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_ListDBClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_DBClusters_RestartDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -186,7 +180,6 @@ func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_RestartDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_DBClusters_DeleteDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -211,7 +204,6 @@ func RegisterDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_DeleteDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -254,7 +246,6 @@ func RegisterDBClustersHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "DBClustersClient" to call the correct interceptors. func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DBClustersClient) error { - mux.Handle("POST", pattern_DBClusters_ListDBClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -274,7 +265,6 @@ func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_ListDBClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_DBClusters_RestartDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -296,7 +286,6 @@ func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_RestartDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_DBClusters_DeleteDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -318,7 +307,6 @@ func RegisterDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_DBClusters_DeleteDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/dbaas/db_clusters.validator.pb.go b/api/managementpb/dbaas/db_clusters.validator.pb.go index d16b38547e..6a5f3c74ac 100644 --- a/api/managementpb/dbaas/db_clusters.validator.pb.go +++ b/api/managementpb/dbaas/db_clusters.validator.pb.go @@ -6,16 +6,19 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *PSMDBCluster) Validate() error { if this.Operation != nil { @@ -30,6 +33,7 @@ func (this *PSMDBCluster) Validate() error { } return nil } + func (this *PXCCluster) Validate() error { if this.Operation != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Operation); err != nil { @@ -43,12 +47,14 @@ func (this *PXCCluster) Validate() error { } return nil } + func (this *ListDBClustersRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } + func (this *ListDBClustersResponse) Validate() error { for _, item := range this.PxcClusters { if item != nil { @@ -66,6 +72,7 @@ func (this *ListDBClustersResponse) Validate() error { } return nil } + func (this *RestartDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -75,9 +82,11 @@ func (this *RestartDBClusterRequest) Validate() error { } return nil } + func (this *RestartDBClusterResponse) Validate() error { return nil } + func (this *DeleteDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -87,6 +96,7 @@ func (this *DeleteDBClusterRequest) Validate() error { } return nil } + func (this *DeleteDBClusterResponse) Validate() error { return nil } diff --git a/api/managementpb/dbaas/db_clusters_grpc.pb.go b/api/managementpb/dbaas/db_clusters_grpc.pb.go index 5b867f935b..604d3473d8 100644 --- a/api/managementpb/dbaas/db_clusters_grpc.pb.go +++ b/api/managementpb/dbaas/db_clusters_grpc.pb.go @@ -8,6 +8,7 @@ package dbaasv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -79,15 +80,16 @@ type DBClustersServer interface { } // UnimplementedDBClustersServer must be embedded to have forward compatible implementations. -type UnimplementedDBClustersServer struct { -} +type UnimplementedDBClustersServer struct{} func (UnimplementedDBClustersServer) ListDBClusters(context.Context, *ListDBClustersRequest) (*ListDBClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDBClusters not implemented") } + func (UnimplementedDBClustersServer) RestartDBCluster(context.Context, *RestartDBClusterRequest) (*RestartDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RestartDBCluster not implemented") } + func (UnimplementedDBClustersServer) DeleteDBCluster(context.Context, *DeleteDBClusterRequest) (*DeleteDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteDBCluster not implemented") } diff --git a/api/managementpb/dbaas/dbaas.pb.go b/api/managementpb/dbaas/dbaas.pb.go index fdc97e2ec4..495961d667 100644 --- a/api/managementpb/dbaas/dbaas.pb.go +++ b/api/managementpb/dbaas/dbaas.pb.go @@ -7,10 +7,11 @@ package dbaasv1beta1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -389,15 +390,18 @@ func file_managementpb_dbaas_dbaas_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_dbaas_proto_rawDescData } -var file_managementpb_dbaas_dbaas_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_managementpb_dbaas_dbaas_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_dbaas_dbaas_proto_goTypes = []interface{}{ - (DBClusterType)(0), // 0: dbaas.v1beta1.DBClusterType - (OperatorsStatus)(0), // 1: dbaas.v1beta1.OperatorsStatus - (*RunningOperation)(nil), // 2: dbaas.v1beta1.RunningOperation - (*ComputeResources)(nil), // 3: dbaas.v1beta1.ComputeResources - (*Resources)(nil), // 4: dbaas.v1beta1.Resources -} +var ( + file_managementpb_dbaas_dbaas_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_managementpb_dbaas_dbaas_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_dbaas_dbaas_proto_goTypes = []interface{}{ + (DBClusterType)(0), // 0: dbaas.v1beta1.DBClusterType + (OperatorsStatus)(0), // 1: dbaas.v1beta1.OperatorsStatus + (*RunningOperation)(nil), // 2: dbaas.v1beta1.RunningOperation + (*ComputeResources)(nil), // 3: dbaas.v1beta1.ComputeResources + (*Resources)(nil), // 4: dbaas.v1beta1.Resources + } +) + var file_managementpb_dbaas_dbaas_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/dbaas/dbaas.validator.pb.go b/api/managementpb/dbaas/dbaas.validator.pb.go index e977915211..db33c288d5 100644 --- a/api/managementpb/dbaas/dbaas.validator.pb.go +++ b/api/managementpb/dbaas/dbaas.validator.pb.go @@ -6,20 +6,25 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *RunningOperation) Validate() error { return nil } + func (this *ComputeResources) Validate() error { return nil } + func (this *Resources) Validate() error { return nil } diff --git a/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go b/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go index c1fb97fc46..994b10c916 100644 --- a/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/change_psmdb_components_parameters.go @@ -60,7 +60,6 @@ ChangePSMDBComponentsParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type ChangePSMDBComponentsParams struct { - // Body. Body ChangePSMDBComponentsBody @@ -130,7 +129,6 @@ func (o *ChangePSMDBComponentsParams) SetBody(body ChangePSMDBComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *ChangePSMDBComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go b/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go index d021b63e74..e0109e186b 100644 --- a/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/change_psmdb_components_responses.go @@ -60,12 +60,12 @@ type ChangePSMDBComponentsOK struct { func (o *ChangePSMDBComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePSMDB][%d] changePsmdbComponentsOk %+v", 200, o.Payload) } + func (o *ChangePSMDBComponentsOK) GetPayload() interface{} { return o.Payload } func (o *ChangePSMDBComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangePSMDBComponentsDefault) Code() int { func (o *ChangePSMDBComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePSMDB][%d] ChangePSMDBComponents default %+v", o._statusCode, o.Payload) } + func (o *ChangePSMDBComponentsDefault) GetPayload() *ChangePSMDBComponentsDefaultBody { return o.Payload } func (o *ChangePSMDBComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangePSMDBComponentsDefaultBody) // response payload @@ -121,7 +121,6 @@ ChangePSMDBComponentsBody change PSMDB components body swagger:model ChangePSMDBComponentsBody */ type ChangePSMDBComponentsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -177,7 +176,6 @@ func (o *ChangePSMDBComponentsBody) ContextValidate(ctx context.Context, formats } func (o *ChangePSMDBComponentsBody) contextValidateMongod(ctx context.Context, formats strfmt.Registry) error { - if o.Mongod != nil { if err := o.Mongod.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -215,7 +213,6 @@ ChangePSMDBComponentsDefaultBody change PSMDB components default body swagger:model ChangePSMDBComponentsDefaultBody */ type ChangePSMDBComponentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -281,9 +278,7 @@ func (o *ChangePSMDBComponentsDefaultBody) ContextValidate(ctx context.Context, } func (o *ChangePSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -294,7 +289,6 @@ func (o *ChangePSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -323,7 +317,6 @@ ChangePSMDBComponentsDefaultBodyDetailsItems0 change PSMDB components default bo swagger:model ChangePSMDBComponentsDefaultBodyDetailsItems0 */ type ChangePSMDBComponentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -361,7 +354,6 @@ ChangePSMDBComponentsParamsBodyMongod ChangeComponent contains fields to manage swagger:model ChangePSMDBComponentsParamsBodyMongod */ type ChangePSMDBComponentsParamsBodyMongod struct { - // default version DefaultVersion string `json:"default_version,omitempty"` @@ -424,9 +416,7 @@ func (o *ChangePSMDBComponentsParamsBodyMongod) ContextValidate(ctx context.Cont } func (o *ChangePSMDBComponentsParamsBodyMongod) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Versions); i++ { - if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -437,7 +427,6 @@ func (o *ChangePSMDBComponentsParamsBodyMongod) contextValidateVersions(ctx cont return err } } - } return nil @@ -466,7 +455,6 @@ ChangePSMDBComponentsParamsBodyMongodVersionsItems0 ComponentVersion contains op swagger:model ChangePSMDBComponentsParamsBodyMongodVersionsItems0 */ type ChangePSMDBComponentsParamsBodyMongodVersionsItems0 struct { - // version Version string `json:"version,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go b/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go index 92054ef87f..70fe656ec4 100644 --- a/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/change_pxc_components_parameters.go @@ -60,7 +60,6 @@ ChangePXCComponentsParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type ChangePXCComponentsParams struct { - // Body. Body ChangePXCComponentsBody @@ -130,7 +129,6 @@ func (o *ChangePXCComponentsParams) SetBody(body ChangePXCComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *ChangePXCComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go b/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go index 949b21c99d..859e985218 100644 --- a/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/change_pxc_components_responses.go @@ -60,12 +60,12 @@ type ChangePXCComponentsOK struct { func (o *ChangePXCComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePXC][%d] changePxcComponentsOk %+v", 200, o.Payload) } + func (o *ChangePXCComponentsOK) GetPayload() interface{} { return o.Payload } func (o *ChangePXCComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangePXCComponentsDefault) Code() int { func (o *ChangePXCComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/ChangePXC][%d] ChangePXCComponents default %+v", o._statusCode, o.Payload) } + func (o *ChangePXCComponentsDefault) GetPayload() *ChangePXCComponentsDefaultBody { return o.Payload } func (o *ChangePXCComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangePXCComponentsDefaultBody) // response payload @@ -121,7 +121,6 @@ ChangePXCComponentsBody change PXC components body swagger:model ChangePXCComponentsBody */ type ChangePXCComponentsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -237,7 +236,6 @@ func (o *ChangePXCComponentsBody) ContextValidate(ctx context.Context, formats s } func (o *ChangePXCComponentsBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -253,7 +251,6 @@ func (o *ChangePXCComponentsBody) contextValidateHaproxy(ctx context.Context, fo } func (o *ChangePXCComponentsBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -269,7 +266,6 @@ func (o *ChangePXCComponentsBody) contextValidateProxysql(ctx context.Context, f } func (o *ChangePXCComponentsBody) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -307,7 +303,6 @@ ChangePXCComponentsDefaultBody change PXC components default body swagger:model ChangePXCComponentsDefaultBody */ type ChangePXCComponentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -373,9 +368,7 @@ func (o *ChangePXCComponentsDefaultBody) ContextValidate(ctx context.Context, fo } func (o *ChangePXCComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -386,7 +379,6 @@ func (o *ChangePXCComponentsDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -415,7 +407,6 @@ ChangePXCComponentsDefaultBodyDetailsItems0 change PXC components default body d swagger:model ChangePXCComponentsDefaultBodyDetailsItems0 */ type ChangePXCComponentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -453,7 +444,6 @@ ChangePXCComponentsParamsBodyHaproxy ChangeComponent contains fields to manage c swagger:model ChangePXCComponentsParamsBodyHaproxy */ type ChangePXCComponentsParamsBodyHaproxy struct { - // default version DefaultVersion string `json:"default_version,omitempty"` @@ -516,9 +506,7 @@ func (o *ChangePXCComponentsParamsBodyHaproxy) ContextValidate(ctx context.Conte } func (o *ChangePXCComponentsParamsBodyHaproxy) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Versions); i++ { - if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -529,7 +517,6 @@ func (o *ChangePXCComponentsParamsBodyHaproxy) contextValidateVersions(ctx conte return err } } - } return nil @@ -558,7 +545,6 @@ ChangePXCComponentsParamsBodyHaproxyVersionsItems0 ComponentVersion contains ope swagger:model ChangePXCComponentsParamsBodyHaproxyVersionsItems0 */ type ChangePXCComponentsParamsBodyHaproxyVersionsItems0 struct { - // version Version string `json:"version,omitempty"` @@ -602,7 +588,6 @@ ChangePXCComponentsParamsBodyPXC ChangeComponent contains fields to manage compo swagger:model ChangePXCComponentsParamsBodyPXC */ type ChangePXCComponentsParamsBodyPXC struct { - // default version DefaultVersion string `json:"default_version,omitempty"` @@ -665,9 +650,7 @@ func (o *ChangePXCComponentsParamsBodyPXC) ContextValidate(ctx context.Context, } func (o *ChangePXCComponentsParamsBodyPXC) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Versions); i++ { - if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -678,7 +661,6 @@ func (o *ChangePXCComponentsParamsBodyPXC) contextValidateVersions(ctx context.C return err } } - } return nil @@ -707,7 +689,6 @@ ChangePXCComponentsParamsBodyPXCVersionsItems0 ComponentVersion contains operati swagger:model ChangePXCComponentsParamsBodyPXCVersionsItems0 */ type ChangePXCComponentsParamsBodyPXCVersionsItems0 struct { - // version Version string `json:"version,omitempty"` @@ -751,7 +732,6 @@ ChangePXCComponentsParamsBodyProxysql ChangeComponent contains fields to manage swagger:model ChangePXCComponentsParamsBodyProxysql */ type ChangePXCComponentsParamsBodyProxysql struct { - // default version DefaultVersion string `json:"default_version,omitempty"` @@ -814,9 +794,7 @@ func (o *ChangePXCComponentsParamsBodyProxysql) ContextValidate(ctx context.Cont } func (o *ChangePXCComponentsParamsBodyProxysql) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Versions); i++ { - if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -827,7 +805,6 @@ func (o *ChangePXCComponentsParamsBodyProxysql) contextValidateVersions(ctx cont return err } } - } return nil @@ -856,7 +833,6 @@ ChangePXCComponentsParamsBodyProxysqlVersionsItems0 ComponentVersion contains op swagger:model ChangePXCComponentsParamsBodyProxysqlVersionsItems0 */ type ChangePXCComponentsParamsBodyProxysqlVersionsItems0 struct { - // version Version string `json:"version,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go b/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go index e0d6087f93..dab12d01aa 100644 --- a/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go +++ b/api/managementpb/dbaas/json/client/components/check_for_operator_update_parameters.go @@ -60,7 +60,6 @@ CheckForOperatorUpdateParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type CheckForOperatorUpdateParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *CheckForOperatorUpdateParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *CheckForOperatorUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go b/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go index b7d90a126b..796a42c153 100644 --- a/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go +++ b/api/managementpb/dbaas/json/client/components/check_for_operator_update_responses.go @@ -60,12 +60,12 @@ type CheckForOperatorUpdateOK struct { func (o *CheckForOperatorUpdateOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/CheckForOperatorUpdate][%d] checkForOperatorUpdateOk %+v", 200, o.Payload) } + func (o *CheckForOperatorUpdateOK) GetPayload() *CheckForOperatorUpdateOKBody { return o.Payload } func (o *CheckForOperatorUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CheckForOperatorUpdateOKBody) // response payload @@ -102,12 +102,12 @@ func (o *CheckForOperatorUpdateDefault) Code() int { func (o *CheckForOperatorUpdateDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/CheckForOperatorUpdate][%d] CheckForOperatorUpdate default %+v", o._statusCode, o.Payload) } + func (o *CheckForOperatorUpdateDefault) GetPayload() *CheckForOperatorUpdateDefaultBody { return o.Payload } func (o *CheckForOperatorUpdateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CheckForOperatorUpdateDefaultBody) // response payload @@ -123,7 +123,6 @@ CheckForOperatorUpdateDefaultBody check for operator update default body swagger:model CheckForOperatorUpdateDefaultBody */ type CheckForOperatorUpdateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *CheckForOperatorUpdateDefaultBody) ContextValidate(ctx context.Context, } func (o *CheckForOperatorUpdateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *CheckForOperatorUpdateDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -231,7 +227,6 @@ CheckForOperatorUpdateDefaultBodyDetailsItems0 check for operator update default swagger:model CheckForOperatorUpdateDefaultBodyDetailsItems0 */ type CheckForOperatorUpdateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ CheckForOperatorUpdateOKBody check for operator update OK body swagger:model CheckForOperatorUpdateOKBody */ type CheckForOperatorUpdateOKBody struct { - // The cluster name is used as a key for this map, value contains components and their inforamtion about update. ClusterToComponents map[string]CheckForOperatorUpdateOKBodyClusterToComponentsAnon `json:"cluster_to_components,omitempty"` } @@ -329,15 +323,12 @@ func (o *CheckForOperatorUpdateOKBody) ContextValidate(ctx context.Context, form } func (o *CheckForOperatorUpdateOKBody) contextValidateClusterToComponents(ctx context.Context, formats strfmt.Registry) error { - for k := range o.ClusterToComponents { - if val, ok := o.ClusterToComponents[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -366,7 +357,6 @@ CheckForOperatorUpdateOKBodyClusterToComponentsAnon ComponentsUpdateInformation swagger:model CheckForOperatorUpdateOKBodyClusterToComponentsAnon */ type CheckForOperatorUpdateOKBodyClusterToComponentsAnon struct { - // component_to_update_information stores, under the name of the component, information about the update. // "pxc-operator", "psmdb-operator" are names used by backend for our operators. ComponentToUpdateInformation map[string]CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon `json:"component_to_update_information,omitempty"` @@ -427,15 +417,12 @@ func (o *CheckForOperatorUpdateOKBodyClusterToComponentsAnon) ContextValidate(ct } func (o *CheckForOperatorUpdateOKBodyClusterToComponentsAnon) contextValidateComponentToUpdateInformation(ctx context.Context, formats strfmt.Registry) error { - for k := range o.ComponentToUpdateInformation { - if val, ok := o.ComponentToUpdateInformation[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -464,7 +451,6 @@ CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationA swagger:model CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon */ type CheckForOperatorUpdateOKBodyClusterToComponentsAnonComponentToUpdateInformationAnon struct { - // available version AvailableVersion string `json:"available_version,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go b/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go index 65a0bddb25..0aab5f9ce7 100644 --- a/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/get_psmdb_components_parameters.go @@ -60,7 +60,6 @@ GetPSMDBComponentsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetPSMDBComponentsParams struct { - // Body. Body GetPSMDBComponentsBody @@ -130,7 +129,6 @@ func (o *GetPSMDBComponentsParams) SetBody(body GetPSMDBComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *GetPSMDBComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go b/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go index fb838b13d8..5af5569de2 100644 --- a/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/get_psmdb_components_responses.go @@ -60,12 +60,12 @@ type GetPSMDBComponentsOK struct { func (o *GetPSMDBComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPSMDB][%d] getPsmdbComponentsOk %+v", 200, o.Payload) } + func (o *GetPSMDBComponentsOK) GetPayload() *GetPSMDBComponentsOKBody { return o.Payload } func (o *GetPSMDBComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPSMDBComponentsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPSMDBComponentsDefault) Code() int { func (o *GetPSMDBComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPSMDB][%d] GetPSMDBComponents default %+v", o._statusCode, o.Payload) } + func (o *GetPSMDBComponentsDefault) GetPayload() *GetPSMDBComponentsDefaultBody { return o.Payload } func (o *GetPSMDBComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPSMDBComponentsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetPSMDBComponentsBody get PSMDB components body swagger:model GetPSMDBComponentsBody */ type GetPSMDBComponentsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -164,7 +163,6 @@ GetPSMDBComponentsDefaultBody get PSMDB components default body swagger:model GetPSMDBComponentsDefaultBody */ type GetPSMDBComponentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *GetPSMDBComponentsDefaultBody) ContextValidate(ctx context.Context, for } func (o *GetPSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *GetPSMDBComponentsDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -272,7 +267,6 @@ GetPSMDBComponentsDefaultBodyDetailsItems0 get PSMDB components default body det swagger:model GetPSMDBComponentsDefaultBodyDetailsItems0 */ type GetPSMDBComponentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ GetPSMDBComponentsOKBody get PSMDB components OK body swagger:model GetPSMDBComponentsOKBody */ type GetPSMDBComponentsOKBody struct { - // versions Versions []*GetPSMDBComponentsOKBodyVersionsItems0 `json:"versions"` } @@ -370,9 +363,7 @@ func (o *GetPSMDBComponentsOKBody) ContextValidate(ctx context.Context, formats } func (o *GetPSMDBComponentsOKBody) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Versions); i++ { - if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -383,7 +374,6 @@ func (o *GetPSMDBComponentsOKBody) contextValidateVersions(ctx context.Context, return err } } - } return nil @@ -412,7 +402,6 @@ GetPSMDBComponentsOKBodyVersionsItems0 OperatorVersion contains information abou swagger:model GetPSMDBComponentsOKBodyVersionsItems0 */ type GetPSMDBComponentsOKBodyVersionsItems0 struct { - // product Product string `json:"product,omitempty"` @@ -471,7 +460,6 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0) ContextValidate(ctx context.Con } func (o *GetPSMDBComponentsOKBodyVersionsItems0) contextValidateMatrix(ctx context.Context, formats strfmt.Registry) error { - if o.Matrix != nil { if err := o.Matrix.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -509,7 +497,6 @@ GetPSMDBComponentsOKBodyVersionsItems0Matrix Matrix contains all available compo swagger:model GetPSMDBComponentsOKBodyVersionsItems0Matrix */ type GetPSMDBComponentsOKBodyVersionsItems0Matrix struct { - // mongod Mongod map[string]GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon `json:"mongod,omitempty"` @@ -828,120 +815,96 @@ func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) ContextValidate(ctx conte } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateMongod(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Mongod { - if val, ok := o.Mongod[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - for k := range o.PXC { - if val, ok := o.PXC[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidatePMM(ctx context.Context, formats strfmt.Registry) error { - for k := range o.PMM { - if val, ok := o.PMM[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Proxysql { - if val, ok := o.Proxysql[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Haproxy { - if val, ok := o.Haproxy[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateBackup(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Backup { - if val, ok := o.Backup[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateOperator(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Operator { - if val, ok := o.Operator[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPSMDBComponentsOKBodyVersionsItems0Matrix) contextValidateLogCollector(ctx context.Context, formats strfmt.Registry) error { - for k := range o.LogCollector { - if val, ok := o.LogCollector[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -970,7 +933,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains inform swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixBackupAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1023,7 +985,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains infor swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixHaproxyAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1076,7 +1037,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixLogCollectorAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1129,7 +1089,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains inform swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixMongodAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1182,7 +1141,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains info swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixOperatorAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1235,7 +1193,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains informati swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixPMMAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1288,7 +1245,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains informati swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixPXCAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1341,7 +1297,6 @@ GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains info swagger:model GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon */ type GetPSMDBComponentsOKBodyVersionsItems0MatrixProxysqlAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go b/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go index 07c76365fb..ee70826a03 100644 --- a/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go +++ b/api/managementpb/dbaas/json/client/components/get_pxc_components_parameters.go @@ -60,7 +60,6 @@ GetPXCComponentsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetPXCComponentsParams struct { - // Body. Body GetPXCComponentsBody @@ -130,7 +129,6 @@ func (o *GetPXCComponentsParams) SetBody(body GetPXCComponentsBody) { // WriteToRequest writes these params to a swagger request func (o *GetPXCComponentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go b/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go index 266fa1b342..cd2e68f28c 100644 --- a/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go +++ b/api/managementpb/dbaas/json/client/components/get_pxc_components_responses.go @@ -60,12 +60,12 @@ type GetPXCComponentsOK struct { func (o *GetPXCComponentsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPXC][%d] getPxcComponentsOk %+v", 200, o.Payload) } + func (o *GetPXCComponentsOK) GetPayload() *GetPXCComponentsOKBody { return o.Payload } func (o *GetPXCComponentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPXCComponentsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPXCComponentsDefault) Code() int { func (o *GetPXCComponentsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/GetPXC][%d] GetPXCComponents default %+v", o._statusCode, o.Payload) } + func (o *GetPXCComponentsDefault) GetPayload() *GetPXCComponentsDefaultBody { return o.Payload } func (o *GetPXCComponentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPXCComponentsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetPXCComponentsBody get PXC components body swagger:model GetPXCComponentsBody */ type GetPXCComponentsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -164,7 +163,6 @@ GetPXCComponentsDefaultBody get PXC components default body swagger:model GetPXCComponentsDefaultBody */ type GetPXCComponentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *GetPXCComponentsDefaultBody) ContextValidate(ctx context.Context, forma } func (o *GetPXCComponentsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *GetPXCComponentsDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -272,7 +267,6 @@ GetPXCComponentsDefaultBodyDetailsItems0 get PXC components default body details swagger:model GetPXCComponentsDefaultBodyDetailsItems0 */ type GetPXCComponentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ GetPXCComponentsOKBody get PXC components OK body swagger:model GetPXCComponentsOKBody */ type GetPXCComponentsOKBody struct { - // versions Versions []*GetPXCComponentsOKBodyVersionsItems0 `json:"versions"` } @@ -370,9 +363,7 @@ func (o *GetPXCComponentsOKBody) ContextValidate(ctx context.Context, formats st } func (o *GetPXCComponentsOKBody) contextValidateVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Versions); i++ { - if o.Versions[i] != nil { if err := o.Versions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -383,7 +374,6 @@ func (o *GetPXCComponentsOKBody) contextValidateVersions(ctx context.Context, fo return err } } - } return nil @@ -412,7 +402,6 @@ GetPXCComponentsOKBodyVersionsItems0 OperatorVersion contains information about swagger:model GetPXCComponentsOKBodyVersionsItems0 */ type GetPXCComponentsOKBodyVersionsItems0 struct { - // product Product string `json:"product,omitempty"` @@ -471,7 +460,6 @@ func (o *GetPXCComponentsOKBodyVersionsItems0) ContextValidate(ctx context.Conte } func (o *GetPXCComponentsOKBodyVersionsItems0) contextValidateMatrix(ctx context.Context, formats strfmt.Registry) error { - if o.Matrix != nil { if err := o.Matrix.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -509,7 +497,6 @@ GetPXCComponentsOKBodyVersionsItems0Matrix Matrix contains all available compone swagger:model GetPXCComponentsOKBodyVersionsItems0Matrix */ type GetPXCComponentsOKBodyVersionsItems0Matrix struct { - // mongod Mongod map[string]GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon `json:"mongod,omitempty"` @@ -828,120 +815,96 @@ func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) ContextValidate(ctx context } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateMongod(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Mongod { - if val, ok := o.Mongod[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - for k := range o.PXC { - if val, ok := o.PXC[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidatePMM(ctx context.Context, formats strfmt.Registry) error { - for k := range o.PMM { - if val, ok := o.PMM[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Proxysql { - if val, ok := o.Proxysql[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Haproxy { - if val, ok := o.Haproxy[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateBackup(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Backup { - if val, ok := o.Backup[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateOperator(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Operator { - if val, ok := o.Operator[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetPXCComponentsOKBodyVersionsItems0Matrix) contextValidateLogCollector(ctx context.Context, formats strfmt.Registry) error { - for k := range o.LogCollector { - if val, ok := o.LogCollector[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -970,7 +933,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon Component contains informat swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixBackupAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1023,7 +985,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon Component contains informa swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixHaproxyAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1076,7 +1037,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon Component contains in swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixLogCollectorAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1129,7 +1089,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon Component contains informat swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixMongodAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1182,7 +1141,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon Component contains inform swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixOperatorAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1235,7 +1193,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon Component contains information swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixPMMAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1288,7 +1245,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon Component contains information swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixPXCAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` @@ -1341,7 +1297,6 @@ GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon Component contains inform swagger:model GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon */ type GetPXCComponentsOKBodyVersionsItems0MatrixProxysqlAnon struct { - // image path ImagePath string `json:"image_path,omitempty"` diff --git a/api/managementpb/dbaas/json/client/components/install_operator_parameters.go b/api/managementpb/dbaas/json/client/components/install_operator_parameters.go index 17f529001f..87b1582722 100644 --- a/api/managementpb/dbaas/json/client/components/install_operator_parameters.go +++ b/api/managementpb/dbaas/json/client/components/install_operator_parameters.go @@ -60,7 +60,6 @@ InstallOperatorParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type InstallOperatorParams struct { - // Body. Body InstallOperatorBody @@ -130,7 +129,6 @@ func (o *InstallOperatorParams) SetBody(body InstallOperatorBody) { // WriteToRequest writes these params to a swagger request func (o *InstallOperatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/components/install_operator_responses.go b/api/managementpb/dbaas/json/client/components/install_operator_responses.go index f5992f5b5b..b9bb44b457 100644 --- a/api/managementpb/dbaas/json/client/components/install_operator_responses.go +++ b/api/managementpb/dbaas/json/client/components/install_operator_responses.go @@ -62,12 +62,12 @@ type InstallOperatorOK struct { func (o *InstallOperatorOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/InstallOperator][%d] installOperatorOk %+v", 200, o.Payload) } + func (o *InstallOperatorOK) GetPayload() *InstallOperatorOKBody { return o.Payload } func (o *InstallOperatorOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(InstallOperatorOKBody) // response payload @@ -104,12 +104,12 @@ func (o *InstallOperatorDefault) Code() int { func (o *InstallOperatorDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Components/InstallOperator][%d] InstallOperator default %+v", o._statusCode, o.Payload) } + func (o *InstallOperatorDefault) GetPayload() *InstallOperatorDefaultBody { return o.Payload } func (o *InstallOperatorDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(InstallOperatorDefaultBody) // response payload @@ -125,7 +125,6 @@ InstallOperatorBody install operator body swagger:model InstallOperatorBody */ type InstallOperatorBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -169,7 +168,6 @@ InstallOperatorDefaultBody install operator default body swagger:model InstallOperatorDefaultBody */ type InstallOperatorDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -235,9 +233,7 @@ func (o *InstallOperatorDefaultBody) ContextValidate(ctx context.Context, format } func (o *InstallOperatorDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -248,7 +244,6 @@ func (o *InstallOperatorDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -277,7 +272,6 @@ InstallOperatorDefaultBodyDetailsItems0 install operator default body details it swagger:model InstallOperatorDefaultBodyDetailsItems0 */ type InstallOperatorDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -315,7 +309,6 @@ InstallOperatorOKBody install operator OK body swagger:model InstallOperatorOKBody */ type InstallOperatorOKBody struct { - // OperatorsStatus defines status of operators installed in Kubernetes cluster. // // - OPERATORS_STATUS_INVALID: OPERATORS_STATUS_INVALID represents unknown state. diff --git a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go index e7bf834837..0f817bf42e 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_parameters.go @@ -60,7 +60,6 @@ DeleteDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteDBClusterParams struct { - // Body. Body DeleteDBClusterBody @@ -130,7 +129,6 @@ func (o *DeleteDBClusterParams) SetBody(body DeleteDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go index 1b3a722761..dded2a9a91 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/delete_db_cluster_responses.go @@ -62,12 +62,12 @@ type DeleteDBClusterOK struct { func (o *DeleteDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Delete][%d] deleteDbClusterOk %+v", 200, o.Payload) } + func (o *DeleteDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *DeleteDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *DeleteDBClusterDefault) Code() int { func (o *DeleteDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Delete][%d] DeleteDBCluster default %+v", o._statusCode, o.Payload) } + func (o *DeleteDBClusterDefault) GetPayload() *DeleteDBClusterDefaultBody { return o.Payload } func (o *DeleteDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteDBClusterDefaultBody) // response payload @@ -123,7 +123,6 @@ DeleteDBClusterBody delete DB cluster body swagger:model DeleteDBClusterBody */ type DeleteDBClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -226,7 +225,6 @@ DeleteDBClusterDefaultBody delete DB cluster default body swagger:model DeleteDBClusterDefaultBody */ type DeleteDBClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -292,9 +290,7 @@ func (o *DeleteDBClusterDefaultBody) ContextValidate(ctx context.Context, format } func (o *DeleteDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -305,7 +301,6 @@ func (o *DeleteDBClusterDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -334,7 +329,6 @@ DeleteDBClusterDefaultBodyDetailsItems0 delete DB cluster default body details i swagger:model DeleteDBClusterDefaultBodyDetailsItems0 */ type DeleteDBClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go index f9c66e658d..ec41e02f95 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_parameters.go @@ -60,7 +60,6 @@ ListDBClustersParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListDBClustersParams struct { - // Body. Body ListDBClustersBody @@ -130,7 +129,6 @@ func (o *ListDBClustersParams) SetBody(body ListDBClustersBody) { // WriteToRequest writes these params to a swagger request func (o *ListDBClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go index 60f0b14d60..3c14d3c057 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/list_db_clusters_responses.go @@ -62,12 +62,12 @@ type ListDBClustersOK struct { func (o *ListDBClustersOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/List][%d] listDbClustersOk %+v", 200, o.Payload) } + func (o *ListDBClustersOK) GetPayload() *ListDBClustersOKBody { return o.Payload } func (o *ListDBClustersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListDBClustersOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListDBClustersDefault) Code() int { func (o *ListDBClustersDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/List][%d] ListDBClusters default %+v", o._statusCode, o.Payload) } + func (o *ListDBClustersDefault) GetPayload() *ListDBClustersDefaultBody { return o.Payload } func (o *ListDBClustersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListDBClustersDefaultBody) // response payload @@ -125,7 +125,6 @@ ListDBClustersBody list DB clusters body swagger:model ListDBClustersBody */ type ListDBClustersBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` } @@ -163,7 +162,6 @@ ListDBClustersDefaultBody list DB clusters default body swagger:model ListDBClustersDefaultBody */ type ListDBClustersDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -229,9 +227,7 @@ func (o *ListDBClustersDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListDBClustersDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -242,7 +238,6 @@ func (o *ListDBClustersDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -271,7 +266,6 @@ ListDBClustersDefaultBodyDetailsItems0 list DB clusters default body details ite swagger:model ListDBClustersDefaultBodyDetailsItems0 */ type ListDBClustersDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -309,7 +303,6 @@ ListDBClustersOKBody list DB clusters OK body swagger:model ListDBClustersOKBody */ type ListDBClustersOKBody struct { - // PXC clusters information. PXCClusters []*ListDBClustersOKBodyPXCClustersItems0 `json:"pxc_clusters"` @@ -406,9 +399,7 @@ func (o *ListDBClustersOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ListDBClustersOKBody) contextValidatePXCClusters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.PXCClusters); i++ { - if o.PXCClusters[i] != nil { if err := o.PXCClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -419,16 +410,13 @@ func (o *ListDBClustersOKBody) contextValidatePXCClusters(ctx context.Context, f return err } } - } return nil } func (o *ListDBClustersOKBody) contextValidatePSMDBClusters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.PSMDBClusters); i++ { - if o.PSMDBClusters[i] != nil { if err := o.PSMDBClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -439,7 +427,6 @@ func (o *ListDBClustersOKBody) contextValidatePSMDBClusters(ctx context.Context, return err } } - } return nil @@ -468,7 +455,6 @@ ListDBClustersOKBodyPSMDBClustersItems0 PSMDBCluster represents PSMDB cluster in swagger:model ListDBClustersOKBodyPSMDBClustersItems0 */ type ListDBClustersOKBodyPSMDBClustersItems0 struct { - // Cluster name. Name string `json:"name,omitempty"` @@ -638,7 +624,6 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0) ContextValidate(ctx context.Co } func (o *ListDBClustersOKBodyPSMDBClustersItems0) contextValidateOperation(ctx context.Context, formats strfmt.Registry) error { - if o.Operation != nil { if err := o.Operation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -654,7 +639,6 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0) contextValidateOperation(ctx c } func (o *ListDBClustersOKBodyPSMDBClustersItems0) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -692,7 +676,6 @@ ListDBClustersOKBodyPSMDBClustersItems0Operation RunningOperation respresents a swagger:model ListDBClustersOKBodyPSMDBClustersItems0Operation */ type ListDBClustersOKBodyPSMDBClustersItems0Operation struct { - // Finished steps of the operaion; can decrease or increase compared to the previous value. FinishedSteps int32 `json:"finished_steps,omitempty"` @@ -736,7 +719,6 @@ ListDBClustersOKBodyPSMDBClustersItems0Params PSMDBClusterParams represents PSMD swagger:model ListDBClustersOKBodyPSMDBClustersItems0Params */ type ListDBClustersOKBodyPSMDBClustersItems0Params struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -795,7 +777,6 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0Params) ContextValidate(ctx cont } func (o *ListDBClustersOKBodyPSMDBClustersItems0Params) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { - if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -834,7 +815,6 @@ ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset ReplicaSet container par swagger:model ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset */ type ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset struct { - // Disk size in bytes. DiskSize string `json:"disk_size,omitempty"` @@ -890,7 +870,6 @@ func (o *ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset) ContextValidat } func (o *ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -928,7 +907,6 @@ ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources ComputeR swagger:model ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources */ type ListDBClustersOKBodyPSMDBClustersItems0ParamsReplicasetComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -969,7 +947,6 @@ ListDBClustersOKBodyPXCClustersItems0 PXCCluster represents PXC cluster informat swagger:model ListDBClustersOKBodyPXCClustersItems0 */ type ListDBClustersOKBodyPXCClustersItems0 struct { - // Cluster name. Name string `json:"name,omitempty"` @@ -1139,7 +1116,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0) ContextValidate(ctx context.Cont } func (o *ListDBClustersOKBodyPXCClustersItems0) contextValidateOperation(ctx context.Context, formats strfmt.Registry) error { - if o.Operation != nil { if err := o.Operation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1155,7 +1131,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0) contextValidateOperation(ctx con } func (o *ListDBClustersOKBodyPXCClustersItems0) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1193,7 +1168,6 @@ ListDBClustersOKBodyPXCClustersItems0Operation RunningOperation respresents a lo swagger:model ListDBClustersOKBodyPXCClustersItems0Operation */ type ListDBClustersOKBodyPXCClustersItems0Operation struct { - // Finished steps of the operaion; can decrease or increase compared to the previous value. FinishedSteps int32 `json:"finished_steps,omitempty"` @@ -1237,7 +1211,6 @@ ListDBClustersOKBodyPXCClustersItems0Params PXCClusterParams represents PXC clus swagger:model ListDBClustersOKBodyPXCClustersItems0Params */ type ListDBClustersOKBodyPXCClustersItems0Params struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -1353,7 +1326,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) ContextValidate(ctx contex } func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1369,7 +1341,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateHaproxy(ctx } func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1385,7 +1356,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidateProxysql(ct } func (o *ListDBClustersOKBodyPXCClustersItems0Params) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1424,7 +1394,6 @@ ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy HAProxy container parameters. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy */ type ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy struct { - // Docker image used for HAProxy. Image string `json:"image,omitempty"` @@ -1480,7 +1449,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy) ContextValidate(ctx } func (o *ListDBClustersOKBodyPXCClustersItems0ParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1518,7 +1486,6 @@ ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources ComputeResour swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsHaproxyComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -1560,7 +1527,6 @@ ListDBClustersOKBodyPXCClustersItems0ParamsPXC PXC container parameters. swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsPXC */ type ListDBClustersOKBodyPXCClustersItems0ParamsPXC struct { - // Docker image used for PXC. Image string `json:"image,omitempty"` @@ -1619,7 +1585,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsPXC) ContextValidate(ctx con } func (o *ListDBClustersOKBodyPXCClustersItems0ParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1657,7 +1622,6 @@ ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources ComputeResources swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsPXCComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -1699,7 +1663,6 @@ ListDBClustersOKBodyPXCClustersItems0ParamsProxysql ProxySQL container parameter swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsProxysql */ type ListDBClustersOKBodyPXCClustersItems0ParamsProxysql struct { - // Docker image used for ProxySQL. Image string `json:"image,omitempty"` @@ -1758,7 +1721,6 @@ func (o *ListDBClustersOKBodyPXCClustersItems0ParamsProxysql) ContextValidate(ct } func (o *ListDBClustersOKBodyPXCClustersItems0ParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1796,7 +1758,6 @@ ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources ComputeResou swagger:model ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources */ type ListDBClustersOKBodyPXCClustersItems0ParamsProxysqlComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go index 83cbb17fa4..43b6755cc5 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_parameters.go @@ -60,7 +60,6 @@ RestartDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RestartDBClusterParams struct { - // Body. Body RestartDBClusterBody @@ -130,7 +129,6 @@ func (o *RestartDBClusterParams) SetBody(body RestartDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *RestartDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go index 46e5a865f7..99bd494ffb 100644 --- a/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/db_clusters/restart_db_cluster_responses.go @@ -62,12 +62,12 @@ type RestartDBClusterOK struct { func (o *RestartDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Restart][%d] restartDbClusterOk %+v", 200, o.Payload) } + func (o *RestartDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *RestartDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *RestartDBClusterDefault) Code() int { func (o *RestartDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/DBClusters/Restart][%d] RestartDBCluster default %+v", o._statusCode, o.Payload) } + func (o *RestartDBClusterDefault) GetPayload() *RestartDBClusterDefaultBody { return o.Payload } func (o *RestartDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RestartDBClusterDefaultBody) // response payload @@ -123,7 +123,6 @@ RestartDBClusterBody restart DB cluster body swagger:model RestartDBClusterBody */ type RestartDBClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -226,7 +225,6 @@ RestartDBClusterDefaultBody restart DB cluster default body swagger:model RestartDBClusterDefaultBody */ type RestartDBClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -292,9 +290,7 @@ func (o *RestartDBClusterDefaultBody) ContextValidate(ctx context.Context, forma } func (o *RestartDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -305,7 +301,6 @@ func (o *RestartDBClusterDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -334,7 +329,6 @@ RestartDBClusterDefaultBodyDetailsItems0 restart DB cluster default body details swagger:model RestartDBClusterDefaultBodyDetailsItems0 */ type RestartDBClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go index d319e1c01f..ffa4c86bad 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_parameters.go @@ -60,7 +60,6 @@ GetKubernetesClusterParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type GetKubernetesClusterParams struct { - // Body. Body GetKubernetesClusterBody @@ -130,7 +129,6 @@ func (o *GetKubernetesClusterParams) SetBody(body GetKubernetesClusterBody) { // WriteToRequest writes these params to a swagger request func (o *GetKubernetesClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go index f138c4249d..28755b99e1 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_kubernetes_cluster_responses.go @@ -60,12 +60,12 @@ type GetKubernetesClusterOK struct { func (o *GetKubernetesClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Get][%d] getKubernetesClusterOk %+v", 200, o.Payload) } + func (o *GetKubernetesClusterOK) GetPayload() *GetKubernetesClusterOKBody { return o.Payload } func (o *GetKubernetesClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetKubernetesClusterOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetKubernetesClusterDefault) Code() int { func (o *GetKubernetesClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Get][%d] GetKubernetesCluster default %+v", o._statusCode, o.Payload) } + func (o *GetKubernetesClusterDefault) GetPayload() *GetKubernetesClusterDefaultBody { return o.Payload } func (o *GetKubernetesClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetKubernetesClusterDefaultBody) // response payload @@ -123,7 +123,6 @@ GetKubernetesClusterBody get kubernetes cluster body swagger:model GetKubernetesClusterBody */ type GetKubernetesClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` } @@ -161,7 +160,6 @@ GetKubernetesClusterDefaultBody get kubernetes cluster default body swagger:model GetKubernetesClusterDefaultBody */ type GetKubernetesClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *GetKubernetesClusterDefaultBody) ContextValidate(ctx context.Context, f } func (o *GetKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *GetKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -269,7 +264,6 @@ GetKubernetesClusterDefaultBodyDetailsItems0 get kubernetes cluster default body swagger:model GetKubernetesClusterDefaultBodyDetailsItems0 */ type GetKubernetesClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ GetKubernetesClusterOKBody get kubernetes cluster OK body swagger:model GetKubernetesClusterOKBody */ type GetKubernetesClusterOKBody struct { - // kube auth KubeAuth *GetKubernetesClusterOKBodyKubeAuth `json:"kube_auth,omitempty"` } @@ -360,7 +353,6 @@ func (o *GetKubernetesClusterOKBody) ContextValidate(ctx context.Context, format } func (o *GetKubernetesClusterOKBody) contextValidateKubeAuth(ctx context.Context, formats strfmt.Registry) error { - if o.KubeAuth != nil { if err := o.KubeAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -398,7 +390,6 @@ GetKubernetesClusterOKBodyKubeAuth KubeAuth represents Kubernetes / kubectl auth swagger:model GetKubernetesClusterOKBodyKubeAuth */ type GetKubernetesClusterOKBodyKubeAuth struct { - // Kubeconfig file content. Kubeconfig string `json:"kubeconfig,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go index 8cce9b49e0..c973499d64 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_resources_parameters.go @@ -60,7 +60,6 @@ GetResourcesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetResourcesParams struct { - // Body. Body GetResourcesBody @@ -130,7 +129,6 @@ func (o *GetResourcesParams) SetBody(body GetResourcesBody) { // WriteToRequest writes these params to a swagger request func (o *GetResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go b/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go index 8a9ffad9da..0c057ab4cd 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/get_resources_responses.go @@ -60,12 +60,12 @@ type GetResourcesOK struct { func (o *GetResourcesOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Resources/Get][%d] getResourcesOk %+v", 200, o.Payload) } + func (o *GetResourcesOK) GetPayload() *GetResourcesOKBody { return o.Payload } func (o *GetResourcesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetResourcesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetResourcesDefault) Code() int { func (o *GetResourcesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Resources/Get][%d] GetResources default %+v", o._statusCode, o.Payload) } + func (o *GetResourcesDefault) GetPayload() *GetResourcesDefaultBody { return o.Payload } func (o *GetResourcesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetResourcesDefaultBody) // response payload @@ -123,7 +123,6 @@ GetResourcesBody get resources body swagger:model GetResourcesBody */ type GetResourcesBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` } @@ -161,7 +160,6 @@ GetResourcesDefaultBody get resources default body swagger:model GetResourcesDefaultBody */ type GetResourcesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *GetResourcesDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetResourcesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *GetResourcesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -269,7 +264,6 @@ GetResourcesDefaultBodyDetailsItems0 get resources default body details items0 swagger:model GetResourcesDefaultBodyDetailsItems0 */ type GetResourcesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ GetResourcesOKBody get resources OK body swagger:model GetResourcesOKBody */ type GetResourcesOKBody struct { - // all All *GetResourcesOKBodyAll `json:"all,omitempty"` @@ -390,7 +383,6 @@ func (o *GetResourcesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetResourcesOKBody) contextValidateAll(ctx context.Context, formats strfmt.Registry) error { - if o.All != nil { if err := o.All.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -406,7 +398,6 @@ func (o *GetResourcesOKBody) contextValidateAll(ctx context.Context, formats str } func (o *GetResourcesOKBody) contextValidateAvailable(ctx context.Context, formats strfmt.Registry) error { - if o.Available != nil { if err := o.Available.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -444,7 +435,6 @@ GetResourcesOKBodyAll Resources contains Kubernetes cluster resources. swagger:model GetResourcesOKBodyAll */ type GetResourcesOKBodyAll struct { - // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` @@ -489,7 +479,6 @@ GetResourcesOKBodyAvailable Resources contains Kubernetes cluster resources. swagger:model GetResourcesOKBodyAvailable */ type GetResourcesOKBodyAvailable struct { - // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` diff --git a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go index 5861f6a5b8..fc2546bdc7 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_parameters.go @@ -60,7 +60,6 @@ ListKubernetesClustersParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ListKubernetesClustersParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListKubernetesClustersParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListKubernetesClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go index aeb2c7de74..ebb6c37919 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/list_kubernetes_clusters_responses.go @@ -62,12 +62,12 @@ type ListKubernetesClustersOK struct { func (o *ListKubernetesClustersOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/List][%d] listKubernetesClustersOk %+v", 200, o.Payload) } + func (o *ListKubernetesClustersOK) GetPayload() *ListKubernetesClustersOKBody { return o.Payload } func (o *ListKubernetesClustersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListKubernetesClustersOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListKubernetesClustersDefault) Code() int { func (o *ListKubernetesClustersDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/List][%d] ListKubernetesClusters default %+v", o._statusCode, o.Payload) } + func (o *ListKubernetesClustersDefault) GetPayload() *ListKubernetesClustersDefaultBody { return o.Payload } func (o *ListKubernetesClustersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListKubernetesClustersDefaultBody) // response payload @@ -125,7 +125,6 @@ ListKubernetesClustersDefaultBody list kubernetes clusters default body swagger:model ListKubernetesClustersDefaultBody */ type ListKubernetesClustersDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *ListKubernetesClustersDefaultBody) ContextValidate(ctx context.Context, } func (o *ListKubernetesClustersDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *ListKubernetesClustersDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -233,7 +229,6 @@ ListKubernetesClustersDefaultBodyDetailsItems0 list kubernetes clusters default swagger:model ListKubernetesClustersDefaultBodyDetailsItems0 */ type ListKubernetesClustersDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ ListKubernetesClustersOKBody list kubernetes clusters OK body swagger:model ListKubernetesClustersOKBody */ type ListKubernetesClustersOKBody struct { - // Kubernetes clusters. KubernetesClusters []*ListKubernetesClustersOKBodyKubernetesClustersItems0 `json:"kubernetes_clusters"` } @@ -331,9 +325,7 @@ func (o *ListKubernetesClustersOKBody) ContextValidate(ctx context.Context, form } func (o *ListKubernetesClustersOKBody) contextValidateKubernetesClusters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.KubernetesClusters); i++ { - if o.KubernetesClusters[i] != nil { if err := o.KubernetesClusters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,7 +336,6 @@ func (o *ListKubernetesClustersOKBody) contextValidateKubernetesClusters(ctx con return err } } - } return nil @@ -374,7 +365,6 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0 Cluster contains public inf swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0 */ type ListKubernetesClustersOKBodyKubernetesClustersItems0 struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -487,7 +477,6 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0) ContextValidate(c } func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0) contextValidateOperators(ctx context.Context, formats strfmt.Registry) error { - if o.Operators != nil { if err := o.Operators.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -525,7 +514,6 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0Operators Operators contains swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0Operators */ type ListKubernetesClustersOKBodyKubernetesClustersItems0Operators struct { - // psmdb PSMDB *ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB `json:"psmdb,omitempty"` @@ -608,7 +596,6 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) ContextV } func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) contextValidatePSMDB(ctx context.Context, formats strfmt.Registry) error { - if o.PSMDB != nil { if err := o.PSMDB.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -624,7 +611,6 @@ func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) contextV } func (o *ListKubernetesClustersOKBodyKubernetesClustersItems0Operators) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -662,7 +648,6 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB Operator cont swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB */ type ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPSMDB struct { - // OperatorsStatus defines status of operators installed in Kubernetes cluster. // // - OPERATORS_STATUS_INVALID: OPERATORS_STATUS_INVALID represents unknown state. @@ -766,7 +751,6 @@ ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC Operator contai swagger:model ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC */ type ListKubernetesClustersOKBodyKubernetesClustersItems0OperatorsPXC struct { - // OperatorsStatus defines status of operators installed in Kubernetes cluster. // // - OPERATORS_STATUS_INVALID: OPERATORS_STATUS_INVALID represents unknown state. diff --git a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go index db6f0af6f2..c672e66248 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_parameters.go @@ -60,7 +60,6 @@ RegisterKubernetesClusterParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type RegisterKubernetesClusterParams struct { - // Body. Body RegisterKubernetesClusterBody @@ -130,7 +129,6 @@ func (o *RegisterKubernetesClusterParams) SetBody(body RegisterKubernetesCluster // WriteToRequest writes these params to a swagger request func (o *RegisterKubernetesClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go index c4fcefb50b..019fabe844 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/register_kubernetes_cluster_responses.go @@ -60,12 +60,12 @@ type RegisterKubernetesClusterOK struct { func (o *RegisterKubernetesClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Register][%d] registerKubernetesClusterOk %+v", 200, o.Payload) } + func (o *RegisterKubernetesClusterOK) GetPayload() interface{} { return o.Payload } func (o *RegisterKubernetesClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RegisterKubernetesClusterDefault) Code() int { func (o *RegisterKubernetesClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Register][%d] RegisterKubernetesCluster default %+v", o._statusCode, o.Payload) } + func (o *RegisterKubernetesClusterDefault) GetPayload() *RegisterKubernetesClusterDefaultBody { return o.Payload } func (o *RegisterKubernetesClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RegisterKubernetesClusterDefaultBody) // response payload @@ -121,7 +121,6 @@ RegisterKubernetesClusterBody register kubernetes cluster body swagger:model RegisterKubernetesClusterBody */ type RegisterKubernetesClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -183,7 +182,6 @@ func (o *RegisterKubernetesClusterBody) ContextValidate(ctx context.Context, for } func (o *RegisterKubernetesClusterBody) contextValidateKubeAuth(ctx context.Context, formats strfmt.Registry) error { - if o.KubeAuth != nil { if err := o.KubeAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -221,7 +219,6 @@ RegisterKubernetesClusterDefaultBody register kubernetes cluster default body swagger:model RegisterKubernetesClusterDefaultBody */ type RegisterKubernetesClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -287,9 +284,7 @@ func (o *RegisterKubernetesClusterDefaultBody) ContextValidate(ctx context.Conte } func (o *RegisterKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -300,7 +295,6 @@ func (o *RegisterKubernetesClusterDefaultBody) contextValidateDetails(ctx contex return err } } - } return nil @@ -329,7 +323,6 @@ RegisterKubernetesClusterDefaultBodyDetailsItems0 register kubernetes cluster de swagger:model RegisterKubernetesClusterDefaultBodyDetailsItems0 */ type RegisterKubernetesClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -367,7 +360,6 @@ RegisterKubernetesClusterParamsBodyKubeAuth KubeAuth represents Kubernetes / kub swagger:model RegisterKubernetesClusterParamsBodyKubeAuth */ type RegisterKubernetesClusterParamsBodyKubeAuth struct { - // Kubeconfig file content. Kubeconfig string `json:"kubeconfig,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go index c5ad0034e6..bc66be521f 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_parameters.go @@ -60,7 +60,6 @@ UnregisterKubernetesClusterParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type UnregisterKubernetesClusterParams struct { - // Body. Body UnregisterKubernetesClusterBody @@ -130,7 +129,6 @@ func (o *UnregisterKubernetesClusterParams) SetBody(body UnregisterKubernetesClu // WriteToRequest writes these params to a swagger request func (o *UnregisterKubernetesClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go index c0339820ed..2429e1e295 100644 --- a/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/kubernetes/unregister_kubernetes_cluster_responses.go @@ -60,12 +60,12 @@ type UnregisterKubernetesClusterOK struct { func (o *UnregisterKubernetesClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Unregister][%d] unregisterKubernetesClusterOk %+v", 200, o.Payload) } + func (o *UnregisterKubernetesClusterOK) GetPayload() interface{} { return o.Payload } func (o *UnregisterKubernetesClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UnregisterKubernetesClusterDefault) Code() int { func (o *UnregisterKubernetesClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/Kubernetes/Unregister][%d] UnregisterKubernetesCluster default %+v", o._statusCode, o.Payload) } + func (o *UnregisterKubernetesClusterDefault) GetPayload() *UnregisterKubernetesClusterDefaultBody { return o.Payload } func (o *UnregisterKubernetesClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UnregisterKubernetesClusterDefaultBody) // response payload @@ -121,7 +121,6 @@ UnregisterKubernetesClusterBody unregister kubernetes cluster body swagger:model UnregisterKubernetesClusterBody */ type UnregisterKubernetesClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -163,7 +162,6 @@ UnregisterKubernetesClusterDefaultBody unregister kubernetes cluster default bod swagger:model UnregisterKubernetesClusterDefaultBody */ type UnregisterKubernetesClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -229,9 +227,7 @@ func (o *UnregisterKubernetesClusterDefaultBody) ContextValidate(ctx context.Con } func (o *UnregisterKubernetesClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -242,7 +238,6 @@ func (o *UnregisterKubernetesClusterDefaultBody) contextValidateDetails(ctx cont return err } } - } return nil @@ -271,7 +266,6 @@ UnregisterKubernetesClusterDefaultBodyDetailsItems0 unregister kubernetes cluste swagger:model UnregisterKubernetesClusterDefaultBodyDetailsItems0 */ type UnregisterKubernetesClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go b/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go index 15098cee3e..66f2f1ca9d 100644 --- a/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go +++ b/api/managementpb/dbaas/json/client/logs_api/get_logs_parameters.go @@ -60,7 +60,6 @@ GetLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsParams struct { - // Body. Body GetLogsBody @@ -130,7 +129,6 @@ func (o *GetLogsParams) SetBody(body GetLogsBody) { // WriteToRequest writes these params to a swagger request func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go b/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go index 26386663d3..21d5f7525a 100644 --- a/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go +++ b/api/managementpb/dbaas/json/client/logs_api/get_logs_responses.go @@ -60,12 +60,12 @@ type GetLogsOK struct { func (o *GetLogsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/GetLogs][%d] getLogsOk %+v", 200, o.Payload) } + func (o *GetLogsOK) GetPayload() *GetLogsOKBody { return o.Payload } func (o *GetLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetLogsDefault) Code() int { func (o *GetLogsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/GetLogs][%d] GetLogs default %+v", o._statusCode, o.Payload) } + func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody { return o.Payload } func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetLogsBody get logs body swagger:model GetLogsBody */ type GetLogsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -164,7 +163,6 @@ GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *GetLogsDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -272,7 +267,6 @@ GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { - // Log represents list of logs. Each entry contains either container's logs or, // when container field is empty, pod's events. Logs []*GetLogsOKBodyLogsItems0 `json:"logs"` @@ -371,9 +364,7 @@ func (o *GetLogsOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Logs); i++ { - if o.Logs[i] != nil { if err := o.Logs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -384,7 +375,6 @@ func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt. return err } } - } return nil @@ -414,7 +404,6 @@ GetLogsOKBodyLogsItems0 Logs contain logs for certain pod's container. If contai swagger:model GetLogsOKBodyLogsItems0 */ type GetLogsOKBodyLogsItems0 struct { - // Pod name. Pod string `json:"pod,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go index da1710b6ce..0998427faa 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_parameters.go @@ -60,7 +60,6 @@ CreatePSMDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreatePSMDBClusterParams struct { - // Body. Body CreatePSMDBClusterBody @@ -130,7 +129,6 @@ func (o *CreatePSMDBClusterParams) SetBody(body CreatePSMDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *CreatePSMDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go index 508b9227fc..f06a99099b 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/create_psmdb_cluster_responses.go @@ -60,12 +60,12 @@ type CreatePSMDBClusterOK struct { func (o *CreatePSMDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Create][%d] createPsmdbClusterOk %+v", 200, o.Payload) } + func (o *CreatePSMDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *CreatePSMDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CreatePSMDBClusterDefault) Code() int { func (o *CreatePSMDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Create][%d] CreatePSMDBCluster default %+v", o._statusCode, o.Payload) } + func (o *CreatePSMDBClusterDefault) GetPayload() *CreatePSMDBClusterDefaultBody { return o.Payload } func (o *CreatePSMDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreatePSMDBClusterDefaultBody) // response payload @@ -121,7 +121,6 @@ CreatePSMDBClusterBody create PSMDB cluster body swagger:model CreatePSMDBClusterBody */ type CreatePSMDBClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -186,7 +185,6 @@ func (o *CreatePSMDBClusterBody) ContextValidate(ctx context.Context, formats st } func (o *CreatePSMDBClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -224,7 +222,6 @@ CreatePSMDBClusterDefaultBody create PSMDB cluster default body swagger:model CreatePSMDBClusterDefaultBody */ type CreatePSMDBClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -290,9 +287,7 @@ func (o *CreatePSMDBClusterDefaultBody) ContextValidate(ctx context.Context, for } func (o *CreatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -303,7 +298,6 @@ func (o *CreatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -332,7 +326,6 @@ CreatePSMDBClusterDefaultBodyDetailsItems0 create PSMDB cluster default body det swagger:model CreatePSMDBClusterDefaultBodyDetailsItems0 */ type CreatePSMDBClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -370,7 +363,6 @@ CreatePSMDBClusterParamsBodyParams PSMDBClusterParams represents PSMDB cluster p swagger:model CreatePSMDBClusterParamsBodyParams */ type CreatePSMDBClusterParamsBodyParams struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -429,7 +421,6 @@ func (o *CreatePSMDBClusterParamsBodyParams) ContextValidate(ctx context.Context } func (o *CreatePSMDBClusterParamsBodyParams) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { - if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -468,7 +459,6 @@ CreatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. swagger:model CreatePSMDBClusterParamsBodyParamsReplicaset */ type CreatePSMDBClusterParamsBodyParamsReplicaset struct { - // Disk size in bytes. DiskSize string `json:"disk_size,omitempty"` @@ -524,7 +514,6 @@ func (o *CreatePSMDBClusterParamsBodyParamsReplicaset) ContextValidate(ctx conte } func (o *CreatePSMDBClusterParamsBodyParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -562,7 +551,6 @@ CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources re swagger:model CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources */ type CreatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go index e85e476b40..f51b6e79fc 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_parameters.go @@ -60,7 +60,6 @@ GetPSMDBClusterCredentialsParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type GetPSMDBClusterCredentialsParams struct { - // Body. Body GetPSMDBClusterCredentialsBody @@ -130,7 +129,6 @@ func (o *GetPSMDBClusterCredentialsParams) SetBody(body GetPSMDBClusterCredentia // WriteToRequest writes these params to a swagger request func (o *GetPSMDBClusterCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go index d6f97c0cd3..0c53037935 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_credentials_responses.go @@ -60,12 +60,12 @@ type GetPSMDBClusterCredentialsOK struct { func (o *GetPSMDBClusterCredentialsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBClusters/GetCredentials][%d] getPsmdbClusterCredentialsOk %+v", 200, o.Payload) } + func (o *GetPSMDBClusterCredentialsOK) GetPayload() *GetPSMDBClusterCredentialsOKBody { return o.Payload } func (o *GetPSMDBClusterCredentialsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPSMDBClusterCredentialsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPSMDBClusterCredentialsDefault) Code() int { func (o *GetPSMDBClusterCredentialsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBClusters/GetCredentials][%d] GetPSMDBClusterCredentials default %+v", o._statusCode, o.Payload) } + func (o *GetPSMDBClusterCredentialsDefault) GetPayload() *GetPSMDBClusterCredentialsDefaultBody { return o.Payload } func (o *GetPSMDBClusterCredentialsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPSMDBClusterCredentialsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetPSMDBClusterCredentialsBody get PSMDB cluster credentials body swagger:model GetPSMDBClusterCredentialsBody */ type GetPSMDBClusterCredentialsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -164,7 +163,6 @@ GetPSMDBClusterCredentialsDefaultBody get PSMDB cluster credentials default body swagger:model GetPSMDBClusterCredentialsDefaultBody */ type GetPSMDBClusterCredentialsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *GetPSMDBClusterCredentialsDefaultBody) ContextValidate(ctx context.Cont } func (o *GetPSMDBClusterCredentialsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *GetPSMDBClusterCredentialsDefaultBody) contextValidateDetails(ctx conte return err } } - } return nil @@ -272,7 +267,6 @@ GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 get PSMDB cluster credentials swagger:model GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 */ type GetPSMDBClusterCredentialsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ GetPSMDBClusterCredentialsOKBody get PSMDB cluster credentials OK body swagger:model GetPSMDBClusterCredentialsOKBody */ type GetPSMDBClusterCredentialsOKBody struct { - // connection credentials ConnectionCredentials *GetPSMDBClusterCredentialsOKBodyConnectionCredentials `json:"connection_credentials,omitempty"` } @@ -363,7 +356,6 @@ func (o *GetPSMDBClusterCredentialsOKBody) ContextValidate(ctx context.Context, } func (o *GetPSMDBClusterCredentialsOKBody) contextValidateConnectionCredentials(ctx context.Context, formats strfmt.Registry) error { - if o.ConnectionCredentials != nil { if err := o.ConnectionCredentials.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -402,7 +394,6 @@ GetPSMDBClusterCredentialsOKBodyConnectionCredentials PSMDBCredentials is a cred swagger:model GetPSMDBClusterCredentialsOKBodyConnectionCredentials */ type GetPSMDBClusterCredentialsOKBodyConnectionCredentials struct { - // MongoDB username. Username string `json:"username,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go index 3a42ba6338..74b6e68f61 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_parameters.go @@ -60,7 +60,6 @@ GetPSMDBClusterResourcesParams contains all the parameters to send to the API en Typically these are written to a http.Request. */ type GetPSMDBClusterResourcesParams struct { - // Body. Body GetPSMDBClusterResourcesBody @@ -130,7 +129,6 @@ func (o *GetPSMDBClusterResourcesParams) SetBody(body GetPSMDBClusterResourcesBo // WriteToRequest writes these params to a swagger request func (o *GetPSMDBClusterResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go index 1292e69612..2058b4f9af 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/get_psmdb_cluster_resources_responses.go @@ -60,12 +60,12 @@ type GetPSMDBClusterResourcesOK struct { func (o *GetPSMDBClusterResourcesOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Resources/Get][%d] getPsmdbClusterResourcesOk %+v", 200, o.Payload) } + func (o *GetPSMDBClusterResourcesOK) GetPayload() *GetPSMDBClusterResourcesOKBody { return o.Payload } func (o *GetPSMDBClusterResourcesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPSMDBClusterResourcesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPSMDBClusterResourcesDefault) Code() int { func (o *GetPSMDBClusterResourcesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Resources/Get][%d] GetPSMDBClusterResources default %+v", o._statusCode, o.Payload) } + func (o *GetPSMDBClusterResourcesDefault) GetPayload() *GetPSMDBClusterResourcesDefaultBody { return o.Payload } func (o *GetPSMDBClusterResourcesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPSMDBClusterResourcesDefaultBody) // response payload @@ -123,7 +123,6 @@ GetPSMDBClusterResourcesBody get PSMDB cluster resources body swagger:model GetPSMDBClusterResourcesBody */ type GetPSMDBClusterResourcesBody struct { - // params Params *GetPSMDBClusterResourcesParamsBodyParams `json:"params,omitempty"` } @@ -176,7 +175,6 @@ func (o *GetPSMDBClusterResourcesBody) ContextValidate(ctx context.Context, form } func (o *GetPSMDBClusterResourcesBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -214,7 +212,6 @@ GetPSMDBClusterResourcesDefaultBody get PSMDB cluster resources default body swagger:model GetPSMDBClusterResourcesDefaultBody */ type GetPSMDBClusterResourcesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -280,9 +277,7 @@ func (o *GetPSMDBClusterResourcesDefaultBody) ContextValidate(ctx context.Contex } func (o *GetPSMDBClusterResourcesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,7 +288,6 @@ func (o *GetPSMDBClusterResourcesDefaultBody) contextValidateDetails(ctx context return err } } - } return nil @@ -322,7 +316,6 @@ GetPSMDBClusterResourcesDefaultBodyDetailsItems0 get PSMDB cluster resources def swagger:model GetPSMDBClusterResourcesDefaultBodyDetailsItems0 */ type GetPSMDBClusterResourcesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -360,7 +353,6 @@ GetPSMDBClusterResourcesOKBody get PSMDB cluster resources OK body swagger:model GetPSMDBClusterResourcesOKBody */ type GetPSMDBClusterResourcesOKBody struct { - // expected Expected *GetPSMDBClusterResourcesOKBodyExpected `json:"expected,omitempty"` } @@ -413,7 +405,6 @@ func (o *GetPSMDBClusterResourcesOKBody) ContextValidate(ctx context.Context, fo } func (o *GetPSMDBClusterResourcesOKBody) contextValidateExpected(ctx context.Context, formats strfmt.Registry) error { - if o.Expected != nil { if err := o.Expected.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -451,7 +442,6 @@ GetPSMDBClusterResourcesOKBodyExpected Resources contains Kubernetes cluster res swagger:model GetPSMDBClusterResourcesOKBodyExpected */ type GetPSMDBClusterResourcesOKBodyExpected struct { - // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` @@ -496,7 +486,6 @@ GetPSMDBClusterResourcesParamsBodyParams PSMDBClusterParams represents PSMDB clu swagger:model GetPSMDBClusterResourcesParamsBodyParams */ type GetPSMDBClusterResourcesParamsBodyParams struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -555,7 +544,6 @@ func (o *GetPSMDBClusterResourcesParamsBodyParams) ContextValidate(ctx context.C } func (o *GetPSMDBClusterResourcesParamsBodyParams) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { - if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -594,7 +582,6 @@ GetPSMDBClusterResourcesParamsBodyParamsReplicaset ReplicaSet container paramete swagger:model GetPSMDBClusterResourcesParamsBodyParamsReplicaset */ type GetPSMDBClusterResourcesParamsBodyParamsReplicaset struct { - // Disk size in bytes. DiskSize string `json:"disk_size,omitempty"` @@ -650,7 +637,6 @@ func (o *GetPSMDBClusterResourcesParamsBodyParamsReplicaset) ContextValidate(ctx } func (o *GetPSMDBClusterResourcesParamsBodyParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -688,7 +674,6 @@ GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources ComputeResour swagger:model GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources */ type GetPSMDBClusterResourcesParamsBodyParamsReplicasetComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go index 2ead9b1866..23c76e1316 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_parameters.go @@ -60,7 +60,6 @@ UpdatePSMDBClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdatePSMDBClusterParams struct { - // Body. Body UpdatePSMDBClusterBody @@ -130,7 +129,6 @@ func (o *UpdatePSMDBClusterParams) SetBody(body UpdatePSMDBClusterBody) { // WriteToRequest writes these params to a swagger request func (o *UpdatePSMDBClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go index 7a15f74a90..806134b7f8 100644 --- a/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/psmdb_clusters/update_psmdb_cluster_responses.go @@ -60,12 +60,12 @@ type UpdatePSMDBClusterOK struct { func (o *UpdatePSMDBClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Update][%d] updatePsmdbClusterOk %+v", 200, o.Payload) } + func (o *UpdatePSMDBClusterOK) GetPayload() interface{} { return o.Payload } func (o *UpdatePSMDBClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UpdatePSMDBClusterDefault) Code() int { func (o *UpdatePSMDBClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PSMDBCluster/Update][%d] UpdatePSMDBCluster default %+v", o._statusCode, o.Payload) } + func (o *UpdatePSMDBClusterDefault) GetPayload() *UpdatePSMDBClusterDefaultBody { return o.Payload } func (o *UpdatePSMDBClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdatePSMDBClusterDefaultBody) // response payload @@ -121,7 +121,6 @@ UpdatePSMDBClusterBody update PSMDB cluster body swagger:model UpdatePSMDBClusterBody */ type UpdatePSMDBClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -180,7 +179,6 @@ func (o *UpdatePSMDBClusterBody) ContextValidate(ctx context.Context, formats st } func (o *UpdatePSMDBClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -218,7 +216,6 @@ UpdatePSMDBClusterDefaultBody update PSMDB cluster default body swagger:model UpdatePSMDBClusterDefaultBody */ type UpdatePSMDBClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -284,9 +281,7 @@ func (o *UpdatePSMDBClusterDefaultBody) ContextValidate(ctx context.Context, for } func (o *UpdatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -297,7 +292,6 @@ func (o *UpdatePSMDBClusterDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -326,7 +320,6 @@ UpdatePSMDBClusterDefaultBodyDetailsItems0 update PSMDB cluster default body det swagger:model UpdatePSMDBClusterDefaultBodyDetailsItems0 */ type UpdatePSMDBClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -364,7 +357,6 @@ UpdatePSMDBClusterParamsBodyParams UpdatePSMDBClusterParams represents PSMDB clu swagger:model UpdatePSMDBClusterParamsBodyParams */ type UpdatePSMDBClusterParamsBodyParams struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -430,7 +422,6 @@ func (o *UpdatePSMDBClusterParamsBodyParams) ContextValidate(ctx context.Context } func (o *UpdatePSMDBClusterParamsBodyParams) contextValidateReplicaset(ctx context.Context, formats strfmt.Registry) error { - if o.Replicaset != nil { if err := o.Replicaset.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -468,7 +459,6 @@ UpdatePSMDBClusterParamsBodyParamsReplicaset ReplicaSet container parameters. swagger:model UpdatePSMDBClusterParamsBodyParamsReplicaset */ type UpdatePSMDBClusterParamsBodyParamsReplicaset struct { - // compute resources ComputeResources *UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources `json:"compute_resources,omitempty"` } @@ -521,7 +511,6 @@ func (o *UpdatePSMDBClusterParamsBodyParamsReplicaset) ContextValidate(ctx conte } func (o *UpdatePSMDBClusterParamsBodyParamsReplicaset) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -559,7 +548,6 @@ UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources ComputeResources re swagger:model UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources */ type UpdatePSMDBClusterParamsBodyParamsReplicasetComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go index 6ebde1e9e8..7beb33eddb 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_parameters.go @@ -60,7 +60,6 @@ CreatePXCClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreatePXCClusterParams struct { - // Body. Body CreatePXCClusterBody @@ -130,7 +129,6 @@ func (o *CreatePXCClusterParams) SetBody(body CreatePXCClusterBody) { // WriteToRequest writes these params to a swagger request func (o *CreatePXCClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go index 970b9089b6..f8220f1e67 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/create_pxc_cluster_responses.go @@ -60,12 +60,12 @@ type CreatePXCClusterOK struct { func (o *CreatePXCClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Create][%d] createPxcClusterOk %+v", 200, o.Payload) } + func (o *CreatePXCClusterOK) GetPayload() interface{} { return o.Payload } func (o *CreatePXCClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CreatePXCClusterDefault) Code() int { func (o *CreatePXCClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Create][%d] CreatePXCCluster default %+v", o._statusCode, o.Payload) } + func (o *CreatePXCClusterDefault) GetPayload() *CreatePXCClusterDefaultBody { return o.Payload } func (o *CreatePXCClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreatePXCClusterDefaultBody) // response payload @@ -121,7 +121,6 @@ CreatePXCClusterBody create PXC cluster body swagger:model CreatePXCClusterBody */ type CreatePXCClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -186,7 +185,6 @@ func (o *CreatePXCClusterBody) ContextValidate(ctx context.Context, formats strf } func (o *CreatePXCClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -224,7 +222,6 @@ CreatePXCClusterDefaultBody create PXC cluster default body swagger:model CreatePXCClusterDefaultBody */ type CreatePXCClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -290,9 +287,7 @@ func (o *CreatePXCClusterDefaultBody) ContextValidate(ctx context.Context, forma } func (o *CreatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -303,7 +298,6 @@ func (o *CreatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -332,7 +326,6 @@ CreatePXCClusterDefaultBodyDetailsItems0 create PXC cluster default body details swagger:model CreatePXCClusterDefaultBodyDetailsItems0 */ type CreatePXCClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -370,7 +363,6 @@ CreatePXCClusterParamsBodyParams PXCClusterParams represents PXC cluster paramet swagger:model CreatePXCClusterParamsBodyParams */ type CreatePXCClusterParamsBodyParams struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -486,7 +478,6 @@ func (o *CreatePXCClusterParamsBodyParams) ContextValidate(ctx context.Context, } func (o *CreatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -502,7 +493,6 @@ func (o *CreatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Co } func (o *CreatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -518,7 +508,6 @@ func (o *CreatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.C } func (o *CreatePXCClusterParamsBodyParams) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -557,7 +546,6 @@ CreatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. swagger:model CreatePXCClusterParamsBodyParamsHaproxy */ type CreatePXCClusterParamsBodyParamsHaproxy struct { - // Docker image used for HAProxy. Image string `json:"image,omitempty"` @@ -613,7 +601,6 @@ func (o *CreatePXCClusterParamsBodyParamsHaproxy) ContextValidate(ctx context.Co } func (o *CreatePXCClusterParamsBodyParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -651,7 +638,6 @@ CreatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represe swagger:model CreatePXCClusterParamsBodyParamsHaproxyComputeResources */ type CreatePXCClusterParamsBodyParamsHaproxyComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -693,7 +679,6 @@ CreatePXCClusterParamsBodyParamsPXC PXC container parameters. swagger:model CreatePXCClusterParamsBodyParamsPXC */ type CreatePXCClusterParamsBodyParamsPXC struct { - // Docker image used for PXC. Image string `json:"image,omitempty"` @@ -752,7 +737,6 @@ func (o *CreatePXCClusterParamsBodyParamsPXC) ContextValidate(ctx context.Contex } func (o *CreatePXCClusterParamsBodyParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -790,7 +774,6 @@ CreatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents swagger:model CreatePXCClusterParamsBodyParamsPXCComputeResources */ type CreatePXCClusterParamsBodyParamsPXCComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -832,7 +815,6 @@ CreatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. swagger:model CreatePXCClusterParamsBodyParamsProxysql */ type CreatePXCClusterParamsBodyParamsProxysql struct { - // Docker image used for ProxySQL. Image string `json:"image,omitempty"` @@ -891,7 +873,6 @@ func (o *CreatePXCClusterParamsBodyParamsProxysql) ContextValidate(ctx context.C } func (o *CreatePXCClusterParamsBodyParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -929,7 +910,6 @@ CreatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources repres swagger:model CreatePXCClusterParamsBodyParamsProxysqlComputeResources */ type CreatePXCClusterParamsBodyParamsProxysqlComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go index 7d0e885d95..7c4d2afb1e 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_parameters.go @@ -60,7 +60,6 @@ GetPXCClusterCredentialsParams contains all the parameters to send to the API en Typically these are written to a http.Request. */ type GetPXCClusterCredentialsParams struct { - // Body. Body GetPXCClusterCredentialsBody @@ -130,7 +129,6 @@ func (o *GetPXCClusterCredentialsParams) SetBody(body GetPXCClusterCredentialsBo // WriteToRequest writes these params to a swagger request func (o *GetPXCClusterCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go index 9d355ed7c5..6273b03f15 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_credentials_responses.go @@ -60,12 +60,12 @@ type GetPXCClusterCredentialsOK struct { func (o *GetPXCClusterCredentialsOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCClusters/GetCredentials][%d] getPxcClusterCredentialsOk %+v", 200, o.Payload) } + func (o *GetPXCClusterCredentialsOK) GetPayload() *GetPXCClusterCredentialsOKBody { return o.Payload } func (o *GetPXCClusterCredentialsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPXCClusterCredentialsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPXCClusterCredentialsDefault) Code() int { func (o *GetPXCClusterCredentialsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCClusters/GetCredentials][%d] GetPXCClusterCredentials default %+v", o._statusCode, o.Payload) } + func (o *GetPXCClusterCredentialsDefault) GetPayload() *GetPXCClusterCredentialsDefaultBody { return o.Payload } func (o *GetPXCClusterCredentialsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPXCClusterCredentialsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetPXCClusterCredentialsBody get PXC cluster credentials body swagger:model GetPXCClusterCredentialsBody */ type GetPXCClusterCredentialsBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -164,7 +163,6 @@ GetPXCClusterCredentialsDefaultBody get PXC cluster credentials default body swagger:model GetPXCClusterCredentialsDefaultBody */ type GetPXCClusterCredentialsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *GetPXCClusterCredentialsDefaultBody) ContextValidate(ctx context.Contex } func (o *GetPXCClusterCredentialsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *GetPXCClusterCredentialsDefaultBody) contextValidateDetails(ctx context return err } } - } return nil @@ -272,7 +267,6 @@ GetPXCClusterCredentialsDefaultBodyDetailsItems0 get PXC cluster credentials def swagger:model GetPXCClusterCredentialsDefaultBodyDetailsItems0 */ type GetPXCClusterCredentialsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ GetPXCClusterCredentialsOKBody get PXC cluster credentials OK body swagger:model GetPXCClusterCredentialsOKBody */ type GetPXCClusterCredentialsOKBody struct { - // connection credentials ConnectionCredentials *GetPXCClusterCredentialsOKBodyConnectionCredentials `json:"connection_credentials,omitempty"` } @@ -363,7 +356,6 @@ func (o *GetPXCClusterCredentialsOKBody) ContextValidate(ctx context.Context, fo } func (o *GetPXCClusterCredentialsOKBody) contextValidateConnectionCredentials(ctx context.Context, formats strfmt.Registry) error { - if o.ConnectionCredentials != nil { if err := o.ConnectionCredentials.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -401,7 +393,6 @@ GetPXCClusterCredentialsOKBodyConnectionCredentials PXCClusterConnectionCredenti swagger:model GetPXCClusterCredentialsOKBodyConnectionCredentials */ type GetPXCClusterCredentialsOKBodyConnectionCredentials struct { - // PXC username. Username string `json:"username,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go index 17c03d3a3f..12e6ed514f 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_parameters.go @@ -60,7 +60,6 @@ GetPXCClusterResourcesParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type GetPXCClusterResourcesParams struct { - // Body. Body GetPXCClusterResourcesBody @@ -130,7 +129,6 @@ func (o *GetPXCClusterResourcesParams) SetBody(body GetPXCClusterResourcesBody) // WriteToRequest writes these params to a swagger request func (o *GetPXCClusterResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go index c882ab136a..21c3637db3 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/get_pxc_cluster_resources_responses.go @@ -60,12 +60,12 @@ type GetPXCClusterResourcesOK struct { func (o *GetPXCClusterResourcesOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Resources/Get][%d] getPxcClusterResourcesOk %+v", 200, o.Payload) } + func (o *GetPXCClusterResourcesOK) GetPayload() *GetPXCClusterResourcesOKBody { return o.Payload } func (o *GetPXCClusterResourcesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPXCClusterResourcesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetPXCClusterResourcesDefault) Code() int { func (o *GetPXCClusterResourcesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Resources/Get][%d] GetPXCClusterResources default %+v", o._statusCode, o.Payload) } + func (o *GetPXCClusterResourcesDefault) GetPayload() *GetPXCClusterResourcesDefaultBody { return o.Payload } func (o *GetPXCClusterResourcesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetPXCClusterResourcesDefaultBody) // response payload @@ -123,7 +123,6 @@ GetPXCClusterResourcesBody get PXC cluster resources body swagger:model GetPXCClusterResourcesBody */ type GetPXCClusterResourcesBody struct { - // params Params *GetPXCClusterResourcesParamsBodyParams `json:"params,omitempty"` } @@ -176,7 +175,6 @@ func (o *GetPXCClusterResourcesBody) ContextValidate(ctx context.Context, format } func (o *GetPXCClusterResourcesBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -214,7 +212,6 @@ GetPXCClusterResourcesDefaultBody get PXC cluster resources default body swagger:model GetPXCClusterResourcesDefaultBody */ type GetPXCClusterResourcesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -280,9 +277,7 @@ func (o *GetPXCClusterResourcesDefaultBody) ContextValidate(ctx context.Context, } func (o *GetPXCClusterResourcesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,7 +288,6 @@ func (o *GetPXCClusterResourcesDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -322,7 +316,6 @@ GetPXCClusterResourcesDefaultBodyDetailsItems0 get PXC cluster resources default swagger:model GetPXCClusterResourcesDefaultBodyDetailsItems0 */ type GetPXCClusterResourcesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -360,7 +353,6 @@ GetPXCClusterResourcesOKBody get PXC cluster resources OK body swagger:model GetPXCClusterResourcesOKBody */ type GetPXCClusterResourcesOKBody struct { - // expected Expected *GetPXCClusterResourcesOKBodyExpected `json:"expected,omitempty"` } @@ -413,7 +405,6 @@ func (o *GetPXCClusterResourcesOKBody) ContextValidate(ctx context.Context, form } func (o *GetPXCClusterResourcesOKBody) contextValidateExpected(ctx context.Context, formats strfmt.Registry) error { - if o.Expected != nil { if err := o.Expected.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -451,7 +442,6 @@ GetPXCClusterResourcesOKBodyExpected Resources contains Kubernetes cluster resou swagger:model GetPXCClusterResourcesOKBodyExpected */ type GetPXCClusterResourcesOKBodyExpected struct { - // Memory in bytes. MemoryBytes string `json:"memory_bytes,omitempty"` @@ -496,7 +486,6 @@ GetPXCClusterResourcesParamsBodyParams PXCClusterParams represents PXC cluster p swagger:model GetPXCClusterResourcesParamsBodyParams */ type GetPXCClusterResourcesParamsBodyParams struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -612,7 +601,6 @@ func (o *GetPXCClusterResourcesParamsBodyParams) ContextValidate(ctx context.Con } func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -628,7 +616,6 @@ func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateHaproxy(ctx cont } func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -644,7 +631,6 @@ func (o *GetPXCClusterResourcesParamsBodyParams) contextValidateProxysql(ctx con } func (o *GetPXCClusterResourcesParamsBodyParams) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -683,7 +669,6 @@ GetPXCClusterResourcesParamsBodyParamsHaproxy HAProxy container parameters. swagger:model GetPXCClusterResourcesParamsBodyParamsHaproxy */ type GetPXCClusterResourcesParamsBodyParamsHaproxy struct { - // Docker image used for HAProxy. Image string `json:"image,omitempty"` @@ -739,7 +724,6 @@ func (o *GetPXCClusterResourcesParamsBodyParamsHaproxy) ContextValidate(ctx cont } func (o *GetPXCClusterResourcesParamsBodyParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -777,7 +761,6 @@ GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources ComputeResources r swagger:model GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources */ type GetPXCClusterResourcesParamsBodyParamsHaproxyComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -819,7 +802,6 @@ GetPXCClusterResourcesParamsBodyParamsPXC PXC container parameters. swagger:model GetPXCClusterResourcesParamsBodyParamsPXC */ type GetPXCClusterResourcesParamsBodyParamsPXC struct { - // Docker image used for PXC. Image string `json:"image,omitempty"` @@ -878,7 +860,6 @@ func (o *GetPXCClusterResourcesParamsBodyParamsPXC) ContextValidate(ctx context. } func (o *GetPXCClusterResourcesParamsBodyParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -916,7 +897,6 @@ GetPXCClusterResourcesParamsBodyParamsPXCComputeResources ComputeResources repre swagger:model GetPXCClusterResourcesParamsBodyParamsPXCComputeResources */ type GetPXCClusterResourcesParamsBodyParamsPXCComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -958,7 +938,6 @@ GetPXCClusterResourcesParamsBodyParamsProxysql ProxySQL container parameters. swagger:model GetPXCClusterResourcesParamsBodyParamsProxysql */ type GetPXCClusterResourcesParamsBodyParamsProxysql struct { - // Docker image used for ProxySQL. Image string `json:"image,omitempty"` @@ -1017,7 +996,6 @@ func (o *GetPXCClusterResourcesParamsBodyParamsProxysql) ContextValidate(ctx con } func (o *GetPXCClusterResourcesParamsBodyParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1055,7 +1033,6 @@ GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources ComputeResources swagger:model GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources */ type GetPXCClusterResourcesParamsBodyParamsProxysqlComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go index f7e99bd00f..61a4122345 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_parameters.go @@ -60,7 +60,6 @@ UpdatePXCClusterParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdatePXCClusterParams struct { - // Body. Body UpdatePXCClusterBody @@ -130,7 +129,6 @@ func (o *UpdatePXCClusterParams) SetBody(body UpdatePXCClusterBody) { // WriteToRequest writes these params to a swagger request func (o *UpdatePXCClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go index 81bfd46195..20379f5bc2 100644 --- a/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go +++ b/api/managementpb/dbaas/json/client/pxc_clusters/update_pxc_cluster_responses.go @@ -60,12 +60,12 @@ type UpdatePXCClusterOK struct { func (o *UpdatePXCClusterOK) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Update][%d] updatePxcClusterOk %+v", 200, o.Payload) } + func (o *UpdatePXCClusterOK) GetPayload() interface{} { return o.Payload } func (o *UpdatePXCClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *UpdatePXCClusterDefault) Code() int { func (o *UpdatePXCClusterDefault) Error() string { return fmt.Sprintf("[POST /v1/management/DBaaS/PXCCluster/Update][%d] UpdatePXCCluster default %+v", o._statusCode, o.Payload) } + func (o *UpdatePXCClusterDefault) GetPayload() *UpdatePXCClusterDefaultBody { return o.Payload } func (o *UpdatePXCClusterDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdatePXCClusterDefaultBody) // response payload @@ -121,7 +121,6 @@ UpdatePXCClusterBody update PXC cluster body swagger:model UpdatePXCClusterBody */ type UpdatePXCClusterBody struct { - // Kubernetes cluster name. KubernetesClusterName string `json:"kubernetes_cluster_name,omitempty"` @@ -180,7 +179,6 @@ func (o *UpdatePXCClusterBody) ContextValidate(ctx context.Context, formats strf } func (o *UpdatePXCClusterBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - if o.Params != nil { if err := o.Params.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -218,7 +216,6 @@ UpdatePXCClusterDefaultBody update PXC cluster default body swagger:model UpdatePXCClusterDefaultBody */ type UpdatePXCClusterDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -284,9 +281,7 @@ func (o *UpdatePXCClusterDefaultBody) ContextValidate(ctx context.Context, forma } func (o *UpdatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -297,7 +292,6 @@ func (o *UpdatePXCClusterDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -326,7 +320,6 @@ UpdatePXCClusterDefaultBodyDetailsItems0 update PXC cluster default body details swagger:model UpdatePXCClusterDefaultBodyDetailsItems0 */ type UpdatePXCClusterDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -364,7 +357,6 @@ UpdatePXCClusterParamsBodyParams UpdatePXCClusterParams represents PXC cluster p swagger:model UpdatePXCClusterParamsBodyParams */ type UpdatePXCClusterParamsBodyParams struct { - // Cluster size. ClusterSize int32 `json:"cluster_size,omitempty"` @@ -486,7 +478,6 @@ func (o *UpdatePXCClusterParamsBodyParams) ContextValidate(ctx context.Context, } func (o *UpdatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if err := o.Haproxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -502,7 +493,6 @@ func (o *UpdatePXCClusterParamsBodyParams) contextValidateHaproxy(ctx context.Co } func (o *UpdatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if err := o.Proxysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -518,7 +508,6 @@ func (o *UpdatePXCClusterParamsBodyParams) contextValidateProxysql(ctx context.C } func (o *UpdatePXCClusterParamsBodyParams) contextValidatePXC(ctx context.Context, formats strfmt.Registry) error { - if o.PXC != nil { if err := o.PXC.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -556,7 +545,6 @@ UpdatePXCClusterParamsBodyParamsHaproxy HAProxy container parameters. swagger:model UpdatePXCClusterParamsBodyParamsHaproxy */ type UpdatePXCClusterParamsBodyParamsHaproxy struct { - // compute resources ComputeResources *UpdatePXCClusterParamsBodyParamsHaproxyComputeResources `json:"compute_resources,omitempty"` } @@ -609,7 +597,6 @@ func (o *UpdatePXCClusterParamsBodyParamsHaproxy) ContextValidate(ctx context.Co } func (o *UpdatePXCClusterParamsBodyParamsHaproxy) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -647,7 +634,6 @@ UpdatePXCClusterParamsBodyParamsHaproxyComputeResources ComputeResources represe swagger:model UpdatePXCClusterParamsBodyParamsHaproxyComputeResources */ type UpdatePXCClusterParamsBodyParamsHaproxyComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -688,7 +674,6 @@ UpdatePXCClusterParamsBodyParamsPXC PXC container parameters. swagger:model UpdatePXCClusterParamsBodyParamsPXC */ type UpdatePXCClusterParamsBodyParamsPXC struct { - // Image to use. If it's the same image but with different version tag, upgrade of database cluster to version // in given tag is triggered. If entirely different image is given, error is returned. Image string `json:"image,omitempty"` @@ -745,7 +730,6 @@ func (o *UpdatePXCClusterParamsBodyParamsPXC) ContextValidate(ctx context.Contex } func (o *UpdatePXCClusterParamsBodyParamsPXC) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -783,7 +767,6 @@ UpdatePXCClusterParamsBodyParamsPXCComputeResources ComputeResources represents swagger:model UpdatePXCClusterParamsBodyParamsPXCComputeResources */ type UpdatePXCClusterParamsBodyParamsPXCComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` @@ -824,7 +807,6 @@ UpdatePXCClusterParamsBodyParamsProxysql ProxySQL container parameters. swagger:model UpdatePXCClusterParamsBodyParamsProxysql */ type UpdatePXCClusterParamsBodyParamsProxysql struct { - // compute resources ComputeResources *UpdatePXCClusterParamsBodyParamsProxysqlComputeResources `json:"compute_resources,omitempty"` } @@ -877,7 +859,6 @@ func (o *UpdatePXCClusterParamsBodyParamsProxysql) ContextValidate(ctx context.C } func (o *UpdatePXCClusterParamsBodyParamsProxysql) contextValidateComputeResources(ctx context.Context, formats strfmt.Registry) error { - if o.ComputeResources != nil { if err := o.ComputeResources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -915,7 +896,6 @@ UpdatePXCClusterParamsBodyParamsProxysqlComputeResources ComputeResources repres swagger:model UpdatePXCClusterParamsBodyParamsProxysqlComputeResources */ type UpdatePXCClusterParamsBodyParamsProxysqlComputeResources struct { - // CPUs in milliCPUs; 1000m = 1 vCPU. CPUm int32 `json:"cpu_m,omitempty"` diff --git a/api/managementpb/dbaas/kubernetes.pb.go b/api/managementpb/dbaas/kubernetes.pb.go index 5a89940111..5910ee7004 100644 --- a/api/managementpb/dbaas/kubernetes.pb.go +++ b/api/managementpb/dbaas/kubernetes.pb.go @@ -7,12 +7,13 @@ package dbaasv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -996,27 +997,30 @@ func file_managementpb_dbaas_kubernetes_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_kubernetes_proto_rawDescData } -var file_managementpb_dbaas_kubernetes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_dbaas_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_managementpb_dbaas_kubernetes_proto_goTypes = []interface{}{ - (KubernetesClusterStatus)(0), // 0: dbaas.v1beta1.KubernetesClusterStatus - (*KubeAuth)(nil), // 1: dbaas.v1beta1.KubeAuth - (*Operator)(nil), // 2: dbaas.v1beta1.Operator - (*Operators)(nil), // 3: dbaas.v1beta1.Operators - (*ListKubernetesClustersRequest)(nil), // 4: dbaas.v1beta1.ListKubernetesClustersRequest - (*ListKubernetesClustersResponse)(nil), // 5: dbaas.v1beta1.ListKubernetesClustersResponse - (*RegisterKubernetesClusterRequest)(nil), // 6: dbaas.v1beta1.RegisterKubernetesClusterRequest - (*RegisterKubernetesClusterResponse)(nil), // 7: dbaas.v1beta1.RegisterKubernetesClusterResponse - (*UnregisterKubernetesClusterRequest)(nil), // 8: dbaas.v1beta1.UnregisterKubernetesClusterRequest - (*UnregisterKubernetesClusterResponse)(nil), // 9: dbaas.v1beta1.UnregisterKubernetesClusterResponse - (*GetKubernetesClusterRequest)(nil), // 10: dbaas.v1beta1.GetKubernetesClusterRequest - (*GetKubernetesClusterResponse)(nil), // 11: dbaas.v1beta1.GetKubernetesClusterResponse - (*GetResourcesRequest)(nil), // 12: dbaas.v1beta1.GetResourcesRequest - (*GetResourcesResponse)(nil), // 13: dbaas.v1beta1.GetResourcesResponse - (*ListKubernetesClustersResponse_Cluster)(nil), // 14: dbaas.v1beta1.ListKubernetesClustersResponse.Cluster - (OperatorsStatus)(0), // 15: dbaas.v1beta1.OperatorsStatus - (*Resources)(nil), // 16: dbaas.v1beta1.Resources -} +var ( + file_managementpb_dbaas_kubernetes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_dbaas_kubernetes_proto_msgTypes = make([]protoimpl.MessageInfo, 14) + file_managementpb_dbaas_kubernetes_proto_goTypes = []interface{}{ + (KubernetesClusterStatus)(0), // 0: dbaas.v1beta1.KubernetesClusterStatus + (*KubeAuth)(nil), // 1: dbaas.v1beta1.KubeAuth + (*Operator)(nil), // 2: dbaas.v1beta1.Operator + (*Operators)(nil), // 3: dbaas.v1beta1.Operators + (*ListKubernetesClustersRequest)(nil), // 4: dbaas.v1beta1.ListKubernetesClustersRequest + (*ListKubernetesClustersResponse)(nil), // 5: dbaas.v1beta1.ListKubernetesClustersResponse + (*RegisterKubernetesClusterRequest)(nil), // 6: dbaas.v1beta1.RegisterKubernetesClusterRequest + (*RegisterKubernetesClusterResponse)(nil), // 7: dbaas.v1beta1.RegisterKubernetesClusterResponse + (*UnregisterKubernetesClusterRequest)(nil), // 8: dbaas.v1beta1.UnregisterKubernetesClusterRequest + (*UnregisterKubernetesClusterResponse)(nil), // 9: dbaas.v1beta1.UnregisterKubernetesClusterResponse + (*GetKubernetesClusterRequest)(nil), // 10: dbaas.v1beta1.GetKubernetesClusterRequest + (*GetKubernetesClusterResponse)(nil), // 11: dbaas.v1beta1.GetKubernetesClusterResponse + (*GetResourcesRequest)(nil), // 12: dbaas.v1beta1.GetResourcesRequest + (*GetResourcesResponse)(nil), // 13: dbaas.v1beta1.GetResourcesResponse + (*ListKubernetesClustersResponse_Cluster)(nil), // 14: dbaas.v1beta1.ListKubernetesClustersResponse.Cluster + (OperatorsStatus)(0), // 15: dbaas.v1beta1.OperatorsStatus + (*Resources)(nil), // 16: dbaas.v1beta1.Resources + } +) + var file_managementpb_dbaas_kubernetes_proto_depIdxs = []int32{ 15, // 0: dbaas.v1beta1.Operator.status:type_name -> dbaas.v1beta1.OperatorsStatus 2, // 1: dbaas.v1beta1.Operators.pxc:type_name -> dbaas.v1beta1.Operator diff --git a/api/managementpb/dbaas/kubernetes.pb.gw.go b/api/managementpb/dbaas/kubernetes.pb.gw.go index 5edca9b638..c58034b17c 100644 --- a/api/managementpb/dbaas/kubernetes.pb.gw.go +++ b/api/managementpb/dbaas/kubernetes.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListKubernetesClustersRequest @@ -45,7 +47,6 @@ func request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, marshaler msg, err := client.ListKubernetesClusters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Kubernetes_ListKubernetesClusters_0(ctx context.Context, mars msg, err := server.ListKubernetesClusters(ctx, &protoReq) return msg, metadata, err - } func request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, marshal msg, err := client.RegisterKubernetesCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Kubernetes_RegisterKubernetesCluster_0(ctx context.Context, m msg, err := server.RegisterKubernetesCluster(ctx, &protoReq) return msg, metadata, err - } func request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, marsh msg, err := client.UnregisterKubernetesCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Kubernetes_UnregisterKubernetesCluster_0(ctx context.Context, msg, err := server.UnregisterKubernetesCluster(ctx, &protoReq) return msg, metadata, err - } func request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marshaler ru msg, err := client.GetKubernetesCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Kubernetes_GetKubernetesCluster_0(ctx context.Context, marsha msg, err := server.GetKubernetesCluster(ctx, &protoReq) return msg, metadata, err - } func request_Kubernetes_GetResources_0(ctx context.Context, marshaler runtime.Marshaler, client KubernetesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Kubernetes_GetResources_0(ctx context.Context, marshaler runtime.Ma msg, err := client.GetResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Kubernetes_GetResources_0(ctx context.Context, marshaler runtime.Marshaler, server KubernetesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Kubernetes_GetResources_0(ctx context.Context, marshaler runt msg, err := server.GetResources(ctx, &protoReq) return msg, metadata, err - } // RegisterKubernetesHandlerServer registers the http handlers for service Kubernetes to "mux". @@ -206,7 +198,6 @@ func local_request_Kubernetes_GetResources_0(ctx context.Context, marshaler runt // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterKubernetesHandlerFromEndpoint instead. func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KubernetesServer) error { - mux.Handle("POST", pattern_Kubernetes_ListKubernetesClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -229,7 +220,6 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_ListKubernetesClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_RegisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -254,7 +244,6 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_RegisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_UnregisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -279,7 +268,6 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_UnregisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_GetKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -304,7 +292,6 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_GetResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -329,7 +316,6 @@ func RegisterKubernetesHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -372,7 +358,6 @@ func RegisterKubernetesHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "KubernetesClient" to call the correct interceptors. func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KubernetesClient) error { - mux.Handle("POST", pattern_Kubernetes_ListKubernetesClusters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -392,7 +377,6 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_ListKubernetesClusters_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_RegisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -414,7 +398,6 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_RegisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_UnregisterKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -436,7 +419,6 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_UnregisterKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_GetKubernetesCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -458,7 +440,6 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetKubernetesCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Kubernetes_GetResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -480,7 +461,6 @@ func RegisterKubernetesHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_Kubernetes_GetResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/dbaas/kubernetes.validator.pb.go b/api/managementpb/dbaas/kubernetes.validator.pb.go index 1c9b196baf..8bf5793ffd 100644 --- a/api/managementpb/dbaas/kubernetes.validator.pb.go +++ b/api/managementpb/dbaas/kubernetes.validator.pb.go @@ -6,16 +6,19 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *KubeAuth) Validate() error { if this.Kubeconfig == "" { @@ -23,9 +26,11 @@ func (this *KubeAuth) Validate() error { } return nil } + func (this *Operator) Validate() error { return nil } + func (this *Operators) Validate() error { if this.Pxc != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pxc); err != nil { @@ -39,9 +44,11 @@ func (this *Operators) Validate() error { } return nil } + func (this *ListKubernetesClustersRequest) Validate() error { return nil } + func (this *ListKubernetesClustersResponse) Validate() error { for _, item := range this.KubernetesClusters { if item != nil { @@ -52,6 +59,7 @@ func (this *ListKubernetesClustersResponse) Validate() error { } return nil } + func (this *ListKubernetesClustersResponse_Cluster) Validate() error { if this.Operators != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Operators); err != nil { @@ -60,6 +68,7 @@ func (this *ListKubernetesClustersResponse_Cluster) Validate() error { } return nil } + func (this *RegisterKubernetesClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -74,24 +83,29 @@ func (this *RegisterKubernetesClusterRequest) Validate() error { } return nil } + func (this *RegisterKubernetesClusterResponse) Validate() error { return nil } + func (this *UnregisterKubernetesClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } + func (this *UnregisterKubernetesClusterResponse) Validate() error { return nil } + func (this *GetKubernetesClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } + func (this *GetKubernetesClusterResponse) Validate() error { if this.KubeAuth != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.KubeAuth); err != nil { @@ -100,12 +114,14 @@ func (this *GetKubernetesClusterResponse) Validate() error { } return nil } + func (this *GetResourcesRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) } return nil } + func (this *GetResourcesResponse) Validate() error { if this.All != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.All); err != nil { diff --git a/api/managementpb/dbaas/kubernetes_grpc.pb.go b/api/managementpb/dbaas/kubernetes_grpc.pb.go index 9effffb0f8..2cd9633c08 100644 --- a/api/managementpb/dbaas/kubernetes_grpc.pb.go +++ b/api/managementpb/dbaas/kubernetes_grpc.pb.go @@ -8,6 +8,7 @@ package dbaasv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -113,21 +114,24 @@ type KubernetesServer interface { } // UnimplementedKubernetesServer must be embedded to have forward compatible implementations. -type UnimplementedKubernetesServer struct { -} +type UnimplementedKubernetesServer struct{} func (UnimplementedKubernetesServer) ListKubernetesClusters(context.Context, *ListKubernetesClustersRequest) (*ListKubernetesClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListKubernetesClusters not implemented") } + func (UnimplementedKubernetesServer) RegisterKubernetesCluster(context.Context, *RegisterKubernetesClusterRequest) (*RegisterKubernetesClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterKubernetesCluster not implemented") } + func (UnimplementedKubernetesServer) UnregisterKubernetesCluster(context.Context, *UnregisterKubernetesClusterRequest) (*UnregisterKubernetesClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UnregisterKubernetesCluster not implemented") } + func (UnimplementedKubernetesServer) GetKubernetesCluster(context.Context, *GetKubernetesClusterRequest) (*GetKubernetesClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKubernetesCluster not implemented") } + func (UnimplementedKubernetesServer) GetResources(context.Context, *GetResourcesRequest) (*GetResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetResources not implemented") } diff --git a/api/managementpb/dbaas/logs.pb.go b/api/managementpb/dbaas/logs.pb.go index a6b089bf3b..893c1c635c 100644 --- a/api/managementpb/dbaas/logs.pb.go +++ b/api/managementpb/dbaas/logs.pb.go @@ -7,12 +7,13 @@ package dbaasv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -258,12 +259,15 @@ func file_managementpb_dbaas_logs_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_logs_proto_rawDescData } -var file_managementpb_dbaas_logs_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_dbaas_logs_proto_goTypes = []interface{}{ - (*Logs)(nil), // 0: dbaas.v1beta1.Logs - (*GetLogsRequest)(nil), // 1: dbaas.v1beta1.GetLogsRequest - (*GetLogsResponse)(nil), // 2: dbaas.v1beta1.GetLogsResponse -} +var ( + file_managementpb_dbaas_logs_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_dbaas_logs_proto_goTypes = []interface{}{ + (*Logs)(nil), // 0: dbaas.v1beta1.Logs + (*GetLogsRequest)(nil), // 1: dbaas.v1beta1.GetLogsRequest + (*GetLogsResponse)(nil), // 2: dbaas.v1beta1.GetLogsResponse + } +) + var file_managementpb_dbaas_logs_proto_depIdxs = []int32{ 0, // 0: dbaas.v1beta1.GetLogsResponse.logs:type_name -> dbaas.v1beta1.Logs 1, // 1: dbaas.v1beta1.LogsAPI.GetLogs:input_type -> dbaas.v1beta1.GetLogsRequest diff --git a/api/managementpb/dbaas/logs.pb.gw.go b/api/managementpb/dbaas/logs.pb.gw.go index bc28cc7734..c60f668a9c 100644 --- a/api/managementpb/dbaas/logs.pb.gw.go +++ b/api/managementpb/dbaas/logs.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, client LogsAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetLogsRequest @@ -45,7 +47,6 @@ func request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.GetLogs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Marshaler, server LogsAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Mars msg, err := server.GetLogs(ctx, &protoReq) return msg, metadata, err - } // RegisterLogsAPIHandlerServer registers the http handlers for service LogsAPI to "mux". @@ -70,7 +70,6 @@ func local_request_LogsAPI_GetLogs_0(ctx context.Context, marshaler runtime.Mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLogsAPIHandlerFromEndpoint instead. func RegisterLogsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogsAPIServer) error { - mux.Handle("POST", pattern_LogsAPI_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterLogsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_LogsAPI_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterLogsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "LogsAPIClient" to call the correct interceptors. func RegisterLogsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogsAPIClient) error { - mux.Handle("POST", pattern_LogsAPI_GetLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterLogsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_LogsAPI_GetLogs_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_LogsAPI_GetLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "DBaaS", "GetLogs"}, "")) -) +var pattern_LogsAPI_GetLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "DBaaS", "GetLogs"}, "")) -var ( - forward_LogsAPI_GetLogs_0 = runtime.ForwardResponseMessage -) +var forward_LogsAPI_GetLogs_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/dbaas/logs.validator.pb.go b/api/managementpb/dbaas/logs.validator.pb.go index 347add8c66..ddf6b90767 100644 --- a/api/managementpb/dbaas/logs.validator.pb.go +++ b/api/managementpb/dbaas/logs.validator.pb.go @@ -6,20 +6,24 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Logs) Validate() error { return nil } + func (this *GetLogsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -29,6 +33,7 @@ func (this *GetLogsRequest) Validate() error { } return nil } + func (this *GetLogsResponse) Validate() error { for _, item := range this.Logs { if item != nil { diff --git a/api/managementpb/dbaas/logs_grpc.pb.go b/api/managementpb/dbaas/logs_grpc.pb.go index 195494a99c..4c97f93b54 100644 --- a/api/managementpb/dbaas/logs_grpc.pb.go +++ b/api/managementpb/dbaas/logs_grpc.pb.go @@ -8,6 +8,7 @@ package dbaasv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type LogsAPIServer interface { } // UnimplementedLogsAPIServer must be embedded to have forward compatible implementations. -type UnimplementedLogsAPIServer struct { -} +type UnimplementedLogsAPIServer struct{} func (UnimplementedLogsAPIServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLogs not implemented") diff --git a/api/managementpb/dbaas/psmdb_clusters.pb.go b/api/managementpb/dbaas/psmdb_clusters.pb.go index d970955e63..72f734ac68 100644 --- a/api/managementpb/dbaas/psmdb_clusters.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters.pb.go @@ -7,12 +7,13 @@ package dbaasv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -981,24 +982,27 @@ func file_managementpb_dbaas_psmdb_clusters_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_psmdb_clusters_proto_rawDescData } -var file_managementpb_dbaas_psmdb_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_managementpb_dbaas_psmdb_clusters_proto_goTypes = []interface{}{ - (*PSMDBClusterParams)(nil), // 0: dbaas.v1beta1.PSMDBClusterParams - (*GetPSMDBClusterCredentialsRequest)(nil), // 1: dbaas.v1beta1.GetPSMDBClusterCredentialsRequest - (*GetPSMDBClusterCredentialsResponse)(nil), // 2: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse - (*CreatePSMDBClusterRequest)(nil), // 3: dbaas.v1beta1.CreatePSMDBClusterRequest - (*CreatePSMDBClusterResponse)(nil), // 4: dbaas.v1beta1.CreatePSMDBClusterResponse - (*UpdatePSMDBClusterRequest)(nil), // 5: dbaas.v1beta1.UpdatePSMDBClusterRequest - (*UpdatePSMDBClusterResponse)(nil), // 6: dbaas.v1beta1.UpdatePSMDBClusterResponse - (*GetPSMDBClusterResourcesRequest)(nil), // 7: dbaas.v1beta1.GetPSMDBClusterResourcesRequest - (*GetPSMDBClusterResourcesResponse)(nil), // 8: dbaas.v1beta1.GetPSMDBClusterResourcesResponse - (*PSMDBClusterParams_ReplicaSet)(nil), // 9: dbaas.v1beta1.PSMDBClusterParams.ReplicaSet - (*GetPSMDBClusterCredentialsResponse_PSMDBCredentials)(nil), // 10: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.PSMDBCredentials - (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams)(nil), // 11: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams - (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet)(nil), // 12: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams.ReplicaSet - (*Resources)(nil), // 13: dbaas.v1beta1.Resources - (*ComputeResources)(nil), // 14: dbaas.v1beta1.ComputeResources -} +var ( + file_managementpb_dbaas_psmdb_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 13) + file_managementpb_dbaas_psmdb_clusters_proto_goTypes = []interface{}{ + (*PSMDBClusterParams)(nil), // 0: dbaas.v1beta1.PSMDBClusterParams + (*GetPSMDBClusterCredentialsRequest)(nil), // 1: dbaas.v1beta1.GetPSMDBClusterCredentialsRequest + (*GetPSMDBClusterCredentialsResponse)(nil), // 2: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse + (*CreatePSMDBClusterRequest)(nil), // 3: dbaas.v1beta1.CreatePSMDBClusterRequest + (*CreatePSMDBClusterResponse)(nil), // 4: dbaas.v1beta1.CreatePSMDBClusterResponse + (*UpdatePSMDBClusterRequest)(nil), // 5: dbaas.v1beta1.UpdatePSMDBClusterRequest + (*UpdatePSMDBClusterResponse)(nil), // 6: dbaas.v1beta1.UpdatePSMDBClusterResponse + (*GetPSMDBClusterResourcesRequest)(nil), // 7: dbaas.v1beta1.GetPSMDBClusterResourcesRequest + (*GetPSMDBClusterResourcesResponse)(nil), // 8: dbaas.v1beta1.GetPSMDBClusterResourcesResponse + (*PSMDBClusterParams_ReplicaSet)(nil), // 9: dbaas.v1beta1.PSMDBClusterParams.ReplicaSet + (*GetPSMDBClusterCredentialsResponse_PSMDBCredentials)(nil), // 10: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.PSMDBCredentials + (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams)(nil), // 11: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams + (*UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet)(nil), // 12: dbaas.v1beta1.UpdatePSMDBClusterRequest.UpdatePSMDBClusterParams.ReplicaSet + (*Resources)(nil), // 13: dbaas.v1beta1.Resources + (*ComputeResources)(nil), // 14: dbaas.v1beta1.ComputeResources + } +) + var file_managementpb_dbaas_psmdb_clusters_proto_depIdxs = []int32{ 9, // 0: dbaas.v1beta1.PSMDBClusterParams.replicaset:type_name -> dbaas.v1beta1.PSMDBClusterParams.ReplicaSet 10, // 1: dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.connection_credentials:type_name -> dbaas.v1beta1.GetPSMDBClusterCredentialsResponse.PSMDBCredentials diff --git a/api/managementpb/dbaas/psmdb_clusters.pb.gw.go b/api/managementpb/dbaas/psmdb_clusters.pb.gw.go index a872c7a007..ec3c123ef8 100644 --- a/api/managementpb/dbaas/psmdb_clusters.pb.gw.go +++ b/api/managementpb/dbaas/psmdb_clusters.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetPSMDBClusterCredentialsRequest @@ -45,7 +47,6 @@ func request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Context, mar msg, err := client.GetPSMDBClusterCredentials(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_PSMDBClusters_GetPSMDBClusterCredentials_0(ctx context.Contex msg, err := server.GetPSMDBClusterCredentials(ctx, &protoReq) return msg, metadata, err - } func request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marshaler r msg, err := client.CreatePSMDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_PSMDBClusters_CreatePSMDBCluster_0(ctx context.Context, marsh msg, err := server.CreatePSMDBCluster(ctx, &protoReq) return msg, metadata, err - } func request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marshaler r msg, err := client.UpdatePSMDBCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_PSMDBClusters_UpdatePSMDBCluster_0(ctx context.Context, marsh msg, err := server.UpdatePSMDBCluster(ctx, &protoReq) return msg, metadata, err - } func request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, client PSMDBClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, marsh msg, err := client.GetPSMDBClusterResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, server PSMDBClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, msg, err := server.GetPSMDBClusterResources(ctx, &protoReq) return msg, metadata, err - } // RegisterPSMDBClustersHandlerServer registers the http handlers for service PSMDBClusters to "mux". @@ -172,7 +166,6 @@ func local_request_PSMDBClusters_GetPSMDBClusterResources_0(ctx context.Context, // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPSMDBClustersHandlerFromEndpoint instead. func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PSMDBClustersServer) error { - mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -195,7 +188,6 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PSMDBClusters_CreatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -220,7 +212,6 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_CreatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PSMDBClusters_UpdatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -245,7 +236,6 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_UpdatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -270,7 +260,6 @@ func RegisterPSMDBClustersHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -313,7 +302,6 @@ func RegisterPSMDBClustersHandler(ctx context.Context, mux *runtime.ServeMux, co // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PSMDBClustersClient" to call the correct interceptors. func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PSMDBClustersClient) error { - mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -333,7 +321,6 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PSMDBClusters_CreatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -355,7 +342,6 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_CreatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PSMDBClusters_UpdatePSMDBCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -377,7 +363,6 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_UpdatePSMDBCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PSMDBClusters_GetPSMDBClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -399,7 +384,6 @@ func RegisterPSMDBClustersHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_PSMDBClusters_GetPSMDBClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/dbaas/psmdb_clusters.validator.pb.go b/api/managementpb/dbaas/psmdb_clusters.validator.pb.go index 563798f055..234b7fe254 100644 --- a/api/managementpb/dbaas/psmdb_clusters.validator.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters.validator.pb.go @@ -6,16 +6,19 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *PSMDBClusterParams) Validate() error { if this.Replicaset != nil { @@ -25,6 +28,7 @@ func (this *PSMDBClusterParams) Validate() error { } return nil } + func (this *PSMDBClusterParams_ReplicaSet) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -33,6 +37,7 @@ func (this *PSMDBClusterParams_ReplicaSet) Validate() error { } return nil } + func (this *GetPSMDBClusterCredentialsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -42,6 +47,7 @@ func (this *GetPSMDBClusterCredentialsRequest) Validate() error { } return nil } + func (this *GetPSMDBClusterCredentialsResponse) Validate() error { if this.ConnectionCredentials != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ConnectionCredentials); err != nil { @@ -50,9 +56,11 @@ func (this *GetPSMDBClusterCredentialsResponse) Validate() error { } return nil } + func (this *GetPSMDBClusterCredentialsResponse_PSMDBCredentials) Validate() error { return nil } + func (this *CreatePSMDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -64,9 +72,11 @@ func (this *CreatePSMDBClusterRequest) Validate() error { } return nil } + func (this *CreatePSMDBClusterResponse) Validate() error { return nil } + func (this *UpdatePSMDBClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -81,6 +91,7 @@ func (this *UpdatePSMDBClusterRequest) Validate() error { } return nil } + func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams) Validate() error { if this.Replicaset != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Replicaset); err != nil { @@ -89,6 +100,7 @@ func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams) Validate() error } return nil } + func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -97,9 +109,11 @@ func (this *UpdatePSMDBClusterRequest_UpdatePSMDBClusterParams_ReplicaSet) Valid } return nil } + func (this *UpdatePSMDBClusterResponse) Validate() error { return nil } + func (this *GetPSMDBClusterResourcesRequest) Validate() error { if this.Params != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Params); err != nil { @@ -108,6 +122,7 @@ func (this *GetPSMDBClusterResourcesRequest) Validate() error { } return nil } + func (this *GetPSMDBClusterResourcesResponse) Validate() error { if this.Expected != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Expected); err != nil { diff --git a/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go b/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go index 3c464d976d..5f2d42f9f3 100644 --- a/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go +++ b/api/managementpb/dbaas/psmdb_clusters_grpc.pb.go @@ -8,6 +8,7 @@ package dbaasv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -92,18 +93,20 @@ type PSMDBClustersServer interface { } // UnimplementedPSMDBClustersServer must be embedded to have forward compatible implementations. -type UnimplementedPSMDBClustersServer struct { -} +type UnimplementedPSMDBClustersServer struct{} func (UnimplementedPSMDBClustersServer) GetPSMDBClusterCredentials(context.Context, *GetPSMDBClusterCredentialsRequest) (*GetPSMDBClusterCredentialsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPSMDBClusterCredentials not implemented") } + func (UnimplementedPSMDBClustersServer) CreatePSMDBCluster(context.Context, *CreatePSMDBClusterRequest) (*CreatePSMDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePSMDBCluster not implemented") } + func (UnimplementedPSMDBClustersServer) UpdatePSMDBCluster(context.Context, *UpdatePSMDBClusterRequest) (*UpdatePSMDBClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePSMDBCluster not implemented") } + func (UnimplementedPSMDBClustersServer) GetPSMDBClusterResources(context.Context, *GetPSMDBClusterResourcesRequest) (*GetPSMDBClusterResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPSMDBClusterResources not implemented") } diff --git a/api/managementpb/dbaas/pxc_clusters.pb.go b/api/managementpb/dbaas/pxc_clusters.pb.go index b2762d8d45..500de30cc7 100644 --- a/api/managementpb/dbaas/pxc_clusters.pb.go +++ b/api/managementpb/dbaas/pxc_clusters.pb.go @@ -7,12 +7,13 @@ package dbaasv1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -1338,30 +1339,33 @@ func file_managementpb_dbaas_pxc_clusters_proto_rawDescGZIP() []byte { return file_managementpb_dbaas_pxc_clusters_proto_rawDescData } -var file_managementpb_dbaas_pxc_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_dbaas_pxc_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_managementpb_dbaas_pxc_clusters_proto_goTypes = []interface{}{ - (PXCBackupState)(0), // 0: dbaas.v1beta1.PXCBackupState - (*PXCClusterParams)(nil), // 1: dbaas.v1beta1.PXCClusterParams - (*GetPXCClusterCredentialsRequest)(nil), // 2: dbaas.v1beta1.GetPXCClusterCredentialsRequest - (*PXCClusterConnectionCredentials)(nil), // 3: dbaas.v1beta1.PXCClusterConnectionCredentials - (*GetPXCClusterCredentialsResponse)(nil), // 4: dbaas.v1beta1.GetPXCClusterCredentialsResponse - (*CreatePXCClusterRequest)(nil), // 5: dbaas.v1beta1.CreatePXCClusterRequest - (*CreatePXCClusterResponse)(nil), // 6: dbaas.v1beta1.CreatePXCClusterResponse - (*UpdatePXCClusterRequest)(nil), // 7: dbaas.v1beta1.UpdatePXCClusterRequest - (*UpdatePXCClusterResponse)(nil), // 8: dbaas.v1beta1.UpdatePXCClusterResponse - (*GetPXCClusterResourcesRequest)(nil), // 9: dbaas.v1beta1.GetPXCClusterResourcesRequest - (*GetPXCClusterResourcesResponse)(nil), // 10: dbaas.v1beta1.GetPXCClusterResourcesResponse - (*PXCClusterParams_PXC)(nil), // 11: dbaas.v1beta1.PXCClusterParams.PXC - (*PXCClusterParams_ProxySQL)(nil), // 12: dbaas.v1beta1.PXCClusterParams.ProxySQL - (*PXCClusterParams_HAProxy)(nil), // 13: dbaas.v1beta1.PXCClusterParams.HAProxy - (*UpdatePXCClusterRequest_UpdatePXCClusterParams)(nil), // 14: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams - (*UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC)(nil), // 15: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.PXC - (*UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL)(nil), // 16: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.ProxySQL - (*UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy)(nil), // 17: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.HAProxy - (*Resources)(nil), // 18: dbaas.v1beta1.Resources - (*ComputeResources)(nil), // 19: dbaas.v1beta1.ComputeResources -} +var ( + file_managementpb_dbaas_pxc_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_dbaas_pxc_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 17) + file_managementpb_dbaas_pxc_clusters_proto_goTypes = []interface{}{ + (PXCBackupState)(0), // 0: dbaas.v1beta1.PXCBackupState + (*PXCClusterParams)(nil), // 1: dbaas.v1beta1.PXCClusterParams + (*GetPXCClusterCredentialsRequest)(nil), // 2: dbaas.v1beta1.GetPXCClusterCredentialsRequest + (*PXCClusterConnectionCredentials)(nil), // 3: dbaas.v1beta1.PXCClusterConnectionCredentials + (*GetPXCClusterCredentialsResponse)(nil), // 4: dbaas.v1beta1.GetPXCClusterCredentialsResponse + (*CreatePXCClusterRequest)(nil), // 5: dbaas.v1beta1.CreatePXCClusterRequest + (*CreatePXCClusterResponse)(nil), // 6: dbaas.v1beta1.CreatePXCClusterResponse + (*UpdatePXCClusterRequest)(nil), // 7: dbaas.v1beta1.UpdatePXCClusterRequest + (*UpdatePXCClusterResponse)(nil), // 8: dbaas.v1beta1.UpdatePXCClusterResponse + (*GetPXCClusterResourcesRequest)(nil), // 9: dbaas.v1beta1.GetPXCClusterResourcesRequest + (*GetPXCClusterResourcesResponse)(nil), // 10: dbaas.v1beta1.GetPXCClusterResourcesResponse + (*PXCClusterParams_PXC)(nil), // 11: dbaas.v1beta1.PXCClusterParams.PXC + (*PXCClusterParams_ProxySQL)(nil), // 12: dbaas.v1beta1.PXCClusterParams.ProxySQL + (*PXCClusterParams_HAProxy)(nil), // 13: dbaas.v1beta1.PXCClusterParams.HAProxy + (*UpdatePXCClusterRequest_UpdatePXCClusterParams)(nil), // 14: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams + (*UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC)(nil), // 15: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.PXC + (*UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL)(nil), // 16: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.ProxySQL + (*UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy)(nil), // 17: dbaas.v1beta1.UpdatePXCClusterRequest.UpdatePXCClusterParams.HAProxy + (*Resources)(nil), // 18: dbaas.v1beta1.Resources + (*ComputeResources)(nil), // 19: dbaas.v1beta1.ComputeResources + } +) + var file_managementpb_dbaas_pxc_clusters_proto_depIdxs = []int32{ 11, // 0: dbaas.v1beta1.PXCClusterParams.pxc:type_name -> dbaas.v1beta1.PXCClusterParams.PXC 12, // 1: dbaas.v1beta1.PXCClusterParams.proxysql:type_name -> dbaas.v1beta1.PXCClusterParams.ProxySQL diff --git a/api/managementpb/dbaas/pxc_clusters.pb.gw.go b/api/managementpb/dbaas/pxc_clusters.pb.gw.go index 999a2872df..aa73aa9d3e 100644 --- a/api/managementpb/dbaas/pxc_clusters.pb.gw.go +++ b/api/managementpb/dbaas/pxc_clusters.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq GetPXCClusterCredentialsRequest @@ -45,7 +47,6 @@ func request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, marshal msg, err := client.GetPXCClusterCredentials(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_PXCClusters_GetPXCClusterCredentials_0(ctx context.Context, m msg, err := server.GetPXCClusterCredentials(ctx, &protoReq) return msg, metadata, err - } func request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler runti msg, err := client.CreatePXCCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_PXCClusters_CreatePXCCluster_0(ctx context.Context, marshaler msg, err := server.CreatePXCCluster(ctx, &protoReq) return msg, metadata, err - } func request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler runti msg, err := client.UpdatePXCCluster(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_PXCClusters_UpdatePXCCluster_0(ctx context.Context, marshaler msg, err := server.UpdatePXCCluster(ctx, &protoReq) return msg, metadata, err - } func request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, client PXCClustersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, marshaler msg, err := client.GetPXCClusterResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, marshaler runtime.Marshaler, server PXCClustersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, mar msg, err := server.GetPXCClusterResources(ctx, &protoReq) return msg, metadata, err - } // RegisterPXCClustersHandlerServer registers the http handlers for service PXCClusters to "mux". @@ -172,7 +166,6 @@ func local_request_PXCClusters_GetPXCClusterResources_0(ctx context.Context, mar // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPXCClustersHandlerFromEndpoint instead. func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PXCClustersServer) error { - mux.Handle("POST", pattern_PXCClusters_GetPXCClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -195,7 +188,6 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PXCClusters_CreatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -220,7 +212,6 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_CreatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PXCClusters_UpdatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -245,7 +236,6 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_UpdatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PXCClusters_GetPXCClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -270,7 +260,6 @@ func RegisterPXCClustersHandlerServer(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -313,7 +302,6 @@ func RegisterPXCClustersHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PXCClustersClient" to call the correct interceptors. func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PXCClustersClient) error { - mux.Handle("POST", pattern_PXCClusters_GetPXCClusterCredentials_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -333,7 +321,6 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterCredentials_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PXCClusters_CreatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -355,7 +342,6 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_CreatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PXCClusters_UpdatePXCCluster_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -377,7 +363,6 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_UpdatePXCCluster_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_PXCClusters_GetPXCClusterResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -399,7 +384,6 @@ func RegisterPXCClustersHandlerClient(ctx context.Context, mux *runtime.ServeMux } forward_PXCClusters_GetPXCClusterResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/dbaas/pxc_clusters.validator.pb.go b/api/managementpb/dbaas/pxc_clusters.validator.pb.go index 7ae8ab5fa9..4fe0c0d0be 100644 --- a/api/managementpb/dbaas/pxc_clusters.validator.pb.go +++ b/api/managementpb/dbaas/pxc_clusters.validator.pb.go @@ -6,16 +6,19 @@ package dbaasv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *PXCClusterParams) Validate() error { if this.Pxc != nil { @@ -35,6 +38,7 @@ func (this *PXCClusterParams) Validate() error { } return nil } + func (this *PXCClusterParams_PXC) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -43,6 +47,7 @@ func (this *PXCClusterParams_PXC) Validate() error { } return nil } + func (this *PXCClusterParams_ProxySQL) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -51,6 +56,7 @@ func (this *PXCClusterParams_ProxySQL) Validate() error { } return nil } + func (this *PXCClusterParams_HAProxy) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -59,6 +65,7 @@ func (this *PXCClusterParams_HAProxy) Validate() error { } return nil } + func (this *GetPXCClusterCredentialsRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -68,9 +75,11 @@ func (this *GetPXCClusterCredentialsRequest) Validate() error { } return nil } + func (this *PXCClusterConnectionCredentials) Validate() error { return nil } + func (this *GetPXCClusterCredentialsResponse) Validate() error { if this.ConnectionCredentials != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ConnectionCredentials); err != nil { @@ -79,6 +88,7 @@ func (this *GetPXCClusterCredentialsResponse) Validate() error { } return nil } + func (this *CreatePXCClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -90,9 +100,11 @@ func (this *CreatePXCClusterRequest) Validate() error { } return nil } + func (this *CreatePXCClusterResponse) Validate() error { return nil } + func (this *UpdatePXCClusterRequest) Validate() error { if this.KubernetesClusterName == "" { return github_com_mwitkow_go_proto_validators.FieldError("KubernetesClusterName", fmt.Errorf(`value '%v' must not be an empty string`, this.KubernetesClusterName)) @@ -107,6 +119,7 @@ func (this *UpdatePXCClusterRequest) Validate() error { } return nil } + func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams) Validate() error { if this.Pxc != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Pxc); err != nil { @@ -125,6 +138,7 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams) Validate() error { } return nil } + func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -133,6 +147,7 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_PXC) Validate() error } return nil } + func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -141,6 +156,7 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_ProxySQL) Validate() } return nil } + func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy) Validate() error { if this.ComputeResources != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ComputeResources); err != nil { @@ -149,9 +165,11 @@ func (this *UpdatePXCClusterRequest_UpdatePXCClusterParams_HAProxy) Validate() e } return nil } + func (this *UpdatePXCClusterResponse) Validate() error { return nil } + func (this *GetPXCClusterResourcesRequest) Validate() error { if nil == this.Params { return github_com_mwitkow_go_proto_validators.FieldError("Params", fmt.Errorf("message must exist")) @@ -163,6 +181,7 @@ func (this *GetPXCClusterResourcesRequest) Validate() error { } return nil } + func (this *GetPXCClusterResourcesResponse) Validate() error { if this.Expected != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Expected); err != nil { diff --git a/api/managementpb/dbaas/pxc_clusters_grpc.pb.go b/api/managementpb/dbaas/pxc_clusters_grpc.pb.go index 5d7d477c5f..c3345955bb 100644 --- a/api/managementpb/dbaas/pxc_clusters_grpc.pb.go +++ b/api/managementpb/dbaas/pxc_clusters_grpc.pb.go @@ -8,6 +8,7 @@ package dbaasv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -92,18 +93,20 @@ type PXCClustersServer interface { } // UnimplementedPXCClustersServer must be embedded to have forward compatible implementations. -type UnimplementedPXCClustersServer struct { -} +type UnimplementedPXCClustersServer struct{} func (UnimplementedPXCClustersServer) GetPXCClusterCredentials(context.Context, *GetPXCClusterCredentialsRequest) (*GetPXCClusterCredentialsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPXCClusterCredentials not implemented") } + func (UnimplementedPXCClustersServer) CreatePXCCluster(context.Context, *CreatePXCClusterRequest) (*CreatePXCClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePXCCluster not implemented") } + func (UnimplementedPXCClustersServer) UpdatePXCCluster(context.Context, *UpdatePXCClusterRequest) (*UpdatePXCClusterResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePXCCluster not implemented") } + func (UnimplementedPXCClustersServer) GetPXCClusterResources(context.Context, *GetPXCClusterResourcesRequest) (*GetPXCClusterResourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPXCClusterResources not implemented") } diff --git a/api/managementpb/external.pb.go b/api/managementpb/external.pb.go index c9c1e31f67..cfc297ff17 100644 --- a/api/managementpb/external.pb.go +++ b/api/managementpb/external.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -432,16 +434,19 @@ func file_managementpb_external_proto_rawDescGZIP() []byte { return file_managementpb_external_proto_rawDescData } -var file_managementpb_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_external_proto_goTypes = []interface{}{ - (*AddExternalRequest)(nil), // 0: management.AddExternalRequest - (*AddExternalResponse)(nil), // 1: management.AddExternalResponse - nil, // 2: management.AddExternalRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (*inventorypb.ExternalService)(nil), // 5: inventory.ExternalService - (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter -} +var ( + file_managementpb_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_external_proto_goTypes = []interface{}{ + (*AddExternalRequest)(nil), // 0: management.AddExternalRequest + (*AddExternalResponse)(nil), // 1: management.AddExternalResponse + nil, // 2: management.AddExternalRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (*inventorypb.ExternalService)(nil), // 5: inventory.ExternalService + (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter + } +) + var file_managementpb_external_proto_depIdxs = []int32{ 3, // 0: management.AddExternalRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddExternalRequest.custom_labels:type_name -> management.AddExternalRequest.CustomLabelsEntry diff --git a/api/managementpb/external.pb.gw.go b/api/managementpb/external.pb.gw.go index 71cd105af2..b14e33434d 100644 --- a/api/managementpb/external.pb.gw.go +++ b/api/managementpb/external.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_External_AddExternal_0(ctx context.Context, marshaler runtime.Marshaler, client ExternalClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddExternalRequest @@ -45,7 +47,6 @@ func request_External_AddExternal_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.AddExternal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_External_AddExternal_0(ctx context.Context, marshaler runtime.Marshaler, server ExternalServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_External_AddExternal_0(ctx context.Context, marshaler runtime msg, err := server.AddExternal(ctx, &protoReq) return msg, metadata, err - } // RegisterExternalHandlerServer registers the http handlers for service External to "mux". @@ -70,7 +70,6 @@ func local_request_External_AddExternal_0(ctx context.Context, marshaler runtime // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExternalHandlerFromEndpoint instead. func RegisterExternalHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExternalServer) error { - mux.Handle("POST", pattern_External_AddExternal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterExternalHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_External_AddExternal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterExternalHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ExternalClient" to call the correct interceptors. func RegisterExternalHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExternalClient) error { - mux.Handle("POST", pattern_External_AddExternal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterExternalHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_External_AddExternal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_External_AddExternal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "External", "Add"}, "")) -) +var pattern_External_AddExternal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "External", "Add"}, "")) -var ( - forward_External_AddExternal_0 = runtime.ForwardResponseMessage -) +var forward_External_AddExternal_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/external.validator.pb.go b/api/managementpb/external.validator.pb.go index 14e0892d18..0a5eeaa6b5 100644 --- a/api/managementpb/external.validator.pb.go +++ b/api/managementpb/external.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddExternalRequest) Validate() error { if this.AddNode != nil { @@ -37,6 +41,7 @@ func (this *AddExternalRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddExternalResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/external_grpc.pb.go b/api/managementpb/external_grpc.pb.go index b212e65944..13ebbd6966 100644 --- a/api/managementpb/external_grpc.pb.go +++ b/api/managementpb/external_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -57,8 +58,7 @@ type ExternalServer interface { } // UnimplementedExternalServer must be embedded to have forward compatible implementations. -type UnimplementedExternalServer struct { -} +type UnimplementedExternalServer struct{} func (UnimplementedExternalServer) AddExternal(context.Context, *AddExternalRequest) (*AddExternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddExternal not implemented") diff --git a/api/managementpb/haproxy.pb.go b/api/managementpb/haproxy.pb.go index 2f9340154d..f488fe840b 100644 --- a/api/managementpb/haproxy.pb.go +++ b/api/managementpb/haproxy.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -404,16 +406,19 @@ func file_managementpb_haproxy_proto_rawDescGZIP() []byte { return file_managementpb_haproxy_proto_rawDescData } -var file_managementpb_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_haproxy_proto_goTypes = []interface{}{ - (*AddHAProxyRequest)(nil), // 0: management.AddHAProxyRequest - (*AddHAProxyResponse)(nil), // 1: management.AddHAProxyResponse - nil, // 2: management.AddHAProxyRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (*inventorypb.HAProxyService)(nil), // 5: inventory.HAProxyService - (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter -} +var ( + file_managementpb_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_haproxy_proto_goTypes = []interface{}{ + (*AddHAProxyRequest)(nil), // 0: management.AddHAProxyRequest + (*AddHAProxyResponse)(nil), // 1: management.AddHAProxyResponse + nil, // 2: management.AddHAProxyRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (*inventorypb.HAProxyService)(nil), // 5: inventory.HAProxyService + (*inventorypb.ExternalExporter)(nil), // 6: inventory.ExternalExporter + } +) + var file_managementpb_haproxy_proto_depIdxs = []int32{ 3, // 0: management.AddHAProxyRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddHAProxyRequest.custom_labels:type_name -> management.AddHAProxyRequest.CustomLabelsEntry diff --git a/api/managementpb/haproxy.pb.gw.go b/api/managementpb/haproxy.pb.gw.go index f91357b4df..537c208178 100644 --- a/api/managementpb/haproxy.pb.gw.go +++ b/api/managementpb/haproxy.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.Marshaler, client HAProxyClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddHAProxyRequest @@ -45,7 +47,6 @@ func request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.AddHAProxy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.Marshaler, server HAProxyServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.M msg, err := server.AddHAProxy(ctx, &protoReq) return msg, metadata, err - } // RegisterHAProxyHandlerServer registers the http handlers for service HAProxy to "mux". @@ -70,7 +70,6 @@ func local_request_HAProxy_AddHAProxy_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHAProxyHandlerFromEndpoint instead. func RegisterHAProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HAProxyServer) error { - mux.Handle("POST", pattern_HAProxy_AddHAProxy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterHAProxyHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_HAProxy_AddHAProxy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterHAProxyHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "HAProxyClient" to call the correct interceptors. func RegisterHAProxyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HAProxyClient) error { - mux.Handle("POST", pattern_HAProxy_AddHAProxy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterHAProxyHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_HAProxy_AddHAProxy_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_HAProxy_AddHAProxy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "HAProxy", "Add"}, "")) -) +var pattern_HAProxy_AddHAProxy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "HAProxy", "Add"}, "")) -var ( - forward_HAProxy_AddHAProxy_0 = runtime.ForwardResponseMessage -) +var forward_HAProxy_AddHAProxy_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/haproxy.validator.pb.go b/api/managementpb/haproxy.validator.pb.go index 8bd0341acb..d2818d0e5d 100644 --- a/api/managementpb/haproxy.validator.pb.go +++ b/api/managementpb/haproxy.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddHAProxyRequest) Validate() error { if this.AddNode != nil { @@ -37,6 +41,7 @@ func (this *AddHAProxyRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddHAProxyResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/haproxy_grpc.pb.go b/api/managementpb/haproxy_grpc.pb.go index e908c85c46..e59cb8fe96 100644 --- a/api/managementpb/haproxy_grpc.pb.go +++ b/api/managementpb/haproxy_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -57,8 +58,7 @@ type HAProxyServer interface { } // UnimplementedHAProxyServer must be embedded to have forward compatible implementations. -type UnimplementedHAProxyServer struct { -} +type UnimplementedHAProxyServer struct{} func (UnimplementedHAProxyServer) AddHAProxy(context.Context, *AddHAProxyRequest) (*AddHAProxyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddHAProxy not implemented") diff --git a/api/managementpb/ia/alerts.pb.go b/api/managementpb/ia/alerts.pb.go index c3562e557b..e82eae3ec9 100644 --- a/api/managementpb/ia/alerts.pb.go +++ b/api/managementpb/ia/alerts.pb.go @@ -7,14 +7,16 @@ package iav1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - managementpb "github.com/percona/pmm/api/managementpb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + + managementpb "github.com/percona/pmm/api/managementpb" ) const ( @@ -450,22 +452,25 @@ func file_managementpb_ia_alerts_proto_rawDescGZIP() []byte { return file_managementpb_ia_alerts_proto_rawDescData } -var file_managementpb_ia_alerts_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_managementpb_ia_alerts_proto_goTypes = []interface{}{ - (*Alert)(nil), // 0: ia.v1beta1.Alert - (*ListAlertsRequest)(nil), // 1: ia.v1beta1.ListAlertsRequest - (*ListAlertsResponse)(nil), // 2: ia.v1beta1.ListAlertsResponse - (*ToggleAlertsRequest)(nil), // 3: ia.v1beta1.ToggleAlertsRequest - (*ToggleAlertsResponse)(nil), // 4: ia.v1beta1.ToggleAlertsResponse - nil, // 5: ia.v1beta1.Alert.LabelsEntry - (managementpb.Severity)(0), // 6: management.Severity - (Status)(0), // 7: ia.v1beta1.Status - (*Rule)(nil), // 8: ia.v1beta1.Rule - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*managementpb.PageParams)(nil), // 10: management.PageParams - (*managementpb.PageTotals)(nil), // 11: management.PageTotals - (managementpb.BooleanFlag)(0), // 12: managementpb.BooleanFlag -} +var ( + file_managementpb_ia_alerts_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_managementpb_ia_alerts_proto_goTypes = []interface{}{ + (*Alert)(nil), // 0: ia.v1beta1.Alert + (*ListAlertsRequest)(nil), // 1: ia.v1beta1.ListAlertsRequest + (*ListAlertsResponse)(nil), // 2: ia.v1beta1.ListAlertsResponse + (*ToggleAlertsRequest)(nil), // 3: ia.v1beta1.ToggleAlertsRequest + (*ToggleAlertsResponse)(nil), // 4: ia.v1beta1.ToggleAlertsResponse + nil, // 5: ia.v1beta1.Alert.LabelsEntry + (managementpb.Severity)(0), // 6: management.Severity + (Status)(0), // 7: ia.v1beta1.Status + (*Rule)(nil), // 8: ia.v1beta1.Rule + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*managementpb.PageParams)(nil), // 10: management.PageParams + (*managementpb.PageTotals)(nil), // 11: management.PageTotals + (managementpb.BooleanFlag)(0), // 12: managementpb.BooleanFlag + } +) + var file_managementpb_ia_alerts_proto_depIdxs = []int32{ 6, // 0: ia.v1beta1.Alert.severity:type_name -> management.Severity 7, // 1: ia.v1beta1.Alert.status:type_name -> ia.v1beta1.Status diff --git a/api/managementpb/ia/alerts.pb.gw.go b/api/managementpb/ia/alerts.pb.gw.go index 62e7a793d9..ec6ec8cacd 100644 --- a/api/managementpb/ia/alerts.pb.gw.go +++ b/api/managementpb/ia/alerts.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Marshaler, client AlertsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListAlertsRequest @@ -45,7 +47,6 @@ func request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.ListAlerts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Marshaler, server AlertsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Alerts_ListAlerts_0(ctx context.Context, marshaler runtime.Ma msg, err := server.ListAlerts(ctx, &protoReq) return msg, metadata, err - } func request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime.Marshaler, client AlertsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.ToggleAlerts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime.Marshaler, server AlertsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime. msg, err := server.ToggleAlerts(ctx, &protoReq) return msg, metadata, err - } // RegisterAlertsHandlerServer registers the http handlers for service Alerts to "mux". @@ -104,7 +102,6 @@ func local_request_Alerts_ToggleAlerts_0(ctx context.Context, marshaler runtime. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAlertsHandlerFromEndpoint instead. func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertsServer) error { - mux.Handle("POST", pattern_Alerts_ListAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -127,7 +124,6 @@ func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Alerts_ListAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerts_ToggleAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -152,7 +148,6 @@ func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Alerts_ToggleAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -195,7 +190,6 @@ func RegisterAlertsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "AlertsClient" to call the correct interceptors. func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertsClient) error { - mux.Handle("POST", pattern_Alerts_ListAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -215,7 +209,6 @@ func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Alerts_ListAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Alerts_ToggleAlerts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -237,7 +230,6 @@ func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Alerts_ToggleAlerts_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/ia/alerts.validator.pb.go b/api/managementpb/ia/alerts.validator.pb.go index 6bd42a168f..d41186729f 100644 --- a/api/managementpb/ia/alerts.validator.pb.go +++ b/api/managementpb/ia/alerts.validator.pb.go @@ -6,18 +6,22 @@ package iav1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" + _ "github.com/percona/pmm/api/managementpb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Alert) Validate() error { // Validation of proto3 map<> fields is unsupported. @@ -38,6 +42,7 @@ func (this *Alert) Validate() error { } return nil } + func (this *ListAlertsRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -46,6 +51,7 @@ func (this *ListAlertsRequest) Validate() error { } return nil } + func (this *ListAlertsResponse) Validate() error { for _, item := range this.Alerts { if item != nil { @@ -61,9 +67,11 @@ func (this *ListAlertsResponse) Validate() error { } return nil } + func (this *ToggleAlertsRequest) Validate() error { return nil } + func (this *ToggleAlertsResponse) Validate() error { return nil } diff --git a/api/managementpb/ia/alerts_grpc.pb.go b/api/managementpb/ia/alerts_grpc.pb.go index 781bc5de4d..9f4e5a45b3 100644 --- a/api/managementpb/ia/alerts_grpc.pb.go +++ b/api/managementpb/ia/alerts_grpc.pb.go @@ -8,6 +8,7 @@ package iav1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -66,12 +67,12 @@ type AlertsServer interface { } // UnimplementedAlertsServer must be embedded to have forward compatible implementations. -type UnimplementedAlertsServer struct { -} +type UnimplementedAlertsServer struct{} func (UnimplementedAlertsServer) ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAlerts not implemented") } + func (UnimplementedAlertsServer) ToggleAlerts(context.Context, *ToggleAlertsRequest) (*ToggleAlertsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ToggleAlerts not implemented") } diff --git a/api/managementpb/ia/channels.pb.go b/api/managementpb/ia/channels.pb.go index 5b1cea1695..5810f4bf49 100644 --- a/api/managementpb/ia/channels.pb.go +++ b/api/managementpb/ia/channels.pb.go @@ -7,13 +7,15 @@ package iav1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" - managementpb "github.com/percona/pmm/api/managementpb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + managementpb "github.com/percona/pmm/api/managementpb" ) const ( @@ -1376,27 +1378,30 @@ func file_managementpb_ia_channels_proto_rawDescGZIP() []byte { return file_managementpb_ia_channels_proto_rawDescData } -var file_managementpb_ia_channels_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_managementpb_ia_channels_proto_goTypes = []interface{}{ - (*BasicAuth)(nil), // 0: ia.v1beta1.BasicAuth - (*TLSConfig)(nil), // 1: ia.v1beta1.TLSConfig - (*HTTPConfig)(nil), // 2: ia.v1beta1.HTTPConfig - (*EmailConfig)(nil), // 3: ia.v1beta1.EmailConfig - (*PagerDutyConfig)(nil), // 4: ia.v1beta1.PagerDutyConfig - (*SlackConfig)(nil), // 5: ia.v1beta1.SlackConfig - (*WebhookConfig)(nil), // 6: ia.v1beta1.WebhookConfig - (*Channel)(nil), // 7: ia.v1beta1.Channel - (*ListChannelsRequest)(nil), // 8: ia.v1beta1.ListChannelsRequest - (*ListChannelsResponse)(nil), // 9: ia.v1beta1.ListChannelsResponse - (*AddChannelRequest)(nil), // 10: ia.v1beta1.AddChannelRequest - (*AddChannelResponse)(nil), // 11: ia.v1beta1.AddChannelResponse - (*ChangeChannelRequest)(nil), // 12: ia.v1beta1.ChangeChannelRequest - (*ChangeChannelResponse)(nil), // 13: ia.v1beta1.ChangeChannelResponse - (*RemoveChannelRequest)(nil), // 14: ia.v1beta1.RemoveChannelRequest - (*RemoveChannelResponse)(nil), // 15: ia.v1beta1.RemoveChannelResponse - (*managementpb.PageParams)(nil), // 16: management.PageParams - (*managementpb.PageTotals)(nil), // 17: management.PageTotals -} +var ( + file_managementpb_ia_channels_proto_msgTypes = make([]protoimpl.MessageInfo, 16) + file_managementpb_ia_channels_proto_goTypes = []interface{}{ + (*BasicAuth)(nil), // 0: ia.v1beta1.BasicAuth + (*TLSConfig)(nil), // 1: ia.v1beta1.TLSConfig + (*HTTPConfig)(nil), // 2: ia.v1beta1.HTTPConfig + (*EmailConfig)(nil), // 3: ia.v1beta1.EmailConfig + (*PagerDutyConfig)(nil), // 4: ia.v1beta1.PagerDutyConfig + (*SlackConfig)(nil), // 5: ia.v1beta1.SlackConfig + (*WebhookConfig)(nil), // 6: ia.v1beta1.WebhookConfig + (*Channel)(nil), // 7: ia.v1beta1.Channel + (*ListChannelsRequest)(nil), // 8: ia.v1beta1.ListChannelsRequest + (*ListChannelsResponse)(nil), // 9: ia.v1beta1.ListChannelsResponse + (*AddChannelRequest)(nil), // 10: ia.v1beta1.AddChannelRequest + (*AddChannelResponse)(nil), // 11: ia.v1beta1.AddChannelResponse + (*ChangeChannelRequest)(nil), // 12: ia.v1beta1.ChangeChannelRequest + (*ChangeChannelResponse)(nil), // 13: ia.v1beta1.ChangeChannelResponse + (*RemoveChannelRequest)(nil), // 14: ia.v1beta1.RemoveChannelRequest + (*RemoveChannelResponse)(nil), // 15: ia.v1beta1.RemoveChannelResponse + (*managementpb.PageParams)(nil), // 16: management.PageParams + (*managementpb.PageTotals)(nil), // 17: management.PageTotals + } +) + var file_managementpb_ia_channels_proto_depIdxs = []int32{ 0, // 0: ia.v1beta1.HTTPConfig.basic_auth:type_name -> ia.v1beta1.BasicAuth 1, // 1: ia.v1beta1.HTTPConfig.tls_config:type_name -> ia.v1beta1.TLSConfig diff --git a/api/managementpb/ia/channels.pb.gw.go b/api/managementpb/ia/channels.pb.gw.go index 2283d38f6f..16251041d6 100644 --- a/api/managementpb/ia/channels.pb.gw.go +++ b/api/managementpb/ia/channels.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Channels_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListChannelsRequest @@ -45,7 +47,6 @@ func request_Channels_ListChannels_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ListChannels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Channels_ListChannels_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Channels_ListChannels_0(ctx context.Context, marshaler runtim msg, err := server.ListChannels(ctx, &protoReq) return msg, metadata, err - } func request_Channels_AddChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Channels_AddChannel_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.AddChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Channels_AddChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Channels_AddChannel_0(ctx context.Context, marshaler runtime. msg, err := server.AddChannel(ctx, &protoReq) return msg, metadata, err - } func request_Channels_ChangeChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Channels_ChangeChannel_0(ctx context.Context, marshaler runtime.Mar msg, err := client.ChangeChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Channels_ChangeChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Channels_ChangeChannel_0(ctx context.Context, marshaler runti msg, err := server.ChangeChannel(ctx, &protoReq) return msg, metadata, err - } func request_Channels_RemoveChannel_0(ctx context.Context, marshaler runtime.Marshaler, client ChannelsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Channels_RemoveChannel_0(ctx context.Context, marshaler runtime.Mar msg, err := client.RemoveChannel(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Channels_RemoveChannel_0(ctx context.Context, marshaler runtime.Marshaler, server ChannelsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Channels_RemoveChannel_0(ctx context.Context, marshaler runti msg, err := server.RemoveChannel(ctx, &protoReq) return msg, metadata, err - } // RegisterChannelsHandlerServer registers the http handlers for service Channels to "mux". @@ -172,7 +166,6 @@ func local_request_Channels_RemoveChannel_0(ctx context.Context, marshaler runti // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterChannelsHandlerFromEndpoint instead. func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChannelsServer) error { - mux.Handle("POST", pattern_Channels_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -195,7 +188,6 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_ListChannels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Channels_AddChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -220,7 +212,6 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_AddChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Channels_ChangeChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -245,7 +236,6 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_ChangeChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Channels_RemoveChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -270,7 +260,6 @@ func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Channels_RemoveChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -313,7 +302,6 @@ func RegisterChannelsHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ChannelsClient" to call the correct interceptors. func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChannelsClient) error { - mux.Handle("POST", pattern_Channels_ListChannels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -333,7 +321,6 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_ListChannels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Channels_AddChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -355,7 +342,6 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_AddChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Channels_ChangeChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -377,7 +363,6 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_ChangeChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Channels_RemoveChannel_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -399,7 +384,6 @@ func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Channels_RemoveChannel_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/ia/channels.validator.pb.go b/api/managementpb/ia/channels.validator.pb.go index 2103f00548..fc4912c225 100644 --- a/api/managementpb/ia/channels.validator.pb.go +++ b/api/managementpb/ia/channels.validator.pb.go @@ -6,24 +6,30 @@ package iav1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/managementpb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *BasicAuth) Validate() error { return nil } + func (this *TLSConfig) Validate() error { return nil } + func (this *HTTPConfig) Validate() error { if this.BasicAuth != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.BasicAuth); err != nil { @@ -37,21 +43,25 @@ func (this *HTTPConfig) Validate() error { } return nil } + func (this *EmailConfig) Validate() error { if len(this.To) < 1 { return github_com_mwitkow_go_proto_validators.FieldError("To", fmt.Errorf(`value '%v' must contain at least 1 elements`, this.To)) } return nil } + func (this *PagerDutyConfig) Validate() error { return nil } + func (this *SlackConfig) Validate() error { if this.Channel == "" { return github_com_mwitkow_go_proto_validators.FieldError("Channel", fmt.Errorf(`value '%v' must not be an empty string`, this.Channel)) } return nil } + func (this *WebhookConfig) Validate() error { if this.Url == "" { return github_com_mwitkow_go_proto_validators.FieldError("Url", fmt.Errorf(`value '%v' must not be an empty string`, this.Url)) @@ -63,6 +73,7 @@ func (this *WebhookConfig) Validate() error { } return nil } + func (this *Channel) Validate() error { if oneOfNester, ok := this.GetChannel().(*Channel_EmailConfig); ok { if oneOfNester.EmailConfig != nil { @@ -94,6 +105,7 @@ func (this *Channel) Validate() error { } return nil } + func (this *ListChannelsRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -102,6 +114,7 @@ func (this *ListChannelsRequest) Validate() error { } return nil } + func (this *ListChannelsResponse) Validate() error { for _, item := range this.Channels { if item != nil { @@ -117,6 +130,7 @@ func (this *ListChannelsResponse) Validate() error { } return nil } + func (this *AddChannelRequest) Validate() error { if this.Summary == "" { return github_com_mwitkow_go_proto_validators.FieldError("Summary", fmt.Errorf(`value '%v' must not be an empty string`, this.Summary)) @@ -143,9 +157,11 @@ func (this *AddChannelRequest) Validate() error { } return nil } + func (this *AddChannelResponse) Validate() error { return nil } + func (this *ChangeChannelRequest) Validate() error { if this.ChannelId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ChannelId", fmt.Errorf(`value '%v' must not be an empty string`, this.ChannelId)) @@ -172,15 +188,18 @@ func (this *ChangeChannelRequest) Validate() error { } return nil } + func (this *ChangeChannelResponse) Validate() error { return nil } + func (this *RemoveChannelRequest) Validate() error { if this.ChannelId == "" { return github_com_mwitkow_go_proto_validators.FieldError("ChannelId", fmt.Errorf(`value '%v' must not be an empty string`, this.ChannelId)) } return nil } + func (this *RemoveChannelResponse) Validate() error { return nil } diff --git a/api/managementpb/ia/channels_grpc.pb.go b/api/managementpb/ia/channels_grpc.pb.go index 17edaaf93b..4b88513542 100644 --- a/api/managementpb/ia/channels_grpc.pb.go +++ b/api/managementpb/ia/channels_grpc.pb.go @@ -8,6 +8,7 @@ package iav1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -92,18 +93,20 @@ type ChannelsServer interface { } // UnimplementedChannelsServer must be embedded to have forward compatible implementations. -type UnimplementedChannelsServer struct { -} +type UnimplementedChannelsServer struct{} func (UnimplementedChannelsServer) ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListChannels not implemented") } + func (UnimplementedChannelsServer) AddChannel(context.Context, *AddChannelRequest) (*AddChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddChannel not implemented") } + func (UnimplementedChannelsServer) ChangeChannel(context.Context, *ChangeChannelRequest) (*ChangeChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeChannel not implemented") } + func (UnimplementedChannelsServer) RemoveChannel(context.Context, *RemoveChannelRequest) (*RemoveChannelResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveChannel not implemented") } diff --git a/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go b/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go index aa37053416..b2937ec92e 100644 --- a/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go +++ b/api/managementpb/ia/json/client/alerts/list_alerts_parameters.go @@ -60,7 +60,6 @@ ListAlertsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListAlertsParams struct { - // Body. Body ListAlertsBody @@ -130,7 +129,6 @@ func (o *ListAlertsParams) SetBody(body ListAlertsBody) { // WriteToRequest writes these params to a swagger request func (o *ListAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/alerts/list_alerts_responses.go b/api/managementpb/ia/json/client/alerts/list_alerts_responses.go index fa01638a2d..aa522bddd0 100644 --- a/api/managementpb/ia/json/client/alerts/list_alerts_responses.go +++ b/api/managementpb/ia/json/client/alerts/list_alerts_responses.go @@ -62,12 +62,12 @@ type ListAlertsOK struct { func (o *ListAlertsOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/List][%d] listAlertsOk %+v", 200, o.Payload) } + func (o *ListAlertsOK) GetPayload() *ListAlertsOKBody { return o.Payload } func (o *ListAlertsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAlertsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListAlertsDefault) Code() int { func (o *ListAlertsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/List][%d] ListAlerts default %+v", o._statusCode, o.Payload) } + func (o *ListAlertsDefault) GetPayload() *ListAlertsDefaultBody { return o.Payload } func (o *ListAlertsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAlertsDefaultBody) // response payload @@ -125,7 +125,6 @@ ListAlertsBody list alerts body swagger:model ListAlertsBody */ type ListAlertsBody struct { - // page params PageParams *ListAlertsParamsBodyPageParams `json:"page_params,omitempty"` } @@ -178,7 +177,6 @@ func (o *ListAlertsBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *ListAlertsBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { - if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -216,7 +214,6 @@ ListAlertsDefaultBody list alerts default body swagger:model ListAlertsDefaultBody */ type ListAlertsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -282,9 +279,7 @@ func (o *ListAlertsDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *ListAlertsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -295,7 +290,6 @@ func (o *ListAlertsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -324,7 +318,6 @@ ListAlertsDefaultBodyDetailsItems0 list alerts default body details items0 swagger:model ListAlertsDefaultBodyDetailsItems0 */ type ListAlertsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -362,7 +355,6 @@ ListAlertsOKBody list alerts OK body swagger:model ListAlertsOKBody */ type ListAlertsOKBody struct { - // alerts Alerts []*ListAlertsOKBodyAlertsItems0 `json:"alerts"` @@ -452,9 +444,7 @@ func (o *ListAlertsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListAlertsOKBody) contextValidateAlerts(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Alerts); i++ { - if o.Alerts[i] != nil { if err := o.Alerts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -465,14 +455,12 @@ func (o *ListAlertsOKBody) contextValidateAlerts(ctx context.Context, formats st return err } } - } return nil } func (o *ListAlertsOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { - if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -510,7 +498,6 @@ ListAlertsOKBodyAlertsItems0 Alert represents Alert. swagger:model ListAlertsOKBodyAlertsItems0 */ type ListAlertsOKBodyAlertsItems0 struct { - // ID. AlertID string `json:"alert_id,omitempty"` @@ -747,7 +734,6 @@ func (o *ListAlertsOKBodyAlertsItems0) ContextValidate(ctx context.Context, form } func (o *ListAlertsOKBodyAlertsItems0) contextValidateRule(ctx context.Context, formats strfmt.Registry) error { - if o.Rule != nil { if err := o.Rule.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -785,7 +771,6 @@ ListAlertsOKBodyAlertsItems0Rule Rule represents Alert Rule. swagger:model ListAlertsOKBodyAlertsItems0Rule */ type ListAlertsOKBodyAlertsItems0Rule struct { - // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -1154,9 +1139,7 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) ContextValidate(ctx context.Context, } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsDefinitions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ParamsDefinitions); i++ { - if o.ParamsDefinitions[i] != nil { if err := o.ParamsDefinitions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1167,16 +1150,13 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsDefinitions(ctx return err } } - } return nil } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsValues(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ParamsValues); i++ { - if o.ParamsValues[i] != nil { if err := o.ParamsValues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1187,16 +1167,13 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateParamsValues(ctx conte return err } } - } return nil } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Filters); i++ { - if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1207,16 +1184,13 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateFilters(ctx context.Co return err } } - } return nil } func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateChannels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Channels); i++ { - if o.Channels[i] != nil { if err := o.Channels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1227,7 +1201,6 @@ func (o *ListAlertsOKBodyAlertsItems0Rule) contextValidateChannels(ctx context.C return err } } - } return nil @@ -1256,7 +1229,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0 Channel represents a single Notif swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0 */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0 struct { - // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -1408,7 +1380,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) ContextValidate(ctx con } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { - if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1424,7 +1395,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateEmailCon } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1440,7 +1410,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidatePagerdut } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { - if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1456,7 +1425,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateSlackCon } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { - if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1494,7 +1462,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig EmailConfig represents swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0EmailConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1535,7 +1502,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig PagerDutyConfig re swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0PagerdutyConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1579,7 +1545,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig SlackConfig represents swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0SlackConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1620,7 +1585,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig WebhookConfig repres swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1682,7 +1646,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig) ContextVal } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { - if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1720,7 +1683,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig HTTPConfig swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig struct { - // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -1812,7 +1774,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { - if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1828,7 +1789,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) } func (o *ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { - if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1866,7 +1826,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth B swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { - // username Username string `json:"username,omitempty"` @@ -1911,7 +1870,6 @@ ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig T swagger:model ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig */ type ListAlertsOKBodyAlertsItems0RuleChannelsItems0WebhookConfigHTTPConfigTLSConfig struct { - // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` @@ -1976,7 +1934,6 @@ ListAlertsOKBodyAlertsItems0RuleFiltersItems0 Filter repsents a single filter co swagger:model ListAlertsOKBodyAlertsItems0RuleFiltersItems0 */ type ListAlertsOKBodyAlertsItems0RuleFiltersItems0 struct { - // FilterType represents filter matching type. // // - EQUAL: = @@ -2078,7 +2035,6 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 ParamDefinition represen swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2310,7 +2266,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) ContextValidat } func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { - if o.Bool != nil { if err := o.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2326,7 +2281,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidat } func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { - if o.Float != nil { if err := o.Float.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2342,7 +2296,6 @@ func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidat } func (o *ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { - if o.String != nil { if err := o.String.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2380,7 +2333,6 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool BoolParamDefinition swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Bool struct { - // BooleanFlag represent a command to set some boolean property to true, // to false, or avoid changing that property. // @@ -2478,7 +2430,6 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float FloatParamDefinitio swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0Float struct { - // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2531,7 +2482,6 @@ ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String StringParamDefinit swagger:model ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String */ type ListAlertsOKBodyAlertsItems0RuleParamsDefinitionsItems0String struct { - // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2572,7 +2522,6 @@ ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 ParamValue represents a singl swagger:model ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 */ type ListAlertsOKBodyAlertsItems0RuleParamsValuesItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2680,7 +2629,6 @@ ListAlertsOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertsOKBodyTotals */ type ListAlertsOKBodyTotals struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -2721,7 +2669,6 @@ ListAlertsParamsBodyPageParams PageParams represents page request parameters for swagger:model ListAlertsParamsBodyPageParams */ type ListAlertsParamsBodyPageParams struct { - // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go b/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go index 994425b487..91f845542b 100644 --- a/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go +++ b/api/managementpb/ia/json/client/alerts/toggle_alerts_parameters.go @@ -60,7 +60,6 @@ ToggleAlertsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ToggleAlertsParams struct { - // Body. Body ToggleAlertsBody @@ -130,7 +129,6 @@ func (o *ToggleAlertsParams) SetBody(body ToggleAlertsBody) { // WriteToRequest writes these params to a swagger request func (o *ToggleAlertsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go b/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go index d2dcb850d7..bba76b097d 100644 --- a/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go +++ b/api/managementpb/ia/json/client/alerts/toggle_alerts_responses.go @@ -62,12 +62,12 @@ type ToggleAlertsOK struct { func (o *ToggleAlertsOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/Toggle][%d] toggleAlertsOk %+v", 200, o.Payload) } + func (o *ToggleAlertsOK) GetPayload() interface{} { return o.Payload } func (o *ToggleAlertsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *ToggleAlertsDefault) Code() int { func (o *ToggleAlertsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Alerts/Toggle][%d] ToggleAlerts default %+v", o._statusCode, o.Payload) } + func (o *ToggleAlertsDefault) GetPayload() *ToggleAlertsDefaultBody { return o.Payload } func (o *ToggleAlertsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ToggleAlertsDefaultBody) // response payload @@ -123,7 +123,6 @@ ToggleAlertsBody toggle alerts body swagger:model ToggleAlertsBody */ type ToggleAlertsBody struct { - // List of alerts that silence state should be switched. If provided array is empty than all // existing alerts are switched. AlertIds []string `json:"alert_ids"` @@ -225,7 +224,6 @@ ToggleAlertsDefaultBody toggle alerts default body swagger:model ToggleAlertsDefaultBody */ type ToggleAlertsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -291,9 +289,7 @@ func (o *ToggleAlertsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ToggleAlertsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -304,7 +300,6 @@ func (o *ToggleAlertsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -333,7 +328,6 @@ ToggleAlertsDefaultBodyDetailsItems0 toggle alerts default body details items0 swagger:model ToggleAlertsDefaultBodyDetailsItems0 */ type ToggleAlertsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/channels/add_channel_parameters.go b/api/managementpb/ia/json/client/channels/add_channel_parameters.go index e44b4a0b07..dda611d4a5 100644 --- a/api/managementpb/ia/json/client/channels/add_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/add_channel_parameters.go @@ -60,7 +60,6 @@ AddChannelParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddChannelParams struct { - // Body. Body AddChannelBody @@ -130,7 +129,6 @@ func (o *AddChannelParams) SetBody(body AddChannelBody) { // WriteToRequest writes these params to a swagger request func (o *AddChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/add_channel_responses.go b/api/managementpb/ia/json/client/channels/add_channel_responses.go index 2ccd14ea0f..96a7a1f087 100644 --- a/api/managementpb/ia/json/client/channels/add_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/add_channel_responses.go @@ -60,12 +60,12 @@ type AddChannelOK struct { func (o *AddChannelOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Add][%d] addChannelOk %+v", 200, o.Payload) } + func (o *AddChannelOK) GetPayload() *AddChannelOKBody { return o.Payload } func (o *AddChannelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddChannelOKBody) // response payload @@ -102,12 +102,12 @@ func (o *AddChannelDefault) Code() int { func (o *AddChannelDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Add][%d] AddChannel default %+v", o._statusCode, o.Payload) } + func (o *AddChannelDefault) GetPayload() *AddChannelDefaultBody { return o.Payload } func (o *AddChannelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddChannelDefaultBody) // response payload @@ -123,7 +123,6 @@ AddChannelBody add channel body swagger:model AddChannelBody */ type AddChannelBody struct { - // Short human-readable summary. Summary string `json:"summary,omitempty"` @@ -272,7 +271,6 @@ func (o *AddChannelBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddChannelBody) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { - if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -288,7 +286,6 @@ func (o *AddChannelBody) contextValidateEmailConfig(ctx context.Context, formats } func (o *AddChannelBody) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -304,7 +301,6 @@ func (o *AddChannelBody) contextValidatePagerdutyConfig(ctx context.Context, for } func (o *AddChannelBody) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { - if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -320,7 +316,6 @@ func (o *AddChannelBody) contextValidateSlackConfig(ctx context.Context, formats } func (o *AddChannelBody) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { - if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -358,7 +353,6 @@ AddChannelDefaultBody add channel default body swagger:model AddChannelDefaultBody */ type AddChannelDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -424,9 +418,7 @@ func (o *AddChannelDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddChannelDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -437,7 +429,6 @@ func (o *AddChannelDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -466,7 +457,6 @@ AddChannelDefaultBodyDetailsItems0 add channel default body details items0 swagger:model AddChannelDefaultBodyDetailsItems0 */ type AddChannelDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -504,7 +494,6 @@ AddChannelOKBody add channel OK body swagger:model AddChannelOKBody */ type AddChannelOKBody struct { - // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` } @@ -542,7 +531,6 @@ AddChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model AddChannelParamsBodyEmailConfig */ type AddChannelParamsBodyEmailConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -583,7 +571,6 @@ AddChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty configu swagger:model AddChannelParamsBodyPagerdutyConfig */ type AddChannelParamsBodyPagerdutyConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -627,7 +614,6 @@ AddChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model AddChannelParamsBodySlackConfig */ type AddChannelParamsBodySlackConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -668,7 +654,6 @@ AddChannelParamsBodyWebhookConfig WebhookConfig represents webhook configuration swagger:model AddChannelParamsBodyWebhookConfig */ type AddChannelParamsBodyWebhookConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -730,7 +715,6 @@ func (o *AddChannelParamsBodyWebhookConfig) ContextValidate(ctx context.Context, } func (o *AddChannelParamsBodyWebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { - if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -768,7 +752,6 @@ AddChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client co swagger:model AddChannelParamsBodyWebhookConfigHTTPConfig */ type AddChannelParamsBodyWebhookConfigHTTPConfig struct { - // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -860,7 +843,6 @@ func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) ContextValidate(ctx contex } func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { - if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -876,7 +858,6 @@ func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAuth(c } func (o *AddChannelParamsBodyWebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { - if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -914,7 +895,6 @@ AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents basic swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth */ type AddChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct { - // username Username string `json:"username,omitempty"` @@ -959,7 +939,6 @@ AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS co swagger:model AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig */ type AddChannelParamsBodyWebhookConfigHTTPConfigTLSConfig struct { - // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` diff --git a/api/managementpb/ia/json/client/channels/change_channel_parameters.go b/api/managementpb/ia/json/client/channels/change_channel_parameters.go index a6c229806e..569379c6b6 100644 --- a/api/managementpb/ia/json/client/channels/change_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/change_channel_parameters.go @@ -60,7 +60,6 @@ ChangeChannelParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeChannelParams struct { - // Body. Body ChangeChannelBody @@ -130,7 +129,6 @@ func (o *ChangeChannelParams) SetBody(body ChangeChannelBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/change_channel_responses.go b/api/managementpb/ia/json/client/channels/change_channel_responses.go index 653b6672be..d4fb8eea19 100644 --- a/api/managementpb/ia/json/client/channels/change_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/change_channel_responses.go @@ -60,12 +60,12 @@ type ChangeChannelOK struct { func (o *ChangeChannelOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Change][%d] changeChannelOk %+v", 200, o.Payload) } + func (o *ChangeChannelOK) GetPayload() interface{} { return o.Payload } func (o *ChangeChannelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ChangeChannelDefault) Code() int { func (o *ChangeChannelDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Change][%d] ChangeChannel default %+v", o._statusCode, o.Payload) } + func (o *ChangeChannelDefault) GetPayload() *ChangeChannelDefaultBody { return o.Payload } func (o *ChangeChannelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeChannelDefaultBody) // response payload @@ -121,7 +121,6 @@ ChangeChannelBody change channel body swagger:model ChangeChannelBody */ type ChangeChannelBody struct { - // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -273,7 +272,6 @@ func (o *ChangeChannelBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ChangeChannelBody) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { - if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -289,7 +287,6 @@ func (o *ChangeChannelBody) contextValidateEmailConfig(ctx context.Context, form } func (o *ChangeChannelBody) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -305,7 +302,6 @@ func (o *ChangeChannelBody) contextValidatePagerdutyConfig(ctx context.Context, } func (o *ChangeChannelBody) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { - if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -321,7 +317,6 @@ func (o *ChangeChannelBody) contextValidateSlackConfig(ctx context.Context, form } func (o *ChangeChannelBody) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { - if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -359,7 +354,6 @@ ChangeChannelDefaultBody change channel default body swagger:model ChangeChannelDefaultBody */ type ChangeChannelDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -425,9 +419,7 @@ func (o *ChangeChannelDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeChannelDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -438,7 +430,6 @@ func (o *ChangeChannelDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -467,7 +458,6 @@ ChangeChannelDefaultBodyDetailsItems0 change channel default body details items0 swagger:model ChangeChannelDefaultBodyDetailsItems0 */ type ChangeChannelDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -505,7 +495,6 @@ ChangeChannelParamsBodyEmailConfig EmailConfig represents email configuration. swagger:model ChangeChannelParamsBodyEmailConfig */ type ChangeChannelParamsBodyEmailConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -546,7 +535,6 @@ ChangeChannelParamsBodyPagerdutyConfig PagerDutyConfig represents PagerDuty conf swagger:model ChangeChannelParamsBodyPagerdutyConfig */ type ChangeChannelParamsBodyPagerdutyConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -590,7 +578,6 @@ ChangeChannelParamsBodySlackConfig SlackConfig represents Slack configuration. swagger:model ChangeChannelParamsBodySlackConfig */ type ChangeChannelParamsBodySlackConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -631,7 +618,6 @@ ChangeChannelParamsBodyWebhookConfig WebhookConfig represents webhook configurat swagger:model ChangeChannelParamsBodyWebhookConfig */ type ChangeChannelParamsBodyWebhookConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -693,7 +679,6 @@ func (o *ChangeChannelParamsBodyWebhookConfig) ContextValidate(ctx context.Conte } func (o *ChangeChannelParamsBodyWebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { - if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -731,7 +716,6 @@ ChangeChannelParamsBodyWebhookConfigHTTPConfig HTTPConfig represents HTTP client swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfig */ type ChangeChannelParamsBodyWebhookConfigHTTPConfig struct { - // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -823,7 +807,6 @@ func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) ContextValidate(ctx con } func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { - if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -839,7 +822,6 @@ func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) contextValidateBasicAut } func (o *ChangeChannelParamsBodyWebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { - if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -877,7 +859,6 @@ ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth BasicAuth represents bas swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth */ type ChangeChannelParamsBodyWebhookConfigHTTPConfigBasicAuth struct { - // username Username string `json:"username,omitempty"` @@ -922,7 +903,6 @@ ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig TLSConfig represents TLS swagger:model ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig */ type ChangeChannelParamsBodyWebhookConfigHTTPConfigTLSConfig struct { - // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` diff --git a/api/managementpb/ia/json/client/channels/list_channels_parameters.go b/api/managementpb/ia/json/client/channels/list_channels_parameters.go index 9e2504e37f..4f6948c977 100644 --- a/api/managementpb/ia/json/client/channels/list_channels_parameters.go +++ b/api/managementpb/ia/json/client/channels/list_channels_parameters.go @@ -60,7 +60,6 @@ ListChannelsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListChannelsParams struct { - // Body. Body ListChannelsBody @@ -130,7 +129,6 @@ func (o *ListChannelsParams) SetBody(body ListChannelsBody) { // WriteToRequest writes these params to a swagger request func (o *ListChannelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/list_channels_responses.go b/api/managementpb/ia/json/client/channels/list_channels_responses.go index 85df129ef9..ec672a76db 100644 --- a/api/managementpb/ia/json/client/channels/list_channels_responses.go +++ b/api/managementpb/ia/json/client/channels/list_channels_responses.go @@ -60,12 +60,12 @@ type ListChannelsOK struct { func (o *ListChannelsOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/List][%d] listChannelsOk %+v", 200, o.Payload) } + func (o *ListChannelsOK) GetPayload() *ListChannelsOKBody { return o.Payload } func (o *ListChannelsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListChannelsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListChannelsDefault) Code() int { func (o *ListChannelsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/List][%d] ListChannels default %+v", o._statusCode, o.Payload) } + func (o *ListChannelsDefault) GetPayload() *ListChannelsDefaultBody { return o.Payload } func (o *ListChannelsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListChannelsDefaultBody) // response payload @@ -123,7 +123,6 @@ ListChannelsBody list channels body swagger:model ListChannelsBody */ type ListChannelsBody struct { - // page params PageParams *ListChannelsParamsBodyPageParams `json:"page_params,omitempty"` } @@ -176,7 +175,6 @@ func (o *ListChannelsBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListChannelsBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { - if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -214,7 +212,6 @@ ListChannelsDefaultBody list channels default body swagger:model ListChannelsDefaultBody */ type ListChannelsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -280,9 +277,7 @@ func (o *ListChannelsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListChannelsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -293,7 +288,6 @@ func (o *ListChannelsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -322,7 +316,6 @@ ListChannelsDefaultBodyDetailsItems0 list channels default body details items0 swagger:model ListChannelsDefaultBodyDetailsItems0 */ type ListChannelsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -360,7 +353,6 @@ ListChannelsOKBody list channels OK body swagger:model ListChannelsOKBody */ type ListChannelsOKBody struct { - // channels Channels []*ListChannelsOKBodyChannelsItems0 `json:"channels"` @@ -450,9 +442,7 @@ func (o *ListChannelsOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListChannelsOKBody) contextValidateChannels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Channels); i++ { - if o.Channels[i] != nil { if err := o.Channels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -463,14 +453,12 @@ func (o *ListChannelsOKBody) contextValidateChannels(ctx context.Context, format return err } } - } return nil } func (o *ListChannelsOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { - if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -508,7 +496,6 @@ ListChannelsOKBodyChannelsItems0 Channel represents a single Notification Channe swagger:model ListChannelsOKBodyChannelsItems0 */ type ListChannelsOKBodyChannelsItems0 struct { - // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -660,7 +647,6 @@ func (o *ListChannelsOKBodyChannelsItems0) ContextValidate(ctx context.Context, } func (o *ListChannelsOKBodyChannelsItems0) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { - if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -676,7 +662,6 @@ func (o *ListChannelsOKBodyChannelsItems0) contextValidateEmailConfig(ctx contex } func (o *ListChannelsOKBodyChannelsItems0) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -692,7 +677,6 @@ func (o *ListChannelsOKBodyChannelsItems0) contextValidatePagerdutyConfig(ctx co } func (o *ListChannelsOKBodyChannelsItems0) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { - if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -708,7 +692,6 @@ func (o *ListChannelsOKBodyChannelsItems0) contextValidateSlackConfig(ctx contex } func (o *ListChannelsOKBodyChannelsItems0) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { - if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -746,7 +729,6 @@ ListChannelsOKBodyChannelsItems0EmailConfig EmailConfig represents email configu swagger:model ListChannelsOKBodyChannelsItems0EmailConfig */ type ListChannelsOKBodyChannelsItems0EmailConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -787,7 +769,6 @@ ListChannelsOKBodyChannelsItems0PagerdutyConfig PagerDutyConfig represents Pager swagger:model ListChannelsOKBodyChannelsItems0PagerdutyConfig */ type ListChannelsOKBodyChannelsItems0PagerdutyConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -831,7 +812,6 @@ ListChannelsOKBodyChannelsItems0SlackConfig SlackConfig represents Slack configu swagger:model ListChannelsOKBodyChannelsItems0SlackConfig */ type ListChannelsOKBodyChannelsItems0SlackConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -872,7 +852,6 @@ ListChannelsOKBodyChannelsItems0WebhookConfig WebhookConfig represents webhook c swagger:model ListChannelsOKBodyChannelsItems0WebhookConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -934,7 +913,6 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfig) ContextValidate(ctx cont } func (o *ListChannelsOKBodyChannelsItems0WebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { - if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -972,7 +950,6 @@ ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig HTTPConfig represents HT swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig struct { - // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -1064,7 +1041,6 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) ContextValidat } func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { - if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1080,7 +1056,6 @@ func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) contextValidat } func (o *ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { - if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1118,7 +1093,6 @@ ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth BasicAuth repre swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { - // username Username string `json:"username,omitempty"` @@ -1163,7 +1137,6 @@ ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig TLSConfig repre swagger:model ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig */ type ListChannelsOKBodyChannelsItems0WebhookConfigHTTPConfigTLSConfig struct { - // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` @@ -1228,7 +1201,6 @@ ListChannelsOKBodyTotals PageTotals represents total values for pagination. swagger:model ListChannelsOKBodyTotals */ type ListChannelsOKBodyTotals struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -1269,7 +1241,6 @@ ListChannelsParamsBodyPageParams PageParams represents page request parameters f swagger:model ListChannelsParamsBodyPageParams */ type ListChannelsParamsBodyPageParams struct { - // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/ia/json/client/channels/remove_channel_parameters.go b/api/managementpb/ia/json/client/channels/remove_channel_parameters.go index 60f0132346..bc094beef7 100644 --- a/api/managementpb/ia/json/client/channels/remove_channel_parameters.go +++ b/api/managementpb/ia/json/client/channels/remove_channel_parameters.go @@ -60,7 +60,6 @@ RemoveChannelParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveChannelParams struct { - // Body. Body RemoveChannelBody @@ -130,7 +129,6 @@ func (o *RemoveChannelParams) SetBody(body RemoveChannelBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/channels/remove_channel_responses.go b/api/managementpb/ia/json/client/channels/remove_channel_responses.go index 6f80dc95d9..eb6aa49b30 100644 --- a/api/managementpb/ia/json/client/channels/remove_channel_responses.go +++ b/api/managementpb/ia/json/client/channels/remove_channel_responses.go @@ -60,12 +60,12 @@ type RemoveChannelOK struct { func (o *RemoveChannelOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Remove][%d] removeChannelOk %+v", 200, o.Payload) } + func (o *RemoveChannelOK) GetPayload() interface{} { return o.Payload } func (o *RemoveChannelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *RemoveChannelDefault) Code() int { func (o *RemoveChannelDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Channels/Remove][%d] RemoveChannel default %+v", o._statusCode, o.Payload) } + func (o *RemoveChannelDefault) GetPayload() *RemoveChannelDefaultBody { return o.Payload } func (o *RemoveChannelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveChannelDefaultBody) // response payload @@ -121,7 +121,6 @@ RemoveChannelBody remove channel body swagger:model RemoveChannelBody */ type RemoveChannelBody struct { - // channel id ChannelID string `json:"channel_id,omitempty"` } @@ -159,7 +158,6 @@ RemoveChannelDefaultBody remove channel default body swagger:model RemoveChannelDefaultBody */ type RemoveChannelDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *RemoveChannelDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveChannelDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *RemoveChannelDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -267,7 +262,6 @@ RemoveChannelDefaultBodyDetailsItems0 remove channel default body details items0 swagger:model RemoveChannelDefaultBodyDetailsItems0 */ type RemoveChannelDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go index 1178c51528..c361a3c197 100644 --- a/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/create_alert_rule_parameters.go @@ -60,7 +60,6 @@ CreateAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateAlertRuleParams struct { - // Body. Body CreateAlertRuleBody @@ -130,7 +129,6 @@ func (o *CreateAlertRuleParams) SetBody(body CreateAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *CreateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go index b8d1bb3f80..6ff0249456 100644 --- a/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/create_alert_rule_responses.go @@ -62,12 +62,12 @@ type CreateAlertRuleOK struct { func (o *CreateAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Create][%d] createAlertRuleOk %+v", 200, o.Payload) } + func (o *CreateAlertRuleOK) GetPayload() *CreateAlertRuleOKBody { return o.Payload } func (o *CreateAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateAlertRuleOKBody) // response payload @@ -104,12 +104,12 @@ func (o *CreateAlertRuleDefault) Code() int { func (o *CreateAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Create][%d] CreateAlertRule default %+v", o._statusCode, o.Payload) } + func (o *CreateAlertRuleDefault) GetPayload() *CreateAlertRuleDefaultBody { return o.Payload } func (o *CreateAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateAlertRuleDefaultBody) // response payload @@ -125,7 +125,6 @@ CreateAlertRuleBody create alert rule body swagger:model CreateAlertRuleBody */ type CreateAlertRuleBody struct { - // Template name. Can't be specified simultaneously with source_rule_id. TemplateName string `json:"template_name,omitempty"` @@ -314,9 +313,7 @@ func (o *CreateAlertRuleBody) ContextValidate(ctx context.Context, formats strfm } func (o *CreateAlertRuleBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Params); i++ { - if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -327,16 +324,13 @@ func (o *CreateAlertRuleBody) contextValidateParams(ctx context.Context, formats return err } } - } return nil } func (o *CreateAlertRuleBody) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Filters); i++ { - if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -347,7 +341,6 @@ func (o *CreateAlertRuleBody) contextValidateFilters(ctx context.Context, format return err } } - } return nil @@ -376,7 +369,6 @@ CreateAlertRuleDefaultBody create alert rule default body swagger:model CreateAlertRuleDefaultBody */ type CreateAlertRuleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -442,9 +434,7 @@ func (o *CreateAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *CreateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -455,7 +445,6 @@ func (o *CreateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -484,7 +473,6 @@ CreateAlertRuleDefaultBodyDetailsItems0 create alert rule default body details i swagger:model CreateAlertRuleDefaultBodyDetailsItems0 */ type CreateAlertRuleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -522,7 +510,6 @@ CreateAlertRuleOKBody create alert rule OK body swagger:model CreateAlertRuleOKBody */ type CreateAlertRuleOKBody struct { - // Rule ID. RuleID string `json:"rule_id,omitempty"` } @@ -560,7 +547,6 @@ CreateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition swagger:model CreateAlertRuleParamsBodyFiltersItems0 */ type CreateAlertRuleParamsBodyFiltersItems0 struct { - // FilterType represents filter matching type. // // - EQUAL: = @@ -662,7 +648,6 @@ CreateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parame swagger:model CreateAlertRuleParamsBodyParamsItems0 */ type CreateAlertRuleParamsBodyParamsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go index 9b740d644e..7b24bccb74 100644 --- a/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/delete_alert_rule_parameters.go @@ -60,7 +60,6 @@ DeleteAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteAlertRuleParams struct { - // Body. Body DeleteAlertRuleBody @@ -130,7 +129,6 @@ func (o *DeleteAlertRuleParams) SetBody(body DeleteAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go index fb62fa0197..accdebbdc8 100644 --- a/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/delete_alert_rule_responses.go @@ -60,12 +60,12 @@ type DeleteAlertRuleOK struct { func (o *DeleteAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Delete][%d] deleteAlertRuleOk %+v", 200, o.Payload) } + func (o *DeleteAlertRuleOK) GetPayload() interface{} { return o.Payload } func (o *DeleteAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DeleteAlertRuleDefault) Code() int { func (o *DeleteAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Delete][%d] DeleteAlertRule default %+v", o._statusCode, o.Payload) } + func (o *DeleteAlertRuleDefault) GetPayload() *DeleteAlertRuleDefaultBody { return o.Payload } func (o *DeleteAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteAlertRuleDefaultBody) // response payload @@ -121,7 +121,6 @@ DeleteAlertRuleBody delete alert rule body swagger:model DeleteAlertRuleBody */ type DeleteAlertRuleBody struct { - // Rule ID. RuleID string `json:"rule_id,omitempty"` } @@ -159,7 +158,6 @@ DeleteAlertRuleDefaultBody delete alert rule default body swagger:model DeleteAlertRuleDefaultBody */ type DeleteAlertRuleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *DeleteAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *DeleteAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *DeleteAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -267,7 +262,6 @@ DeleteAlertRuleDefaultBodyDetailsItems0 delete alert rule default body details i swagger:model DeleteAlertRuleDefaultBodyDetailsItems0 */ type DeleteAlertRuleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go b/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go index b13ca0ae7b..324b22bb8c 100644 --- a/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go +++ b/api/managementpb/ia/json/client/rules/list_alert_rules_parameters.go @@ -60,7 +60,6 @@ ListAlertRulesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListAlertRulesParams struct { - // Body. Body ListAlertRulesBody @@ -130,7 +129,6 @@ func (o *ListAlertRulesParams) SetBody(body ListAlertRulesBody) { // WriteToRequest writes these params to a swagger request func (o *ListAlertRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go b/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go index 888fb5bb44..1d63410d83 100644 --- a/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go +++ b/api/managementpb/ia/json/client/rules/list_alert_rules_responses.go @@ -62,12 +62,12 @@ type ListAlertRulesOK struct { func (o *ListAlertRulesOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/List][%d] listAlertRulesOk %+v", 200, o.Payload) } + func (o *ListAlertRulesOK) GetPayload() *ListAlertRulesOKBody { return o.Payload } func (o *ListAlertRulesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAlertRulesOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListAlertRulesDefault) Code() int { func (o *ListAlertRulesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/List][%d] ListAlertRules default %+v", o._statusCode, o.Payload) } + func (o *ListAlertRulesDefault) GetPayload() *ListAlertRulesDefaultBody { return o.Payload } func (o *ListAlertRulesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAlertRulesDefaultBody) // response payload @@ -125,7 +125,6 @@ ListAlertRulesBody list alert rules body swagger:model ListAlertRulesBody */ type ListAlertRulesBody struct { - // page params PageParams *ListAlertRulesParamsBodyPageParams `json:"page_params,omitempty"` } @@ -178,7 +177,6 @@ func (o *ListAlertRulesBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListAlertRulesBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { - if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -216,7 +214,6 @@ ListAlertRulesDefaultBody list alert rules default body swagger:model ListAlertRulesDefaultBody */ type ListAlertRulesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -282,9 +279,7 @@ func (o *ListAlertRulesDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListAlertRulesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -295,7 +290,6 @@ func (o *ListAlertRulesDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -324,7 +318,6 @@ ListAlertRulesDefaultBodyDetailsItems0 list alert rules default body details ite swagger:model ListAlertRulesDefaultBodyDetailsItems0 */ type ListAlertRulesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -362,7 +355,6 @@ ListAlertRulesOKBody list alert rules OK body swagger:model ListAlertRulesOKBody */ type ListAlertRulesOKBody struct { - // rules Rules []*ListAlertRulesOKBodyRulesItems0 `json:"rules"` @@ -452,9 +444,7 @@ func (o *ListAlertRulesOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ListAlertRulesOKBody) contextValidateRules(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Rules); i++ { - if o.Rules[i] != nil { if err := o.Rules[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -465,14 +455,12 @@ func (o *ListAlertRulesOKBody) contextValidateRules(ctx context.Context, formats return err } } - } return nil } func (o *ListAlertRulesOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { - if o.Totals != nil { if err := o.Totals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -510,7 +498,6 @@ ListAlertRulesOKBodyRulesItems0 Rule represents Alert Rule. swagger:model ListAlertRulesOKBodyRulesItems0 */ type ListAlertRulesOKBodyRulesItems0 struct { - // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -879,9 +866,7 @@ func (o *ListAlertRulesOKBodyRulesItems0) ContextValidate(ctx context.Context, f } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsDefinitions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ParamsDefinitions); i++ { - if o.ParamsDefinitions[i] != nil { if err := o.ParamsDefinitions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -892,16 +877,13 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsDefinitions(ctx c return err } } - } return nil } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsValues(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ParamsValues); i++ { - if o.ParamsValues[i] != nil { if err := o.ParamsValues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -912,16 +894,13 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateParamsValues(ctx contex return err } } - } return nil } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Filters); i++ { - if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -932,16 +911,13 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateFilters(ctx context.Con return err } } - } return nil } func (o *ListAlertRulesOKBodyRulesItems0) contextValidateChannels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Channels); i++ { - if o.Channels[i] != nil { if err := o.Channels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -952,7 +928,6 @@ func (o *ListAlertRulesOKBodyRulesItems0) contextValidateChannels(ctx context.Co return err } } - } return nil @@ -981,7 +956,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0 Channel represents a single Notifi swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0 */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0 struct { - // Machine-readable ID. ChannelID string `json:"channel_id,omitempty"` @@ -1133,7 +1107,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) ContextValidate(ctx cont } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateEmailConfig(ctx context.Context, formats strfmt.Registry) error { - if o.EmailConfig != nil { if err := o.EmailConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1149,7 +1122,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateEmailConf } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidatePagerdutyConfig(ctx context.Context, formats strfmt.Registry) error { - if o.PagerdutyConfig != nil { if err := o.PagerdutyConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1165,7 +1137,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidatePagerduty } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateSlackConfig(ctx context.Context, formats strfmt.Registry) error { - if o.SlackConfig != nil { if err := o.SlackConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1181,7 +1152,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateSlackConf } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0) contextValidateWebhookConfig(ctx context.Context, formats strfmt.Registry) error { - if o.WebhookConfig != nil { if err := o.WebhookConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1219,7 +1189,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig EmailConfig represents swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0EmailConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1260,7 +1229,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig PagerDutyConfig rep swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0PagerdutyConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1304,7 +1272,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig SlackConfig represents swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0SlackConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1345,7 +1312,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig WebhookConfig represe swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig struct { - // send resolved SendResolved bool `json:"send_resolved,omitempty"` @@ -1407,7 +1373,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig) ContextVali } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfig) contextValidateHTTPConfig(ctx context.Context, formats strfmt.Registry) error { - if o.HTTPConfig != nil { if err := o.HTTPConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1445,7 +1410,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig HTTPConfig swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig struct { - // bearer token BearerToken string `json:"bearer_token,omitempty"` @@ -1537,7 +1501,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) C } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) contextValidateBasicAuth(ctx context.Context, formats strfmt.Registry) error { - if o.BasicAuth != nil { if err := o.BasicAuth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1553,7 +1516,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) c } func (o *ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfig) contextValidateTLSConfig(ctx context.Context, formats strfmt.Registry) error { - if o.TLSConfig != nil { if err := o.TLSConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1591,7 +1553,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth Ba swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigBasicAuth struct { - // username Username string `json:"username,omitempty"` @@ -1636,7 +1597,6 @@ ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig TL swagger:model ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig */ type ListAlertRulesOKBodyRulesItems0ChannelsItems0WebhookConfigHTTPConfigTLSConfig struct { - // A path to the CA certificate file to validate the server certificate with. // ca_file and ca_file_content should not be set at the same time. CaFile string `json:"ca_file,omitempty"` @@ -1701,7 +1661,6 @@ ListAlertRulesOKBodyRulesItems0FiltersItems0 Filter repsents a single filter con swagger:model ListAlertRulesOKBodyRulesItems0FiltersItems0 */ type ListAlertRulesOKBodyRulesItems0FiltersItems0 struct { - // FilterType represents filter matching type. // // - EQUAL: = @@ -1803,7 +1762,6 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 ParamDefinition represent swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2035,7 +1993,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) ContextValidate } func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { - if o.Bool != nil { if err := o.Bool.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2051,7 +2008,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidate } func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { - if o.Float != nil { if err := o.Float.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2067,7 +2023,6 @@ func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidate } func (o *ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { - if o.String != nil { if err := o.String.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -2105,7 +2060,6 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool BoolParamDefinition r swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Bool struct { - // BooleanFlag represent a command to set some boolean property to true, // to false, or avoid changing that property. // @@ -2203,7 +2157,6 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float FloatParamDefinition swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0Float struct { - // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2256,7 +2209,6 @@ ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String StringParamDefiniti swagger:model ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String */ type ListAlertRulesOKBodyRulesItems0ParamsDefinitionsItems0String struct { - // True if default value is set. HasDefault bool `json:"has_default,omitempty"` @@ -2297,7 +2249,6 @@ ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 ParamValue represents a single swagger:model ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 */ type ListAlertRulesOKBodyRulesItems0ParamsValuesItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -2405,7 +2356,6 @@ ListAlertRulesOKBodyTotals PageTotals represents total values for pagination. swagger:model ListAlertRulesOKBodyTotals */ type ListAlertRulesOKBodyTotals struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -2446,7 +2396,6 @@ ListAlertRulesParamsBodyPageParams PageParams represents page request parameters swagger:model ListAlertRulesParamsBodyPageParams */ type ListAlertRulesParamsBodyPageParams struct { - // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go index 3632436df6..98c9657468 100644 --- a/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/toggle_alert_rule_parameters.go @@ -60,7 +60,6 @@ ToggleAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ToggleAlertRuleParams struct { - // Body. Body ToggleAlertRuleBody @@ -130,7 +129,6 @@ func (o *ToggleAlertRuleParams) SetBody(body ToggleAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *ToggleAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go index e00f61fc71..afbd371436 100644 --- a/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/toggle_alert_rule_responses.go @@ -62,12 +62,12 @@ type ToggleAlertRuleOK struct { func (o *ToggleAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Toggle][%d] toggleAlertRuleOk %+v", 200, o.Payload) } + func (o *ToggleAlertRuleOK) GetPayload() interface{} { return o.Payload } func (o *ToggleAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *ToggleAlertRuleDefault) Code() int { func (o *ToggleAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Toggle][%d] ToggleAlertRule default %+v", o._statusCode, o.Payload) } + func (o *ToggleAlertRuleDefault) GetPayload() *ToggleAlertRuleDefaultBody { return o.Payload } func (o *ToggleAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ToggleAlertRuleDefaultBody) // response payload @@ -123,7 +123,6 @@ ToggleAlertRuleBody toggle alert rule body swagger:model ToggleAlertRuleBody */ type ToggleAlertRuleBody struct { - // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -224,7 +223,6 @@ ToggleAlertRuleDefaultBody toggle alert rule default body swagger:model ToggleAlertRuleDefaultBody */ type ToggleAlertRuleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -290,9 +288,7 @@ func (o *ToggleAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *ToggleAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -303,7 +299,6 @@ func (o *ToggleAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -332,7 +327,6 @@ ToggleAlertRuleDefaultBodyDetailsItems0 toggle alert rule default body details i swagger:model ToggleAlertRuleDefaultBodyDetailsItems0 */ type ToggleAlertRuleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go b/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go index 770e3df238..0e0b4d7bc6 100644 --- a/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go +++ b/api/managementpb/ia/json/client/rules/update_alert_rule_parameters.go @@ -60,7 +60,6 @@ UpdateAlertRuleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateAlertRuleParams struct { - // Body. Body UpdateAlertRuleBody @@ -130,7 +129,6 @@ func (o *UpdateAlertRuleParams) SetBody(body UpdateAlertRuleBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateAlertRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go b/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go index d9950c60cd..a4026d6252 100644 --- a/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go +++ b/api/managementpb/ia/json/client/rules/update_alert_rule_responses.go @@ -62,12 +62,12 @@ type UpdateAlertRuleOK struct { func (o *UpdateAlertRuleOK) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Update][%d] updateAlertRuleOk %+v", 200, o.Payload) } + func (o *UpdateAlertRuleOK) GetPayload() interface{} { return o.Payload } func (o *UpdateAlertRuleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *UpdateAlertRuleDefault) Code() int { func (o *UpdateAlertRuleDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ia/Rules/Update][%d] UpdateAlertRule default %+v", o._statusCode, o.Payload) } + func (o *UpdateAlertRuleDefault) GetPayload() *UpdateAlertRuleDefaultBody { return o.Payload } func (o *UpdateAlertRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateAlertRuleDefaultBody) // response payload @@ -123,7 +123,6 @@ UpdateAlertRuleBody update alert rule body swagger:model UpdateAlertRuleBody */ type UpdateAlertRuleBody struct { - // Rule ID. RuleID string `json:"rule_id,omitempty"` @@ -309,9 +308,7 @@ func (o *UpdateAlertRuleBody) ContextValidate(ctx context.Context, formats strfm } func (o *UpdateAlertRuleBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Params); i++ { - if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -322,16 +319,13 @@ func (o *UpdateAlertRuleBody) contextValidateParams(ctx context.Context, formats return err } } - } return nil } func (o *UpdateAlertRuleBody) contextValidateFilters(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Filters); i++ { - if o.Filters[i] != nil { if err := o.Filters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -342,7 +336,6 @@ func (o *UpdateAlertRuleBody) contextValidateFilters(ctx context.Context, format return err } } - } return nil @@ -371,7 +364,6 @@ UpdateAlertRuleDefaultBody update alert rule default body swagger:model UpdateAlertRuleDefaultBody */ type UpdateAlertRuleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -437,9 +429,7 @@ func (o *UpdateAlertRuleDefaultBody) ContextValidate(ctx context.Context, format } func (o *UpdateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -450,7 +440,6 @@ func (o *UpdateAlertRuleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -479,7 +468,6 @@ UpdateAlertRuleDefaultBodyDetailsItems0 update alert rule default body details i swagger:model UpdateAlertRuleDefaultBodyDetailsItems0 */ type UpdateAlertRuleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -517,7 +505,6 @@ UpdateAlertRuleParamsBodyFiltersItems0 Filter repsents a single filter condition swagger:model UpdateAlertRuleParamsBodyFiltersItems0 */ type UpdateAlertRuleParamsBodyFiltersItems0 struct { - // FilterType represents filter matching type. // // - EQUAL: = @@ -619,7 +606,6 @@ UpdateAlertRuleParamsBodyParamsItems0 ParamValue represents a single rule parame swagger:model UpdateAlertRuleParamsBodyParamsItems0 */ type UpdateAlertRuleParamsBodyParamsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/ia/rules.pb.go b/api/managementpb/ia/rules.pb.go index 23bf82a6b7..3788f388ba 100644 --- a/api/managementpb/ia/rules.pb.go +++ b/api/managementpb/ia/rules.pb.go @@ -7,16 +7,18 @@ package iav1beta1 import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" - managementpb "github.com/percona/pmm/api/managementpb" - alerting "github.com/percona/pmm/api/managementpb/alerting" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" + + managementpb "github.com/percona/pmm/api/managementpb" + alerting "github.com/percona/pmm/api/managementpb/alerting" ) const ( @@ -1371,38 +1373,41 @@ func file_managementpb_ia_rules_proto_rawDescGZIP() []byte { return file_managementpb_ia_rules_proto_rawDescData } -var file_managementpb_ia_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_ia_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_managementpb_ia_rules_proto_goTypes = []interface{}{ - (FilterType)(0), // 0: ia.v1beta1.FilterType - (*Filter)(nil), // 1: ia.v1beta1.Filter - (*ParamValue)(nil), // 2: ia.v1beta1.ParamValue - (*Rule)(nil), // 3: ia.v1beta1.Rule - (*ListAlertRulesRequest)(nil), // 4: ia.v1beta1.ListAlertRulesRequest - (*ListAlertRulesResponse)(nil), // 5: ia.v1beta1.ListAlertRulesResponse - (*CreateAlertRuleRequest)(nil), // 6: ia.v1beta1.CreateAlertRuleRequest - (*CreateAlertRuleResponse)(nil), // 7: ia.v1beta1.CreateAlertRuleResponse - (*UpdateAlertRuleRequest)(nil), // 8: ia.v1beta1.UpdateAlertRuleRequest - (*UpdateAlertRuleResponse)(nil), // 9: ia.v1beta1.UpdateAlertRuleResponse - (*ToggleAlertRuleRequest)(nil), // 10: ia.v1beta1.ToggleAlertRuleRequest - (*ToggleAlertRuleResponse)(nil), // 11: ia.v1beta1.ToggleAlertRuleResponse - (*DeleteAlertRuleRequest)(nil), // 12: ia.v1beta1.DeleteAlertRuleRequest - (*DeleteAlertRuleResponse)(nil), // 13: ia.v1beta1.DeleteAlertRuleResponse - nil, // 14: ia.v1beta1.Rule.CustomLabelsEntry - nil, // 15: ia.v1beta1.Rule.LabelsEntry - nil, // 16: ia.v1beta1.Rule.AnnotationsEntry - nil, // 17: ia.v1beta1.CreateAlertRuleRequest.CustomLabelsEntry - nil, // 18: ia.v1beta1.UpdateAlertRuleRequest.CustomLabelsEntry - (alerting.ParamType)(0), // 19: alerting.v1.ParamType - (*alerting.ParamDefinition)(nil), // 20: alerting.v1.ParamDefinition - (*durationpb.Duration)(nil), // 21: google.protobuf.Duration - (managementpb.Severity)(0), // 22: management.Severity - (*Channel)(nil), // 23: ia.v1beta1.Channel - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp - (*managementpb.PageParams)(nil), // 25: management.PageParams - (*managementpb.PageTotals)(nil), // 26: management.PageTotals - (managementpb.BooleanFlag)(0), // 27: managementpb.BooleanFlag -} +var ( + file_managementpb_ia_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_ia_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 18) + file_managementpb_ia_rules_proto_goTypes = []interface{}{ + (FilterType)(0), // 0: ia.v1beta1.FilterType + (*Filter)(nil), // 1: ia.v1beta1.Filter + (*ParamValue)(nil), // 2: ia.v1beta1.ParamValue + (*Rule)(nil), // 3: ia.v1beta1.Rule + (*ListAlertRulesRequest)(nil), // 4: ia.v1beta1.ListAlertRulesRequest + (*ListAlertRulesResponse)(nil), // 5: ia.v1beta1.ListAlertRulesResponse + (*CreateAlertRuleRequest)(nil), // 6: ia.v1beta1.CreateAlertRuleRequest + (*CreateAlertRuleResponse)(nil), // 7: ia.v1beta1.CreateAlertRuleResponse + (*UpdateAlertRuleRequest)(nil), // 8: ia.v1beta1.UpdateAlertRuleRequest + (*UpdateAlertRuleResponse)(nil), // 9: ia.v1beta1.UpdateAlertRuleResponse + (*ToggleAlertRuleRequest)(nil), // 10: ia.v1beta1.ToggleAlertRuleRequest + (*ToggleAlertRuleResponse)(nil), // 11: ia.v1beta1.ToggleAlertRuleResponse + (*DeleteAlertRuleRequest)(nil), // 12: ia.v1beta1.DeleteAlertRuleRequest + (*DeleteAlertRuleResponse)(nil), // 13: ia.v1beta1.DeleteAlertRuleResponse + nil, // 14: ia.v1beta1.Rule.CustomLabelsEntry + nil, // 15: ia.v1beta1.Rule.LabelsEntry + nil, // 16: ia.v1beta1.Rule.AnnotationsEntry + nil, // 17: ia.v1beta1.CreateAlertRuleRequest.CustomLabelsEntry + nil, // 18: ia.v1beta1.UpdateAlertRuleRequest.CustomLabelsEntry + (alerting.ParamType)(0), // 19: alerting.v1.ParamType + (*alerting.ParamDefinition)(nil), // 20: alerting.v1.ParamDefinition + (*durationpb.Duration)(nil), // 21: google.protobuf.Duration + (managementpb.Severity)(0), // 22: management.Severity + (*Channel)(nil), // 23: ia.v1beta1.Channel + (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp + (*managementpb.PageParams)(nil), // 25: management.PageParams + (*managementpb.PageTotals)(nil), // 26: management.PageTotals + (managementpb.BooleanFlag)(0), // 27: managementpb.BooleanFlag + } +) + var file_managementpb_ia_rules_proto_depIdxs = []int32{ 0, // 0: ia.v1beta1.Filter.type:type_name -> ia.v1beta1.FilterType 19, // 1: ia.v1beta1.ParamValue.type:type_name -> alerting.v1.ParamType diff --git a/api/managementpb/ia/rules.pb.gw.go b/api/managementpb/ia/rules.pb.gw.go index 1757d16a27..f1189e3a26 100644 --- a/api/managementpb/ia/rules.pb.gw.go +++ b/api/managementpb/ia/rules.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ListAlertRulesRequest @@ -45,7 +47,6 @@ func request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.ListAlertRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Rules_ListAlertRules_0(ctx context.Context, marshaler runtime msg, err := server.ListAlertRules(ctx, &protoReq) return msg, metadata, err - } func request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.CreateAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Rules_CreateAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.CreateAlertRule(ctx, &protoReq) return msg, metadata, err - } func request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.UpdateAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Rules_UpdateAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.UpdateAlertRule(ctx, &protoReq) return msg, metadata, err - } func request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ToggleAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Rules_ToggleAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.ToggleAlertRule(ctx, &protoReq) return msg, metadata, err - } func request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, client RulesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtime.Mars msg, err := client.DeleteAlertRule(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtime.Marshaler, server RulesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtim msg, err := server.DeleteAlertRule(ctx, &protoReq) return msg, metadata, err - } // RegisterRulesHandlerServer registers the http handlers for service Rules to "mux". @@ -206,7 +198,6 @@ func local_request_Rules_DeleteAlertRule_0(ctx context.Context, marshaler runtim // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRulesHandlerFromEndpoint instead. func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RulesServer) error { - mux.Handle("POST", pattern_Rules_ListAlertRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -229,7 +220,6 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_ListAlertRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_CreateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -254,7 +244,6 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_CreateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_UpdateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -279,7 +268,6 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_UpdateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_ToggleAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -304,7 +292,6 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_ToggleAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_DeleteAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -329,7 +316,6 @@ func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_Rules_DeleteAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -372,7 +358,6 @@ func RegisterRulesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "RulesClient" to call the correct interceptors. func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RulesClient) error { - mux.Handle("POST", pattern_Rules_ListAlertRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -392,7 +377,6 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_ListAlertRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_CreateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -414,7 +398,6 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_CreateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_UpdateAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -436,7 +419,6 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_UpdateAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_ToggleAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -458,7 +440,6 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_ToggleAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Rules_DeleteAlertRule_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -480,7 +461,6 @@ func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_Rules_DeleteAlertRule_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/ia/rules.validator.pb.go b/api/managementpb/ia/rules.validator.pb.go index bda1568d8a..468097fe11 100644 --- a/api/managementpb/ia/rules.validator.pb.go +++ b/api/managementpb/ia/rules.validator.pb.go @@ -6,30 +6,36 @@ package iav1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/protobuf/types/known/timestamppb" - _ "github.com/percona/pmm/api/managementpb/alerting" - _ "github.com/percona/pmm/api/managementpb" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/protobuf/types/known/timestamppb" + + _ "github.com/percona/pmm/api/managementpb" + _ "github.com/percona/pmm/api/managementpb/alerting" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Filter) Validate() error { return nil } + func (this *ParamValue) Validate() error { if this.Name == "" { return github_com_mwitkow_go_proto_validators.FieldError("Name", fmt.Errorf(`value '%v' must not be an empty string`, this.Name)) } return nil } + func (this *Rule) Validate() error { for _, item := range this.ParamsDefinitions { if item != nil { @@ -79,6 +85,7 @@ func (this *Rule) Validate() error { } return nil } + func (this *ListAlertRulesRequest) Validate() error { if this.PageParams != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PageParams); err != nil { @@ -87,6 +94,7 @@ func (this *ListAlertRulesRequest) Validate() error { } return nil } + func (this *ListAlertRulesResponse) Validate() error { for _, item := range this.Rules { if item != nil { @@ -102,6 +110,7 @@ func (this *ListAlertRulesResponse) Validate() error { } return nil } + func (this *CreateAlertRuleRequest) Validate() error { for _, item := range this.Params { if item != nil { @@ -125,9 +134,11 @@ func (this *CreateAlertRuleRequest) Validate() error { } return nil } + func (this *CreateAlertRuleResponse) Validate() error { return nil } + func (this *UpdateAlertRuleRequest) Validate() error { if this.RuleId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RuleId", fmt.Errorf(`value '%v' must not be an empty string`, this.RuleId)) @@ -154,24 +165,29 @@ func (this *UpdateAlertRuleRequest) Validate() error { } return nil } + func (this *UpdateAlertRuleResponse) Validate() error { return nil } + func (this *ToggleAlertRuleRequest) Validate() error { if this.RuleId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RuleId", fmt.Errorf(`value '%v' must not be an empty string`, this.RuleId)) } return nil } + func (this *ToggleAlertRuleResponse) Validate() error { return nil } + func (this *DeleteAlertRuleRequest) Validate() error { if this.RuleId == "" { return github_com_mwitkow_go_proto_validators.FieldError("RuleId", fmt.Errorf(`value '%v' must not be an empty string`, this.RuleId)) } return nil } + func (this *DeleteAlertRuleResponse) Validate() error { return nil } diff --git a/api/managementpb/ia/rules_grpc.pb.go b/api/managementpb/ia/rules_grpc.pb.go index 908d667135..57d44eaec4 100644 --- a/api/managementpb/ia/rules_grpc.pb.go +++ b/api/managementpb/ia/rules_grpc.pb.go @@ -8,6 +8,7 @@ package iav1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -105,21 +106,24 @@ type RulesServer interface { } // UnimplementedRulesServer must be embedded to have forward compatible implementations. -type UnimplementedRulesServer struct { -} +type UnimplementedRulesServer struct{} func (UnimplementedRulesServer) ListAlertRules(context.Context, *ListAlertRulesRequest) (*ListAlertRulesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAlertRules not implemented") } + func (UnimplementedRulesServer) CreateAlertRule(context.Context, *CreateAlertRuleRequest) (*CreateAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAlertRule not implemented") } + func (UnimplementedRulesServer) UpdateAlertRule(context.Context, *UpdateAlertRuleRequest) (*UpdateAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateAlertRule not implemented") } + func (UnimplementedRulesServer) ToggleAlertRule(context.Context, *ToggleAlertRuleRequest) (*ToggleAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ToggleAlertRule not implemented") } + func (UnimplementedRulesServer) DeleteAlertRule(context.Context, *DeleteAlertRuleRequest) (*DeleteAlertRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAlertRule not implemented") } diff --git a/api/managementpb/ia/status.pb.go b/api/managementpb/ia/status.pb.go index 1d3709b53c..96211b7c3a 100644 --- a/api/managementpb/ia/status.pb.go +++ b/api/managementpb/ia/status.pb.go @@ -7,10 +7,11 @@ package iav1beta1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -116,10 +117,13 @@ func file_managementpb_ia_status_proto_rawDescGZIP() []byte { return file_managementpb_ia_status_proto_rawDescData } -var file_managementpb_ia_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_ia_status_proto_goTypes = []interface{}{ - (Status)(0), // 0: ia.v1beta1.Status -} +var ( + file_managementpb_ia_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_ia_status_proto_goTypes = []interface{}{ + (Status)(0), // 0: ia.v1beta1.Status + } +) + var file_managementpb_ia_status_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/ia/status.validator.pb.go b/api/managementpb/ia/status.validator.pb.go index de35f5e6fa..5fa248f4e8 100644 --- a/api/managementpb/ia/status.validator.pb.go +++ b/api/managementpb/ia/status.validator.pb.go @@ -6,10 +6,13 @@ package iav1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/managementpb/json/client/actions/cancel_action_parameters.go b/api/managementpb/json/client/actions/cancel_action_parameters.go index 64a13fef98..f89e277a27 100644 --- a/api/managementpb/json/client/actions/cancel_action_parameters.go +++ b/api/managementpb/json/client/actions/cancel_action_parameters.go @@ -60,7 +60,6 @@ CancelActionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CancelActionParams struct { - // Body. Body CancelActionBody @@ -130,7 +129,6 @@ func (o *CancelActionParams) SetBody(body CancelActionBody) { // WriteToRequest writes these params to a swagger request func (o *CancelActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/cancel_action_responses.go b/api/managementpb/json/client/actions/cancel_action_responses.go index f336f42d75..0816b2f0b2 100644 --- a/api/managementpb/json/client/actions/cancel_action_responses.go +++ b/api/managementpb/json/client/actions/cancel_action_responses.go @@ -60,12 +60,12 @@ type CancelActionOK struct { func (o *CancelActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Cancel][%d] cancelActionOk %+v", 200, o.Payload) } + func (o *CancelActionOK) GetPayload() interface{} { return o.Payload } func (o *CancelActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *CancelActionDefault) Code() int { func (o *CancelActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Cancel][%d] CancelAction default %+v", o._statusCode, o.Payload) } + func (o *CancelActionDefault) GetPayload() *CancelActionDefaultBody { return o.Payload } func (o *CancelActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CancelActionDefaultBody) // response payload @@ -121,7 +121,6 @@ CancelActionBody cancel action body swagger:model CancelActionBody */ type CancelActionBody struct { - // Unique Action ID. Required. ActionID string `json:"action_id,omitempty"` } @@ -159,7 +158,6 @@ CancelActionDefaultBody cancel action default body swagger:model CancelActionDefaultBody */ type CancelActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *CancelActionDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *CancelActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *CancelActionDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -267,7 +262,6 @@ CancelActionDefaultBodyDetailsItems0 cancel action default body details items0 swagger:model CancelActionDefaultBodyDetailsItems0 */ type CancelActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/actions/get_action_parameters.go b/api/managementpb/json/client/actions/get_action_parameters.go index 68bc7cd52b..b3a87a7fcb 100644 --- a/api/managementpb/json/client/actions/get_action_parameters.go +++ b/api/managementpb/json/client/actions/get_action_parameters.go @@ -60,7 +60,6 @@ GetActionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetActionParams struct { - // Body. Body GetActionBody @@ -130,7 +129,6 @@ func (o *GetActionParams) SetBody(body GetActionBody) { // WriteToRequest writes these params to a swagger request func (o *GetActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/get_action_responses.go b/api/managementpb/json/client/actions/get_action_responses.go index 11e9b642be..f8819af27a 100644 --- a/api/managementpb/json/client/actions/get_action_responses.go +++ b/api/managementpb/json/client/actions/get_action_responses.go @@ -60,12 +60,12 @@ type GetActionOK struct { func (o *GetActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Get][%d] getActionOk %+v", 200, o.Payload) } + func (o *GetActionOK) GetPayload() *GetActionOKBody { return o.Payload } func (o *GetActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetActionDefault) Code() int { func (o *GetActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/Get][%d] GetAction default %+v", o._statusCode, o.Payload) } + func (o *GetActionDefault) GetPayload() *GetActionDefaultBody { return o.Payload } func (o *GetActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetActionDefaultBody) // response payload @@ -123,7 +123,6 @@ GetActionBody get action body swagger:model GetActionBody */ type GetActionBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` } @@ -161,7 +160,6 @@ GetActionDefaultBody get action default body swagger:model GetActionDefaultBody */ type GetActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *GetActionDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *GetActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *GetActionDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -269,7 +264,6 @@ GetActionDefaultBodyDetailsItems0 get action default body details items0 swagger:model GetActionDefaultBodyDetailsItems0 */ type GetActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ GetActionOKBody get action OK body swagger:model GetActionOKBody */ type GetActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go b/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go index 645603cb1d..dfe69462d0 100644 --- a/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go +++ b/api/managementpb/json/client/actions/start_mongo_db_explain_action_parameters.go @@ -60,7 +60,6 @@ StartMongoDBExplainActionParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type StartMongoDBExplainActionParams struct { - // Body. Body StartMongoDBExplainActionBody @@ -130,7 +129,6 @@ func (o *StartMongoDBExplainActionParams) SetBody(body StartMongoDBExplainAction // WriteToRequest writes these params to a swagger request func (o *StartMongoDBExplainActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go b/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go index 7492987ad8..68531bf73c 100644 --- a/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go +++ b/api/managementpb/json/client/actions/start_mongo_db_explain_action_responses.go @@ -60,12 +60,12 @@ type StartMongoDBExplainActionOK struct { func (o *StartMongoDBExplainActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMongoDBExplain][%d] startMongoDbExplainActionOk %+v", 200, o.Payload) } + func (o *StartMongoDBExplainActionOK) GetPayload() *StartMongoDBExplainActionOKBody { return o.Payload } func (o *StartMongoDBExplainActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMongoDBExplainActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMongoDBExplainActionDefault) Code() int { func (o *StartMongoDBExplainActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMongoDBExplain][%d] StartMongoDBExplainAction default %+v", o._statusCode, o.Payload) } + func (o *StartMongoDBExplainActionDefault) GetPayload() *StartMongoDBExplainActionDefaultBody { return o.Payload } func (o *StartMongoDBExplainActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMongoDBExplainActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMongoDBExplainActionBody start mongo DB explain action body swagger:model StartMongoDBExplainActionBody */ type StartMongoDBExplainActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -167,7 +166,6 @@ StartMongoDBExplainActionDefaultBody start mongo DB explain action default body swagger:model StartMongoDBExplainActionDefaultBody */ type StartMongoDBExplainActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -233,9 +231,7 @@ func (o *StartMongoDBExplainActionDefaultBody) ContextValidate(ctx context.Conte } func (o *StartMongoDBExplainActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -246,7 +242,6 @@ func (o *StartMongoDBExplainActionDefaultBody) contextValidateDetails(ctx contex return err } } - } return nil @@ -275,7 +270,6 @@ StartMongoDBExplainActionDefaultBodyDetailsItems0 start mongo DB explain action swagger:model StartMongoDBExplainActionDefaultBodyDetailsItems0 */ type StartMongoDBExplainActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -313,7 +307,6 @@ StartMongoDBExplainActionOKBody start mongo DB explain action OK body swagger:model StartMongoDBExplainActionOKBody */ type StartMongoDBExplainActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go index 53a5e5575b..c6046f432b 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_action_parameters.go @@ -60,7 +60,6 @@ StartMySQLExplainActionParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type StartMySQLExplainActionParams struct { - // Body. Body StartMySQLExplainActionBody @@ -130,7 +129,6 @@ func (o *StartMySQLExplainActionParams) SetBody(body StartMySQLExplainActionBody // WriteToRequest writes these params to a swagger request func (o *StartMySQLExplainActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go index 9019d17d81..3a9b33a8a5 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLExplainActionOK struct { func (o *StartMySQLExplainActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplain][%d] startMySqlExplainActionOk %+v", 200, o.Payload) } + func (o *StartMySQLExplainActionOK) GetPayload() *StartMySQLExplainActionOKBody { return o.Payload } func (o *StartMySQLExplainActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLExplainActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLExplainActionDefault) Code() int { func (o *StartMySQLExplainActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplain][%d] StartMySQLExplainAction default %+v", o._statusCode, o.Payload) } + func (o *StartMySQLExplainActionDefault) GetPayload() *StartMySQLExplainActionDefaultBody { return o.Payload } func (o *StartMySQLExplainActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLExplainActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMySQLExplainActionBody start my SQL explain action body swagger:model StartMySQLExplainActionBody */ type StartMySQLExplainActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartMySQLExplainActionDefaultBody start my SQL explain action default body swagger:model StartMySQLExplainActionDefaultBody */ type StartMySQLExplainActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartMySQLExplainActionDefaultBody) ContextValidate(ctx context.Context } func (o *StartMySQLExplainActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartMySQLExplainActionDefaultBody) contextValidateDetails(ctx context. return err } } - } return nil @@ -278,7 +273,6 @@ StartMySQLExplainActionDefaultBodyDetailsItems0 start my SQL explain action defa swagger:model StartMySQLExplainActionDefaultBodyDetailsItems0 */ type StartMySQLExplainActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartMySQLExplainActionOKBody start my SQL explain action OK body swagger:model StartMySQLExplainActionOKBody */ type StartMySQLExplainActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go index dff9e0b6eb..03d9f224b7 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_parameters.go @@ -60,7 +60,6 @@ StartMySQLExplainJSONActionParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type StartMySQLExplainJSONActionParams struct { - // Body. Body StartMySQLExplainJSONActionBody @@ -130,7 +129,6 @@ func (o *StartMySQLExplainJSONActionParams) SetBody(body StartMySQLExplainJSONAc // WriteToRequest writes these params to a swagger request func (o *StartMySQLExplainJSONActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go index abcdf13f50..273216b710 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_json_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLExplainJSONActionOK struct { func (o *StartMySQLExplainJSONActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainJSON][%d] startMySqlExplainJsonActionOk %+v", 200, o.Payload) } + func (o *StartMySQLExplainJSONActionOK) GetPayload() *StartMySQLExplainJSONActionOKBody { return o.Payload } func (o *StartMySQLExplainJSONActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLExplainJSONActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLExplainJSONActionDefault) Code() int { func (o *StartMySQLExplainJSONActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainJSON][%d] StartMySQLExplainJSONAction default %+v", o._statusCode, o.Payload) } + func (o *StartMySQLExplainJSONActionDefault) GetPayload() *StartMySQLExplainJSONActionDefaultBody { return o.Payload } func (o *StartMySQLExplainJSONActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLExplainJSONActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMySQLExplainJSONActionBody start my SQL explain JSON action body swagger:model StartMySQLExplainJSONActionBody */ type StartMySQLExplainJSONActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartMySQLExplainJSONActionDefaultBody start my SQL explain JSON action default swagger:model StartMySQLExplainJSONActionDefaultBody */ type StartMySQLExplainJSONActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartMySQLExplainJSONActionDefaultBody) ContextValidate(ctx context.Con } func (o *StartMySQLExplainJSONActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartMySQLExplainJSONActionDefaultBody) contextValidateDetails(ctx cont return err } } - } return nil @@ -278,7 +273,6 @@ StartMySQLExplainJSONActionDefaultBodyDetailsItems0 start my SQL explain JSON ac swagger:model StartMySQLExplainJSONActionDefaultBodyDetailsItems0 */ type StartMySQLExplainJSONActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartMySQLExplainJSONActionOKBody start my SQL explain JSON action OK body swagger:model StartMySQLExplainJSONActionOKBody */ type StartMySQLExplainJSONActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go index d1ee5323aa..d182205d2b 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_parameters.go @@ -60,7 +60,6 @@ StartMySQLExplainTraditionalJSONActionParams contains all the parameters to send Typically these are written to a http.Request. */ type StartMySQLExplainTraditionalJSONActionParams struct { - // Body. Body StartMySQLExplainTraditionalJSONActionBody @@ -130,7 +129,6 @@ func (o *StartMySQLExplainTraditionalJSONActionParams) SetBody(body StartMySQLEx // WriteToRequest writes these params to a swagger request func (o *StartMySQLExplainTraditionalJSONActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go index e58479d1f8..ebea881b94 100644 --- a/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_explain_traditional_json_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLExplainTraditionalJSONActionOK struct { func (o *StartMySQLExplainTraditionalJSONActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainTraditionalJSON][%d] startMySqlExplainTraditionalJsonActionOk %+v", 200, o.Payload) } + func (o *StartMySQLExplainTraditionalJSONActionOK) GetPayload() *StartMySQLExplainTraditionalJSONActionOKBody { return o.Payload } func (o *StartMySQLExplainTraditionalJSONActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLExplainTraditionalJSONActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLExplainTraditionalJSONActionDefault) Code() int { func (o *StartMySQLExplainTraditionalJSONActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLExplainTraditionalJSON][%d] StartMySQLExplainTraditionalJSONAction default %+v", o._statusCode, o.Payload) } + func (o *StartMySQLExplainTraditionalJSONActionDefault) GetPayload() *StartMySQLExplainTraditionalJSONActionDefaultBody { return o.Payload } func (o *StartMySQLExplainTraditionalJSONActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLExplainTraditionalJSONActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMySQLExplainTraditionalJSONActionBody start my SQL explain traditional JSON swagger:model StartMySQLExplainTraditionalJSONActionBody */ type StartMySQLExplainTraditionalJSONActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartMySQLExplainTraditionalJSONActionDefaultBody start my SQL explain tradition swagger:model StartMySQLExplainTraditionalJSONActionDefaultBody */ type StartMySQLExplainTraditionalJSONActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) ContextValidate(ctx } func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartMySQLExplainTraditionalJSONActionDefaultBody) contextValidateDetai return err } } - } return nil @@ -278,7 +273,6 @@ StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 start my SQL expl swagger:model StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 */ type StartMySQLExplainTraditionalJSONActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartMySQLExplainTraditionalJSONActionOKBody start my SQL explain traditional JS swagger:model StartMySQLExplainTraditionalJSONActionOKBody */ type StartMySQLExplainTraditionalJSONActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go index 3925d5e0b1..cdb30a1274 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_parameters.go @@ -60,7 +60,6 @@ StartMySQLShowCreateTableActionParams contains all the parameters to send to the Typically these are written to a http.Request. */ type StartMySQLShowCreateTableActionParams struct { - // Body. Body StartMySQLShowCreateTableActionBody @@ -130,7 +129,6 @@ func (o *StartMySQLShowCreateTableActionParams) SetBody(body StartMySQLShowCreat // WriteToRequest writes these params to a swagger request func (o *StartMySQLShowCreateTableActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go index da0e9f818b..3115a5efbf 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_create_table_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLShowCreateTableActionOK struct { func (o *StartMySQLShowCreateTableActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowCreateTable][%d] startMySqlShowCreateTableActionOk %+v", 200, o.Payload) } + func (o *StartMySQLShowCreateTableActionOK) GetPayload() *StartMySQLShowCreateTableActionOKBody { return o.Payload } func (o *StartMySQLShowCreateTableActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLShowCreateTableActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLShowCreateTableActionDefault) Code() int { func (o *StartMySQLShowCreateTableActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowCreateTable][%d] StartMySQLShowCreateTableAction default %+v", o._statusCode, o.Payload) } + func (o *StartMySQLShowCreateTableActionDefault) GetPayload() *StartMySQLShowCreateTableActionDefaultBody { return o.Payload } func (o *StartMySQLShowCreateTableActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLShowCreateTableActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMySQLShowCreateTableActionBody start my SQL show create table action body swagger:model StartMySQLShowCreateTableActionBody */ type StartMySQLShowCreateTableActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartMySQLShowCreateTableActionDefaultBody start my SQL show create table action swagger:model StartMySQLShowCreateTableActionDefaultBody */ type StartMySQLShowCreateTableActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartMySQLShowCreateTableActionDefaultBody) ContextValidate(ctx context } func (o *StartMySQLShowCreateTableActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartMySQLShowCreateTableActionDefaultBody) contextValidateDetails(ctx return err } } - } return nil @@ -278,7 +273,6 @@ StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 start my SQL show create swagger:model StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 */ type StartMySQLShowCreateTableActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartMySQLShowCreateTableActionOKBody start my SQL show create table action OK b swagger:model StartMySQLShowCreateTableActionOKBody */ type StartMySQLShowCreateTableActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go index 084c7e3303..a21d88fb3a 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_index_action_parameters.go @@ -60,7 +60,6 @@ StartMySQLShowIndexActionParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type StartMySQLShowIndexActionParams struct { - // Body. Body StartMySQLShowIndexActionBody @@ -130,7 +129,6 @@ func (o *StartMySQLShowIndexActionParams) SetBody(body StartMySQLShowIndexAction // WriteToRequest writes these params to a swagger request func (o *StartMySQLShowIndexActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go index 4ab5d4e157..b82022dd6d 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_index_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLShowIndexActionOK struct { func (o *StartMySQLShowIndexActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowIndex][%d] startMySqlShowIndexActionOk %+v", 200, o.Payload) } + func (o *StartMySQLShowIndexActionOK) GetPayload() *StartMySQLShowIndexActionOKBody { return o.Payload } func (o *StartMySQLShowIndexActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLShowIndexActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLShowIndexActionDefault) Code() int { func (o *StartMySQLShowIndexActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowIndex][%d] StartMySQLShowIndexAction default %+v", o._statusCode, o.Payload) } + func (o *StartMySQLShowIndexActionDefault) GetPayload() *StartMySQLShowIndexActionDefaultBody { return o.Payload } func (o *StartMySQLShowIndexActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLShowIndexActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMySQLShowIndexActionBody start my SQL show index action body swagger:model StartMySQLShowIndexActionBody */ type StartMySQLShowIndexActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartMySQLShowIndexActionDefaultBody start my SQL show index action default body swagger:model StartMySQLShowIndexActionDefaultBody */ type StartMySQLShowIndexActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartMySQLShowIndexActionDefaultBody) ContextValidate(ctx context.Conte } func (o *StartMySQLShowIndexActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartMySQLShowIndexActionDefaultBody) contextValidateDetails(ctx contex return err } } - } return nil @@ -278,7 +273,6 @@ StartMySQLShowIndexActionDefaultBodyDetailsItems0 start my SQL show index action swagger:model StartMySQLShowIndexActionDefaultBodyDetailsItems0 */ type StartMySQLShowIndexActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartMySQLShowIndexActionOKBody start my SQL show index action OK body swagger:model StartMySQLShowIndexActionOKBody */ type StartMySQLShowIndexActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go index fe206c8b70..9aca846274 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_parameters.go @@ -60,7 +60,6 @@ StartMySQLShowTableStatusActionParams contains all the parameters to send to the Typically these are written to a http.Request. */ type StartMySQLShowTableStatusActionParams struct { - // Body. Body StartMySQLShowTableStatusActionBody @@ -130,7 +129,6 @@ func (o *StartMySQLShowTableStatusActionParams) SetBody(body StartMySQLShowTable // WriteToRequest writes these params to a swagger request func (o *StartMySQLShowTableStatusActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go index ce045b702e..d3403dc057 100644 --- a/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go +++ b/api/managementpb/json/client/actions/start_my_sql_show_table_status_action_responses.go @@ -60,12 +60,12 @@ type StartMySQLShowTableStatusActionOK struct { func (o *StartMySQLShowTableStatusActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowTableStatus][%d] startMySqlShowTableStatusActionOk %+v", 200, o.Payload) } + func (o *StartMySQLShowTableStatusActionOK) GetPayload() *StartMySQLShowTableStatusActionOKBody { return o.Payload } func (o *StartMySQLShowTableStatusActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLShowTableStatusActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartMySQLShowTableStatusActionDefault) Code() int { func (o *StartMySQLShowTableStatusActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartMySQLShowTableStatus][%d] StartMySQLShowTableStatusAction default %+v", o._statusCode, o.Payload) } + func (o *StartMySQLShowTableStatusActionDefault) GetPayload() *StartMySQLShowTableStatusActionDefaultBody { return o.Payload } func (o *StartMySQLShowTableStatusActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartMySQLShowTableStatusActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartMySQLShowTableStatusActionBody start my SQL show table status action body swagger:model StartMySQLShowTableStatusActionBody */ type StartMySQLShowTableStatusActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartMySQLShowTableStatusActionDefaultBody start my SQL show table status action swagger:model StartMySQLShowTableStatusActionDefaultBody */ type StartMySQLShowTableStatusActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartMySQLShowTableStatusActionDefaultBody) ContextValidate(ctx context } func (o *StartMySQLShowTableStatusActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartMySQLShowTableStatusActionDefaultBody) contextValidateDetails(ctx return err } } - } return nil @@ -278,7 +273,6 @@ StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 start my SQL show table swagger:model StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 */ type StartMySQLShowTableStatusActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartMySQLShowTableStatusActionOKBody start my SQL show table status action OK b swagger:model StartMySQLShowTableStatusActionOKBody */ type StartMySQLShowTableStatusActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go index 5245d3004d..bd14d9a514 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_parameters.go @@ -60,7 +60,6 @@ StartPostgreSQLShowCreateTableActionParams contains all the parameters to send t Typically these are written to a http.Request. */ type StartPostgreSQLShowCreateTableActionParams struct { - // Body. Body StartPostgreSQLShowCreateTableActionBody @@ -130,7 +129,6 @@ func (o *StartPostgreSQLShowCreateTableActionParams) SetBody(body StartPostgreSQ // WriteToRequest writes these params to a swagger request func (o *StartPostgreSQLShowCreateTableActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go index 3fb66062e4..97260190f8 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_create_table_action_responses.go @@ -60,12 +60,12 @@ type StartPostgreSQLShowCreateTableActionOK struct { func (o *StartPostgreSQLShowCreateTableActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowCreateTable][%d] startPostgreSqlShowCreateTableActionOk %+v", 200, o.Payload) } + func (o *StartPostgreSQLShowCreateTableActionOK) GetPayload() *StartPostgreSQLShowCreateTableActionOKBody { return o.Payload } func (o *StartPostgreSQLShowCreateTableActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPostgreSQLShowCreateTableActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPostgreSQLShowCreateTableActionDefault) Code() int { func (o *StartPostgreSQLShowCreateTableActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowCreateTable][%d] StartPostgreSQLShowCreateTableAction default %+v", o._statusCode, o.Payload) } + func (o *StartPostgreSQLShowCreateTableActionDefault) GetPayload() *StartPostgreSQLShowCreateTableActionDefaultBody { return o.Payload } func (o *StartPostgreSQLShowCreateTableActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPostgreSQLShowCreateTableActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartPostgreSQLShowCreateTableActionBody start postgre SQL show create table act swagger:model StartPostgreSQLShowCreateTableActionBody */ type StartPostgreSQLShowCreateTableActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartPostgreSQLShowCreateTableActionDefaultBody start postgre SQL show create ta swagger:model StartPostgreSQLShowCreateTableActionDefaultBody */ type StartPostgreSQLShowCreateTableActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartPostgreSQLShowCreateTableActionDefaultBody) ContextValidate(ctx co } func (o *StartPostgreSQLShowCreateTableActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartPostgreSQLShowCreateTableActionDefaultBody) contextValidateDetails return err } } - } return nil @@ -278,7 +273,6 @@ StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 start postgre SQL s swagger:model StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 */ type StartPostgreSQLShowCreateTableActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartPostgreSQLShowCreateTableActionOKBody start postgre SQL show create table a swagger:model StartPostgreSQLShowCreateTableActionOKBody */ type StartPostgreSQLShowCreateTableActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go index a856b6602c..c124c400d3 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_parameters.go @@ -60,7 +60,6 @@ StartPostgreSQLShowIndexActionParams contains all the parameters to send to the Typically these are written to a http.Request. */ type StartPostgreSQLShowIndexActionParams struct { - // Body. Body StartPostgreSQLShowIndexActionBody @@ -130,7 +129,6 @@ func (o *StartPostgreSQLShowIndexActionParams) SetBody(body StartPostgreSQLShowI // WriteToRequest writes these params to a swagger request func (o *StartPostgreSQLShowIndexActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go index b971a606d0..767c1aa85a 100644 --- a/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go +++ b/api/managementpb/json/client/actions/start_postgre_sql_show_index_action_responses.go @@ -60,12 +60,12 @@ type StartPostgreSQLShowIndexActionOK struct { func (o *StartPostgreSQLShowIndexActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowIndex][%d] startPostgreSqlShowIndexActionOk %+v", 200, o.Payload) } + func (o *StartPostgreSQLShowIndexActionOK) GetPayload() *StartPostgreSQLShowIndexActionOKBody { return o.Payload } func (o *StartPostgreSQLShowIndexActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPostgreSQLShowIndexActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPostgreSQLShowIndexActionDefault) Code() int { func (o *StartPostgreSQLShowIndexActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPostgreSQLShowIndex][%d] StartPostgreSQLShowIndexAction default %+v", o._statusCode, o.Payload) } + func (o *StartPostgreSQLShowIndexActionDefault) GetPayload() *StartPostgreSQLShowIndexActionDefaultBody { return o.Payload } func (o *StartPostgreSQLShowIndexActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPostgreSQLShowIndexActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartPostgreSQLShowIndexActionBody start postgre SQL show index action body swagger:model StartPostgreSQLShowIndexActionBody */ type StartPostgreSQLShowIndexActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -170,7 +169,6 @@ StartPostgreSQLShowIndexActionDefaultBody start postgre SQL show index action de swagger:model StartPostgreSQLShowIndexActionDefaultBody */ type StartPostgreSQLShowIndexActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -236,9 +234,7 @@ func (o *StartPostgreSQLShowIndexActionDefaultBody) ContextValidate(ctx context. } func (o *StartPostgreSQLShowIndexActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +245,6 @@ func (o *StartPostgreSQLShowIndexActionDefaultBody) contextValidateDetails(ctx c return err } } - } return nil @@ -278,7 +273,6 @@ StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 start postgre SQL show in swagger:model StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 */ type StartPostgreSQLShowIndexActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -316,7 +310,6 @@ StartPostgreSQLShowIndexActionOKBody start postgre SQL show index action OK body swagger:model StartPostgreSQLShowIndexActionOKBody */ type StartPostgreSQLShowIndexActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go index 96eb6cab1c..c970df2211 100644 --- a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_parameters.go @@ -60,7 +60,6 @@ StartPTMongoDBSummaryActionParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type StartPTMongoDBSummaryActionParams struct { - // Body. Body StartPTMongoDBSummaryActionBody @@ -130,7 +129,6 @@ func (o *StartPTMongoDBSummaryActionParams) SetBody(body StartPTMongoDBSummaryAc // WriteToRequest writes these params to a swagger request func (o *StartPTMongoDBSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go index b14c02c25d..506059ad1f 100644 --- a/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_mongo_db_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTMongoDBSummaryActionOK struct { func (o *StartPTMongoDBSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMongoDBSummary][%d] startPtMongoDbSummaryActionOk %+v", 200, o.Payload) } + func (o *StartPTMongoDBSummaryActionOK) GetPayload() *StartPTMongoDBSummaryActionOKBody { return o.Payload } func (o *StartPTMongoDBSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTMongoDBSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTMongoDBSummaryActionDefault) Code() int { func (o *StartPTMongoDBSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMongoDBSummary][%d] StartPTMongoDBSummaryAction default %+v", o._statusCode, o.Payload) } + func (o *StartPTMongoDBSummaryActionDefault) GetPayload() *StartPTMongoDBSummaryActionDefaultBody { return o.Payload } func (o *StartPTMongoDBSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTMongoDBSummaryActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartPTMongoDBSummaryActionBody Message to prepare pt-mongodb-summary data swagger:model StartPTMongoDBSummaryActionBody */ type StartPTMongoDBSummaryActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -164,7 +163,6 @@ StartPTMongoDBSummaryActionDefaultBody start PT mongo DB summary action default swagger:model StartPTMongoDBSummaryActionDefaultBody */ type StartPTMongoDBSummaryActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *StartPTMongoDBSummaryActionDefaultBody) ContextValidate(ctx context.Con } func (o *StartPTMongoDBSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *StartPTMongoDBSummaryActionDefaultBody) contextValidateDetails(ctx cont return err } } - } return nil @@ -272,7 +267,6 @@ StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 start PT mongo DB summary ac swagger:model StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 */ type StartPTMongoDBSummaryActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ StartPTMongoDBSummaryActionOKBody Message to retrieve the prepared pt-mongodb-su swagger:model StartPTMongoDBSummaryActionOKBody */ type StartPTMongoDBSummaryActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go index 9f1f2000f6..ae4ddbcf89 100644 --- a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_parameters.go @@ -60,7 +60,6 @@ StartPTMySQLSummaryActionParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type StartPTMySQLSummaryActionParams struct { - // Body. Body StartPTMySQLSummaryActionBody @@ -130,7 +129,6 @@ func (o *StartPTMySQLSummaryActionParams) SetBody(body StartPTMySQLSummaryAction // WriteToRequest writes these params to a swagger request func (o *StartPTMySQLSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go index dfc628253f..dcd6b0a240 100644 --- a/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_my_sql_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTMySQLSummaryActionOK struct { func (o *StartPTMySQLSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMySQLSummary][%d] startPtMySqlSummaryActionOk %+v", 200, o.Payload) } + func (o *StartPTMySQLSummaryActionOK) GetPayload() *StartPTMySQLSummaryActionOKBody { return o.Payload } func (o *StartPTMySQLSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTMySQLSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTMySQLSummaryActionDefault) Code() int { func (o *StartPTMySQLSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTMySQLSummary][%d] StartPTMySQLSummaryAction default %+v", o._statusCode, o.Payload) } + func (o *StartPTMySQLSummaryActionDefault) GetPayload() *StartPTMySQLSummaryActionDefaultBody { return o.Payload } func (o *StartPTMySQLSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTMySQLSummaryActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartPTMySQLSummaryActionBody Message to prepare pt-mysql-summary data swagger:model StartPTMySQLSummaryActionBody */ type StartPTMySQLSummaryActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -164,7 +163,6 @@ StartPTMySQLSummaryActionDefaultBody start PT my SQL summary action default body swagger:model StartPTMySQLSummaryActionDefaultBody */ type StartPTMySQLSummaryActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *StartPTMySQLSummaryActionDefaultBody) ContextValidate(ctx context.Conte } func (o *StartPTMySQLSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *StartPTMySQLSummaryActionDefaultBody) contextValidateDetails(ctx contex return err } } - } return nil @@ -272,7 +267,6 @@ StartPTMySQLSummaryActionDefaultBodyDetailsItems0 start PT my SQL summary action swagger:model StartPTMySQLSummaryActionDefaultBodyDetailsItems0 */ type StartPTMySQLSummaryActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ StartPTMySQLSummaryActionOKBody Message to retrieve the prepared pt-mysql-summar swagger:model StartPTMySQLSummaryActionOKBody */ type StartPTMySQLSummaryActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go index e1571372d0..f2eff89d17 100644 --- a/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_pg_summary_action_parameters.go @@ -60,7 +60,6 @@ StartPTPgSummaryActionParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type StartPTPgSummaryActionParams struct { - // Body. Body StartPTPgSummaryActionBody @@ -130,7 +129,6 @@ func (o *StartPTPgSummaryActionParams) SetBody(body StartPTPgSummaryActionBody) // WriteToRequest writes these params to a swagger request func (o *StartPTPgSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go index 7cd914b581..92cf81cfbf 100644 --- a/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_pg_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTPgSummaryActionOK struct { func (o *StartPTPgSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTPgSummary][%d] startPtPgSummaryActionOk %+v", 200, o.Payload) } + func (o *StartPTPgSummaryActionOK) GetPayload() *StartPTPgSummaryActionOKBody { return o.Payload } func (o *StartPTPgSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTPgSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTPgSummaryActionDefault) Code() int { func (o *StartPTPgSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTPgSummary][%d] StartPTPgSummaryAction default %+v", o._statusCode, o.Payload) } + func (o *StartPTPgSummaryActionDefault) GetPayload() *StartPTPgSummaryActionDefaultBody { return o.Payload } func (o *StartPTPgSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTPgSummaryActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartPTPgSummaryActionBody Message to prepare pt-pg-summary data swagger:model StartPTPgSummaryActionBody */ type StartPTPgSummaryActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -164,7 +163,6 @@ StartPTPgSummaryActionDefaultBody start PT pg summary action default body swagger:model StartPTPgSummaryActionDefaultBody */ type StartPTPgSummaryActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *StartPTPgSummaryActionDefaultBody) ContextValidate(ctx context.Context, } func (o *StartPTPgSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *StartPTPgSummaryActionDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -272,7 +267,6 @@ StartPTPgSummaryActionDefaultBodyDetailsItems0 start PT pg summary action defaul swagger:model StartPTPgSummaryActionDefaultBodyDetailsItems0 */ type StartPTPgSummaryActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ StartPTPgSummaryActionOKBody Message to retrieve the prepared pt-pg-summary data swagger:model StartPTPgSummaryActionOKBody */ type StartPTPgSummaryActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go b/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go index 055d38f5ba..816c3e8e05 100644 --- a/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go +++ b/api/managementpb/json/client/actions/start_pt_summary_action_parameters.go @@ -60,7 +60,6 @@ StartPTSummaryActionParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type StartPTSummaryActionParams struct { - // Body. Body StartPTSummaryActionBody @@ -130,7 +129,6 @@ func (o *StartPTSummaryActionParams) SetBody(body StartPTSummaryActionBody) { // WriteToRequest writes these params to a swagger request func (o *StartPTSummaryActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/actions/start_pt_summary_action_responses.go b/api/managementpb/json/client/actions/start_pt_summary_action_responses.go index 8be0539893..d935512a5c 100644 --- a/api/managementpb/json/client/actions/start_pt_summary_action_responses.go +++ b/api/managementpb/json/client/actions/start_pt_summary_action_responses.go @@ -60,12 +60,12 @@ type StartPTSummaryActionOK struct { func (o *StartPTSummaryActionOK) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTSummary][%d] startPtSummaryActionOk %+v", 200, o.Payload) } + func (o *StartPTSummaryActionOK) GetPayload() *StartPTSummaryActionOKBody { return o.Payload } func (o *StartPTSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTSummaryActionOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartPTSummaryActionDefault) Code() int { func (o *StartPTSummaryActionDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Actions/StartPTSummary][%d] StartPTSummaryAction default %+v", o._statusCode, o.Payload) } + func (o *StartPTSummaryActionDefault) GetPayload() *StartPTSummaryActionDefaultBody { return o.Payload } func (o *StartPTSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTSummaryActionDefaultBody) // response payload @@ -123,7 +123,6 @@ StartPTSummaryActionBody start PT summary action body swagger:model StartPTSummaryActionBody */ type StartPTSummaryActionBody struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -164,7 +163,6 @@ StartPTSummaryActionDefaultBody start PT summary action default body swagger:model StartPTSummaryActionDefaultBody */ type StartPTSummaryActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *StartPTSummaryActionDefaultBody) ContextValidate(ctx context.Context, f } func (o *StartPTSummaryActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *StartPTSummaryActionDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -272,7 +267,6 @@ StartPTSummaryActionDefaultBodyDetailsItems0 start PT summary action default bod swagger:model StartPTSummaryActionDefaultBodyDetailsItems0 */ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -310,7 +304,6 @@ StartPTSummaryActionOKBody start PT summary action OK body swagger:model StartPTSummaryActionOKBody */ type StartPTSummaryActionOKBody struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` diff --git a/api/managementpb/json/client/annotation/add_annotation_parameters.go b/api/managementpb/json/client/annotation/add_annotation_parameters.go index a3c3439116..dfd1c36bc5 100644 --- a/api/managementpb/json/client/annotation/add_annotation_parameters.go +++ b/api/managementpb/json/client/annotation/add_annotation_parameters.go @@ -60,7 +60,6 @@ AddAnnotationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddAnnotationParams struct { - /* Body. AddAnnotationRequest is a params to add new annotation. @@ -133,7 +132,6 @@ func (o *AddAnnotationParams) SetBody(body AddAnnotationBody) { // WriteToRequest writes these params to a swagger request func (o *AddAnnotationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/annotation/add_annotation_responses.go b/api/managementpb/json/client/annotation/add_annotation_responses.go index 3701159fc5..6f9cf3e3e1 100644 --- a/api/managementpb/json/client/annotation/add_annotation_responses.go +++ b/api/managementpb/json/client/annotation/add_annotation_responses.go @@ -60,12 +60,12 @@ type AddAnnotationOK struct { func (o *AddAnnotationOK) Error() string { return fmt.Sprintf("[POST /v1/management/Annotations/Add][%d] addAnnotationOk %+v", 200, o.Payload) } + func (o *AddAnnotationOK) GetPayload() interface{} { return o.Payload } func (o *AddAnnotationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *AddAnnotationDefault) Code() int { func (o *AddAnnotationDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Annotations/Add][%d] AddAnnotation default %+v", o._statusCode, o.Payload) } + func (o *AddAnnotationDefault) GetPayload() *AddAnnotationDefaultBody { return o.Payload } func (o *AddAnnotationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAnnotationDefaultBody) // response payload @@ -121,7 +121,6 @@ AddAnnotationBody AddAnnotationRequest is a params to add new annotation. swagger:model AddAnnotationBody */ type AddAnnotationBody struct { - // An annotation description. Required. Text string `json:"text,omitempty"` @@ -168,7 +167,6 @@ AddAnnotationDefaultBody add annotation default body swagger:model AddAnnotationDefaultBody */ type AddAnnotationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -234,9 +232,7 @@ func (o *AddAnnotationDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddAnnotationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -247,7 +243,6 @@ func (o *AddAnnotationDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -276,7 +271,6 @@ AddAnnotationDefaultBodyDetailsItems0 add annotation default body details items0 swagger:model AddAnnotationDefaultBodyDetailsItems0 */ type AddAnnotationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/external/add_external_parameters.go b/api/managementpb/json/client/external/add_external_parameters.go index e965c9d141..f58a91ff4f 100644 --- a/api/managementpb/json/client/external/add_external_parameters.go +++ b/api/managementpb/json/client/external/add_external_parameters.go @@ -60,7 +60,6 @@ AddExternalParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddExternalParams struct { - // Body. Body AddExternalBody @@ -130,7 +129,6 @@ func (o *AddExternalParams) SetBody(body AddExternalBody) { // WriteToRequest writes these params to a swagger request func (o *AddExternalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/external/add_external_responses.go b/api/managementpb/json/client/external/add_external_responses.go index bc959a1835..635fd29e4f 100644 --- a/api/managementpb/json/client/external/add_external_responses.go +++ b/api/managementpb/json/client/external/add_external_responses.go @@ -62,12 +62,12 @@ type AddExternalOK struct { func (o *AddExternalOK) Error() string { return fmt.Sprintf("[POST /v1/management/External/Add][%d] addExternalOk %+v", 200, o.Payload) } + func (o *AddExternalOK) GetPayload() *AddExternalOKBody { return o.Payload } func (o *AddExternalOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddExternalDefault) Code() int { func (o *AddExternalDefault) Error() string { return fmt.Sprintf("[POST /v1/management/External/Add][%d] AddExternal default %+v", o._statusCode, o.Payload) } + func (o *AddExternalDefault) GetPayload() *AddExternalDefaultBody { return o.Payload } func (o *AddExternalDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddExternalDefaultBody) // response payload @@ -125,7 +125,6 @@ AddExternalBody add external body swagger:model AddExternalBody */ type AddExternalBody struct { - // Node identifier on which an external exporter is been running. // runs_on_node_id always should be passed with node_id. // Exactly one of these parameters should be present: node_id, node_name, add_node. @@ -288,7 +287,6 @@ func (o *AddExternalBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddExternalBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -326,7 +324,6 @@ AddExternalDefaultBody add external default body swagger:model AddExternalDefaultBody */ type AddExternalDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -392,9 +389,7 @@ func (o *AddExternalDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddExternalDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -405,7 +400,6 @@ func (o *AddExternalDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -434,7 +428,6 @@ AddExternalDefaultBodyDetailsItems0 add external default body details items0 swagger:model AddExternalDefaultBodyDetailsItems0 */ type AddExternalDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -472,7 +465,6 @@ AddExternalOKBody add external OK body swagger:model AddExternalOKBody */ type AddExternalOKBody struct { - // external exporter ExternalExporter *AddExternalOKBodyExternalExporter `json:"external_exporter,omitempty"` @@ -555,7 +547,6 @@ func (o *AddExternalOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddExternalOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -571,7 +562,6 @@ func (o *AddExternalOKBody) contextValidateExternalExporter(ctx context.Context, } func (o *AddExternalOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -609,7 +599,6 @@ AddExternalOKBodyExternalExporter ExternalExporter runs on any Node type, includ swagger:model AddExternalOKBodyExternalExporter */ type AddExternalOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -677,7 +666,6 @@ AddExternalOKBodyService ExternalService represents a generic External service i swagger:model AddExternalOKBodyService */ type AddExternalOKBodyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -736,7 +724,6 @@ AddExternalParamsBodyAddNode AddNodeParams is a params to add new node to invent swagger:model AddExternalParamsBodyAddNode */ type AddExternalParamsBodyAddNode struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go index aeacacdc0b..ac06a0fc9d 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_parameters.go @@ -60,7 +60,6 @@ AddHAProxyParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddHAProxyParams struct { - // Body. Body AddHAProxyBody @@ -130,7 +129,6 @@ func (o *AddHAProxyParams) SetBody(body AddHAProxyBody) { // WriteToRequest writes these params to a swagger request func (o *AddHAProxyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go index a29ed6717a..0f15f2aed7 100644 --- a/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go +++ b/api/managementpb/json/client/ha_proxy/add_ha_proxy_responses.go @@ -62,12 +62,12 @@ type AddHAProxyOK struct { func (o *AddHAProxyOK) Error() string { return fmt.Sprintf("[POST /v1/management/HAProxy/Add][%d] addHaProxyOk %+v", 200, o.Payload) } + func (o *AddHAProxyOK) GetPayload() *AddHAProxyOKBody { return o.Payload } func (o *AddHAProxyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddHAProxyOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddHAProxyDefault) Code() int { func (o *AddHAProxyDefault) Error() string { return fmt.Sprintf("[POST /v1/management/HAProxy/Add][%d] AddHAProxy default %+v", o._statusCode, o.Payload) } + func (o *AddHAProxyDefault) GetPayload() *AddHAProxyDefaultBody { return o.Payload } func (o *AddHAProxyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddHAProxyDefaultBody) // response payload @@ -125,7 +125,6 @@ AddHAProxyBody add HA proxy body swagger:model AddHAProxyBody */ type AddHAProxyBody struct { - // Node identifier on which an external exporter is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -280,7 +279,6 @@ func (o *AddHAProxyBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddHAProxyBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -318,7 +316,6 @@ AddHAProxyDefaultBody add HA proxy default body swagger:model AddHAProxyDefaultBody */ type AddHAProxyDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -384,9 +381,7 @@ func (o *AddHAProxyDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddHAProxyDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -397,7 +392,6 @@ func (o *AddHAProxyDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -426,7 +420,6 @@ AddHAProxyDefaultBodyDetailsItems0 add HA proxy default body details items0 swagger:model AddHAProxyDefaultBodyDetailsItems0 */ type AddHAProxyDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -464,7 +457,6 @@ AddHAProxyOKBody add HA proxy OK body swagger:model AddHAProxyOKBody */ type AddHAProxyOKBody struct { - // external exporter ExternalExporter *AddHAProxyOKBodyExternalExporter `json:"external_exporter,omitempty"` @@ -547,7 +539,6 @@ func (o *AddHAProxyOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddHAProxyOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if err := o.ExternalExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -563,7 +554,6 @@ func (o *AddHAProxyOKBody) contextValidateExternalExporter(ctx context.Context, } func (o *AddHAProxyOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -601,7 +591,6 @@ AddHAProxyOKBodyExternalExporter ExternalExporter runs on any Node type, includi swagger:model AddHAProxyOKBodyExternalExporter */ type AddHAProxyOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -669,7 +658,6 @@ AddHAProxyOKBodyService HAProxyService represents a generic HAProxy service inst swagger:model AddHAProxyOKBodyService */ type AddHAProxyOKBodyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -725,7 +713,6 @@ AddHAProxyParamsBodyAddNode AddNodeParams is a params to add new node to invento swagger:model AddHAProxyParamsBodyAddNode */ type AddHAProxyParamsBodyAddNode struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go b/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go index 7990ce64f6..d232151552 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_parameters.go @@ -60,7 +60,6 @@ AddMongoDBParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMongoDBParams struct { - // Body. Body AddMongoDBBody @@ -130,7 +129,6 @@ func (o *AddMongoDBParams) SetBody(body AddMongoDBBody) { // WriteToRequest writes these params to a swagger request func (o *AddMongoDBParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go index 3eeb6e88a2..8460720298 100644 --- a/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go +++ b/api/managementpb/json/client/mongo_db/add_mongo_db_responses.go @@ -62,12 +62,12 @@ type AddMongoDBOK struct { func (o *AddMongoDBOK) Error() string { return fmt.Sprintf("[POST /v1/management/MongoDB/Add][%d] addMongoDbOk %+v", 200, o.Payload) } + func (o *AddMongoDBOK) GetPayload() *AddMongoDBOKBody { return o.Payload } func (o *AddMongoDBOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMongoDBDefault) Code() int { func (o *AddMongoDBDefault) Error() string { return fmt.Sprintf("[POST /v1/management/MongoDB/Add][%d] AddMongoDB default %+v", o._statusCode, o.Payload) } + func (o *AddMongoDBDefault) GetPayload() *AddMongoDBDefaultBody { return o.Payload } func (o *AddMongoDBDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMongoDBDefaultBody) // response payload @@ -125,7 +125,6 @@ AddMongoDBBody add mongo DB body swagger:model AddMongoDBBody */ type AddMongoDBBody struct { - // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -386,7 +385,6 @@ func (o *AddMongoDBBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddMongoDBBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -424,7 +422,6 @@ AddMongoDBDefaultBody add mongo DB default body swagger:model AddMongoDBDefaultBody */ type AddMongoDBDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -490,9 +487,7 @@ func (o *AddMongoDBDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddMongoDBDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -503,7 +498,6 @@ func (o *AddMongoDBDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -532,7 +526,6 @@ AddMongoDBDefaultBodyDetailsItems0 add mongo DB default body details items0 swagger:model AddMongoDBDefaultBodyDetailsItems0 */ type AddMongoDBDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -570,7 +563,6 @@ AddMongoDBOKBody add mongo DB OK body swagger:model AddMongoDBOKBody */ type AddMongoDBOKBody struct { - // mongodb exporter MongodbExporter *AddMongoDBOKBodyMongodbExporter `json:"mongodb_exporter,omitempty"` @@ -683,7 +675,6 @@ func (o *AddMongoDBOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddMongoDBOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if err := o.MongodbExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -699,7 +690,6 @@ func (o *AddMongoDBOKBody) contextValidateMongodbExporter(ctx context.Context, f } func (o *AddMongoDBOKBody) contextValidateQANMongodbProfiler(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfiler != nil { if err := o.QANMongodbProfiler.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -715,7 +705,6 @@ func (o *AddMongoDBOKBody) contextValidateQANMongodbProfiler(ctx context.Context } func (o *AddMongoDBOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -753,7 +742,6 @@ AddMongoDBOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Nod swagger:model AddMongoDBOKBodyMongodbExporter */ type AddMongoDBOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -973,7 +961,6 @@ AddMongoDBOKBodyQANMongodbProfiler QANMongoDBProfilerAgent runs within pmm-agent swagger:model AddMongoDBOKBodyQANMongodbProfiler */ type AddMongoDBOKBodyQANMongodbProfiler struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1174,7 +1161,6 @@ AddMongoDBOKBodyService MongoDBService represents a generic MongoDB instance. swagger:model AddMongoDBOKBodyService */ type AddMongoDBOKBodyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1242,7 +1228,6 @@ AddMongoDBParamsBodyAddNode AddNodeParams is a params to add new node to invento swagger:model AddMongoDBParamsBodyAddNode */ type AddMongoDBParamsBodyAddNode struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/my_sql/add_my_sql_parameters.go b/api/managementpb/json/client/my_sql/add_my_sql_parameters.go index 569c9f5949..6055393fdc 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_parameters.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_parameters.go @@ -60,7 +60,6 @@ AddMySQLParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddMySQLParams struct { - // Body. Body AddMySQLBody @@ -130,7 +129,6 @@ func (o *AddMySQLParams) SetBody(body AddMySQLBody) { // WriteToRequest writes these params to a swagger request func (o *AddMySQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/my_sql/add_my_sql_responses.go b/api/managementpb/json/client/my_sql/add_my_sql_responses.go index 729609b74d..823cc93fd9 100644 --- a/api/managementpb/json/client/my_sql/add_my_sql_responses.go +++ b/api/managementpb/json/client/my_sql/add_my_sql_responses.go @@ -62,12 +62,12 @@ type AddMySQLOK struct { func (o *AddMySQLOK) Error() string { return fmt.Sprintf("[POST /v1/management/MySQL/Add][%d] addMySqlOk %+v", 200, o.Payload) } + func (o *AddMySQLOK) GetPayload() *AddMySQLOKBody { return o.Payload } func (o *AddMySQLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddMySQLDefault) Code() int { func (o *AddMySQLDefault) Error() string { return fmt.Sprintf("[POST /v1/management/MySQL/Add][%d] AddMySQL default %+v", o._statusCode, o.Payload) } + func (o *AddMySQLDefault) GetPayload() *AddMySQLDefaultBody { return o.Payload } func (o *AddMySQLDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddMySQLDefaultBody) // response payload @@ -125,7 +125,6 @@ AddMySQLBody add my SQL body swagger:model AddMySQLBody */ type AddMySQLBody struct { - // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -387,7 +386,6 @@ func (o *AddMySQLBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *AddMySQLBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -425,7 +423,6 @@ AddMySQLDefaultBody add my SQL default body swagger:model AddMySQLDefaultBody */ type AddMySQLDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -491,9 +488,7 @@ func (o *AddMySQLDefaultBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddMySQLDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -504,7 +499,6 @@ func (o *AddMySQLDefaultBody) contextValidateDetails(ctx context.Context, format return err } } - } return nil @@ -533,7 +527,6 @@ AddMySQLDefaultBodyDetailsItems0 add my SQL default body details items0 swagger:model AddMySQLDefaultBodyDetailsItems0 */ type AddMySQLDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -571,7 +564,6 @@ AddMySQLOKBody add my SQL OK body swagger:model AddMySQLOKBody */ type AddMySQLOKBody struct { - // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -717,7 +709,6 @@ func (o *AddMySQLOKBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddMySQLOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -733,7 +724,6 @@ func (o *AddMySQLOKBody) contextValidateMysqldExporter(ctx context.Context, form } func (o *AddMySQLOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschema != nil { if err := o.QANMysqlPerfschema.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -749,7 +739,6 @@ func (o *AddMySQLOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, } func (o *AddMySQLOKBody) contextValidateQANMysqlSlowlog(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlog != nil { if err := o.QANMysqlSlowlog.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -765,7 +754,6 @@ func (o *AddMySQLOKBody) contextValidateQANMysqlSlowlog(ctx context.Context, for } func (o *AddMySQLOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -803,7 +791,6 @@ AddMySQLOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node an swagger:model AddMySQLOKBodyMysqldExporter */ type AddMySQLOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1030,7 +1017,6 @@ AddMySQLOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent a swagger:model AddMySQLOKBodyQANMysqlPerfschema */ type AddMySQLOKBodyQANMysqlPerfschema struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1246,7 +1232,6 @@ AddMySQLOKBodyQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent and sen swagger:model AddMySQLOKBodyQANMysqlSlowlog */ type AddMySQLOKBodyQANMysqlSlowlog struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1465,7 +1450,6 @@ AddMySQLOKBodyService MySQLService represents a generic MySQL instance. swagger:model AddMySQLOKBodyService */ type AddMySQLOKBodyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1533,7 +1517,6 @@ AddMySQLParamsBodyAddNode AddNodeParams is a params to add new node to inventory swagger:model AddMySQLParamsBodyAddNode */ type AddMySQLParamsBodyAddNode struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/node/register_node_parameters.go b/api/managementpb/json/client/node/register_node_parameters.go index e50a9c1a89..df5bbc15e6 100644 --- a/api/managementpb/json/client/node/register_node_parameters.go +++ b/api/managementpb/json/client/node/register_node_parameters.go @@ -60,7 +60,6 @@ RegisterNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RegisterNodeParams struct { - // Body. Body RegisterNodeBody @@ -130,7 +129,6 @@ func (o *RegisterNodeParams) SetBody(body RegisterNodeBody) { // WriteToRequest writes these params to a swagger request func (o *RegisterNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/node/register_node_responses.go b/api/managementpb/json/client/node/register_node_responses.go index 688fed529d..b5b0980938 100644 --- a/api/managementpb/json/client/node/register_node_responses.go +++ b/api/managementpb/json/client/node/register_node_responses.go @@ -62,12 +62,12 @@ type RegisterNodeOK struct { func (o *RegisterNodeOK) Error() string { return fmt.Sprintf("[POST /v1/management/Node/Register][%d] registerNodeOk %+v", 200, o.Payload) } + func (o *RegisterNodeOK) GetPayload() *RegisterNodeOKBody { return o.Payload } func (o *RegisterNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RegisterNodeOKBody) // response payload @@ -104,12 +104,12 @@ func (o *RegisterNodeDefault) Code() int { func (o *RegisterNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Node/Register][%d] RegisterNode default %+v", o._statusCode, o.Payload) } + func (o *RegisterNodeDefault) GetPayload() *RegisterNodeDefaultBody { return o.Payload } func (o *RegisterNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RegisterNodeDefaultBody) // response payload @@ -125,7 +125,6 @@ RegisterNodeBody register node body swagger:model RegisterNodeBody */ type RegisterNodeBody struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` @@ -320,7 +319,6 @@ RegisterNodeDefaultBody register node default body swagger:model RegisterNodeDefaultBody */ type RegisterNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -386,9 +384,7 @@ func (o *RegisterNodeDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *RegisterNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -399,7 +395,6 @@ func (o *RegisterNodeDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -428,7 +423,6 @@ RegisterNodeDefaultBodyDetailsItems0 register node default body details items0 swagger:model RegisterNodeDefaultBodyDetailsItems0 */ type RegisterNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -466,7 +460,6 @@ RegisterNodeOKBody register node OK body swagger:model RegisterNodeOKBody */ type RegisterNodeOKBody struct { - // container node ContainerNode *RegisterNodeOKBodyContainerNode `json:"container_node,omitempty"` @@ -579,7 +572,6 @@ func (o *RegisterNodeOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *RegisterNodeOKBody) contextValidateContainerNode(ctx context.Context, formats strfmt.Registry) error { - if o.ContainerNode != nil { if err := o.ContainerNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -595,7 +587,6 @@ func (o *RegisterNodeOKBody) contextValidateContainerNode(ctx context.Context, f } func (o *RegisterNodeOKBody) contextValidateGenericNode(ctx context.Context, formats strfmt.Registry) error { - if o.GenericNode != nil { if err := o.GenericNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -611,7 +602,6 @@ func (o *RegisterNodeOKBody) contextValidateGenericNode(ctx context.Context, for } func (o *RegisterNodeOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { if err := o.PMMAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -649,7 +639,6 @@ RegisterNodeOKBodyContainerNode ContainerNode represents a Docker container. swagger:model RegisterNodeOKBodyContainerNode */ type RegisterNodeOKBodyContainerNode struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -714,7 +703,6 @@ RegisterNodeOKBodyGenericNode GenericNode represents a bare metal server or virt swagger:model RegisterNodeOKBodyGenericNode */ type RegisterNodeOKBodyGenericNode struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -776,7 +764,6 @@ RegisterNodeOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model RegisterNodeOKBodyPMMAgent */ type RegisterNodeOKBodyPMMAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go index 7b16633d78..35e261e3fe 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_parameters.go @@ -60,7 +60,6 @@ AddPostgreSQLParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddPostgreSQLParams struct { - // Body. Body AddPostgreSQLBody @@ -130,7 +129,6 @@ func (o *AddPostgreSQLParams) SetBody(body AddPostgreSQLBody) { // WriteToRequest writes these params to a swagger request func (o *AddPostgreSQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go index 73c3785e94..23a645ff68 100644 --- a/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go +++ b/api/managementpb/json/client/postgre_sql/add_postgre_sql_responses.go @@ -62,12 +62,12 @@ type AddPostgreSQLOK struct { func (o *AddPostgreSQLOK) Error() string { return fmt.Sprintf("[POST /v1/management/PostgreSQL/Add][%d] addPostgreSqlOk %+v", 200, o.Payload) } + func (o *AddPostgreSQLOK) GetPayload() *AddPostgreSQLOKBody { return o.Payload } func (o *AddPostgreSQLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgreSQLOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddPostgreSQLDefault) Code() int { func (o *AddPostgreSQLDefault) Error() string { return fmt.Sprintf("[POST /v1/management/PostgreSQL/Add][%d] AddPostgreSQL default %+v", o._statusCode, o.Payload) } + func (o *AddPostgreSQLDefault) GetPayload() *AddPostgreSQLDefaultBody { return o.Payload } func (o *AddPostgreSQLDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddPostgreSQLDefaultBody) // response payload @@ -125,7 +125,6 @@ AddPostgreSQLBody add postgre SQL body swagger:model AddPostgreSQLBody */ type AddPostgreSQLBody struct { - // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -380,7 +379,6 @@ func (o *AddPostgreSQLBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddPostgreSQLBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -418,7 +416,6 @@ AddPostgreSQLDefaultBody add postgre SQL default body swagger:model AddPostgreSQLDefaultBody */ type AddPostgreSQLDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -484,9 +481,7 @@ func (o *AddPostgreSQLDefaultBody) ContextValidate(ctx context.Context, formats } func (o *AddPostgreSQLDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -497,7 +492,6 @@ func (o *AddPostgreSQLDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -526,7 +520,6 @@ AddPostgreSQLDefaultBodyDetailsItems0 add postgre SQL default body details items swagger:model AddPostgreSQLDefaultBodyDetailsItems0 */ type AddPostgreSQLDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -564,7 +557,6 @@ AddPostgreSQLOKBody add postgre SQL OK body swagger:model AddPostgreSQLOKBody */ type AddPostgreSQLOKBody struct { - // postgres exporter PostgresExporter *AddPostgreSQLOKBodyPostgresExporter `json:"postgres_exporter,omitempty"` @@ -707,7 +699,6 @@ func (o *AddPostgreSQLOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddPostgreSQLOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if err := o.PostgresExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -723,7 +714,6 @@ func (o *AddPostgreSQLOKBody) contextValidatePostgresExporter(ctx context.Contex } func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if err := o.QANPostgresqlPgstatementsAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -739,7 +729,6 @@ func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx } func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if err := o.QANPostgresqlPgstatmonitorAgent.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -755,7 +744,6 @@ func (o *AddPostgreSQLOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx } func (o *AddPostgreSQLOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -793,7 +781,6 @@ AddPostgreSQLOKBodyPostgresExporter PostgresExporter runs on Generic or Containe swagger:model AddPostgreSQLOKBodyPostgresExporter */ type AddPostgreSQLOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1003,7 +990,6 @@ AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent */ type AddPostgreSQLOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1207,7 +1193,6 @@ AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAge swagger:model AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent */ type AddPostgreSQLOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1414,7 +1399,6 @@ AddPostgreSQLOKBodyService PostgreSQLService represents a generic PostgreSQL ins swagger:model AddPostgreSQLOKBodyService */ type AddPostgreSQLOKBodyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1485,7 +1469,6 @@ AddPostgreSQLParamsBodyAddNode AddNodeParams is a params to add new node to inve swagger:model AddPostgreSQLParamsBodyAddNode */ type AddPostgreSQLParamsBodyAddNode struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go index f212574e29..7857dd35b2 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_parameters.go @@ -60,7 +60,6 @@ AddProxySQLParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddProxySQLParams struct { - // Body. Body AddProxySQLBody @@ -130,7 +129,6 @@ func (o *AddProxySQLParams) SetBody(body AddProxySQLBody) { // WriteToRequest writes these params to a swagger request func (o *AddProxySQLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go index c66388aa74..433b1ded6a 100644 --- a/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go +++ b/api/managementpb/json/client/proxy_sql/add_proxy_sql_responses.go @@ -62,12 +62,12 @@ type AddProxySQLOK struct { func (o *AddProxySQLOK) Error() string { return fmt.Sprintf("[POST /v1/management/ProxySQL/Add][%d] addProxySqlOk %+v", 200, o.Payload) } + func (o *AddProxySQLOK) GetPayload() *AddProxySQLOKBody { return o.Payload } func (o *AddProxySQLOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddProxySQLDefault) Code() int { func (o *AddProxySQLDefault) Error() string { return fmt.Sprintf("[POST /v1/management/ProxySQL/Add][%d] AddProxySQL default %+v", o._statusCode, o.Payload) } + func (o *AddProxySQLDefault) GetPayload() *AddProxySQLDefaultBody { return o.Payload } func (o *AddProxySQLDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddProxySQLDefaultBody) // response payload @@ -125,7 +125,6 @@ AddProxySQLBody add proxy SQL body swagger:model AddProxySQLBody */ type AddProxySQLBody struct { - // Node identifier on which a service is been running. // Exactly one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -356,7 +355,6 @@ func (o *AddProxySQLBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddProxySQLBody) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if err := o.AddNode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -394,7 +392,6 @@ AddProxySQLDefaultBody add proxy SQL default body swagger:model AddProxySQLDefaultBody */ type AddProxySQLDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -460,9 +457,7 @@ func (o *AddProxySQLDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AddProxySQLDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -473,7 +468,6 @@ func (o *AddProxySQLDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -502,7 +496,6 @@ AddProxySQLDefaultBodyDetailsItems0 add proxy SQL default body details items0 swagger:model AddProxySQLDefaultBodyDetailsItems0 */ type AddProxySQLDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -540,7 +533,6 @@ AddProxySQLOKBody add proxy SQL OK body swagger:model AddProxySQLOKBody */ type AddProxySQLOKBody struct { - // proxysql exporter ProxysqlExporter *AddProxySQLOKBodyProxysqlExporter `json:"proxysql_exporter,omitempty"` @@ -623,7 +615,6 @@ func (o *AddProxySQLOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddProxySQLOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if err := o.ProxysqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -639,7 +630,6 @@ func (o *AddProxySQLOKBody) contextValidateProxysqlExporter(ctx context.Context, } func (o *AddProxySQLOKBody) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if err := o.Service.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -677,7 +667,6 @@ AddProxySQLOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container swagger:model AddProxySQLOKBodyProxysqlExporter */ type AddProxySQLOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -887,7 +876,6 @@ AddProxySQLOKBodyService ProxySQLService represents a generic ProxySQL instance. swagger:model AddProxySQLOKBodyService */ type AddProxySQLOKBodyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -955,7 +943,6 @@ AddProxySQLParamsBodyAddNode AddNodeParams is a params to add new node to invent swagger:model AddProxySQLParamsBodyAddNode */ type AddProxySQLParamsBodyAddNode struct { - // NodeType describes supported Node types. // Enum: [NODE_TYPE_INVALID GENERIC_NODE CONTAINER_NODE REMOTE_NODE REMOTE_RDS_NODE REMOTE_AZURE_DATABASE_NODE] NodeType *string `json:"node_type,omitempty"` diff --git a/api/managementpb/json/client/rds/add_rds_parameters.go b/api/managementpb/json/client/rds/add_rds_parameters.go index 8d9148608c..a2dc2089bf 100644 --- a/api/managementpb/json/client/rds/add_rds_parameters.go +++ b/api/managementpb/json/client/rds/add_rds_parameters.go @@ -60,7 +60,6 @@ AddRDSParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddRDSParams struct { - // Body. Body AddRDSBody @@ -130,7 +129,6 @@ func (o *AddRDSParams) SetBody(body AddRDSBody) { // WriteToRequest writes these params to a swagger request func (o *AddRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/rds/add_rds_responses.go b/api/managementpb/json/client/rds/add_rds_responses.go index aae9868e9a..1a736d7172 100644 --- a/api/managementpb/json/client/rds/add_rds_responses.go +++ b/api/managementpb/json/client/rds/add_rds_responses.go @@ -62,12 +62,12 @@ type AddRDSOK struct { func (o *AddRDSOK) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Add][%d] addRdsOk %+v", 200, o.Payload) } + func (o *AddRDSOK) GetPayload() *AddRDSOKBody { return o.Payload } func (o *AddRDSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRDSOKBody) // response payload @@ -104,12 +104,12 @@ func (o *AddRDSDefault) Code() int { func (o *AddRDSDefault) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Add][%d] AddRDS default %+v", o._statusCode, o.Payload) } + func (o *AddRDSDefault) GetPayload() *AddRDSDefaultBody { return o.Payload } func (o *AddRDSDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddRDSDefaultBody) // response payload @@ -125,7 +125,6 @@ AddRDSBody add RDS body swagger:model AddRDSBody */ type AddRDSBody struct { - // AWS region. Region string `json:"region,omitempty"` @@ -355,7 +354,6 @@ AddRDSDefaultBody add RDS default body swagger:model AddRDSDefaultBody */ type AddRDSDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -421,9 +419,7 @@ func (o *AddRDSDefaultBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *AddRDSDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -434,7 +430,6 @@ func (o *AddRDSDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -463,7 +458,6 @@ AddRDSDefaultBodyDetailsItems0 add RDS default body details items0 swagger:model AddRDSDefaultBodyDetailsItems0 */ type AddRDSDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -501,7 +495,6 @@ AddRDSOKBody add RDS OK body swagger:model AddRDSOKBody */ type AddRDSOKBody struct { - // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -767,7 +760,6 @@ func (o *AddRDSOKBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *AddRDSOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if err := o.Mysql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -783,7 +775,6 @@ func (o *AddRDSOKBody) contextValidateMysql(ctx context.Context, formats strfmt. } func (o *AddRDSOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if err := o.MysqldExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -799,7 +790,6 @@ func (o *AddRDSOKBody) contextValidateMysqldExporter(ctx context.Context, format } func (o *AddRDSOKBody) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { - if o.Node != nil { if err := o.Node.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -815,7 +805,6 @@ func (o *AddRDSOKBody) contextValidateNode(ctx context.Context, formats strfmt.R } func (o *AddRDSOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if err := o.Postgresql.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -831,7 +820,6 @@ func (o *AddRDSOKBody) contextValidatePostgresql(ctx context.Context, formats st } func (o *AddRDSOKBody) contextValidatePostgresqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresqlExporter != nil { if err := o.PostgresqlExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -847,7 +835,6 @@ func (o *AddRDSOKBody) contextValidatePostgresqlExporter(ctx context.Context, fo } func (o *AddRDSOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschema != nil { if err := o.QANMysqlPerfschema.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -863,7 +850,6 @@ func (o *AddRDSOKBody) contextValidateQANMysqlPerfschema(ctx context.Context, fo } func (o *AddRDSOKBody) contextValidateQANPostgresqlPgstatements(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatements != nil { if err := o.QANPostgresqlPgstatements.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -879,7 +865,6 @@ func (o *AddRDSOKBody) contextValidateQANPostgresqlPgstatements(ctx context.Cont } func (o *AddRDSOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if err := o.RDSExporter.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -917,7 +902,6 @@ AddRDSOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddRDSOKBodyMysql */ type AddRDSOKBodyMysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -985,7 +969,6 @@ AddRDSOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node and swagger:model AddRDSOKBodyMysqldExporter */ type AddRDSOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1212,7 +1195,6 @@ AddRDSOKBodyNode RemoteRDSNode represents remote RDS Node. Agents can't run on R swagger:model AddRDSOKBodyNode */ type AddRDSOKBodyNode struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1268,7 +1250,6 @@ AddRDSOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL instanc swagger:model AddRDSOKBodyPostgresql */ type AddRDSOKBodyPostgresql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1339,7 +1320,6 @@ AddRDSOKBodyPostgresqlExporter PostgresExporter runs on Generic or Container Nod swagger:model AddRDSOKBodyPostgresqlExporter */ type AddRDSOKBodyPostgresqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1549,7 +1529,6 @@ AddRDSOKBodyQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-agent and swagger:model AddRDSOKBodyQANMysqlPerfschema */ type AddRDSOKBodyQANMysqlPerfschema struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1765,7 +1744,6 @@ AddRDSOKBodyQANPostgresqlPgstatements QANPostgreSQLPgStatementsAgent runs within swagger:model AddRDSOKBodyQANPostgresqlPgstatements */ type AddRDSOKBodyQANPostgresqlPgstatements struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1969,7 +1947,6 @@ AddRDSOKBodyRDSExporter RDSExporter runs on Generic or Container Node and expose swagger:model AddRDSOKBodyRDSExporter */ type AddRDSOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` diff --git a/api/managementpb/json/client/rds/discover_rds_parameters.go b/api/managementpb/json/client/rds/discover_rds_parameters.go index 0d74bf2782..2866e7202c 100644 --- a/api/managementpb/json/client/rds/discover_rds_parameters.go +++ b/api/managementpb/json/client/rds/discover_rds_parameters.go @@ -60,7 +60,6 @@ DiscoverRDSParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DiscoverRDSParams struct { - // Body. Body DiscoverRDSBody @@ -130,7 +129,6 @@ func (o *DiscoverRDSParams) SetBody(body DiscoverRDSBody) { // WriteToRequest writes these params to a swagger request func (o *DiscoverRDSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/rds/discover_rds_responses.go b/api/managementpb/json/client/rds/discover_rds_responses.go index 43bb9fe549..aab13344e2 100644 --- a/api/managementpb/json/client/rds/discover_rds_responses.go +++ b/api/managementpb/json/client/rds/discover_rds_responses.go @@ -62,12 +62,12 @@ type DiscoverRDSOK struct { func (o *DiscoverRDSOK) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Discover][%d] discoverRdsOk %+v", 200, o.Payload) } + func (o *DiscoverRDSOK) GetPayload() *DiscoverRDSOKBody { return o.Payload } func (o *DiscoverRDSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverRDSOKBody) // response payload @@ -104,12 +104,12 @@ func (o *DiscoverRDSDefault) Code() int { func (o *DiscoverRDSDefault) Error() string { return fmt.Sprintf("[POST /v1/management/RDS/Discover][%d] DiscoverRDS default %+v", o._statusCode, o.Payload) } + func (o *DiscoverRDSDefault) GetPayload() *DiscoverRDSDefaultBody { return o.Payload } func (o *DiscoverRDSDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverRDSDefaultBody) // response payload @@ -125,7 +125,6 @@ DiscoverRDSBody discover RDS body swagger:model DiscoverRDSBody */ type DiscoverRDSBody struct { - // AWS Access key. Optional. AWSAccessKey string `json:"aws_access_key,omitempty"` @@ -166,7 +165,6 @@ DiscoverRDSDefaultBody discover RDS default body swagger:model DiscoverRDSDefaultBody */ type DiscoverRDSDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -232,9 +230,7 @@ func (o *DiscoverRDSDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *DiscoverRDSDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -245,7 +241,6 @@ func (o *DiscoverRDSDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -274,7 +269,6 @@ DiscoverRDSDefaultBodyDetailsItems0 discover RDS default body details items0 swagger:model DiscoverRDSDefaultBodyDetailsItems0 */ type DiscoverRDSDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -312,7 +306,6 @@ DiscoverRDSOKBody discover RDS OK body swagger:model DiscoverRDSOKBody */ type DiscoverRDSOKBody struct { - // rds instances RDSInstances []*DiscoverRDSOKBodyRDSInstancesItems0 `json:"rds_instances"` } @@ -372,9 +365,7 @@ func (o *DiscoverRDSOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *DiscoverRDSOKBody) contextValidateRDSInstances(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.RDSInstances); i++ { - if o.RDSInstances[i] != nil { if err := o.RDSInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -385,7 +376,6 @@ func (o *DiscoverRDSOKBody) contextValidateRDSInstances(ctx context.Context, for return err } } - } return nil @@ -414,7 +404,6 @@ DiscoverRDSOKBodyRDSInstancesItems0 DiscoverRDSInstance models an unique RDS ins swagger:model DiscoverRDSOKBodyRDSInstancesItems0 */ type DiscoverRDSOKBodyRDSInstancesItems0 struct { - // AWS region. Region string `json:"region,omitempty"` diff --git a/api/managementpb/json/client/security_checks/change_security_checks_parameters.go b/api/managementpb/json/client/security_checks/change_security_checks_parameters.go index 8120533c57..36cfeac04a 100644 --- a/api/managementpb/json/client/security_checks/change_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/change_security_checks_parameters.go @@ -60,7 +60,6 @@ ChangeSecurityChecksParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ChangeSecurityChecksParams struct { - // Body. Body ChangeSecurityChecksBody @@ -130,7 +129,6 @@ func (o *ChangeSecurityChecksParams) SetBody(body ChangeSecurityChecksBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeSecurityChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/change_security_checks_responses.go b/api/managementpb/json/client/security_checks/change_security_checks_responses.go index cda296b947..01c8381711 100644 --- a/api/managementpb/json/client/security_checks/change_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/change_security_checks_responses.go @@ -62,12 +62,12 @@ type ChangeSecurityChecksOK struct { func (o *ChangeSecurityChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Change][%d] changeSecurityChecksOk %+v", 200, o.Payload) } + func (o *ChangeSecurityChecksOK) GetPayload() interface{} { return o.Payload } func (o *ChangeSecurityChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *ChangeSecurityChecksDefault) Code() int { func (o *ChangeSecurityChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Change][%d] ChangeSecurityChecks default %+v", o._statusCode, o.Payload) } + func (o *ChangeSecurityChecksDefault) GetPayload() *ChangeSecurityChecksDefaultBody { return o.Payload } func (o *ChangeSecurityChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeSecurityChecksDefaultBody) // response payload @@ -123,7 +123,6 @@ ChangeSecurityChecksBody change security checks body swagger:model ChangeSecurityChecksBody */ type ChangeSecurityChecksBody struct { - // params Params []*ChangeSecurityChecksParamsBodyParamsItems0 `json:"params"` } @@ -183,9 +182,7 @@ func (o *ChangeSecurityChecksBody) ContextValidate(ctx context.Context, formats } func (o *ChangeSecurityChecksBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Params); i++ { - if o.Params[i] != nil { if err := o.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -196,7 +193,6 @@ func (o *ChangeSecurityChecksBody) contextValidateParams(ctx context.Context, fo return err } } - } return nil @@ -225,7 +221,6 @@ ChangeSecurityChecksDefaultBody change security checks default body swagger:model ChangeSecurityChecksDefaultBody */ type ChangeSecurityChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -291,9 +286,7 @@ func (o *ChangeSecurityChecksDefaultBody) ContextValidate(ctx context.Context, f } func (o *ChangeSecurityChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -304,7 +297,6 @@ func (o *ChangeSecurityChecksDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -333,7 +325,6 @@ ChangeSecurityChecksDefaultBodyDetailsItems0 change security checks default body swagger:model ChangeSecurityChecksDefaultBodyDetailsItems0 */ type ChangeSecurityChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -371,7 +362,6 @@ ChangeSecurityChecksParamsBodyParamsItems0 ChangeSecurityCheckParams specifies a swagger:model ChangeSecurityChecksParamsBodyParamsItems0 */ type ChangeSecurityChecksParamsBodyParamsItems0 struct { - // The name of the check to change. Name string `json:"name,omitempty"` diff --git a/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go b/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go index 607838916c..5cfe658f09 100644 --- a/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/get_failed_checks_parameters.go @@ -60,7 +60,6 @@ GetFailedChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetFailedChecksParams struct { - // Body. Body GetFailedChecksBody @@ -130,7 +129,6 @@ func (o *GetFailedChecksParams) SetBody(body GetFailedChecksBody) { // WriteToRequest writes these params to a swagger request func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/get_failed_checks_responses.go b/api/managementpb/json/client/security_checks/get_failed_checks_responses.go index d8a5c38d34..f095ef0be5 100644 --- a/api/managementpb/json/client/security_checks/get_failed_checks_responses.go +++ b/api/managementpb/json/client/security_checks/get_failed_checks_responses.go @@ -62,12 +62,12 @@ type GetFailedChecksOK struct { func (o *GetFailedChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/FailedChecks][%d] getFailedChecksOk %+v", 200, o.Payload) } + func (o *GetFailedChecksOK) GetPayload() *GetFailedChecksOKBody { return o.Payload } func (o *GetFailedChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetFailedChecksOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetFailedChecksDefault) Code() int { func (o *GetFailedChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/FailedChecks][%d] GetFailedChecks default %+v", o._statusCode, o.Payload) } + func (o *GetFailedChecksDefault) GetPayload() *GetFailedChecksDefaultBody { return o.Payload } func (o *GetFailedChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetFailedChecksDefaultBody) // response payload @@ -125,7 +125,6 @@ GetFailedChecksBody get failed checks body swagger:model GetFailedChecksBody */ type GetFailedChecksBody struct { - // service id ServiceID string `json:"service_id,omitempty"` @@ -181,7 +180,6 @@ func (o *GetFailedChecksBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetFailedChecksBody) contextValidatePageParams(ctx context.Context, formats strfmt.Registry) error { - if o.PageParams != nil { if err := o.PageParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -219,7 +217,6 @@ GetFailedChecksDefaultBody get failed checks default body swagger:model GetFailedChecksDefaultBody */ type GetFailedChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -285,9 +282,7 @@ func (o *GetFailedChecksDefaultBody) ContextValidate(ctx context.Context, format } func (o *GetFailedChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -298,7 +293,6 @@ func (o *GetFailedChecksDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -327,7 +321,6 @@ GetFailedChecksDefaultBodyDetailsItems0 get failed checks default body details i swagger:model GetFailedChecksDefaultBodyDetailsItems0 */ type GetFailedChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +358,6 @@ GetFailedChecksOKBody get failed checks OK body swagger:model GetFailedChecksOKBody */ type GetFailedChecksOKBody struct { - // results Results []*GetFailedChecksOKBodyResultsItems0 `json:"results"` @@ -455,9 +447,7 @@ func (o *GetFailedChecksOKBody) ContextValidate(ctx context.Context, formats str } func (o *GetFailedChecksOKBody) contextValidateResults(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Results); i++ { - if o.Results[i] != nil { if err := o.Results[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -468,14 +458,12 @@ func (o *GetFailedChecksOKBody) contextValidateResults(ctx context.Context, form return err } } - } return nil } func (o *GetFailedChecksOKBody) contextValidatePageTotals(ctx context.Context, formats strfmt.Registry) error { - if o.PageTotals != nil { if err := o.PageTotals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -513,7 +501,6 @@ GetFailedChecksOKBodyPageTotals PageTotals represents total values for paginatio swagger:model GetFailedChecksOKBodyPageTotals */ type GetFailedChecksOKBodyPageTotals struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -554,7 +541,6 @@ GetFailedChecksOKBodyResultsItems0 CheckResult represents the check results for swagger:model GetFailedChecksOKBodyResultsItems0 */ type GetFailedChecksOKBodyResultsItems0 struct { - // summary Summary string `json:"summary,omitempty"` @@ -692,7 +678,6 @@ GetFailedChecksParamsBodyPageParams PageParams represents page request parameter swagger:model GetFailedChecksParamsBodyPageParams */ type GetFailedChecksParamsBodyPageParams struct { - // Maximum number of results per page. PageSize int32 `json:"page_size,omitempty"` diff --git a/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go b/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go index 197bcab662..36c1b70857 100644 --- a/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go +++ b/api/managementpb/json/client/security_checks/get_security_check_results_parameters.go @@ -60,7 +60,6 @@ GetSecurityCheckResultsParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type GetSecurityCheckResultsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *GetSecurityCheckResultsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetSecurityCheckResultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/get_security_check_results_responses.go b/api/managementpb/json/client/security_checks/get_security_check_results_responses.go index 432fa0919a..aa03b1b477 100644 --- a/api/managementpb/json/client/security_checks/get_security_check_results_responses.go +++ b/api/managementpb/json/client/security_checks/get_security_check_results_responses.go @@ -62,12 +62,12 @@ type GetSecurityCheckResultsOK struct { func (o *GetSecurityCheckResultsOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/GetCheckResults][%d] getSecurityCheckResultsOk %+v", 200, o.Payload) } + func (o *GetSecurityCheckResultsOK) GetPayload() *GetSecurityCheckResultsOKBody { return o.Payload } func (o *GetSecurityCheckResultsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetSecurityCheckResultsOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetSecurityCheckResultsDefault) Code() int { func (o *GetSecurityCheckResultsDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/GetCheckResults][%d] GetSecurityCheckResults default %+v", o._statusCode, o.Payload) } + func (o *GetSecurityCheckResultsDefault) GetPayload() *GetSecurityCheckResultsDefaultBody { return o.Payload } func (o *GetSecurityCheckResultsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetSecurityCheckResultsDefaultBody) // response payload @@ -125,7 +125,6 @@ GetSecurityCheckResultsDefaultBody get security check results default body swagger:model GetSecurityCheckResultsDefaultBody */ type GetSecurityCheckResultsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *GetSecurityCheckResultsDefaultBody) ContextValidate(ctx context.Context } func (o *GetSecurityCheckResultsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *GetSecurityCheckResultsDefaultBody) contextValidateDetails(ctx context. return err } } - } return nil @@ -233,7 +229,6 @@ GetSecurityCheckResultsDefaultBodyDetailsItems0 get security check results defau swagger:model GetSecurityCheckResultsDefaultBodyDetailsItems0 */ type GetSecurityCheckResultsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ GetSecurityCheckResultsOKBody get security check results OK body swagger:model GetSecurityCheckResultsOKBody */ type GetSecurityCheckResultsOKBody struct { - // results Results []*GetSecurityCheckResultsOKBodyResultsItems0 `json:"results"` } @@ -331,9 +325,7 @@ func (o *GetSecurityCheckResultsOKBody) ContextValidate(ctx context.Context, for } func (o *GetSecurityCheckResultsOKBody) contextValidateResults(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Results); i++ { - if o.Results[i] != nil { if err := o.Results[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,7 +336,6 @@ func (o *GetSecurityCheckResultsOKBody) contextValidateResults(ctx context.Conte return err } } - } return nil @@ -373,7 +364,6 @@ GetSecurityCheckResultsOKBodyResultsItems0 SecurityCheckResult represents the ch swagger:model GetSecurityCheckResultsOKBodyResultsItems0 */ type GetSecurityCheckResultsOKBodyResultsItems0 struct { - // summary Summary string `json:"summary,omitempty"` diff --git a/api/managementpb/json/client/security_checks/list_failed_services_parameters.go b/api/managementpb/json/client/security_checks/list_failed_services_parameters.go index 38f79dc68c..72d842a5c6 100644 --- a/api/managementpb/json/client/security_checks/list_failed_services_parameters.go +++ b/api/managementpb/json/client/security_checks/list_failed_services_parameters.go @@ -60,7 +60,6 @@ ListFailedServicesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListFailedServicesParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListFailedServicesParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListFailedServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/list_failed_services_responses.go b/api/managementpb/json/client/security_checks/list_failed_services_responses.go index 5b4a499acc..5720854349 100644 --- a/api/managementpb/json/client/security_checks/list_failed_services_responses.go +++ b/api/managementpb/json/client/security_checks/list_failed_services_responses.go @@ -60,12 +60,12 @@ type ListFailedServicesOK struct { func (o *ListFailedServicesOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ListFailedServices][%d] listFailedServicesOk %+v", 200, o.Payload) } + func (o *ListFailedServicesOK) GetPayload() *ListFailedServicesOKBody { return o.Payload } func (o *ListFailedServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListFailedServicesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ListFailedServicesDefault) Code() int { func (o *ListFailedServicesDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ListFailedServices][%d] ListFailedServices default %+v", o._statusCode, o.Payload) } + func (o *ListFailedServicesDefault) GetPayload() *ListFailedServicesDefaultBody { return o.Payload } func (o *ListFailedServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListFailedServicesDefaultBody) // response payload @@ -123,7 +123,6 @@ ListFailedServicesDefaultBody list failed services default body swagger:model ListFailedServicesDefaultBody */ type ListFailedServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *ListFailedServicesDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListFailedServicesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *ListFailedServicesDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -231,7 +227,6 @@ ListFailedServicesDefaultBodyDetailsItems0 list failed services default body det swagger:model ListFailedServicesDefaultBodyDetailsItems0 */ type ListFailedServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ ListFailedServicesOKBody list failed services OK body swagger:model ListFailedServicesOKBody */ type ListFailedServicesOKBody struct { - // result Result []*ListFailedServicesOKBodyResultItems0 `json:"result"` } @@ -329,9 +323,7 @@ func (o *ListFailedServicesOKBody) ContextValidate(ctx context.Context, formats } func (o *ListFailedServicesOKBody) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Result); i++ { - if o.Result[i] != nil { if err := o.Result[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -342,7 +334,6 @@ func (o *ListFailedServicesOKBody) contextValidateResult(ctx context.Context, fo return err } } - } return nil @@ -371,7 +362,6 @@ ListFailedServicesOKBodyResultItems0 CheckResultSummary is a summary of check re swagger:model ListFailedServicesOKBodyResultItems0 */ type ListFailedServicesOKBodyResultItems0 struct { - // service name ServiceName string `json:"service_name,omitempty"` diff --git a/api/managementpb/json/client/security_checks/list_security_checks_parameters.go b/api/managementpb/json/client/security_checks/list_security_checks_parameters.go index 5ca872ec7b..cee211cf84 100644 --- a/api/managementpb/json/client/security_checks/list_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/list_security_checks_parameters.go @@ -60,7 +60,6 @@ ListSecurityChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListSecurityChecksParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ListSecurityChecksParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ListSecurityChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/list_security_checks_responses.go b/api/managementpb/json/client/security_checks/list_security_checks_responses.go index cf9d54ae23..c5702dda19 100644 --- a/api/managementpb/json/client/security_checks/list_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/list_security_checks_responses.go @@ -62,12 +62,12 @@ type ListSecurityChecksOK struct { func (o *ListSecurityChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/List][%d] listSecurityChecksOk %+v", 200, o.Payload) } + func (o *ListSecurityChecksOK) GetPayload() *ListSecurityChecksOKBody { return o.Payload } func (o *ListSecurityChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListSecurityChecksOKBody) // response payload @@ -104,12 +104,12 @@ func (o *ListSecurityChecksDefault) Code() int { func (o *ListSecurityChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/List][%d] ListSecurityChecks default %+v", o._statusCode, o.Payload) } + func (o *ListSecurityChecksDefault) GetPayload() *ListSecurityChecksDefaultBody { return o.Payload } func (o *ListSecurityChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListSecurityChecksDefaultBody) // response payload @@ -125,7 +125,6 @@ ListSecurityChecksDefaultBody list security checks default body swagger:model ListSecurityChecksDefaultBody */ type ListSecurityChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *ListSecurityChecksDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListSecurityChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *ListSecurityChecksDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -233,7 +229,6 @@ ListSecurityChecksDefaultBodyDetailsItems0 list security checks default body det swagger:model ListSecurityChecksDefaultBodyDetailsItems0 */ type ListSecurityChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ ListSecurityChecksOKBody list security checks OK body swagger:model ListSecurityChecksOKBody */ type ListSecurityChecksOKBody struct { - // checks Checks []*ListSecurityChecksOKBodyChecksItems0 `json:"checks"` } @@ -331,9 +325,7 @@ func (o *ListSecurityChecksOKBody) ContextValidate(ctx context.Context, formats } func (o *ListSecurityChecksOKBody) contextValidateChecks(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Checks); i++ { - if o.Checks[i] != nil { if err := o.Checks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -344,7 +336,6 @@ func (o *ListSecurityChecksOKBody) contextValidateChecks(ctx context.Context, fo return err } } - } return nil @@ -373,7 +364,6 @@ ListSecurityChecksOKBodyChecksItems0 SecurityCheck contains check name and statu swagger:model ListSecurityChecksOKBodyChecksItems0 */ type ListSecurityChecksOKBodyChecksItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/managementpb/json/client/security_checks/start_security_checks_parameters.go b/api/managementpb/json/client/security_checks/start_security_checks_parameters.go index ef322b5fe7..71f2f60549 100644 --- a/api/managementpb/json/client/security_checks/start_security_checks_parameters.go +++ b/api/managementpb/json/client/security_checks/start_security_checks_parameters.go @@ -60,7 +60,6 @@ StartSecurityChecksParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type StartSecurityChecksParams struct { - // Body. Body StartSecurityChecksBody @@ -130,7 +129,6 @@ func (o *StartSecurityChecksParams) SetBody(body StartSecurityChecksBody) { // WriteToRequest writes these params to a swagger request func (o *StartSecurityChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/start_security_checks_responses.go b/api/managementpb/json/client/security_checks/start_security_checks_responses.go index 7857206ea2..8ca64fa631 100644 --- a/api/managementpb/json/client/security_checks/start_security_checks_responses.go +++ b/api/managementpb/json/client/security_checks/start_security_checks_responses.go @@ -60,12 +60,12 @@ type StartSecurityChecksOK struct { func (o *StartSecurityChecksOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Start][%d] startSecurityChecksOk %+v", 200, o.Payload) } + func (o *StartSecurityChecksOK) GetPayload() interface{} { return o.Payload } func (o *StartSecurityChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *StartSecurityChecksDefault) Code() int { func (o *StartSecurityChecksDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/Start][%d] StartSecurityChecks default %+v", o._statusCode, o.Payload) } + func (o *StartSecurityChecksDefault) GetPayload() *StartSecurityChecksDefaultBody { return o.Payload } func (o *StartSecurityChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartSecurityChecksDefaultBody) // response payload @@ -121,7 +121,6 @@ StartSecurityChecksBody start security checks body swagger:model StartSecurityChecksBody */ type StartSecurityChecksBody struct { - // Names of the checks that should be started. Names []string `json:"names"` } @@ -159,7 +158,6 @@ StartSecurityChecksDefaultBody start security checks default body swagger:model StartSecurityChecksDefaultBody */ type StartSecurityChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *StartSecurityChecksDefaultBody) ContextValidate(ctx context.Context, fo } func (o *StartSecurityChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *StartSecurityChecksDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -267,7 +262,6 @@ StartSecurityChecksDefaultBodyDetailsItems0 start security checks default body d swagger:model StartSecurityChecksDefaultBodyDetailsItems0 */ type StartSecurityChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go b/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go index e75fc485f0..9ebd6258a3 100644 --- a/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go +++ b/api/managementpb/json/client/security_checks/toggle_check_alert_parameters.go @@ -60,7 +60,6 @@ ToggleCheckAlertParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ToggleCheckAlertParams struct { - // Body. Body ToggleCheckAlertBody @@ -130,7 +129,6 @@ func (o *ToggleCheckAlertParams) SetBody(body ToggleCheckAlertBody) { // WriteToRequest writes these params to a swagger request func (o *ToggleCheckAlertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go b/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go index 4b08115b05..7ef640998f 100644 --- a/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go +++ b/api/managementpb/json/client/security_checks/toggle_check_alert_responses.go @@ -60,12 +60,12 @@ type ToggleCheckAlertOK struct { func (o *ToggleCheckAlertOK) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ToggleCheckAlert][%d] toggleCheckAlertOk %+v", 200, o.Payload) } + func (o *ToggleCheckAlertOK) GetPayload() interface{} { return o.Payload } func (o *ToggleCheckAlertOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ToggleCheckAlertDefault) Code() int { func (o *ToggleCheckAlertDefault) Error() string { return fmt.Sprintf("[POST /v1/management/SecurityChecks/ToggleCheckAlert][%d] ToggleCheckAlert default %+v", o._statusCode, o.Payload) } + func (o *ToggleCheckAlertDefault) GetPayload() *ToggleCheckAlertDefaultBody { return o.Payload } func (o *ToggleCheckAlertDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ToggleCheckAlertDefaultBody) // response payload @@ -121,7 +121,6 @@ ToggleCheckAlertBody toggle check alert body swagger:model ToggleCheckAlertBody */ type ToggleCheckAlertBody struct { - // Alert ID of the check result. AlertID string `json:"alert_id,omitempty"` @@ -162,7 +161,6 @@ ToggleCheckAlertDefaultBody toggle check alert default body swagger:model ToggleCheckAlertDefaultBody */ type ToggleCheckAlertDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *ToggleCheckAlertDefaultBody) ContextValidate(ctx context.Context, forma } func (o *ToggleCheckAlertDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *ToggleCheckAlertDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -270,7 +265,6 @@ ToggleCheckAlertDefaultBodyDetailsItems0 toggle check alert default body details swagger:model ToggleCheckAlertDefaultBodyDetailsItems0 */ type ToggleCheckAlertDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/json/client/service/remove_service_parameters.go b/api/managementpb/json/client/service/remove_service_parameters.go index ecf4d056b8..8e50ba2a18 100644 --- a/api/managementpb/json/client/service/remove_service_parameters.go +++ b/api/managementpb/json/client/service/remove_service_parameters.go @@ -60,7 +60,6 @@ RemoveServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveServiceParams struct { - // Body. Body RemoveServiceBody @@ -130,7 +129,6 @@ func (o *RemoveServiceParams) SetBody(body RemoveServiceBody) { // WriteToRequest writes these params to a swagger request func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/managementpb/json/client/service/remove_service_responses.go b/api/managementpb/json/client/service/remove_service_responses.go index 4e197ba1ed..054bb9437b 100644 --- a/api/managementpb/json/client/service/remove_service_responses.go +++ b/api/managementpb/json/client/service/remove_service_responses.go @@ -62,12 +62,12 @@ type RemoveServiceOK struct { func (o *RemoveServiceOK) Error() string { return fmt.Sprintf("[POST /v1/management/Service/Remove][%d] removeServiceOk %+v", 200, o.Payload) } + func (o *RemoveServiceOK) GetPayload() interface{} { return o.Payload } func (o *RemoveServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +102,12 @@ func (o *RemoveServiceDefault) Code() int { func (o *RemoveServiceDefault) Error() string { return fmt.Sprintf("[POST /v1/management/Service/Remove][%d] RemoveService default %+v", o._statusCode, o.Payload) } + func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { return o.Payload } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -123,7 +123,6 @@ RemoveServiceBody remove service body swagger:model RemoveServiceBody */ type RemoveServiceBody struct { - // ServiceType describes supported Service types. // Enum: [SERVICE_TYPE_INVALID MYSQL_SERVICE MONGODB_SERVICE POSTGRESQL_SERVICE PROXYSQL_SERVICE HAPROXY_SERVICE EXTERNAL_SERVICE] ServiceType *string `json:"service_type,omitempty"` @@ -235,7 +234,6 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -301,9 +299,7 @@ func (o *RemoveServiceDefaultBody) ContextValidate(ctx context.Context, formats } func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -314,7 +310,6 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -343,7 +338,6 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/managementpb/metrics.pb.go b/api/managementpb/metrics.pb.go index de8e9d70ea..f81729c138 100644 --- a/api/managementpb/metrics.pb.go +++ b/api/managementpb/metrics.pb.go @@ -7,10 +7,11 @@ package managementpb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -103,10 +104,13 @@ func file_managementpb_metrics_proto_rawDescGZIP() []byte { return file_managementpb_metrics_proto_rawDescData } -var file_managementpb_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_metrics_proto_goTypes = []interface{}{ - (MetricsMode)(0), // 0: management.MetricsMode -} +var ( + file_managementpb_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_metrics_proto_goTypes = []interface{}{ + (MetricsMode)(0), // 0: management.MetricsMode + } +) + var file_managementpb_metrics_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/metrics.validator.pb.go b/api/managementpb/metrics.validator.pb.go index 2a216f658c..ea97904062 100644 --- a/api/managementpb/metrics.validator.pb.go +++ b/api/managementpb/metrics.validator.pb.go @@ -6,10 +6,13 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/managementpb/mongodb.pb.go b/api/managementpb/mongodb.pb.go index 304a4a48aa..366c153a62 100644 --- a/api/managementpb/mongodb.pb.go +++ b/api/managementpb/mongodb.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -590,18 +592,21 @@ func file_managementpb_mongodb_proto_rawDescGZIP() []byte { return file_managementpb_mongodb_proto_rawDescData } -var file_managementpb_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_mongodb_proto_goTypes = []interface{}{ - (*AddMongoDBRequest)(nil), // 0: management.AddMongoDBRequest - (*AddMongoDBResponse)(nil), // 1: management.AddMongoDBResponse - nil, // 2: management.AddMongoDBRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.MongoDBService)(nil), // 6: inventory.MongoDBService - (*inventorypb.MongoDBExporter)(nil), // 7: inventory.MongoDBExporter - (*inventorypb.QANMongoDBProfilerAgent)(nil), // 8: inventory.QANMongoDBProfilerAgent -} +var ( + file_managementpb_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_mongodb_proto_goTypes = []interface{}{ + (*AddMongoDBRequest)(nil), // 0: management.AddMongoDBRequest + (*AddMongoDBResponse)(nil), // 1: management.AddMongoDBResponse + nil, // 2: management.AddMongoDBRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.MongoDBService)(nil), // 6: inventory.MongoDBService + (*inventorypb.MongoDBExporter)(nil), // 7: inventory.MongoDBExporter + (*inventorypb.QANMongoDBProfilerAgent)(nil), // 8: inventory.QANMongoDBProfilerAgent + } +) + var file_managementpb_mongodb_proto_depIdxs = []int32{ 3, // 0: management.AddMongoDBRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddMongoDBRequest.custom_labels:type_name -> management.AddMongoDBRequest.CustomLabelsEntry diff --git a/api/managementpb/mongodb.pb.gw.go b/api/managementpb/mongodb.pb.gw.go index e30c9f021e..bece3f062a 100644 --- a/api/managementpb/mongodb.pb.gw.go +++ b/api/managementpb/mongodb.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.Marshaler, client MongoDBClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddMongoDBRequest @@ -45,7 +47,6 @@ func request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.AddMongoDB(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.Marshaler, server MongoDBServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.M msg, err := server.AddMongoDB(ctx, &protoReq) return msg, metadata, err - } // RegisterMongoDBHandlerServer registers the http handlers for service MongoDB to "mux". @@ -70,7 +70,6 @@ func local_request_MongoDB_AddMongoDB_0(ctx context.Context, marshaler runtime.M // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMongoDBHandlerFromEndpoint instead. func RegisterMongoDBHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MongoDBServer) error { - mux.Handle("POST", pattern_MongoDB_AddMongoDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterMongoDBHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_MongoDB_AddMongoDB_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterMongoDBHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MongoDBClient" to call the correct interceptors. func RegisterMongoDBHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MongoDBClient) error { - mux.Handle("POST", pattern_MongoDB_AddMongoDB_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterMongoDBHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_MongoDB_AddMongoDB_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_MongoDB_AddMongoDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MongoDB", "Add"}, "")) -) +var pattern_MongoDB_AddMongoDB_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MongoDB", "Add"}, "")) -var ( - forward_MongoDB_AddMongoDB_0 = runtime.ForwardResponseMessage -) +var forward_MongoDB_AddMongoDB_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/mongodb.validator.pb.go b/api/managementpb/mongodb.validator.pb.go index e8879cc8ad..c2c089f6a4 100644 --- a/api/managementpb/mongodb.validator.pb.go +++ b/api/managementpb/mongodb.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddMongoDBRequest) Validate() error { if this.AddNode != nil { @@ -34,6 +38,7 @@ func (this *AddMongoDBRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddMongoDBResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/mongodb_grpc.pb.go b/api/managementpb/mongodb_grpc.pb.go index 8b59db9608..e6a83cd061 100644 --- a/api/managementpb/mongodb_grpc.pb.go +++ b/api/managementpb/mongodb_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -59,8 +60,7 @@ type MongoDBServer interface { } // UnimplementedMongoDBServer must be embedded to have forward compatible implementations. -type UnimplementedMongoDBServer struct { -} +type UnimplementedMongoDBServer struct{} func (UnimplementedMongoDBServer) AddMongoDB(context.Context, *AddMongoDBRequest) (*AddMongoDBResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMongoDB not implemented") diff --git a/api/managementpb/mysql.pb.go b/api/managementpb/mysql.pb.go index 67410480bb..9a0a78ab0a 100644 --- a/api/managementpb/mysql.pb.go +++ b/api/managementpb/mysql.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -609,19 +611,22 @@ func file_managementpb_mysql_proto_rawDescGZIP() []byte { return file_managementpb_mysql_proto_rawDescData } -var file_managementpb_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_mysql_proto_goTypes = []interface{}{ - (*AddMySQLRequest)(nil), // 0: management.AddMySQLRequest - (*AddMySQLResponse)(nil), // 1: management.AddMySQLResponse - nil, // 2: management.AddMySQLRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.MySQLService)(nil), // 6: inventory.MySQLService - (*inventorypb.MySQLdExporter)(nil), // 7: inventory.MySQLdExporter - (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent - (*inventorypb.QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent -} +var ( + file_managementpb_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_mysql_proto_goTypes = []interface{}{ + (*AddMySQLRequest)(nil), // 0: management.AddMySQLRequest + (*AddMySQLResponse)(nil), // 1: management.AddMySQLResponse + nil, // 2: management.AddMySQLRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.MySQLService)(nil), // 6: inventory.MySQLService + (*inventorypb.MySQLdExporter)(nil), // 7: inventory.MySQLdExporter + (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 8: inventory.QANMySQLPerfSchemaAgent + (*inventorypb.QANMySQLSlowlogAgent)(nil), // 9: inventory.QANMySQLSlowlogAgent + } +) + var file_managementpb_mysql_proto_depIdxs = []int32{ 3, // 0: management.AddMySQLRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddMySQLRequest.custom_labels:type_name -> management.AddMySQLRequest.CustomLabelsEntry diff --git a/api/managementpb/mysql.pb.gw.go b/api/managementpb/mysql.pb.gw.go index f86f5fdfd4..a586eb6377 100644 --- a/api/managementpb/mysql.pb.gw.go +++ b/api/managementpb/mysql.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marshaler, client MySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddMySQLRequest @@ -45,7 +47,6 @@ func request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.AddMySQL(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marshaler, server MySQLServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marsh msg, err := server.AddMySQL(ctx, &protoReq) return msg, metadata, err - } // RegisterMySQLHandlerServer registers the http handlers for service MySQL to "mux". @@ -70,7 +70,6 @@ func local_request_MySQL_AddMySQL_0(ctx context.Context, marshaler runtime.Marsh // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMySQLHandlerFromEndpoint instead. func RegisterMySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MySQLServer) error { - mux.Handle("POST", pattern_MySQL_AddMySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterMySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv } forward_MySQL_AddMySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterMySQLHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MySQLClient" to call the correct interceptors. func RegisterMySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MySQLClient) error { - mux.Handle("POST", pattern_MySQL_AddMySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterMySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } forward_MySQL_AddMySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_MySQL_AddMySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MySQL", "Add"}, "")) -) +var pattern_MySQL_AddMySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "MySQL", "Add"}, "")) -var ( - forward_MySQL_AddMySQL_0 = runtime.ForwardResponseMessage -) +var forward_MySQL_AddMySQL_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/mysql.validator.pb.go b/api/managementpb/mysql.validator.pb.go index d8243501b6..3ca0022510 100644 --- a/api/managementpb/mysql.validator.pb.go +++ b/api/managementpb/mysql.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" + + _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddMySQLRequest) Validate() error { if this.AddNode != nil { @@ -34,6 +38,7 @@ func (this *AddMySQLRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddMySQLResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/mysql_grpc.pb.go b/api/managementpb/mysql_grpc.pb.go index eb4b3dfdf6..aac9d401ba 100644 --- a/api/managementpb/mysql_grpc.pb.go +++ b/api/managementpb/mysql_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -59,8 +60,7 @@ type MySQLServer interface { } // UnimplementedMySQLServer must be embedded to have forward compatible implementations. -type UnimplementedMySQLServer struct { -} +type UnimplementedMySQLServer struct{} func (UnimplementedMySQLServer) AddMySQL(context.Context, *AddMySQLRequest) (*AddMySQLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddMySQL not implemented") diff --git a/api/managementpb/node.pb.go b/api/managementpb/node.pb.go index 2b6068deb1..ff8963d0f4 100644 --- a/api/managementpb/node.pb.go +++ b/api/managementpb/node.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -372,17 +374,20 @@ func file_managementpb_node_proto_rawDescGZIP() []byte { return file_managementpb_node_proto_rawDescData } -var file_managementpb_node_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_node_proto_goTypes = []interface{}{ - (*RegisterNodeRequest)(nil), // 0: management.RegisterNodeRequest - (*RegisterNodeResponse)(nil), // 1: management.RegisterNodeResponse - nil, // 2: management.RegisterNodeRequest.CustomLabelsEntry - (inventorypb.NodeType)(0), // 3: inventory.NodeType - (MetricsMode)(0), // 4: management.MetricsMode - (*inventorypb.GenericNode)(nil), // 5: inventory.GenericNode - (*inventorypb.ContainerNode)(nil), // 6: inventory.ContainerNode - (*inventorypb.PMMAgent)(nil), // 7: inventory.PMMAgent -} +var ( + file_managementpb_node_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_node_proto_goTypes = []interface{}{ + (*RegisterNodeRequest)(nil), // 0: management.RegisterNodeRequest + (*RegisterNodeResponse)(nil), // 1: management.RegisterNodeResponse + nil, // 2: management.RegisterNodeRequest.CustomLabelsEntry + (inventorypb.NodeType)(0), // 3: inventory.NodeType + (MetricsMode)(0), // 4: management.MetricsMode + (*inventorypb.GenericNode)(nil), // 5: inventory.GenericNode + (*inventorypb.ContainerNode)(nil), // 6: inventory.ContainerNode + (*inventorypb.PMMAgent)(nil), // 7: inventory.PMMAgent + } +) + var file_managementpb_node_proto_depIdxs = []int32{ 3, // 0: management.RegisterNodeRequest.node_type:type_name -> inventory.NodeType 2, // 1: management.RegisterNodeRequest.custom_labels:type_name -> management.RegisterNodeRequest.CustomLabelsEntry diff --git a/api/managementpb/node.pb.gw.go b/api/managementpb/node.pb.gw.go index a78f2f860a..337f41af22 100644 --- a/api/managementpb/node.pb.gw.go +++ b/api/managementpb/node.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Marshaler, client NodeClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RegisterNodeRequest @@ -45,7 +47,6 @@ func request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.RegisterNode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Marshaler, server NodeServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Ma msg, err := server.RegisterNode(ctx, &protoReq) return msg, metadata, err - } // RegisterNodeHandlerServer registers the http handlers for service Node to "mux". @@ -70,7 +70,6 @@ func local_request_Node_RegisterNode_0(ctx context.Context, marshaler runtime.Ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNodeHandlerFromEndpoint instead. func RegisterNodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodeServer) error { - mux.Handle("POST", pattern_Node_RegisterNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterNodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve } forward_Node_RegisterNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterNodeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc. // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "NodeClient" to call the correct interceptors. func RegisterNodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodeClient) error { - mux.Handle("POST", pattern_Node_RegisterNode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterNodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien } forward_Node_RegisterNode_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_Node_RegisterNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Node", "Register"}, "")) -) +var pattern_Node_RegisterNode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Node", "Register"}, "")) -var ( - forward_Node_RegisterNode_0 = runtime.ForwardResponseMessage -) +var forward_Node_RegisterNode_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/node.validator.pb.go b/api/managementpb/node.validator.pb.go index 67eb21120c..00b38b52c8 100644 --- a/api/managementpb/node.validator.pb.go +++ b/api/managementpb/node.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *RegisterNodeRequest) Validate() error { if this.NodeName == "" { @@ -26,6 +30,7 @@ func (this *RegisterNodeRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *RegisterNodeResponse) Validate() error { if this.GenericNode != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.GenericNode); err != nil { diff --git a/api/managementpb/node_grpc.pb.go b/api/managementpb/node_grpc.pb.go index 9df1c94bd9..b00dc551e1 100644 --- a/api/managementpb/node_grpc.pb.go +++ b/api/managementpb/node_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type NodeServer interface { } // UnimplementedNodeServer must be embedded to have forward compatible implementations. -type UnimplementedNodeServer struct { -} +type UnimplementedNodeServer struct{} func (UnimplementedNodeServer) RegisterNode(context.Context, *RegisterNodeRequest) (*RegisterNodeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterNode not implemented") diff --git a/api/managementpb/pagination.pb.go b/api/managementpb/pagination.pb.go index 3e5cc2841e..d7dfbadbb9 100644 --- a/api/managementpb/pagination.pb.go +++ b/api/managementpb/pagination.pb.go @@ -7,11 +7,12 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/mwitkow/go-proto-validators" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -181,11 +182,14 @@ func file_managementpb_pagination_proto_rawDescGZIP() []byte { return file_managementpb_pagination_proto_rawDescData } -var file_managementpb_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_managementpb_pagination_proto_goTypes = []interface{}{ - (*PageParams)(nil), // 0: management.PageParams - (*PageTotals)(nil), // 1: management.PageTotals -} +var ( + file_managementpb_pagination_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_managementpb_pagination_proto_goTypes = []interface{}{ + (*PageParams)(nil), // 0: management.PageParams + (*PageTotals)(nil), // 1: management.PageTotals + } +) + var file_managementpb_pagination_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/pagination.validator.pb.go b/api/managementpb/pagination.validator.pb.go index e05d330be3..dc7c891f82 100644 --- a/api/managementpb/pagination.validator.pb.go +++ b/api/managementpb/pagination.validator.pb.go @@ -6,15 +6,18 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *PageParams) Validate() error { if !(this.PageSize > 0) { @@ -25,6 +28,7 @@ func (this *PageParams) Validate() error { } return nil } + func (this *PageTotals) Validate() error { return nil } diff --git a/api/managementpb/postgresql.pb.go b/api/managementpb/postgresql.pb.go index 169c83473b..91f8cf6007 100644 --- a/api/managementpb/postgresql.pb.go +++ b/api/managementpb/postgresql.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -590,19 +592,22 @@ func file_managementpb_postgresql_proto_rawDescGZIP() []byte { return file_managementpb_postgresql_proto_rawDescData } -var file_managementpb_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_postgresql_proto_goTypes = []interface{}{ - (*AddPostgreSQLRequest)(nil), // 0: management.AddPostgreSQLRequest - (*AddPostgreSQLResponse)(nil), // 1: management.AddPostgreSQLResponse - nil, // 2: management.AddPostgreSQLRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.PostgreSQLService)(nil), // 6: inventory.PostgreSQLService - (*inventorypb.PostgresExporter)(nil), // 7: inventory.PostgresExporter - (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.QANPostgreSQLPgStatementsAgent - (*inventorypb.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.QANPostgreSQLPgStatMonitorAgent -} +var ( + file_managementpb_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_postgresql_proto_goTypes = []interface{}{ + (*AddPostgreSQLRequest)(nil), // 0: management.AddPostgreSQLRequest + (*AddPostgreSQLResponse)(nil), // 1: management.AddPostgreSQLResponse + nil, // 2: management.AddPostgreSQLRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.PostgreSQLService)(nil), // 6: inventory.PostgreSQLService + (*inventorypb.PostgresExporter)(nil), // 7: inventory.PostgresExporter + (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.QANPostgreSQLPgStatementsAgent + (*inventorypb.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.QANPostgreSQLPgStatMonitorAgent + } +) + var file_managementpb_postgresql_proto_depIdxs = []int32{ 3, // 0: management.AddPostgreSQLRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddPostgreSQLRequest.custom_labels:type_name -> management.AddPostgreSQLRequest.CustomLabelsEntry diff --git a/api/managementpb/postgresql.pb.gw.go b/api/managementpb/postgresql.pb.gw.go index d1c280a6d0..0355b4b1ea 100644 --- a/api/managementpb/postgresql.pb.gw.go +++ b/api/managementpb/postgresql.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler runtime.Marshaler, client PostgreSQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddPostgreSQLRequest @@ -45,7 +47,6 @@ func request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler runtime.M msg, err := client.AddPostgreSQL(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler runtime.Marshaler, server PostgreSQLServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler run msg, err := server.AddPostgreSQL(ctx, &protoReq) return msg, metadata, err - } // RegisterPostgreSQLHandlerServer registers the http handlers for service PostgreSQL to "mux". @@ -70,7 +70,6 @@ func local_request_PostgreSQL_AddPostgreSQL_0(ctx context.Context, marshaler run // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPostgreSQLHandlerFromEndpoint instead. func RegisterPostgreSQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostgreSQLServer) error { - mux.Handle("POST", pattern_PostgreSQL_AddPostgreSQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterPostgreSQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, } forward_PostgreSQL_AddPostgreSQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterPostgreSQLHandler(ctx context.Context, mux *runtime.ServeMux, conn // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PostgreSQLClient" to call the correct interceptors. func RegisterPostgreSQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostgreSQLClient) error { - mux.Handle("POST", pattern_PostgreSQL_AddPostgreSQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterPostgreSQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, } forward_PostgreSQL_AddPostgreSQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_PostgreSQL_AddPostgreSQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "PostgreSQL", "Add"}, "")) -) +var pattern_PostgreSQL_AddPostgreSQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "PostgreSQL", "Add"}, "")) -var ( - forward_PostgreSQL_AddPostgreSQL_0 = runtime.ForwardResponseMessage -) +var forward_PostgreSQL_AddPostgreSQL_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/postgresql.validator.pb.go b/api/managementpb/postgresql.validator.pb.go index 095719b290..aa082f9cf3 100644 --- a/api/managementpb/postgresql.validator.pb.go +++ b/api/managementpb/postgresql.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - _ "google.golang.org/genproto/googleapis/api/annotations" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" + + _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddPostgreSQLRequest) Validate() error { if this.AddNode != nil { @@ -34,6 +38,7 @@ func (this *AddPostgreSQLRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddPostgreSQLResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/postgresql_grpc.pb.go b/api/managementpb/postgresql_grpc.pb.go index 575fed23bb..c4dadde723 100644 --- a/api/managementpb/postgresql_grpc.pb.go +++ b/api/managementpb/postgresql_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -57,8 +58,7 @@ type PostgreSQLServer interface { } // UnimplementedPostgreSQLServer must be embedded to have forward compatible implementations. -type UnimplementedPostgreSQLServer struct { -} +type UnimplementedPostgreSQLServer struct{} func (UnimplementedPostgreSQLServer) AddPostgreSQL(context.Context, *AddPostgreSQLRequest) (*AddPostgreSQLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddPostgreSQL not implemented") diff --git a/api/managementpb/proxysql.pb.go b/api/managementpb/proxysql.pb.go index b2d5ce8561..0ea809ee4b 100644 --- a/api/managementpb/proxysql.pb.go +++ b/api/managementpb/proxysql.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -463,17 +465,20 @@ func file_managementpb_proxysql_proto_rawDescGZIP() []byte { return file_managementpb_proxysql_proto_rawDescData } -var file_managementpb_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_managementpb_proxysql_proto_goTypes = []interface{}{ - (*AddProxySQLRequest)(nil), // 0: management.AddProxySQLRequest - (*AddProxySQLResponse)(nil), // 1: management.AddProxySQLResponse - nil, // 2: management.AddProxySQLRequest.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.AddNodeParams - (MetricsMode)(0), // 4: management.MetricsMode - (inventorypb.LogLevel)(0), // 5: inventory.LogLevel - (*inventorypb.ProxySQLService)(nil), // 6: inventory.ProxySQLService - (*inventorypb.ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter -} +var ( + file_managementpb_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_managementpb_proxysql_proto_goTypes = []interface{}{ + (*AddProxySQLRequest)(nil), // 0: management.AddProxySQLRequest + (*AddProxySQLResponse)(nil), // 1: management.AddProxySQLResponse + nil, // 2: management.AddProxySQLRequest.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.AddNodeParams + (MetricsMode)(0), // 4: management.MetricsMode + (inventorypb.LogLevel)(0), // 5: inventory.LogLevel + (*inventorypb.ProxySQLService)(nil), // 6: inventory.ProxySQLService + (*inventorypb.ProxySQLExporter)(nil), // 7: inventory.ProxySQLExporter + } +) + var file_managementpb_proxysql_proto_depIdxs = []int32{ 3, // 0: management.AddProxySQLRequest.add_node:type_name -> management.AddNodeParams 2, // 1: management.AddProxySQLRequest.custom_labels:type_name -> management.AddProxySQLRequest.CustomLabelsEntry diff --git a/api/managementpb/proxysql.pb.gw.go b/api/managementpb/proxysql.pb.gw.go index c39c7e4e76..ac0fa323f5 100644 --- a/api/managementpb/proxysql.pb.gw.go +++ b/api/managementpb/proxysql.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime.Marshaler, client ProxySQLClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq AddProxySQLRequest @@ -45,7 +47,6 @@ func request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime.Marsh msg, err := client.AddProxySQL(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime.Marshaler, server ProxySQLServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime msg, err := server.AddProxySQL(ctx, &protoReq) return msg, metadata, err - } // RegisterProxySQLHandlerServer registers the http handlers for service ProxySQL to "mux". @@ -70,7 +70,6 @@ func local_request_ProxySQL_AddProxySQL_0(ctx context.Context, marshaler runtime // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProxySQLHandlerFromEndpoint instead. func RegisterProxySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProxySQLServer) error { - mux.Handle("POST", pattern_ProxySQL_AddProxySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterProxySQLHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_ProxySQL_AddProxySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterProxySQLHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ProxySQLClient" to call the correct interceptors. func RegisterProxySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProxySQLClient) error { - mux.Handle("POST", pattern_ProxySQL_AddProxySQL_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterProxySQLHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_ProxySQL_AddProxySQL_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_ProxySQL_AddProxySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "ProxySQL", "Add"}, "")) -) +var pattern_ProxySQL_AddProxySQL_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "ProxySQL", "Add"}, "")) -var ( - forward_ProxySQL_AddProxySQL_0 = runtime.ForwardResponseMessage -) +var forward_ProxySQL_AddProxySQL_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/proxysql.validator.pb.go b/api/managementpb/proxysql.validator.pb.go index dc262b6ea3..74132036a6 100644 --- a/api/managementpb/proxysql.validator.pb.go +++ b/api/managementpb/proxysql.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - _ "github.com/percona/pmm/api/inventorypb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" + + _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddProxySQLRequest) Validate() error { if this.AddNode != nil { @@ -34,6 +38,7 @@ func (this *AddProxySQLRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddProxySQLResponse) Validate() error { if this.Service != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Service); err != nil { diff --git a/api/managementpb/proxysql_grpc.pb.go b/api/managementpb/proxysql_grpc.pb.go index 02a53a453a..917edc5c2f 100644 --- a/api/managementpb/proxysql_grpc.pb.go +++ b/api/managementpb/proxysql_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -57,8 +58,7 @@ type ProxySQLServer interface { } // UnimplementedProxySQLServer must be embedded to have forward compatible implementations. -type UnimplementedProxySQLServer struct { -} +type UnimplementedProxySQLServer struct{} func (UnimplementedProxySQLServer) AddProxySQL(context.Context, *AddProxySQLRequest) (*AddProxySQLResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddProxySQL not implemented") diff --git a/api/managementpb/rds.pb.go b/api/managementpb/rds.pb.go index 722cce5ad5..d1d16c5944 100644 --- a/api/managementpb/rds.pb.go +++ b/api/managementpb/rds.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -922,26 +924,29 @@ func file_managementpb_rds_proto_rawDescGZIP() []byte { return file_managementpb_rds_proto_rawDescData } -var file_managementpb_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_managementpb_rds_proto_goTypes = []interface{}{ - (DiscoverRDSEngine)(0), // 0: management.DiscoverRDSEngine - (*DiscoverRDSInstance)(nil), // 1: management.DiscoverRDSInstance - (*DiscoverRDSRequest)(nil), // 2: management.DiscoverRDSRequest - (*DiscoverRDSResponse)(nil), // 3: management.DiscoverRDSResponse - (*AddRDSRequest)(nil), // 4: management.AddRDSRequest - (*AddRDSResponse)(nil), // 5: management.AddRDSResponse - nil, // 6: management.AddRDSRequest.CustomLabelsEntry - (MetricsMode)(0), // 7: management.MetricsMode - (*inventorypb.RemoteRDSNode)(nil), // 8: inventory.RemoteRDSNode - (*inventorypb.RDSExporter)(nil), // 9: inventory.RDSExporter - (*inventorypb.MySQLService)(nil), // 10: inventory.MySQLService - (*inventorypb.MySQLdExporter)(nil), // 11: inventory.MySQLdExporter - (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.QANMySQLPerfSchemaAgent - (*inventorypb.PostgreSQLService)(nil), // 13: inventory.PostgreSQLService - (*inventorypb.PostgresExporter)(nil), // 14: inventory.PostgresExporter - (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.QANPostgreSQLPgStatementsAgent -} +var ( + file_managementpb_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_managementpb_rds_proto_goTypes = []interface{}{ + (DiscoverRDSEngine)(0), // 0: management.DiscoverRDSEngine + (*DiscoverRDSInstance)(nil), // 1: management.DiscoverRDSInstance + (*DiscoverRDSRequest)(nil), // 2: management.DiscoverRDSRequest + (*DiscoverRDSResponse)(nil), // 3: management.DiscoverRDSResponse + (*AddRDSRequest)(nil), // 4: management.AddRDSRequest + (*AddRDSResponse)(nil), // 5: management.AddRDSResponse + nil, // 6: management.AddRDSRequest.CustomLabelsEntry + (MetricsMode)(0), // 7: management.MetricsMode + (*inventorypb.RemoteRDSNode)(nil), // 8: inventory.RemoteRDSNode + (*inventorypb.RDSExporter)(nil), // 9: inventory.RDSExporter + (*inventorypb.MySQLService)(nil), // 10: inventory.MySQLService + (*inventorypb.MySQLdExporter)(nil), // 11: inventory.MySQLdExporter + (*inventorypb.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.QANMySQLPerfSchemaAgent + (*inventorypb.PostgreSQLService)(nil), // 13: inventory.PostgreSQLService + (*inventorypb.PostgresExporter)(nil), // 14: inventory.PostgresExporter + (*inventorypb.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.QANPostgreSQLPgStatementsAgent + } +) + var file_managementpb_rds_proto_depIdxs = []int32{ 0, // 0: management.DiscoverRDSInstance.engine:type_name -> management.DiscoverRDSEngine 1, // 1: management.DiscoverRDSResponse.rds_instances:type_name -> management.DiscoverRDSInstance diff --git a/api/managementpb/rds.pb.gw.go b/api/managementpb/rds.pb.gw.go index addf91ef49..e36ec258d6 100644 --- a/api/managementpb/rds.pb.gw.go +++ b/api/managementpb/rds.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq DiscoverRDSRequest @@ -45,7 +47,6 @@ func request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.DiscoverRDS(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Marshaler, server RDSServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_RDS_DiscoverRDS_0(ctx context.Context, marshaler runtime.Mars msg, err := server.DiscoverRDS(ctx, &protoReq) return msg, metadata, err - } func request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler, client RDSClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler, clie msg, err := client.AddRDS(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler, server RDSServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler msg, err := server.AddRDS(ctx, &protoReq) return msg, metadata, err - } // RegisterRDSHandlerServer registers the http handlers for service RDS to "mux". @@ -104,7 +102,6 @@ func local_request_RDS_AddRDS_0(ctx context.Context, marshaler runtime.Marshaler // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRDSHandlerFromEndpoint instead. func RegisterRDSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RDSServer) error { - mux.Handle("POST", pattern_RDS_DiscoverRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -127,7 +124,6 @@ func RegisterRDSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_RDS_DiscoverRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_RDS_AddRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -152,7 +148,6 @@ func RegisterRDSHandlerServer(ctx context.Context, mux *runtime.ServeMux, server } forward_RDS_AddRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -195,7 +190,6 @@ func RegisterRDSHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.C // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "RDSClient" to call the correct interceptors. func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RDSClient) error { - mux.Handle("POST", pattern_RDS_DiscoverRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -215,7 +209,6 @@ func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_RDS_DiscoverRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_RDS_AddRDS_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -237,7 +230,6 @@ func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client } forward_RDS_AddRDS_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/managementpb/rds.validator.pb.go b/api/managementpb/rds.validator.pb.go index 0f9a304af1..ab0748ef61 100644 --- a/api/managementpb/rds.validator.pb.go +++ b/api/managementpb/rds.validator.pb.go @@ -6,25 +6,31 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *DiscoverRDSInstance) Validate() error { return nil } + func (this *DiscoverRDSRequest) Validate() error { return nil } + func (this *DiscoverRDSResponse) Validate() error { for _, item := range this.RdsInstances { if item != nil { @@ -35,6 +41,7 @@ func (this *DiscoverRDSResponse) Validate() error { } return nil } + func (this *AddRDSRequest) Validate() error { if this.Region == "" { return github_com_mwitkow_go_proto_validators.FieldError("Region", fmt.Errorf(`value '%v' must not be an empty string`, this.Region)) @@ -54,6 +61,7 @@ func (this *AddRDSRequest) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *AddRDSResponse) Validate() error { if this.Node != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Node); err != nil { diff --git a/api/managementpb/rds_grpc.pb.go b/api/managementpb/rds_grpc.pb.go index b5d7ca774d..52cf85dd70 100644 --- a/api/managementpb/rds_grpc.pb.go +++ b/api/managementpb/rds_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -66,12 +67,12 @@ type RDSServer interface { } // UnimplementedRDSServer must be embedded to have forward compatible implementations. -type UnimplementedRDSServer struct { -} +type UnimplementedRDSServer struct{} func (UnimplementedRDSServer) DiscoverRDS(context.Context, *DiscoverRDSRequest) (*DiscoverRDSResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DiscoverRDS not implemented") } + func (UnimplementedRDSServer) AddRDS(context.Context, *AddRDSRequest) (*AddRDSResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddRDS not implemented") } diff --git a/api/managementpb/service.pb.go b/api/managementpb/service.pb.go index c35d803a43..1a00ed53b0 100644 --- a/api/managementpb/service.pb.go +++ b/api/managementpb/service.pb.go @@ -7,14 +7,16 @@ package managementpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" - inventorypb "github.com/percona/pmm/api/inventorypb" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -351,15 +353,18 @@ func file_managementpb_service_proto_rawDescGZIP() []byte { return file_managementpb_service_proto_rawDescData } -var file_managementpb_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_managementpb_service_proto_goTypes = []interface{}{ - (*AddNodeParams)(nil), // 0: management.AddNodeParams - (*RemoveServiceRequest)(nil), // 1: management.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 2: management.RemoveServiceResponse - nil, // 3: management.AddNodeParams.CustomLabelsEntry - (inventorypb.NodeType)(0), // 4: inventory.NodeType - (inventorypb.ServiceType)(0), // 5: inventory.ServiceType -} +var ( + file_managementpb_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) + file_managementpb_service_proto_goTypes = []interface{}{ + (*AddNodeParams)(nil), // 0: management.AddNodeParams + (*RemoveServiceRequest)(nil), // 1: management.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 2: management.RemoveServiceResponse + nil, // 3: management.AddNodeParams.CustomLabelsEntry + (inventorypb.NodeType)(0), // 4: inventory.NodeType + (inventorypb.ServiceType)(0), // 5: inventory.ServiceType + } +) + var file_managementpb_service_proto_depIdxs = []int32{ 4, // 0: management.AddNodeParams.node_type:type_name -> inventory.NodeType 3, // 1: management.AddNodeParams.custom_labels:type_name -> management.AddNodeParams.CustomLabelsEntry diff --git a/api/managementpb/service.pb.gw.go b/api/managementpb/service.pb.gw.go index 96aaf1c96b..fc6ec296a3 100644 --- a/api/managementpb/service.pb.gw.go +++ b/api/managementpb/service.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Service_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, client ServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq RemoveServiceRequest @@ -45,7 +47,6 @@ func request_Service_RemoveService_0(ctx context.Context, marshaler runtime.Mars msg, err := client.RemoveService(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Service_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, server ServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Service_RemoveService_0(ctx context.Context, marshaler runtim msg, err := server.RemoveService(ctx, &protoReq) return msg, metadata, err - } // RegisterServiceHandlerServer registers the http handlers for service Service to "mux". @@ -70,7 +70,6 @@ func local_request_Service_RemoveService_0(ctx context.Context, marshaler runtim // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServiceHandlerFromEndpoint instead. func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error { - mux.Handle("POST", pattern_Service_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Service_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ServiceClient" to call the correct interceptors. func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error { - mux.Handle("POST", pattern_Service_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Service_RemoveService_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_Service_RemoveService_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Service", "Remove"}, "")) -) +var pattern_Service_RemoveService_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Service", "Remove"}, "")) -var ( - forward_Service_RemoveService_0 = runtime.ForwardResponseMessage -) +var forward_Service_RemoveService_0 = runtime.ForwardResponseMessage diff --git a/api/managementpb/service.validator.pb.go b/api/managementpb/service.validator.pb.go index 45bc1eae17..0e224d523e 100644 --- a/api/managementpb/service.validator.pb.go +++ b/api/managementpb/service.validator.pb.go @@ -6,18 +6,22 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" + _ "github.com/percona/pmm/api/inventorypb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *AddNodeParams) Validate() error { if this.NodeName == "" { @@ -26,9 +30,11 @@ func (this *AddNodeParams) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *RemoveServiceRequest) Validate() error { return nil } + func (this *RemoveServiceResponse) Validate() error { return nil } diff --git a/api/managementpb/service_grpc.pb.go b/api/managementpb/service_grpc.pb.go index 26ac532459..0f2072f794 100644 --- a/api/managementpb/service_grpc.pb.go +++ b/api/managementpb/service_grpc.pb.go @@ -8,6 +8,7 @@ package managementpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type ServiceServer interface { } // UnimplementedServiceServer must be embedded to have forward compatible implementations. -type UnimplementedServiceServer struct { -} +type UnimplementedServiceServer struct{} func (UnimplementedServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveService not implemented") diff --git a/api/managementpb/severity.pb.go b/api/managementpb/severity.pb.go index 1c33a25589..ea217326cc 100644 --- a/api/managementpb/severity.pb.go +++ b/api/managementpb/severity.pb.go @@ -7,10 +7,11 @@ package managementpb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -130,10 +131,13 @@ func file_managementpb_severity_proto_rawDescGZIP() []byte { return file_managementpb_severity_proto_rawDescData } -var file_managementpb_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_managementpb_severity_proto_goTypes = []interface{}{ - (Severity)(0), // 0: management.Severity -} +var ( + file_managementpb_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_managementpb_severity_proto_goTypes = []interface{}{ + (Severity)(0), // 0: management.Severity + } +) + var file_managementpb_severity_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/managementpb/severity.validator.pb.go b/api/managementpb/severity.validator.pb.go index 601961f818..cc779b7912 100644 --- a/api/managementpb/severity.validator.pb.go +++ b/api/managementpb/severity.validator.pb.go @@ -6,10 +6,13 @@ package managementpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) diff --git a/api/platformpb/json/client/platform/connect_parameters.go b/api/platformpb/json/client/platform/connect_parameters.go index a12d7ec6ab..59a1edc83b 100644 --- a/api/platformpb/json/client/platform/connect_parameters.go +++ b/api/platformpb/json/client/platform/connect_parameters.go @@ -60,7 +60,6 @@ ConnectParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ConnectParams struct { - // Body. Body ConnectBody @@ -130,7 +129,6 @@ func (o *ConnectParams) SetBody(body ConnectBody) { // WriteToRequest writes these params to a swagger request func (o *ConnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/connect_responses.go b/api/platformpb/json/client/platform/connect_responses.go index b7c2a07bb7..20c28115f6 100644 --- a/api/platformpb/json/client/platform/connect_responses.go +++ b/api/platformpb/json/client/platform/connect_responses.go @@ -60,12 +60,12 @@ type ConnectOK struct { func (o *ConnectOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/Connect][%d] connectOk %+v", 200, o.Payload) } + func (o *ConnectOK) GetPayload() interface{} { return o.Payload } func (o *ConnectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ConnectDefault) Code() int { func (o *ConnectDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/Connect][%d] Connect default %+v", o._statusCode, o.Payload) } + func (o *ConnectDefault) GetPayload() *ConnectDefaultBody { return o.Payload } func (o *ConnectDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ConnectDefaultBody) // response payload @@ -121,7 +121,6 @@ ConnectBody connect body swagger:model ConnectBody */ type ConnectBody struct { - // User defined human readable PMM Server Name. ServerName string `json:"server_name,omitempty"` @@ -168,7 +167,6 @@ ConnectDefaultBody connect default body swagger:model ConnectDefaultBody */ type ConnectDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -234,9 +232,7 @@ func (o *ConnectDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ConnectDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -247,7 +243,6 @@ func (o *ConnectDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -276,7 +271,6 @@ ConnectDefaultBodyDetailsItems0 connect default body details items0 swagger:model ConnectDefaultBodyDetailsItems0 */ type ConnectDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/platformpb/json/client/platform/disconnect_parameters.go b/api/platformpb/json/client/platform/disconnect_parameters.go index 99956f968a..a7aa5c50e1 100644 --- a/api/platformpb/json/client/platform/disconnect_parameters.go +++ b/api/platformpb/json/client/platform/disconnect_parameters.go @@ -60,7 +60,6 @@ DisconnectParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DisconnectParams struct { - // Body. Body DisconnectBody @@ -130,7 +129,6 @@ func (o *DisconnectParams) SetBody(body DisconnectBody) { // WriteToRequest writes these params to a swagger request func (o *DisconnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/disconnect_responses.go b/api/platformpb/json/client/platform/disconnect_responses.go index f27f6052f4..6ea415058e 100644 --- a/api/platformpb/json/client/platform/disconnect_responses.go +++ b/api/platformpb/json/client/platform/disconnect_responses.go @@ -60,12 +60,12 @@ type DisconnectOK struct { func (o *DisconnectOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/Disconnect][%d] disconnectOk %+v", 200, o.Payload) } + func (o *DisconnectOK) GetPayload() interface{} { return o.Payload } func (o *DisconnectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *DisconnectDefault) Code() int { func (o *DisconnectDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/Disconnect][%d] Disconnect default %+v", o._statusCode, o.Payload) } + func (o *DisconnectDefault) GetPayload() *DisconnectDefaultBody { return o.Payload } func (o *DisconnectDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DisconnectDefaultBody) // response payload @@ -121,7 +121,6 @@ DisconnectBody disconnect body swagger:model DisconnectBody */ type DisconnectBody struct { - // Forces the cleanup process for connected PMM instances regardless of the Portal API response Force bool `json:"force,omitempty"` } @@ -159,7 +158,6 @@ DisconnectDefaultBody disconnect default body swagger:model DisconnectDefaultBody */ type DisconnectDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *DisconnectDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *DisconnectDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *DisconnectDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -267,7 +262,6 @@ DisconnectDefaultBodyDetailsItems0 disconnect default body details items0 swagger:model DisconnectDefaultBodyDetailsItems0 */ type DisconnectDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/platformpb/json/client/platform/get_contact_information_parameters.go b/api/platformpb/json/client/platform/get_contact_information_parameters.go index 9464f5e560..33c2ad7236 100644 --- a/api/platformpb/json/client/platform/get_contact_information_parameters.go +++ b/api/platformpb/json/client/platform/get_contact_information_parameters.go @@ -60,7 +60,6 @@ GetContactInformationParams contains all the parameters to send to the API endpo Typically these are written to a http.Request. */ type GetContactInformationParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *GetContactInformationParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetContactInformationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/get_contact_information_responses.go b/api/platformpb/json/client/platform/get_contact_information_responses.go index c1eb711c91..81cf1651b0 100644 --- a/api/platformpb/json/client/platform/get_contact_information_responses.go +++ b/api/platformpb/json/client/platform/get_contact_information_responses.go @@ -60,12 +60,12 @@ type GetContactInformationOK struct { func (o *GetContactInformationOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/GetContactInformation][%d] getContactInformationOk %+v", 200, o.Payload) } + func (o *GetContactInformationOK) GetPayload() *GetContactInformationOKBody { return o.Payload } func (o *GetContactInformationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetContactInformationOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetContactInformationDefault) Code() int { func (o *GetContactInformationDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/GetContactInformation][%d] GetContactInformation default %+v", o._statusCode, o.Payload) } + func (o *GetContactInformationDefault) GetPayload() *GetContactInformationDefaultBody { return o.Payload } func (o *GetContactInformationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetContactInformationDefaultBody) // response payload @@ -123,7 +123,6 @@ GetContactInformationDefaultBody get contact information default body swagger:model GetContactInformationDefaultBody */ type GetContactInformationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *GetContactInformationDefaultBody) ContextValidate(ctx context.Context, } func (o *GetContactInformationDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *GetContactInformationDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -231,7 +227,6 @@ GetContactInformationDefaultBodyDetailsItems0 get contact information default bo swagger:model GetContactInformationDefaultBodyDetailsItems0 */ type GetContactInformationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ GetContactInformationOKBody get contact information OK body swagger:model GetContactInformationOKBody */ type GetContactInformationOKBody struct { - // URL to open a new support ticket. NewTicketURL string `json:"new_ticket_url,omitempty"` @@ -325,7 +319,6 @@ func (o *GetContactInformationOKBody) ContextValidate(ctx context.Context, forma } func (o *GetContactInformationOKBody) contextValidateCustomerSuccess(ctx context.Context, formats strfmt.Registry) error { - if o.CustomerSuccess != nil { if err := o.CustomerSuccess.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -363,7 +356,6 @@ GetContactInformationOKBodyCustomerSuccess CustomerSuccess contains the contanct swagger:model GetContactInformationOKBodyCustomerSuccess */ type GetContactInformationOKBodyCustomerSuccess struct { - // name Name string `json:"name,omitempty"` diff --git a/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go b/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go index e7ab2c3344..f13a953027 100644 --- a/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go +++ b/api/platformpb/json/client/platform/search_organization_entitlements_parameters.go @@ -60,7 +60,6 @@ SearchOrganizationEntitlementsParams contains all the parameters to send to the Typically these are written to a http.Request. */ type SearchOrganizationEntitlementsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *SearchOrganizationEntitlementsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *SearchOrganizationEntitlementsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/search_organization_entitlements_responses.go b/api/platformpb/json/client/platform/search_organization_entitlements_responses.go index 5150f6824e..4b8dc1c532 100644 --- a/api/platformpb/json/client/platform/search_organization_entitlements_responses.go +++ b/api/platformpb/json/client/platform/search_organization_entitlements_responses.go @@ -61,12 +61,12 @@ type SearchOrganizationEntitlementsOK struct { func (o *SearchOrganizationEntitlementsOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationEntitlements][%d] searchOrganizationEntitlementsOk %+v", 200, o.Payload) } + func (o *SearchOrganizationEntitlementsOK) GetPayload() *SearchOrganizationEntitlementsOKBody { return o.Payload } func (o *SearchOrganizationEntitlementsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SearchOrganizationEntitlementsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *SearchOrganizationEntitlementsDefault) Code() int { func (o *SearchOrganizationEntitlementsDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationEntitlements][%d] SearchOrganizationEntitlements default %+v", o._statusCode, o.Payload) } + func (o *SearchOrganizationEntitlementsDefault) GetPayload() *SearchOrganizationEntitlementsDefaultBody { return o.Payload } func (o *SearchOrganizationEntitlementsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SearchOrganizationEntitlementsDefaultBody) // response payload @@ -124,7 +124,6 @@ SearchOrganizationEntitlementsDefaultBody search organization entitlements defau swagger:model SearchOrganizationEntitlementsDefaultBody */ type SearchOrganizationEntitlementsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -190,9 +189,7 @@ func (o *SearchOrganizationEntitlementsDefaultBody) ContextValidate(ctx context. } func (o *SearchOrganizationEntitlementsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -203,7 +200,6 @@ func (o *SearchOrganizationEntitlementsDefaultBody) contextValidateDetails(ctx c return err } } - } return nil @@ -232,7 +228,6 @@ SearchOrganizationEntitlementsDefaultBodyDetailsItems0 search organization entit swagger:model SearchOrganizationEntitlementsDefaultBodyDetailsItems0 */ type SearchOrganizationEntitlementsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -270,7 +265,6 @@ SearchOrganizationEntitlementsOKBody search organization entitlements OK body swagger:model SearchOrganizationEntitlementsOKBody */ type SearchOrganizationEntitlementsOKBody struct { - // entitlements Entitlements []*SearchOrganizationEntitlementsOKBodyEntitlementsItems0 `json:"entitlements"` } @@ -330,9 +324,7 @@ func (o *SearchOrganizationEntitlementsOKBody) ContextValidate(ctx context.Conte } func (o *SearchOrganizationEntitlementsOKBody) contextValidateEntitlements(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Entitlements); i++ { - if o.Entitlements[i] != nil { if err := o.Entitlements[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -343,7 +335,6 @@ func (o *SearchOrganizationEntitlementsOKBody) contextValidateEntitlements(ctx c return err } } - } return nil @@ -372,7 +363,6 @@ SearchOrganizationEntitlementsOKBodyEntitlementsItems0 OrganizationEntitlement c swagger:model SearchOrganizationEntitlementsOKBodyEntitlementsItems0 */ type SearchOrganizationEntitlementsOKBodyEntitlementsItems0 struct { - // Entitlement number. Number string `json:"number,omitempty"` @@ -491,7 +481,6 @@ func (o *SearchOrganizationEntitlementsOKBodyEntitlementsItems0) ContextValidate } func (o *SearchOrganizationEntitlementsOKBodyEntitlementsItems0) contextValidatePlatform(ctx context.Context, formats strfmt.Registry) error { - if o.Platform != nil { if err := o.Platform.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -529,7 +518,6 @@ SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform Platform indicate swagger:model SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform */ type SearchOrganizationEntitlementsOKBodyEntitlementsItems0Platform struct { - // Flag indicates that security advisors are covered by this entitlement. SecurityAdvisor string `json:"security_advisor,omitempty"` diff --git a/api/platformpb/json/client/platform/search_organization_tickets_parameters.go b/api/platformpb/json/client/platform/search_organization_tickets_parameters.go index 72ef0b2a0c..61a7269406 100644 --- a/api/platformpb/json/client/platform/search_organization_tickets_parameters.go +++ b/api/platformpb/json/client/platform/search_organization_tickets_parameters.go @@ -60,7 +60,6 @@ SearchOrganizationTicketsParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type SearchOrganizationTicketsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *SearchOrganizationTicketsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *SearchOrganizationTicketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/search_organization_tickets_responses.go b/api/platformpb/json/client/platform/search_organization_tickets_responses.go index 5fd1e2f7fb..36c5824177 100644 --- a/api/platformpb/json/client/platform/search_organization_tickets_responses.go +++ b/api/platformpb/json/client/platform/search_organization_tickets_responses.go @@ -61,12 +61,12 @@ type SearchOrganizationTicketsOK struct { func (o *SearchOrganizationTicketsOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationTickets][%d] searchOrganizationTicketsOk %+v", 200, o.Payload) } + func (o *SearchOrganizationTicketsOK) GetPayload() *SearchOrganizationTicketsOKBody { return o.Payload } func (o *SearchOrganizationTicketsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SearchOrganizationTicketsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *SearchOrganizationTicketsDefault) Code() int { func (o *SearchOrganizationTicketsDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/SearchOrganizationTickets][%d] SearchOrganizationTickets default %+v", o._statusCode, o.Payload) } + func (o *SearchOrganizationTicketsDefault) GetPayload() *SearchOrganizationTicketsDefaultBody { return o.Payload } func (o *SearchOrganizationTicketsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SearchOrganizationTicketsDefaultBody) // response payload @@ -124,7 +124,6 @@ SearchOrganizationTicketsDefaultBody search organization tickets default body swagger:model SearchOrganizationTicketsDefaultBody */ type SearchOrganizationTicketsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -190,9 +189,7 @@ func (o *SearchOrganizationTicketsDefaultBody) ContextValidate(ctx context.Conte } func (o *SearchOrganizationTicketsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -203,7 +200,6 @@ func (o *SearchOrganizationTicketsDefaultBody) contextValidateDetails(ctx contex return err } } - } return nil @@ -232,7 +228,6 @@ SearchOrganizationTicketsDefaultBodyDetailsItems0 search organization tickets de swagger:model SearchOrganizationTicketsDefaultBodyDetailsItems0 */ type SearchOrganizationTicketsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -270,7 +265,6 @@ SearchOrganizationTicketsOKBody search organization tickets OK body swagger:model SearchOrganizationTicketsOKBody */ type SearchOrganizationTicketsOKBody struct { - // Support tickets belonging to the Percona Portal Organization. Tickets []*SearchOrganizationTicketsOKBodyTicketsItems0 `json:"tickets"` } @@ -330,9 +324,7 @@ func (o *SearchOrganizationTicketsOKBody) ContextValidate(ctx context.Context, f } func (o *SearchOrganizationTicketsOKBody) contextValidateTickets(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Tickets); i++ { - if o.Tickets[i] != nil { if err := o.Tickets[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -343,7 +335,6 @@ func (o *SearchOrganizationTicketsOKBody) contextValidateTickets(ctx context.Con return err } } - } return nil @@ -372,7 +363,6 @@ SearchOrganizationTicketsOKBodyTicketsItems0 OrganizationTicket contains informa swagger:model SearchOrganizationTicketsOKBodyTicketsItems0 */ type SearchOrganizationTicketsOKBodyTicketsItems0 struct { - // Ticket number. Number string `json:"number,omitempty"` diff --git a/api/platformpb/json/client/platform/server_info_parameters.go b/api/platformpb/json/client/platform/server_info_parameters.go index a3e7ec413f..895075df3b 100644 --- a/api/platformpb/json/client/platform/server_info_parameters.go +++ b/api/platformpb/json/client/platform/server_info_parameters.go @@ -60,7 +60,6 @@ ServerInfoParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ServerInfoParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *ServerInfoParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *ServerInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/server_info_responses.go b/api/platformpb/json/client/platform/server_info_responses.go index 394cd51d9b..96d64f9b2b 100644 --- a/api/platformpb/json/client/platform/server_info_responses.go +++ b/api/platformpb/json/client/platform/server_info_responses.go @@ -60,12 +60,12 @@ type ServerInfoOK struct { func (o *ServerInfoOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/ServerInfo][%d] serverInfoOk %+v", 200, o.Payload) } + func (o *ServerInfoOK) GetPayload() *ServerInfoOKBody { return o.Payload } func (o *ServerInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ServerInfoOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ServerInfoDefault) Code() int { func (o *ServerInfoDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/ServerInfo][%d] ServerInfo default %+v", o._statusCode, o.Payload) } + func (o *ServerInfoDefault) GetPayload() *ServerInfoDefaultBody { return o.Payload } func (o *ServerInfoDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ServerInfoDefaultBody) // response payload @@ -123,7 +123,6 @@ ServerInfoDefaultBody server info default body swagger:model ServerInfoDefaultBody */ type ServerInfoDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *ServerInfoDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *ServerInfoDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *ServerInfoDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -231,7 +227,6 @@ ServerInfoDefaultBodyDetailsItems0 server info default body details items0 swagger:model ServerInfoDefaultBodyDetailsItems0 */ type ServerInfoDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ ServerInfoOKBody server info OK body swagger:model ServerInfoOKBody */ type ServerInfoOKBody struct { - // pmm server name PMMServerName string `json:"pmm_server_name,omitempty"` diff --git a/api/platformpb/json/client/platform/user_status_parameters.go b/api/platformpb/json/client/platform/user_status_parameters.go index 1e08b3597a..e8ef6ea0bf 100644 --- a/api/platformpb/json/client/platform/user_status_parameters.go +++ b/api/platformpb/json/client/platform/user_status_parameters.go @@ -60,7 +60,6 @@ UserStatusParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UserStatusParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *UserStatusParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *UserStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/platformpb/json/client/platform/user_status_responses.go b/api/platformpb/json/client/platform/user_status_responses.go index 6c262e490a..1456954c54 100644 --- a/api/platformpb/json/client/platform/user_status_responses.go +++ b/api/platformpb/json/client/platform/user_status_responses.go @@ -60,12 +60,12 @@ type UserStatusOK struct { func (o *UserStatusOK) Error() string { return fmt.Sprintf("[POST /v1/Platform/UserStatus][%d] userStatusOk %+v", 200, o.Payload) } + func (o *UserStatusOK) GetPayload() *UserStatusOKBody { return o.Payload } func (o *UserStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UserStatusOKBody) // response payload @@ -102,12 +102,12 @@ func (o *UserStatusDefault) Code() int { func (o *UserStatusDefault) Error() string { return fmt.Sprintf("[POST /v1/Platform/UserStatus][%d] UserStatus default %+v", o._statusCode, o.Payload) } + func (o *UserStatusDefault) GetPayload() *UserStatusDefaultBody { return o.Payload } func (o *UserStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UserStatusDefaultBody) // response payload @@ -123,7 +123,6 @@ UserStatusDefaultBody user status default body swagger:model UserStatusDefaultBody */ type UserStatusDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *UserStatusDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UserStatusDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *UserStatusDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -231,7 +227,6 @@ UserStatusDefaultBodyDetailsItems0 user status default body details items0 swagger:model UserStatusDefaultBodyDetailsItems0 */ type UserStatusDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ UserStatusOKBody user status OK body swagger:model UserStatusOKBody */ type UserStatusOKBody struct { - // is platform user IsPlatformUser bool `json:"is_platform_user,omitempty"` } diff --git a/api/platformpb/platform.pb.go b/api/platformpb/platform.pb.go index 014a4984ab..f5630ac5bd 100644 --- a/api/platformpb/platform.pb.go +++ b/api/platformpb/platform.pb.go @@ -7,6 +7,9 @@ package platformpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -14,8 +17,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" ) const ( @@ -1362,30 +1363,33 @@ func file_platformpb_platform_proto_rawDescGZIP() []byte { return file_platformpb_platform_proto_rawDescData } -var file_platformpb_platform_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_platformpb_platform_proto_goTypes = []interface{}{ - (*ConnectRequest)(nil), // 0: platform.ConnectRequest - (*ConnectResponse)(nil), // 1: platform.ConnectResponse - (*DisconnectRequest)(nil), // 2: platform.DisconnectRequest - (*DisconnectResponse)(nil), // 3: platform.DisconnectResponse - (*SearchOrganizationTicketsRequest)(nil), // 4: platform.SearchOrganizationTicketsRequest - (*SearchOrganizationTicketsResponse)(nil), // 5: platform.SearchOrganizationTicketsResponse - (*OrganizationTicket)(nil), // 6: platform.OrganizationTicket - (*SearchOrganizationEntitlementsRequest)(nil), // 7: platform.SearchOrganizationEntitlementsRequest - (*SearchOrganizationEntitlementsResponse)(nil), // 8: platform.SearchOrganizationEntitlementsResponse - (*OrganizationEntitlement)(nil), // 9: platform.OrganizationEntitlement - (*GetContactInformationRequest)(nil), // 10: platform.GetContactInformationRequest - (*GetContactInformationResponse)(nil), // 11: platform.GetContactInformationResponse - (*ServerInfoRequest)(nil), // 12: platform.ServerInfoRequest - (*ServerInfoResponse)(nil), // 13: platform.ServerInfoResponse - (*UserStatusRequest)(nil), // 14: platform.UserStatusRequest - (*UserStatusResponse)(nil), // 15: platform.UserStatusResponse - (*OrganizationEntitlement_Platform)(nil), // 16: platform.OrganizationEntitlement.Platform - (*GetContactInformationResponse_CustomerSuccess)(nil), // 17: platform.GetContactInformationResponse.CustomerSuccess - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*wrapperspb.StringValue)(nil), // 19: google.protobuf.StringValue - (*wrapperspb.BoolValue)(nil), // 20: google.protobuf.BoolValue -} +var ( + file_platformpb_platform_proto_msgTypes = make([]protoimpl.MessageInfo, 18) + file_platformpb_platform_proto_goTypes = []interface{}{ + (*ConnectRequest)(nil), // 0: platform.ConnectRequest + (*ConnectResponse)(nil), // 1: platform.ConnectResponse + (*DisconnectRequest)(nil), // 2: platform.DisconnectRequest + (*DisconnectResponse)(nil), // 3: platform.DisconnectResponse + (*SearchOrganizationTicketsRequest)(nil), // 4: platform.SearchOrganizationTicketsRequest + (*SearchOrganizationTicketsResponse)(nil), // 5: platform.SearchOrganizationTicketsResponse + (*OrganizationTicket)(nil), // 6: platform.OrganizationTicket + (*SearchOrganizationEntitlementsRequest)(nil), // 7: platform.SearchOrganizationEntitlementsRequest + (*SearchOrganizationEntitlementsResponse)(nil), // 8: platform.SearchOrganizationEntitlementsResponse + (*OrganizationEntitlement)(nil), // 9: platform.OrganizationEntitlement + (*GetContactInformationRequest)(nil), // 10: platform.GetContactInformationRequest + (*GetContactInformationResponse)(nil), // 11: platform.GetContactInformationResponse + (*ServerInfoRequest)(nil), // 12: platform.ServerInfoRequest + (*ServerInfoResponse)(nil), // 13: platform.ServerInfoResponse + (*UserStatusRequest)(nil), // 14: platform.UserStatusRequest + (*UserStatusResponse)(nil), // 15: platform.UserStatusResponse + (*OrganizationEntitlement_Platform)(nil), // 16: platform.OrganizationEntitlement.Platform + (*GetContactInformationResponse_CustomerSuccess)(nil), // 17: platform.GetContactInformationResponse.CustomerSuccess + (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*wrapperspb.StringValue)(nil), // 19: google.protobuf.StringValue + (*wrapperspb.BoolValue)(nil), // 20: google.protobuf.BoolValue + } +) + var file_platformpb_platform_proto_depIdxs = []int32{ 6, // 0: platform.SearchOrganizationTicketsResponse.tickets:type_name -> platform.OrganizationTicket 18, // 1: platform.OrganizationTicket.create_time:type_name -> google.protobuf.Timestamp diff --git a/api/platformpb/platform.pb.gw.go b/api/platformpb/platform.pb.gw.go index c45ac4056f..3d3c9a1603 100644 --- a/api/platformpb/platform.pb.gw.go +++ b/api/platformpb/platform.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Platform_Connect_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ConnectRequest @@ -45,7 +47,6 @@ func request_Platform_Connect_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.Connect(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_Connect_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Platform_Connect_0(ctx context.Context, marshaler runtime.Mar msg, err := server.Connect(ctx, &protoReq) return msg, metadata, err - } func request_Platform_Disconnect_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_Platform_Disconnect_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.Disconnect(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_Disconnect_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_Platform_Disconnect_0(ctx context.Context, marshaler runtime. msg, err := server.Disconnect(ctx, &protoReq) return msg, metadata, err - } func request_Platform_SearchOrganizationTickets_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_Platform_SearchOrganizationTickets_0(ctx context.Context, marshaler msg, err := client.SearchOrganizationTickets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_SearchOrganizationTickets_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_Platform_SearchOrganizationTickets_0(ctx context.Context, mar msg, err := server.SearchOrganizationTickets(ctx, &protoReq) return msg, metadata, err - } func request_Platform_SearchOrganizationEntitlements_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_Platform_SearchOrganizationEntitlements_0(ctx context.Context, mars msg, err := client.SearchOrganizationEntitlements(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_SearchOrganizationEntitlements_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_Platform_SearchOrganizationEntitlements_0(ctx context.Context msg, err := server.SearchOrganizationEntitlements(ctx, &protoReq) return msg, metadata, err - } func request_Platform_GetContactInformation_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_Platform_GetContactInformation_0(ctx context.Context, marshaler run msg, err := client.GetContactInformation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_GetContactInformation_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_Platform_GetContactInformation_0(ctx context.Context, marshal msg, err := server.GetContactInformation(ctx, &protoReq) return msg, metadata, err - } func request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.ServerInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_Platform_ServerInfo_0(ctx context.Context, marshaler runtime. msg, err := server.ServerInfo(ctx, &protoReq) return msg, metadata, err - } func request_Platform_UserStatus_0(ctx context.Context, marshaler runtime.Marshaler, client PlatformClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,7 +239,6 @@ func request_Platform_UserStatus_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.UserStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Platform_UserStatus_0(ctx context.Context, marshaler runtime.Marshaler, server PlatformServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -266,7 +255,6 @@ func local_request_Platform_UserStatus_0(ctx context.Context, marshaler runtime. msg, err := server.UserStatus(ctx, &protoReq) return msg, metadata, err - } // RegisterPlatformHandlerServer registers the http handlers for service Platform to "mux". @@ -274,7 +262,6 @@ func local_request_Platform_UserStatus_0(ctx context.Context, marshaler runtime. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPlatformHandlerFromEndpoint instead. func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PlatformServer) error { - mux.Handle("POST", pattern_Platform_Connect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -297,7 +284,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_Connect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_Disconnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -322,7 +308,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_Disconnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_SearchOrganizationTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -347,7 +332,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_SearchOrganizationTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_SearchOrganizationEntitlements_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -372,7 +356,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_SearchOrganizationEntitlements_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_GetContactInformation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -397,7 +380,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_GetContactInformation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_ServerInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -422,7 +404,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_ServerInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_UserStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -447,7 +428,6 @@ func RegisterPlatformHandlerServer(ctx context.Context, mux *runtime.ServeMux, s } forward_Platform_UserStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -490,7 +470,6 @@ func RegisterPlatformHandler(ctx context.Context, mux *runtime.ServeMux, conn *g // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "PlatformClient" to call the correct interceptors. func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlatformClient) error { - mux.Handle("POST", pattern_Platform_Connect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -510,7 +489,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_Connect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_Disconnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -532,7 +510,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_Disconnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_SearchOrganizationTickets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -554,7 +531,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_SearchOrganizationTickets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_SearchOrganizationEntitlements_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -576,7 +552,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_SearchOrganizationEntitlements_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_GetContactInformation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -598,7 +573,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_GetContactInformation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_ServerInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -620,7 +594,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_ServerInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Platform_UserStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -642,7 +615,6 @@ func RegisterPlatformHandlerClient(ctx context.Context, mux *runtime.ServeMux, c } forward_Platform_UserStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/platformpb/platform.validator.pb.go b/api/platformpb/platform.validator.pb.go index 91d4874e1e..5dd682deb5 100644 --- a/api/platformpb/platform.validator.pb.go +++ b/api/platformpb/platform.validator.pb.go @@ -6,19 +6,22 @@ package platformpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - _ "google.golang.org/protobuf/types/known/timestamppb" - _ "google.golang.org/protobuf/types/known/wrapperspb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" + _ "google.golang.org/protobuf/types/known/timestamppb" + _ "google.golang.org/protobuf/types/known/wrapperspb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *ConnectRequest) Validate() error { if this.ServerName == "" { @@ -26,18 +29,23 @@ func (this *ConnectRequest) Validate() error { } return nil } + func (this *ConnectResponse) Validate() error { return nil } + func (this *DisconnectRequest) Validate() error { return nil } + func (this *DisconnectResponse) Validate() error { return nil } + func (this *SearchOrganizationTicketsRequest) Validate() error { return nil } + func (this *SearchOrganizationTicketsResponse) Validate() error { for _, item := range this.Tickets { if item != nil { @@ -48,6 +56,7 @@ func (this *SearchOrganizationTicketsResponse) Validate() error { } return nil } + func (this *OrganizationTicket) Validate() error { if this.CreateTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CreateTime); err != nil { @@ -56,9 +65,11 @@ func (this *OrganizationTicket) Validate() error { } return nil } + func (this *SearchOrganizationEntitlementsRequest) Validate() error { return nil } + func (this *SearchOrganizationEntitlementsResponse) Validate() error { for _, item := range this.Entitlements { if item != nil { @@ -69,6 +80,7 @@ func (this *SearchOrganizationEntitlementsResponse) Validate() error { } return nil } + func (this *OrganizationEntitlement) Validate() error { if this.Tier != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Tier); err != nil { @@ -107,6 +119,7 @@ func (this *OrganizationEntitlement) Validate() error { } return nil } + func (this *OrganizationEntitlement_Platform) Validate() error { if this.SecurityAdvisor != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SecurityAdvisor); err != nil { @@ -120,9 +133,11 @@ func (this *OrganizationEntitlement_Platform) Validate() error { } return nil } + func (this *GetContactInformationRequest) Validate() error { return nil } + func (this *GetContactInformationResponse) Validate() error { if this.CustomerSuccess != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CustomerSuccess); err != nil { @@ -131,18 +146,23 @@ func (this *GetContactInformationResponse) Validate() error { } return nil } + func (this *GetContactInformationResponse_CustomerSuccess) Validate() error { return nil } + func (this *ServerInfoRequest) Validate() error { return nil } + func (this *ServerInfoResponse) Validate() error { return nil } + func (this *UserStatusRequest) Validate() error { return nil } + func (this *UserStatusResponse) Validate() error { return nil } diff --git a/api/platformpb/platform_grpc.pb.go b/api/platformpb/platform_grpc.pb.go index 577245dc00..2892e0e978 100644 --- a/api/platformpb/platform_grpc.pb.go +++ b/api/platformpb/platform_grpc.pb.go @@ -8,6 +8,7 @@ package platformpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -131,27 +132,32 @@ type PlatformServer interface { } // UnimplementedPlatformServer must be embedded to have forward compatible implementations. -type UnimplementedPlatformServer struct { -} +type UnimplementedPlatformServer struct{} func (UnimplementedPlatformServer) Connect(context.Context, *ConnectRequest) (*ConnectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented") } + func (UnimplementedPlatformServer) Disconnect(context.Context, *DisconnectRequest) (*DisconnectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Disconnect not implemented") } + func (UnimplementedPlatformServer) SearchOrganizationTickets(context.Context, *SearchOrganizationTicketsRequest) (*SearchOrganizationTicketsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchOrganizationTickets not implemented") } + func (UnimplementedPlatformServer) SearchOrganizationEntitlements(context.Context, *SearchOrganizationEntitlementsRequest) (*SearchOrganizationEntitlementsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchOrganizationEntitlements not implemented") } + func (UnimplementedPlatformServer) GetContactInformation(context.Context, *GetContactInformationRequest) (*GetContactInformationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetContactInformation not implemented") } + func (UnimplementedPlatformServer) ServerInfo(context.Context, *ServerInfoRequest) (*ServerInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ServerInfo not implemented") } + func (UnimplementedPlatformServer) UserStatus(context.Context, *UserStatusRequest) (*UserStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UserStatus not implemented") } diff --git a/api/qanpb/collector.pb.go b/api/qanpb/collector.pb.go index 68c76c690a..84111947a2 100644 --- a/api/qanpb/collector.pb.go +++ b/api/qanpb/collector.pb.go @@ -7,11 +7,13 @@ package qanv1beta1 import ( - inventorypb "github.com/percona/pmm/api/inventorypb" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + inventorypb "github.com/percona/pmm/api/inventorypb" ) const ( @@ -2691,18 +2693,21 @@ func file_qanpb_collector_proto_rawDescGZIP() []byte { return file_qanpb_collector_proto_rawDescData } -var file_qanpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_qanpb_collector_proto_goTypes = []interface{}{ - (*CollectRequest)(nil), // 0: qan.v1beta1.CollectRequest - (*MetricsBucket)(nil), // 1: qan.v1beta1.MetricsBucket - (*CollectResponse)(nil), // 2: qan.v1beta1.CollectResponse - nil, // 3: qan.v1beta1.MetricsBucket.LabelsEntry - nil, // 4: qan.v1beta1.MetricsBucket.WarningsEntry - nil, // 5: qan.v1beta1.MetricsBucket.ErrorsEntry - (inventorypb.AgentType)(0), // 6: inventory.AgentType - (ExampleFormat)(0), // 7: qan.v1beta1.ExampleFormat - (ExampleType)(0), // 8: qan.v1beta1.ExampleType -} +var ( + file_qanpb_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_qanpb_collector_proto_goTypes = []interface{}{ + (*CollectRequest)(nil), // 0: qan.v1beta1.CollectRequest + (*MetricsBucket)(nil), // 1: qan.v1beta1.MetricsBucket + (*CollectResponse)(nil), // 2: qan.v1beta1.CollectResponse + nil, // 3: qan.v1beta1.MetricsBucket.LabelsEntry + nil, // 4: qan.v1beta1.MetricsBucket.WarningsEntry + nil, // 5: qan.v1beta1.MetricsBucket.ErrorsEntry + (inventorypb.AgentType)(0), // 6: inventory.AgentType + (ExampleFormat)(0), // 7: qan.v1beta1.ExampleFormat + (ExampleType)(0), // 8: qan.v1beta1.ExampleType + } +) + var file_qanpb_collector_proto_depIdxs = []int32{ 1, // 0: qan.v1beta1.CollectRequest.metrics_bucket:type_name -> qan.v1beta1.MetricsBucket 6, // 1: qan.v1beta1.MetricsBucket.agent_type:type_name -> inventory.AgentType diff --git a/api/qanpb/collector.validator.pb.go b/api/qanpb/collector.validator.pb.go index 2b382ce997..fd692bfdc4 100644 --- a/api/qanpb/collector.validator.pb.go +++ b/api/qanpb/collector.validator.pb.go @@ -6,15 +6,19 @@ package qanv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "github.com/percona/pmm/api/inventorypb" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + + _ "github.com/percona/pmm/api/inventorypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *CollectRequest) Validate() error { for _, item := range this.MetricsBucket { @@ -26,12 +30,14 @@ func (this *CollectRequest) Validate() error { } return nil } + func (this *MetricsBucket) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. return nil } + func (this *CollectResponse) Validate() error { return nil } diff --git a/api/qanpb/collector_grpc.pb.go b/api/qanpb/collector_grpc.pb.go index d62ba36760..689e890217 100644 --- a/api/qanpb/collector_grpc.pb.go +++ b/api/qanpb/collector_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type CollectorServer interface { } // UnimplementedCollectorServer must be embedded to have forward compatible implementations. -type UnimplementedCollectorServer struct { -} +type UnimplementedCollectorServer struct{} func (UnimplementedCollectorServer) Collect(context.Context, *CollectRequest) (*CollectResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Collect not implemented") diff --git a/api/qanpb/filters.pb.go b/api/qanpb/filters.pb.go index 136c3e1ce7..7439ed5189 100644 --- a/api/qanpb/filters.pb.go +++ b/api/qanpb/filters.pb.go @@ -7,12 +7,13 @@ package qanv1beta1 import ( + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" ) const ( @@ -334,16 +335,19 @@ func file_qanpb_filters_proto_rawDescGZIP() []byte { return file_qanpb_filters_proto_rawDescData } -var file_qanpb_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_qanpb_filters_proto_goTypes = []interface{}{ - (*FiltersRequest)(nil), // 0: qan.v1beta1.FiltersRequest - (*FiltersReply)(nil), // 1: qan.v1beta1.FiltersReply - (*ListLabels)(nil), // 2: qan.v1beta1.ListLabels - (*Values)(nil), // 3: qan.v1beta1.Values - nil, // 4: qan.v1beta1.FiltersReply.LabelsEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 6: qan.v1beta1.MapFieldEntry -} +var ( + file_qanpb_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) + file_qanpb_filters_proto_goTypes = []interface{}{ + (*FiltersRequest)(nil), // 0: qan.v1beta1.FiltersRequest + (*FiltersReply)(nil), // 1: qan.v1beta1.FiltersReply + (*ListLabels)(nil), // 2: qan.v1beta1.ListLabels + (*Values)(nil), // 3: qan.v1beta1.Values + nil, // 4: qan.v1beta1.FiltersReply.LabelsEntry + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 6: qan.v1beta1.MapFieldEntry + } +) + var file_qanpb_filters_proto_depIdxs = []int32{ 5, // 0: qan.v1beta1.FiltersRequest.period_start_from:type_name -> google.protobuf.Timestamp 5, // 1: qan.v1beta1.FiltersRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qanpb/filters.pb.gw.go b/api/qanpb/filters.pb.gw.go index 91ac8d9d82..52080f2c03 100644 --- a/api/qanpb/filters.pb.gw.go +++ b/api/qanpb/filters.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshaler, client FiltersClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq FiltersRequest @@ -45,7 +47,6 @@ func request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshaler, cli msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshaler, server FiltersServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshale msg, err := server.Get(ctx, &protoReq) return msg, metadata, err - } // RegisterFiltersHandlerServer registers the http handlers for service Filters to "mux". @@ -70,7 +70,6 @@ func local_request_Filters_Get_0(ctx context.Context, marshaler runtime.Marshale // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFiltersHandlerFromEndpoint instead. func RegisterFiltersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FiltersServer) error { - mux.Handle("POST", pattern_Filters_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterFiltersHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Filters_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterFiltersHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "FiltersClient" to call the correct interceptors. func RegisterFiltersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FiltersClient) error { - mux.Handle("POST", pattern_Filters_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterFiltersHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Filters_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_Filters_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v0", "qan", "Filters", "Get"}, "")) -) +var pattern_Filters_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v0", "qan", "Filters", "Get"}, "")) -var ( - forward_Filters_Get_0 = runtime.ForwardResponseMessage -) +var forward_Filters_Get_0 = runtime.ForwardResponseMessage diff --git a/api/qanpb/filters.validator.pb.go b/api/qanpb/filters.validator.pb.go index 993e4881da..87ba839a42 100644 --- a/api/qanpb/filters.validator.pb.go +++ b/api/qanpb/filters.validator.pb.go @@ -6,16 +6,19 @@ package qanv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *FiltersRequest) Validate() error { if this.PeriodStartFrom != nil { @@ -37,10 +40,12 @@ func (this *FiltersRequest) Validate() error { } return nil } + func (this *FiltersReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ListLabels) Validate() error { for _, item := range this.Name { if item != nil { @@ -51,6 +56,7 @@ func (this *ListLabels) Validate() error { } return nil } + func (this *Values) Validate() error { return nil } diff --git a/api/qanpb/filters_grpc.pb.go b/api/qanpb/filters_grpc.pb.go index 56eafde02e..7a2943a2ad 100644 --- a/api/qanpb/filters_grpc.pb.go +++ b/api/qanpb/filters_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type FiltersServer interface { } // UnimplementedFiltersServer must be embedded to have forward compatible implementations. -type UnimplementedFiltersServer struct { -} +type UnimplementedFiltersServer struct{} func (UnimplementedFiltersServer) Get(context.Context, *FiltersRequest) (*FiltersReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") diff --git a/api/qanpb/json/client/filters/get_parameters.go b/api/qanpb/json/client/filters/get_parameters.go index 30080f93a1..7f2a7635c0 100644 --- a/api/qanpb/json/client/filters/get_parameters.go +++ b/api/qanpb/json/client/filters/get_parameters.go @@ -60,7 +60,6 @@ GetParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetParams struct { - /* Body. FiltersRequest contains period for which we need filters. @@ -133,7 +132,6 @@ func (o *GetParams) SetBody(body GetBody) { // WriteToRequest writes these params to a swagger request func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/filters/get_responses.go b/api/qanpb/json/client/filters/get_responses.go index 63f836cf5b..cfcee19800 100644 --- a/api/qanpb/json/client/filters/get_responses.go +++ b/api/qanpb/json/client/filters/get_responses.go @@ -61,12 +61,12 @@ type GetOK struct { func (o *GetOK) Error() string { return fmt.Sprintf("[POST /v0/qan/Filters/Get][%d] getOk %+v", 200, o.Payload) } + func (o *GetOK) GetPayload() *GetOKBody { return o.Payload } func (o *GetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetDefault) Code() int { func (o *GetDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/Filters/Get][%d] Get default %+v", o._statusCode, o.Payload) } + func (o *GetDefault) GetPayload() *GetDefaultBody { return o.Payload } func (o *GetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetDefaultBody) // response payload @@ -124,7 +124,6 @@ GetBody FiltersRequest contains period for which we need filters. swagger:model GetBody */ type GetBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -227,9 +226,7 @@ func (o *GetBody) ContextValidate(ctx context.Context, formats strfmt.Registry) } func (o *GetBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Labels); i++ { - if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +237,6 @@ func (o *GetBody) contextValidateLabels(ctx context.Context, formats strfmt.Regi return err } } - } return nil @@ -269,7 +265,6 @@ GetDefaultBody get default body swagger:model GetDefaultBody */ type GetDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -335,9 +330,7 @@ func (o *GetDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *GetDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -348,7 +341,6 @@ func (o *GetDefaultBody) contextValidateDetails(ctx context.Context, formats str return err } } - } return nil @@ -377,7 +369,6 @@ GetDefaultBodyDetailsItems0 get default body details items0 swagger:model GetDefaultBodyDetailsItems0 */ type GetDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -416,7 +407,6 @@ GetOKBody FiltersReply is map of labels for given period by key. swagger:model GetOKBody */ type GetOKBody struct { - // labels Labels map[string]GetOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -476,15 +466,12 @@ func (o *GetOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry } func (o *GetOKBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Labels { - if val, ok := o.Labels[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -513,7 +500,6 @@ GetOKBodyLabelsAnon ListLabels is list of label's values: duplicates are impossi swagger:model GetOKBodyLabelsAnon */ type GetOKBodyLabelsAnon struct { - // name Name []*GetOKBodyLabelsAnonNameItems0 `json:"name"` } @@ -573,9 +559,7 @@ func (o *GetOKBodyLabelsAnon) ContextValidate(ctx context.Context, formats strfm } func (o *GetOKBodyLabelsAnon) contextValidateName(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Name); i++ { - if o.Name[i] != nil { if err := o.Name[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -586,7 +570,6 @@ func (o *GetOKBodyLabelsAnon) contextValidateName(ctx context.Context, formats s return err } } - } return nil @@ -615,7 +598,6 @@ GetOKBodyLabelsAnonNameItems0 Values is label values and main metric percent and swagger:model GetOKBodyLabelsAnonNameItems0 */ type GetOKBodyLabelsAnonNameItems0 struct { - // value Value string `json:"value,omitempty"` @@ -659,7 +641,6 @@ GetParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions in form swagger:model GetParamsBodyLabelsItems0 */ type GetParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go b/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go index 9ace427d25..a054ed1588 100644 --- a/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go +++ b/api/qanpb/json/client/metrics_names/get_metrics_names_parameters.go @@ -60,7 +60,6 @@ GetMetricsNamesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetMetricsNamesParams struct { - /* Body. MetricsNamesRequest is emty. @@ -133,7 +132,6 @@ func (o *GetMetricsNamesParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetMetricsNamesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go b/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go index ef925ae3cf..1902721a45 100644 --- a/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go +++ b/api/qanpb/json/client/metrics_names/get_metrics_names_responses.go @@ -60,12 +60,12 @@ type GetMetricsNamesOK struct { func (o *GetMetricsNamesOK) Error() string { return fmt.Sprintf("[POST /v0/qan/GetMetricsNames][%d] getMetricsNamesOk %+v", 200, o.Payload) } + func (o *GetMetricsNamesOK) GetPayload() *GetMetricsNamesOKBody { return o.Payload } func (o *GetMetricsNamesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsNamesOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetMetricsNamesDefault) Code() int { func (o *GetMetricsNamesDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/GetMetricsNames][%d] GetMetricsNames default %+v", o._statusCode, o.Payload) } + func (o *GetMetricsNamesDefault) GetPayload() *GetMetricsNamesDefaultBody { return o.Payload } func (o *GetMetricsNamesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsNamesDefaultBody) // response payload @@ -123,7 +123,6 @@ GetMetricsNamesDefaultBody get metrics names default body swagger:model GetMetricsNamesDefaultBody */ type GetMetricsNamesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *GetMetricsNamesDefaultBody) ContextValidate(ctx context.Context, format } func (o *GetMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *GetMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -231,7 +227,6 @@ GetMetricsNamesDefaultBodyDetailsItems0 get metrics names default body details i swagger:model GetMetricsNamesDefaultBodyDetailsItems0 */ type GetMetricsNamesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -271,7 +266,6 @@ GetMetricsNamesOKBody MetricsNamesReply is map of stored metrics: swagger:model GetMetricsNamesOKBody */ type GetMetricsNamesOKBody struct { - // data Data map[string]string `json:"data,omitempty"` } diff --git a/api/qanpb/json/client/object_details/get_histogram_parameters.go b/api/qanpb/json/client/object_details/get_histogram_parameters.go index 92d9df13fd..ac3be7715b 100644 --- a/api/qanpb/json/client/object_details/get_histogram_parameters.go +++ b/api/qanpb/json/client/object_details/get_histogram_parameters.go @@ -60,7 +60,6 @@ GetHistogramParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetHistogramParams struct { - /* Body. HistogramRequest defines filtering by time range, labels and queryid. @@ -133,7 +132,6 @@ func (o *GetHistogramParams) SetBody(body GetHistogramBody) { // WriteToRequest writes these params to a swagger request func (o *GetHistogramParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_histogram_responses.go b/api/qanpb/json/client/object_details/get_histogram_responses.go index b6a8491e46..22441d3d85 100644 --- a/api/qanpb/json/client/object_details/get_histogram_responses.go +++ b/api/qanpb/json/client/object_details/get_histogram_responses.go @@ -61,12 +61,12 @@ type GetHistogramOK struct { func (o *GetHistogramOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetHistogram][%d] getHistogramOk %+v", 200, o.Payload) } + func (o *GetHistogramOK) GetPayload() *GetHistogramOKBody { return o.Payload } func (o *GetHistogramOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetHistogramOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetHistogramDefault) Code() int { func (o *GetHistogramDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetHistogram][%d] GetHistogram default %+v", o._statusCode, o.Payload) } + func (o *GetHistogramDefault) GetPayload() *GetHistogramDefaultBody { return o.Payload } func (o *GetHistogramDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetHistogramDefaultBody) // response payload @@ -124,7 +124,6 @@ GetHistogramBody HistogramRequest defines filtering by time range, labels and qu swagger:model GetHistogramBody */ type GetHistogramBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -227,9 +226,7 @@ func (o *GetHistogramBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *GetHistogramBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Labels); i++ { - if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +237,6 @@ func (o *GetHistogramBody) contextValidateLabels(ctx context.Context, formats st return err } } - } return nil @@ -269,7 +265,6 @@ GetHistogramDefaultBody get histogram default body swagger:model GetHistogramDefaultBody */ type GetHistogramDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -335,9 +330,7 @@ func (o *GetHistogramDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetHistogramDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -348,7 +341,6 @@ func (o *GetHistogramDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -377,7 +369,6 @@ GetHistogramDefaultBodyDetailsItems0 get histogram default body details items0 swagger:model GetHistogramDefaultBodyDetailsItems0 */ type GetHistogramDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -415,7 +406,6 @@ GetHistogramOKBody HistogramReply is histogram items as a list. swagger:model GetHistogramOKBody */ type GetHistogramOKBody struct { - // histogram items HistogramItems []*GetHistogramOKBodyHistogramItemsItems0 `json:"histogram_items"` } @@ -475,9 +465,7 @@ func (o *GetHistogramOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetHistogramOKBody) contextValidateHistogramItems(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.HistogramItems); i++ { - if o.HistogramItems[i] != nil { if err := o.HistogramItems[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -488,7 +476,6 @@ func (o *GetHistogramOKBody) contextValidateHistogramItems(ctx context.Context, return err } } - } return nil @@ -517,7 +504,6 @@ GetHistogramOKBodyHistogramItemsItems0 HistogramItem represents one item in hist swagger:model GetHistogramOKBodyHistogramItemsItems0 */ type GetHistogramOKBodyHistogramItemsItems0 struct { - // range Range string `json:"range,omitempty"` @@ -558,7 +544,6 @@ GetHistogramParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimension swagger:model GetHistogramParamsBodyLabelsItems0 */ type GetHistogramParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/object_details/get_labels_parameters.go b/api/qanpb/json/client/object_details/get_labels_parameters.go index b706dec152..27cd5acdc7 100644 --- a/api/qanpb/json/client/object_details/get_labels_parameters.go +++ b/api/qanpb/json/client/object_details/get_labels_parameters.go @@ -60,7 +60,6 @@ GetLabelsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLabelsParams struct { - /* Body. ObjectDetailsLabelsRequest defines filtering of object detail's labels for specific value of @@ -134,7 +133,6 @@ func (o *GetLabelsParams) SetBody(body GetLabelsBody) { // WriteToRequest writes these params to a swagger request func (o *GetLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_labels_responses.go b/api/qanpb/json/client/object_details/get_labels_responses.go index 21194dcbc9..5022d06873 100644 --- a/api/qanpb/json/client/object_details/get_labels_responses.go +++ b/api/qanpb/json/client/object_details/get_labels_responses.go @@ -61,12 +61,12 @@ type GetLabelsOK struct { func (o *GetLabelsOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetLabels][%d] getLabelsOk %+v", 200, o.Payload) } + func (o *GetLabelsOK) GetPayload() *GetLabelsOKBody { return o.Payload } func (o *GetLabelsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLabelsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetLabelsDefault) Code() int { func (o *GetLabelsDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetLabels][%d] GetLabels default %+v", o._statusCode, o.Payload) } + func (o *GetLabelsDefault) GetPayload() *GetLabelsDefaultBody { return o.Payload } func (o *GetLabelsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLabelsDefaultBody) // response payload @@ -125,7 +125,6 @@ GetLabelsBody ObjectDetailsLabelsRequest defines filtering of object detail's la swagger:model GetLabelsBody */ type GetLabelsBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -211,7 +210,6 @@ GetLabelsDefaultBody get labels default body swagger:model GetLabelsDefaultBody */ type GetLabelsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -277,9 +275,7 @@ func (o *GetLabelsDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *GetLabelsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -290,7 +286,6 @@ func (o *GetLabelsDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -319,7 +314,6 @@ GetLabelsDefaultBodyDetailsItems0 get labels default body details items0 swagger:model GetLabelsDefaultBodyDetailsItems0 */ type GetLabelsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -357,7 +351,6 @@ GetLabelsOKBody ObjectDetailsLabelsReply is a map of labels names as keys and la swagger:model GetLabelsOKBody */ type GetLabelsOKBody struct { - // labels Labels map[string]GetLabelsOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -417,15 +410,12 @@ func (o *GetLabelsOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *GetLabelsOKBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Labels { - if val, ok := o.Labels[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -454,7 +444,6 @@ GetLabelsOKBodyLabelsAnon ListLabelValues is list of label's values. swagger:model GetLabelsOKBodyLabelsAnon */ type GetLabelsOKBodyLabelsAnon struct { - // values Values []string `json:"values"` } diff --git a/api/qanpb/json/client/object_details/get_metrics_parameters.go b/api/qanpb/json/client/object_details/get_metrics_parameters.go index ff8ab9f35f..f5d2589a16 100644 --- a/api/qanpb/json/client/object_details/get_metrics_parameters.go +++ b/api/qanpb/json/client/object_details/get_metrics_parameters.go @@ -60,7 +60,6 @@ GetMetricsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetMetricsParams struct { - /* Body. MetricsRequest defines filtering of metrics for specific value of dimension (ex.: host=hostname1 or queryid=1D410B4BE5060972. @@ -133,7 +132,6 @@ func (o *GetMetricsParams) SetBody(body GetMetricsBody) { // WriteToRequest writes these params to a swagger request func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_metrics_responses.go b/api/qanpb/json/client/object_details/get_metrics_responses.go index 8ee4ce066a..5416259ce0 100644 --- a/api/qanpb/json/client/object_details/get_metrics_responses.go +++ b/api/qanpb/json/client/object_details/get_metrics_responses.go @@ -61,12 +61,12 @@ type GetMetricsOK struct { func (o *GetMetricsOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetMetrics][%d] getMetricsOk %+v", 200, o.Payload) } + func (o *GetMetricsOK) GetPayload() *GetMetricsOKBody { return o.Payload } func (o *GetMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetMetricsDefault) Code() int { func (o *GetMetricsDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetMetrics][%d] GetMetrics default %+v", o._statusCode, o.Payload) } + func (o *GetMetricsDefault) GetPayload() *GetMetricsDefaultBody { return o.Payload } func (o *GetMetricsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsDefaultBody) // response payload @@ -124,7 +124,6 @@ GetMetricsBody MetricsRequest defines filtering of metrics for specific value of swagger:model GetMetricsBody */ type GetMetricsBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -236,9 +235,7 @@ func (o *GetMetricsBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *GetMetricsBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Labels); i++ { - if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -249,7 +246,6 @@ func (o *GetMetricsBody) contextValidateLabels(ctx context.Context, formats strf return err } } - } return nil @@ -278,7 +274,6 @@ GetMetricsDefaultBody get metrics default body swagger:model GetMetricsDefaultBody */ type GetMetricsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -344,9 +339,7 @@ func (o *GetMetricsDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *GetMetricsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -357,7 +350,6 @@ func (o *GetMetricsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -386,7 +378,6 @@ GetMetricsDefaultBodyDetailsItems0 get metrics default body details items0 swagger:model GetMetricsDefaultBodyDetailsItems0 */ type GetMetricsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -424,7 +415,6 @@ GetMetricsOKBody MetricsReply defines metrics for specific value of dimension (e swagger:model GetMetricsOKBody */ type GetMetricsOKBody struct { - // metrics Metrics map[string]GetMetricsOKBodyMetricsAnon `json:"metrics,omitempty"` @@ -564,24 +554,19 @@ func (o *GetMetricsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *GetMetricsOKBody) contextValidateMetrics(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Metrics { - if val, ok := o.Metrics[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetMetricsOKBody) contextValidateSparkline(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Sparkline); i++ { - if o.Sparkline[i] != nil { if err := o.Sparkline[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -592,22 +577,18 @@ func (o *GetMetricsOKBody) contextValidateSparkline(ctx context.Context, formats return err } } - } return nil } func (o *GetMetricsOKBody) contextValidateTotals(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Totals { - if val, ok := o.Totals[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil @@ -636,7 +617,6 @@ GetMetricsOKBodyMetricsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyMetricsAnon */ type GetMetricsOKBodyMetricsAnon struct { - // rate Rate float32 `json:"rate,omitempty"` @@ -696,7 +676,6 @@ GetMetricsOKBodySparklineItems0 Point contains values that represents abscissa ( swagger:model GetMetricsOKBodySparklineItems0 */ type GetMetricsOKBodySparklineItems0 struct { - // The serial number of the chart point from the largest time in the time interval to the lowest time in the time range. Point int64 `json:"point,omitempty"` @@ -926,7 +905,6 @@ GetMetricsOKBodyTotalsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyTotalsAnon */ type GetMetricsOKBodyTotalsAnon struct { - // rate Rate float32 `json:"rate,omitempty"` @@ -985,7 +963,6 @@ GetMetricsParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions swagger:model GetMetricsParamsBodyLabelsItems0 */ type GetMetricsParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/object_details/get_query_example_parameters.go b/api/qanpb/json/client/object_details/get_query_example_parameters.go index a697cb319b..bccae86cac 100644 --- a/api/qanpb/json/client/object_details/get_query_example_parameters.go +++ b/api/qanpb/json/client/object_details/get_query_example_parameters.go @@ -60,7 +60,6 @@ GetQueryExampleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetQueryExampleParams struct { - /* Body. QueryExampleRequest defines filtering of query examples for specific value of @@ -134,7 +133,6 @@ func (o *GetQueryExampleParams) SetBody(body GetQueryExampleBody) { // WriteToRequest writes these params to a swagger request func (o *GetQueryExampleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_query_example_responses.go b/api/qanpb/json/client/object_details/get_query_example_responses.go index 31e00a40ee..ee7709800c 100644 --- a/api/qanpb/json/client/object_details/get_query_example_responses.go +++ b/api/qanpb/json/client/object_details/get_query_example_responses.go @@ -62,12 +62,12 @@ type GetQueryExampleOK struct { func (o *GetQueryExampleOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryExample][%d] getQueryExampleOk %+v", 200, o.Payload) } + func (o *GetQueryExampleOK) GetPayload() *GetQueryExampleOKBody { return o.Payload } func (o *GetQueryExampleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryExampleOKBody) // response payload @@ -104,12 +104,12 @@ func (o *GetQueryExampleDefault) Code() int { func (o *GetQueryExampleDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryExample][%d] GetQueryExample default %+v", o._statusCode, o.Payload) } + func (o *GetQueryExampleDefault) GetPayload() *GetQueryExampleDefaultBody { return o.Payload } func (o *GetQueryExampleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryExampleDefaultBody) // response payload @@ -126,7 +126,6 @@ GetQueryExampleBody QueryExampleRequest defines filtering of query examples for swagger:model GetQueryExampleBody */ type GetQueryExampleBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -235,9 +234,7 @@ func (o *GetQueryExampleBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetQueryExampleBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Labels); i++ { - if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -248,7 +245,6 @@ func (o *GetQueryExampleBody) contextValidateLabels(ctx context.Context, formats return err } } - } return nil @@ -277,7 +273,6 @@ GetQueryExampleDefaultBody get query example default body swagger:model GetQueryExampleDefaultBody */ type GetQueryExampleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -343,9 +338,7 @@ func (o *GetQueryExampleDefaultBody) ContextValidate(ctx context.Context, format } func (o *GetQueryExampleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -356,7 +349,6 @@ func (o *GetQueryExampleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -385,7 +377,6 @@ GetQueryExampleDefaultBodyDetailsItems0 get query example default body details i swagger:model GetQueryExampleDefaultBodyDetailsItems0 */ type GetQueryExampleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -423,7 +414,6 @@ GetQueryExampleOKBody QueryExampleReply list of query examples. swagger:model GetQueryExampleOKBody */ type GetQueryExampleOKBody struct { - // query examples QueryExamples []*GetQueryExampleOKBodyQueryExamplesItems0 `json:"query_examples"` } @@ -483,9 +473,7 @@ func (o *GetQueryExampleOKBody) ContextValidate(ctx context.Context, formats str } func (o *GetQueryExampleOKBody) contextValidateQueryExamples(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QueryExamples); i++ { - if o.QueryExamples[i] != nil { if err := o.QueryExamples[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -496,7 +484,6 @@ func (o *GetQueryExampleOKBody) contextValidateQueryExamples(ctx context.Context return err } } - } return nil @@ -525,7 +512,6 @@ GetQueryExampleOKBodyQueryExamplesItems0 QueryExample shows query examples and t swagger:model GetQueryExampleOKBodyQueryExamplesItems0 */ type GetQueryExampleOKBodyQueryExamplesItems0 struct { - // example Example string `json:"example,omitempty"` @@ -700,7 +686,6 @@ GetQueryExampleParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimens swagger:model GetQueryExampleParamsBodyLabelsItems0 */ type GetQueryExampleParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/json/client/object_details/get_query_plan_parameters.go b/api/qanpb/json/client/object_details/get_query_plan_parameters.go index ec863f68f8..951332f0db 100644 --- a/api/qanpb/json/client/object_details/get_query_plan_parameters.go +++ b/api/qanpb/json/client/object_details/get_query_plan_parameters.go @@ -60,7 +60,6 @@ GetQueryPlanParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetQueryPlanParams struct { - /* Body. QueryPlanRequest defines filtering by queryid. @@ -133,7 +132,6 @@ func (o *GetQueryPlanParams) SetBody(body GetQueryPlanBody) { // WriteToRequest writes these params to a swagger request func (o *GetQueryPlanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/get_query_plan_responses.go b/api/qanpb/json/client/object_details/get_query_plan_responses.go index 4d562c717c..c0e5daf471 100644 --- a/api/qanpb/json/client/object_details/get_query_plan_responses.go +++ b/api/qanpb/json/client/object_details/get_query_plan_responses.go @@ -60,12 +60,12 @@ type GetQueryPlanOK struct { func (o *GetQueryPlanOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryPlan][%d] getQueryPlanOk %+v", 200, o.Payload) } + func (o *GetQueryPlanOK) GetPayload() *GetQueryPlanOKBody { return o.Payload } func (o *GetQueryPlanOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryPlanOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetQueryPlanDefault) Code() int { func (o *GetQueryPlanDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/GetQueryPlan][%d] GetQueryPlan default %+v", o._statusCode, o.Payload) } + func (o *GetQueryPlanDefault) GetPayload() *GetQueryPlanDefaultBody { return o.Payload } func (o *GetQueryPlanDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryPlanDefaultBody) // response payload @@ -123,7 +123,6 @@ GetQueryPlanBody QueryPlanRequest defines filtering by queryid. swagger:model GetQueryPlanBody */ type GetQueryPlanBody struct { - // queryid Queryid string `json:"queryid,omitempty"` } @@ -161,7 +160,6 @@ GetQueryPlanDefaultBody get query plan default body swagger:model GetQueryPlanDefaultBody */ type GetQueryPlanDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *GetQueryPlanDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *GetQueryPlanDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *GetQueryPlanDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -269,7 +264,6 @@ GetQueryPlanDefaultBodyDetailsItems0 get query plan default body details items0 swagger:model GetQueryPlanDefaultBodyDetailsItems0 */ type GetQueryPlanDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ GetQueryPlanOKBody QueryPlanReply contains planid and query_plan. swagger:model GetQueryPlanOKBody */ type GetQueryPlanOKBody struct { - // planid Planid string `json:"planid,omitempty"` diff --git a/api/qanpb/json/client/object_details/query_exists_parameters.go b/api/qanpb/json/client/object_details/query_exists_parameters.go index ec330d052a..3147a7c93c 100644 --- a/api/qanpb/json/client/object_details/query_exists_parameters.go +++ b/api/qanpb/json/client/object_details/query_exists_parameters.go @@ -60,7 +60,6 @@ QueryExistsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type QueryExistsParams struct { - /* Body. QueryExistsRequest check if provided query exists or not. @@ -133,7 +132,6 @@ func (o *QueryExistsParams) SetBody(body QueryExistsBody) { // WriteToRequest writes these params to a swagger request func (o *QueryExistsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/object_details/query_exists_responses.go b/api/qanpb/json/client/object_details/query_exists_responses.go index ac5541a701..4e05278cb4 100644 --- a/api/qanpb/json/client/object_details/query_exists_responses.go +++ b/api/qanpb/json/client/object_details/query_exists_responses.go @@ -60,12 +60,12 @@ type QueryExistsOK struct { func (o *QueryExistsOK) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/QueryExists][%d] queryExistsOk %+v", 200, o.Payload) } + func (o *QueryExistsOK) GetPayload() bool { return o.Payload } func (o *QueryExistsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *QueryExistsDefault) Code() int { func (o *QueryExistsDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/ObjectDetails/QueryExists][%d] QueryExists default %+v", o._statusCode, o.Payload) } + func (o *QueryExistsDefault) GetPayload() *QueryExistsDefaultBody { return o.Payload } func (o *QueryExistsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(QueryExistsDefaultBody) // response payload @@ -121,7 +121,6 @@ QueryExistsBody QueryExistsRequest check if provided query exists or not. swagger:model QueryExistsBody */ type QueryExistsBody struct { - // serviceid Serviceid string `json:"serviceid,omitempty"` @@ -162,7 +161,6 @@ QueryExistsDefaultBody query exists default body swagger:model QueryExistsDefaultBody */ type QueryExistsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -228,9 +226,7 @@ func (o *QueryExistsDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *QueryExistsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -241,7 +237,6 @@ func (o *QueryExistsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -270,7 +265,6 @@ QueryExistsDefaultBodyDetailsItems0 query exists default body details items0 swagger:model QueryExistsDefaultBodyDetailsItems0 */ type QueryExistsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/qanpb/json/client/profile/get_report_parameters.go b/api/qanpb/json/client/profile/get_report_parameters.go index adea6a5299..154ce458c2 100644 --- a/api/qanpb/json/client/profile/get_report_parameters.go +++ b/api/qanpb/json/client/profile/get_report_parameters.go @@ -60,7 +60,6 @@ GetReportParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetReportParams struct { - /* Body. ReportRequest defines filtering of metrics report for db server or other dimentions. @@ -133,7 +132,6 @@ func (o *GetReportParams) SetBody(body GetReportBody) { // WriteToRequest writes these params to a swagger request func (o *GetReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qanpb/json/client/profile/get_report_responses.go b/api/qanpb/json/client/profile/get_report_responses.go index 0835051be4..d72cc8a69f 100644 --- a/api/qanpb/json/client/profile/get_report_responses.go +++ b/api/qanpb/json/client/profile/get_report_responses.go @@ -61,12 +61,12 @@ type GetReportOK struct { func (o *GetReportOK) Error() string { return fmt.Sprintf("[POST /v0/qan/GetReport][%d] getReportOk %+v", 200, o.Payload) } + func (o *GetReportOK) GetPayload() *GetReportOKBody { return o.Payload } func (o *GetReportOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetReportOKBody) // response payload @@ -103,12 +103,12 @@ func (o *GetReportDefault) Code() int { func (o *GetReportDefault) Error() string { return fmt.Sprintf("[POST /v0/qan/GetReport][%d] GetReport default %+v", o._statusCode, o.Payload) } + func (o *GetReportDefault) GetPayload() *GetReportDefaultBody { return o.Payload } func (o *GetReportDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetReportDefaultBody) // response payload @@ -124,7 +124,6 @@ GetReportBody ReportRequest defines filtering of metrics report for db server or swagger:model GetReportBody */ type GetReportBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -245,9 +244,7 @@ func (o *GetReportBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetReportBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Labels); i++ { - if o.Labels[i] != nil { if err := o.Labels[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -258,7 +255,6 @@ func (o *GetReportBody) contextValidateLabels(ctx context.Context, formats strfm return err } } - } return nil @@ -287,7 +283,6 @@ GetReportDefaultBody get report default body swagger:model GetReportDefaultBody */ type GetReportDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -353,9 +348,7 @@ func (o *GetReportDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *GetReportDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -366,7 +359,6 @@ func (o *GetReportDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -395,7 +387,6 @@ GetReportDefaultBodyDetailsItems0 get report default body details items0 swagger:model GetReportDefaultBodyDetailsItems0 */ type GetReportDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -433,7 +424,6 @@ GetReportOKBody ReportReply is list of reports per quieryids, hosts etc. swagger:model GetReportOKBody */ type GetReportOKBody struct { - // total rows TotalRows int64 `json:"total_rows,omitempty"` @@ -502,9 +492,7 @@ func (o *GetReportOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *GetReportOKBody) contextValidateRows(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Rows); i++ { - if o.Rows[i] != nil { if err := o.Rows[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -515,7 +503,6 @@ func (o *GetReportOKBody) contextValidateRows(ctx context.Context, formats strfm return err } } - } return nil @@ -544,7 +531,6 @@ GetReportOKBodyRowsItems0 Row define metrics for selected dimention. swagger:model GetReportOKBodyRowsItems0 */ type GetReportOKBodyRowsItems0 struct { - // rank Rank int64 `json:"rank,omitempty"` @@ -662,24 +648,19 @@ func (o *GetReportOKBodyRowsItems0) ContextValidate(ctx context.Context, formats } func (o *GetReportOKBodyRowsItems0) contextValidateMetrics(ctx context.Context, formats strfmt.Registry) error { - for k := range o.Metrics { - if val, ok := o.Metrics[k]; ok { if err := val.ContextValidate(ctx, formats); err != nil { return err } } - } return nil } func (o *GetReportOKBodyRowsItems0) contextValidateSparkline(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Sparkline); i++ { - if o.Sparkline[i] != nil { if err := o.Sparkline[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -690,7 +671,6 @@ func (o *GetReportOKBodyRowsItems0) contextValidateSparkline(ctx context.Context return err } } - } return nil @@ -719,7 +699,6 @@ GetReportOKBodyRowsItems0MetricsAnon Metric cell. swagger:model GetReportOKBodyRowsItems0MetricsAnon */ type GetReportOKBodyRowsItems0MetricsAnon struct { - // stats Stats *GetReportOKBodyRowsItems0MetricsAnonStats `json:"stats,omitempty"` } @@ -772,7 +751,6 @@ func (o *GetReportOKBodyRowsItems0MetricsAnon) ContextValidate(ctx context.Conte } func (o *GetReportOKBodyRowsItems0MetricsAnon) contextValidateStats(ctx context.Context, formats strfmt.Registry) error { - if o.Stats != nil { if err := o.Stats.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -810,7 +788,6 @@ GetReportOKBodyRowsItems0MetricsAnonStats Stat is statistics of specific metric. swagger:model GetReportOKBodyRowsItems0MetricsAnonStats */ type GetReportOKBodyRowsItems0MetricsAnonStats struct { - // rate Rate float32 `json:"rate,omitempty"` @@ -870,7 +847,6 @@ GetReportOKBodyRowsItems0SparklineItems0 Point contains values that represents a swagger:model GetReportOKBodyRowsItems0SparklineItems0 */ type GetReportOKBodyRowsItems0SparklineItems0 struct { - // The serial number of the chart point from the largest time in the time interval to the lowest time in the time range. Point int64 `json:"point,omitempty"` @@ -1100,7 +1076,6 @@ GetReportParamsBodyLabelsItems0 ReportMapFieldEntry allows to pass labels/diment swagger:model GetReportParamsBodyLabelsItems0 */ type GetReportParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qanpb/metrics_names.pb.go b/api/qanpb/metrics_names.pb.go index 35cf701fb0..bb3187d399 100644 --- a/api/qanpb/metrics_names.pb.go +++ b/api/qanpb/metrics_names.pb.go @@ -7,11 +7,12 @@ package qanv1beta1 import ( + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" ) const ( @@ -161,12 +162,15 @@ func file_qanpb_metrics_names_proto_rawDescGZIP() []byte { return file_qanpb_metrics_names_proto_rawDescData } -var file_qanpb_metrics_names_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_qanpb_metrics_names_proto_goTypes = []interface{}{ - (*MetricsNamesRequest)(nil), // 0: qan.v1beta1.MetricsNamesRequest - (*MetricsNamesReply)(nil), // 1: qan.v1beta1.MetricsNamesReply - nil, // 2: qan.v1beta1.MetricsNamesReply.DataEntry -} +var ( + file_qanpb_metrics_names_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_qanpb_metrics_names_proto_goTypes = []interface{}{ + (*MetricsNamesRequest)(nil), // 0: qan.v1beta1.MetricsNamesRequest + (*MetricsNamesReply)(nil), // 1: qan.v1beta1.MetricsNamesReply + nil, // 2: qan.v1beta1.MetricsNamesReply.DataEntry + } +) + var file_qanpb_metrics_names_proto_depIdxs = []int32{ 2, // 0: qan.v1beta1.MetricsNamesReply.data:type_name -> qan.v1beta1.MetricsNamesReply.DataEntry 0, // 1: qan.v1beta1.MetricsNames.GetMetricsNames:input_type -> qan.v1beta1.MetricsNamesRequest diff --git a/api/qanpb/metrics_names.pb.gw.go b/api/qanpb/metrics_names.pb.gw.go index f2f32563f5..de0d7a111f 100644 --- a/api/qanpb/metrics_names.pb.gw.go +++ b/api/qanpb/metrics_names.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler runtime.Marshaler, client MetricsNamesClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MetricsNamesRequest @@ -45,7 +47,6 @@ func request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler runti msg, err := client.GetMetricsNames(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler runtime.Marshaler, server MetricsNamesServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler msg, err := server.GetMetricsNames(ctx, &protoReq) return msg, metadata, err - } // RegisterMetricsNamesHandlerServer registers the http handlers for service MetricsNames to "mux". @@ -70,7 +70,6 @@ func local_request_MetricsNames_GetMetricsNames_0(ctx context.Context, marshaler // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMetricsNamesHandlerFromEndpoint instead. func RegisterMetricsNamesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetricsNamesServer) error { - mux.Handle("POST", pattern_MetricsNames_GetMetricsNames_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterMetricsNamesHandlerServer(ctx context.Context, mux *runtime.ServeMu } forward_MetricsNames_GetMetricsNames_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterMetricsNamesHandler(ctx context.Context, mux *runtime.ServeMux, con // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "MetricsNamesClient" to call the correct interceptors. func RegisterMetricsNamesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetricsNamesClient) error { - mux.Handle("POST", pattern_MetricsNames_GetMetricsNames_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterMetricsNamesHandlerClient(ctx context.Context, mux *runtime.ServeMu } forward_MetricsNames_GetMetricsNames_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_MetricsNames_GetMetricsNames_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetMetricsNames"}, "")) -) +var pattern_MetricsNames_GetMetricsNames_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetMetricsNames"}, "")) -var ( - forward_MetricsNames_GetMetricsNames_0 = runtime.ForwardResponseMessage -) +var forward_MetricsNames_GetMetricsNames_0 = runtime.ForwardResponseMessage diff --git a/api/qanpb/metrics_names.validator.pb.go b/api/qanpb/metrics_names.validator.pb.go index 47201baacd..72c3e5ca01 100644 --- a/api/qanpb/metrics_names.validator.pb.go +++ b/api/qanpb/metrics_names.validator.pb.go @@ -6,18 +6,22 @@ package qanv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *MetricsNamesRequest) Validate() error { return nil } + func (this *MetricsNamesReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil diff --git a/api/qanpb/metrics_names_grpc.pb.go b/api/qanpb/metrics_names_grpc.pb.go index adf9360b45..0be465eaf9 100644 --- a/api/qanpb/metrics_names_grpc.pb.go +++ b/api/qanpb/metrics_names_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type MetricsNamesServer interface { } // UnimplementedMetricsNamesServer must be embedded to have forward compatible implementations. -type UnimplementedMetricsNamesServer struct { -} +type UnimplementedMetricsNamesServer struct{} func (UnimplementedMetricsNamesServer) GetMetricsNames(context.Context, *MetricsNamesRequest) (*MetricsNamesReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetricsNames not implemented") diff --git a/api/qanpb/object_details.pb.go b/api/qanpb/object_details.pb.go index 9357287d3f..80a142bcac 100644 --- a/api/qanpb/object_details.pb.go +++ b/api/qanpb/object_details.pb.go @@ -7,13 +7,14 @@ package qanv1beta1 import ( + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" ) const ( @@ -1383,35 +1384,38 @@ func file_qanpb_object_details_proto_rawDescGZIP() []byte { return file_qanpb_object_details_proto_rawDescData } -var file_qanpb_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 20) -var file_qanpb_object_details_proto_goTypes = []interface{}{ - (*MetricsRequest)(nil), // 0: qan.v1beta1.MetricsRequest - (*MetricsReply)(nil), // 1: qan.v1beta1.MetricsReply - (*MetricValues)(nil), // 2: qan.v1beta1.MetricValues - (*Labels)(nil), // 3: qan.v1beta1.Labels - (*QueryExampleRequest)(nil), // 4: qan.v1beta1.QueryExampleRequest - (*QueryExampleReply)(nil), // 5: qan.v1beta1.QueryExampleReply - (*QueryExample)(nil), // 6: qan.v1beta1.QueryExample - (*ObjectDetailsLabelsRequest)(nil), // 7: qan.v1beta1.ObjectDetailsLabelsRequest - (*ObjectDetailsLabelsReply)(nil), // 8: qan.v1beta1.ObjectDetailsLabelsReply - (*ListLabelValues)(nil), // 9: qan.v1beta1.ListLabelValues - (*QueryPlanRequest)(nil), // 10: qan.v1beta1.QueryPlanRequest - (*QueryPlanReply)(nil), // 11: qan.v1beta1.QueryPlanReply - (*HistogramRequest)(nil), // 12: qan.v1beta1.HistogramRequest - (*HistogramReply)(nil), // 13: qan.v1beta1.HistogramReply - (*HistogramItem)(nil), // 14: qan.v1beta1.HistogramItem - (*QueryExistsRequest)(nil), // 15: qan.v1beta1.QueryExistsRequest - nil, // 16: qan.v1beta1.MetricsReply.MetricsEntry - nil, // 17: qan.v1beta1.MetricsReply.TextMetricsEntry - nil, // 18: qan.v1beta1.MetricsReply.TotalsEntry - nil, // 19: qan.v1beta1.ObjectDetailsLabelsReply.LabelsEntry - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 21: qan.v1beta1.MapFieldEntry - (*Point)(nil), // 22: qan.v1beta1.Point - (ExampleFormat)(0), // 23: qan.v1beta1.ExampleFormat - (ExampleType)(0), // 24: qan.v1beta1.ExampleType - (*wrapperspb.BoolValue)(nil), // 25: google.protobuf.BoolValue -} +var ( + file_qanpb_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 20) + file_qanpb_object_details_proto_goTypes = []interface{}{ + (*MetricsRequest)(nil), // 0: qan.v1beta1.MetricsRequest + (*MetricsReply)(nil), // 1: qan.v1beta1.MetricsReply + (*MetricValues)(nil), // 2: qan.v1beta1.MetricValues + (*Labels)(nil), // 3: qan.v1beta1.Labels + (*QueryExampleRequest)(nil), // 4: qan.v1beta1.QueryExampleRequest + (*QueryExampleReply)(nil), // 5: qan.v1beta1.QueryExampleReply + (*QueryExample)(nil), // 6: qan.v1beta1.QueryExample + (*ObjectDetailsLabelsRequest)(nil), // 7: qan.v1beta1.ObjectDetailsLabelsRequest + (*ObjectDetailsLabelsReply)(nil), // 8: qan.v1beta1.ObjectDetailsLabelsReply + (*ListLabelValues)(nil), // 9: qan.v1beta1.ListLabelValues + (*QueryPlanRequest)(nil), // 10: qan.v1beta1.QueryPlanRequest + (*QueryPlanReply)(nil), // 11: qan.v1beta1.QueryPlanReply + (*HistogramRequest)(nil), // 12: qan.v1beta1.HistogramRequest + (*HistogramReply)(nil), // 13: qan.v1beta1.HistogramReply + (*HistogramItem)(nil), // 14: qan.v1beta1.HistogramItem + (*QueryExistsRequest)(nil), // 15: qan.v1beta1.QueryExistsRequest + nil, // 16: qan.v1beta1.MetricsReply.MetricsEntry + nil, // 17: qan.v1beta1.MetricsReply.TextMetricsEntry + nil, // 18: qan.v1beta1.MetricsReply.TotalsEntry + nil, // 19: qan.v1beta1.ObjectDetailsLabelsReply.LabelsEntry + (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 21: qan.v1beta1.MapFieldEntry + (*Point)(nil), // 22: qan.v1beta1.Point + (ExampleFormat)(0), // 23: qan.v1beta1.ExampleFormat + (ExampleType)(0), // 24: qan.v1beta1.ExampleType + (*wrapperspb.BoolValue)(nil), // 25: google.protobuf.BoolValue + } +) + var file_qanpb_object_details_proto_depIdxs = []int32{ 20, // 0: qan.v1beta1.MetricsRequest.period_start_from:type_name -> google.protobuf.Timestamp 20, // 1: qan.v1beta1.MetricsRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qanpb/object_details.pb.gw.go b/api/qanpb/object_details.pb.gw.go index 7614c378d3..36f4a871da 100644 --- a/api/qanpb/object_details.pb.gw.go +++ b/api/qanpb/object_details.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq MetricsRequest @@ -45,7 +47,6 @@ func request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler runtime.M msg, err := client.GetMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_ObjectDetails_GetMetrics_0(ctx context.Context, marshaler run msg, err := server.GetMetrics(ctx, &protoReq) return msg, metadata, err - } func request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -79,7 +79,6 @@ func request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshaler runt msg, err := client.GetQueryExample(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -96,7 +95,6 @@ func local_request_ObjectDetails_GetQueryExample_0(ctx context.Context, marshale msg, err := server.GetQueryExample(ctx, &protoReq) return msg, metadata, err - } func request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -113,7 +111,6 @@ func request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runtime.Ma msg, err := client.GetLabels(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -130,7 +127,6 @@ func local_request_ObjectDetails_GetLabels_0(ctx context.Context, marshaler runt msg, err := server.GetLabels(ctx, &protoReq) return msg, metadata, err - } func request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -147,7 +143,6 @@ func request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler runtime msg, err := client.GetQueryPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -164,7 +159,6 @@ func local_request_ObjectDetails_GetQueryPlan_0(ctx context.Context, marshaler r msg, err := server.GetQueryPlan(ctx, &protoReq) return msg, metadata, err - } func request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -181,7 +175,6 @@ func request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler runtime msg, err := client.GetHistogram(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -198,7 +191,6 @@ func local_request_ObjectDetails_GetHistogram_0(ctx context.Context, marshaler r msg, err := server.GetHistogram(ctx, &protoReq) return msg, metadata, err - } func request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler runtime.Marshaler, client ObjectDetailsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -215,7 +207,6 @@ func request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler runtime. msg, err := client.QueryExists(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler runtime.Marshaler, server ObjectDetailsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -232,7 +223,6 @@ func local_request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler ru msg, err := server.QueryExists(ctx, &protoReq) return msg, metadata, err - } // RegisterObjectDetailsHandlerServer registers the http handlers for service ObjectDetails to "mux". @@ -240,7 +230,6 @@ func local_request_ObjectDetails_QueryExists_0(ctx context.Context, marshaler ru // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterObjectDetailsHandlerFromEndpoint instead. func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ObjectDetailsServer) error { - mux.Handle("POST", pattern_ObjectDetails_GetMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -263,7 +252,6 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetQueryExample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -288,7 +276,6 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryExample_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetLabels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -313,7 +300,6 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetLabels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetQueryPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -338,7 +324,6 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetHistogram_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -363,7 +348,6 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetHistogram_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_QueryExists_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -388,7 +372,6 @@ func RegisterObjectDetailsHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_QueryExists_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -431,7 +414,6 @@ func RegisterObjectDetailsHandler(ctx context.Context, mux *runtime.ServeMux, co // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ObjectDetailsClient" to call the correct interceptors. func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ObjectDetailsClient) error { - mux.Handle("POST", pattern_ObjectDetails_GetMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -451,7 +433,6 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetQueryExample_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -473,7 +454,6 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryExample_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetLabels_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -495,7 +475,6 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetLabels_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetQueryPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -517,7 +496,6 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetQueryPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_GetHistogram_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -539,7 +517,6 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_GetHistogram_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_ObjectDetails_QueryExists_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -561,7 +538,6 @@ func RegisterObjectDetailsHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_ObjectDetails_QueryExists_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/qanpb/object_details.validator.pb.go b/api/qanpb/object_details.validator.pb.go index 0a0d1e68af..146a5749d2 100644 --- a/api/qanpb/object_details.validator.pb.go +++ b/api/qanpb/object_details.validator.pb.go @@ -6,17 +6,20 @@ package qanv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" _ "google.golang.org/protobuf/types/known/wrapperspb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *MetricsRequest) Validate() error { if this.PeriodStartFrom != nil { @@ -38,6 +41,7 @@ func (this *MetricsRequest) Validate() error { } return nil } + func (this *MetricsReply) Validate() error { // Validation of proto3 map<> fields is unsupported. // Validation of proto3 map<> fields is unsupported. @@ -51,12 +55,15 @@ func (this *MetricsReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *MetricValues) Validate() error { return nil } + func (this *Labels) Validate() error { return nil } + func (this *QueryExampleRequest) Validate() error { if this.PeriodStartFrom != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PeriodStartFrom); err != nil { @@ -77,6 +84,7 @@ func (this *QueryExampleRequest) Validate() error { } return nil } + func (this *QueryExampleReply) Validate() error { for _, item := range this.QueryExamples { if item != nil { @@ -87,9 +95,11 @@ func (this *QueryExampleReply) Validate() error { } return nil } + func (this *QueryExample) Validate() error { return nil } + func (this *ObjectDetailsLabelsRequest) Validate() error { if this.PeriodStartFrom != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PeriodStartFrom); err != nil { @@ -103,19 +113,24 @@ func (this *ObjectDetailsLabelsRequest) Validate() error { } return nil } + func (this *ObjectDetailsLabelsReply) Validate() error { // Validation of proto3 map<> fields is unsupported. return nil } + func (this *ListLabelValues) Validate() error { return nil } + func (this *QueryPlanRequest) Validate() error { return nil } + func (this *QueryPlanReply) Validate() error { return nil } + func (this *HistogramRequest) Validate() error { if this.PeriodStartFrom != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.PeriodStartFrom); err != nil { @@ -136,6 +151,7 @@ func (this *HistogramRequest) Validate() error { } return nil } + func (this *HistogramReply) Validate() error { for _, item := range this.HistogramItems { if item != nil { @@ -146,9 +162,11 @@ func (this *HistogramReply) Validate() error { } return nil } + func (this *HistogramItem) Validate() error { return nil } + func (this *QueryExistsRequest) Validate() error { return nil } diff --git a/api/qanpb/object_details_grpc.pb.go b/api/qanpb/object_details_grpc.pb.go index 11e0acff51..3c595daec4 100644 --- a/api/qanpb/object_details_grpc.pb.go +++ b/api/qanpb/object_details_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -119,24 +120,28 @@ type ObjectDetailsServer interface { } // UnimplementedObjectDetailsServer must be embedded to have forward compatible implementations. -type UnimplementedObjectDetailsServer struct { -} +type UnimplementedObjectDetailsServer struct{} func (UnimplementedObjectDetailsServer) GetMetrics(context.Context, *MetricsRequest) (*MetricsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented") } + func (UnimplementedObjectDetailsServer) GetQueryExample(context.Context, *QueryExampleRequest) (*QueryExampleReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQueryExample not implemented") } + func (UnimplementedObjectDetailsServer) GetLabels(context.Context, *ObjectDetailsLabelsRequest) (*ObjectDetailsLabelsReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLabels not implemented") } + func (UnimplementedObjectDetailsServer) GetQueryPlan(context.Context, *QueryPlanRequest) (*QueryPlanReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQueryPlan not implemented") } + func (UnimplementedObjectDetailsServer) GetHistogram(context.Context, *HistogramRequest) (*HistogramReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetHistogram not implemented") } + func (UnimplementedObjectDetailsServer) QueryExists(context.Context, *QueryExistsRequest) (*wrapperspb.BoolValue, error) { return nil, status.Errorf(codes.Unimplemented, "method QueryExists not implemented") } diff --git a/api/qanpb/profile.pb.go b/api/qanpb/profile.pb.go index ff8306fdb4..c6a4806abe 100644 --- a/api/qanpb/profile.pb.go +++ b/api/qanpb/profile.pb.go @@ -7,12 +7,13 @@ package qanv1beta1 import ( + reflect "reflect" + sync "sync" + _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" ) const ( @@ -650,18 +651,21 @@ func file_qanpb_profile_proto_rawDescGZIP() []byte { return file_qanpb_profile_proto_rawDescData } -var file_qanpb_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_qanpb_profile_proto_goTypes = []interface{}{ - (*ReportRequest)(nil), // 0: qan.v1beta1.ReportRequest - (*ReportMapFieldEntry)(nil), // 1: qan.v1beta1.ReportMapFieldEntry - (*ReportReply)(nil), // 2: qan.v1beta1.ReportReply - (*Row)(nil), // 3: qan.v1beta1.Row - (*Metric)(nil), // 4: qan.v1beta1.Metric - (*Stat)(nil), // 5: qan.v1beta1.Stat - nil, // 6: qan.v1beta1.Row.MetricsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*Point)(nil), // 8: qan.v1beta1.Point -} +var ( + file_qanpb_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) + file_qanpb_profile_proto_goTypes = []interface{}{ + (*ReportRequest)(nil), // 0: qan.v1beta1.ReportRequest + (*ReportMapFieldEntry)(nil), // 1: qan.v1beta1.ReportMapFieldEntry + (*ReportReply)(nil), // 2: qan.v1beta1.ReportReply + (*Row)(nil), // 3: qan.v1beta1.Row + (*Metric)(nil), // 4: qan.v1beta1.Metric + (*Stat)(nil), // 5: qan.v1beta1.Stat + nil, // 6: qan.v1beta1.Row.MetricsEntry + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*Point)(nil), // 8: qan.v1beta1.Point + } +) + var file_qanpb_profile_proto_depIdxs = []int32{ 7, // 0: qan.v1beta1.ReportRequest.period_start_from:type_name -> google.protobuf.Timestamp 7, // 1: qan.v1beta1.ReportRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qanpb/profile.pb.gw.go b/api/qanpb/profile.pb.gw.go index c9b637f5a7..c73b09e786 100644 --- a/api/qanpb/profile.pb.gw.go +++ b/api/qanpb/profile.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Marshaler, client ProfileClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq ReportRequest @@ -45,7 +47,6 @@ func request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Marshale msg, err := client.GetReport(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Marshaler, server ProfileServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -62,7 +63,6 @@ func local_request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Ma msg, err := server.GetReport(ctx, &protoReq) return msg, metadata, err - } // RegisterProfileHandlerServer registers the http handlers for service Profile to "mux". @@ -70,7 +70,6 @@ func local_request_Profile_GetReport_0(ctx context.Context, marshaler runtime.Ma // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProfileHandlerFromEndpoint instead. func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServer) error { - mux.Handle("POST", pattern_Profile_GetReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -93,7 +92,6 @@ func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Profile_GetReport_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -136,7 +134,6 @@ func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *gr // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ProfileClient" to call the correct interceptors. func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileClient) error { - mux.Handle("POST", pattern_Profile_GetReport_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -156,16 +153,11 @@ func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Profile_GetReport_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil } -var ( - pattern_Profile_GetReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetReport"}, "")) -) +var pattern_Profile_GetReport_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v0", "qan", "GetReport"}, "")) -var ( - forward_Profile_GetReport_0 = runtime.ForwardResponseMessage -) +var forward_Profile_GetReport_0 = runtime.ForwardResponseMessage diff --git a/api/qanpb/profile.validator.pb.go b/api/qanpb/profile.validator.pb.go index 77bc4a2363..bec3aaa958 100644 --- a/api/qanpb/profile.validator.pb.go +++ b/api/qanpb/profile.validator.pb.go @@ -6,16 +6,19 @@ package qanv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/timestamppb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *ReportRequest) Validate() error { if this.PeriodStartFrom != nil { @@ -37,9 +40,11 @@ func (this *ReportRequest) Validate() error { } return nil } + func (this *ReportMapFieldEntry) Validate() error { return nil } + func (this *ReportReply) Validate() error { for _, item := range this.Rows { if item != nil { @@ -50,6 +55,7 @@ func (this *ReportReply) Validate() error { } return nil } + func (this *Row) Validate() error { // Validation of proto3 map<> fields is unsupported. for _, item := range this.Sparkline { @@ -61,6 +67,7 @@ func (this *Row) Validate() error { } return nil } + func (this *Metric) Validate() error { if this.Stats != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Stats); err != nil { @@ -69,6 +76,7 @@ func (this *Metric) Validate() error { } return nil } + func (this *Stat) Validate() error { return nil } diff --git a/api/qanpb/profile_grpc.pb.go b/api/qanpb/profile_grpc.pb.go index ce2e1e4805..e409afa3b6 100644 --- a/api/qanpb/profile_grpc.pb.go +++ b/api/qanpb/profile_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -53,8 +54,7 @@ type ProfileServer interface { } // UnimplementedProfileServer must be embedded to have forward compatible implementations. -type UnimplementedProfileServer struct { -} +type UnimplementedProfileServer struct{} func (UnimplementedProfileServer) GetReport(context.Context, *ReportRequest) (*ReportReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReport not implemented") diff --git a/api/qanpb/qan.pb.go b/api/qanpb/qan.pb.go index fcf9d7a88f..4211c12127 100644 --- a/api/qanpb/qan.pb.go +++ b/api/qanpb/qan.pb.go @@ -7,10 +7,11 @@ package qanv1beta1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -1068,14 +1069,17 @@ func file_qanpb_qan_proto_rawDescGZIP() []byte { return file_qanpb_qan_proto_rawDescData } -var file_qanpb_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_qanpb_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_qanpb_qan_proto_goTypes = []interface{}{ - (ExampleFormat)(0), // 0: qan.v1beta1.ExampleFormat - (ExampleType)(0), // 1: qan.v1beta1.ExampleType - (*Point)(nil), // 2: qan.v1beta1.Point - (*MapFieldEntry)(nil), // 3: qan.v1beta1.MapFieldEntry -} +var ( + file_qanpb_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_qanpb_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_qanpb_qan_proto_goTypes = []interface{}{ + (ExampleFormat)(0), // 0: qan.v1beta1.ExampleFormat + (ExampleType)(0), // 1: qan.v1beta1.ExampleType + (*Point)(nil), // 2: qan.v1beta1.Point + (*MapFieldEntry)(nil), // 3: qan.v1beta1.MapFieldEntry + } +) + var file_qanpb_qan_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type diff --git a/api/qanpb/qan.validator.pb.go b/api/qanpb/qan.validator.pb.go index 448f309361..8154fb42d8 100644 --- a/api/qanpb/qan.validator.pb.go +++ b/api/qanpb/qan.validator.pb.go @@ -6,17 +6,21 @@ package qanv1beta1 import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *Point) Validate() error { return nil } + func (this *MapFieldEntry) Validate() error { return nil } diff --git a/api/serverpb/httperror.pb.go b/api/serverpb/httperror.pb.go index 43b9c10048..beaff90530 100644 --- a/api/serverpb/httperror.pb.go +++ b/api/serverpb/httperror.pb.go @@ -7,11 +7,12 @@ package serverpb import ( + reflect "reflect" + sync "sync" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" - reflect "reflect" - sync "sync" ) const ( @@ -134,11 +135,14 @@ func file_serverpb_httperror_proto_rawDescGZIP() []byte { return file_serverpb_httperror_proto_rawDescData } -var file_serverpb_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_serverpb_httperror_proto_goTypes = []interface{}{ - (*HttpError)(nil), // 0: server.HttpError - (*anypb.Any)(nil), // 1: google.protobuf.Any -} +var ( + file_serverpb_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) + file_serverpb_httperror_proto_goTypes = []interface{}{ + (*HttpError)(nil), // 0: server.HttpError + (*anypb.Any)(nil), // 1: google.protobuf.Any + } +) + var file_serverpb_httperror_proto_depIdxs = []int32{ 1, // 0: server.HttpError.details:type_name -> google.protobuf.Any 1, // [1:1] is the sub-list for method output_type diff --git a/api/serverpb/httperror.validator.pb.go b/api/serverpb/httperror.validator.pb.go index 3f35e339fb..2bbc32fedc 100644 --- a/api/serverpb/httperror.validator.pb.go +++ b/api/serverpb/httperror.validator.pb.go @@ -6,15 +6,18 @@ package serverpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/protobuf/types/known/anypb" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/protobuf/types/known/anypb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *HttpError) Validate() error { for _, item := range this.Details { diff --git a/api/serverpb/json/client/server/aws_instance_check_parameters.go b/api/serverpb/json/client/server/aws_instance_check_parameters.go index 5dc132624f..07381b0506 100644 --- a/api/serverpb/json/client/server/aws_instance_check_parameters.go +++ b/api/serverpb/json/client/server/aws_instance_check_parameters.go @@ -60,7 +60,6 @@ AWSInstanceCheckParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AWSInstanceCheckParams struct { - // Body. Body AWSInstanceCheckBody @@ -130,7 +129,6 @@ func (o *AWSInstanceCheckParams) SetBody(body AWSInstanceCheckBody) { // WriteToRequest writes these params to a swagger request func (o *AWSInstanceCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/aws_instance_check_responses.go b/api/serverpb/json/client/server/aws_instance_check_responses.go index 549b2b8094..73b1c3035b 100644 --- a/api/serverpb/json/client/server/aws_instance_check_responses.go +++ b/api/serverpb/json/client/server/aws_instance_check_responses.go @@ -60,12 +60,12 @@ type AWSInstanceCheckOK struct { func (o *AWSInstanceCheckOK) Error() string { return fmt.Sprintf("[POST /v1/AWSInstanceCheck][%d] awsInstanceCheckOk %+v", 200, o.Payload) } + func (o *AWSInstanceCheckOK) GetPayload() interface{} { return o.Payload } func (o *AWSInstanceCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *AWSInstanceCheckDefault) Code() int { func (o *AWSInstanceCheckDefault) Error() string { return fmt.Sprintf("[POST /v1/AWSInstanceCheck][%d] AWSInstanceCheck default %+v", o._statusCode, o.Payload) } + func (o *AWSInstanceCheckDefault) GetPayload() *AWSInstanceCheckDefaultBody { return o.Payload } func (o *AWSInstanceCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AWSInstanceCheckDefaultBody) // response payload @@ -121,7 +121,6 @@ AWSInstanceCheckBody AWS instance check body swagger:model AWSInstanceCheckBody */ type AWSInstanceCheckBody struct { - // AWS EC2 instance ID (i-1234567890abcdef0). InstanceID string `json:"instance_id,omitempty"` } @@ -159,7 +158,6 @@ AWSInstanceCheckDefaultBody AWS instance check default body swagger:model AWSInstanceCheckDefaultBody */ type AWSInstanceCheckDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -225,9 +223,7 @@ func (o *AWSInstanceCheckDefaultBody) ContextValidate(ctx context.Context, forma } func (o *AWSInstanceCheckDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -238,7 +234,6 @@ func (o *AWSInstanceCheckDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -348,7 +343,6 @@ AWSInstanceCheckDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized swagger:model AWSInstanceCheckDefaultBodyDetailsItems0 */ type AWSInstanceCheckDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent diff --git a/api/serverpb/json/client/server/change_settings_parameters.go b/api/serverpb/json/client/server/change_settings_parameters.go index ea84b96ead..eb5dc182f6 100644 --- a/api/serverpb/json/client/server/change_settings_parameters.go +++ b/api/serverpb/json/client/server/change_settings_parameters.go @@ -60,7 +60,6 @@ ChangeSettingsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeSettingsParams struct { - // Body. Body ChangeSettingsBody @@ -130,7 +129,6 @@ func (o *ChangeSettingsParams) SetBody(body ChangeSettingsBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/change_settings_responses.go b/api/serverpb/json/client/server/change_settings_responses.go index eaeb845cdc..4f1885bec9 100644 --- a/api/serverpb/json/client/server/change_settings_responses.go +++ b/api/serverpb/json/client/server/change_settings_responses.go @@ -60,12 +60,12 @@ type ChangeSettingsOK struct { func (o *ChangeSettingsOK) Error() string { return fmt.Sprintf("[POST /v1/Settings/Change][%d] changeSettingsOk %+v", 200, o.Payload) } + func (o *ChangeSettingsOK) GetPayload() *ChangeSettingsOKBody { return o.Payload } func (o *ChangeSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeSettingsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *ChangeSettingsDefault) Code() int { func (o *ChangeSettingsDefault) Error() string { return fmt.Sprintf("[POST /v1/Settings/Change][%d] ChangeSettings default %+v", o._statusCode, o.Payload) } + func (o *ChangeSettingsDefault) GetPayload() *ChangeSettingsDefaultBody { return o.Payload } func (o *ChangeSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeSettingsDefaultBody) // response payload @@ -123,7 +123,6 @@ ChangeSettingsBody change settings body swagger:model ChangeSettingsBody */ type ChangeSettingsBody struct { - // enable updates EnableUpdates bool `json:"enable_updates,omitempty"` @@ -341,7 +340,6 @@ func (o *ChangeSettingsBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeSettingsBody) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -357,7 +355,6 @@ func (o *ChangeSettingsBody) contextValidateEmailAlertingSettings(ctx context.Co } func (o *ChangeSettingsBody) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -373,7 +370,6 @@ func (o *ChangeSettingsBody) contextValidateMetricsResolutions(ctx context.Conte } func (o *ChangeSettingsBody) contextValidateSlackAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.SlackAlertingSettings != nil { if err := o.SlackAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -389,7 +385,6 @@ func (o *ChangeSettingsBody) contextValidateSlackAlertingSettings(ctx context.Co } func (o *ChangeSettingsBody) contextValidateSttCheckIntervals(ctx context.Context, formats strfmt.Registry) error { - if o.SttCheckIntervals != nil { if err := o.SttCheckIntervals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -427,7 +422,6 @@ ChangeSettingsDefaultBody change settings default body swagger:model ChangeSettingsDefaultBody */ type ChangeSettingsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -493,9 +487,7 @@ func (o *ChangeSettingsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeSettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -506,7 +498,6 @@ func (o *ChangeSettingsDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -616,7 +607,6 @@ ChangeSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized pr swagger:model ChangeSettingsDefaultBodyDetailsItems0 */ type ChangeSettingsDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -680,7 +670,6 @@ ChangeSettingsOKBody change settings OK body swagger:model ChangeSettingsOKBody */ type ChangeSettingsOKBody struct { - // settings Settings *ChangeSettingsOKBodySettings `json:"settings,omitempty"` } @@ -733,7 +722,6 @@ func (o *ChangeSettingsOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ChangeSettingsOKBody) contextValidateSettings(ctx context.Context, formats strfmt.Registry) error { - if o.Settings != nil { if err := o.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -771,7 +759,6 @@ ChangeSettingsOKBodySettings Settings represents PMM Server settings. swagger:model ChangeSettingsOKBodySettings */ type ChangeSettingsOKBodySettings struct { - // True if updates are disabled. UpdatesDisabled bool `json:"updates_disabled,omitempty"` @@ -962,7 +949,6 @@ func (o *ChangeSettingsOKBodySettings) ContextValidate(ctx context.Context, form } func (o *ChangeSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -978,7 +964,6 @@ func (o *ChangeSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx } func (o *ChangeSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -994,7 +979,6 @@ func (o *ChangeSettingsOKBodySettings) contextValidateMetricsResolutions(ctx con } func (o *ChangeSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.SlackAlertingSettings != nil { if err := o.SlackAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1010,7 +994,6 @@ func (o *ChangeSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx } func (o *ChangeSettingsOKBodySettings) contextValidateSttCheckIntervals(ctx context.Context, formats strfmt.Registry) error { - if o.SttCheckIntervals != nil { if err := o.SttCheckIntervals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -1048,7 +1031,6 @@ ChangeSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represen swagger:model ChangeSettingsOKBodySettingsEmailAlertingSettings */ type ChangeSettingsOKBodySettingsEmailAlertingSettings struct { - // SMTP From header field. From string `json:"from,omitempty"` @@ -1107,7 +1089,6 @@ ChangeSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Pro swagger:model ChangeSettingsOKBodySettingsMetricsResolutions */ type ChangeSettingsOKBodySettingsMetricsResolutions struct { - // High resolution. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` @@ -1151,7 +1132,6 @@ ChangeSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represen swagger:model ChangeSettingsOKBodySettingsSlackAlertingSettings */ type ChangeSettingsOKBodySettingsSlackAlertingSettings struct { - // Slack API (webhook) URL. URL string `json:"url,omitempty"` } @@ -1189,7 +1169,6 @@ ChangeSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents inter swagger:model ChangeSettingsOKBodySettingsSttCheckIntervals */ type ChangeSettingsOKBodySettingsSttCheckIntervals struct { - // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -1233,7 +1212,6 @@ ChangeSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings represents e swagger:model ChangeSettingsParamsBodyEmailAlertingSettings */ type ChangeSettingsParamsBodyEmailAlertingSettings struct { - // SMTP From header field. From string `json:"from,omitempty"` @@ -1292,7 +1270,6 @@ ChangeSettingsParamsBodyMetricsResolutions MetricsResolutions represents Prometh swagger:model ChangeSettingsParamsBodyMetricsResolutions */ type ChangeSettingsParamsBodyMetricsResolutions struct { - // High resolution. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` @@ -1336,7 +1313,6 @@ ChangeSettingsParamsBodySlackAlertingSettings SlackAlertingSettings represents S swagger:model ChangeSettingsParamsBodySlackAlertingSettings */ type ChangeSettingsParamsBodySlackAlertingSettings struct { - // Slack API (webhook) URL. URL string `json:"url,omitempty"` } @@ -1374,7 +1350,6 @@ ChangeSettingsParamsBodySttCheckIntervals STTCheckIntervals represents intervals swagger:model ChangeSettingsParamsBodySttCheckIntervals */ type ChangeSettingsParamsBodySttCheckIntervals struct { - // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` diff --git a/api/serverpb/json/client/server/check_updates_parameters.go b/api/serverpb/json/client/server/check_updates_parameters.go index 71a36c3c14..41df75a538 100644 --- a/api/serverpb/json/client/server/check_updates_parameters.go +++ b/api/serverpb/json/client/server/check_updates_parameters.go @@ -60,7 +60,6 @@ CheckUpdatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CheckUpdatesParams struct { - // Body. Body CheckUpdatesBody @@ -130,7 +129,6 @@ func (o *CheckUpdatesParams) SetBody(body CheckUpdatesBody) { // WriteToRequest writes these params to a swagger request func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/check_updates_responses.go b/api/serverpb/json/client/server/check_updates_responses.go index a213874779..a2c9927fa1 100644 --- a/api/serverpb/json/client/server/check_updates_responses.go +++ b/api/serverpb/json/client/server/check_updates_responses.go @@ -61,12 +61,12 @@ type CheckUpdatesOK struct { func (o *CheckUpdatesOK) Error() string { return fmt.Sprintf("[POST /v1/Updates/Check][%d] checkUpdatesOk %+v", 200, o.Payload) } + func (o *CheckUpdatesOK) GetPayload() *CheckUpdatesOKBody { return o.Payload } func (o *CheckUpdatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CheckUpdatesOKBody) // response payload @@ -103,12 +103,12 @@ func (o *CheckUpdatesDefault) Code() int { func (o *CheckUpdatesDefault) Error() string { return fmt.Sprintf("[POST /v1/Updates/Check][%d] CheckUpdates default %+v", o._statusCode, o.Payload) } + func (o *CheckUpdatesDefault) GetPayload() *CheckUpdatesDefaultBody { return o.Payload } func (o *CheckUpdatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CheckUpdatesDefaultBody) // response payload @@ -124,7 +124,6 @@ CheckUpdatesBody check updates body swagger:model CheckUpdatesBody */ type CheckUpdatesBody struct { - // If false, cached information may be returned. Force bool `json:"force,omitempty"` @@ -165,7 +164,6 @@ CheckUpdatesDefaultBody check updates default body swagger:model CheckUpdatesDefaultBody */ type CheckUpdatesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -231,9 +229,7 @@ func (o *CheckUpdatesDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *CheckUpdatesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -244,7 +240,6 @@ func (o *CheckUpdatesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -354,7 +349,6 @@ CheckUpdatesDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized prot swagger:model CheckUpdatesDefaultBodyDetailsItems0 */ type CheckUpdatesDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -418,7 +412,6 @@ CheckUpdatesOKBody check updates OK body swagger:model CheckUpdatesOKBody */ type CheckUpdatesOKBody struct { - // True if there is a PMM Server update available. UpdateAvailable bool `json:"update_available,omitempty"` @@ -527,7 +520,6 @@ func (o *CheckUpdatesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *CheckUpdatesOKBody) contextValidateInstalled(ctx context.Context, formats strfmt.Registry) error { - if o.Installed != nil { if err := o.Installed.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -543,7 +535,6 @@ func (o *CheckUpdatesOKBody) contextValidateInstalled(ctx context.Context, forma } func (o *CheckUpdatesOKBody) contextValidateLatest(ctx context.Context, formats strfmt.Registry) error { - if o.Latest != nil { if err := o.Latest.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -581,7 +572,6 @@ CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Serv swagger:model CheckUpdatesOKBodyInstalled */ type CheckUpdatesOKBodyInstalled struct { - // User-visible version. Version string `json:"version,omitempty"` @@ -647,7 +637,6 @@ CheckUpdatesOKBodyLatest VersionInfo describes component version, or PMM Server swagger:model CheckUpdatesOKBodyLatest */ type CheckUpdatesOKBodyLatest struct { - // User-visible version. Version string `json:"version,omitempty"` diff --git a/api/serverpb/json/client/server/get_settings_parameters.go b/api/serverpb/json/client/server/get_settings_parameters.go index e7bf706e9d..286fc45f4d 100644 --- a/api/serverpb/json/client/server/get_settings_parameters.go +++ b/api/serverpb/json/client/server/get_settings_parameters.go @@ -60,7 +60,6 @@ GetSettingsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetSettingsParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *GetSettingsParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *GetSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/get_settings_responses.go b/api/serverpb/json/client/server/get_settings_responses.go index a1125fe31f..9eba7eb605 100644 --- a/api/serverpb/json/client/server/get_settings_responses.go +++ b/api/serverpb/json/client/server/get_settings_responses.go @@ -60,12 +60,12 @@ type GetSettingsOK struct { func (o *GetSettingsOK) Error() string { return fmt.Sprintf("[POST /v1/Settings/Get][%d] getSettingsOk %+v", 200, o.Payload) } + func (o *GetSettingsOK) GetPayload() *GetSettingsOKBody { return o.Payload } func (o *GetSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetSettingsOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetSettingsDefault) Code() int { func (o *GetSettingsDefault) Error() string { return fmt.Sprintf("[POST /v1/Settings/Get][%d] GetSettings default %+v", o._statusCode, o.Payload) } + func (o *GetSettingsDefault) GetPayload() *GetSettingsDefaultBody { return o.Payload } func (o *GetSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetSettingsDefaultBody) // response payload @@ -123,7 +123,6 @@ GetSettingsDefaultBody get settings default body swagger:model GetSettingsDefaultBody */ type GetSettingsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *GetSettingsDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *GetSettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *GetSettingsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -312,7 +308,6 @@ GetSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized proto swagger:model GetSettingsDefaultBodyDetailsItems0 */ type GetSettingsDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -376,7 +371,6 @@ GetSettingsOKBody get settings OK body swagger:model GetSettingsOKBody */ type GetSettingsOKBody struct { - // settings Settings *GetSettingsOKBodySettings `json:"settings,omitempty"` } @@ -429,7 +423,6 @@ func (o *GetSettingsOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *GetSettingsOKBody) contextValidateSettings(ctx context.Context, formats strfmt.Registry) error { - if o.Settings != nil { if err := o.Settings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -467,7 +460,6 @@ GetSettingsOKBodySettings Settings represents PMM Server settings. swagger:model GetSettingsOKBodySettings */ type GetSettingsOKBodySettings struct { - // True if updates are disabled. UpdatesDisabled bool `json:"updates_disabled,omitempty"` @@ -658,7 +650,6 @@ func (o *GetSettingsOKBodySettings) ContextValidate(ctx context.Context, formats } func (o *GetSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -674,7 +665,6 @@ func (o *GetSettingsOKBodySettings) contextValidateEmailAlertingSettings(ctx con } func (o *GetSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -690,7 +680,6 @@ func (o *GetSettingsOKBodySettings) contextValidateMetricsResolutions(ctx contex } func (o *GetSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.SlackAlertingSettings != nil { if err := o.SlackAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -706,7 +695,6 @@ func (o *GetSettingsOKBodySettings) contextValidateSlackAlertingSettings(ctx con } func (o *GetSettingsOKBodySettings) contextValidateSttCheckIntervals(ctx context.Context, formats strfmt.Registry) error { - if o.SttCheckIntervals != nil { if err := o.SttCheckIntervals.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -744,7 +732,6 @@ GetSettingsOKBodySettingsEmailAlertingSettings EmailAlertingSettings represents swagger:model GetSettingsOKBodySettingsEmailAlertingSettings */ type GetSettingsOKBodySettingsEmailAlertingSettings struct { - // SMTP From header field. From string `json:"from,omitempty"` @@ -803,7 +790,6 @@ GetSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Promet swagger:model GetSettingsOKBodySettingsMetricsResolutions */ type GetSettingsOKBodySettingsMetricsResolutions struct { - // High resolution. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` @@ -847,7 +833,6 @@ GetSettingsOKBodySettingsSlackAlertingSettings SlackAlertingSettings represents swagger:model GetSettingsOKBodySettingsSlackAlertingSettings */ type GetSettingsOKBodySettingsSlackAlertingSettings struct { - // Slack API (webhook) URL. URL string `json:"url,omitempty"` } @@ -885,7 +870,6 @@ GetSettingsOKBodySettingsSttCheckIntervals STTCheckIntervals represents interval swagger:model GetSettingsOKBodySettingsSttCheckIntervals */ type GetSettingsOKBodySettingsSttCheckIntervals struct { - // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` diff --git a/api/serverpb/json/client/server/logs_parameters.go b/api/serverpb/json/client/server/logs_parameters.go index 787e34ced5..2463907eae 100644 --- a/api/serverpb/json/client/server/logs_parameters.go +++ b/api/serverpb/json/client/server/logs_parameters.go @@ -61,7 +61,6 @@ LogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type LogsParams struct { - /* Pprof. Include performance profiling data, @@ -134,7 +133,6 @@ func (o *LogsParams) SetPprof(pprof *bool) { // WriteToRequest writes these params to a swagger request func (o *LogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -150,7 +148,6 @@ func (o *LogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry } qPprof := swag.FormatBool(qrPprof) if qPprof != "" { - if err := r.SetQueryParam("pprof", qPprof); err != nil { return err } diff --git a/api/serverpb/json/client/server/logs_responses.go b/api/serverpb/json/client/server/logs_responses.go index b3c3261f74..ef66827e2e 100644 --- a/api/serverpb/json/client/server/logs_responses.go +++ b/api/serverpb/json/client/server/logs_responses.go @@ -45,7 +45,6 @@ func (o *LogsReader) ReadResponse(response runtime.ClientResponse, consumer runt // NewLogsOK creates a LogsOK with default headers values func NewLogsOK(writer io.Writer) *LogsOK { return &LogsOK{ - Payload: writer, } } @@ -62,12 +61,12 @@ type LogsOK struct { func (o *LogsOK) Error() string { return fmt.Sprintf("[GET /logs.zip][%d] logsOk %+v", 200, o.Payload) } + func (o *LogsOK) GetPayload() io.Writer { return o.Payload } func (o *LogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err @@ -102,12 +101,12 @@ func (o *LogsDefault) Code() int { func (o *LogsDefault) Error() string { return fmt.Sprintf("[GET /logs.zip][%d] Logs default %+v", o._statusCode, o.Payload) } + func (o *LogsDefault) GetPayload() *LogsDefaultBody { return o.Payload } func (o *LogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(LogsDefaultBody) // response payload @@ -123,7 +122,6 @@ LogsDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model LogsDefaultBody */ type LogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` diff --git a/api/serverpb/json/client/server/readiness_parameters.go b/api/serverpb/json/client/server/readiness_parameters.go index 3ea1fa1a59..0389af80fe 100644 --- a/api/serverpb/json/client/server/readiness_parameters.go +++ b/api/serverpb/json/client/server/readiness_parameters.go @@ -115,7 +115,6 @@ func (o *ReadinessParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ReadinessParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/readiness_responses.go b/api/serverpb/json/client/server/readiness_responses.go index 63a936f031..bdf7fa9155 100644 --- a/api/serverpb/json/client/server/readiness_responses.go +++ b/api/serverpb/json/client/server/readiness_responses.go @@ -60,12 +60,12 @@ type ReadinessOK struct { func (o *ReadinessOK) Error() string { return fmt.Sprintf("[GET /v1/readyz][%d] readinessOk %+v", 200, o.Payload) } + func (o *ReadinessOK) GetPayload() interface{} { return o.Payload } func (o *ReadinessOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *ReadinessDefault) Code() int { func (o *ReadinessDefault) Error() string { return fmt.Sprintf("[GET /v1/readyz][%d] Readiness default %+v", o._statusCode, o.Payload) } + func (o *ReadinessDefault) GetPayload() *ReadinessDefaultBody { return o.Payload } func (o *ReadinessDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ReadinessDefaultBody) // response payload @@ -121,7 +121,6 @@ ReadinessDefaultBody readiness default body swagger:model ReadinessDefaultBody */ type ReadinessDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -187,9 +186,7 @@ func (o *ReadinessDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ReadinessDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -200,7 +197,6 @@ func (o *ReadinessDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -310,7 +306,6 @@ ReadinessDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protoco swagger:model ReadinessDefaultBodyDetailsItems0 */ type ReadinessDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent diff --git a/api/serverpb/json/client/server/start_update_parameters.go b/api/serverpb/json/client/server/start_update_parameters.go index 4b070636e0..514a1b9d38 100644 --- a/api/serverpb/json/client/server/start_update_parameters.go +++ b/api/serverpb/json/client/server/start_update_parameters.go @@ -60,7 +60,6 @@ StartUpdateParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartUpdateParams struct { - // Body. Body interface{} @@ -130,7 +129,6 @@ func (o *StartUpdateParams) SetBody(body interface{}) { // WriteToRequest writes these params to a swagger request func (o *StartUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/start_update_responses.go b/api/serverpb/json/client/server/start_update_responses.go index 1f2db9af3c..bb246586f7 100644 --- a/api/serverpb/json/client/server/start_update_responses.go +++ b/api/serverpb/json/client/server/start_update_responses.go @@ -60,12 +60,12 @@ type StartUpdateOK struct { func (o *StartUpdateOK) Error() string { return fmt.Sprintf("[POST /v1/Updates/Start][%d] startUpdateOk %+v", 200, o.Payload) } + func (o *StartUpdateOK) GetPayload() *StartUpdateOKBody { return o.Payload } func (o *StartUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartUpdateOKBody) // response payload @@ -102,12 +102,12 @@ func (o *StartUpdateDefault) Code() int { func (o *StartUpdateDefault) Error() string { return fmt.Sprintf("[POST /v1/Updates/Start][%d] StartUpdate default %+v", o._statusCode, o.Payload) } + func (o *StartUpdateDefault) GetPayload() *StartUpdateDefaultBody { return o.Payload } func (o *StartUpdateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartUpdateDefaultBody) // response payload @@ -123,7 +123,6 @@ StartUpdateDefaultBody start update default body swagger:model StartUpdateDefaultBody */ type StartUpdateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *StartUpdateDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *StartUpdateDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *StartUpdateDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -312,7 +308,6 @@ StartUpdateDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized proto swagger:model StartUpdateDefaultBodyDetailsItems0 */ type StartUpdateDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -376,7 +371,6 @@ StartUpdateOKBody start update OK body swagger:model StartUpdateOKBody */ type StartUpdateOKBody struct { - // Authentication token for getting update statuses. AuthToken string `json:"auth_token,omitempty"` diff --git a/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go b/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go index fd9d46d8ff..df14058507 100644 --- a/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go +++ b/api/serverpb/json/client/server/test_email_alerting_settings_parameters.go @@ -60,7 +60,6 @@ TestEmailAlertingSettingsParams contains all the parameters to send to the API e Typically these are written to a http.Request. */ type TestEmailAlertingSettingsParams struct { - // Body. Body TestEmailAlertingSettingsBody @@ -130,7 +129,6 @@ func (o *TestEmailAlertingSettingsParams) SetBody(body TestEmailAlertingSettings // WriteToRequest writes these params to a swagger request func (o *TestEmailAlertingSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/test_email_alerting_settings_responses.go b/api/serverpb/json/client/server/test_email_alerting_settings_responses.go index cf4d187e78..14ae080753 100644 --- a/api/serverpb/json/client/server/test_email_alerting_settings_responses.go +++ b/api/serverpb/json/client/server/test_email_alerting_settings_responses.go @@ -60,12 +60,12 @@ type TestEmailAlertingSettingsOK struct { func (o *TestEmailAlertingSettingsOK) Error() string { return fmt.Sprintf("[POST /v1/Settings/TestEmailAlertingSettings][%d] testEmailAlertingSettingsOk %+v", 200, o.Payload) } + func (o *TestEmailAlertingSettingsOK) GetPayload() interface{} { return o.Payload } func (o *TestEmailAlertingSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err @@ -100,12 +100,12 @@ func (o *TestEmailAlertingSettingsDefault) Code() int { func (o *TestEmailAlertingSettingsDefault) Error() string { return fmt.Sprintf("[POST /v1/Settings/TestEmailAlertingSettings][%d] TestEmailAlertingSettings default %+v", o._statusCode, o.Payload) } + func (o *TestEmailAlertingSettingsDefault) GetPayload() *TestEmailAlertingSettingsDefaultBody { return o.Payload } func (o *TestEmailAlertingSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(TestEmailAlertingSettingsDefaultBody) // response payload @@ -121,7 +121,6 @@ TestEmailAlertingSettingsBody test email alerting settings body swagger:model TestEmailAlertingSettingsBody */ type TestEmailAlertingSettingsBody struct { - // Target email address to send the email to. EmailTo string `json:"email_to,omitempty"` @@ -177,7 +176,6 @@ func (o *TestEmailAlertingSettingsBody) ContextValidate(ctx context.Context, for } func (o *TestEmailAlertingSettingsBody) contextValidateEmailAlertingSettings(ctx context.Context, formats strfmt.Registry) error { - if o.EmailAlertingSettings != nil { if err := o.EmailAlertingSettings.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -215,7 +213,6 @@ TestEmailAlertingSettingsDefaultBody test email alerting settings default body swagger:model TestEmailAlertingSettingsDefaultBody */ type TestEmailAlertingSettingsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -281,9 +278,7 @@ func (o *TestEmailAlertingSettingsDefaultBody) ContextValidate(ctx context.Conte } func (o *TestEmailAlertingSettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -294,7 +289,6 @@ func (o *TestEmailAlertingSettingsDefaultBody) contextValidateDetails(ctx contex return err } } - } return nil @@ -404,7 +398,6 @@ TestEmailAlertingSettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary se swagger:model TestEmailAlertingSettingsDefaultBodyDetailsItems0 */ type TestEmailAlertingSettingsDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -468,7 +461,6 @@ TestEmailAlertingSettingsParamsBodyEmailAlertingSettings EmailAlertingSettings r swagger:model TestEmailAlertingSettingsParamsBodyEmailAlertingSettings */ type TestEmailAlertingSettingsParamsBodyEmailAlertingSettings struct { - // SMTP From header field. From string `json:"from,omitempty"` diff --git a/api/serverpb/json/client/server/update_status_parameters.go b/api/serverpb/json/client/server/update_status_parameters.go index 2b035d56e0..c2b50ad2f8 100644 --- a/api/serverpb/json/client/server/update_status_parameters.go +++ b/api/serverpb/json/client/server/update_status_parameters.go @@ -60,7 +60,6 @@ UpdateStatusParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateStatusParams struct { - // Body. Body UpdateStatusBody @@ -130,7 +129,6 @@ func (o *UpdateStatusParams) SetBody(body UpdateStatusBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/serverpb/json/client/server/update_status_responses.go b/api/serverpb/json/client/server/update_status_responses.go index c4ca4f8a59..8aad154fe9 100644 --- a/api/serverpb/json/client/server/update_status_responses.go +++ b/api/serverpb/json/client/server/update_status_responses.go @@ -60,12 +60,12 @@ type UpdateStatusOK struct { func (o *UpdateStatusOK) Error() string { return fmt.Sprintf("[POST /v1/Updates/Status][%d] updateStatusOk %+v", 200, o.Payload) } + func (o *UpdateStatusOK) GetPayload() *UpdateStatusOKBody { return o.Payload } func (o *UpdateStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateStatusOKBody) // response payload @@ -102,12 +102,12 @@ func (o *UpdateStatusDefault) Code() int { func (o *UpdateStatusDefault) Error() string { return fmt.Sprintf("[POST /v1/Updates/Status][%d] UpdateStatus default %+v", o._statusCode, o.Payload) } + func (o *UpdateStatusDefault) GetPayload() *UpdateStatusDefaultBody { return o.Payload } func (o *UpdateStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateStatusDefaultBody) // response payload @@ -123,7 +123,6 @@ UpdateStatusBody update status body swagger:model UpdateStatusBody */ type UpdateStatusBody struct { - // Authentication token. AuthToken string `json:"auth_token,omitempty"` @@ -164,7 +163,6 @@ UpdateStatusDefaultBody update status default body swagger:model UpdateStatusDefaultBody */ type UpdateStatusDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -230,9 +228,7 @@ func (o *UpdateStatusDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *UpdateStatusDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -243,7 +239,6 @@ func (o *UpdateStatusDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -353,7 +348,6 @@ UpdateStatusDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized prot swagger:model UpdateStatusDefaultBodyDetailsItems0 */ type UpdateStatusDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -417,7 +411,6 @@ UpdateStatusOKBody update status OK body swagger:model UpdateStatusOKBody */ type UpdateStatusOKBody struct { - // Progress log lines. LogLines []string `json:"log_lines"` diff --git a/api/serverpb/json/client/server/version_parameters.go b/api/serverpb/json/client/server/version_parameters.go index 221207560e..6e1ac5601f 100644 --- a/api/serverpb/json/client/server/version_parameters.go +++ b/api/serverpb/json/client/server/version_parameters.go @@ -60,7 +60,6 @@ VersionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type VersionParams struct { - /* Dummy. Dummy parameter for internal testing. Do not use. @@ -133,7 +132,6 @@ func (o *VersionParams) SetDummy(dummy *string) { // WriteToRequest writes these params to a swagger request func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -149,7 +147,6 @@ func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qDummy := qrDummy if qDummy != "" { - if err := r.SetQueryParam("dummy", qDummy); err != nil { return err } diff --git a/api/serverpb/json/client/server/version_responses.go b/api/serverpb/json/client/server/version_responses.go index c6f61ef3a6..1f4a1643ed 100644 --- a/api/serverpb/json/client/server/version_responses.go +++ b/api/serverpb/json/client/server/version_responses.go @@ -62,12 +62,12 @@ type VersionOK struct { func (o *VersionOK) Error() string { return fmt.Sprintf("[GET /v1/version][%d] versionOk %+v", 200, o.Payload) } + func (o *VersionOK) GetPayload() *VersionOKBody { return o.Payload } func (o *VersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(VersionOKBody) // response payload @@ -104,12 +104,12 @@ func (o *VersionDefault) Code() int { func (o *VersionDefault) Error() string { return fmt.Sprintf("[GET /v1/version][%d] Version default %+v", o._statusCode, o.Payload) } + func (o *VersionDefault) GetPayload() *VersionDefaultBody { return o.Payload } func (o *VersionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(VersionDefaultBody) // response payload @@ -125,7 +125,6 @@ VersionDefaultBody version default body swagger:model VersionDefaultBody */ type VersionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -191,9 +190,7 @@ func (o *VersionDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *VersionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -204,7 +201,6 @@ func (o *VersionDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -314,7 +310,6 @@ VersionDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized protocol swagger:model VersionDefaultBodyDetailsItems0 */ type VersionDefaultBodyDetailsItems0 struct { - // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. This string must contain at least // one "/" character. The last segment of the URL's path must represent @@ -378,7 +373,6 @@ VersionOKBody version OK body swagger:model VersionOKBody */ type VersionOKBody struct { - // PMM Server version. Version string `json:"version,omitempty"` @@ -526,7 +520,6 @@ func (o *VersionOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *VersionOKBody) contextValidateManaged(ctx context.Context, formats strfmt.Registry) error { - if o.Managed != nil { if err := o.Managed.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -542,7 +535,6 @@ func (o *VersionOKBody) contextValidateManaged(ctx context.Context, formats strf } func (o *VersionOKBody) contextValidateServer(ctx context.Context, formats strfmt.Registry) error { - if o.Server != nil { if err := o.Server.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -580,7 +572,6 @@ VersionOKBodyManaged VersionInfo describes component version, or PMM Server as a swagger:model VersionOKBodyManaged */ type VersionOKBodyManaged struct { - // User-visible version. Version string `json:"version,omitempty"` @@ -646,7 +637,6 @@ VersionOKBodyServer VersionInfo describes component version, or PMM Server as a swagger:model VersionOKBodyServer */ type VersionOKBodyServer struct { - // User-visible version. Version string `json:"version,omitempty"` diff --git a/api/serverpb/server.pb.go b/api/serverpb/server.pb.go index 7e2f884a22..f8727975ba 100644 --- a/api/serverpb/server.pb.go +++ b/api/serverpb/server.pb.go @@ -7,6 +7,9 @@ package serverpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -14,8 +17,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" ) const ( @@ -2276,37 +2277,40 @@ func file_serverpb_server_proto_rawDescGZIP() []byte { return file_serverpb_server_proto_rawDescData } -var file_serverpb_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_serverpb_server_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_serverpb_server_proto_goTypes = []interface{}{ - (DistributionMethod)(0), // 0: server.DistributionMethod - (*VersionInfo)(nil), // 1: server.VersionInfo - (*VersionRequest)(nil), // 2: server.VersionRequest - (*VersionResponse)(nil), // 3: server.VersionResponse - (*ReadinessRequest)(nil), // 4: server.ReadinessRequest - (*ReadinessResponse)(nil), // 5: server.ReadinessResponse - (*CheckUpdatesRequest)(nil), // 6: server.CheckUpdatesRequest - (*CheckUpdatesResponse)(nil), // 7: server.CheckUpdatesResponse - (*StartUpdateRequest)(nil), // 8: server.StartUpdateRequest - (*StartUpdateResponse)(nil), // 9: server.StartUpdateResponse - (*UpdateStatusRequest)(nil), // 10: server.UpdateStatusRequest - (*UpdateStatusResponse)(nil), // 11: server.UpdateStatusResponse - (*MetricsResolutions)(nil), // 12: server.MetricsResolutions - (*EmailAlertingSettings)(nil), // 13: server.EmailAlertingSettings - (*SlackAlertingSettings)(nil), // 14: server.SlackAlertingSettings - (*STTCheckIntervals)(nil), // 15: server.STTCheckIntervals - (*Settings)(nil), // 16: server.Settings - (*GetSettingsRequest)(nil), // 17: server.GetSettingsRequest - (*GetSettingsResponse)(nil), // 18: server.GetSettingsResponse - (*ChangeSettingsRequest)(nil), // 19: server.ChangeSettingsRequest - (*ChangeSettingsResponse)(nil), // 20: server.ChangeSettingsResponse - (*TestEmailAlertingSettingsRequest)(nil), // 21: server.TestEmailAlertingSettingsRequest - (*TestEmailAlertingSettingsResponse)(nil), // 22: server.TestEmailAlertingSettingsResponse - (*AWSInstanceCheckRequest)(nil), // 23: server.AWSInstanceCheckRequest - (*AWSInstanceCheckResponse)(nil), // 24: server.AWSInstanceCheckResponse - (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 26: google.protobuf.Duration -} +var ( + file_serverpb_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_serverpb_server_proto_msgTypes = make([]protoimpl.MessageInfo, 24) + file_serverpb_server_proto_goTypes = []interface{}{ + (DistributionMethod)(0), // 0: server.DistributionMethod + (*VersionInfo)(nil), // 1: server.VersionInfo + (*VersionRequest)(nil), // 2: server.VersionRequest + (*VersionResponse)(nil), // 3: server.VersionResponse + (*ReadinessRequest)(nil), // 4: server.ReadinessRequest + (*ReadinessResponse)(nil), // 5: server.ReadinessResponse + (*CheckUpdatesRequest)(nil), // 6: server.CheckUpdatesRequest + (*CheckUpdatesResponse)(nil), // 7: server.CheckUpdatesResponse + (*StartUpdateRequest)(nil), // 8: server.StartUpdateRequest + (*StartUpdateResponse)(nil), // 9: server.StartUpdateResponse + (*UpdateStatusRequest)(nil), // 10: server.UpdateStatusRequest + (*UpdateStatusResponse)(nil), // 11: server.UpdateStatusResponse + (*MetricsResolutions)(nil), // 12: server.MetricsResolutions + (*EmailAlertingSettings)(nil), // 13: server.EmailAlertingSettings + (*SlackAlertingSettings)(nil), // 14: server.SlackAlertingSettings + (*STTCheckIntervals)(nil), // 15: server.STTCheckIntervals + (*Settings)(nil), // 16: server.Settings + (*GetSettingsRequest)(nil), // 17: server.GetSettingsRequest + (*GetSettingsResponse)(nil), // 18: server.GetSettingsResponse + (*ChangeSettingsRequest)(nil), // 19: server.ChangeSettingsRequest + (*ChangeSettingsResponse)(nil), // 20: server.ChangeSettingsResponse + (*TestEmailAlertingSettingsRequest)(nil), // 21: server.TestEmailAlertingSettingsRequest + (*TestEmailAlertingSettingsResponse)(nil), // 22: server.TestEmailAlertingSettingsResponse + (*AWSInstanceCheckRequest)(nil), // 23: server.AWSInstanceCheckRequest + (*AWSInstanceCheckResponse)(nil), // 24: server.AWSInstanceCheckResponse + (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 26: google.protobuf.Duration + } +) + var file_serverpb_server_proto_depIdxs = []int32{ 25, // 0: server.VersionInfo.timestamp:type_name -> google.protobuf.Timestamp 1, // 1: server.VersionResponse.server:type_name -> server.VersionInfo diff --git a/api/serverpb/server.pb.gw.go b/api/serverpb/server.pb.gw.go index 267e19cc58..5b7f9b2a37 100644 --- a/api/serverpb/server.pb.gw.go +++ b/api/serverpb/server.pb.gw.go @@ -24,17 +24,17 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - var ( - filter_Server_Version_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join ) +var filter_Server_Version_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + func request_Server_Version_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq VersionRequest var metadata runtime.ServerMetadata @@ -48,7 +48,6 @@ func request_Server_Version_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.Version(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_Version_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -64,7 +63,6 @@ func local_request_Server_Version_0(ctx context.Context, marshaler runtime.Marsh msg, err := server.Version(ctx, &protoReq) return msg, metadata, err - } func request_Server_Readiness_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -73,7 +71,6 @@ func request_Server_Readiness_0(ctx context.Context, marshaler runtime.Marshaler msg, err := client.Readiness(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_Readiness_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -82,7 +79,6 @@ func local_request_Server_Readiness_0(ctx context.Context, marshaler runtime.Mar msg, err := server.Readiness(ctx, &protoReq) return msg, metadata, err - } func request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -99,7 +95,6 @@ func request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.CheckUpdates(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -116,7 +111,6 @@ func local_request_Server_CheckUpdates_0(ctx context.Context, marshaler runtime. msg, err := server.CheckUpdates(ctx, &protoReq) return msg, metadata, err - } func request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -133,7 +127,6 @@ func request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.StartUpdate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -150,7 +143,6 @@ func local_request_Server_StartUpdate_0(ctx context.Context, marshaler runtime.M msg, err := server.StartUpdate(ctx, &protoReq) return msg, metadata, err - } func request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -167,7 +159,6 @@ func request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime.Marsha msg, err := client.UpdateStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -184,7 +175,6 @@ func local_request_Server_UpdateStatus_0(ctx context.Context, marshaler runtime. msg, err := server.UpdateStatus(ctx, &protoReq) return msg, metadata, err - } func request_Server_GetSettings_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -201,7 +191,6 @@ func request_Server_GetSettings_0(ctx context.Context, marshaler runtime.Marshal msg, err := client.GetSettings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_GetSettings_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -218,7 +207,6 @@ func local_request_Server_GetSettings_0(ctx context.Context, marshaler runtime.M msg, err := server.GetSettings(ctx, &protoReq) return msg, metadata, err - } func request_Server_ChangeSettings_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -235,7 +223,6 @@ func request_Server_ChangeSettings_0(ctx context.Context, marshaler runtime.Mars msg, err := client.ChangeSettings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_ChangeSettings_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -252,7 +239,6 @@ func local_request_Server_ChangeSettings_0(ctx context.Context, marshaler runtim msg, err := server.ChangeSettings(ctx, &protoReq) return msg, metadata, err - } func request_Server_TestEmailAlertingSettings_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -269,7 +255,6 @@ func request_Server_TestEmailAlertingSettings_0(ctx context.Context, marshaler r msg, err := client.TestEmailAlertingSettings(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_TestEmailAlertingSettings_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -286,7 +271,6 @@ func local_request_Server_TestEmailAlertingSettings_0(ctx context.Context, marsh msg, err := server.TestEmailAlertingSettings(ctx, &protoReq) return msg, metadata, err - } func request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -303,7 +287,6 @@ func request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runtime.Ma msg, err := client.AWSInstanceCheck(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -320,7 +303,6 @@ func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runt msg, err := server.AWSInstanceCheck(ctx, &protoReq) return msg, metadata, err - } // RegisterServerHandlerServer registers the http handlers for service Server to "mux". @@ -328,7 +310,6 @@ func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runt // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterServerHandlerFromEndpoint instead. func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServerServer) error { - mux.Handle("GET", pattern_Server_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -351,7 +332,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_Version_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_Server_Readiness_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -376,7 +356,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_Readiness_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_CheckUpdates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -401,7 +380,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_CheckUpdates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_StartUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -426,7 +404,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_StartUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_UpdateStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -451,7 +428,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_UpdateStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_GetSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -476,7 +452,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_GetSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_ChangeSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -501,7 +476,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_ChangeSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_TestEmailAlertingSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -526,7 +500,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_TestEmailAlertingSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_AWSInstanceCheck_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -551,7 +524,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser } forward_Server_AWSInstanceCheck_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -594,7 +566,6 @@ func RegisterServerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grp // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "ServerClient" to call the correct interceptors. func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServerClient) error { - mux.Handle("GET", pattern_Server_Version_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -614,7 +585,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_Version_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("GET", pattern_Server_Readiness_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -636,7 +606,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_Readiness_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_CheckUpdates_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -658,7 +627,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_CheckUpdates_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_StartUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -680,7 +648,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_StartUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_UpdateStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -702,7 +669,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_UpdateStatus_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_GetSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -724,7 +690,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_GetSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_ChangeSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -746,7 +711,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_ChangeSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_TestEmailAlertingSettings_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -768,7 +732,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_TestEmailAlertingSettings_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("POST", pattern_Server_AWSInstanceCheck_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -790,7 +753,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli } forward_Server_AWSInstanceCheck_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/serverpb/server.validator.pb.go b/api/serverpb/server.validator.pb.go index 6922d688d6..a05ccba7e8 100644 --- a/api/serverpb/server.validator.pb.go +++ b/api/serverpb/server.validator.pb.go @@ -6,19 +6,22 @@ package serverpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" - _ "google.golang.org/protobuf/types/known/timestamppb" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" _ "google.golang.org/protobuf/types/known/durationpb" - github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/protobuf/types/known/timestamppb" ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *VersionInfo) Validate() error { if this.Timestamp != nil { @@ -28,9 +31,11 @@ func (this *VersionInfo) Validate() error { } return nil } + func (this *VersionRequest) Validate() error { return nil } + func (this *VersionResponse) Validate() error { if this.Server != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Server); err != nil { @@ -44,15 +49,19 @@ func (this *VersionResponse) Validate() error { } return nil } + func (this *ReadinessRequest) Validate() error { return nil } + func (this *ReadinessResponse) Validate() error { return nil } + func (this *CheckUpdatesRequest) Validate() error { return nil } + func (this *CheckUpdatesResponse) Validate() error { if this.Installed != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Installed); err != nil { @@ -71,18 +80,23 @@ func (this *CheckUpdatesResponse) Validate() error { } return nil } + func (this *StartUpdateRequest) Validate() error { return nil } + func (this *StartUpdateResponse) Validate() error { return nil } + func (this *UpdateStatusRequest) Validate() error { return nil } + func (this *UpdateStatusResponse) Validate() error { return nil } + func (this *MetricsResolutions) Validate() error { if this.Hr != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Hr); err != nil { @@ -101,6 +115,7 @@ func (this *MetricsResolutions) Validate() error { } return nil } + func (this *EmailAlertingSettings) Validate() error { if this.From == "" { return github_com_mwitkow_go_proto_validators.FieldError("From", fmt.Errorf(`value '%v' must not be an empty string`, this.From)) @@ -110,12 +125,14 @@ func (this *EmailAlertingSettings) Validate() error { } return nil } + func (this *SlackAlertingSettings) Validate() error { if this.Url == "" { return github_com_mwitkow_go_proto_validators.FieldError("Url", fmt.Errorf(`value '%v' must not be an empty string`, this.Url)) } return nil } + func (this *STTCheckIntervals) Validate() error { if this.StandardInterval != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.StandardInterval); err != nil { @@ -134,6 +151,7 @@ func (this *STTCheckIntervals) Validate() error { } return nil } + func (this *Settings) Validate() error { if this.MetricsResolutions != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MetricsResolutions); err != nil { @@ -162,9 +180,11 @@ func (this *Settings) Validate() error { } return nil } + func (this *GetSettingsRequest) Validate() error { return nil } + func (this *GetSettingsResponse) Validate() error { if this.Settings != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Settings); err != nil { @@ -173,6 +193,7 @@ func (this *GetSettingsResponse) Validate() error { } return nil } + func (this *ChangeSettingsRequest) Validate() error { if this.MetricsResolutions != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MetricsResolutions); err != nil { @@ -201,6 +222,7 @@ func (this *ChangeSettingsRequest) Validate() error { } return nil } + func (this *ChangeSettingsResponse) Validate() error { if this.Settings != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Settings); err != nil { @@ -209,6 +231,7 @@ func (this *ChangeSettingsResponse) Validate() error { } return nil } + func (this *TestEmailAlertingSettingsRequest) Validate() error { if this.EmailAlertingSettings != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.EmailAlertingSettings); err != nil { @@ -217,15 +240,18 @@ func (this *TestEmailAlertingSettingsRequest) Validate() error { } return nil } + func (this *TestEmailAlertingSettingsResponse) Validate() error { return nil } + func (this *AWSInstanceCheckRequest) Validate() error { if this.InstanceId == "" { return github_com_mwitkow_go_proto_validators.FieldError("InstanceId", fmt.Errorf(`value '%v' must not be an empty string`, this.InstanceId)) } return nil } + func (this *AWSInstanceCheckResponse) Validate() error { return nil } diff --git a/api/serverpb/server_grpc.pb.go b/api/serverpb/server_grpc.pb.go index 08083a4b40..845805869b 100644 --- a/api/serverpb/server_grpc.pb.go +++ b/api/serverpb/server_grpc.pb.go @@ -8,6 +8,7 @@ package serverpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -159,33 +160,40 @@ type ServerServer interface { } // UnimplementedServerServer must be embedded to have forward compatible implementations. -type UnimplementedServerServer struct { -} +type UnimplementedServerServer struct{} func (UnimplementedServerServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") } + func (UnimplementedServerServer) Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Readiness not implemented") } + func (UnimplementedServerServer) CheckUpdates(context.Context, *CheckUpdatesRequest) (*CheckUpdatesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckUpdates not implemented") } + func (UnimplementedServerServer) StartUpdate(context.Context, *StartUpdateRequest) (*StartUpdateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method StartUpdate not implemented") } + func (UnimplementedServerServer) UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateStatus not implemented") } + func (UnimplementedServerServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSettings not implemented") } + func (UnimplementedServerServer) ChangeSettings(context.Context, *ChangeSettingsRequest) (*ChangeSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeSettings not implemented") } + func (UnimplementedServerServer) TestEmailAlertingSettings(context.Context, *TestEmailAlertingSettingsRequest) (*TestEmailAlertingSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TestEmailAlertingSettings not implemented") } + func (UnimplementedServerServer) AWSInstanceCheck(context.Context, *AWSInstanceCheckRequest) (*AWSInstanceCheckResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AWSInstanceCheck not implemented") } diff --git a/api/userpb/json/client/user/get_user_parameters.go b/api/userpb/json/client/user/get_user_parameters.go index 31920e417d..ce903ed286 100644 --- a/api/userpb/json/client/user/get_user_parameters.go +++ b/api/userpb/json/client/user/get_user_parameters.go @@ -115,7 +115,6 @@ func (o *GetUserParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/userpb/json/client/user/get_user_responses.go b/api/userpb/json/client/user/get_user_responses.go index 8eebfd6bf7..f603c8a71b 100644 --- a/api/userpb/json/client/user/get_user_responses.go +++ b/api/userpb/json/client/user/get_user_responses.go @@ -60,12 +60,12 @@ type GetUserOK struct { func (o *GetUserOK) Error() string { return fmt.Sprintf("[GET /v1/user][%d] getUserOk %+v", 200, o.Payload) } + func (o *GetUserOK) GetPayload() *GetUserOKBody { return o.Payload } func (o *GetUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetUserOKBody) // response payload @@ -102,12 +102,12 @@ func (o *GetUserDefault) Code() int { func (o *GetUserDefault) Error() string { return fmt.Sprintf("[GET /v1/user][%d] GetUser default %+v", o._statusCode, o.Payload) } + func (o *GetUserDefault) GetPayload() *GetUserDefaultBody { return o.Payload } func (o *GetUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetUserDefaultBody) // response payload @@ -123,7 +123,6 @@ GetUserDefaultBody get user default body swagger:model GetUserDefaultBody */ type GetUserDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -189,9 +188,7 @@ func (o *GetUserDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetUserDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -202,7 +199,6 @@ func (o *GetUserDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -231,7 +227,6 @@ GetUserDefaultBodyDetailsItems0 get user default body details items0 swagger:model GetUserDefaultBodyDetailsItems0 */ type GetUserDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -269,7 +264,6 @@ GetUserOKBody get user OK body swagger:model GetUserOKBody */ type GetUserOKBody struct { - // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/userpb/json/client/user/update_user_parameters.go b/api/userpb/json/client/user/update_user_parameters.go index 07ac34de23..b42c6ce1a8 100644 --- a/api/userpb/json/client/user/update_user_parameters.go +++ b/api/userpb/json/client/user/update_user_parameters.go @@ -60,7 +60,6 @@ UpdateUserParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateUserParams struct { - // Body. Body UpdateUserBody @@ -130,7 +129,6 @@ func (o *UpdateUserParams) SetBody(body UpdateUserBody) { // WriteToRequest writes these params to a swagger request func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/userpb/json/client/user/update_user_responses.go b/api/userpb/json/client/user/update_user_responses.go index 2425c1eb0a..bc668882f7 100644 --- a/api/userpb/json/client/user/update_user_responses.go +++ b/api/userpb/json/client/user/update_user_responses.go @@ -60,12 +60,12 @@ type UpdateUserOK struct { func (o *UpdateUserOK) Error() string { return fmt.Sprintf("[PUT /v1/user][%d] updateUserOk %+v", 200, o.Payload) } + func (o *UpdateUserOK) GetPayload() *UpdateUserOKBody { return o.Payload } func (o *UpdateUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateUserOKBody) // response payload @@ -102,12 +102,12 @@ func (o *UpdateUserDefault) Code() int { func (o *UpdateUserDefault) Error() string { return fmt.Sprintf("[PUT /v1/user][%d] UpdateUser default %+v", o._statusCode, o.Payload) } + func (o *UpdateUserDefault) GetPayload() *UpdateUserDefaultBody { return o.Payload } func (o *UpdateUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateUserDefaultBody) // response payload @@ -123,7 +123,6 @@ UpdateUserBody update user body swagger:model UpdateUserBody */ type UpdateUserBody struct { - // Product Tour ProductTourCompleted bool `json:"product_tour_completed,omitempty"` } @@ -161,7 +160,6 @@ UpdateUserDefaultBody update user default body swagger:model UpdateUserDefaultBody */ type UpdateUserDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -227,9 +225,7 @@ func (o *UpdateUserDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UpdateUserDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if err := o.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { @@ -240,7 +236,6 @@ func (o *UpdateUserDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -269,7 +264,6 @@ UpdateUserDefaultBodyDetailsItems0 update user default body details items0 swagger:model UpdateUserDefaultBodyDetailsItems0 */ type UpdateUserDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -307,7 +301,6 @@ UpdateUserOKBody update user OK body swagger:model UpdateUserOKBody */ type UpdateUserOKBody struct { - // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/userpb/user.pb.go b/api/userpb/user.pb.go index 87f01afc80..e354c9bef8 100644 --- a/api/userpb/user.pb.go +++ b/api/userpb/user.pb.go @@ -7,6 +7,9 @@ package userpb import ( + reflect "reflect" + sync "sync" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -14,8 +17,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/known/timestamppb" _ "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" ) const ( @@ -239,12 +240,15 @@ func file_userpb_user_proto_rawDescGZIP() []byte { return file_userpb_user_proto_rawDescData } -var file_userpb_user_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_userpb_user_proto_goTypes = []interface{}{ - (*UserDetailsRequest)(nil), // 0: user.UserDetailsRequest - (*UserDetailsResponse)(nil), // 1: user.UserDetailsResponse - (*UserUpdateRequest)(nil), // 2: user.UserUpdateRequest -} +var ( + file_userpb_user_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_userpb_user_proto_goTypes = []interface{}{ + (*UserDetailsRequest)(nil), // 0: user.UserDetailsRequest + (*UserDetailsResponse)(nil), // 1: user.UserDetailsResponse + (*UserUpdateRequest)(nil), // 2: user.UserUpdateRequest + } +) + var file_userpb_user_proto_depIdxs = []int32{ 0, // 0: user.User.GetUser:input_type -> user.UserDetailsRequest 2, // 1: user.User.UpdateUser:input_type -> user.UserUpdateRequest diff --git a/api/userpb/user.pb.gw.go b/api/userpb/user.pb.gw.go index 64a9077169..3e0f29eda6 100644 --- a/api/userpb/user.pb.gw.go +++ b/api/userpb/user.pb.gw.go @@ -24,12 +24,14 @@ import ( ) // Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) func request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UserDetailsRequest @@ -37,7 +39,6 @@ func request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, cl msg, err := client.GetUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, server UserServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -46,7 +47,6 @@ func local_request_User_GetUser_0(ctx context.Context, marshaler runtime.Marshal msg, err := server.GetUser(ctx, &protoReq) return msg, metadata, err - } func request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -63,7 +63,6 @@ func request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, msg, err := client.UpdateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err - } func local_request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Marshaler, server UserServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -80,7 +79,6 @@ func local_request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Mars msg, err := server.UpdateUser(ctx, &protoReq) return msg, metadata, err - } // RegisterUserHandlerServer registers the http handlers for service User to "mux". @@ -88,7 +86,6 @@ func local_request_User_UpdateUser_0(ctx context.Context, marshaler runtime.Mars // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserHandlerFromEndpoint instead. func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServer) error { - mux.Handle("GET", pattern_User_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -111,7 +108,6 @@ func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve } forward_User_GetUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("PUT", pattern_User_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -136,7 +132,6 @@ func RegisterUserHandlerServer(ctx context.Context, mux *runtime.ServeMux, serve } forward_User_UpdateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil @@ -179,7 +174,6 @@ func RegisterUserHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc. // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in // "UserClient" to call the correct interceptors. func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserClient) error { - mux.Handle("GET", pattern_User_GetUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -199,7 +193,6 @@ func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien } forward_User_GetUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle("PUT", pattern_User_UpdateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { @@ -221,7 +214,6 @@ func RegisterUserHandlerClient(ctx context.Context, mux *runtime.ServeMux, clien } forward_User_UpdateUser_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) return nil diff --git a/api/userpb/user.validator.pb.go b/api/userpb/user.validator.pb.go index c2cee69f50..a86cccacd7 100644 --- a/api/userpb/user.validator.pb.go +++ b/api/userpb/user.validator.pb.go @@ -6,6 +6,7 @@ package userpb import ( fmt "fmt" math "math" + proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "github.com/mwitkow/go-proto-validators" @@ -15,16 +16,20 @@ import ( ) // Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +var ( + _ = proto.Marshal + _ = fmt.Errorf + _ = math.Inf +) func (this *UserDetailsRequest) Validate() error { return nil } + func (this *UserDetailsResponse) Validate() error { return nil } + func (this *UserUpdateRequest) Validate() error { return nil } diff --git a/api/userpb/user_grpc.pb.go b/api/userpb/user_grpc.pb.go index fab1368b85..5a7e8dc041 100644 --- a/api/userpb/user_grpc.pb.go +++ b/api/userpb/user_grpc.pb.go @@ -8,6 +8,7 @@ package userpb import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -62,12 +63,12 @@ type UserServer interface { } // UnimplementedUserServer must be embedded to have forward compatible implementations. -type UnimplementedUserServer struct { -} +type UnimplementedUserServer struct{} func (UnimplementedUserServer) GetUser(context.Context, *UserDetailsRequest) (*UserDetailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") } + func (UnimplementedUserServer) UpdateUser(context.Context, *UserUpdateRequest) (*UserDetailsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented") } From 850a268b91ce621ce6712dfa1c978332697ac24b Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 20 Oct 2022 01:02:24 +0200 Subject: [PATCH 25/29] PMM-10231 Name fixes. --- api/agentpb/agent.go | 4 ++-- managed/services/management/mysql.go | 2 +- managed/services/management/proxysql.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/agentpb/agent.go b/api/agentpb/agent.go index cab6fa313a..f67f50e41d 100644 --- a/api/agentpb/agent.go +++ b/api/agentpb/agent.go @@ -130,7 +130,7 @@ func (m *PBMSwitchPITRResponse) AgentMessageResponsePayload() isAgentMessage_Pay return &AgentMessage_PbmSwitchPitr{PbmSwitchPitr: m} } -// AgentMessageResponsePayload AgentMessage_ParseCredentialsSource payload +// AgentMessageResponsePayload AgentMessage_ParseServiceParamsSource payload func (m *ParseServiceParamsSourceResponse) AgentMessageResponsePayload() isAgentMessage_Payload { return &AgentMessage_ParseServiceParamsSource{ParseServiceParamsSource: m} } @@ -199,7 +199,7 @@ func (m *PBMSwitchPITRRequest) ServerMessageRequestPayload() isServerMessage_Pay return &ServerMessage_PbmSwitchPitr{PbmSwitchPitr: m} } -// ServerMessageRequestPayload ParseCredentialsSource payload. +// ServerMessageRequestPayload ParseServiceParamsSource payload. func (m *ParseServiceParamsSourceRequest) ServerMessageRequestPayload() isServerMessage_Payload { return &ServerMessage_ParseServiceParamsSource{ParseServiceParamsSource: m} } diff --git a/managed/services/management/mysql.go b/managed/services/management/mysql.go index ef64317e21..8dfe4cd43d 100644 --- a/managed/services/management/mysql.go +++ b/managed/services/management/mysql.go @@ -62,7 +62,7 @@ func (s *MySQLService) Add(ctx context.Context, req *managementpb.AddMySQLReques if req.ServiceParamsSource != "" { result, err := s.spsl.GetParameters(ctx, req.PmmAgentId, req.ServiceParamsSource, models.MySQLServiceType) if err != nil { - return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Service Params Source file error: %s.", err)) } s.applyParameters(req, result) diff --git a/managed/services/management/proxysql.go b/managed/services/management/proxysql.go index 27275b0b3d..61edd39813 100644 --- a/managed/services/management/proxysql.go +++ b/managed/services/management/proxysql.go @@ -55,7 +55,7 @@ func (s *ProxySQLService) Add(ctx context.Context, req *managementpb.AddProxySQL if req.ServiceParamsSource != "" { result, err := s.spsl.GetParameters(ctx, req.PmmAgentId, req.ServiceParamsSource, models.ProxySQLServiceType) if err != nil { - return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Credentials Source file error: %s.", err)) + return nil, status.Error(codes.FailedPrecondition, fmt.Sprintf("Service Params Source file error: %s.", err)) } s.applyParameters(req, result) From 1eee71a4f7500cb2165725ce1e74e400911d0d4e Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 20 Oct 2022 20:26:53 +0200 Subject: [PATCH 26/29] PMM-10464 kong updates --- admin/commands/management/add_proxysql.go | 35 +++++++++++++++++------ 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index 21854d6c40..0a69b1cf07 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -48,8 +48,8 @@ type AddProxySQLCommand struct { Socket string `help:"Path to ProxySQL socket"` NodeID string `help:"Node ID (default is autodetected)"` PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` - Username string `help:"ProxySQL username"` - Password string `help:"ProxySQL password"` + Username username `help:"ProxySQL username"` + Password password `help:"ProxySQL password"` AgentPassword string `help:"Custom password for /metrics endpoint"` ServiceParamsSource string `help:"Path to file with service parameters"` Environment string `help:"Environment name"` @@ -66,6 +66,25 @@ type AddProxySQLCommand struct { AddLogLevelFatalFlags } +// Determines if parameters were passed +var ( + usernameSpecified = false + passwordSpecified = false +) + +type username string +type password string + +func (u username) AfterApply() error { + usernameSpecified = true + return nil +} + +func (p password) AfterApply() error { + passwordSpecified = true + return nil +} + func (cmd *AddProxySQLCommand) GetServiceName() string { return cmd.ServiceName } @@ -109,12 +128,12 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { } if cmd.ServiceParamsSource == "" { - if cmd.Username == "" { - cmd.Username = cmd.GetDefaultUsername() + if !usernameSpecified { + cmd.Username = username(cmd.GetDefaultUsername()) } - if cmd.Password == "" { - cmd.Password = cmd.GetDefaultPassword() + if !passwordSpecified { + cmd.Password = password(cmd.GetDefaultPassword()) } } @@ -134,8 +153,8 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { Environment: cmd.Environment, Cluster: cmd.Cluster, ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, - Password: cmd.Password, + Username: string(cmd.Username), + Password: string(cmd.Password), AgentPassword: cmd.AgentPassword, ServiceParamsSource: cmd.ServiceParamsSource, From d8ba1208f0ead3a2ed581efaeb3b05db8d55c420 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Thu, 20 Oct 2022 22:21:25 +0200 Subject: [PATCH 27/29] PMM-10464 kong default values updates --- admin/commands/management/add.go | 24 +++++++++++++++++++ admin/commands/management/add_mysql.go | 24 +++++++++---------- admin/commands/management/add_postgresql.go | 26 ++++++++++----------- admin/commands/management/add_proxysql.go | 23 ++---------------- 4 files changed, 51 insertions(+), 46 deletions(-) diff --git a/admin/commands/management/add.go b/admin/commands/management/add.go index 729101f916..c228e52b70 100644 --- a/admin/commands/management/add.go +++ b/admin/commands/management/add.go @@ -97,3 +97,27 @@ func processGlobalAddFlagsWithSocket(cmd connectionGetter, opts AddCommonFlags) return serviceName, socket, host, uint16(portI), nil } + +// Determine if parameters were passed. +var ( + usernameParameterSpecified = false + passwordParameterSpecified = false +) + +// Types for username and password +type ( + username string + password string +) + +// AfterApply Change usernameParameterSpecified flag if argument was passed +func (u username) AfterApply() error { + usernameParameterSpecified = true + return nil +} + +// AfterApply Change passwordParameterSpecified flag if argument was passed +func (p password) AfterApply() error { + passwordParameterSpecified = true + return nil +} diff --git a/admin/commands/management/add_mysql.go b/admin/commands/management/add_mysql.go index 12221179aa..b6bbeb8718 100644 --- a/admin/commands/management/add_mysql.go +++ b/admin/commands/management/add_mysql.go @@ -89,15 +89,15 @@ func (res *addMySQLResult) TablestatStatus() string { // AddMySQLCommand is used by Kong for CLI flags and commands. type AddMySQLCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-mysql" help:"Service name (autodetected default: ${hostname}-mysql)"` - Address string `arg:"" optional:"" help:"MySQL address and port (default: 127.0.0.1:3306)"` - Socket string `help:"Path to MySQL socket"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` - Username string `help:"MySQL username"` - Password string `help:"MySQL password"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - ServiceParamsSource string `help:"Path to file with service parameters"` + ServiceName string `name:"name" arg:"" default:"${hostname}-mysql" help:"Service name (autodetected default: ${hostname}-mysql)"` + Address string `arg:"" optional:"" help:"MySQL address and port (default: 127.0.0.1:3306)"` + Socket string `help:"Path to MySQL socket"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + Username username `help:"MySQL username"` + Password string `help:"MySQL password"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` // TODO add "auto", make it default QuerySource string `default:"${mysqlQuerySourceDefault}" enum:"${mysqlQuerySourcesEnum}" help:"Source of SQL queries, one of: ${mysqlQuerySourcesEnum} (default: ${mysqlQuerySourceDefault})"` MaxQueryLength int32 `placeholder:"NUMBER" help:"Limit query length in QAN (default: server-defined; -1: no limit)"` @@ -186,8 +186,8 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.ServiceParamsSource == "" && cmd.Username == "" { - cmd.Username = cmd.GetDefaultUsername() + if cmd.ServiceParamsSource == "" && !usernameParameterSpecified { + cmd.Username = username(cmd.GetDefaultUsername()) } serviceName, socket, host, port, err := processGlobalAddFlagsWithSocket(cmd, cmd.AddCommonFlags) @@ -215,7 +215,7 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) { Environment: cmd.Environment, Cluster: cmd.Cluster, ReplicationSet: cmd.ReplicationSet, - Username: cmd.Username, + Username: string(cmd.Username), Password: cmd.Password, AgentPassword: cmd.AgentPassword, CustomLabels: customLabels, diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index c2a9e6a039..9341ebaa32 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -43,16 +43,16 @@ func (res *addPostgreSQLResult) String() string { // AddPostgreSQLCommand is used by Kong for CLI flags and commands. type AddPostgreSQLCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-postgresql" help:"Service name (autodetected default: ${hostname}-postgresql)"` - Address string `arg:"" optional:"" help:"PostgreSQL address and port (default: 127.0.0.1:5432)"` - Socket string `help:"Path to socket"` - Username string `help:"PostgreSQL username"` - Password string `help:"PostgreSQL password"` - Database string `help:"PostgreSQL database"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - ServiceParamsSource string `help:"Path to file with service parameters"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + ServiceName string `name:"name" arg:"" default:"${hostname}-postgresql" help:"Service name (autodetected default: ${hostname}-postgresql)"` + Address string `arg:"" optional:"" help:"PostgreSQL address and port (default: 127.0.0.1:5432)"` + Socket string `help:"Path to socket"` + Username username `help:"PostgreSQL username"` + Password string `help:"PostgreSQL password"` + Database string `help:"PostgreSQL database"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` // TODO add "auto" QuerySource string `default:"pgstatements" help:"Source of SQL queries, one of: pgstatements, pgstatmonitor, none (default: pgstatements)"` Environment string `help:"Environment name"` @@ -112,8 +112,8 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.ServiceParamsSource == "" && cmd.Username == "" { - cmd.Username = cmd.GetDefaultUsername() + if cmd.ServiceParamsSource == "" && !usernameParameterSpecified { + cmd.Username = username(cmd.GetDefaultUsername()) } serviceName, socket, host, port, err := processGlobalAddFlagsWithSocket(cmd, cmd.AddCommonFlags) @@ -158,7 +158,7 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) { Address: host, Port: int64(port), - Username: cmd.Username, + Username: string(cmd.Username), Password: cmd.Password, Database: cmd.Database, AgentPassword: cmd.AgentPassword, diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index 0a69b1cf07..df74dacdb1 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -66,25 +66,6 @@ type AddProxySQLCommand struct { AddLogLevelFatalFlags } -// Determines if parameters were passed -var ( - usernameSpecified = false - passwordSpecified = false -) - -type username string -type password string - -func (u username) AfterApply() error { - usernameSpecified = true - return nil -} - -func (p password) AfterApply() error { - passwordSpecified = true - return nil -} - func (cmd *AddProxySQLCommand) GetServiceName() string { return cmd.ServiceName } @@ -128,11 +109,11 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { } if cmd.ServiceParamsSource == "" { - if !usernameSpecified { + if !usernameParameterSpecified { cmd.Username = username(cmd.GetDefaultUsername()) } - if !passwordSpecified { + if !passwordParameterSpecified { cmd.Password = password(cmd.GetDefaultPassword()) } } From eaadde038a55d644438de50c7a3a11a800d322ef Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Mon, 24 Oct 2022 22:48:59 +0200 Subject: [PATCH 28/29] PMM-10464 Adding TODO. --- admin/commands/management/add.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/commands/management/add.go b/admin/commands/management/add.go index c228e52b70..54371a3a6e 100644 --- a/admin/commands/management/add.go +++ b/admin/commands/management/add.go @@ -98,6 +98,8 @@ func processGlobalAddFlagsWithSocket(cmd connectionGetter, opts AddCommonFlags) return serviceName, socket, host, uint16(portI), nil } +// TODO: replace with pointers https://github.com/alecthomas/kong#pointers after bump of Kong's version. +// Current v0.6.1 doesn't support pointer fields: https://github.com/alecthomas/kong/pull/296 // Determine if parameters were passed. var ( usernameParameterSpecified = false From d7b570fecb84bb3d4863672f61670afb467cd154 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kadej Date: Tue, 25 Oct 2022 20:12:53 +0200 Subject: [PATCH 29/29] PMM-10464 Bumping Kong + pointers for username/passwords in pmm-admin. --- admin/commands/management/add.go | 26 --------------------- admin/commands/management/add_mysql.go | 24 +++++++++---------- admin/commands/management/add_postgresql.go | 26 ++++++++++----------- admin/commands/management/add_proxysql.go | 16 ++++++------- go.mod | 2 +- go.sum | 10 ++++---- 6 files changed, 39 insertions(+), 65 deletions(-) diff --git a/admin/commands/management/add.go b/admin/commands/management/add.go index 54371a3a6e..729101f916 100644 --- a/admin/commands/management/add.go +++ b/admin/commands/management/add.go @@ -97,29 +97,3 @@ func processGlobalAddFlagsWithSocket(cmd connectionGetter, opts AddCommonFlags) return serviceName, socket, host, uint16(portI), nil } - -// TODO: replace with pointers https://github.com/alecthomas/kong#pointers after bump of Kong's version. -// Current v0.6.1 doesn't support pointer fields: https://github.com/alecthomas/kong/pull/296 -// Determine if parameters were passed. -var ( - usernameParameterSpecified = false - passwordParameterSpecified = false -) - -// Types for username and password -type ( - username string - password string -) - -// AfterApply Change usernameParameterSpecified flag if argument was passed -func (u username) AfterApply() error { - usernameParameterSpecified = true - return nil -} - -// AfterApply Change passwordParameterSpecified flag if argument was passed -func (p password) AfterApply() error { - passwordParameterSpecified = true - return nil -} diff --git a/admin/commands/management/add_mysql.go b/admin/commands/management/add_mysql.go index b6bbeb8718..ef5ce6f411 100644 --- a/admin/commands/management/add_mysql.go +++ b/admin/commands/management/add_mysql.go @@ -89,15 +89,15 @@ func (res *addMySQLResult) TablestatStatus() string { // AddMySQLCommand is used by Kong for CLI flags and commands. type AddMySQLCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-mysql" help:"Service name (autodetected default: ${hostname}-mysql)"` - Address string `arg:"" optional:"" help:"MySQL address and port (default: 127.0.0.1:3306)"` - Socket string `help:"Path to MySQL socket"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` - Username username `help:"MySQL username"` - Password string `help:"MySQL password"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - ServiceParamsSource string `help:"Path to file with service parameters"` + ServiceName string `name:"name" arg:"" default:"${hostname}-mysql" help:"Service name (autodetected default: ${hostname}-mysql)"` + Address string `arg:"" optional:"" help:"MySQL address and port (default: 127.0.0.1:3306)"` + Socket string `help:"Path to MySQL socket"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + Username *string `help:"MySQL username"` + Password string `help:"MySQL password"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` // TODO add "auto", make it default QuerySource string `default:"${mysqlQuerySourceDefault}" enum:"${mysqlQuerySourcesEnum}" help:"Source of SQL queries, one of: ${mysqlQuerySourcesEnum} (default: ${mysqlQuerySourceDefault})"` MaxQueryLength int32 `placeholder:"NUMBER" help:"Limit query length in QAN (default: server-defined; -1: no limit)"` @@ -186,8 +186,8 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.ServiceParamsSource == "" && !usernameParameterSpecified { - cmd.Username = username(cmd.GetDefaultUsername()) + if cmd.ServiceParamsSource == "" && cmd.Username == nil { + cmd.Username = pointer.ToString(cmd.GetDefaultUsername()) } serviceName, socket, host, port, err := processGlobalAddFlagsWithSocket(cmd, cmd.AddCommonFlags) @@ -215,7 +215,7 @@ func (cmd *AddMySQLCommand) RunCmd() (commands.Result, error) { Environment: cmd.Environment, Cluster: cmd.Cluster, ReplicationSet: cmd.ReplicationSet, - Username: string(cmd.Username), + Username: pointer.GetString(cmd.Username), Password: cmd.Password, AgentPassword: cmd.AgentPassword, CustomLabels: customLabels, diff --git a/admin/commands/management/add_postgresql.go b/admin/commands/management/add_postgresql.go index 9341ebaa32..728a026d05 100644 --- a/admin/commands/management/add_postgresql.go +++ b/admin/commands/management/add_postgresql.go @@ -43,16 +43,16 @@ func (res *addPostgreSQLResult) String() string { // AddPostgreSQLCommand is used by Kong for CLI flags and commands. type AddPostgreSQLCommand struct { - ServiceName string `name:"name" arg:"" default:"${hostname}-postgresql" help:"Service name (autodetected default: ${hostname}-postgresql)"` - Address string `arg:"" optional:"" help:"PostgreSQL address and port (default: 127.0.0.1:5432)"` - Socket string `help:"Path to socket"` - Username username `help:"PostgreSQL username"` - Password string `help:"PostgreSQL password"` - Database string `help:"PostgreSQL database"` - AgentPassword string `help:"Custom password for /metrics endpoint"` - ServiceParamsSource string `help:"Path to file with service parameters"` - NodeID string `help:"Node ID (default is autodetected)"` - PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` + ServiceName string `name:"name" arg:"" default:"${hostname}-postgresql" help:"Service name (autodetected default: ${hostname}-postgresql)"` + Address string `arg:"" optional:"" help:"PostgreSQL address and port (default: 127.0.0.1:5432)"` + Socket string `help:"Path to socket"` + Username *string `help:"PostgreSQL username"` + Password string `help:"PostgreSQL password"` + Database string `help:"PostgreSQL database"` + AgentPassword string `help:"Custom password for /metrics endpoint"` + ServiceParamsSource string `help:"Path to file with service parameters"` + NodeID string `help:"Node ID (default is autodetected)"` + PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` // TODO add "auto" QuerySource string `default:"pgstatements" help:"Source of SQL queries, one of: pgstatements, pgstatmonitor, none (default: pgstatements)"` Environment string `help:"Environment name"` @@ -112,8 +112,8 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) { } } - if cmd.ServiceParamsSource == "" && !usernameParameterSpecified { - cmd.Username = username(cmd.GetDefaultUsername()) + if cmd.ServiceParamsSource == "" && cmd.Username == nil { + cmd.Username = pointer.ToString(cmd.GetDefaultUsername()) } serviceName, socket, host, port, err := processGlobalAddFlagsWithSocket(cmd, cmd.AddCommonFlags) @@ -158,7 +158,7 @@ func (cmd *AddPostgreSQLCommand) RunCmd() (commands.Result, error) { Address: host, Port: int64(port), - Username: string(cmd.Username), + Username: pointer.GetString(cmd.Username), Password: cmd.Password, Database: cmd.Database, AgentPassword: cmd.AgentPassword, diff --git a/admin/commands/management/add_proxysql.go b/admin/commands/management/add_proxysql.go index df74dacdb1..c39ec786f6 100644 --- a/admin/commands/management/add_proxysql.go +++ b/admin/commands/management/add_proxysql.go @@ -48,8 +48,8 @@ type AddProxySQLCommand struct { Socket string `help:"Path to ProxySQL socket"` NodeID string `help:"Node ID (default is autodetected)"` PMMAgentID string `help:"The pmm-agent identifier which runs this instance (default is autodetected)"` - Username username `help:"ProxySQL username"` - Password password `help:"ProxySQL password"` + Username *string `help:"ProxySQL username"` + Password *string `help:"ProxySQL password"` AgentPassword string `help:"Custom password for /metrics endpoint"` ServiceParamsSource string `help:"Path to file with service parameters"` Environment string `help:"Environment name"` @@ -109,12 +109,12 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { } if cmd.ServiceParamsSource == "" { - if !usernameParameterSpecified { - cmd.Username = username(cmd.GetDefaultUsername()) + if cmd.Username == nil { + cmd.Username = pointer.ToString(cmd.GetDefaultUsername()) } - if !passwordParameterSpecified { - cmd.Password = password(cmd.GetDefaultPassword()) + if cmd.Password == nil { + cmd.Password = pointer.ToString(cmd.GetDefaultPassword()) } } @@ -134,8 +134,8 @@ func (cmd *AddProxySQLCommand) RunCmd() (commands.Result, error) { Environment: cmd.Environment, Cluster: cmd.Cluster, ReplicationSet: cmd.ReplicationSet, - Username: string(cmd.Username), - Password: string(cmd.Password), + Username: pointer.GetString(cmd.Username), + Password: pointer.GetString(cmd.Password), AgentPassword: cmd.AgentPassword, ServiceParamsSource: cmd.ServiceParamsSource, diff --git a/go.mod b/go.mod index ce67fae529..7c7d15f095 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/AlekSi/pointer v1.2.0 github.com/ClickHouse/clickhouse-go/v2 v2.3.0 github.com/DATA-DOG/go-sqlmock v1.5.0 - github.com/alecthomas/kong v0.6.1 + github.com/alecthomas/kong v0.7.0 github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d github.com/aws/aws-sdk-go v1.44.121 diff --git a/go.sum b/go.sum index e276c57b7d..266162e54b 100644 --- a/go.sum +++ b/go.sum @@ -64,10 +64,10 @@ github.com/Percona-Lab/pg_query_go v1.0.3-percona/go.mod h1:tR53lU3ddnExxb0XeLyY github.com/Percona-Lab/spec v0.20.5-percona h1:ViCJVq52QIZxpP8/Nv4/nIed+WnqUirNjPtXvHhset4= github.com/Percona-Lab/spec v0.20.5-percona/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc= -github.com/alecthomas/kong v0.6.1 h1:1kNhcFepkR+HmasQpbiKDLylIL8yh5B5y1zPp5bJimA= -github.com/alecthomas/kong v0.6.1/go.mod h1:JfHWDzLmbh/puW6I3V7uWenoh56YNVONW+w8eKeUr9I= -github.com/alecthomas/repr v0.0.0-20210801044451-80ca428c5142 h1:8Uy0oSf5co/NZXje7U1z8Mpep++QJOldL2hs/sBQf48= -github.com/alecthomas/repr v0.0.0-20210801044451-80ca428c5142/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8= +github.com/alecthomas/assert/v2 v2.1.0 h1:tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2ojoH/0= +github.com/alecthomas/kong v0.7.0 h1:YIjJUiR7AcmHxL87UlbPn0gyIGwl4+nYND0OQ4ojP7k= +github.com/alecthomas/kong v0.7.0/go.mod h1:n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U= +github.com/alecthomas/repr v0.1.0 h1:ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= @@ -354,6 +354,7 @@ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+l github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/memberlist v0.3.1 h1:MXgUXLqva1QvpVEDQW1IQLG0wivQAtmFlHRQ+1vWZfM= github.com/hashicorp/memberlist v0.3.1/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= github.com/jackc/fake v0.0.0-20150926172116-812a484cc733/go.mod h1:WrMFNQdiFJ80sQsxDoMokWK1W5TQtxBFNpzWTD84ibQ= @@ -614,7 +615,6 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=