From a28a9ba3a7f59694d2655fe808ea1c7d9a4bebf7 Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Wed, 29 Apr 2026 15:38:54 +0200 Subject: [PATCH 01/15] Add ElastiCache auto-discovery for Valkey/Redis services Add background auto-discovery that periodically scans AWS ElastiCache replication groups tagged with pmm_enable=true and registers them as Valkey services in PMM inventory. Features: - DiscoverElastiCache API endpoint for manual discovery via Swagger/UI - Background reconciler running every 5 minutes - Supports Cluster Mode Enabled (ConfigurationEndpoint) and Disabled (Primary + Reader endpoints per shard) - Filters out clusters with AUTH/ACL enabled (no credentials support) - Uses AWS "Environment" tag for PMM environment label - Auto-removes services when pmm_enable=true tag is removed - New RemoteElastiCacheNode type for inventory tracking Co-Authored-By: Claude Opus 4.6 (1M context) --- .../nodes_service/add_node_responses.go | 226 ++++ .../nodes_service/get_node_responses.go | 116 ++ .../nodes_service/list_nodes_responses.go | 125 ++ api/inventory/v1/json/v1.json | 195 ++- api/inventory/v1/nodes.go | 1 + api/inventory/v1/nodes.pb.go | 555 +++++++-- api/inventory/v1/nodes.pb.validate.go | 417 +++++++ api/inventory/v1/nodes.proto | 42 + api/management/v1/elasticache.pb.go | 722 +++++++++++ api/management/v1/elasticache.pb.validate.go | 772 ++++++++++++ api/management/v1/elasticache.proto | 103 ++ .../add_service_responses.go | 1058 ++++++++++++++++- .../discover_elasti_cache_parameters.go | 144 +++ .../discover_elasti_cache_responses.go | 687 +++++++++++ .../management_service_client.go | 46 + .../register_node_responses.go | 7 +- api/management/v1/json/v1.json | 533 ++++++++- api/management/v1/service.pb.go | 216 ++-- api/management/v1/service.pb.gw.go | 66 + api/management/v1/service.pb.validate.go | 82 ++ api/management/v1/service.proto | 14 + api/management/v1/service_grpc.pb.go | 41 + api/swagger/swagger-dev.json | 1012 +++++++++++++--- api/swagger/swagger.json | 1012 +++++++++++++--- go.mod | 7 +- go.sum | 14 +- managed/cmd/pmm-managed/main.go | 6 + managed/models/node_model.go | 1 + managed/services/converters.go | 13 + .../services/inventory/grpc/nodes_server.go | 5 + managed/services/inventory/nodes.go | 40 + managed/services/management/elasticache.go | 333 ++++++ .../management/elasticache_discovery.go | 503 ++++++++ managed/services/management/service.go | 6 +- 34 files changed, 8526 insertions(+), 594 deletions(-) create mode 100644 api/management/v1/elasticache.pb.go create mode 100644 api/management/v1/elasticache.pb.validate.go create mode 100644 api/management/v1/elasticache.proto create mode 100644 api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go create mode 100644 api/management/v1/json/client/management_service/discover_elasti_cache_responses.go create mode 100644 managed/services/management/elasticache.go create mode 100644 managed/services/management/elasticache_discovery.go diff --git a/api/inventory/v1/json/client/nodes_service/add_node_responses.go b/api/inventory/v1/json/client/nodes_service/add_node_responses.go index 6d671e6a8b3..69ee556e1d1 100644 --- a/api/inventory/v1/json/client/nodes_service/add_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/add_node_responses.go @@ -204,6 +204,9 @@ type AddNodeBody struct { // remote azure RemoteAzure *AddNodeParamsBodyRemoteAzure `json:"remote_azure,omitempty"` + // remote elasticache + RemoteElasticache *AddNodeParamsBodyRemoteElasticache `json:"remote_elasticache,omitempty"` + // remote rds RemoteRDS *AddNodeParamsBodyRemoteRDS `json:"remote_rds,omitempty"` } @@ -228,6 +231,10 @@ func (o *AddNodeBody) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := o.validateRemoteElasticache(formats); err != nil { + res = append(res, err) + } + if err := o.validateRemoteRDS(formats); err != nil { res = append(res, err) } @@ -330,6 +337,29 @@ func (o *AddNodeBody) validateRemoteAzure(formats strfmt.Registry) error { return nil } +func (o *AddNodeBody) validateRemoteElasticache(formats strfmt.Registry) error { + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + if o.RemoteElasticache != nil { + if err := o.RemoteElasticache.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("body" + "." + "remote_elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("body" + "." + "remote_elasticache") + } + + return err + } + } + + return nil +} + func (o *AddNodeBody) validateRemoteRDS(formats strfmt.Registry) error { if swag.IsZero(o.RemoteRDS) { // not required return nil @@ -373,6 +403,10 @@ func (o *AddNodeBody) ContextValidate(ctx context.Context, formats strfmt.Regist res = append(res, err) } + if err := o.contextValidateRemoteElasticache(ctx, formats); err != nil { + res = append(res, err) + } + if err := o.contextValidateRemoteRDS(ctx, formats); err != nil { res = append(res, err) } @@ -479,6 +513,30 @@ func (o *AddNodeBody) contextValidateRemoteAzure(ctx context.Context, formats st return nil } +func (o *AddNodeBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteElasticache != nil { + + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + if err := o.RemoteElasticache.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("body" + "." + "remote_elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("body" + "." + "remote_elasticache") + } + + return err + } + } + + return nil +} + func (o *AddNodeBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { if o.RemoteRDS != nil { @@ -766,6 +824,9 @@ type AddNodeOKBody struct { // remote azure database RemoteAzureDatabase *AddNodeOKBodyRemoteAzureDatabase `json:"remote_azure_database,omitempty"` + // remote elasticache + RemoteElasticache *AddNodeOKBodyRemoteElasticache `json:"remote_elasticache,omitempty"` + // remote rds RemoteRDS *AddNodeOKBodyRemoteRDS `json:"remote_rds,omitempty"` } @@ -790,6 +851,10 @@ func (o *AddNodeOKBody) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := o.validateRemoteElasticache(formats); err != nil { + res = append(res, err) + } + if err := o.validateRemoteRDS(formats); err != nil { res = append(res, err) } @@ -892,6 +957,29 @@ func (o *AddNodeOKBody) validateRemoteAzureDatabase(formats strfmt.Registry) err return nil } +func (o *AddNodeOKBody) validateRemoteElasticache(formats strfmt.Registry) error { + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + if o.RemoteElasticache != nil { + if err := o.RemoteElasticache.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addNodeOk" + "." + "remote_elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addNodeOk" + "." + "remote_elasticache") + } + + return err + } + } + + return nil +} + func (o *AddNodeOKBody) validateRemoteRDS(formats strfmt.Registry) error { if swag.IsZero(o.RemoteRDS) { // not required return nil @@ -935,6 +1023,10 @@ func (o *AddNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi res = append(res, err) } + if err := o.contextValidateRemoteElasticache(ctx, formats); err != nil { + res = append(res, err) + } + if err := o.contextValidateRemoteRDS(ctx, formats); err != nil { res = append(res, err) } @@ -1041,6 +1133,30 @@ func (o *AddNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, return nil } +func (o *AddNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteElasticache != nil { + + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + if err := o.RemoteElasticache.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addNodeOk" + "." + "remote_elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addNodeOk" + "." + "remote_elasticache") + } + + return err + } + } + + return nil +} + func (o *AddNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { if o.RemoteRDS != nil { @@ -1324,6 +1440,64 @@ func (o *AddNodeOKBodyRemoteAzureDatabase) UnmarshalBinary(b []byte) error { return nil } +/* +AddNodeOKBodyRemoteElasticache RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes. +swagger:model AddNodeOKBodyRemoteElasticache +*/ +type AddNodeOKBodyRemoteElasticache struct { + // Unique randomly generated instance identifier. + NodeID string `json:"node_id,omitempty"` + + // Unique across all Nodes user-defined name. + NodeName string `json:"node_name,omitempty"` + + // ElastiCache primary endpoint address. + Address string `json:"address,omitempty"` + + // Node model (cache node type). + NodeModel string `json:"node_model,omitempty"` + + // Node region. + Region string `json:"region,omitempty"` + + // Node availability zone. + Az string `json:"az,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AWS instance ID (replication group ID). + InstanceID string `json:"instance_id,omitempty"` +} + +// Validate validates this add node OK body remote elasticache +func (o *AddNodeOKBodyRemoteElasticache) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add node OK body remote elasticache based on context it is used +func (o *AddNodeOKBodyRemoteElasticache) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddNodeOKBodyRemoteElasticache) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddNodeOKBodyRemoteElasticache) UnmarshalBinary(b []byte) error { + var res AddNodeOKBodyRemoteElasticache + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + /* AddNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. swagger:model AddNodeOKBodyRemoteRDS @@ -1605,6 +1779,58 @@ func (o *AddNodeParamsBodyRemoteAzure) UnmarshalBinary(b []byte) error { return nil } +/* +AddNodeParamsBodyRemoteElasticache add node params body remote elasticache +swagger:model AddNodeParamsBodyRemoteElasticache +*/ +type AddNodeParamsBodyRemoteElasticache struct { + // Unique across all Nodes user-defined name. + NodeName string `json:"node_name,omitempty"` + + // ElastiCache primary endpoint address. + Address string `json:"address,omitempty"` + + // Node model (cache node type). + NodeModel string `json:"node_model,omitempty"` + + // Node region. + Region string `json:"region,omitempty"` + + // Node availability zone. + Az string `json:"az,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` +} + +// Validate validates this add node params body remote elasticache +func (o *AddNodeParamsBodyRemoteElasticache) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add node params body remote elasticache based on context it is used +func (o *AddNodeParamsBodyRemoteElasticache) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddNodeParamsBodyRemoteElasticache) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddNodeParamsBodyRemoteElasticache) UnmarshalBinary(b []byte) error { + var res AddNodeParamsBodyRemoteElasticache + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + /* AddNodeParamsBodyRemoteRDS add node params body remote RDS swagger:model AddNodeParamsBodyRemoteRDS diff --git a/api/inventory/v1/json/client/nodes_service/get_node_responses.go b/api/inventory/v1/json/client/nodes_service/get_node_responses.go index 40f3bb381f9..7f5342b5ad8 100644 --- a/api/inventory/v1/json/client/nodes_service/get_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/get_node_responses.go @@ -432,6 +432,9 @@ type GetNodeOKBody struct { // remote azure database RemoteAzureDatabase *GetNodeOKBodyRemoteAzureDatabase `json:"remote_azure_database,omitempty"` + // remote elasticache + RemoteElasticache *GetNodeOKBodyRemoteElasticache `json:"remote_elasticache,omitempty"` + // remote rds RemoteRDS *GetNodeOKBodyRemoteRDS `json:"remote_rds,omitempty"` } @@ -456,6 +459,10 @@ func (o *GetNodeOKBody) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := o.validateRemoteElasticache(formats); err != nil { + res = append(res, err) + } + if err := o.validateRemoteRDS(formats); err != nil { res = append(res, err) } @@ -558,6 +565,29 @@ func (o *GetNodeOKBody) validateRemoteAzureDatabase(formats strfmt.Registry) err return nil } +func (o *GetNodeOKBody) validateRemoteElasticache(formats strfmt.Registry) error { + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + if o.RemoteElasticache != nil { + if err := o.RemoteElasticache.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("getNodeOk" + "." + "remote_elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("getNodeOk" + "." + "remote_elasticache") + } + + return err + } + } + + return nil +} + func (o *GetNodeOKBody) validateRemoteRDS(formats strfmt.Registry) error { if swag.IsZero(o.RemoteRDS) { // not required return nil @@ -601,6 +631,10 @@ func (o *GetNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi res = append(res, err) } + if err := o.contextValidateRemoteElasticache(ctx, formats); err != nil { + res = append(res, err) + } + if err := o.contextValidateRemoteRDS(ctx, formats); err != nil { res = append(res, err) } @@ -707,6 +741,30 @@ func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, return nil } +func (o *GetNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteElasticache != nil { + + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + if err := o.RemoteElasticache.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("getNodeOk" + "." + "remote_elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("getNodeOk" + "." + "remote_elasticache") + } + + return err + } + } + + return nil +} + func (o *GetNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { if o.RemoteRDS != nil { @@ -990,6 +1048,64 @@ func (o *GetNodeOKBodyRemoteAzureDatabase) UnmarshalBinary(b []byte) error { return nil } +/* +GetNodeOKBodyRemoteElasticache RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes. +swagger:model GetNodeOKBodyRemoteElasticache +*/ +type GetNodeOKBodyRemoteElasticache struct { + // Unique randomly generated instance identifier. + NodeID string `json:"node_id,omitempty"` + + // Unique across all Nodes user-defined name. + NodeName string `json:"node_name,omitempty"` + + // ElastiCache primary endpoint address. + Address string `json:"address,omitempty"` + + // Node model (cache node type). + NodeModel string `json:"node_model,omitempty"` + + // Node region. + Region string `json:"region,omitempty"` + + // Node availability zone. + Az string `json:"az,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AWS instance ID (replication group ID). + InstanceID string `json:"instance_id,omitempty"` +} + +// Validate validates this get node OK body remote elasticache +func (o *GetNodeOKBodyRemoteElasticache) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this get node OK body remote elasticache based on context it is used +func (o *GetNodeOKBodyRemoteElasticache) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *GetNodeOKBodyRemoteElasticache) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *GetNodeOKBodyRemoteElasticache) UnmarshalBinary(b []byte) error { + var res GetNodeOKBodyRemoteElasticache + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + /* GetNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't run on Remote RDS Nodes. swagger:model GetNodeOKBodyRemoteRDS diff --git a/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go b/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go index 15fa4eb9397..61197977382 100644 --- a/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go +++ b/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go @@ -434,6 +434,9 @@ type ListNodesOKBody struct { // remote azure database RemoteAzureDatabase []*ListNodesOKBodyRemoteAzureDatabaseItems0 `json:"remote_azure_database"` + + // remote elasticache + RemoteElasticache []*ListNodesOKBodyRemoteElasticacheItems0 `json:"remote_elasticache"` } // Validate validates this list nodes OK body @@ -460,6 +463,10 @@ func (o *ListNodesOKBody) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := o.validateRemoteElasticache(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -616,6 +623,36 @@ func (o *ListNodesOKBody) validateRemoteAzureDatabase(formats strfmt.Registry) e return nil } +func (o *ListNodesOKBody) validateRemoteElasticache(formats strfmt.Registry) error { + if swag.IsZero(o.RemoteElasticache) { // not required + return nil + } + + for i := 0; i < len(o.RemoteElasticache); i++ { + if swag.IsZero(o.RemoteElasticache[i]) { // not required + continue + } + + if o.RemoteElasticache[i] != nil { + if err := o.RemoteElasticache[i].Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("listNodesOk" + "." + "remote_elasticache" + "." + strconv.Itoa(i)) + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("listNodesOk" + "." + "remote_elasticache" + "." + strconv.Itoa(i)) + } + + return err + } + } + + } + + return nil +} + // ContextValidate validate this list nodes OK body based on the context it is used func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error @@ -640,6 +677,10 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re res = append(res, err) } + if err := o.contextValidateRemoteElasticache(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -776,6 +817,32 @@ func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context return nil } +func (o *ListNodesOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RemoteElasticache); i++ { + if o.RemoteElasticache[i] != nil { + + if swag.IsZero(o.RemoteElasticache[i]) { // not required + return nil + } + + if err := o.RemoteElasticache[i].ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("listNodesOk" + "." + "remote_elasticache" + "." + strconv.Itoa(i)) + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("listNodesOk" + "." + "remote_elasticache" + "." + strconv.Itoa(i)) + } + + return err + } + } + } + + return nil +} + // MarshalBinary interface implementation func (o *ListNodesOKBody) MarshalBinary() ([]byte, error) { if o == nil { @@ -980,6 +1047,64 @@ func (o *ListNodesOKBodyRemoteAzureDatabaseItems0) UnmarshalBinary(b []byte) err return nil } +/* +ListNodesOKBodyRemoteElasticacheItems0 RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes. +swagger:model ListNodesOKBodyRemoteElasticacheItems0 +*/ +type ListNodesOKBodyRemoteElasticacheItems0 struct { + // Unique randomly generated instance identifier. + NodeID string `json:"node_id,omitempty"` + + // Unique across all Nodes user-defined name. + NodeName string `json:"node_name,omitempty"` + + // ElastiCache primary endpoint address. + Address string `json:"address,omitempty"` + + // Node model (cache node type). + NodeModel string `json:"node_model,omitempty"` + + // Node region. + Region string `json:"region,omitempty"` + + // Node availability zone. + Az string `json:"az,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AWS instance ID (replication group ID). + InstanceID string `json:"instance_id,omitempty"` +} + +// Validate validates this list nodes OK body remote elasticache items0 +func (o *ListNodesOKBodyRemoteElasticacheItems0) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this list nodes OK body remote elasticache items0 based on context it is used +func (o *ListNodesOKBodyRemoteElasticacheItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *ListNodesOKBodyRemoteElasticacheItems0) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *ListNodesOKBodyRemoteElasticacheItems0) UnmarshalBinary(b []byte) error { + var res ListNodesOKBodyRemoteElasticacheItems0 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + 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. swagger:model ListNodesOKBodyRemoteItems0 diff --git a/api/inventory/v1/json/v1.json b/api/inventory/v1/json/v1.json index 18b9a0b485c..e8208c834d1 100644 --- a/api/inventory/v1/json/v1.json +++ b/api/inventory/v1/json/v1.json @@ -12038,7 +12038,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "type": "string", "default": "NODE_TYPE_UNSPECIFIED", @@ -12332,6 +12333,59 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "type": "array", + "items": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + } + }, + "x-order": 5 } } } @@ -12603,6 +12657,45 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "type": "object", + "properties": { + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 0 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 1 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 2 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 3 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 4 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 5 + } + }, + "x-order": 5 } } } @@ -12878,6 +12971,56 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 5 } } } @@ -13203,6 +13346,56 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 5 } } } diff --git a/api/inventory/v1/nodes.go b/api/inventory/v1/nodes.go index 17876875dc0..3461f624bd9 100644 --- a/api/inventory/v1/nodes.go +++ b/api/inventory/v1/nodes.go @@ -29,3 +29,4 @@ func (*ContainerNode) sealedNode() {} func (*RemoteNode) sealedNode() {} func (*RemoteRDSNode) sealedNode() {} func (*RemoteAzureDatabaseNode) sealedNode() {} +func (*RemoteElastiCacheNode) sealedNode() {} diff --git a/api/inventory/v1/nodes.pb.go b/api/inventory/v1/nodes.pb.go index 447663477a9..ff36f1798c5 100644 --- a/api/inventory/v1/nodes.pb.go +++ b/api/inventory/v1/nodes.pb.go @@ -35,6 +35,7 @@ const ( NodeType_NODE_TYPE_REMOTE_NODE NodeType = 3 NodeType_NODE_TYPE_REMOTE_RDS_NODE NodeType = 4 NodeType_NODE_TYPE_REMOTE_AZURE_DATABASE_NODE NodeType = 5 + NodeType_NODE_TYPE_REMOTE_ELASTICACHE_NODE NodeType = 6 ) // Enum value maps for NodeType. @@ -46,6 +47,7 @@ var ( 3: "NODE_TYPE_REMOTE_NODE", 4: "NODE_TYPE_REMOTE_RDS_NODE", 5: "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + 6: "NODE_TYPE_REMOTE_ELASTICACHE_NODE", } NodeType_value = map[string]int32{ "NODE_TYPE_UNSPECIFIED": 0, @@ -54,6 +56,7 @@ var ( "NODE_TYPE_REMOTE_NODE": 3, "NODE_TYPE_REMOTE_RDS_NODE": 4, "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE": 5, + "NODE_TYPE_REMOTE_ELASTICACHE_NODE": 6, } ) @@ -656,6 +659,115 @@ func (x *RemoteAzureDatabaseNode) GetCustomLabels() map[string]string { return nil } +// RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes. +type RemoteElastiCacheNode struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Unique randomly generated instance identifier. + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Unique across all Nodes user-defined name. + NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + // ElastiCache primary endpoint address. + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + // Node model (cache node type). + NodeModel string `protobuf:"bytes,4,opt,name=node_model,json=nodeModel,proto3" json:"node_model,omitempty"` + // Node region. + Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` + // Node availability zone. + Az string `protobuf:"bytes,6,opt,name=az,proto3" json:"az,omitempty"` + // Custom user-assigned labels. + CustomLabels map[string]string `protobuf:"bytes,7,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // AWS instance ID (replication group ID). + InstanceId string `protobuf:"bytes,8,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RemoteElastiCacheNode) Reset() { + *x = RemoteElastiCacheNode{} + mi := &file_inventory_v1_nodes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RemoteElastiCacheNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoteElastiCacheNode) ProtoMessage() {} + +func (x *RemoteElastiCacheNode) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_nodes_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoteElastiCacheNode.ProtoReflect.Descriptor instead. +func (*RemoteElastiCacheNode) Descriptor() ([]byte, []int) { + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{5} +} + +func (x *RemoteElastiCacheNode) GetNodeId() string { + if x != nil { + return x.NodeId + } + return "" +} + +func (x *RemoteElastiCacheNode) GetNodeName() string { + if x != nil { + return x.NodeName + } + return "" +} + +func (x *RemoteElastiCacheNode) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *RemoteElastiCacheNode) GetNodeModel() string { + if x != nil { + return x.NodeModel + } + return "" +} + +func (x *RemoteElastiCacheNode) GetRegion() string { + if x != nil { + return x.Region + } + return "" +} + +func (x *RemoteElastiCacheNode) GetAz() string { + if x != nil { + return x.Az + } + return "" +} + +func (x *RemoteElastiCacheNode) GetCustomLabels() map[string]string { + if x != nil { + return x.CustomLabels + } + return nil +} + +func (x *RemoteElastiCacheNode) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + type ListNodesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Return only Nodes with matching Node type. @@ -666,7 +778,7 @@ type ListNodesRequest struct { func (x *ListNodesRequest) Reset() { *x = ListNodesRequest{} - mi := &file_inventory_v1_nodes_proto_msgTypes[5] + mi := &file_inventory_v1_nodes_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -678,7 +790,7 @@ func (x *ListNodesRequest) String() string { func (*ListNodesRequest) ProtoMessage() {} func (x *ListNodesRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[5] + mi := &file_inventory_v1_nodes_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -691,7 +803,7 @@ func (x *ListNodesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNodesRequest.ProtoReflect.Descriptor instead. func (*ListNodesRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{5} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{6} } func (x *ListNodesRequest) GetNodeType() NodeType { @@ -708,13 +820,14 @@ type ListNodesResponse struct { Remote []*RemoteNode `protobuf:"bytes,3,rep,name=remote,proto3" json:"remote,omitempty"` RemoteRds []*RemoteRDSNode `protobuf:"bytes,4,rep,name=remote_rds,json=remoteRds,proto3" json:"remote_rds,omitempty"` RemoteAzureDatabase []*RemoteAzureDatabaseNode `protobuf:"bytes,5,rep,name=remote_azure_database,json=remoteAzureDatabase,proto3" json:"remote_azure_database,omitempty"` + RemoteElasticache []*RemoteElastiCacheNode `protobuf:"bytes,6,rep,name=remote_elasticache,json=remoteElasticache,proto3" json:"remote_elasticache,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListNodesResponse) Reset() { *x = ListNodesResponse{} - mi := &file_inventory_v1_nodes_proto_msgTypes[6] + mi := &file_inventory_v1_nodes_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -726,7 +839,7 @@ func (x *ListNodesResponse) String() string { func (*ListNodesResponse) ProtoMessage() {} func (x *ListNodesResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[6] + mi := &file_inventory_v1_nodes_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -739,7 +852,7 @@ func (x *ListNodesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNodesResponse.ProtoReflect.Descriptor instead. func (*ListNodesResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{6} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{7} } func (x *ListNodesResponse) GetGeneric() []*GenericNode { @@ -777,6 +890,13 @@ func (x *ListNodesResponse) GetRemoteAzureDatabase() []*RemoteAzureDatabaseNode return nil } +func (x *ListNodesResponse) GetRemoteElasticache() []*RemoteElastiCacheNode { + if x != nil { + return x.RemoteElasticache + } + return nil +} + type GetNodeRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Unique randomly generated instance identifier. @@ -787,7 +907,7 @@ type GetNodeRequest struct { func (x *GetNodeRequest) Reset() { *x = GetNodeRequest{} - mi := &file_inventory_v1_nodes_proto_msgTypes[7] + mi := &file_inventory_v1_nodes_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -799,7 +919,7 @@ func (x *GetNodeRequest) String() string { func (*GetNodeRequest) ProtoMessage() {} func (x *GetNodeRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[7] + mi := &file_inventory_v1_nodes_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -812,7 +932,7 @@ func (x *GetNodeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetNodeRequest.ProtoReflect.Descriptor instead. func (*GetNodeRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{7} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{8} } func (x *GetNodeRequest) GetNodeId() string { @@ -831,6 +951,7 @@ type GetNodeResponse struct { // *GetNodeResponse_Remote // *GetNodeResponse_RemoteRds // *GetNodeResponse_RemoteAzureDatabase + // *GetNodeResponse_RemoteElasticache Node isGetNodeResponse_Node `protobuf_oneof:"node"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -838,7 +959,7 @@ type GetNodeResponse struct { func (x *GetNodeResponse) Reset() { *x = GetNodeResponse{} - mi := &file_inventory_v1_nodes_proto_msgTypes[8] + mi := &file_inventory_v1_nodes_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -850,7 +971,7 @@ func (x *GetNodeResponse) String() string { func (*GetNodeResponse) ProtoMessage() {} func (x *GetNodeResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[8] + mi := &file_inventory_v1_nodes_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -863,7 +984,7 @@ func (x *GetNodeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetNodeResponse.ProtoReflect.Descriptor instead. func (*GetNodeResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{8} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{9} } func (x *GetNodeResponse) GetNode() isGetNodeResponse_Node { @@ -918,6 +1039,15 @@ func (x *GetNodeResponse) GetRemoteAzureDatabase() *RemoteAzureDatabaseNode { return nil } +func (x *GetNodeResponse) GetRemoteElasticache() *RemoteElastiCacheNode { + if x != nil { + if x, ok := x.Node.(*GetNodeResponse_RemoteElasticache); ok { + return x.RemoteElasticache + } + } + return nil +} + type isGetNodeResponse_Node interface { isGetNodeResponse_Node() } @@ -942,6 +1072,10 @@ type GetNodeResponse_RemoteAzureDatabase struct { RemoteAzureDatabase *RemoteAzureDatabaseNode `protobuf:"bytes,5,opt,name=remote_azure_database,json=remoteAzureDatabase,proto3,oneof"` } +type GetNodeResponse_RemoteElasticache struct { + RemoteElasticache *RemoteElastiCacheNode `protobuf:"bytes,6,opt,name=remote_elasticache,json=remoteElasticache,proto3,oneof"` +} + func (*GetNodeResponse_Generic) isGetNodeResponse_Node() {} func (*GetNodeResponse_Container) isGetNodeResponse_Node() {} @@ -952,6 +1086,8 @@ func (*GetNodeResponse_RemoteRds) isGetNodeResponse_Node() {} func (*GetNodeResponse_RemoteAzureDatabase) isGetNodeResponse_Node() {} +func (*GetNodeResponse_RemoteElasticache) isGetNodeResponse_Node() {} + type AddNodeRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Node: @@ -961,6 +1097,7 @@ type AddNodeRequest struct { // *AddNodeRequest_Remote // *AddNodeRequest_RemoteRds // *AddNodeRequest_RemoteAzure + // *AddNodeRequest_RemoteElasticache Node isAddNodeRequest_Node `protobuf_oneof:"node"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -968,7 +1105,7 @@ type AddNodeRequest struct { func (x *AddNodeRequest) Reset() { *x = AddNodeRequest{} - mi := &file_inventory_v1_nodes_proto_msgTypes[9] + mi := &file_inventory_v1_nodes_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -980,7 +1117,7 @@ func (x *AddNodeRequest) String() string { func (*AddNodeRequest) ProtoMessage() {} func (x *AddNodeRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[9] + mi := &file_inventory_v1_nodes_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -993,7 +1130,7 @@ func (x *AddNodeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AddNodeRequest.ProtoReflect.Descriptor instead. func (*AddNodeRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{9} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{10} } func (x *AddNodeRequest) GetNode() isAddNodeRequest_Node { @@ -1048,6 +1185,15 @@ func (x *AddNodeRequest) GetRemoteAzure() *AddRemoteAzureNodeParams { return nil } +func (x *AddNodeRequest) GetRemoteElasticache() *AddRemoteElastiCacheNodeParams { + if x != nil { + if x, ok := x.Node.(*AddNodeRequest_RemoteElasticache); ok { + return x.RemoteElasticache + } + } + return nil +} + type isAddNodeRequest_Node interface { isAddNodeRequest_Node() } @@ -1072,6 +1218,10 @@ type AddNodeRequest_RemoteAzure struct { RemoteAzure *AddRemoteAzureNodeParams `protobuf:"bytes,5,opt,name=remote_azure,json=remoteAzure,proto3,oneof"` } +type AddNodeRequest_RemoteElasticache struct { + RemoteElasticache *AddRemoteElastiCacheNodeParams `protobuf:"bytes,6,opt,name=remote_elasticache,json=remoteElasticache,proto3,oneof"` +} + func (*AddNodeRequest_Generic) isAddNodeRequest_Node() {} func (*AddNodeRequest_Container) isAddNodeRequest_Node() {} @@ -1082,6 +1232,8 @@ func (*AddNodeRequest_RemoteRds) isAddNodeRequest_Node() {} func (*AddNodeRequest_RemoteAzure) isAddNodeRequest_Node() {} +func (*AddNodeRequest_RemoteElasticache) isAddNodeRequest_Node() {} + type AddNodeResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Node: @@ -1091,6 +1243,7 @@ type AddNodeResponse struct { // *AddNodeResponse_Remote // *AddNodeResponse_RemoteRds // *AddNodeResponse_RemoteAzureDatabase + // *AddNodeResponse_RemoteElasticache Node isAddNodeResponse_Node `protobuf_oneof:"node"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1098,7 +1251,7 @@ type AddNodeResponse struct { func (x *AddNodeResponse) Reset() { *x = AddNodeResponse{} - mi := &file_inventory_v1_nodes_proto_msgTypes[10] + mi := &file_inventory_v1_nodes_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1110,7 +1263,7 @@ func (x *AddNodeResponse) String() string { func (*AddNodeResponse) ProtoMessage() {} func (x *AddNodeResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[10] + mi := &file_inventory_v1_nodes_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1123,7 +1276,7 @@ func (x *AddNodeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AddNodeResponse.ProtoReflect.Descriptor instead. func (*AddNodeResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{10} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{11} } func (x *AddNodeResponse) GetNode() isAddNodeResponse_Node { @@ -1178,6 +1331,15 @@ func (x *AddNodeResponse) GetRemoteAzureDatabase() *RemoteAzureDatabaseNode { return nil } +func (x *AddNodeResponse) GetRemoteElasticache() *RemoteElastiCacheNode { + if x != nil { + if x, ok := x.Node.(*AddNodeResponse_RemoteElasticache); ok { + return x.RemoteElasticache + } + } + return nil +} + type isAddNodeResponse_Node interface { isAddNodeResponse_Node() } @@ -1202,6 +1364,10 @@ type AddNodeResponse_RemoteAzureDatabase struct { RemoteAzureDatabase *RemoteAzureDatabaseNode `protobuf:"bytes,5,opt,name=remote_azure_database,json=remoteAzureDatabase,proto3,oneof"` } +type AddNodeResponse_RemoteElasticache struct { + RemoteElasticache *RemoteElastiCacheNode `protobuf:"bytes,6,opt,name=remote_elasticache,json=remoteElasticache,proto3,oneof"` +} + func (*AddNodeResponse_Generic) isAddNodeResponse_Node() {} func (*AddNodeResponse_Container) isAddNodeResponse_Node() {} @@ -1212,6 +1378,8 @@ func (*AddNodeResponse_RemoteRds) isAddNodeResponse_Node() {} func (*AddNodeResponse_RemoteAzureDatabase) isAddNodeResponse_Node() {} +func (*AddNodeResponse_RemoteElasticache) isAddNodeResponse_Node() {} + type AddGenericNodeParams struct { state protoimpl.MessageState `protogen:"open.v1"` // Unique across all Nodes user-defined name. @@ -1236,7 +1404,7 @@ type AddGenericNodeParams struct { func (x *AddGenericNodeParams) Reset() { *x = AddGenericNodeParams{} - mi := &file_inventory_v1_nodes_proto_msgTypes[11] + mi := &file_inventory_v1_nodes_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1248,7 +1416,7 @@ func (x *AddGenericNodeParams) String() string { func (*AddGenericNodeParams) ProtoMessage() {} func (x *AddGenericNodeParams) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[11] + mi := &file_inventory_v1_nodes_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1261,7 +1429,7 @@ func (x *AddGenericNodeParams) ProtoReflect() protoreflect.Message { // Deprecated: Use AddGenericNodeParams.ProtoReflect.Descriptor instead. func (*AddGenericNodeParams) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{11} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{12} } func (x *AddGenericNodeParams) GetNodeName() string { @@ -1346,7 +1514,7 @@ type AddContainerNodeParams struct { func (x *AddContainerNodeParams) Reset() { *x = AddContainerNodeParams{} - mi := &file_inventory_v1_nodes_proto_msgTypes[12] + mi := &file_inventory_v1_nodes_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1358,7 +1526,7 @@ func (x *AddContainerNodeParams) String() string { func (*AddContainerNodeParams) ProtoMessage() {} func (x *AddContainerNodeParams) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[12] + mi := &file_inventory_v1_nodes_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1371,7 +1539,7 @@ func (x *AddContainerNodeParams) ProtoReflect() protoreflect.Message { // Deprecated: Use AddContainerNodeParams.ProtoReflect.Descriptor instead. func (*AddContainerNodeParams) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{12} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{13} } func (x *AddContainerNodeParams) GetNodeName() string { @@ -1457,7 +1625,7 @@ type AddRemoteNodeParams struct { func (x *AddRemoteNodeParams) Reset() { *x = AddRemoteNodeParams{} - mi := &file_inventory_v1_nodes_proto_msgTypes[13] + mi := &file_inventory_v1_nodes_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1469,7 +1637,7 @@ func (x *AddRemoteNodeParams) String() string { func (*AddRemoteNodeParams) ProtoMessage() {} func (x *AddRemoteNodeParams) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[13] + mi := &file_inventory_v1_nodes_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1482,7 +1650,7 @@ func (x *AddRemoteNodeParams) ProtoReflect() protoreflect.Message { // Deprecated: Use AddRemoteNodeParams.ProtoReflect.Descriptor instead. func (*AddRemoteNodeParams) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{13} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{14} } func (x *AddRemoteNodeParams) GetNodeName() string { @@ -1547,7 +1715,7 @@ type AddRemoteRDSNodeParams struct { func (x *AddRemoteRDSNodeParams) Reset() { *x = AddRemoteRDSNodeParams{} - mi := &file_inventory_v1_nodes_proto_msgTypes[14] + mi := &file_inventory_v1_nodes_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1559,7 +1727,7 @@ func (x *AddRemoteRDSNodeParams) String() string { func (*AddRemoteRDSNodeParams) ProtoMessage() {} func (x *AddRemoteRDSNodeParams) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[14] + mi := &file_inventory_v1_nodes_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1572,7 +1740,7 @@ func (x *AddRemoteRDSNodeParams) ProtoReflect() protoreflect.Message { // Deprecated: Use AddRemoteRDSNodeParams.ProtoReflect.Descriptor instead. func (*AddRemoteRDSNodeParams) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{14} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{15} } func (x *AddRemoteRDSNodeParams) GetNodeName() string { @@ -1637,7 +1805,7 @@ type AddRemoteAzureNodeParams struct { func (x *AddRemoteAzureNodeParams) Reset() { *x = AddRemoteAzureNodeParams{} - mi := &file_inventory_v1_nodes_proto_msgTypes[15] + mi := &file_inventory_v1_nodes_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1649,7 +1817,7 @@ func (x *AddRemoteAzureNodeParams) String() string { func (*AddRemoteAzureNodeParams) ProtoMessage() {} func (x *AddRemoteAzureNodeParams) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[15] + mi := &file_inventory_v1_nodes_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1662,7 +1830,7 @@ func (x *AddRemoteAzureNodeParams) ProtoReflect() protoreflect.Message { // Deprecated: Use AddRemoteAzureNodeParams.ProtoReflect.Descriptor instead. func (*AddRemoteAzureNodeParams) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{15} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{16} } func (x *AddRemoteAzureNodeParams) GetNodeName() string { @@ -1707,6 +1875,96 @@ func (x *AddRemoteAzureNodeParams) GetCustomLabels() map[string]string { return nil } +type AddRemoteElastiCacheNodeParams struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Unique across all Nodes user-defined name. + NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + // ElastiCache primary endpoint address. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Node model (cache node type). + NodeModel string `protobuf:"bytes,3,opt,name=node_model,json=nodeModel,proto3" json:"node_model,omitempty"` + // Node region. + Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` + // Node availability zone. + Az string `protobuf:"bytes,5,opt,name=az,proto3" json:"az,omitempty"` + // Custom user-assigned labels. + CustomLabels map[string]string `protobuf:"bytes,6,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddRemoteElastiCacheNodeParams) Reset() { + *x = AddRemoteElastiCacheNodeParams{} + mi := &file_inventory_v1_nodes_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddRemoteElastiCacheNodeParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddRemoteElastiCacheNodeParams) ProtoMessage() {} + +func (x *AddRemoteElastiCacheNodeParams) ProtoReflect() protoreflect.Message { + mi := &file_inventory_v1_nodes_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddRemoteElastiCacheNodeParams.ProtoReflect.Descriptor instead. +func (*AddRemoteElastiCacheNodeParams) Descriptor() ([]byte, []int) { + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{17} +} + +func (x *AddRemoteElastiCacheNodeParams) GetNodeName() string { + if x != nil { + return x.NodeName + } + return "" +} + +func (x *AddRemoteElastiCacheNodeParams) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *AddRemoteElastiCacheNodeParams) GetNodeModel() string { + if x != nil { + return x.NodeModel + } + return "" +} + +func (x *AddRemoteElastiCacheNodeParams) GetRegion() string { + if x != nil { + return x.Region + } + return "" +} + +func (x *AddRemoteElastiCacheNodeParams) GetAz() string { + if x != nil { + return x.Az + } + return "" +} + +func (x *AddRemoteElastiCacheNodeParams) GetCustomLabels() map[string]string { + if x != nil { + return x.CustomLabels + } + return nil +} + type RemoveNodeRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Unique randomly generated instance identifier. @@ -1719,7 +1977,7 @@ type RemoveNodeRequest struct { func (x *RemoveNodeRequest) Reset() { *x = RemoveNodeRequest{} - mi := &file_inventory_v1_nodes_proto_msgTypes[16] + mi := &file_inventory_v1_nodes_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1731,7 +1989,7 @@ func (x *RemoveNodeRequest) String() string { func (*RemoveNodeRequest) ProtoMessage() {} func (x *RemoveNodeRequest) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[16] + mi := &file_inventory_v1_nodes_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1744,7 +2002,7 @@ func (x *RemoveNodeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveNodeRequest.ProtoReflect.Descriptor instead. func (*RemoveNodeRequest) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{16} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{18} } func (x *RemoveNodeRequest) GetNodeId() string { @@ -1769,7 +2027,7 @@ type RemoveNodeResponse struct { func (x *RemoveNodeResponse) Reset() { *x = RemoveNodeResponse{} - mi := &file_inventory_v1_nodes_proto_msgTypes[17] + mi := &file_inventory_v1_nodes_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1781,7 +2039,7 @@ func (x *RemoveNodeResponse) String() string { func (*RemoveNodeResponse) ProtoMessage() {} func (x *RemoveNodeResponse) ProtoReflect() protoreflect.Message { - mi := &file_inventory_v1_nodes_proto_msgTypes[17] + mi := &file_inventory_v1_nodes_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1794,7 +2052,7 @@ func (x *RemoveNodeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use RemoveNodeResponse.ProtoReflect.Descriptor instead. func (*RemoveNodeResponse) Descriptor() ([]byte, []int) { - return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{17} + return file_inventory_v1_nodes_proto_rawDescGZIP(), []int{19} } var File_inventory_v1_nodes_proto protoreflect.FileDescriptor @@ -1875,41 +2133,59 @@ const file_inventory_v1_nodes_proto_rawDesc = "" + "\rcustom_labels\x18\a \x03(\v27.inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntryR\fcustomLabels\x1a?\n" + "\x11CustomLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xec\x02\n" + + "\x15RemoteElastiCacheNode\x12\x17\n" + + "\anode_id\x18\x01 \x01(\tR\x06nodeId\x12\x1b\n" + + "\tnode_name\x18\x02 \x01(\tR\bnodeName\x12\x18\n" + + "\aaddress\x18\x03 \x01(\tR\aaddress\x12\x1d\n" + + "\n" + + "node_model\x18\x04 \x01(\tR\tnodeModel\x12\x16\n" + + "\x06region\x18\x05 \x01(\tR\x06region\x12\x0e\n" + + "\x02az\x18\x06 \x01(\tR\x02az\x12Z\n" + + "\rcustom_labels\x18\a \x03(\v25.inventory.v1.RemoteElastiCacheNode.CustomLabelsEntryR\fcustomLabels\x12\x1f\n" + + "\vinstance_id\x18\b \x01(\tR\n" + + "instanceId\x1a?\n" + + "\x11CustomLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"G\n" + "\x10ListNodesRequest\x123\n" + - "\tnode_type\x18\x01 \x01(\x0e2\x16.inventory.v1.NodeTypeR\bnodeType\"\xcc\x02\n" + + "\tnode_type\x18\x01 \x01(\x0e2\x16.inventory.v1.NodeTypeR\bnodeType\"\xa0\x03\n" + "\x11ListNodesResponse\x123\n" + "\ageneric\x18\x01 \x03(\v2\x19.inventory.v1.GenericNodeR\ageneric\x129\n" + "\tcontainer\x18\x02 \x03(\v2\x1b.inventory.v1.ContainerNodeR\tcontainer\x120\n" + "\x06remote\x18\x03 \x03(\v2\x18.inventory.v1.RemoteNodeR\x06remote\x12:\n" + "\n" + "remote_rds\x18\x04 \x03(\v2\x1b.inventory.v1.RemoteRDSNodeR\tremoteRds\x12Y\n" + - "\x15remote_azure_database\x18\x05 \x03(\v2%.inventory.v1.RemoteAzureDatabaseNodeR\x13remoteAzureDatabase\"2\n" + + "\x15remote_azure_database\x18\x05 \x03(\v2%.inventory.v1.RemoteAzureDatabaseNodeR\x13remoteAzureDatabase\x12R\n" + + "\x12remote_elasticache\x18\x06 \x03(\v2#.inventory.v1.RemoteElastiCacheNodeR\x11remoteElasticache\"2\n" + "\x0eGetNodeRequest\x12 \n" + - "\anode_id\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06nodeId\"\xdc\x02\n" + + "\anode_id\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06nodeId\"\xb2\x03\n" + "\x0fGetNodeResponse\x125\n" + "\ageneric\x18\x01 \x01(\v2\x19.inventory.v1.GenericNodeH\x00R\ageneric\x12;\n" + "\tcontainer\x18\x02 \x01(\v2\x1b.inventory.v1.ContainerNodeH\x00R\tcontainer\x122\n" + "\x06remote\x18\x03 \x01(\v2\x18.inventory.v1.RemoteNodeH\x00R\x06remote\x12<\n" + "\n" + "remote_rds\x18\x04 \x01(\v2\x1b.inventory.v1.RemoteRDSNodeH\x00R\tremoteRds\x12[\n" + - "\x15remote_azure_database\x18\x05 \x01(\v2%.inventory.v1.RemoteAzureDatabaseNodeH\x00R\x13remoteAzureDatabaseB\x06\n" + - "\x04node\"\xef\x02\n" + + "\x15remote_azure_database\x18\x05 \x01(\v2%.inventory.v1.RemoteAzureDatabaseNodeH\x00R\x13remoteAzureDatabase\x12T\n" + + "\x12remote_elasticache\x18\x06 \x01(\v2#.inventory.v1.RemoteElastiCacheNodeH\x00R\x11remoteElasticacheB\x06\n" + + "\x04node\"\xce\x03\n" + "\x0eAddNodeRequest\x12>\n" + "\ageneric\x18\x01 \x01(\v2\".inventory.v1.AddGenericNodeParamsH\x00R\ageneric\x12D\n" + "\tcontainer\x18\x02 \x01(\v2$.inventory.v1.AddContainerNodeParamsH\x00R\tcontainer\x12;\n" + "\x06remote\x18\x03 \x01(\v2!.inventory.v1.AddRemoteNodeParamsH\x00R\x06remote\x12E\n" + "\n" + "remote_rds\x18\x04 \x01(\v2$.inventory.v1.AddRemoteRDSNodeParamsH\x00R\tremoteRds\x12K\n" + - "\fremote_azure\x18\x05 \x01(\v2&.inventory.v1.AddRemoteAzureNodeParamsH\x00R\vremoteAzureB\x06\n" + - "\x04node\"\xdc\x02\n" + + "\fremote_azure\x18\x05 \x01(\v2&.inventory.v1.AddRemoteAzureNodeParamsH\x00R\vremoteAzure\x12]\n" + + "\x12remote_elasticache\x18\x06 \x01(\v2,.inventory.v1.AddRemoteElastiCacheNodeParamsH\x00R\x11remoteElasticacheB\x06\n" + + "\x04node\"\xb2\x03\n" + "\x0fAddNodeResponse\x125\n" + "\ageneric\x18\x01 \x01(\v2\x19.inventory.v1.GenericNodeH\x00R\ageneric\x12;\n" + "\tcontainer\x18\x02 \x01(\v2\x1b.inventory.v1.ContainerNodeH\x00R\tcontainer\x122\n" + "\x06remote\x18\x03 \x01(\v2\x18.inventory.v1.RemoteNodeH\x00R\x06remote\x12<\n" + "\n" + "remote_rds\x18\x04 \x01(\v2\x1b.inventory.v1.RemoteRDSNodeH\x00R\tremoteRds\x12[\n" + - "\x15remote_azure_database\x18\x05 \x01(\v2%.inventory.v1.RemoteAzureDatabaseNodeH\x00R\x13remoteAzureDatabaseB\x06\n" + + "\x15remote_azure_database\x18\x05 \x01(\v2%.inventory.v1.RemoteAzureDatabaseNodeH\x00R\x13remoteAzureDatabase\x12T\n" + + "\x12remote_elasticache\x18\x06 \x01(\v2#.inventory.v1.RemoteElastiCacheNodeH\x00R\x11remoteElasticacheB\x06\n" + "\x04node\"\xf9\x02\n" + "\x14AddGenericNodeParams\x12$\n" + "\tnode_name\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\bnodeName\x12!\n" + @@ -1972,18 +2248,30 @@ const file_inventory_v1_nodes_proto_rawDesc = "" + "\rcustom_labels\x18\x06 \x03(\v28.inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntryR\fcustomLabels\x1a?\n" + "\x11CustomLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xdf\x02\n" + + "\x1eAddRemoteElastiCacheNodeParams\x12$\n" + + "\tnode_name\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\bnodeName\x12!\n" + + "\aaddress\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\aaddress\x12\x1d\n" + + "\n" + + "node_model\x18\x03 \x01(\tR\tnodeModel\x12\x1f\n" + + "\x06region\x18\x04 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06region\x12\x0e\n" + + "\x02az\x18\x05 \x01(\tR\x02az\x12c\n" + + "\rcustom_labels\x18\x06 \x03(\v2>.inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntryR\fcustomLabels\x1a?\n" + + "\x11CustomLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"K\n" + "\x11RemoveNodeRequest\x12 \n" + "\anode_id\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06nodeId\x12\x14\n" + "\x05force\x18\x02 \x01(\bR\x05force\"\x14\n" + - "\x12RemoveNodeResponse*\xc3\x01\n" + + "\x12RemoveNodeResponse*\xea\x01\n" + "\bNodeType\x12\x19\n" + "\x15NODE_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" + "\x16NODE_TYPE_GENERIC_NODE\x10\x01\x12\x1c\n" + "\x18NODE_TYPE_CONTAINER_NODE\x10\x02\x12\x19\n" + "\x15NODE_TYPE_REMOTE_NODE\x10\x03\x12\x1d\n" + "\x19NODE_TYPE_REMOTE_RDS_NODE\x10\x04\x12(\n" + - "$NODE_TYPE_REMOTE_AZURE_DATABASE_NODE\x10\x052\xe6\x04\n" + + "$NODE_TYPE_REMOTE_AZURE_DATABASE_NODE\x10\x05\x12%\n" + + "!NODE_TYPE_REMOTE_ELASTICACHE_NODE\x10\x062\xe6\x04\n" + "\fNodesService\x12\x96\x01\n" + "\tListNodes\x12\x1e.inventory.v1.ListNodesRequest\x1a\x1f.inventory.v1.ListNodesResponse\"H\x92A*\x12\n" + "List Nodes\x1a\x1cReturns a list of all Nodes.\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/inventory/nodes\x12\x9a\x01\n" + @@ -2010,85 +2298,95 @@ func file_inventory_v1_nodes_proto_rawDescGZIP() []byte { var ( file_inventory_v1_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 28) + file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 32) file_inventory_v1_nodes_proto_goTypes = []any{ - NodeType(0), // 0: inventory.v1.NodeType - (*GenericNode)(nil), // 1: inventory.v1.GenericNode - (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode - (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode - (*RemoteRDSNode)(nil), // 4: inventory.v1.RemoteRDSNode - (*RemoteAzureDatabaseNode)(nil), // 5: inventory.v1.RemoteAzureDatabaseNode - (*ListNodesRequest)(nil), // 6: inventory.v1.ListNodesRequest - (*ListNodesResponse)(nil), // 7: inventory.v1.ListNodesResponse - (*GetNodeRequest)(nil), // 8: inventory.v1.GetNodeRequest - (*GetNodeResponse)(nil), // 9: inventory.v1.GetNodeResponse - (*AddNodeRequest)(nil), // 10: inventory.v1.AddNodeRequest - (*AddNodeResponse)(nil), // 11: inventory.v1.AddNodeResponse - (*AddGenericNodeParams)(nil), // 12: inventory.v1.AddGenericNodeParams - (*AddContainerNodeParams)(nil), // 13: inventory.v1.AddContainerNodeParams - (*AddRemoteNodeParams)(nil), // 14: inventory.v1.AddRemoteNodeParams - (*AddRemoteRDSNodeParams)(nil), // 15: inventory.v1.AddRemoteRDSNodeParams - (*AddRemoteAzureNodeParams)(nil), // 16: inventory.v1.AddRemoteAzureNodeParams - (*RemoveNodeRequest)(nil), // 17: inventory.v1.RemoveNodeRequest - (*RemoveNodeResponse)(nil), // 18: inventory.v1.RemoveNodeResponse - nil, // 19: inventory.v1.GenericNode.CustomLabelsEntry - nil, // 20: inventory.v1.ContainerNode.CustomLabelsEntry - nil, // 21: inventory.v1.RemoteNode.CustomLabelsEntry - nil, // 22: inventory.v1.RemoteRDSNode.CustomLabelsEntry - nil, // 23: inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry - nil, // 24: inventory.v1.AddGenericNodeParams.CustomLabelsEntry - nil, // 25: inventory.v1.AddContainerNodeParams.CustomLabelsEntry - nil, // 26: inventory.v1.AddRemoteNodeParams.CustomLabelsEntry - nil, // 27: inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry - nil, // 28: inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry + (NodeType)(0), // 0: inventory.v1.NodeType + (*GenericNode)(nil), // 1: inventory.v1.GenericNode + (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode + (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode + (*RemoteRDSNode)(nil), // 4: inventory.v1.RemoteRDSNode + (*RemoteAzureDatabaseNode)(nil), // 5: inventory.v1.RemoteAzureDatabaseNode + (*RemoteElastiCacheNode)(nil), // 6: inventory.v1.RemoteElastiCacheNode + (*ListNodesRequest)(nil), // 7: inventory.v1.ListNodesRequest + (*ListNodesResponse)(nil), // 8: inventory.v1.ListNodesResponse + (*GetNodeRequest)(nil), // 9: inventory.v1.GetNodeRequest + (*GetNodeResponse)(nil), // 10: inventory.v1.GetNodeResponse + (*AddNodeRequest)(nil), // 11: inventory.v1.AddNodeRequest + (*AddNodeResponse)(nil), // 12: inventory.v1.AddNodeResponse + (*AddGenericNodeParams)(nil), // 13: inventory.v1.AddGenericNodeParams + (*AddContainerNodeParams)(nil), // 14: inventory.v1.AddContainerNodeParams + (*AddRemoteNodeParams)(nil), // 15: inventory.v1.AddRemoteNodeParams + (*AddRemoteRDSNodeParams)(nil), // 16: inventory.v1.AddRemoteRDSNodeParams + (*AddRemoteAzureNodeParams)(nil), // 17: inventory.v1.AddRemoteAzureNodeParams + (*AddRemoteElastiCacheNodeParams)(nil), // 18: inventory.v1.AddRemoteElastiCacheNodeParams + (*RemoveNodeRequest)(nil), // 19: inventory.v1.RemoveNodeRequest + (*RemoveNodeResponse)(nil), // 20: inventory.v1.RemoveNodeResponse + nil, // 21: inventory.v1.GenericNode.CustomLabelsEntry + nil, // 22: inventory.v1.ContainerNode.CustomLabelsEntry + nil, // 23: inventory.v1.RemoteNode.CustomLabelsEntry + nil, // 24: inventory.v1.RemoteRDSNode.CustomLabelsEntry + nil, // 25: inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry + nil, // 26: inventory.v1.RemoteElastiCacheNode.CustomLabelsEntry + nil, // 27: inventory.v1.AddGenericNodeParams.CustomLabelsEntry + nil, // 28: inventory.v1.AddContainerNodeParams.CustomLabelsEntry + nil, // 29: inventory.v1.AddRemoteNodeParams.CustomLabelsEntry + nil, // 30: inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry + nil, // 31: inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry + nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry } ) var file_inventory_v1_nodes_proto_depIdxs = []int32{ - 19, // 0: inventory.v1.GenericNode.custom_labels:type_name -> inventory.v1.GenericNode.CustomLabelsEntry - 20, // 1: inventory.v1.ContainerNode.custom_labels:type_name -> inventory.v1.ContainerNode.CustomLabelsEntry - 21, // 2: inventory.v1.RemoteNode.custom_labels:type_name -> inventory.v1.RemoteNode.CustomLabelsEntry - 22, // 3: inventory.v1.RemoteRDSNode.custom_labels:type_name -> inventory.v1.RemoteRDSNode.CustomLabelsEntry - 23, // 4: inventory.v1.RemoteAzureDatabaseNode.custom_labels:type_name -> inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry - 0, // 5: inventory.v1.ListNodesRequest.node_type:type_name -> inventory.v1.NodeType - 1, // 6: inventory.v1.ListNodesResponse.generic:type_name -> inventory.v1.GenericNode - 2, // 7: inventory.v1.ListNodesResponse.container:type_name -> inventory.v1.ContainerNode - 3, // 8: inventory.v1.ListNodesResponse.remote:type_name -> inventory.v1.RemoteNode - 4, // 9: inventory.v1.ListNodesResponse.remote_rds:type_name -> inventory.v1.RemoteRDSNode - 5, // 10: inventory.v1.ListNodesResponse.remote_azure_database:type_name -> inventory.v1.RemoteAzureDatabaseNode - 1, // 11: inventory.v1.GetNodeResponse.generic:type_name -> inventory.v1.GenericNode - 2, // 12: inventory.v1.GetNodeResponse.container:type_name -> inventory.v1.ContainerNode - 3, // 13: inventory.v1.GetNodeResponse.remote:type_name -> inventory.v1.RemoteNode - 4, // 14: inventory.v1.GetNodeResponse.remote_rds:type_name -> inventory.v1.RemoteRDSNode - 5, // 15: inventory.v1.GetNodeResponse.remote_azure_database:type_name -> inventory.v1.RemoteAzureDatabaseNode - 12, // 16: inventory.v1.AddNodeRequest.generic:type_name -> inventory.v1.AddGenericNodeParams - 13, // 17: inventory.v1.AddNodeRequest.container:type_name -> inventory.v1.AddContainerNodeParams - 14, // 18: inventory.v1.AddNodeRequest.remote:type_name -> inventory.v1.AddRemoteNodeParams - 15, // 19: inventory.v1.AddNodeRequest.remote_rds:type_name -> inventory.v1.AddRemoteRDSNodeParams - 16, // 20: inventory.v1.AddNodeRequest.remote_azure:type_name -> inventory.v1.AddRemoteAzureNodeParams - 1, // 21: inventory.v1.AddNodeResponse.generic:type_name -> inventory.v1.GenericNode - 2, // 22: inventory.v1.AddNodeResponse.container:type_name -> inventory.v1.ContainerNode - 3, // 23: inventory.v1.AddNodeResponse.remote:type_name -> inventory.v1.RemoteNode - 4, // 24: inventory.v1.AddNodeResponse.remote_rds:type_name -> inventory.v1.RemoteRDSNode - 5, // 25: inventory.v1.AddNodeResponse.remote_azure_database:type_name -> inventory.v1.RemoteAzureDatabaseNode - 24, // 26: inventory.v1.AddGenericNodeParams.custom_labels:type_name -> inventory.v1.AddGenericNodeParams.CustomLabelsEntry - 25, // 27: inventory.v1.AddContainerNodeParams.custom_labels:type_name -> inventory.v1.AddContainerNodeParams.CustomLabelsEntry - 26, // 28: inventory.v1.AddRemoteNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteNodeParams.CustomLabelsEntry - 27, // 29: inventory.v1.AddRemoteRDSNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry - 28, // 30: inventory.v1.AddRemoteAzureNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry - 6, // 31: inventory.v1.NodesService.ListNodes:input_type -> inventory.v1.ListNodesRequest - 8, // 32: inventory.v1.NodesService.GetNode:input_type -> inventory.v1.GetNodeRequest - 10, // 33: inventory.v1.NodesService.AddNode:input_type -> inventory.v1.AddNodeRequest - 17, // 34: inventory.v1.NodesService.RemoveNode:input_type -> inventory.v1.RemoveNodeRequest - 7, // 35: inventory.v1.NodesService.ListNodes:output_type -> inventory.v1.ListNodesResponse - 9, // 36: inventory.v1.NodesService.GetNode:output_type -> inventory.v1.GetNodeResponse - 11, // 37: inventory.v1.NodesService.AddNode:output_type -> inventory.v1.AddNodeResponse - 18, // 38: inventory.v1.NodesService.RemoveNode:output_type -> inventory.v1.RemoveNodeResponse - 35, // [35:39] is the sub-list for method output_type - 31, // [31:35] is the sub-list for method input_type - 31, // [31:31] is the sub-list for extension type_name - 31, // [31:31] is the sub-list for extension extendee - 0, // [0:31] is the sub-list for field type_name + 21, // 0: inventory.v1.GenericNode.custom_labels:type_name -> inventory.v1.GenericNode.CustomLabelsEntry + 22, // 1: inventory.v1.ContainerNode.custom_labels:type_name -> inventory.v1.ContainerNode.CustomLabelsEntry + 23, // 2: inventory.v1.RemoteNode.custom_labels:type_name -> inventory.v1.RemoteNode.CustomLabelsEntry + 24, // 3: inventory.v1.RemoteRDSNode.custom_labels:type_name -> inventory.v1.RemoteRDSNode.CustomLabelsEntry + 25, // 4: inventory.v1.RemoteAzureDatabaseNode.custom_labels:type_name -> inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry + 26, // 5: inventory.v1.RemoteElastiCacheNode.custom_labels:type_name -> inventory.v1.RemoteElastiCacheNode.CustomLabelsEntry + 0, // 6: inventory.v1.ListNodesRequest.node_type:type_name -> inventory.v1.NodeType + 1, // 7: inventory.v1.ListNodesResponse.generic:type_name -> inventory.v1.GenericNode + 2, // 8: inventory.v1.ListNodesResponse.container:type_name -> inventory.v1.ContainerNode + 3, // 9: inventory.v1.ListNodesResponse.remote:type_name -> inventory.v1.RemoteNode + 4, // 10: inventory.v1.ListNodesResponse.remote_rds:type_name -> inventory.v1.RemoteRDSNode + 5, // 11: inventory.v1.ListNodesResponse.remote_azure_database:type_name -> inventory.v1.RemoteAzureDatabaseNode + 6, // 12: inventory.v1.ListNodesResponse.remote_elasticache:type_name -> inventory.v1.RemoteElastiCacheNode + 1, // 13: inventory.v1.GetNodeResponse.generic:type_name -> inventory.v1.GenericNode + 2, // 14: inventory.v1.GetNodeResponse.container:type_name -> inventory.v1.ContainerNode + 3, // 15: inventory.v1.GetNodeResponse.remote:type_name -> inventory.v1.RemoteNode + 4, // 16: inventory.v1.GetNodeResponse.remote_rds:type_name -> inventory.v1.RemoteRDSNode + 5, // 17: inventory.v1.GetNodeResponse.remote_azure_database:type_name -> inventory.v1.RemoteAzureDatabaseNode + 6, // 18: inventory.v1.GetNodeResponse.remote_elasticache:type_name -> inventory.v1.RemoteElastiCacheNode + 13, // 19: inventory.v1.AddNodeRequest.generic:type_name -> inventory.v1.AddGenericNodeParams + 14, // 20: inventory.v1.AddNodeRequest.container:type_name -> inventory.v1.AddContainerNodeParams + 15, // 21: inventory.v1.AddNodeRequest.remote:type_name -> inventory.v1.AddRemoteNodeParams + 16, // 22: inventory.v1.AddNodeRequest.remote_rds:type_name -> inventory.v1.AddRemoteRDSNodeParams + 17, // 23: inventory.v1.AddNodeRequest.remote_azure:type_name -> inventory.v1.AddRemoteAzureNodeParams + 18, // 24: inventory.v1.AddNodeRequest.remote_elasticache:type_name -> inventory.v1.AddRemoteElastiCacheNodeParams + 1, // 25: inventory.v1.AddNodeResponse.generic:type_name -> inventory.v1.GenericNode + 2, // 26: inventory.v1.AddNodeResponse.container:type_name -> inventory.v1.ContainerNode + 3, // 27: inventory.v1.AddNodeResponse.remote:type_name -> inventory.v1.RemoteNode + 4, // 28: inventory.v1.AddNodeResponse.remote_rds:type_name -> inventory.v1.RemoteRDSNode + 5, // 29: inventory.v1.AddNodeResponse.remote_azure_database:type_name -> inventory.v1.RemoteAzureDatabaseNode + 6, // 30: inventory.v1.AddNodeResponse.remote_elasticache:type_name -> inventory.v1.RemoteElastiCacheNode + 27, // 31: inventory.v1.AddGenericNodeParams.custom_labels:type_name -> inventory.v1.AddGenericNodeParams.CustomLabelsEntry + 28, // 32: inventory.v1.AddContainerNodeParams.custom_labels:type_name -> inventory.v1.AddContainerNodeParams.CustomLabelsEntry + 29, // 33: inventory.v1.AddRemoteNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteNodeParams.CustomLabelsEntry + 30, // 34: inventory.v1.AddRemoteRDSNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry + 31, // 35: inventory.v1.AddRemoteAzureNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry + 32, // 36: inventory.v1.AddRemoteElastiCacheNodeParams.custom_labels:type_name -> inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry + 7, // 37: inventory.v1.NodesService.ListNodes:input_type -> inventory.v1.ListNodesRequest + 9, // 38: inventory.v1.NodesService.GetNode:input_type -> inventory.v1.GetNodeRequest + 11, // 39: inventory.v1.NodesService.AddNode:input_type -> inventory.v1.AddNodeRequest + 19, // 40: inventory.v1.NodesService.RemoveNode:input_type -> inventory.v1.RemoveNodeRequest + 8, // 41: inventory.v1.NodesService.ListNodes:output_type -> inventory.v1.ListNodesResponse + 10, // 42: inventory.v1.NodesService.GetNode:output_type -> inventory.v1.GetNodeResponse + 12, // 43: inventory.v1.NodesService.AddNode:output_type -> inventory.v1.AddNodeResponse + 20, // 44: inventory.v1.NodesService.RemoveNode:output_type -> inventory.v1.RemoveNodeResponse + 41, // [41:45] is the sub-list for method output_type + 37, // [37:41] is the sub-list for method input_type + 37, // [37:37] is the sub-list for extension type_name + 37, // [37:37] is the sub-list for extension extendee + 0, // [0:37] is the sub-list for field type_name } func init() { file_inventory_v1_nodes_proto_init() } @@ -2096,26 +2394,29 @@ func file_inventory_v1_nodes_proto_init() { if File_inventory_v1_nodes_proto != nil { return } - file_inventory_v1_nodes_proto_msgTypes[8].OneofWrappers = []any{ + file_inventory_v1_nodes_proto_msgTypes[9].OneofWrappers = []any{ (*GetNodeResponse_Generic)(nil), (*GetNodeResponse_Container)(nil), (*GetNodeResponse_Remote)(nil), (*GetNodeResponse_RemoteRds)(nil), (*GetNodeResponse_RemoteAzureDatabase)(nil), + (*GetNodeResponse_RemoteElasticache)(nil), } - file_inventory_v1_nodes_proto_msgTypes[9].OneofWrappers = []any{ + file_inventory_v1_nodes_proto_msgTypes[10].OneofWrappers = []any{ (*AddNodeRequest_Generic)(nil), (*AddNodeRequest_Container)(nil), (*AddNodeRequest_Remote)(nil), (*AddNodeRequest_RemoteRds)(nil), (*AddNodeRequest_RemoteAzure)(nil), + (*AddNodeRequest_RemoteElasticache)(nil), } - file_inventory_v1_nodes_proto_msgTypes[10].OneofWrappers = []any{ + file_inventory_v1_nodes_proto_msgTypes[11].OneofWrappers = []any{ (*AddNodeResponse_Generic)(nil), (*AddNodeResponse_Container)(nil), (*AddNodeResponse_Remote)(nil), (*AddNodeResponse_RemoteRds)(nil), (*AddNodeResponse_RemoteAzureDatabase)(nil), + (*AddNodeResponse_RemoteElasticache)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2123,7 +2424,7 @@ func file_inventory_v1_nodes_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_inventory_v1_nodes_proto_rawDesc), len(file_inventory_v1_nodes_proto_rawDesc)), NumEnums: 1, - NumMessages: 28, + NumMessages: 32, NumExtensions: 0, NumServices: 1, }, diff --git a/api/inventory/v1/nodes.pb.validate.go b/api/inventory/v1/nodes.pb.validate.go index 99d6893a535..7453876d1a2 100644 --- a/api/inventory/v1/nodes.pb.validate.go +++ b/api/inventory/v1/nodes.pb.validate.go @@ -626,6 +626,124 @@ var _ interface { ErrorName() string } = RemoteAzureDatabaseNodeValidationError{} +// Validate checks the field values on RemoteElastiCacheNode with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *RemoteElastiCacheNode) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on RemoteElastiCacheNode with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// RemoteElastiCacheNodeMultiError, or nil if none found. +func (m *RemoteElastiCacheNode) ValidateAll() error { + return m.validate(true) +} + +func (m *RemoteElastiCacheNode) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for NodeId + + // no validation rules for NodeName + + // no validation rules for Address + + // no validation rules for NodeModel + + // no validation rules for Region + + // no validation rules for Az + + // no validation rules for CustomLabels + + // no validation rules for InstanceId + + if len(errors) > 0 { + return RemoteElastiCacheNodeMultiError(errors) + } + + return nil +} + +// RemoteElastiCacheNodeMultiError is an error wrapping multiple validation +// errors returned by RemoteElastiCacheNode.ValidateAll() if the designated +// constraints aren't met. +type RemoteElastiCacheNodeMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m RemoteElastiCacheNodeMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m RemoteElastiCacheNodeMultiError) AllErrors() []error { return m } + +// RemoteElastiCacheNodeValidationError is the validation error returned by +// RemoteElastiCacheNode.Validate if the designated constraints aren't met. +type RemoteElastiCacheNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RemoteElastiCacheNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RemoteElastiCacheNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RemoteElastiCacheNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RemoteElastiCacheNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RemoteElastiCacheNodeValidationError) ErrorName() string { + return "RemoteElastiCacheNodeValidationError" +} + +// Error satisfies the builtin error interface +func (e RemoteElastiCacheNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRemoteElastiCacheNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RemoteElastiCacheNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RemoteElastiCacheNodeValidationError{} + // Validate checks the field values on ListNodesRequest with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. @@ -921,6 +1039,40 @@ func (m *ListNodesResponse) validate(all bool) error { } + for idx, item := range m.GetRemoteElasticache() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ListNodesResponseValidationError{ + field: fmt.Sprintf("RemoteElasticache[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ListNodesResponseValidationError{ + field: fmt.Sprintf("RemoteElasticache[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ListNodesResponseValidationError{ + field: fmt.Sprintf("RemoteElasticache[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + if len(errors) > 0 { return ListNodesResponseMultiError(errors) } @@ -1342,6 +1494,47 @@ func (m *GetNodeResponse) validate(all bool) error { } } + case *GetNodeResponse_RemoteElasticache: + if v == nil { + err := GetNodeResponseValidationError{ + field: "Node", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetRemoteElasticache()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, GetNodeResponseValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, GetNodeResponseValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRemoteElasticache()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetNodeResponseValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } @@ -1653,6 +1846,47 @@ func (m *AddNodeRequest) validate(all bool) error { } } + case *AddNodeRequest_RemoteElasticache: + if v == nil { + err := AddNodeRequestValidationError{ + field: "Node", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetRemoteElasticache()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddNodeRequestValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddNodeRequestValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRemoteElasticache()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddNodeRequestValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } @@ -1964,6 +2198,47 @@ func (m *AddNodeResponse) validate(all bool) error { } } + case *AddNodeResponse_RemoteElasticache: + if v == nil { + err := AddNodeResponseValidationError{ + field: "Node", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetRemoteElasticache()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddNodeResponseValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddNodeResponseValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRemoteElasticache()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddNodeResponseValidationError{ + field: "RemoteElasticache", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } @@ -2740,6 +3015,148 @@ var _ interface { ErrorName() string } = AddRemoteAzureNodeParamsValidationError{} +// Validate checks the field values on AddRemoteElastiCacheNodeParams with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *AddRemoteElastiCacheNodeParams) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on AddRemoteElastiCacheNodeParams with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// AddRemoteElastiCacheNodeParamsMultiError, or nil if none found. +func (m *AddRemoteElastiCacheNodeParams) ValidateAll() error { + return m.validate(true) +} + +func (m *AddRemoteElastiCacheNodeParams) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if utf8.RuneCountInString(m.GetNodeName()) < 1 { + err := AddRemoteElastiCacheNodeParamsValidationError{ + field: "NodeName", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + if utf8.RuneCountInString(m.GetAddress()) < 1 { + err := AddRemoteElastiCacheNodeParamsValidationError{ + field: "Address", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + // no validation rules for NodeModel + + if utf8.RuneCountInString(m.GetRegion()) < 1 { + err := AddRemoteElastiCacheNodeParamsValidationError{ + field: "Region", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + // no validation rules for Az + + // no validation rules for CustomLabels + + if len(errors) > 0 { + return AddRemoteElastiCacheNodeParamsMultiError(errors) + } + + return nil +} + +// AddRemoteElastiCacheNodeParamsMultiError is an error wrapping multiple +// validation errors returned by AddRemoteElastiCacheNodeParams.ValidateAll() +// if the designated constraints aren't met. +type AddRemoteElastiCacheNodeParamsMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m AddRemoteElastiCacheNodeParamsMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m AddRemoteElastiCacheNodeParamsMultiError) AllErrors() []error { return m } + +// AddRemoteElastiCacheNodeParamsValidationError is the validation error +// returned by AddRemoteElastiCacheNodeParams.Validate if the designated +// constraints aren't met. +type AddRemoteElastiCacheNodeParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddRemoteElastiCacheNodeParamsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddRemoteElastiCacheNodeParamsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddRemoteElastiCacheNodeParamsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddRemoteElastiCacheNodeParamsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddRemoteElastiCacheNodeParamsValidationError) ErrorName() string { + return "AddRemoteElastiCacheNodeParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e AddRemoteElastiCacheNodeParamsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAddRemoteElastiCacheNodeParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AddRemoteElastiCacheNodeParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddRemoteElastiCacheNodeParamsValidationError{} + // Validate checks the field values on RemoveNodeRequest with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations. diff --git a/api/inventory/v1/nodes.proto b/api/inventory/v1/nodes.proto index 3cead66d61b..93807826c78 100644 --- a/api/inventory/v1/nodes.proto +++ b/api/inventory/v1/nodes.proto @@ -14,6 +14,7 @@ enum NodeType { NODE_TYPE_REMOTE_NODE = 3; NODE_TYPE_REMOTE_RDS_NODE = 4; NODE_TYPE_REMOTE_AZURE_DATABASE_NODE = 5; + NODE_TYPE_REMOTE_ELASTICACHE_NODE = 6; } // GenericNode represents a bare metal server or virtual machine. @@ -122,6 +123,26 @@ message RemoteAzureDatabaseNode { map custom_labels = 7; } +// RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes. +message RemoteElastiCacheNode { + // Unique randomly generated instance identifier. + string node_id = 1; + // Unique across all Nodes user-defined name. + string node_name = 2; + // ElastiCache primary endpoint address. + string address = 3; + // Node model (cache node type). + string node_model = 4; + // Node region. + string region = 5; + // Node availability zone. + string az = 6; + // Custom user-assigned labels. + map custom_labels = 7; + // AWS instance ID (replication group ID). + string instance_id = 8; +} + // List message ListNodesRequest { @@ -135,6 +156,7 @@ message ListNodesResponse { repeated RemoteNode remote = 3; repeated RemoteRDSNode remote_rds = 4; repeated RemoteAzureDatabaseNode remote_azure_database = 5; + repeated RemoteElastiCacheNode remote_elasticache = 6; } // Get @@ -151,6 +173,7 @@ message GetNodeResponse { RemoteNode remote = 3; RemoteRDSNode remote_rds = 4; RemoteAzureDatabaseNode remote_azure_database = 5; + RemoteElastiCacheNode remote_elasticache = 6; } } @@ -163,6 +186,7 @@ message AddNodeRequest { AddRemoteNodeParams remote = 3; AddRemoteRDSNodeParams remote_rds = 4; AddRemoteAzureNodeParams remote_azure = 5; + AddRemoteElastiCacheNodeParams remote_elasticache = 6; } } @@ -173,6 +197,7 @@ message AddNodeResponse { RemoteNode remote = 3; RemoteRDSNode remote_rds = 4; RemoteAzureDatabaseNode remote_azure_database = 5; + RemoteElastiCacheNode remote_elasticache = 6; } } @@ -271,6 +296,23 @@ message AddRemoteAzureNodeParams { map custom_labels = 6; } +// Add Remote ElastiCache + +message AddRemoteElastiCacheNodeParams { + // Unique across all Nodes user-defined name. + string node_name = 1 [(validate.rules).string.min_len = 1]; + // ElastiCache primary endpoint address. + string address = 2 [(validate.rules).string.min_len = 1]; + // Node model (cache node type). + string node_model = 3; + // Node region. + string region = 4 [(validate.rules).string.min_len = 1]; + // Node availability zone. + string az = 5; + // Custom user-assigned labels. + map custom_labels = 6; +} + // Remove message RemoveNodeRequest { diff --git a/api/management/v1/elasticache.pb.go b/api/management/v1/elasticache.pb.go new file mode 100644 index 00000000000..50692a3f9c2 --- /dev/null +++ b/api/management/v1/elasticache.pb.go @@ -0,0 +1,722 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc (unknown) +// source: management/v1/elasticache.proto + +package managementv1 + +import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// DiscoverElastiCacheEngine describes supported ElastiCache engines. +type DiscoverElastiCacheEngine int32 + +const ( + DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED DiscoverElastiCacheEngine = 0 + DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_REDIS DiscoverElastiCacheEngine = 1 + DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_VALKEY DiscoverElastiCacheEngine = 2 +) + +// Enum value maps for DiscoverElastiCacheEngine. +var ( + DiscoverElastiCacheEngine_name = map[int32]string{ + 0: "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + 1: "DISCOVER_ELASTICACHE_ENGINE_REDIS", + 2: "DISCOVER_ELASTICACHE_ENGINE_VALKEY", + } + DiscoverElastiCacheEngine_value = map[string]int32{ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED": 0, + "DISCOVER_ELASTICACHE_ENGINE_REDIS": 1, + "DISCOVER_ELASTICACHE_ENGINE_VALKEY": 2, + } +) + +func (x DiscoverElastiCacheEngine) Enum() *DiscoverElastiCacheEngine { + p := new(DiscoverElastiCacheEngine) + *p = x + return p +} + +func (x DiscoverElastiCacheEngine) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DiscoverElastiCacheEngine) Descriptor() protoreflect.EnumDescriptor { + return file_management_v1_elasticache_proto_enumTypes[0].Descriptor() +} + +func (DiscoverElastiCacheEngine) Type() protoreflect.EnumType { + return &file_management_v1_elasticache_proto_enumTypes[0] +} + +func (x DiscoverElastiCacheEngine) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DiscoverElastiCacheEngine.Descriptor instead. +func (DiscoverElastiCacheEngine) EnumDescriptor() ([]byte, []int) { + return file_management_v1_elasticache_proto_rawDescGZIP(), []int{0} +} + +// DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API. +type DiscoverElastiCacheInstance struct { + state protoimpl.MessageState `protogen:"open.v1"` + // AWS region. + Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + // AWS availability zone. + Az string `protobuf:"bytes,2,opt,name=az,proto3" json:"az,omitempty"` + // Replication group identifier. + InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + // Cache node type (e.g. cache.r7g.large). + NodeModel string `protobuf:"bytes,4,opt,name=node_model,json=nodeModel,proto3" json:"node_model,omitempty"` + // Primary endpoint address. + Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` + // Primary endpoint port. + Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"` + // Engine type (redis or valkey). + Engine DiscoverElastiCacheEngine `protobuf:"varint,7,opt,name=engine,proto3,enum=management.v1.DiscoverElastiCacheEngine" json:"engine,omitempty"` + // Engine version. + EngineVersion string `protobuf:"bytes,8,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"` + // Whether in-transit encryption is enabled. + TransitEncryptionEnabled bool `protobuf:"varint,9,opt,name=transit_encryption_enabled,json=transitEncryptionEnabled,proto3" json:"transit_encryption_enabled,omitempty"` + // Cluster name (replication group ID). + Cluster string `protobuf:"bytes,10,opt,name=cluster,proto3" json:"cluster,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DiscoverElastiCacheInstance) Reset() { + *x = DiscoverElastiCacheInstance{} + mi := &file_management_v1_elasticache_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DiscoverElastiCacheInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiscoverElastiCacheInstance) ProtoMessage() {} + +func (x *DiscoverElastiCacheInstance) ProtoReflect() protoreflect.Message { + mi := &file_management_v1_elasticache_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiscoverElastiCacheInstance.ProtoReflect.Descriptor instead. +func (*DiscoverElastiCacheInstance) Descriptor() ([]byte, []int) { + return file_management_v1_elasticache_proto_rawDescGZIP(), []int{0} +} + +func (x *DiscoverElastiCacheInstance) GetRegion() string { + if x != nil { + return x.Region + } + return "" +} + +func (x *DiscoverElastiCacheInstance) GetAz() string { + if x != nil { + return x.Az + } + return "" +} + +func (x *DiscoverElastiCacheInstance) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *DiscoverElastiCacheInstance) GetNodeModel() string { + if x != nil { + return x.NodeModel + } + return "" +} + +func (x *DiscoverElastiCacheInstance) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *DiscoverElastiCacheInstance) GetPort() uint32 { + if x != nil { + return x.Port + } + return 0 +} + +func (x *DiscoverElastiCacheInstance) GetEngine() DiscoverElastiCacheEngine { + if x != nil { + return x.Engine + } + return DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED +} + +func (x *DiscoverElastiCacheInstance) GetEngineVersion() string { + if x != nil { + return x.EngineVersion + } + return "" +} + +func (x *DiscoverElastiCacheInstance) GetTransitEncryptionEnabled() bool { + if x != nil { + return x.TransitEncryptionEnabled + } + return false +} + +func (x *DiscoverElastiCacheInstance) GetCluster() string { + if x != nil { + return x.Cluster + } + return "" +} + +type DiscoverElastiCacheRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // AWS Access key. Optional — if empty, the default credential chain is used. + AwsAccessKey string `protobuf:"bytes,1,opt,name=aws_access_key,json=awsAccessKey,proto3" json:"aws_access_key,omitempty"` + // AWS Secret key. Optional. + AwsSecretKey string `protobuf:"bytes,2,opt,name=aws_secret_key,json=awsSecretKey,proto3" json:"aws_secret_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DiscoverElastiCacheRequest) Reset() { + *x = DiscoverElastiCacheRequest{} + mi := &file_management_v1_elasticache_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DiscoverElastiCacheRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiscoverElastiCacheRequest) ProtoMessage() {} + +func (x *DiscoverElastiCacheRequest) ProtoReflect() protoreflect.Message { + mi := &file_management_v1_elasticache_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiscoverElastiCacheRequest.ProtoReflect.Descriptor instead. +func (*DiscoverElastiCacheRequest) Descriptor() ([]byte, []int) { + return file_management_v1_elasticache_proto_rawDescGZIP(), []int{1} +} + +func (x *DiscoverElastiCacheRequest) GetAwsAccessKey() string { + if x != nil { + return x.AwsAccessKey + } + return "" +} + +func (x *DiscoverElastiCacheRequest) GetAwsSecretKey() string { + if x != nil { + return x.AwsSecretKey + } + return "" +} + +type DiscoverElastiCacheResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + ElasticacheInstances []*DiscoverElastiCacheInstance `protobuf:"bytes,1,rep,name=elasticache_instances,json=elasticacheInstances,proto3" json:"elasticache_instances,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DiscoverElastiCacheResponse) Reset() { + *x = DiscoverElastiCacheResponse{} + mi := &file_management_v1_elasticache_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DiscoverElastiCacheResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiscoverElastiCacheResponse) ProtoMessage() {} + +func (x *DiscoverElastiCacheResponse) ProtoReflect() protoreflect.Message { + mi := &file_management_v1_elasticache_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiscoverElastiCacheResponse.ProtoReflect.Descriptor instead. +func (*DiscoverElastiCacheResponse) Descriptor() ([]byte, []int) { + return file_management_v1_elasticache_proto_rawDescGZIP(), []int{2} +} + +func (x *DiscoverElastiCacheResponse) GetElasticacheInstances() []*DiscoverElastiCacheInstance { + if x != nil { + return x.ElasticacheInstances + } + return nil +} + +type AddElastiCacheServiceParams struct { + state protoimpl.MessageState `protogen:"open.v1"` + // AWS region. + Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + // AWS availability zone. + Az string `protobuf:"bytes,2,opt,name=az,proto3" json:"az,omitempty"` + // Replication group identifier. + InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` + // Cache node type. + NodeModel string `protobuf:"bytes,4,opt,name=node_model,json=nodeModel,proto3" json:"node_model,omitempty"` + // Primary endpoint address. + Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` + // Primary endpoint port. + Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"` + // Engine type. + Engine DiscoverElastiCacheEngine `protobuf:"varint,7,opt,name=engine,proto3,enum=management.v1.DiscoverElastiCacheEngine" json:"engine,omitempty"` + // PMM Agent ID. + PmmAgentId string `protobuf:"bytes,8,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` + // Unique across all Nodes user-defined name. Defaults to instance_id. + NodeName string `protobuf:"bytes,9,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + // Unique across all Services user-defined name. Defaults to instance_id. + ServiceName string `protobuf:"bytes,10,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` + // Environment name. + Environment string `protobuf:"bytes,11,opt,name=environment,proto3" json:"environment,omitempty"` + // Cluster name. + Cluster string `protobuf:"bytes,12,opt,name=cluster,proto3" json:"cluster,omitempty"` + // Replication set name. + ReplicationSet string `protobuf:"bytes,13,opt,name=replication_set,json=replicationSet,proto3" json:"replication_set,omitempty"` + // Username for scraping metrics. + Username string `protobuf:"bytes,14,opt,name=username,proto3" json:"username,omitempty"` + // Password for scraping metrics. + Password string `protobuf:"bytes,15,opt,name=password,proto3" json:"password,omitempty"` + // Custom user-assigned labels for Node and Service. + CustomLabels map[string]string `protobuf:"bytes,16,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // Skip connection check. + SkipConnectionCheck bool `protobuf:"varint,17,opt,name=skip_connection_check,json=skipConnectionCheck,proto3" json:"skip_connection_check,omitempty"` + // Use TLS for database connections. + Tls bool `protobuf:"varint,18,opt,name=tls,proto3" json:"tls,omitempty"` + // Skip TLS certificate and hostname validation. + TlsSkipVerify bool `protobuf:"varint,19,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"` + // Defines metrics flow model for this exporter. + MetricsMode MetricsMode `protobuf:"varint,20,opt,name=metrics_mode,json=metricsMode,proto3,enum=management.v1.MetricsMode" json:"metrics_mode,omitempty"` + // Custom password for exporter endpoint /metrics. + AgentPassword string `protobuf:"bytes,21,opt,name=agent_password,json=agentPassword,proto3" json:"agent_password,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AddElastiCacheServiceParams) Reset() { + *x = AddElastiCacheServiceParams{} + mi := &file_management_v1_elasticache_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AddElastiCacheServiceParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddElastiCacheServiceParams) ProtoMessage() {} + +func (x *AddElastiCacheServiceParams) ProtoReflect() protoreflect.Message { + mi := &file_management_v1_elasticache_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddElastiCacheServiceParams.ProtoReflect.Descriptor instead. +func (*AddElastiCacheServiceParams) Descriptor() ([]byte, []int) { + return file_management_v1_elasticache_proto_rawDescGZIP(), []int{3} +} + +func (x *AddElastiCacheServiceParams) GetRegion() string { + if x != nil { + return x.Region + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetAz() string { + if x != nil { + return x.Az + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetNodeModel() string { + if x != nil { + return x.NodeModel + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetPort() uint32 { + if x != nil { + return x.Port + } + return 0 +} + +func (x *AddElastiCacheServiceParams) GetEngine() DiscoverElastiCacheEngine { + if x != nil { + return x.Engine + } + return DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED +} + +func (x *AddElastiCacheServiceParams) GetPmmAgentId() string { + if x != nil { + return x.PmmAgentId + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetNodeName() string { + if x != nil { + return x.NodeName + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetServiceName() string { + if x != nil { + return x.ServiceName + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetEnvironment() string { + if x != nil { + return x.Environment + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetCluster() string { + if x != nil { + return x.Cluster + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetReplicationSet() string { + if x != nil { + return x.ReplicationSet + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *AddElastiCacheServiceParams) GetCustomLabels() map[string]string { + if x != nil { + return x.CustomLabels + } + return nil +} + +func (x *AddElastiCacheServiceParams) GetSkipConnectionCheck() bool { + if x != nil { + return x.SkipConnectionCheck + } + return false +} + +func (x *AddElastiCacheServiceParams) GetTls() bool { + if x != nil { + return x.Tls + } + return false +} + +func (x *AddElastiCacheServiceParams) GetTlsSkipVerify() bool { + if x != nil { + return x.TlsSkipVerify + } + return false +} + +func (x *AddElastiCacheServiceParams) GetMetricsMode() MetricsMode { + if x != nil { + return x.MetricsMode + } + return MetricsMode_METRICS_MODE_UNSPECIFIED +} + +func (x *AddElastiCacheServiceParams) GetAgentPassword() string { + if x != nil { + return x.AgentPassword + } + return "" +} + +type ElastiCacheServiceResult struct { + state protoimpl.MessageState `protogen:"open.v1"` + Node *v1.RemoteElastiCacheNode `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + ValkeyService *v1.ValkeyService `protobuf:"bytes,2,opt,name=valkey_service,json=valkeyService,proto3" json:"valkey_service,omitempty"` + ValkeyExporter *v1.ValkeyExporter `protobuf:"bytes,3,opt,name=valkey_exporter,json=valkeyExporter,proto3" json:"valkey_exporter,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ElastiCacheServiceResult) Reset() { + *x = ElastiCacheServiceResult{} + mi := &file_management_v1_elasticache_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ElastiCacheServiceResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ElastiCacheServiceResult) ProtoMessage() {} + +func (x *ElastiCacheServiceResult) ProtoReflect() protoreflect.Message { + mi := &file_management_v1_elasticache_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ElastiCacheServiceResult.ProtoReflect.Descriptor instead. +func (*ElastiCacheServiceResult) Descriptor() ([]byte, []int) { + return file_management_v1_elasticache_proto_rawDescGZIP(), []int{4} +} + +func (x *ElastiCacheServiceResult) GetNode() *v1.RemoteElastiCacheNode { + if x != nil { + return x.Node + } + return nil +} + +func (x *ElastiCacheServiceResult) GetValkeyService() *v1.ValkeyService { + if x != nil { + return x.ValkeyService + } + return nil +} + +func (x *ElastiCacheServiceResult) GetValkeyExporter() *v1.ValkeyExporter { + if x != nil { + return x.ValkeyExporter + } + return nil +} + +var File_management_v1_elasticache_proto protoreflect.FileDescriptor + +const file_management_v1_elasticache_proto_rawDesc = "" + + "\n" + + "\x1fmanagement/v1/elasticache.proto\x12\rmanagement.v1\x1a\x1aextensions/v1/redact.proto\x1a\x19inventory/v1/agents.proto\x1a\x18inventory/v1/nodes.proto\x1a\x1binventory/v1/services.proto\x1a\x1bmanagement/v1/metrics.proto\x1a\x17validate/validate.proto\"\xf4\x02\n" + + "\x1bDiscoverElastiCacheInstance\x12\x16\n" + + "\x06region\x18\x01 \x01(\tR\x06region\x12\x0e\n" + + "\x02az\x18\x02 \x01(\tR\x02az\x12\x1f\n" + + "\vinstance_id\x18\x03 \x01(\tR\n" + + "instanceId\x12\x1d\n" + + "\n" + + "node_model\x18\x04 \x01(\tR\tnodeModel\x12\x18\n" + + "\aaddress\x18\x05 \x01(\tR\aaddress\x12\x12\n" + + "\x04port\x18\x06 \x01(\rR\x04port\x12@\n" + + "\x06engine\x18\a \x01(\x0e2(.management.v1.DiscoverElastiCacheEngineR\x06engine\x12%\n" + + "\x0eengine_version\x18\b \x01(\tR\rengineVersion\x12<\n" + + "\x1atransit_encryption_enabled\x18\t \x01(\bR\x18transitEncryptionEnabled\x12\x18\n" + + "\acluster\x18\n" + + " \x01(\tR\acluster\"t\n" + + "\x1aDiscoverElastiCacheRequest\x12*\n" + + "\x0eaws_access_key\x18\x01 \x01(\tB\x04\x88\xb5\x18\x01R\fawsAccessKey\x12*\n" + + "\x0eaws_secret_key\x18\x02 \x01(\tB\x04\x88\xb5\x18\x01R\fawsSecretKey\"~\n" + + "\x1bDiscoverElastiCacheResponse\x12_\n" + + "\x15elasticache_instances\x18\x01 \x03(\v2*.management.v1.DiscoverElastiCacheInstanceR\x14elasticacheInstances\"\x9c\a\n" + + "\x1bAddElastiCacheServiceParams\x12\x1f\n" + + "\x06region\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06region\x12\x0e\n" + + "\x02az\x18\x02 \x01(\tR\x02az\x12(\n" + + "\vinstance_id\x18\x03 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\n" + + "instanceId\x12\x1d\n" + + "\n" + + "node_model\x18\x04 \x01(\tR\tnodeModel\x12!\n" + + "\aaddress\x18\x05 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\aaddress\x12\x1b\n" + + "\x04port\x18\x06 \x01(\rB\a\xfaB\x04*\x02 \x00R\x04port\x12@\n" + + "\x06engine\x18\a \x01(\x0e2(.management.v1.DiscoverElastiCacheEngineR\x06engine\x12 \n" + + "\fpmm_agent_id\x18\b \x01(\tR\n" + + "pmmAgentId\x12\x1b\n" + + "\tnode_name\x18\t \x01(\tR\bnodeName\x12!\n" + + "\fservice_name\x18\n" + + " \x01(\tR\vserviceName\x12 \n" + + "\venvironment\x18\v \x01(\tR\venvironment\x12\x18\n" + + "\acluster\x18\f \x01(\tR\acluster\x12'\n" + + "\x0freplication_set\x18\r \x01(\tR\x0ereplicationSet\x12\x1a\n" + + "\busername\x18\x0e \x01(\tR\busername\x12 \n" + + "\bpassword\x18\x0f \x01(\tB\x04\x88\xb5\x18\x01R\bpassword\x12a\n" + + "\rcustom_labels\x18\x10 \x03(\v2<.management.v1.AddElastiCacheServiceParams.CustomLabelsEntryR\fcustomLabels\x122\n" + + "\x15skip_connection_check\x18\x11 \x01(\bR\x13skipConnectionCheck\x12\x10\n" + + "\x03tls\x18\x12 \x01(\bR\x03tls\x12&\n" + + "\x0ftls_skip_verify\x18\x13 \x01(\bR\rtlsSkipVerify\x12=\n" + + "\fmetrics_mode\x18\x14 \x01(\x0e2\x1a.management.v1.MetricsModeR\vmetricsMode\x12+\n" + + "\x0eagent_password\x18\x15 \x01(\tB\x04\x88\xb5\x18\x01R\ragentPassword\x1a?\n" + + "\x11CustomLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xde\x01\n" + + "\x18ElastiCacheServiceResult\x127\n" + + "\x04node\x18\x01 \x01(\v2#.inventory.v1.RemoteElastiCacheNodeR\x04node\x12B\n" + + "\x0evalkey_service\x18\x02 \x01(\v2\x1b.inventory.v1.ValkeyServiceR\rvalkeyService\x12E\n" + + "\x0fvalkey_exporter\x18\x03 \x01(\v2\x1c.inventory.v1.ValkeyExporterR\x0evalkeyExporter*\x97\x01\n" + + "\x19DiscoverElastiCacheEngine\x12+\n" + + "'DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED\x10\x00\x12%\n" + + "!DISCOVER_ELASTICACHE_ENGINE_REDIS\x10\x01\x12&\n" + + "\"DISCOVER_ELASTICACHE_ENGINE_VALKEY\x10\x02B\xb1\x01\n" + + "\x11com.management.v1B\x10ElasticacheProtoP\x01Z5github.com/percona/pmm/api/management/v1;managementv1\xa2\x02\x03MXX\xaa\x02\rManagement.V1\xca\x02\rManagement\\V1\xe2\x02\x19Management\\V1\\GPBMetadata\xea\x02\x0eManagement::V1b\x06proto3" + +var ( + file_management_v1_elasticache_proto_rawDescOnce sync.Once + file_management_v1_elasticache_proto_rawDescData []byte +) + +func file_management_v1_elasticache_proto_rawDescGZIP() []byte { + file_management_v1_elasticache_proto_rawDescOnce.Do(func() { + file_management_v1_elasticache_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_management_v1_elasticache_proto_rawDesc), len(file_management_v1_elasticache_proto_rawDesc))) + }) + return file_management_v1_elasticache_proto_rawDescData +} + +var ( + file_management_v1_elasticache_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_elasticache_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_management_v1_elasticache_proto_goTypes = []any{ + (DiscoverElastiCacheEngine)(0), // 0: management.v1.DiscoverElastiCacheEngine + (*DiscoverElastiCacheInstance)(nil), // 1: management.v1.DiscoverElastiCacheInstance + (*DiscoverElastiCacheRequest)(nil), // 2: management.v1.DiscoverElastiCacheRequest + (*DiscoverElastiCacheResponse)(nil), // 3: management.v1.DiscoverElastiCacheResponse + (*AddElastiCacheServiceParams)(nil), // 4: management.v1.AddElastiCacheServiceParams + (*ElastiCacheServiceResult)(nil), // 5: management.v1.ElastiCacheServiceResult + nil, // 6: management.v1.AddElastiCacheServiceParams.CustomLabelsEntry + (MetricsMode)(0), // 7: management.v1.MetricsMode + (*v1.RemoteElastiCacheNode)(nil), // 8: inventory.v1.RemoteElastiCacheNode + (*v1.ValkeyService)(nil), // 9: inventory.v1.ValkeyService + (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter + } +) + +var file_management_v1_elasticache_proto_depIdxs = []int32{ + 0, // 0: management.v1.DiscoverElastiCacheInstance.engine:type_name -> management.v1.DiscoverElastiCacheEngine + 1, // 1: management.v1.DiscoverElastiCacheResponse.elasticache_instances:type_name -> management.v1.DiscoverElastiCacheInstance + 0, // 2: management.v1.AddElastiCacheServiceParams.engine:type_name -> management.v1.DiscoverElastiCacheEngine + 6, // 3: management.v1.AddElastiCacheServiceParams.custom_labels:type_name -> management.v1.AddElastiCacheServiceParams.CustomLabelsEntry + 7, // 4: management.v1.AddElastiCacheServiceParams.metrics_mode:type_name -> management.v1.MetricsMode + 8, // 5: management.v1.ElastiCacheServiceResult.node:type_name -> inventory.v1.RemoteElastiCacheNode + 9, // 6: management.v1.ElastiCacheServiceResult.valkey_service:type_name -> inventory.v1.ValkeyService + 10, // 7: management.v1.ElastiCacheServiceResult.valkey_exporter:type_name -> inventory.v1.ValkeyExporter + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_management_v1_elasticache_proto_init() } +func file_management_v1_elasticache_proto_init() { + if File_management_v1_elasticache_proto != nil { + return + } + file_management_v1_metrics_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_management_v1_elasticache_proto_rawDesc), len(file_management_v1_elasticache_proto_rawDesc)), + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_management_v1_elasticache_proto_goTypes, + DependencyIndexes: file_management_v1_elasticache_proto_depIdxs, + EnumInfos: file_management_v1_elasticache_proto_enumTypes, + MessageInfos: file_management_v1_elasticache_proto_msgTypes, + }.Build() + File_management_v1_elasticache_proto = out.File + file_management_v1_elasticache_proto_goTypes = nil + file_management_v1_elasticache_proto_depIdxs = nil +} diff --git a/api/management/v1/elasticache.pb.validate.go b/api/management/v1/elasticache.pb.validate.go new file mode 100644 index 00000000000..b4b506e4ca9 --- /dev/null +++ b/api/management/v1/elasticache.pb.validate.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: management/v1/elasticache.proto + +package managementv1 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "sort" + "strings" + "time" + "unicode/utf8" + + "google.golang.org/protobuf/types/known/anypb" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = anypb.Any{} + _ = sort.Sort +) + +// Validate checks the field values on DiscoverElastiCacheInstance with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *DiscoverElastiCacheInstance) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on DiscoverElastiCacheInstance with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// DiscoverElastiCacheInstanceMultiError, or nil if none found. +func (m *DiscoverElastiCacheInstance) ValidateAll() error { + return m.validate(true) +} + +func (m *DiscoverElastiCacheInstance) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for Region + + // no validation rules for Az + + // no validation rules for InstanceId + + // no validation rules for NodeModel + + // no validation rules for Address + + // no validation rules for Port + + // no validation rules for Engine + + // no validation rules for EngineVersion + + // no validation rules for TransitEncryptionEnabled + + // no validation rules for Cluster + + if len(errors) > 0 { + return DiscoverElastiCacheInstanceMultiError(errors) + } + + return nil +} + +// DiscoverElastiCacheInstanceMultiError is an error wrapping multiple +// validation errors returned by DiscoverElastiCacheInstance.ValidateAll() if +// the designated constraints aren't met. +type DiscoverElastiCacheInstanceMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m DiscoverElastiCacheInstanceMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m DiscoverElastiCacheInstanceMultiError) AllErrors() []error { return m } + +// DiscoverElastiCacheInstanceValidationError is the validation error returned +// by DiscoverElastiCacheInstance.Validate if the designated constraints +// aren't met. +type DiscoverElastiCacheInstanceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DiscoverElastiCacheInstanceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DiscoverElastiCacheInstanceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DiscoverElastiCacheInstanceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DiscoverElastiCacheInstanceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DiscoverElastiCacheInstanceValidationError) ErrorName() string { + return "DiscoverElastiCacheInstanceValidationError" +} + +// Error satisfies the builtin error interface +func (e DiscoverElastiCacheInstanceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDiscoverElastiCacheInstance.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DiscoverElastiCacheInstanceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DiscoverElastiCacheInstanceValidationError{} + +// Validate checks the field values on DiscoverElastiCacheRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *DiscoverElastiCacheRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on DiscoverElastiCacheRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// DiscoverElastiCacheRequestMultiError, or nil if none found. +func (m *DiscoverElastiCacheRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *DiscoverElastiCacheRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for AwsAccessKey + + // no validation rules for AwsSecretKey + + if len(errors) > 0 { + return DiscoverElastiCacheRequestMultiError(errors) + } + + return nil +} + +// DiscoverElastiCacheRequestMultiError is an error wrapping multiple +// validation errors returned by DiscoverElastiCacheRequest.ValidateAll() if +// the designated constraints aren't met. +type DiscoverElastiCacheRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m DiscoverElastiCacheRequestMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m DiscoverElastiCacheRequestMultiError) AllErrors() []error { return m } + +// DiscoverElastiCacheRequestValidationError is the validation error returned +// by DiscoverElastiCacheRequest.Validate if the designated constraints aren't met. +type DiscoverElastiCacheRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DiscoverElastiCacheRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DiscoverElastiCacheRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DiscoverElastiCacheRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DiscoverElastiCacheRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DiscoverElastiCacheRequestValidationError) ErrorName() string { + return "DiscoverElastiCacheRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e DiscoverElastiCacheRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDiscoverElastiCacheRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DiscoverElastiCacheRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DiscoverElastiCacheRequestValidationError{} + +// Validate checks the field values on DiscoverElastiCacheResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *DiscoverElastiCacheResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on DiscoverElastiCacheResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// DiscoverElastiCacheResponseMultiError, or nil if none found. +func (m *DiscoverElastiCacheResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *DiscoverElastiCacheResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetElasticacheInstances() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, DiscoverElastiCacheResponseValidationError{ + field: fmt.Sprintf("ElasticacheInstances[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, DiscoverElastiCacheResponseValidationError{ + field: fmt.Sprintf("ElasticacheInstances[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DiscoverElastiCacheResponseValidationError{ + field: fmt.Sprintf("ElasticacheInstances[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return DiscoverElastiCacheResponseMultiError(errors) + } + + return nil +} + +// DiscoverElastiCacheResponseMultiError is an error wrapping multiple +// validation errors returned by DiscoverElastiCacheResponse.ValidateAll() if +// the designated constraints aren't met. +type DiscoverElastiCacheResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m DiscoverElastiCacheResponseMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m DiscoverElastiCacheResponseMultiError) AllErrors() []error { return m } + +// DiscoverElastiCacheResponseValidationError is the validation error returned +// by DiscoverElastiCacheResponse.Validate if the designated constraints +// aren't met. +type DiscoverElastiCacheResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DiscoverElastiCacheResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DiscoverElastiCacheResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DiscoverElastiCacheResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DiscoverElastiCacheResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DiscoverElastiCacheResponseValidationError) ErrorName() string { + return "DiscoverElastiCacheResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e DiscoverElastiCacheResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDiscoverElastiCacheResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DiscoverElastiCacheResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DiscoverElastiCacheResponseValidationError{} + +// Validate checks the field values on AddElastiCacheServiceParams with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *AddElastiCacheServiceParams) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on AddElastiCacheServiceParams with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// AddElastiCacheServiceParamsMultiError, or nil if none found. +func (m *AddElastiCacheServiceParams) ValidateAll() error { + return m.validate(true) +} + +func (m *AddElastiCacheServiceParams) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if utf8.RuneCountInString(m.GetRegion()) < 1 { + err := AddElastiCacheServiceParamsValidationError{ + field: "Region", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + // no validation rules for Az + + if utf8.RuneCountInString(m.GetInstanceId()) < 1 { + err := AddElastiCacheServiceParamsValidationError{ + field: "InstanceId", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + // no validation rules for NodeModel + + if utf8.RuneCountInString(m.GetAddress()) < 1 { + err := AddElastiCacheServiceParamsValidationError{ + field: "Address", + reason: "value length must be at least 1 runes", + } + if !all { + return err + } + errors = append(errors, err) + } + + if m.GetPort() <= 0 { + err := AddElastiCacheServiceParamsValidationError{ + field: "Port", + reason: "value must be greater than 0", + } + if !all { + return err + } + errors = append(errors, err) + } + + // no validation rules for Engine + + // no validation rules for PmmAgentId + + // no validation rules for NodeName + + // no validation rules for ServiceName + + // no validation rules for Environment + + // no validation rules for Cluster + + // no validation rules for ReplicationSet + + // no validation rules for Username + + // no validation rules for Password + + // no validation rules for CustomLabels + + // no validation rules for SkipConnectionCheck + + // no validation rules for Tls + + // no validation rules for TlsSkipVerify + + // no validation rules for MetricsMode + + // no validation rules for AgentPassword + + if len(errors) > 0 { + return AddElastiCacheServiceParamsMultiError(errors) + } + + return nil +} + +// AddElastiCacheServiceParamsMultiError is an error wrapping multiple +// validation errors returned by AddElastiCacheServiceParams.ValidateAll() if +// the designated constraints aren't met. +type AddElastiCacheServiceParamsMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m AddElastiCacheServiceParamsMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m AddElastiCacheServiceParamsMultiError) AllErrors() []error { return m } + +// AddElastiCacheServiceParamsValidationError is the validation error returned +// by AddElastiCacheServiceParams.Validate if the designated constraints +// aren't met. +type AddElastiCacheServiceParamsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AddElastiCacheServiceParamsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AddElastiCacheServiceParamsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AddElastiCacheServiceParamsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AddElastiCacheServiceParamsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AddElastiCacheServiceParamsValidationError) ErrorName() string { + return "AddElastiCacheServiceParamsValidationError" +} + +// Error satisfies the builtin error interface +func (e AddElastiCacheServiceParamsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAddElastiCacheServiceParams.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AddElastiCacheServiceParamsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AddElastiCacheServiceParamsValidationError{} + +// Validate checks the field values on ElastiCacheServiceResult with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *ElastiCacheServiceResult) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ElastiCacheServiceResult with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// ElastiCacheServiceResultMultiError, or nil if none found. +func (m *ElastiCacheServiceResult) ValidateAll() error { + return m.validate(true) +} + +func (m *ElastiCacheServiceResult) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetNode()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ElastiCacheServiceResultValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ElastiCacheServiceResultValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ElastiCacheServiceResultValidationError{ + field: "Node", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if all { + switch v := interface{}(m.GetValkeyService()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ElastiCacheServiceResultValidationError{ + field: "ValkeyService", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ElastiCacheServiceResultValidationError{ + field: "ValkeyService", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetValkeyService()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ElastiCacheServiceResultValidationError{ + field: "ValkeyService", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if all { + switch v := interface{}(m.GetValkeyExporter()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ElastiCacheServiceResultValidationError{ + field: "ValkeyExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ElastiCacheServiceResultValidationError{ + field: "ValkeyExporter", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetValkeyExporter()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ElastiCacheServiceResultValidationError{ + field: "ValkeyExporter", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(errors) > 0 { + return ElastiCacheServiceResultMultiError(errors) + } + + return nil +} + +// ElastiCacheServiceResultMultiError is an error wrapping multiple validation +// errors returned by ElastiCacheServiceResult.ValidateAll() if the designated +// constraints aren't met. +type ElastiCacheServiceResultMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ElastiCacheServiceResultMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ElastiCacheServiceResultMultiError) AllErrors() []error { return m } + +// ElastiCacheServiceResultValidationError is the validation error returned by +// ElastiCacheServiceResult.Validate if the designated constraints aren't met. +type ElastiCacheServiceResultValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ElastiCacheServiceResultValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ElastiCacheServiceResultValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ElastiCacheServiceResultValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ElastiCacheServiceResultValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ElastiCacheServiceResultValidationError) ErrorName() string { + return "ElastiCacheServiceResultValidationError" +} + +// Error satisfies the builtin error interface +func (e ElastiCacheServiceResultValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sElastiCacheServiceResult.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ElastiCacheServiceResultValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ElastiCacheServiceResultValidationError{} diff --git a/api/management/v1/elasticache.proto b/api/management/v1/elasticache.proto new file mode 100644 index 00000000000..f898fc75fbe --- /dev/null +++ b/api/management/v1/elasticache.proto @@ -0,0 +1,103 @@ +syntax = "proto3"; + +package management.v1; + +import "extensions/v1/redact.proto"; +import "inventory/v1/agents.proto"; +import "inventory/v1/nodes.proto"; +import "inventory/v1/services.proto"; +import "management/v1/metrics.proto"; +import "validate/validate.proto"; + +// DiscoverElastiCacheEngine describes supported ElastiCache engines. +enum DiscoverElastiCacheEngine { + DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED = 0; + DISCOVER_ELASTICACHE_ENGINE_REDIS = 1; + DISCOVER_ELASTICACHE_ENGINE_VALKEY = 2; +} + +// DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API. +message DiscoverElastiCacheInstance { + // AWS region. + string region = 1; + // AWS availability zone. + string az = 2; + // Replication group identifier. + string instance_id = 3; + // Cache node type (e.g. cache.r7g.large). + string node_model = 4; + // Primary endpoint address. + string address = 5; + // Primary endpoint port. + uint32 port = 6; + // Engine type (redis or valkey). + DiscoverElastiCacheEngine engine = 7; + // Engine version. + string engine_version = 8; + // Whether in-transit encryption is enabled. + bool transit_encryption_enabled = 9; + // Cluster name (replication group ID). + string cluster = 10; +} + +message DiscoverElastiCacheRequest { + // AWS Access key. Optional — if empty, the default credential chain is used. + string aws_access_key = 1 [(extensions.v1.sensitive) = REDACT_TYPE_FULL]; + // AWS Secret key. Optional. + string aws_secret_key = 2 [(extensions.v1.sensitive) = REDACT_TYPE_FULL]; +} + +message DiscoverElastiCacheResponse { + repeated DiscoverElastiCacheInstance elasticache_instances = 1; +} + +message AddElastiCacheServiceParams { + // AWS region. + string region = 1 [(validate.rules).string.min_len = 1]; + // AWS availability zone. + string az = 2; + // Replication group identifier. + string instance_id = 3 [(validate.rules).string.min_len = 1]; + // Cache node type. + string node_model = 4; + // Primary endpoint address. + string address = 5 [(validate.rules).string.min_len = 1]; + // Primary endpoint port. + uint32 port = 6 [(validate.rules).uint32.gt = 0]; + // Engine type. + DiscoverElastiCacheEngine engine = 7; + // PMM Agent ID. + string pmm_agent_id = 8; + // Unique across all Nodes user-defined name. Defaults to instance_id. + string node_name = 9; + // Unique across all Services user-defined name. Defaults to instance_id. + string service_name = 10; + // Environment name. + string environment = 11; + // Cluster name. + string cluster = 12; + // Replication set name. + string replication_set = 13; + // Username for scraping metrics. + string username = 14; + // Password for scraping metrics. + string password = 15 [(extensions.v1.sensitive) = REDACT_TYPE_FULL]; + // Custom user-assigned labels for Node and Service. + map custom_labels = 16; + // Skip connection check. + bool skip_connection_check = 17; + // Use TLS for database connections. + bool tls = 18; + // Skip TLS certificate and hostname validation. + bool tls_skip_verify = 19; + // Defines metrics flow model for this exporter. + MetricsMode metrics_mode = 20; + // Custom password for exporter endpoint /metrics. + string agent_password = 21 [(extensions.v1.sensitive) = REDACT_TYPE_FULL]; +} + +message ElastiCacheServiceResult { + inventory.v1.RemoteElastiCacheNode node = 1; + inventory.v1.ValkeyService valkey_service = 2; + inventory.v1.ValkeyExporter valkey_exporter = 3; +} diff --git a/api/management/v1/json/client/management_service/add_service_responses.go b/api/management/v1/json/client/management_service/add_service_responses.go index 40d004ff770..03c8d00fbbb 100644 --- a/api/management/v1/json/client/management_service/add_service_responses.go +++ b/api/management/v1/json/client/management_service/add_service_responses.go @@ -193,6 +193,9 @@ AddServiceBody add service body swagger:model AddServiceBody */ type AddServiceBody struct { + // elasticache + Elasticache *AddServiceParamsBodyElasticache `json:"elasticache,omitempty"` + // external External *AddServiceParamsBodyExternal `json:"external,omitempty"` @@ -222,6 +225,10 @@ type AddServiceBody struct { func (o *AddServiceBody) Validate(formats strfmt.Registry) error { var res []error + if err := o.validateElasticache(formats); err != nil { + res = append(res, err) + } + if err := o.validateExternal(formats); err != nil { res = append(res, err) } @@ -260,6 +267,29 @@ func (o *AddServiceBody) Validate(formats strfmt.Registry) error { return nil } +func (o *AddServiceBody) validateElasticache(formats strfmt.Registry) error { + if swag.IsZero(o.Elasticache) { // not required + return nil + } + + if o.Elasticache != nil { + if err := o.Elasticache.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("body" + "." + "elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("body" + "." + "elasticache") + } + + return err + } + } + + return nil +} + func (o *AddServiceBody) validateExternal(formats strfmt.Registry) error { if swag.IsZero(o.External) { // not required return nil @@ -448,6 +478,10 @@ func (o *AddServiceBody) validateValkey(formats strfmt.Registry) error { func (o *AddServiceBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := o.contextValidateElasticache(ctx, formats); err != nil { + res = append(res, err) + } + if err := o.contextValidateExternal(ctx, formats); err != nil { res = append(res, err) } @@ -486,6 +520,30 @@ func (o *AddServiceBody) ContextValidate(ctx context.Context, formats strfmt.Reg return nil } +func (o *AddServiceBody) contextValidateElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.Elasticache != nil { + + if swag.IsZero(o.Elasticache) { // not required + return nil + } + + if err := o.Elasticache.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("body" + "." + "elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("body" + "." + "elasticache") + } + + return err + } + } + + return nil +} + func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { if o.External != nil { @@ -929,6 +987,9 @@ AddServiceOKBody add service OK body swagger:model AddServiceOKBody */ type AddServiceOKBody struct { + // elasticache + Elasticache *AddServiceOKBodyElasticache `json:"elasticache,omitempty"` + // external External *AddServiceOKBodyExternal `json:"external,omitempty"` @@ -958,6 +1019,10 @@ type AddServiceOKBody struct { func (o *AddServiceOKBody) Validate(formats strfmt.Registry) error { var res []error + if err := o.validateElasticache(formats); err != nil { + res = append(res, err) + } + if err := o.validateExternal(formats); err != nil { res = append(res, err) } @@ -996,6 +1061,29 @@ func (o *AddServiceOKBody) Validate(formats strfmt.Registry) error { return nil } +func (o *AddServiceOKBody) validateElasticache(formats strfmt.Registry) error { + if swag.IsZero(o.Elasticache) { // not required + return nil + } + + if o.Elasticache != nil { + if err := o.Elasticache.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache") + } + + return err + } + } + + return nil +} + func (o *AddServiceOKBody) validateExternal(formats strfmt.Registry) error { if swag.IsZero(o.External) { // not required return nil @@ -1184,6 +1272,10 @@ func (o *AddServiceOKBody) validateValkey(formats strfmt.Registry) error { func (o *AddServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := o.contextValidateElasticache(ctx, formats); err != nil { + res = append(res, err) + } + if err := o.contextValidateExternal(ctx, formats); err != nil { res = append(res, err) } @@ -1222,6 +1314,30 @@ func (o *AddServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R return nil } +func (o *AddServiceOKBody) contextValidateElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.Elasticache != nil { + + if swag.IsZero(o.Elasticache) { // not required + return nil + } + + if err := o.Elasticache.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache") + } + + return err + } + } + + return nil +} + func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { if o.External != nil { @@ -1359,63 +1475,669 @@ func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats return ce.ValidateName("addServiceOk" + "." + "proxysql") } - return err - } + return err + } + } + + return nil +} + +func (o *AddServiceOKBody) contextValidateRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RDS != nil { + + if swag.IsZero(o.RDS) { // not required + return nil + } + + if err := o.RDS.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "rds") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "rds") + } + + return err + } + } + + return nil +} + +func (o *AddServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { + + if swag.IsZero(o.Valkey) { // not required + return nil + } + + if err := o.Valkey.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "valkey") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "valkey") + } + + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *AddServiceOKBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddServiceOKBody) UnmarshalBinary(b []byte) error { + var res AddServiceOKBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddServiceOKBodyElasticache add service OK body elasticache +swagger:model AddServiceOKBodyElasticache +*/ +type AddServiceOKBodyElasticache struct { + // node + Node *AddServiceOKBodyElasticacheNode `json:"node,omitempty"` + + // valkey exporter + ValkeyExporter *AddServiceOKBodyElasticacheValkeyExporter `json:"valkey_exporter,omitempty"` + + // valkey service + ValkeyService *AddServiceOKBodyElasticacheValkeyService `json:"valkey_service,omitempty"` +} + +// Validate validates this add service OK body elasticache +func (o *AddServiceOKBodyElasticache) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateNode(formats); err != nil { + res = append(res, err) + } + + if err := o.validateValkeyExporter(formats); err != nil { + res = append(res, err) + } + + if err := o.validateValkeyService(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddServiceOKBodyElasticache) validateNode(formats strfmt.Registry) error { + if swag.IsZero(o.Node) { // not required + return nil + } + + if o.Node != nil { + if err := o.Node.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "node") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "node") + } + + return err + } + } + + return nil +} + +func (o *AddServiceOKBodyElasticache) validateValkeyExporter(formats strfmt.Registry) error { + if swag.IsZero(o.ValkeyExporter) { // not required + return nil + } + + if o.ValkeyExporter != nil { + if err := o.ValkeyExporter.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter") + } + + return err + } + } + + return nil +} + +func (o *AddServiceOKBodyElasticache) validateValkeyService(formats strfmt.Registry) error { + if swag.IsZero(o.ValkeyService) { // not required + return nil + } + + if o.ValkeyService != nil { + if err := o.ValkeyService.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_service") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_service") + } + + return err + } + } + + return nil +} + +// ContextValidate validate this add service OK body elasticache based on the context it is used +func (o *AddServiceOKBodyElasticache) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateNode(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateValkeyExporter(ctx, formats); err != nil { + res = append(res, err) + } + + if err := o.contextValidateValkeyService(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddServiceOKBodyElasticache) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { + if o.Node != nil { + + if swag.IsZero(o.Node) { // not required + return nil + } + + if err := o.Node.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "node") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "node") + } + + return err + } + } + + return nil +} + +func (o *AddServiceOKBodyElasticache) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { + + if swag.IsZero(o.ValkeyExporter) { // not required + return nil + } + + if err := o.ValkeyExporter.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter") + } + + return err + } + } + + return nil +} + +func (o *AddServiceOKBodyElasticache) contextValidateValkeyService(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyService != nil { + + if swag.IsZero(o.ValkeyService) { // not required + return nil + } + + if err := o.ValkeyService.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_service") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_service") + } + + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *AddServiceOKBodyElasticache) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddServiceOKBodyElasticache) UnmarshalBinary(b []byte) error { + var res AddServiceOKBodyElasticache + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddServiceOKBodyElasticacheNode RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes. +swagger:model AddServiceOKBodyElasticacheNode +*/ +type AddServiceOKBodyElasticacheNode struct { + // Unique randomly generated instance identifier. + NodeID string `json:"node_id,omitempty"` + + // Unique across all Nodes user-defined name. + NodeName string `json:"node_name,omitempty"` + + // ElastiCache primary endpoint address. + Address string `json:"address,omitempty"` + + // Node model (cache node type). + NodeModel string `json:"node_model,omitempty"` + + // Node region. + Region string `json:"region,omitempty"` + + // Node availability zone. + Az string `json:"az,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AWS instance ID (replication group ID). + InstanceID string `json:"instance_id,omitempty"` +} + +// Validate validates this add service OK body elasticache node +func (o *AddServiceOKBodyElasticacheNode) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add service OK body elasticache node based on context it is used +func (o *AddServiceOKBodyElasticacheNode) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddServiceOKBodyElasticacheNode) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddServiceOKBodyElasticacheNode) UnmarshalBinary(b []byte) error { + var res AddServiceOKBodyElasticacheNode + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddServiceOKBodyElasticacheValkeyExporter ValkeyExporter runs on Generic or Container Node and exposes Valkey Service metrics. +swagger:model AddServiceOKBodyElasticacheValkeyExporter +*/ +type AddServiceOKBodyElasticacheValkeyExporter struct { + // Unique randomly generated instance identifier. + AgentID string `json:"agent_id,omitempty"` + + // The pmm-agent identifier which runs this instance. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Desired Agent status: enabled (false) or disabled (true). + Disabled bool `json:"disabled,omitempty"` + + // Service identifier. + ServiceID string `json:"service_id,omitempty"` + + // Valkey username for scraping metrics. + Username string `json:"username,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname verification. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // True if exporter uses push metrics mode. + PushMetricsEnabled bool `json:"push_metrics_enabled,omitempty"` + + // List of disabled collector names. + DisabledCollectors []string `json:"disabled_collectors"` + + // AgentStatus represents actual Agent status. + // + // - AGENT_STATUS_STARTING: Agent is starting. + // - AGENT_STATUS_INITIALIZATION_ERROR: Agent encountered error when starting. + // - AGENT_STATUS_RUNNING: Agent is running. + // - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon. + // - AGENT_STATUS_STOPPING: Agent is stopping. + // - AGENT_STATUS_DONE: Agent has been stopped or disabled. + // - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state. + // Enum: ["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_INITIALIZATION_ERROR","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"] + Status *string `json:"status,omitempty"` + + // Listen port for scraping metrics. + ListenPort int64 `json:"listen_port,omitempty"` + + // Path to exec process. + ProcessExecPath string `json:"process_exec_path,omitempty"` + + // Optionally expose the exporter process on all public interfaces + ExposeExporter bool `json:"expose_exporter,omitempty"` + + // metrics resolutions + MetricsResolutions *AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions `json:"metrics_resolutions,omitempty"` +} + +// Validate validates this add service OK body elasticache valkey exporter +func (o *AddServiceOKBodyElasticacheValkeyExporter) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateStatus(formats); err != nil { + res = append(res, err) + } + + if err := o.validateMetricsResolutions(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addServiceOkBodyElasticacheValkeyExporterTypeStatusPropEnum []any + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["AGENT_STATUS_UNSPECIFIED","AGENT_STATUS_STARTING","AGENT_STATUS_INITIALIZATION_ERROR","AGENT_STATUS_RUNNING","AGENT_STATUS_WAITING","AGENT_STATUS_STOPPING","AGENT_STATUS_DONE","AGENT_STATUS_UNKNOWN"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addServiceOkBodyElasticacheValkeyExporterTypeStatusPropEnum = append(addServiceOkBodyElasticacheValkeyExporterTypeStatusPropEnum, v) + } +} + +const ( + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSUNSPECIFIED captures enum value "AGENT_STATUS_UNSPECIFIED" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSUNSPECIFIED string = "AGENT_STATUS_UNSPECIFIED" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSSTARTING captures enum value "AGENT_STATUS_STARTING" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSSTARTING string = "AGENT_STATUS_STARTING" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSINITIALIZATIONERROR captures enum value "AGENT_STATUS_INITIALIZATION_ERROR" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSINITIALIZATIONERROR string = "AGENT_STATUS_INITIALIZATION_ERROR" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSRUNNING captures enum value "AGENT_STATUS_RUNNING" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSRUNNING string = "AGENT_STATUS_RUNNING" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSWAITING captures enum value "AGENT_STATUS_WAITING" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSWAITING string = "AGENT_STATUS_WAITING" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSSTOPPING captures enum value "AGENT_STATUS_STOPPING" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSSTOPPING string = "AGENT_STATUS_STOPPING" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSDONE captures enum value "AGENT_STATUS_DONE" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSDONE string = "AGENT_STATUS_DONE" + + // AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSUNKNOWN captures enum value "AGENT_STATUS_UNKNOWN" + AddServiceOKBodyElasticacheValkeyExporterStatusAGENTSTATUSUNKNOWN string = "AGENT_STATUS_UNKNOWN" +) + +// prop value enum +func (o *AddServiceOKBodyElasticacheValkeyExporter) validateStatusEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addServiceOkBodyElasticacheValkeyExporterTypeStatusPropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddServiceOKBodyElasticacheValkeyExporter) validateStatus(formats strfmt.Registry) error { + if swag.IsZero(o.Status) { // not required + return nil + } + + // value enum + if err := o.validateStatusEnum("addServiceOk"+"."+"elasticache"+"."+"valkey_exporter"+"."+"status", "body", *o.Status); err != nil { + return err + } + + return nil +} + +func (o *AddServiceOKBodyElasticacheValkeyExporter) validateMetricsResolutions(formats strfmt.Registry) error { + if swag.IsZero(o.MetricsResolutions) { // not required + return nil + } + + if o.MetricsResolutions != nil { + if err := o.MetricsResolutions.Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter" + "." + "metrics_resolutions") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter" + "." + "metrics_resolutions") + } + + return err + } + } + + return nil +} + +// ContextValidate validate this add service OK body elasticache valkey exporter based on the context it is used +func (o *AddServiceOKBodyElasticacheValkeyExporter) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateMetricsResolutions(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *AddServiceOKBodyElasticacheValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { + + if swag.IsZero(o.MetricsResolutions) { // not required + return nil + } + + if err := o.MetricsResolutions.ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter" + "." + "metrics_resolutions") + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("addServiceOk" + "." + "elasticache" + "." + "valkey_exporter" + "." + "metrics_resolutions") + } + + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *AddServiceOKBodyElasticacheValkeyExporter) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddServiceOKBodyElasticacheValkeyExporter) UnmarshalBinary(b []byte) error { + var res AddServiceOKBodyElasticacheValkeyExporter + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. +swagger:model AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions +*/ +type AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. + Hr string `json:"hr,omitempty"` + + // Medium resolution. In JSON should be represented as a string with number of seconds with `s` suffix. + Mr string `json:"mr,omitempty"` + + // Low resolution. In JSON should be represented as a string with number of seconds with `s` suffix. + Lr string `json:"lr,omitempty"` +} + +// Validate validates this add service OK body elasticache valkey exporter metrics resolutions +func (o *AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this add service OK body elasticache valkey exporter metrics resolutions based on context it is used +func (o *AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil } + return swag.WriteJSON(o) +} +// UnmarshalBinary interface implementation +func (o *AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions) UnmarshalBinary(b []byte) error { + var res AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res return nil } -func (o *AddServiceOKBody) contextValidateRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RDS != nil { +/* +AddServiceOKBodyElasticacheValkeyService ValkeyService represents a generic Valkey instance. +swagger:model AddServiceOKBodyElasticacheValkeyService +*/ +type AddServiceOKBodyElasticacheValkeyService struct { + // Unique randomly generated instance identifier. + ServiceID string `json:"service_id,omitempty"` - if swag.IsZero(o.RDS) { // not required - return nil - } + // Unique across all Services user-defined name. + ServiceName string `json:"service_name,omitempty"` - if err := o.RDS.ContextValidate(ctx, formats); err != nil { - ve := new(errors.Validation) - if stderrors.As(err, &ve) { - return ve.ValidateName("addServiceOk" + "." + "rds") - } - ce := new(errors.CompositeError) - if stderrors.As(err, &ce) { - return ce.ValidateName("addServiceOk" + "." + "rds") - } + // Node identifier where this instance runs. + NodeID string `json:"node_id,omitempty"` - return err - } - } + // Access address (DNS name or IP). + // Address (and port) or socket is required. + Address string `json:"address,omitempty"` - return nil -} + // Access port. + // Port is required when the address present. + Port int64 `json:"port,omitempty"` -func (o *AddServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { + // Access unix socket. + // Address (and port) or socket is required. + Socket string `json:"socket,omitempty"` - if swag.IsZero(o.Valkey) { // not required - return nil - } + // Environment name. + Environment string `json:"environment,omitempty"` - if err := o.Valkey.ContextValidate(ctx, formats); err != nil { - ve := new(errors.Validation) - if stderrors.As(err, &ve) { - return ve.ValidateName("addServiceOk" + "." + "valkey") - } - ce := new(errors.CompositeError) - if stderrors.As(err, &ce) { - return ce.ValidateName("addServiceOk" + "." + "valkey") - } + // Cluster name. + Cluster string `json:"cluster,omitempty"` - return err - } - } + // Replication set name. + ReplicationSet string `json:"replication_set,omitempty"` + + // Custom user-assigned labels. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Valkey version. + Version string `json:"version,omitempty"` +} + +// Validate validates this add service OK body elasticache valkey service +func (o *AddServiceOKBodyElasticacheValkeyService) Validate(formats strfmt.Registry) error { + return nil +} +// ContextValidate validates this add service OK body elasticache valkey service based on context it is used +func (o *AddServiceOKBodyElasticacheValkeyService) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation -func (o *AddServiceOKBody) MarshalBinary() ([]byte, error) { +func (o *AddServiceOKBodyElasticacheValkeyService) MarshalBinary() ([]byte, error) { if o == nil { return nil, nil } @@ -1423,8 +2145,8 @@ func (o *AddServiceOKBody) MarshalBinary() ([]byte, error) { } // UnmarshalBinary interface implementation -func (o *AddServiceOKBody) UnmarshalBinary(b []byte) error { - var res AddServiceOKBody +func (o *AddServiceOKBodyElasticacheValkeyService) UnmarshalBinary(b []byte) error { + var res AddServiceOKBodyElasticacheValkeyService if err := swag.ReadJSON(b, &res); err != nil { return err } @@ -9311,6 +10033,211 @@ func (o *AddServiceOKBodyValkeyValkeyExporterMetricsResolutions) UnmarshalBinary return nil } +/* +AddServiceParamsBodyElasticache add service params body elasticache +swagger:model AddServiceParamsBodyElasticache +*/ +type AddServiceParamsBodyElasticache struct { + // AWS region. + Region string `json:"region,omitempty"` + + // AWS availability zone. + Az string `json:"az,omitempty"` + + // Replication group identifier. + InstanceID string `json:"instance_id,omitempty"` + + // Cache node type. + NodeModel string `json:"node_model,omitempty"` + + // Primary endpoint address. + Address string `json:"address,omitempty"` + + // Primary endpoint port. + Port int64 `json:"port,omitempty"` + + // DiscoverElastiCacheEngine describes supported ElastiCache engines. + // Enum: ["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"] + Engine *string `json:"engine,omitempty"` + + // PMM Agent ID. + PMMAgentID string `json:"pmm_agent_id,omitempty"` + + // Unique across all Nodes user-defined name. Defaults to instance_id. + NodeName string `json:"node_name,omitempty"` + + // Unique across all Services user-defined name. Defaults to instance_id. + ServiceName string `json:"service_name,omitempty"` + + // Environment name. + Environment string `json:"environment,omitempty"` + + // Cluster name. + Cluster string `json:"cluster,omitempty"` + + // Replication set name. + ReplicationSet string `json:"replication_set,omitempty"` + + // Username for scraping metrics. + Username string `json:"username,omitempty"` + + // Password for scraping metrics. + Password string `json:"password,omitempty"` + + // Custom user-assigned labels for Node and Service. + CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // Skip connection check. + SkipConnectionCheck bool `json:"skip_connection_check,omitempty"` + + // Use TLS for database connections. + TLS bool `json:"tls,omitempty"` + + // Skip TLS certificate and hostname validation. + TLSSkipVerify bool `json:"tls_skip_verify,omitempty"` + + // MetricsMode defines desired metrics mode for agent, + // it can be pull, push or auto mode chosen by server. + // + // - METRICS_MODE_UNSPECIFIED: Auto + // Enum: ["METRICS_MODE_UNSPECIFIED","METRICS_MODE_PULL","METRICS_MODE_PUSH"] + MetricsMode *string `json:"metrics_mode,omitempty"` + + // Custom password for exporter endpoint /metrics. + AgentPassword string `json:"agent_password,omitempty"` +} + +// Validate validates this add service params body elasticache +func (o *AddServiceParamsBodyElasticache) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateEngine(formats); err != nil { + res = append(res, err) + } + + if err := o.validateMetricsMode(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var addServiceParamsBodyElasticacheTypeEnginePropEnum []any + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addServiceParamsBodyElasticacheTypeEnginePropEnum = append(addServiceParamsBodyElasticacheTypeEnginePropEnum, v) + } +} + +const ( + + // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEUNSPECIFIED captures enum value "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" + AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEUNSPECIFIED string = "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" + + // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEREDIS captures enum value "DISCOVER_ELASTICACHE_ENGINE_REDIS" + AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEREDIS string = "DISCOVER_ELASTICACHE_ENGINE_REDIS" + + // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEVALKEY captures enum value "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEVALKEY string = "DISCOVER_ELASTICACHE_ENGINE_VALKEY" +) + +// prop value enum +func (o *AddServiceParamsBodyElasticache) validateEngineEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addServiceParamsBodyElasticacheTypeEnginePropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddServiceParamsBodyElasticache) validateEngine(formats strfmt.Registry) error { + if swag.IsZero(o.Engine) { // not required + return nil + } + + // value enum + if err := o.validateEngineEnum("body"+"."+"elasticache"+"."+"engine", "body", *o.Engine); err != nil { + return err + } + + return nil +} + +var addServiceParamsBodyElasticacheTypeMetricsModePropEnum []any + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["METRICS_MODE_UNSPECIFIED","METRICS_MODE_PULL","METRICS_MODE_PUSH"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + addServiceParamsBodyElasticacheTypeMetricsModePropEnum = append(addServiceParamsBodyElasticacheTypeMetricsModePropEnum, v) + } +} + +const ( + + // AddServiceParamsBodyElasticacheMetricsModeMETRICSMODEUNSPECIFIED captures enum value "METRICS_MODE_UNSPECIFIED" + AddServiceParamsBodyElasticacheMetricsModeMETRICSMODEUNSPECIFIED string = "METRICS_MODE_UNSPECIFIED" + + // AddServiceParamsBodyElasticacheMetricsModeMETRICSMODEPULL captures enum value "METRICS_MODE_PULL" + AddServiceParamsBodyElasticacheMetricsModeMETRICSMODEPULL string = "METRICS_MODE_PULL" + + // AddServiceParamsBodyElasticacheMetricsModeMETRICSMODEPUSH captures enum value "METRICS_MODE_PUSH" + AddServiceParamsBodyElasticacheMetricsModeMETRICSMODEPUSH string = "METRICS_MODE_PUSH" +) + +// prop value enum +func (o *AddServiceParamsBodyElasticache) validateMetricsModeEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, addServiceParamsBodyElasticacheTypeMetricsModePropEnum, true); err != nil { + return err + } + return nil +} + +func (o *AddServiceParamsBodyElasticache) validateMetricsMode(formats strfmt.Registry) error { + if swag.IsZero(o.MetricsMode) { // not required + return nil + } + + // value enum + if err := o.validateMetricsModeEnum("body"+"."+"elasticache"+"."+"metrics_mode", "body", *o.MetricsMode); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this add service params body elasticache based on context it is used +func (o *AddServiceParamsBodyElasticache) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *AddServiceParamsBodyElasticache) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *AddServiceParamsBodyElasticache) UnmarshalBinary(b []byte) error { + var res AddServiceParamsBodyElasticache + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + /* AddServiceParamsBodyExternal add service params body external swagger:model AddServiceParamsBodyExternal @@ -9531,7 +10458,7 @@ swagger:model AddServiceParamsBodyExternalAddNode */ type AddServiceParamsBodyExternalAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -9580,7 +10507,7 @@ var addServiceParamsBodyExternalAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -9607,6 +10534,9 @@ const ( // AddServiceParamsBodyExternalAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyExternalAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyExternalAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyExternalAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum @@ -9865,7 +10795,7 @@ swagger:model AddServiceParamsBodyHaproxyAddNode */ type AddServiceParamsBodyHaproxyAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -9914,7 +10844,7 @@ var addServiceParamsBodyHaproxyAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -9941,6 +10871,9 @@ const ( // AddServiceParamsBodyHaproxyAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyHaproxyAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyHaproxyAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyHaproxyAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum @@ -10320,7 +11253,7 @@ swagger:model AddServiceParamsBodyMongodbAddNode */ type AddServiceParamsBodyMongodbAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -10369,7 +11302,7 @@ var addServiceParamsBodyMongodbAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -10396,6 +11329,9 @@ const ( // AddServiceParamsBodyMongodbAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyMongodbAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyMongodbAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyMongodbAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum @@ -10769,7 +11705,7 @@ swagger:model AddServiceParamsBodyMysqlAddNode */ type AddServiceParamsBodyMysqlAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -10818,7 +11754,7 @@ var addServiceParamsBodyMysqlAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -10845,6 +11781,9 @@ const ( // AddServiceParamsBodyMysqlAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyMysqlAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyMysqlAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyMysqlAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum @@ -11214,7 +12153,7 @@ swagger:model AddServiceParamsBodyPostgresqlAddNode */ type AddServiceParamsBodyPostgresqlAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -11263,7 +12202,7 @@ var addServiceParamsBodyPostgresqlAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -11290,6 +12229,9 @@ const ( // AddServiceParamsBodyPostgresqlAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyPostgresqlAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyPostgresqlAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyPostgresqlAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum @@ -11626,7 +12568,7 @@ swagger:model AddServiceParamsBodyProxysqlAddNode */ type AddServiceParamsBodyProxysqlAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -11675,7 +12617,7 @@ var addServiceParamsBodyProxysqlAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -11702,6 +12644,9 @@ const ( // AddServiceParamsBodyProxysqlAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyProxysqlAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyProxysqlAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyProxysqlAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum @@ -12290,7 +13235,7 @@ swagger:model AddServiceParamsBodyValkeyAddNode */ type AddServiceParamsBodyValkeyAddNode struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // Unique across all Nodes user-defined name. @@ -12339,7 +13284,7 @@ var addServiceParamsBodyValkeyAddNodeTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -12366,6 +13311,9 @@ const ( // AddServiceParamsBodyValkeyAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" AddServiceParamsBodyValkeyAddNodeNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // AddServiceParamsBodyValkeyAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + AddServiceParamsBodyValkeyAddNodeNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go new file mode 100644 index 00000000000..25025685e10 --- /dev/null +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go @@ -0,0 +1,144 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package management_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDiscoverElastiCacheParams creates a new DiscoverElastiCacheParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDiscoverElastiCacheParams() *DiscoverElastiCacheParams { + return &DiscoverElastiCacheParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDiscoverElastiCacheParamsWithTimeout creates a new DiscoverElastiCacheParams object +// with the ability to set a timeout on a request. +func NewDiscoverElastiCacheParamsWithTimeout(timeout time.Duration) *DiscoverElastiCacheParams { + return &DiscoverElastiCacheParams{ + timeout: timeout, + } +} + +// NewDiscoverElastiCacheParamsWithContext creates a new DiscoverElastiCacheParams object +// with the ability to set a context for a request. +func NewDiscoverElastiCacheParamsWithContext(ctx context.Context) *DiscoverElastiCacheParams { + return &DiscoverElastiCacheParams{ + Context: ctx, + } +} + +// NewDiscoverElastiCacheParamsWithHTTPClient creates a new DiscoverElastiCacheParams object +// with the ability to set a custom HTTPClient for a request. +func NewDiscoverElastiCacheParamsWithHTTPClient(client *http.Client) *DiscoverElastiCacheParams { + return &DiscoverElastiCacheParams{ + HTTPClient: client, + } +} + +/* +DiscoverElastiCacheParams contains all the parameters to send to the API endpoint + + for the discover elasti cache operation. + + Typically these are written to a http.Request. +*/ +type DiscoverElastiCacheParams struct { + // Body. + Body DiscoverElastiCacheBody + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the discover elasti cache params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DiscoverElastiCacheParams) WithDefaults() *DiscoverElastiCacheParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the discover elasti cache params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DiscoverElastiCacheParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the discover elasti cache params +func (o *DiscoverElastiCacheParams) WithTimeout(timeout time.Duration) *DiscoverElastiCacheParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the discover elasti cache params +func (o *DiscoverElastiCacheParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the discover elasti cache params +func (o *DiscoverElastiCacheParams) WithContext(ctx context.Context) *DiscoverElastiCacheParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the discover elasti cache params +func (o *DiscoverElastiCacheParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the discover elasti cache params +func (o *DiscoverElastiCacheParams) WithHTTPClient(client *http.Client) *DiscoverElastiCacheParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the discover elasti cache params +func (o *DiscoverElastiCacheParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the discover elasti cache params +func (o *DiscoverElastiCacheParams) WithBody(body DiscoverElastiCacheBody) *DiscoverElastiCacheParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the discover elasti cache params +func (o *DiscoverElastiCacheParams) SetBody(body DiscoverElastiCacheBody) { + o.Body = body +} + +// WriteToRequest writes these params to a swagger request +func (o *DiscoverElastiCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go new file mode 100644 index 00000000000..a39781aee91 --- /dev/null +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go @@ -0,0 +1,687 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package management_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + stderrors "errors" + "fmt" + "io" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// DiscoverElastiCacheReader is a Reader for the DiscoverElastiCache structure. +type DiscoverElastiCacheReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DiscoverElastiCacheReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error) { + switch response.Code() { + case 200: + result := NewDiscoverElastiCacheOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewDiscoverElastiCacheDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewDiscoverElastiCacheOK creates a DiscoverElastiCacheOK with default headers values +func NewDiscoverElastiCacheOK() *DiscoverElastiCacheOK { + return &DiscoverElastiCacheOK{} +} + +/* +DiscoverElastiCacheOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type DiscoverElastiCacheOK struct { + Payload *DiscoverElastiCacheOKBody +} + +// IsSuccess returns true when this discover elasti cache Ok response has a 2xx status code +func (o *DiscoverElastiCacheOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this discover elasti cache Ok response has a 3xx status code +func (o *DiscoverElastiCacheOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this discover elasti cache Ok response has a 4xx status code +func (o *DiscoverElastiCacheOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this discover elasti cache Ok response has a 5xx status code +func (o *DiscoverElastiCacheOK) IsServerError() bool { + return false +} + +// IsCode returns true when this discover elasti cache Ok response a status code equal to that given +func (o *DiscoverElastiCacheOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the discover elasti cache Ok response +func (o *DiscoverElastiCacheOK) Code() int { + return 200 +} + +func (o *DiscoverElastiCacheOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /v1/management/services:discoverElastiCache][%d] discoverElastiCacheOk %s", 200, payload) +} + +func (o *DiscoverElastiCacheOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /v1/management/services:discoverElastiCache][%d] discoverElastiCacheOk %s", 200, payload) +} + +func (o *DiscoverElastiCacheOK) GetPayload() *DiscoverElastiCacheOKBody { + return o.Payload +} + +func (o *DiscoverElastiCacheOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverElastiCacheOKBody) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) { + return err + } + + return nil +} + +// NewDiscoverElastiCacheDefault creates a DiscoverElastiCacheDefault with default headers values +func NewDiscoverElastiCacheDefault(code int) *DiscoverElastiCacheDefault { + return &DiscoverElastiCacheDefault{ + _statusCode: code, + } +} + +/* +DiscoverElastiCacheDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type DiscoverElastiCacheDefault struct { + _statusCode int + + Payload *DiscoverElastiCacheDefaultBody +} + +// IsSuccess returns true when this discover elasti cache default response has a 2xx status code +func (o *DiscoverElastiCacheDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this discover elasti cache default response has a 3xx status code +func (o *DiscoverElastiCacheDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this discover elasti cache default response has a 4xx status code +func (o *DiscoverElastiCacheDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this discover elasti cache default response has a 5xx status code +func (o *DiscoverElastiCacheDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this discover elasti cache default response a status code equal to that given +func (o *DiscoverElastiCacheDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the discover elasti cache default response +func (o *DiscoverElastiCacheDefault) Code() int { + return o._statusCode +} + +func (o *DiscoverElastiCacheDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /v1/management/services:discoverElastiCache][%d] DiscoverElastiCache default %s", o._statusCode, payload) +} + +func (o *DiscoverElastiCacheDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /v1/management/services:discoverElastiCache][%d] DiscoverElastiCache default %s", o._statusCode, payload) +} + +func (o *DiscoverElastiCacheDefault) GetPayload() *DiscoverElastiCacheDefaultBody { + return o.Payload +} + +func (o *DiscoverElastiCacheDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverElastiCacheDefaultBody) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && !stderrors.Is(err, io.EOF) { + return err + } + + return nil +} + +/* +DiscoverElastiCacheBody discover elasti cache body +swagger:model DiscoverElastiCacheBody +*/ +type DiscoverElastiCacheBody struct { + // AWS Access key. Optional — if empty, the default credential chain is used. + AWSAccessKey string `json:"aws_access_key,omitempty"` + + // AWS Secret key. Optional. + AWSSecretKey string `json:"aws_secret_key,omitempty"` +} + +// Validate validates this discover elasti cache body +func (o *DiscoverElastiCacheBody) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this discover elasti cache body based on context it is used +func (o *DiscoverElastiCacheBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *DiscoverElastiCacheBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *DiscoverElastiCacheBody) UnmarshalBinary(b []byte) error { + var res DiscoverElastiCacheBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +DiscoverElastiCacheDefaultBody discover elasti cache default body +swagger:model DiscoverElastiCacheDefaultBody +*/ +type DiscoverElastiCacheDefaultBody struct { + // code + Code int32 `json:"code,omitempty"` + + // message + Message string `json:"message,omitempty"` + + // details + Details []*DiscoverElastiCacheDefaultBodyDetailsItems0 `json:"details"` +} + +// Validate validates this discover elasti cache default body +func (o *DiscoverElastiCacheDefaultBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateDetails(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *DiscoverElastiCacheDefaultBody) validateDetails(formats strfmt.Registry) error { + if swag.IsZero(o.Details) { // not required + return nil + } + + for i := 0; i < len(o.Details); i++ { + if swag.IsZero(o.Details[i]) { // not required + continue + } + + if o.Details[i] != nil { + if err := o.Details[i].Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("DiscoverElastiCache default" + "." + "details" + "." + strconv.Itoa(i)) + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("DiscoverElastiCache default" + "." + "details" + "." + strconv.Itoa(i)) + } + + return err + } + } + + } + + return nil +} + +// ContextValidate validate this discover elasti cache default body based on the context it is used +func (o *DiscoverElastiCacheDefaultBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateDetails(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *DiscoverElastiCacheDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { + + if swag.IsZero(o.Details[i]) { // not required + return nil + } + + if err := o.Details[i].ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("DiscoverElastiCache default" + "." + "details" + "." + strconv.Itoa(i)) + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("DiscoverElastiCache default" + "." + "details" + "." + strconv.Itoa(i)) + } + + return err + } + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *DiscoverElastiCacheDefaultBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *DiscoverElastiCacheDefaultBody) UnmarshalBinary(b []byte) error { + var res DiscoverElastiCacheDefaultBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +DiscoverElastiCacheDefaultBodyDetailsItems0 discover elasti cache default body details items0 +swagger:model DiscoverElastiCacheDefaultBodyDetailsItems0 +*/ +type DiscoverElastiCacheDefaultBodyDetailsItems0 struct { + // at type + AtType string `json:"@type,omitempty"` + + // discover elasti cache default body details items0 + DiscoverElastiCacheDefaultBodyDetailsItems0 map[string]any `json:"-"` +} + +// UnmarshalJSON unmarshals this object with additional properties from JSON +func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { + // stage 1, bind the properties + var stage1 struct { + // at type + AtType string `json:"@type,omitempty"` + } + if err := json.Unmarshal(data, &stage1); err != nil { + return err + } + var rcv DiscoverElastiCacheDefaultBodyDetailsItems0 + + rcv.AtType = stage1.AtType + *o = rcv + + // stage 2, remove properties and add to map + stage2 := make(map[string]json.RawMessage) + if err := json.Unmarshal(data, &stage2); err != nil { + return err + } + + delete(stage2, "@type") + // stage 3, add additional properties values + if len(stage2) > 0 { + result := make(map[string]any) + for k, v := range stage2 { + var toadd any + if err := json.Unmarshal(v, &toadd); err != nil { + return err + } + result[k] = toadd + } + o.DiscoverElastiCacheDefaultBodyDetailsItems0 = result + } + + return nil +} + +// MarshalJSON marshals this object with additional properties into a JSON object +func (o DiscoverElastiCacheDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { + var stage1 struct { + // at type + AtType string `json:"@type,omitempty"` + } + + stage1.AtType = o.AtType + + // make JSON object for known properties + props, err := json.Marshal(stage1) + if err != nil { + return nil, err + } + + if len(o.DiscoverElastiCacheDefaultBodyDetailsItems0) == 0 { // no additional properties + return props, nil + } + + // make JSON object for the additional properties + additional, err := json.Marshal(o.DiscoverElastiCacheDefaultBodyDetailsItems0) + if err != nil { + return nil, err + } + + if len(props) < 3 { // "{}": only additional properties + return additional, nil + } + + // concatenate the 2 objects + return swag.ConcatJSON(props, additional), nil +} + +// Validate validates this discover elasti cache default body details items0 +func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this discover elasti cache default body details items0 based on context it is used +func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) UnmarshalBinary(b []byte) error { + var res DiscoverElastiCacheDefaultBodyDetailsItems0 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +DiscoverElastiCacheOKBody discover elasti cache OK body +swagger:model DiscoverElastiCacheOKBody +*/ +type DiscoverElastiCacheOKBody struct { + // elasticache instances + ElasticacheInstances []*DiscoverElastiCacheOKBodyElasticacheInstancesItems0 `json:"elasticache_instances"` +} + +// Validate validates this discover elasti cache OK body +func (o *DiscoverElastiCacheOKBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateElasticacheInstances(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *DiscoverElastiCacheOKBody) validateElasticacheInstances(formats strfmt.Registry) error { + if swag.IsZero(o.ElasticacheInstances) { // not required + return nil + } + + for i := 0; i < len(o.ElasticacheInstances); i++ { + if swag.IsZero(o.ElasticacheInstances[i]) { // not required + continue + } + + if o.ElasticacheInstances[i] != nil { + if err := o.ElasticacheInstances[i].Validate(formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("discoverElastiCacheOk" + "." + "elasticache_instances" + "." + strconv.Itoa(i)) + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("discoverElastiCacheOk" + "." + "elasticache_instances" + "." + strconv.Itoa(i)) + } + + return err + } + } + + } + + return nil +} + +// ContextValidate validate this discover elasti cache OK body based on the context it is used +func (o *DiscoverElastiCacheOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := o.contextValidateElasticacheInstances(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (o *DiscoverElastiCacheOKBody) contextValidateElasticacheInstances(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ElasticacheInstances); i++ { + if o.ElasticacheInstances[i] != nil { + + if swag.IsZero(o.ElasticacheInstances[i]) { // not required + return nil + } + + if err := o.ElasticacheInstances[i].ContextValidate(ctx, formats); err != nil { + ve := new(errors.Validation) + if stderrors.As(err, &ve) { + return ve.ValidateName("discoverElastiCacheOk" + "." + "elasticache_instances" + "." + strconv.Itoa(i)) + } + ce := new(errors.CompositeError) + if stderrors.As(err, &ce) { + return ce.ValidateName("discoverElastiCacheOk" + "." + "elasticache_instances" + "." + strconv.Itoa(i)) + } + + return err + } + } + } + + return nil +} + +// MarshalBinary interface implementation +func (o *DiscoverElastiCacheOKBody) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *DiscoverElastiCacheOKBody) UnmarshalBinary(b []byte) error { + var res DiscoverElastiCacheOKBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} + +/* +DiscoverElastiCacheOKBodyElasticacheInstancesItems0 DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API. +swagger:model DiscoverElastiCacheOKBodyElasticacheInstancesItems0 +*/ +type DiscoverElastiCacheOKBodyElasticacheInstancesItems0 struct { + // AWS region. + Region string `json:"region,omitempty"` + + // AWS availability zone. + Az string `json:"az,omitempty"` + + // Replication group identifier. + InstanceID string `json:"instance_id,omitempty"` + + // Cache node type (e.g. cache.r7g.large). + NodeModel string `json:"node_model,omitempty"` + + // Primary endpoint address. + Address string `json:"address,omitempty"` + + // Primary endpoint port. + Port int64 `json:"port,omitempty"` + + // DiscoverElastiCacheEngine describes supported ElastiCache engines. + // Enum: ["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"] + Engine *string `json:"engine,omitempty"` + + // Engine version. + EngineVersion string `json:"engine_version,omitempty"` + + // Whether in-transit encryption is enabled. + TransitEncryptionEnabled bool `json:"transit_encryption_enabled,omitempty"` + + // Cluster name (replication group ID). + Cluster string `json:"cluster,omitempty"` +} + +// Validate validates this discover elasti cache OK body elasticache instances items0 +func (o *DiscoverElastiCacheOKBodyElasticacheInstancesItems0) Validate(formats strfmt.Registry) error { + var res []error + + if err := o.validateEngine(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +var discoverElastiCacheOkBodyElasticacheInstancesItems0TypeEnginePropEnum []any + +func init() { + var res []string + if err := json.Unmarshal([]byte(`["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + discoverElastiCacheOkBodyElasticacheInstancesItems0TypeEnginePropEnum = append(discoverElastiCacheOkBodyElasticacheInstancesItems0TypeEnginePropEnum, v) + } +} + +const ( + + // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEUNSPECIFIED captures enum value "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" + DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEUNSPECIFIED string = "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" + + // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEREDIS captures enum value "DISCOVER_ELASTICACHE_ENGINE_REDIS" + DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEREDIS string = "DISCOVER_ELASTICACHE_ENGINE_REDIS" + + // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEVALKEY captures enum value "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEVALKEY string = "DISCOVER_ELASTICACHE_ENGINE_VALKEY" +) + +// prop value enum +func (o *DiscoverElastiCacheOKBodyElasticacheInstancesItems0) validateEngineEnum(path, location string, value string) error { + if err := validate.EnumCase(path, location, value, discoverElastiCacheOkBodyElasticacheInstancesItems0TypeEnginePropEnum, true); err != nil { + return err + } + return nil +} + +func (o *DiscoverElastiCacheOKBodyElasticacheInstancesItems0) validateEngine(formats strfmt.Registry) error { + if swag.IsZero(o.Engine) { // not required + return nil + } + + // value enum + if err := o.validateEngineEnum("engine", "body", *o.Engine); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this discover elasti cache OK body elasticache instances items0 based on context it is used +func (o *DiscoverElastiCacheOKBodyElasticacheInstancesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (o *DiscoverElastiCacheOKBodyElasticacheInstancesItems0) MarshalBinary() ([]byte, error) { + if o == nil { + return nil, nil + } + return swag.WriteJSON(o) +} + +// UnmarshalBinary interface implementation +func (o *DiscoverElastiCacheOKBodyElasticacheInstancesItems0) UnmarshalBinary(b []byte) error { + var res DiscoverElastiCacheOKBodyElasticacheInstancesItems0 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *o = res + return nil +} diff --git a/api/management/v1/json/client/management_service/management_service_client.go b/api/management/v1/json/client/management_service/management_service_client.go index febfb2dbe2a..83054668736 100644 --- a/api/management/v1/json/client/management_service/management_service_client.go +++ b/api/management/v1/json/client/management_service/management_service_client.go @@ -62,6 +62,8 @@ type ClientService interface { DiscoverAzureDatabase(params *DiscoverAzureDatabaseParams, opts ...ClientOption) (*DiscoverAzureDatabaseOK, error) + DiscoverElastiCache(params *DiscoverElastiCacheParams, opts ...ClientOption) (*DiscoverElastiCacheOK, error) + DiscoverRDS(params *DiscoverRDSParams, opts ...ClientOption) (*DiscoverRDSOK, error) GetNode(params *GetNodeParams, opts ...ClientOption) (*GetNodeOK, error) @@ -259,6 +261,50 @@ func (a *Client) DiscoverAzureDatabase(params *DiscoverAzureDatabaseParams, opts return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +DiscoverElastiCache discovers elasti cache + +Discovers ElastiCache replication groups (Valkey/Redis). +*/ +func (a *Client) DiscoverElastiCache(params *DiscoverElastiCacheParams, opts ...ClientOption) (*DiscoverElastiCacheOK, error) { + // NOTE: parameters are not validated before sending + if params == nil { + params = NewDiscoverElastiCacheParams() + } + op := &runtime.ClientOperation{ + ID: "DiscoverElastiCache", + Method: "POST", + PathPattern: "/v1/management/services:discoverElastiCache", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http", "https"}, + Params: params, + Reader: &DiscoverElastiCacheReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + + // only one success response has to be checked + success, ok := result.(*DiscoverElastiCacheOK) + if ok { + return success, nil + } + + // unexpected success response. + // + // a default response is provided: fill this and return an error + unexpectedSuccess := result.(*DiscoverElastiCacheDefault) + + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* DiscoverRDS discovers RDS diff --git a/api/management/v1/json/client/management_service/register_node_responses.go b/api/management/v1/json/client/management_service/register_node_responses.go index f4c682e05e9..eb4ec67a210 100644 --- a/api/management/v1/json/client/management_service/register_node_responses.go +++ b/api/management/v1/json/client/management_service/register_node_responses.go @@ -194,7 +194,7 @@ swagger:model RegisterNodeBody */ type RegisterNodeBody struct { // NodeType describes supported Node types. - // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"] + // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` // A user-defined name unique across all Nodes. @@ -272,7 +272,7 @@ var registerNodeBodyTypeNodeTypePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -299,6 +299,9 @@ const ( // RegisterNodeBodyNodeTypeNODETYPEREMOTEAZUREDATABASENODE captures enum value "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" RegisterNodeBodyNodeTypeNODETYPEREMOTEAZUREDATABASENODE string = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + + // RegisterNodeBodyNodeTypeNODETYPEREMOTEELASTICACHENODE captures enum value "NODE_TYPE_REMOTE_ELASTICACHE_NODE" + RegisterNodeBodyNodeTypeNODETYPEREMOTEELASTICACHENODE string = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) // prop value enum diff --git a/api/management/v1/json/v1.json b/api/management/v1/json/v1.json index 77060c656b4..60ce0461d1b 100644 --- a/api/management/v1/json/v1.json +++ b/api/management/v1/json/v1.json @@ -621,7 +621,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "type": "string", "default": "NODE_TYPE_UNSPECIFIED", @@ -859,7 +860,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -2043,7 +2045,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -2307,7 +2310,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -2583,7 +2587,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -2844,7 +2849,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -3047,7 +3053,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -3212,7 +3219,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -3582,7 +3590,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -3764,6 +3773,133 @@ } }, "x-order": 7 + }, + "elasticache": { + "type": "object", + "properties": { + "region": { + "description": "AWS region.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "AWS availability zone.", + "type": "string", + "x-order": 1 + }, + "instance_id": { + "description": "Replication group identifier.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Cache node type.", + "type": "string", + "x-order": 3 + }, + "address": { + "description": "Primary endpoint address.", + "type": "string", + "x-order": 4 + }, + "port": { + "description": "Primary endpoint port.", + "type": "integer", + "format": "int64", + "x-order": 5 + }, + "engine": { + "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", + "type": "string", + "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "enum": [ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTICACHE_ENGINE_REDIS", + "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + ], + "x-order": 6 + }, + "pmm_agent_id": { + "description": "PMM Agent ID.", + "type": "string", + "x-order": 7 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name. Defaults to instance_id.", + "type": "string", + "x-order": 8 + }, + "service_name": { + "description": "Unique across all Services user-defined name. Defaults to instance_id.", + "type": "string", + "x-order": 9 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 10 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 11 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 12 + }, + "username": { + "description": "Username for scraping metrics.", + "type": "string", + "x-order": 13 + }, + "password": { + "description": "Password for scraping metrics.", + "type": "string", + "x-order": 14 + }, + "custom_labels": { + "description": "Custom user-assigned labels for Node and Service.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 15 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 16 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 17 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 18 + }, + "metrics_mode": { + "description": "MetricsMode defines desired metrics mode for agent,\nit can be pull, push or auto mode chosen by server.\n\n - METRICS_MODE_UNSPECIFIED: Auto", + "type": "string", + "default": "METRICS_MODE_UNSPECIFIED", + "enum": [ + "METRICS_MODE_UNSPECIFIED", + "METRICS_MODE_PULL", + "METRICS_MODE_PUSH" + ], + "x-order": 19 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 20 + } + }, + "x-order": 8 } } } @@ -6826,6 +6962,245 @@ } }, "x-order": 7 + }, + "elasticache": { + "type": "object", + "properties": { + "node": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 0 + }, + "valkey_service": { + "description": "ValkeyService represents a generic Valkey instance.", + "type": "object", + "properties": { + "service_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "service_name": { + "description": "Unique across all Services user-defined name.", + "type": "string", + "x-order": 1 + }, + "node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 2 + }, + "address": { + "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 3 + }, + "port": { + "description": "Access port.\nPort is required when the address present.", + "type": "integer", + "format": "int64", + "x-order": 4 + }, + "socket": { + "description": "Access unix socket.\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 5 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 6 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 7 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 8 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "version": { + "description": "Valkey version.", + "type": "string", + "x-order": 10 + } + }, + "x-order": 1 + }, + "valkey_exporter": { + "description": "ValkeyExporter runs on Generic or Container Node and exposes Valkey Service metrics.", + "type": "object", + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 3 + }, + "username": { + "description": "Valkey username for scraping metrics.", + "type": "string", + "x-order": 4 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname verification.", + "type": "boolean", + "x-order": 6 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 8 + }, + "disabled_collectors": { + "description": "List of disabled collector names.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_INITIALIZATION_ERROR: Agent encountered error when starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent has been stopped or disabled.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_INITIALIZATION_ERROR", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 10 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 11 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 12 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 13 + }, + "metrics_resolutions": { + "description": "MetricsResolutions represents Prometheus exporters metrics resolutions.", + "type": "object", + "properties": { + "hr": { + "description": "High resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 0 + }, + "mr": { + "description": "Medium resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 1 + }, + "lr": { + "description": "Low resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 14 + } + }, + "x-order": 2 + } + }, + "x-order": 8 } } } @@ -7288,6 +7663,146 @@ } } }, + "/v1/management/services:discoverElastiCache": { + "post": { + "description": "Discovers ElastiCache replication groups (Valkey/Redis).", + "tags": [ + "ManagementService" + ], + "summary": "Discover ElastiCache", + "operationId": "DiscoverElastiCache", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "aws_access_key": { + "description": "AWS Access key. Optional — if empty, the default credential chain is used.", + "type": "string", + "x-order": 0 + }, + "aws_secret_key": { + "description": "AWS Secret key. Optional.", + "type": "string", + "x-order": 1 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": { + "elasticache_instances": { + "type": "array", + "items": { + "description": "DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API.", + "type": "object", + "properties": { + "region": { + "description": "AWS region.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "AWS availability zone.", + "type": "string", + "x-order": 1 + }, + "instance_id": { + "description": "Replication group identifier.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Cache node type (e.g. cache.r7g.large).", + "type": "string", + "x-order": 3 + }, + "address": { + "description": "Primary endpoint address.", + "type": "string", + "x-order": 4 + }, + "port": { + "description": "Primary endpoint port.", + "type": "integer", + "format": "int64", + "x-order": 5 + }, + "engine": { + "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", + "type": "string", + "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "enum": [ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTICACHE_ENGINE_REDIS", + "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + ], + "x-order": 6 + }, + "engine_version": { + "description": "Engine version.", + "type": "string", + "x-order": 7 + }, + "transit_encryption_enabled": { + "description": "Whether in-transit encryption is enabled.", + "type": "boolean", + "x-order": 8 + }, + "cluster": { + "description": "Cluster name (replication group ID).", + "type": "string", + "x-order": 9 + } + } + }, + "x-order": 0 + } + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "message": { + "type": "string", + "x-order": 1 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": {} + }, + "x-order": 2 + } + } + } + } + } + } + }, "/v1/management/services:discoverRDS": { "post": { "description": "Discovers RDS instances.", diff --git a/api/management/v1/service.pb.go b/api/management/v1/service.pb.go index cbad04b7f53..7ddaed16224 100644 --- a/api/management/v1/service.pb.go +++ b/api/management/v1/service.pb.go @@ -96,6 +96,7 @@ type AddServiceRequest struct { // *AddServiceRequest_External // *AddServiceRequest_Rds // *AddServiceRequest_Valkey + // *AddServiceRequest_Elasticache Service isAddServiceRequest_Service `protobuf_oneof:"service"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -210,6 +211,15 @@ func (x *AddServiceRequest) GetValkey() *AddValkeyServiceParams { return nil } +func (x *AddServiceRequest) GetElasticache() *AddElastiCacheServiceParams { + if x != nil { + if x, ok := x.Service.(*AddServiceRequest_Elasticache); ok { + return x.Elasticache + } + } + return nil +} + type isAddServiceRequest_Service interface { isAddServiceRequest_Service() } @@ -246,6 +256,10 @@ type AddServiceRequest_Valkey struct { Valkey *AddValkeyServiceParams `protobuf:"bytes,8,opt,name=valkey,proto3,oneof"` } +type AddServiceRequest_Elasticache struct { + Elasticache *AddElastiCacheServiceParams `protobuf:"bytes,9,opt,name=elasticache,proto3,oneof"` +} + func (*AddServiceRequest_Mysql) isAddServiceRequest_Service() {} func (*AddServiceRequest_Mongodb) isAddServiceRequest_Service() {} @@ -262,6 +276,8 @@ func (*AddServiceRequest_Rds) isAddServiceRequest_Service() {} func (*AddServiceRequest_Valkey) isAddServiceRequest_Service() {} +func (*AddServiceRequest_Elasticache) isAddServiceRequest_Service() {} + type AddServiceResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Service: @@ -274,6 +290,7 @@ type AddServiceResponse struct { // *AddServiceResponse_External // *AddServiceResponse_Rds // *AddServiceResponse_Valkey + // *AddServiceResponse_Elasticache Service isAddServiceResponse_Service `protobuf_oneof:"service"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -388,6 +405,15 @@ func (x *AddServiceResponse) GetValkey() *ValkeyServiceResult { return nil } +func (x *AddServiceResponse) GetElasticache() *ElastiCacheServiceResult { + if x != nil { + if x, ok := x.Service.(*AddServiceResponse_Elasticache); ok { + return x.Elasticache + } + } + return nil +} + type isAddServiceResponse_Service interface { isAddServiceResponse_Service() } @@ -424,6 +450,10 @@ type AddServiceResponse_Valkey struct { Valkey *ValkeyServiceResult `protobuf:"bytes,8,opt,name=valkey,proto3,oneof"` } +type AddServiceResponse_Elasticache struct { + Elasticache *ElastiCacheServiceResult `protobuf:"bytes,9,opt,name=elasticache,proto3,oneof"` +} + func (*AddServiceResponse_Mysql) isAddServiceResponse_Service() {} func (*AddServiceResponse_Mongodb) isAddServiceResponse_Service() {} @@ -440,6 +470,8 @@ func (*AddServiceResponse_Rds) isAddServiceResponse_Service() {} func (*AddServiceResponse_Valkey) isAddServiceResponse_Service() {} +func (*AddServiceResponse_Elasticache) isAddServiceResponse_Service() {} + type RemoveServiceRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Either a Service ID or a Service Name. @@ -852,7 +884,7 @@ var File_management_v1_service_proto protoreflect.FileDescriptor const file_management_v1_service_proto_rawDesc = "" + "\n" + - "\x1bmanagement/v1/service.proto\x12\rmanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1binventory/v1/services.proto\x1a\x19management/v1/agent.proto\x1a\x1emanagement/v1/annotation.proto\x1a\x19management/v1/azure.proto\x1a\x1cmanagement/v1/external.proto\x1a\x1bmanagement/v1/haproxy.proto\x1a\x1bmanagement/v1/mongodb.proto\x1a\x19management/v1/mysql.proto\x1a\x18management/v1/node.proto\x1a\x1emanagement/v1/postgresql.proto\x1a\x1cmanagement/v1/proxysql.proto\x1a\x17management/v1/rds.proto\x1a\x1amanagement/v1/valkey.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xb8\x04\n" + + "\x1bmanagement/v1/service.proto\x12\rmanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1binventory/v1/services.proto\x1a\x19management/v1/agent.proto\x1a\x1emanagement/v1/annotation.proto\x1a\x19management/v1/azure.proto\x1a\x1cmanagement/v1/external.proto\x1a\x1bmanagement/v1/haproxy.proto\x1a\x1bmanagement/v1/mongodb.proto\x1a\x19management/v1/mysql.proto\x1a\x18management/v1/node.proto\x1a\x1emanagement/v1/postgresql.proto\x1a\x1cmanagement/v1/proxysql.proto\x1a\x1fmanagement/v1/elasticache.proto\x1a\x17management/v1/rds.proto\x1a\x1amanagement/v1/valkey.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x88\x05\n" + "\x11AddServiceRequest\x12<\n" + "\x05mysql\x18\x01 \x01(\v2$.management.v1.AddMySQLServiceParamsH\x00R\x05mysql\x12B\n" + "\amongodb\x18\x02 \x01(\v2&.management.v1.AddMongoDBServiceParamsH\x00R\amongodb\x12K\n" + @@ -863,8 +895,9 @@ const file_management_v1_service_proto_rawDesc = "" + "\ahaproxy\x18\x05 \x01(\v2&.management.v1.AddHAProxyServiceParamsH\x00R\ahaproxy\x12E\n" + "\bexternal\x18\x06 \x01(\v2'.management.v1.AddExternalServiceParamsH\x00R\bexternal\x126\n" + "\x03rds\x18\a \x01(\v2\".management.v1.AddRDSServiceParamsH\x00R\x03rds\x12?\n" + - "\x06valkey\x18\b \x01(\v2%.management.v1.AddValkeyServiceParamsH\x00R\x06valkeyB\t\n" + - "\aservice\"\xa1\x04\n" + + "\x06valkey\x18\b \x01(\v2%.management.v1.AddValkeyServiceParamsH\x00R\x06valkey\x12N\n" + + "\velasticache\x18\t \x01(\v2*.management.v1.AddElastiCacheServiceParamsH\x00R\velasticacheB\t\n" + + "\aservice\"\xee\x04\n" + "\x12AddServiceResponse\x129\n" + "\x05mysql\x18\x01 \x01(\v2!.management.v1.MySQLServiceResultH\x00R\x05mysql\x12?\n" + "\amongodb\x18\x02 \x01(\v2#.management.v1.MongoDBServiceResultH\x00R\amongodb\x12H\n" + @@ -875,7 +908,8 @@ const file_management_v1_service_proto_rawDesc = "" + "\ahaproxy\x18\x05 \x01(\v2#.management.v1.HAProxyServiceResultH\x00R\ahaproxy\x12B\n" + "\bexternal\x18\x06 \x01(\v2$.management.v1.ExternalServiceResultH\x00R\bexternal\x123\n" + "\x03rds\x18\a \x01(\v2\x1f.management.v1.RDSServiceResultH\x00R\x03rds\x12<\n" + - "\x06valkey\x18\b \x01(\v2\".management.v1.ValkeyServiceResultH\x00R\x06valkeyB\t\n" + + "\x06valkey\x18\b \x01(\v2\".management.v1.ValkeyServiceResultH\x00R\x06valkey\x12K\n" + + "\velasticache\x18\t \x01(\v2'.management.v1.ElastiCacheServiceResultH\x00R\velasticacheB\t\n" + "\aservice\"s\n" + "\x14RemoveServiceRequest\x12\x1d\n" + "\n" + @@ -919,7 +953,7 @@ const file_management_v1_service_proto_rawDesc = "" + "\fservice_type\x18\x02 \x01(\x0e2\x19.inventory.v1.ServiceTypeR\vserviceType\x12%\n" + "\x0eexternal_group\x18\x03 \x01(\tR\rexternalGroup\"S\n" + "\x14ListServicesResponse\x12;\n" + - "\bservices\x18\x01 \x03(\v2\x1f.management.v1.UniversalServiceR\bservices2\xa2\x13\n" + + "\bservices\x18\x01 \x03(\v2\x1f.management.v1.UniversalServiceR\bservices2\x9d\x15\n" + "\x11ManagementService\x12\xac\x01\n" + "\rAddAnnotation\x12#.management.v1.AddAnnotationRequest\x1a$.management.v1.AddAnnotationResponse\"P\x92A(\x12\x11Add an Annotation\x1a\x13Adds an annotation.\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/v1/management/annotations\x12\x9b\x01\n" + "\n" + @@ -935,7 +969,8 @@ const file_management_v1_service_proto_rawDesc = "" + "\fListServices\x12\".management.v1.ListServicesRequest\x1a#.management.v1.ListServicesResponse\"W\x92A5\x12\rList Services\x1a$Returns a filtered list of Services.\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/management/services\x12\xaf\x01\n" + "\vDiscoverRDS\x12!.management.v1.DiscoverRDSRequest\x1a\".management.v1.DiscoverRDSResponse\"Y\x92A(\x12\fDiscover RDS\x1a\x18Discovers RDS instances.\x82\xd3\xe4\x93\x02(:\x01*\"#/v1/management/services:discoverRDS\x12\x8f\x02\n" + "\x15DiscoverAzureDatabase\x12+.management.v1.DiscoverAzureDatabaseRequest\x1a,.management.v1.DiscoverAzureDatabaseResponse\"\x9a\x01\x92Ag\x12\x17Discover Azure Database\x1aLDiscovers Azure Database for MySQL, MariaDB and PostgreSQL Server instances.\x82\xd3\xe4\x93\x02*:\x01*\"%/v1/management/services:discoverAzure\x12\xc6\x01\n" + - "\x10AddAzureDatabase\x12&.management.v1.AddAzureDatabaseRequest\x1a'.management.v1.AddAzureDatabaseResponse\"a\x92A6\x12\x12Add Azure Database\x1a Adds an Azure Database instance.\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/management/services/azure\x12\xc7\x01\n" + + "\x10AddAzureDatabase\x12&.management.v1.AddAzureDatabaseRequest\x1a'.management.v1.AddAzureDatabaseResponse\"a\x92A6\x12\x12Add Azure Database\x1a Adds an Azure Database instance.\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/v1/management/services/azure\x12\xf8\x01\n" + + "\x13DiscoverElastiCache\x12).management.v1.DiscoverElastiCacheRequest\x1a*.management.v1.DiscoverElastiCacheResponse\"\x89\x01\x92AP\x12\x14Discover ElastiCache\x1a8Discovers ElastiCache replication groups (Valkey/Redis).\x82\xd3\xe4\x93\x020:\x01*\"+/v1/management/services:discoverElastiCache\x12\xc7\x01\n" + "\rRemoveService\x12#.management.v1.RemoveServiceRequest\x1a$.management.v1.RemoveServiceResponse\"k\x92A<\x12\x10Remove a Service\x1a(Removes a Service along with its Agents.\x82\xd3\xe4\x93\x02&*$/v1/management/services/{service_id}B\xad\x01\n" + "\x11com.management.v1B\fServiceProtoP\x01Z5github.com/percona/pmm/api/management/v1;managementv1\xa2\x02\x03MXX\xaa\x02\rManagement.V1\xca\x02\rManagement\\V1\xe2\x02\x19Management\\V1\\GPBMetadata\xea\x02\x0eManagement::V1b\x06proto3" @@ -955,7 +990,7 @@ var ( file_management_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) file_management_v1_service_proto_goTypes = []any{ - UniversalService_Status(0), // 0: management.v1.UniversalService.Status + (UniversalService_Status)(0), // 0: management.v1.UniversalService.Status (*AddServiceRequest)(nil), // 1: management.v1.AddServiceRequest (*AddServiceResponse)(nil), // 2: management.v1.AddServiceResponse (*RemoveServiceRequest)(nil), // 3: management.v1.RemoveServiceRequest @@ -972,37 +1007,41 @@ var ( (*AddExternalServiceParams)(nil), // 14: management.v1.AddExternalServiceParams (*AddRDSServiceParams)(nil), // 15: management.v1.AddRDSServiceParams (*AddValkeyServiceParams)(nil), // 16: management.v1.AddValkeyServiceParams - (*MySQLServiceResult)(nil), // 17: management.v1.MySQLServiceResult - (*MongoDBServiceResult)(nil), // 18: management.v1.MongoDBServiceResult - (*PostgreSQLServiceResult)(nil), // 19: management.v1.PostgreSQLServiceResult - (*ProxySQLServiceResult)(nil), // 20: management.v1.ProxySQLServiceResult - (*HAProxyServiceResult)(nil), // 21: management.v1.HAProxyServiceResult - (*ExternalServiceResult)(nil), // 22: management.v1.ExternalServiceResult - (*RDSServiceResult)(nil), // 23: management.v1.RDSServiceResult - (*ValkeyServiceResult)(nil), // 24: management.v1.ValkeyServiceResult - v1.ServiceType(0), // 25: inventory.v1.ServiceType - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - (*UniversalAgent)(nil), // 27: management.v1.UniversalAgent - (*AddAnnotationRequest)(nil), // 28: management.v1.AddAnnotationRequest - (*ListAgentsRequest)(nil), // 29: management.v1.ListAgentsRequest - (*ListAgentVersionsRequest)(nil), // 30: management.v1.ListAgentVersionsRequest - (*RegisterNodeRequest)(nil), // 31: management.v1.RegisterNodeRequest - (*UnregisterNodeRequest)(nil), // 32: management.v1.UnregisterNodeRequest - (*ListNodesRequest)(nil), // 33: management.v1.ListNodesRequest - (*GetNodeRequest)(nil), // 34: management.v1.GetNodeRequest - (*DiscoverRDSRequest)(nil), // 35: management.v1.DiscoverRDSRequest - (*DiscoverAzureDatabaseRequest)(nil), // 36: management.v1.DiscoverAzureDatabaseRequest - (*AddAzureDatabaseRequest)(nil), // 37: management.v1.AddAzureDatabaseRequest - (*AddAnnotationResponse)(nil), // 38: management.v1.AddAnnotationResponse - (*ListAgentsResponse)(nil), // 39: management.v1.ListAgentsResponse - (*ListAgentVersionsResponse)(nil), // 40: management.v1.ListAgentVersionsResponse - (*RegisterNodeResponse)(nil), // 41: management.v1.RegisterNodeResponse - (*UnregisterNodeResponse)(nil), // 42: management.v1.UnregisterNodeResponse - (*ListNodesResponse)(nil), // 43: management.v1.ListNodesResponse - (*GetNodeResponse)(nil), // 44: management.v1.GetNodeResponse - (*DiscoverRDSResponse)(nil), // 45: management.v1.DiscoverRDSResponse - (*DiscoverAzureDatabaseResponse)(nil), // 46: management.v1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseResponse)(nil), // 47: management.v1.AddAzureDatabaseResponse + (*AddElastiCacheServiceParams)(nil), // 17: management.v1.AddElastiCacheServiceParams + (*MySQLServiceResult)(nil), // 18: management.v1.MySQLServiceResult + (*MongoDBServiceResult)(nil), // 19: management.v1.MongoDBServiceResult + (*PostgreSQLServiceResult)(nil), // 20: management.v1.PostgreSQLServiceResult + (*ProxySQLServiceResult)(nil), // 21: management.v1.ProxySQLServiceResult + (*HAProxyServiceResult)(nil), // 22: management.v1.HAProxyServiceResult + (*ExternalServiceResult)(nil), // 23: management.v1.ExternalServiceResult + (*RDSServiceResult)(nil), // 24: management.v1.RDSServiceResult + (*ValkeyServiceResult)(nil), // 25: management.v1.ValkeyServiceResult + (*ElastiCacheServiceResult)(nil), // 26: management.v1.ElastiCacheServiceResult + (v1.ServiceType)(0), // 27: inventory.v1.ServiceType + (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp + (*UniversalAgent)(nil), // 29: management.v1.UniversalAgent + (*AddAnnotationRequest)(nil), // 30: management.v1.AddAnnotationRequest + (*ListAgentsRequest)(nil), // 31: management.v1.ListAgentsRequest + (*ListAgentVersionsRequest)(nil), // 32: management.v1.ListAgentVersionsRequest + (*RegisterNodeRequest)(nil), // 33: management.v1.RegisterNodeRequest + (*UnregisterNodeRequest)(nil), // 34: management.v1.UnregisterNodeRequest + (*ListNodesRequest)(nil), // 35: management.v1.ListNodesRequest + (*GetNodeRequest)(nil), // 36: management.v1.GetNodeRequest + (*DiscoverRDSRequest)(nil), // 37: management.v1.DiscoverRDSRequest + (*DiscoverAzureDatabaseRequest)(nil), // 38: management.v1.DiscoverAzureDatabaseRequest + (*AddAzureDatabaseRequest)(nil), // 39: management.v1.AddAzureDatabaseRequest + (*DiscoverElastiCacheRequest)(nil), // 40: management.v1.DiscoverElastiCacheRequest + (*AddAnnotationResponse)(nil), // 41: management.v1.AddAnnotationResponse + (*ListAgentsResponse)(nil), // 42: management.v1.ListAgentsResponse + (*ListAgentVersionsResponse)(nil), // 43: management.v1.ListAgentVersionsResponse + (*RegisterNodeResponse)(nil), // 44: management.v1.RegisterNodeResponse + (*UnregisterNodeResponse)(nil), // 45: management.v1.UnregisterNodeResponse + (*ListNodesResponse)(nil), // 46: management.v1.ListNodesResponse + (*GetNodeResponse)(nil), // 47: management.v1.GetNodeResponse + (*DiscoverRDSResponse)(nil), // 48: management.v1.DiscoverRDSResponse + (*DiscoverAzureDatabaseResponse)(nil), // 49: management.v1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseResponse)(nil), // 50: management.v1.AddAzureDatabaseResponse + (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse } ) @@ -1015,53 +1054,57 @@ var file_management_v1_service_proto_depIdxs = []int32{ 14, // 5: management.v1.AddServiceRequest.external:type_name -> management.v1.AddExternalServiceParams 15, // 6: management.v1.AddServiceRequest.rds:type_name -> management.v1.AddRDSServiceParams 16, // 7: management.v1.AddServiceRequest.valkey:type_name -> management.v1.AddValkeyServiceParams - 17, // 8: management.v1.AddServiceResponse.mysql:type_name -> management.v1.MySQLServiceResult - 18, // 9: management.v1.AddServiceResponse.mongodb:type_name -> management.v1.MongoDBServiceResult - 19, // 10: management.v1.AddServiceResponse.postgresql:type_name -> management.v1.PostgreSQLServiceResult - 20, // 11: management.v1.AddServiceResponse.proxysql:type_name -> management.v1.ProxySQLServiceResult - 21, // 12: management.v1.AddServiceResponse.haproxy:type_name -> management.v1.HAProxyServiceResult - 22, // 13: management.v1.AddServiceResponse.external:type_name -> management.v1.ExternalServiceResult - 23, // 14: management.v1.AddServiceResponse.rds:type_name -> management.v1.RDSServiceResult - 24, // 15: management.v1.AddServiceResponse.valkey:type_name -> management.v1.ValkeyServiceResult - 25, // 16: management.v1.RemoveServiceRequest.service_type:type_name -> inventory.v1.ServiceType - 8, // 17: management.v1.UniversalService.custom_labels:type_name -> management.v1.UniversalService.CustomLabelsEntry - 26, // 18: management.v1.UniversalService.created_at:type_name -> google.protobuf.Timestamp - 26, // 19: management.v1.UniversalService.updated_at:type_name -> google.protobuf.Timestamp - 27, // 20: management.v1.UniversalService.agents:type_name -> management.v1.UniversalAgent - 0, // 21: management.v1.UniversalService.status:type_name -> management.v1.UniversalService.Status - 25, // 22: management.v1.ListServicesRequest.service_type:type_name -> inventory.v1.ServiceType - 5, // 23: management.v1.ListServicesResponse.services:type_name -> management.v1.UniversalService - 28, // 24: management.v1.ManagementService.AddAnnotation:input_type -> management.v1.AddAnnotationRequest - 29, // 25: management.v1.ManagementService.ListAgents:input_type -> management.v1.ListAgentsRequest - 30, // 26: management.v1.ManagementService.ListAgentVersions:input_type -> management.v1.ListAgentVersionsRequest - 31, // 27: management.v1.ManagementService.RegisterNode:input_type -> management.v1.RegisterNodeRequest - 32, // 28: management.v1.ManagementService.UnregisterNode:input_type -> management.v1.UnregisterNodeRequest - 33, // 29: management.v1.ManagementService.ListNodes:input_type -> management.v1.ListNodesRequest - 34, // 30: management.v1.ManagementService.GetNode:input_type -> management.v1.GetNodeRequest - 1, // 31: management.v1.ManagementService.AddService:input_type -> management.v1.AddServiceRequest - 6, // 32: management.v1.ManagementService.ListServices:input_type -> management.v1.ListServicesRequest - 35, // 33: management.v1.ManagementService.DiscoverRDS:input_type -> management.v1.DiscoverRDSRequest - 36, // 34: management.v1.ManagementService.DiscoverAzureDatabase:input_type -> management.v1.DiscoverAzureDatabaseRequest - 37, // 35: management.v1.ManagementService.AddAzureDatabase:input_type -> management.v1.AddAzureDatabaseRequest - 3, // 36: management.v1.ManagementService.RemoveService:input_type -> management.v1.RemoveServiceRequest - 38, // 37: management.v1.ManagementService.AddAnnotation:output_type -> management.v1.AddAnnotationResponse - 39, // 38: management.v1.ManagementService.ListAgents:output_type -> management.v1.ListAgentsResponse - 40, // 39: management.v1.ManagementService.ListAgentVersions:output_type -> management.v1.ListAgentVersionsResponse - 41, // 40: management.v1.ManagementService.RegisterNode:output_type -> management.v1.RegisterNodeResponse - 42, // 41: management.v1.ManagementService.UnregisterNode:output_type -> management.v1.UnregisterNodeResponse - 43, // 42: management.v1.ManagementService.ListNodes:output_type -> management.v1.ListNodesResponse - 44, // 43: management.v1.ManagementService.GetNode:output_type -> management.v1.GetNodeResponse - 2, // 44: management.v1.ManagementService.AddService:output_type -> management.v1.AddServiceResponse - 7, // 45: management.v1.ManagementService.ListServices:output_type -> management.v1.ListServicesResponse - 45, // 46: management.v1.ManagementService.DiscoverRDS:output_type -> management.v1.DiscoverRDSResponse - 46, // 47: management.v1.ManagementService.DiscoverAzureDatabase:output_type -> management.v1.DiscoverAzureDatabaseResponse - 47, // 48: management.v1.ManagementService.AddAzureDatabase:output_type -> management.v1.AddAzureDatabaseResponse - 4, // 49: management.v1.ManagementService.RemoveService:output_type -> management.v1.RemoveServiceResponse - 37, // [37:50] is the sub-list for method output_type - 24, // [24:37] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name + 17, // 8: management.v1.AddServiceRequest.elasticache:type_name -> management.v1.AddElastiCacheServiceParams + 18, // 9: management.v1.AddServiceResponse.mysql:type_name -> management.v1.MySQLServiceResult + 19, // 10: management.v1.AddServiceResponse.mongodb:type_name -> management.v1.MongoDBServiceResult + 20, // 11: management.v1.AddServiceResponse.postgresql:type_name -> management.v1.PostgreSQLServiceResult + 21, // 12: management.v1.AddServiceResponse.proxysql:type_name -> management.v1.ProxySQLServiceResult + 22, // 13: management.v1.AddServiceResponse.haproxy:type_name -> management.v1.HAProxyServiceResult + 23, // 14: management.v1.AddServiceResponse.external:type_name -> management.v1.ExternalServiceResult + 24, // 15: management.v1.AddServiceResponse.rds:type_name -> management.v1.RDSServiceResult + 25, // 16: management.v1.AddServiceResponse.valkey:type_name -> management.v1.ValkeyServiceResult + 26, // 17: management.v1.AddServiceResponse.elasticache:type_name -> management.v1.ElastiCacheServiceResult + 27, // 18: management.v1.RemoveServiceRequest.service_type:type_name -> inventory.v1.ServiceType + 8, // 19: management.v1.UniversalService.custom_labels:type_name -> management.v1.UniversalService.CustomLabelsEntry + 28, // 20: management.v1.UniversalService.created_at:type_name -> google.protobuf.Timestamp + 28, // 21: management.v1.UniversalService.updated_at:type_name -> google.protobuf.Timestamp + 29, // 22: management.v1.UniversalService.agents:type_name -> management.v1.UniversalAgent + 0, // 23: management.v1.UniversalService.status:type_name -> management.v1.UniversalService.Status + 27, // 24: management.v1.ListServicesRequest.service_type:type_name -> inventory.v1.ServiceType + 5, // 25: management.v1.ListServicesResponse.services:type_name -> management.v1.UniversalService + 30, // 26: management.v1.ManagementService.AddAnnotation:input_type -> management.v1.AddAnnotationRequest + 31, // 27: management.v1.ManagementService.ListAgents:input_type -> management.v1.ListAgentsRequest + 32, // 28: management.v1.ManagementService.ListAgentVersions:input_type -> management.v1.ListAgentVersionsRequest + 33, // 29: management.v1.ManagementService.RegisterNode:input_type -> management.v1.RegisterNodeRequest + 34, // 30: management.v1.ManagementService.UnregisterNode:input_type -> management.v1.UnregisterNodeRequest + 35, // 31: management.v1.ManagementService.ListNodes:input_type -> management.v1.ListNodesRequest + 36, // 32: management.v1.ManagementService.GetNode:input_type -> management.v1.GetNodeRequest + 1, // 33: management.v1.ManagementService.AddService:input_type -> management.v1.AddServiceRequest + 6, // 34: management.v1.ManagementService.ListServices:input_type -> management.v1.ListServicesRequest + 37, // 35: management.v1.ManagementService.DiscoverRDS:input_type -> management.v1.DiscoverRDSRequest + 38, // 36: management.v1.ManagementService.DiscoverAzureDatabase:input_type -> management.v1.DiscoverAzureDatabaseRequest + 39, // 37: management.v1.ManagementService.AddAzureDatabase:input_type -> management.v1.AddAzureDatabaseRequest + 40, // 38: management.v1.ManagementService.DiscoverElastiCache:input_type -> management.v1.DiscoverElastiCacheRequest + 3, // 39: management.v1.ManagementService.RemoveService:input_type -> management.v1.RemoveServiceRequest + 41, // 40: management.v1.ManagementService.AddAnnotation:output_type -> management.v1.AddAnnotationResponse + 42, // 41: management.v1.ManagementService.ListAgents:output_type -> management.v1.ListAgentsResponse + 43, // 42: management.v1.ManagementService.ListAgentVersions:output_type -> management.v1.ListAgentVersionsResponse + 44, // 43: management.v1.ManagementService.RegisterNode:output_type -> management.v1.RegisterNodeResponse + 45, // 44: management.v1.ManagementService.UnregisterNode:output_type -> management.v1.UnregisterNodeResponse + 46, // 45: management.v1.ManagementService.ListNodes:output_type -> management.v1.ListNodesResponse + 47, // 46: management.v1.ManagementService.GetNode:output_type -> management.v1.GetNodeResponse + 2, // 47: management.v1.ManagementService.AddService:output_type -> management.v1.AddServiceResponse + 7, // 48: management.v1.ManagementService.ListServices:output_type -> management.v1.ListServicesResponse + 48, // 49: management.v1.ManagementService.DiscoverRDS:output_type -> management.v1.DiscoverRDSResponse + 49, // 50: management.v1.ManagementService.DiscoverAzureDatabase:output_type -> management.v1.DiscoverAzureDatabaseResponse + 50, // 51: management.v1.ManagementService.AddAzureDatabase:output_type -> management.v1.AddAzureDatabaseResponse + 51, // 52: management.v1.ManagementService.DiscoverElastiCache:output_type -> management.v1.DiscoverElastiCacheResponse + 4, // 53: management.v1.ManagementService.RemoveService:output_type -> management.v1.RemoveServiceResponse + 40, // [40:54] is the sub-list for method output_type + 26, // [26:40] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name } func init() { file_management_v1_service_proto_init() } @@ -1079,6 +1122,7 @@ func file_management_v1_service_proto_init() { file_management_v1_node_proto_init() file_management_v1_postgresql_proto_init() file_management_v1_proxysql_proto_init() + file_management_v1_elasticache_proto_init() file_management_v1_rds_proto_init() file_management_v1_valkey_proto_init() file_management_v1_service_proto_msgTypes[0].OneofWrappers = []any{ @@ -1090,6 +1134,7 @@ func file_management_v1_service_proto_init() { (*AddServiceRequest_External)(nil), (*AddServiceRequest_Rds)(nil), (*AddServiceRequest_Valkey)(nil), + (*AddServiceRequest_Elasticache)(nil), } file_management_v1_service_proto_msgTypes[1].OneofWrappers = []any{ (*AddServiceResponse_Mysql)(nil), @@ -1100,6 +1145,7 @@ func file_management_v1_service_proto_init() { (*AddServiceResponse_External)(nil), (*AddServiceResponse_Rds)(nil), (*AddServiceResponse_Valkey)(nil), + (*AddServiceResponse_Elasticache)(nil), } type x struct{} out := protoimpl.TypeBuilder{ diff --git a/api/management/v1/service.pb.gw.go b/api/management/v1/service.pb.gw.go index 18c78ee4db1..32f6c5a7fed 100644 --- a/api/management/v1/service.pb.gw.go +++ b/api/management/v1/service.pb.gw.go @@ -415,6 +415,33 @@ func local_request_ManagementService_AddAzureDatabase_0(ctx context.Context, mar return msg, metadata, err } +func request_ManagementService_DiscoverElastiCache_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq DiscoverElastiCacheRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if req.Body != nil { + _, _ = io.Copy(io.Discard, req.Body) + } + msg, err := client.DiscoverElastiCache(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_ManagementService_DiscoverElastiCache_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq DiscoverElastiCacheRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.DiscoverElastiCache(ctx, &protoReq) + return msg, metadata, err +} + var filter_ManagementService_RemoveService_0 = &utilities.DoubleArray{Encoding: map[string]int{"service_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} func request_ManagementService_RemoveService_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -714,6 +741,26 @@ func RegisterManagementServiceHandlerServer(ctx context.Context, mux *runtime.Se } forward_ManagementService_AddAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) + mux.Handle(http.MethodPost, pattern_ManagementService_DiscoverElastiCache_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/management.v1.ManagementService/DiscoverElastiCache", runtime.WithHTTPPathPattern("/v1/management/services:discoverElastiCache")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_ManagementService_DiscoverElastiCache_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_ManagementService_DiscoverElastiCache_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle(http.MethodDelete, pattern_ManagementService_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -978,6 +1025,23 @@ func RegisterManagementServiceHandlerClient(ctx context.Context, mux *runtime.Se } forward_ManagementService_AddAzureDatabase_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) + mux.Handle(http.MethodPost, pattern_ManagementService_DiscoverElastiCache_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/management.v1.ManagementService/DiscoverElastiCache", runtime.WithHTTPPathPattern("/v1/management/services:discoverElastiCache")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_ManagementService_DiscoverElastiCache_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_ManagementService_DiscoverElastiCache_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) mux.Handle(http.MethodDelete, pattern_ManagementService_RemoveService_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1011,6 +1075,7 @@ var ( pattern_ManagementService_DiscoverRDS_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "management", "services"}, "discoverRDS")) pattern_ManagementService_DiscoverAzureDatabase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "management", "services"}, "discoverAzure")) pattern_ManagementService_AddAzureDatabase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "services", "azure"}, "")) + pattern_ManagementService_DiscoverElastiCache_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "management", "services"}, "discoverElastiCache")) pattern_ManagementService_RemoveService_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "management", "services", "service_id"}, "")) ) @@ -1027,5 +1092,6 @@ var ( forward_ManagementService_DiscoverRDS_0 = runtime.ForwardResponseMessage forward_ManagementService_DiscoverAzureDatabase_0 = runtime.ForwardResponseMessage forward_ManagementService_AddAzureDatabase_0 = runtime.ForwardResponseMessage + forward_ManagementService_DiscoverElastiCache_0 = runtime.ForwardResponseMessage forward_ManagementService_RemoveService_0 = runtime.ForwardResponseMessage ) diff --git a/api/management/v1/service.pb.validate.go b/api/management/v1/service.pb.validate.go index 3f144eddbdc..97eb98b0e73 100644 --- a/api/management/v1/service.pb.validate.go +++ b/api/management/v1/service.pb.validate.go @@ -390,6 +390,47 @@ func (m *AddServiceRequest) validate(all bool) error { } } + case *AddServiceRequest_Elasticache: + if v == nil { + err := AddServiceRequestValidationError{ + field: "Service", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetElasticache()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddServiceRequestValidationError{ + field: "Elasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddServiceRequestValidationError{ + field: "Elasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetElasticache()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddServiceRequestValidationError{ + field: "Elasticache", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } @@ -826,6 +867,47 @@ func (m *AddServiceResponse) validate(all bool) error { } } + case *AddServiceResponse_Elasticache: + if v == nil { + err := AddServiceResponseValidationError{ + field: "Service", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetElasticache()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, AddServiceResponseValidationError{ + field: "Elasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, AddServiceResponseValidationError{ + field: "Elasticache", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetElasticache()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return AddServiceResponseValidationError{ + field: "Elasticache", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } diff --git a/api/management/v1/service.proto b/api/management/v1/service.proto index afdcfacd5c2..9c00cf77f08 100644 --- a/api/management/v1/service.proto +++ b/api/management/v1/service.proto @@ -8,6 +8,7 @@ import "inventory/v1/services.proto"; import "management/v1/agent.proto"; import "management/v1/annotation.proto"; import "management/v1/azure.proto"; +import "management/v1/elasticache.proto"; import "management/v1/external.proto"; import "management/v1/haproxy.proto"; import "management/v1/mongodb.proto"; @@ -29,6 +30,7 @@ message AddServiceRequest { AddExternalServiceParams external = 6; AddRDSServiceParams rds = 7; AddValkeyServiceParams valkey = 8; + AddElastiCacheServiceParams elasticache = 9; } } @@ -42,6 +44,7 @@ message AddServiceResponse { ExternalServiceResult external = 6; RDSServiceResult rds = 7; ValkeyServiceResult valkey = 8; + ElastiCacheServiceResult elasticache = 9; } } @@ -270,6 +273,17 @@ service ManagementService { description: "Adds an Azure Database instance." }; } + // DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). + rpc DiscoverElastiCache(DiscoverElastiCacheRequest) returns (DiscoverElastiCacheResponse) { + option (google.api.http) = { + post: "/v1/management/services:discoverElastiCache" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "Discover ElastiCache" + description: "Discovers ElastiCache replication groups (Valkey/Redis)." + }; + } // RemoveService removes a Service along with its Agents. rpc RemoveService(RemoveServiceRequest) returns (RemoveServiceResponse) { option (google.api.http) = {delete: "/v1/management/services/{service_id}"}; diff --git a/api/management/v1/service_grpc.pb.go b/api/management/v1/service_grpc.pb.go index b50380dc4b5..21b6c95f4df 100644 --- a/api/management/v1/service_grpc.pb.go +++ b/api/management/v1/service_grpc.pb.go @@ -32,6 +32,7 @@ const ( ManagementService_DiscoverRDS_FullMethodName = "/management.v1.ManagementService/DiscoverRDS" ManagementService_DiscoverAzureDatabase_FullMethodName = "/management.v1.ManagementService/DiscoverAzureDatabase" ManagementService_AddAzureDatabase_FullMethodName = "/management.v1.ManagementService/AddAzureDatabase" + ManagementService_DiscoverElastiCache_FullMethodName = "/management.v1.ManagementService/DiscoverElastiCache" ManagementService_RemoveService_FullMethodName = "/management.v1.ManagementService/RemoveService" ) @@ -65,6 +66,8 @@ type ManagementServiceClient interface { DiscoverAzureDatabase(ctx context.Context, in *DiscoverAzureDatabaseRequest, opts ...grpc.CallOption) (*DiscoverAzureDatabaseResponse, error) // AddAzureDatabase adds Azure Database instance. AddAzureDatabase(ctx context.Context, in *AddAzureDatabaseRequest, opts ...grpc.CallOption) (*AddAzureDatabaseResponse, error) + // DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). + DiscoverElastiCache(ctx context.Context, in *DiscoverElastiCacheRequest, opts ...grpc.CallOption) (*DiscoverElastiCacheResponse, error) // RemoveService removes a Service along with its Agents. RemoveService(ctx context.Context, in *RemoveServiceRequest, opts ...grpc.CallOption) (*RemoveServiceResponse, error) } @@ -197,6 +200,16 @@ func (c *managementServiceClient) AddAzureDatabase(ctx context.Context, in *AddA return out, nil } +func (c *managementServiceClient) DiscoverElastiCache(ctx context.Context, in *DiscoverElastiCacheRequest, opts ...grpc.CallOption) (*DiscoverElastiCacheResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DiscoverElastiCacheResponse) + err := c.cc.Invoke(ctx, ManagementService_DiscoverElastiCache_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *managementServiceClient) RemoveService(ctx context.Context, in *RemoveServiceRequest, opts ...grpc.CallOption) (*RemoveServiceResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveServiceResponse) @@ -237,6 +250,8 @@ type ManagementServiceServer interface { DiscoverAzureDatabase(context.Context, *DiscoverAzureDatabaseRequest) (*DiscoverAzureDatabaseResponse, error) // AddAzureDatabase adds Azure Database instance. AddAzureDatabase(context.Context, *AddAzureDatabaseRequest) (*AddAzureDatabaseResponse, error) + // DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). + DiscoverElastiCache(context.Context, *DiscoverElastiCacheRequest) (*DiscoverElastiCacheResponse, error) // RemoveService removes a Service along with its Agents. RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) mustEmbedUnimplementedManagementServiceServer() @@ -297,6 +312,10 @@ func (UnimplementedManagementServiceServer) AddAzureDatabase(context.Context, *A return nil, status.Error(codes.Unimplemented, "method AddAzureDatabase not implemented") } +func (UnimplementedManagementServiceServer) DiscoverElastiCache(context.Context, *DiscoverElastiCacheRequest) (*DiscoverElastiCacheResponse, error) { + return nil, status.Error(codes.Unimplemented, "method DiscoverElastiCache not implemented") +} + func (UnimplementedManagementServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveService not implemented") } @@ -537,6 +556,24 @@ func _ManagementService_AddAzureDatabase_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } +func _ManagementService_DiscoverElastiCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DiscoverElastiCacheRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ManagementServiceServer).DiscoverElastiCache(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ManagementService_DiscoverElastiCache_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ManagementServiceServer).DiscoverElastiCache(ctx, req.(*DiscoverElastiCacheRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _ManagementService_RemoveService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RemoveServiceRequest) if err := dec(in); err != nil { @@ -610,6 +647,10 @@ var ManagementService_ServiceDesc = grpc.ServiceDesc{ MethodName: "AddAzureDatabase", Handler: _ManagementService_AddAzureDatabase_Handler, }, + { + MethodName: "DiscoverElastiCache", + Handler: _ManagementService_DiscoverElastiCache_Handler, + }, { MethodName: "RemoveService", Handler: _ManagementService_RemoveService_Handler, diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index 1ca1471e02b..cadae39c8d6 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -17311,7 +17311,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "type": "string", "default": "NODE_TYPE_UNSPECIFIED", @@ -17605,6 +17606,59 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "type": "array", + "items": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + } + }, + "x-order": 5 } } } @@ -17876,6 +17930,45 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "type": "object", + "properties": { + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 0 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 1 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 2 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 3 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 4 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 5 + } + }, + "x-order": 5 } } } @@ -18151,6 +18244,56 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 5 } } } @@ -18476,6 +18619,56 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 5 } } } @@ -21842,7 +22035,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "type": "string", "default": "NODE_TYPE_UNSPECIFIED", @@ -22080,7 +22274,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23264,7 +23459,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23528,7 +23724,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23804,7 +24001,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -24065,7 +24263,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -24268,7 +24467,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -24433,7 +24633,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -24803,7 +25004,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -24985,89 +25187,216 @@ } }, "x-order": 7 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "mysql": { + }, + "elasticache": { "type": "object", "properties": { - "service": { - "description": "MySQLService represents a generic MySQL instance.", - "type": "object", - "properties": { - "service_id": { - "description": "Unique randomly generated instance identifier.", - "type": "string", - "x-order": 0 - }, - "service_name": { - "description": "Unique across all Services user-defined name.", - "type": "string", - "x-order": 1 - }, - "node_id": { - "description": "Node identifier where this instance runs.", - "type": "string", - "x-order": 2 - }, - "address": { - "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", - "type": "string", - "x-order": 3 - }, - "port": { - "description": "Access port.\nPort is required when the address present.", - "type": "integer", - "format": "int64", - "x-order": 4 - }, - "socket": { - "description": "Access unix socket.\nAddress (and port) or socket is required.", - "type": "string", - "x-order": 5 - }, - "environment": { - "description": "Environment name.", - "type": "string", - "x-order": 6 - }, - "cluster": { - "description": "Cluster name.", - "type": "string", - "x-order": 7 - }, - "replication_set": { - "description": "Replication set name.", - "type": "string", - "x-order": 8 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 9 - }, - "version": { - "description": "MySQL version.", - "type": "string", - "x-order": 10 - }, - "extra_dsn_params": { - "description": "Extra parameters to be added to the DSN.", - "type": "object", - "additionalProperties": { - "type": "string" - }, + "region": { + "description": "AWS region.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "AWS availability zone.", + "type": "string", + "x-order": 1 + }, + "instance_id": { + "description": "Replication group identifier.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Cache node type.", + "type": "string", + "x-order": 3 + }, + "address": { + "description": "Primary endpoint address.", + "type": "string", + "x-order": 4 + }, + "port": { + "description": "Primary endpoint port.", + "type": "integer", + "format": "int64", + "x-order": 5 + }, + "engine": { + "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", + "type": "string", + "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "enum": [ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTICACHE_ENGINE_REDIS", + "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + ], + "x-order": 6 + }, + "pmm_agent_id": { + "description": "PMM Agent ID.", + "type": "string", + "x-order": 7 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name. Defaults to instance_id.", + "type": "string", + "x-order": 8 + }, + "service_name": { + "description": "Unique across all Services user-defined name. Defaults to instance_id.", + "type": "string", + "x-order": 9 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 10 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 11 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 12 + }, + "username": { + "description": "Username for scraping metrics.", + "type": "string", + "x-order": 13 + }, + "password": { + "description": "Password for scraping metrics.", + "type": "string", + "x-order": 14 + }, + "custom_labels": { + "description": "Custom user-assigned labels for Node and Service.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 15 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 16 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 17 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 18 + }, + "metrics_mode": { + "description": "MetricsMode defines desired metrics mode for agent,\nit can be pull, push or auto mode chosen by server.\n\n - METRICS_MODE_UNSPECIFIED: Auto", + "type": "string", + "default": "METRICS_MODE_UNSPECIFIED", + "enum": [ + "METRICS_MODE_UNSPECIFIED", + "METRICS_MODE_PULL", + "METRICS_MODE_PUSH" + ], + "x-order": 19 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 20 + } + }, + "x-order": 8 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": { + "mysql": { + "type": "object", + "properties": { + "service": { + "description": "MySQLService represents a generic MySQL instance.", + "type": "object", + "properties": { + "service_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "service_name": { + "description": "Unique across all Services user-defined name.", + "type": "string", + "x-order": 1 + }, + "node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 2 + }, + "address": { + "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 3 + }, + "port": { + "description": "Access port.\nPort is required when the address present.", + "type": "integer", + "format": "int64", + "x-order": 4 + }, + "socket": { + "description": "Access unix socket.\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 5 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 6 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 7 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 8 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "version": { + "description": "MySQL version.", + "type": "string", + "x-order": 10 + }, + "extra_dsn_params": { + "description": "Extra parameters to be added to the DSN.", + "type": "object", + "additionalProperties": { + "type": "string" + }, "x-order": 11 } }, @@ -28047,68 +28376,307 @@ } }, "x-order": 7 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": {} - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/management/services/azure": { - "post": { - "description": "Adds an Azure Database instance.", - "tags": [ - "ManagementService" - ], - "summary": "Add Azure Database", - "operationId": "AddAzureDatabase", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "region": { - "description": "Azure database location.", - "type": "string", - "x-order": 0 }, - "az": { - "description": "Azure database availability zone.", - "type": "string", + "elasticache": { + "type": "object", + "properties": { + "node": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 0 + }, + "valkey_service": { + "description": "ValkeyService represents a generic Valkey instance.", + "type": "object", + "properties": { + "service_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "service_name": { + "description": "Unique across all Services user-defined name.", + "type": "string", + "x-order": 1 + }, + "node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 2 + }, + "address": { + "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 3 + }, + "port": { + "description": "Access port.\nPort is required when the address present.", + "type": "integer", + "format": "int64", + "x-order": 4 + }, + "socket": { + "description": "Access unix socket.\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 5 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 6 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 7 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 8 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "version": { + "description": "Valkey version.", + "type": "string", + "x-order": 10 + } + }, + "x-order": 1 + }, + "valkey_exporter": { + "description": "ValkeyExporter runs on Generic or Container Node and exposes Valkey Service metrics.", + "type": "object", + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 3 + }, + "username": { + "description": "Valkey username for scraping metrics.", + "type": "string", + "x-order": 4 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname verification.", + "type": "boolean", + "x-order": 6 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 8 + }, + "disabled_collectors": { + "description": "List of disabled collector names.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_INITIALIZATION_ERROR: Agent encountered error when starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent has been stopped or disabled.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_INITIALIZATION_ERROR", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 10 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 11 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 12 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 13 + }, + "metrics_resolutions": { + "description": "MetricsResolutions represents Prometheus exporters metrics resolutions.", + "type": "object", + "properties": { + "hr": { + "description": "High resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 0 + }, + "mr": { + "description": "Medium resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 1 + }, + "lr": { + "description": "Low resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 14 + } + }, + "x-order": 2 + } + }, + "x-order": 8 + } + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "message": { + "type": "string", + "x-order": 1 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": {} + }, + "x-order": 2 + } + } + } + } + } + } + }, + "/v1/management/services/azure": { + "post": { + "description": "Adds an Azure Database instance.", + "tags": [ + "ManagementService" + ], + "summary": "Add Azure Database", + "operationId": "AddAzureDatabase", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "region": { + "description": "Azure database location.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "Azure database availability zone.", + "type": "string", "x-order": 1 }, "instance_id": { @@ -28509,6 +29077,146 @@ } } }, + "/v1/management/services:discoverElastiCache": { + "post": { + "description": "Discovers ElastiCache replication groups (Valkey/Redis).", + "tags": [ + "ManagementService" + ], + "summary": "Discover ElastiCache", + "operationId": "DiscoverElastiCache", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "aws_access_key": { + "description": "AWS Access key. Optional — if empty, the default credential chain is used.", + "type": "string", + "x-order": 0 + }, + "aws_secret_key": { + "description": "AWS Secret key. Optional.", + "type": "string", + "x-order": 1 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": { + "elasticache_instances": { + "type": "array", + "items": { + "description": "DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API.", + "type": "object", + "properties": { + "region": { + "description": "AWS region.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "AWS availability zone.", + "type": "string", + "x-order": 1 + }, + "instance_id": { + "description": "Replication group identifier.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Cache node type (e.g. cache.r7g.large).", + "type": "string", + "x-order": 3 + }, + "address": { + "description": "Primary endpoint address.", + "type": "string", + "x-order": 4 + }, + "port": { + "description": "Primary endpoint port.", + "type": "integer", + "format": "int64", + "x-order": 5 + }, + "engine": { + "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", + "type": "string", + "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "enum": [ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTICACHE_ENGINE_REDIS", + "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + ], + "x-order": 6 + }, + "engine_version": { + "description": "Engine version.", + "type": "string", + "x-order": 7 + }, + "transit_encryption_enabled": { + "description": "Whether in-transit encryption is enabled.", + "type": "boolean", + "x-order": 8 + }, + "cluster": { + "description": "Cluster name (replication group ID).", + "type": "string", + "x-order": 9 + } + } + }, + "x-order": 0 + } + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "message": { + "type": "string", + "x-order": 1 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": {} + }, + "x-order": 2 + } + } + } + } + } + } + }, "/v1/management/services:discoverRDS": { "post": { "description": "Discovers RDS instances.", diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 6650f3b8266..ed10e267dcc 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -16353,7 +16353,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "type": "string", "default": "NODE_TYPE_UNSPECIFIED", @@ -16647,6 +16648,59 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "type": "array", + "items": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + } + }, + "x-order": 5 } } } @@ -16918,6 +16972,45 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "type": "object", + "properties": { + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 0 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 1 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 2 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 3 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 4 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 5 + } + }, + "x-order": 5 } } } @@ -17193,6 +17286,56 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 5 } } } @@ -17518,6 +17661,56 @@ } }, "x-order": 4 + }, + "remote_elasticache": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 5 } } } @@ -20884,7 +21077,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "type": "string", "default": "NODE_TYPE_UNSPECIFIED", @@ -21122,7 +21316,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -22306,7 +22501,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -22570,7 +22766,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -22846,7 +23043,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23107,7 +23305,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23310,7 +23509,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23475,7 +23675,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -23845,7 +24046,8 @@ "NODE_TYPE_CONTAINER_NODE", "NODE_TYPE_REMOTE_NODE", "NODE_TYPE_REMOTE_RDS_NODE", - "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE", + "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ], "x-order": 0 }, @@ -24027,89 +24229,216 @@ } }, "x-order": 7 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object", - "properties": { - "mysql": { + }, + "elasticache": { "type": "object", "properties": { - "service": { - "description": "MySQLService represents a generic MySQL instance.", - "type": "object", - "properties": { - "service_id": { - "description": "Unique randomly generated instance identifier.", - "type": "string", - "x-order": 0 - }, - "service_name": { - "description": "Unique across all Services user-defined name.", - "type": "string", - "x-order": 1 - }, - "node_id": { - "description": "Node identifier where this instance runs.", - "type": "string", - "x-order": 2 - }, - "address": { - "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", - "type": "string", - "x-order": 3 - }, - "port": { - "description": "Access port.\nPort is required when the address present.", - "type": "integer", - "format": "int64", - "x-order": 4 - }, - "socket": { - "description": "Access unix socket.\nAddress (and port) or socket is required.", - "type": "string", - "x-order": 5 - }, - "environment": { - "description": "Environment name.", - "type": "string", - "x-order": 6 - }, - "cluster": { - "description": "Cluster name.", - "type": "string", - "x-order": 7 - }, - "replication_set": { - "description": "Replication set name.", - "type": "string", - "x-order": 8 - }, - "custom_labels": { - "description": "Custom user-assigned labels.", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-order": 9 - }, - "version": { - "description": "MySQL version.", - "type": "string", - "x-order": 10 - }, - "extra_dsn_params": { - "description": "Extra parameters to be added to the DSN.", - "type": "object", - "additionalProperties": { - "type": "string" - }, + "region": { + "description": "AWS region.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "AWS availability zone.", + "type": "string", + "x-order": 1 + }, + "instance_id": { + "description": "Replication group identifier.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Cache node type.", + "type": "string", + "x-order": 3 + }, + "address": { + "description": "Primary endpoint address.", + "type": "string", + "x-order": 4 + }, + "port": { + "description": "Primary endpoint port.", + "type": "integer", + "format": "int64", + "x-order": 5 + }, + "engine": { + "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", + "type": "string", + "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "enum": [ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTICACHE_ENGINE_REDIS", + "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + ], + "x-order": 6 + }, + "pmm_agent_id": { + "description": "PMM Agent ID.", + "type": "string", + "x-order": 7 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name. Defaults to instance_id.", + "type": "string", + "x-order": 8 + }, + "service_name": { + "description": "Unique across all Services user-defined name. Defaults to instance_id.", + "type": "string", + "x-order": 9 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 10 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 11 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 12 + }, + "username": { + "description": "Username for scraping metrics.", + "type": "string", + "x-order": 13 + }, + "password": { + "description": "Password for scraping metrics.", + "type": "string", + "x-order": 14 + }, + "custom_labels": { + "description": "Custom user-assigned labels for Node and Service.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 15 + }, + "skip_connection_check": { + "description": "Skip connection check.", + "type": "boolean", + "x-order": 16 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 17 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname validation.", + "type": "boolean", + "x-order": 18 + }, + "metrics_mode": { + "description": "MetricsMode defines desired metrics mode for agent,\nit can be pull, push or auto mode chosen by server.\n\n - METRICS_MODE_UNSPECIFIED: Auto", + "type": "string", + "default": "METRICS_MODE_UNSPECIFIED", + "enum": [ + "METRICS_MODE_UNSPECIFIED", + "METRICS_MODE_PULL", + "METRICS_MODE_PUSH" + ], + "x-order": 19 + }, + "agent_password": { + "description": "Custom password for exporter endpoint /metrics.", + "type": "string", + "x-order": 20 + } + }, + "x-order": 8 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": { + "mysql": { + "type": "object", + "properties": { + "service": { + "description": "MySQLService represents a generic MySQL instance.", + "type": "object", + "properties": { + "service_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "service_name": { + "description": "Unique across all Services user-defined name.", + "type": "string", + "x-order": 1 + }, + "node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 2 + }, + "address": { + "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 3 + }, + "port": { + "description": "Access port.\nPort is required when the address present.", + "type": "integer", + "format": "int64", + "x-order": 4 + }, + "socket": { + "description": "Access unix socket.\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 5 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 6 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 7 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 8 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "version": { + "description": "MySQL version.", + "type": "string", + "x-order": 10 + }, + "extra_dsn_params": { + "description": "Extra parameters to be added to the DSN.", + "type": "object", + "additionalProperties": { + "type": "string" + }, "x-order": 11 } }, @@ -27089,68 +27418,307 @@ } }, "x-order": 7 - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "x-order": 0 - } - }, - "additionalProperties": {} - }, - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/management/services/azure": { - "post": { - "description": "Adds an Azure Database instance.", - "tags": [ - "ManagementService" - ], - "summary": "Add Azure Database", - "operationId": "AddAzureDatabase", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "region": { - "description": "Azure database location.", - "type": "string", - "x-order": 0 }, - "az": { - "description": "Azure database availability zone.", - "type": "string", + "elasticache": { + "type": "object", + "properties": { + "node": { + "description": "RemoteElastiCacheNode represents remote ElastiCache Node. Agents can't run on Remote ElastiCache Nodes.", + "type": "object", + "properties": { + "node_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "node_name": { + "description": "Unique across all Nodes user-defined name.", + "type": "string", + "x-order": 1 + }, + "address": { + "description": "ElastiCache primary endpoint address.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Node model (cache node type).", + "type": "string", + "x-order": 3 + }, + "region": { + "description": "Node region.", + "type": "string", + "x-order": 4 + }, + "az": { + "description": "Node availability zone.", + "type": "string", + "x-order": 5 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 6 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 7 + } + }, + "x-order": 0 + }, + "valkey_service": { + "description": "ValkeyService represents a generic Valkey instance.", + "type": "object", + "properties": { + "service_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "service_name": { + "description": "Unique across all Services user-defined name.", + "type": "string", + "x-order": 1 + }, + "node_id": { + "description": "Node identifier where this instance runs.", + "type": "string", + "x-order": 2 + }, + "address": { + "description": "Access address (DNS name or IP).\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 3 + }, + "port": { + "description": "Access port.\nPort is required when the address present.", + "type": "integer", + "format": "int64", + "x-order": 4 + }, + "socket": { + "description": "Access unix socket.\nAddress (and port) or socket is required.", + "type": "string", + "x-order": 5 + }, + "environment": { + "description": "Environment name.", + "type": "string", + "x-order": 6 + }, + "cluster": { + "description": "Cluster name.", + "type": "string", + "x-order": 7 + }, + "replication_set": { + "description": "Replication set name.", + "type": "string", + "x-order": 8 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 9 + }, + "version": { + "description": "Valkey version.", + "type": "string", + "x-order": 10 + } + }, + "x-order": 1 + }, + "valkey_exporter": { + "description": "ValkeyExporter runs on Generic or Container Node and exposes Valkey Service metrics.", + "type": "object", + "properties": { + "agent_id": { + "description": "Unique randomly generated instance identifier.", + "type": "string", + "x-order": 0 + }, + "pmm_agent_id": { + "description": "The pmm-agent identifier which runs this instance.", + "type": "string", + "x-order": 1 + }, + "disabled": { + "description": "Desired Agent status: enabled (false) or disabled (true).", + "type": "boolean", + "x-order": 2 + }, + "service_id": { + "description": "Service identifier.", + "type": "string", + "x-order": 3 + }, + "username": { + "description": "Valkey username for scraping metrics.", + "type": "string", + "x-order": 4 + }, + "tls": { + "description": "Use TLS for database connections.", + "type": "boolean", + "x-order": 5 + }, + "tls_skip_verify": { + "description": "Skip TLS certificate and hostname verification.", + "type": "boolean", + "x-order": 6 + }, + "custom_labels": { + "description": "Custom user-assigned labels.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-order": 7 + }, + "push_metrics_enabled": { + "description": "True if exporter uses push metrics mode.", + "type": "boolean", + "x-order": 8 + }, + "disabled_collectors": { + "description": "List of disabled collector names.", + "type": "array", + "items": { + "type": "string" + }, + "x-order": 9 + }, + "status": { + "description": "AgentStatus represents actual Agent status.\n\n - AGENT_STATUS_STARTING: Agent is starting.\n - AGENT_STATUS_INITIALIZATION_ERROR: Agent encountered error when starting.\n - AGENT_STATUS_RUNNING: Agent is running.\n - AGENT_STATUS_WAITING: Agent encountered error and will be restarted automatically soon.\n - AGENT_STATUS_STOPPING: Agent is stopping.\n - AGENT_STATUS_DONE: Agent has been stopped or disabled.\n - AGENT_STATUS_UNKNOWN: Agent is not connected, we don't know anything about it's state.", + "type": "string", + "default": "AGENT_STATUS_UNSPECIFIED", + "enum": [ + "AGENT_STATUS_UNSPECIFIED", + "AGENT_STATUS_STARTING", + "AGENT_STATUS_INITIALIZATION_ERROR", + "AGENT_STATUS_RUNNING", + "AGENT_STATUS_WAITING", + "AGENT_STATUS_STOPPING", + "AGENT_STATUS_DONE", + "AGENT_STATUS_UNKNOWN" + ], + "x-order": 10 + }, + "listen_port": { + "description": "Listen port for scraping metrics.", + "type": "integer", + "format": "int64", + "x-order": 11 + }, + "process_exec_path": { + "description": "Path to exec process.", + "type": "string", + "x-order": 12 + }, + "expose_exporter": { + "type": "boolean", + "title": "Optionally expose the exporter process on all public interfaces", + "x-order": 13 + }, + "metrics_resolutions": { + "description": "MetricsResolutions represents Prometheus exporters metrics resolutions.", + "type": "object", + "properties": { + "hr": { + "description": "High resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 0 + }, + "mr": { + "description": "Medium resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 1 + }, + "lr": { + "description": "Low resolution. In JSON should be represented as a string with number of seconds with `s` suffix.", + "type": "string", + "x-order": 2 + } + }, + "x-order": 14 + } + }, + "x-order": 2 + } + }, + "x-order": 8 + } + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "message": { + "type": "string", + "x-order": 1 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": {} + }, + "x-order": 2 + } + } + } + } + } + } + }, + "/v1/management/services/azure": { + "post": { + "description": "Adds an Azure Database instance.", + "tags": [ + "ManagementService" + ], + "summary": "Add Azure Database", + "operationId": "AddAzureDatabase", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "region": { + "description": "Azure database location.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "Azure database availability zone.", + "type": "string", "x-order": 1 }, "instance_id": { @@ -27551,6 +28119,146 @@ } } }, + "/v1/management/services:discoverElastiCache": { + "post": { + "description": "Discovers ElastiCache replication groups (Valkey/Redis).", + "tags": [ + "ManagementService" + ], + "summary": "Discover ElastiCache", + "operationId": "DiscoverElastiCache", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "aws_access_key": { + "description": "AWS Access key. Optional — if empty, the default credential chain is used.", + "type": "string", + "x-order": 0 + }, + "aws_secret_key": { + "description": "AWS Secret key. Optional.", + "type": "string", + "x-order": 1 + } + } + } + } + ], + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "type": "object", + "properties": { + "elasticache_instances": { + "type": "array", + "items": { + "description": "DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API.", + "type": "object", + "properties": { + "region": { + "description": "AWS region.", + "type": "string", + "x-order": 0 + }, + "az": { + "description": "AWS availability zone.", + "type": "string", + "x-order": 1 + }, + "instance_id": { + "description": "Replication group identifier.", + "type": "string", + "x-order": 2 + }, + "node_model": { + "description": "Cache node type (e.g. cache.r7g.large).", + "type": "string", + "x-order": 3 + }, + "address": { + "description": "Primary endpoint address.", + "type": "string", + "x-order": 4 + }, + "port": { + "description": "Primary endpoint port.", + "type": "integer", + "format": "int64", + "x-order": 5 + }, + "engine": { + "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", + "type": "string", + "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "enum": [ + "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTICACHE_ENGINE_REDIS", + "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + ], + "x-order": 6 + }, + "engine_version": { + "description": "Engine version.", + "type": "string", + "x-order": 7 + }, + "transit_encryption_enabled": { + "description": "Whether in-transit encryption is enabled.", + "type": "boolean", + "x-order": 8 + }, + "cluster": { + "description": "Cluster name (replication group ID).", + "type": "string", + "x-order": 9 + } + } + }, + "x-order": 0 + } + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32", + "x-order": 0 + }, + "message": { + "type": "string", + "x-order": 1 + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "x-order": 0 + } + }, + "additionalProperties": {} + }, + "x-order": 2 + } + } + } + } + } + } + }, "/v1/management/services:discoverRDS": { "post": { "description": "Discovers RDS instances.", diff --git a/go.mod b/go.mod index 02778f0dba7..65c2f6d9338 100644 --- a/go.mod +++ b/go.mod @@ -13,9 +13,10 @@ require ( github.com/alecthomas/kingpin/v2 v2.4.0 github.com/alecthomas/kong v1.15.0 github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b - github.com/aws/aws-sdk-go-v2 v1.41.5 + github.com/aws/aws-sdk-go-v2 v1.41.6 github.com/aws/aws-sdk-go-v2/config v1.32.12 github.com/aws/aws-sdk-go-v2/credentials v1.19.12 + github.com/aws/aws-sdk-go-v2/service/elasticache v1.52.1 github.com/aws/aws-sdk-go-v2/service/rds v1.118.0 github.com/aws/smithy-go v1.25.0 github.com/blang/semver v3.5.1+incompatible @@ -83,8 +84,8 @@ require ( require ( filippo.io/edwards25519 v1.2.0 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.22 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.22 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21 // indirect diff --git a/go.sum b/go.sum index 90668e42fa7..81ac58b6bb4 100644 --- a/go.sum +++ b/go.sum @@ -67,20 +67,22 @@ github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9Pq github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= -github.com/aws/aws-sdk-go-v2 v1.41.5 h1:dj5kopbwUsVUVFgO4Fi5BIT3t4WyqIDjGKCangnV/yY= -github.com/aws/aws-sdk-go-v2 v1.41.5/go.mod h1:mwsPRE8ceUUpiTgF7QmQIJ7lgsKUPQOUl3o72QBrE1o= +github.com/aws/aws-sdk-go-v2 v1.41.6 h1:1AX0AthnBQzMx1vbmir3Y4WsnJgiydmnJjiLu+LvXOg= +github.com/aws/aws-sdk-go-v2 v1.41.6/go.mod h1:dy0UzBIfwSeot4grGvY1AqFWN5zgziMmWGzysDnHFcQ= github.com/aws/aws-sdk-go-v2/config v1.32.12 h1:O3csC7HUGn2895eNrLytOJQdoL2xyJy0iYXhoZ1OmP0= github.com/aws/aws-sdk-go-v2/config v1.32.12/go.mod h1:96zTvoOFR4FURjI+/5wY1vc1ABceROO4lWgWJuxgy0g= github.com/aws/aws-sdk-go-v2/credentials v1.19.12 h1:oqtA6v+y5fZg//tcTWahyN9PEn5eDU/Wpvc2+kJ4aY8= github.com/aws/aws-sdk-go-v2/credentials v1.19.12/go.mod h1:U3R1RtSHx6NB0DvEQFGyf/0sbrpJrluENHdPy1j/3TE= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20 h1:zOgq3uezl5nznfoK3ODuqbhVg1JzAGDUhXOsU0IDCAo= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.20/go.mod h1:z/MVwUARehy6GAg/yQ1GO2IMl0k++cu1ohP9zo887wE= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 h1:Rgg6wvjjtX8bNHcvi9OnXWwcE0a2vGpbwmtICOsvcf4= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21/go.mod h1:A/kJFst/nm//cyqonihbdpQZwiUhhzpqTsdbhDdRF9c= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 h1:PEgGVtPoB6NTpPrBgqSE5hE/o47Ij9qk/SEZFbUOe9A= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21/go.mod h1:p+hz+PRAYlY3zcpJhPwXlLC4C+kqn70WIHwnzAfs6ps= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.22 h1:GmLa5Kw1ESqtFpXsx5MmC84QWa/ZrLZvlJGa2y+4kcQ= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.22/go.mod h1:6sW9iWm9DK9YRpRGga/qzrzNLgKpT2cIxb7Vo2eNOp0= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.22 h1:dY4kWZiSaXIzxnKlj17nHnBcXXBfac6UlsAx2qL6XrU= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.22/go.mod h1:KIpEUx0JuRZLO7U6cbV204cWAEco2iC3l061IxlwLtI= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 h1:qYQ4pzQ2Oz6WpQ8T3HvGHnZydA72MnLuFK9tJwmrbHw= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6/go.mod h1:O3h0IK87yXci+kg6flUKzJnWeziQUKciKrLjcatSNcY= +github.com/aws/aws-sdk-go-v2/service/elasticache v1.52.1 h1:OiVtvILStTDHhiq60Y3H3BnJFSNecBiNn/gmiWrjPOA= +github.com/aws/aws-sdk-go-v2/service/elasticache v1.52.1/go.mod h1:D73K84NboORJenKGZJFzx7/eZFJh+px5WRHnGuVaa2U= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 h1:5EniKhLZe4xzL7a+fU3C2tfUN4nWIqlLesfrjkuPFTY= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7/go.mod h1:x0nZssQ3qZSnIcePWLvcoFisRXJzcTVvYpAAdYX8+GI= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21 h1:c31//R3xgIJMSC8S6hEVq+38DcvUlgFY0FM6mSI5oto= diff --git a/managed/cmd/pmm-managed/main.go b/managed/cmd/pmm-managed/main.go index 9854238af15..d573556107a 100644 --- a/managed/cmd/pmm-managed/main.go +++ b/managed/cmd/pmm-managed/main.go @@ -1017,6 +1017,7 @@ func main() { //nolint:gocognit,maintidx,cyclop schedulerService := scheduler.New(db, backupService) versionCache := versioncache.New(db, versioner) + elasticacheDiscovery := management.NewElastiCacheDiscovery(db, agentsStateUpdater) dumpService := dump.New(db, &dump.URLs{ ClickhouseURL: chURI.String(), @@ -1159,6 +1160,11 @@ func main() { //nolint:gocognit,maintidx,cyclop return nil })) + haService.AddLeaderService(ha.NewContextService("elasticacheDiscovery", func(ctx context.Context) error { + elasticacheDiscovery.Run(ctx) + return nil + })) + wg.Go(func() { runGRPCServer(ctx, &gRPCServerDeps{ diff --git a/managed/models/node_model.go b/managed/models/node_model.go index 4d511cba1c0..5aa6f26917d 100644 --- a/managed/models/node_model.go +++ b/managed/models/node_model.go @@ -36,6 +36,7 @@ const ( RemoteNodeType NodeType = "remote" RemoteRDSNodeType NodeType = "remote_rds" RemoteAzureDatabaseNodeType NodeType = "remote_azure_database" + RemoteElastiCacheNodeType NodeType = "remote_elasticache" ) // PMMServerNodeID is a special Node ID representing PMM Server Node. diff --git a/managed/services/converters.go b/managed/services/converters.go index f28a4567a2b..fa7af7d9370 100644 --- a/managed/services/converters.go +++ b/managed/services/converters.go @@ -101,6 +101,18 @@ func ToAPINode(node *models.Node) (inventoryv1.Node, error) { //nolint:ireturn Address: node.Address, }, nil + case models.RemoteElastiCacheNodeType: + return &inventoryv1.RemoteElastiCacheNode{ + NodeId: node.NodeID, + NodeName: node.NodeName, + NodeModel: node.NodeModel, + Region: pointer.GetString(node.Region), + Az: node.AZ, + CustomLabels: labels, + Address: node.Address, + InstanceId: node.InstanceID, + }, nil + default: panic(fmt.Errorf("unhandled Node type %s", node.NodeType)) } @@ -647,6 +659,7 @@ var nodeTypes = map[inventoryv1.NodeType]models.NodeType{ inventoryv1.NodeType_NODE_TYPE_REMOTE_NODE: models.RemoteNodeType, inventoryv1.NodeType_NODE_TYPE_REMOTE_RDS_NODE: models.RemoteRDSNodeType, inventoryv1.NodeType_NODE_TYPE_REMOTE_AZURE_DATABASE_NODE: models.RemoteAzureDatabaseNodeType, + inventoryv1.NodeType_NODE_TYPE_REMOTE_ELASTICACHE_NODE: models.RemoteElastiCacheNodeType, } // ProtoToModelNodeType converts a NodeType from protobuf to model. diff --git a/managed/services/inventory/grpc/nodes_server.go b/managed/services/inventory/grpc/nodes_server.go index 0c67bbbed0e..67b99db47c2 100644 --- a/managed/services/inventory/grpc/nodes_server.go +++ b/managed/services/inventory/grpc/nodes_server.go @@ -41,6 +41,7 @@ var nodeTypes = map[inventoryv1.NodeType]models.NodeType{ inventoryv1.NodeType_NODE_TYPE_REMOTE_NODE: models.RemoteNodeType, inventoryv1.NodeType_NODE_TYPE_REMOTE_RDS_NODE: models.RemoteRDSNodeType, inventoryv1.NodeType_NODE_TYPE_REMOTE_AZURE_DATABASE_NODE: models.RemoteAzureDatabaseNodeType, + inventoryv1.NodeType_NODE_TYPE_REMOTE_ELASTICACHE_NODE: models.RemoteElastiCacheNodeType, } func nodeType(nodeType inventoryv1.NodeType) *models.NodeType { @@ -74,6 +75,8 @@ func (s *nodesServer) ListNodes(ctx context.Context, req *inventoryv1.ListNodesR res.RemoteRds = append(res.RemoteRds, node) case *inventoryv1.RemoteAzureDatabaseNode: res.RemoteAzureDatabase = append(res.RemoteAzureDatabase, node) + case *inventoryv1.RemoteElastiCacheNode: + res.RemoteElasticache = append(res.RemoteElasticache, node) default: panic(fmt.Errorf("unhandled inventory Node type %T", node)) } @@ -100,6 +103,8 @@ func (s *nodesServer) GetNode(ctx context.Context, req *inventoryv1.GetNodeReque res.Node = &inventoryv1.GetNodeResponse_RemoteRds{RemoteRds: node} case *inventoryv1.RemoteAzureDatabaseNode: res.Node = &inventoryv1.GetNodeResponse_RemoteAzureDatabase{RemoteAzureDatabase: node} + case *inventoryv1.RemoteElastiCacheNode: + res.Node = &inventoryv1.GetNodeResponse_RemoteElasticache{RemoteElasticache: node} default: panic(fmt.Errorf("unhandled inventory Node type %T", node)) } diff --git a/managed/services/inventory/nodes.go b/managed/services/inventory/nodes.go index 87504d9733b..2f17fc67849 100644 --- a/managed/services/inventory/nodes.go +++ b/managed/services/inventory/nodes.go @@ -125,6 +125,12 @@ func (s *NodesService) AddNode(ctx context.Context, req *inventoryv1.AddNodeRequ return nil, err } res.Node = &inventoryv1.AddNodeResponse_RemoteAzureDatabase{RemoteAzureDatabase: node} + case *inventoryv1.AddNodeRequest_RemoteElasticache: + node, err := s.AddRemoteElastiCacheNode(ctx, req.GetRemoteElasticache()) + if err != nil { + return nil, err + } + res.Node = &inventoryv1.AddNodeResponse_RemoteElasticache{RemoteElasticache: node} default: return nil, errors.Errorf("invalid request %v", req.GetNode()) } @@ -299,6 +305,40 @@ func (s *NodesService) AddRemoteAzureDatabaseNode(ctx context.Context, req *inve return invNode.(*inventoryv1.RemoteAzureDatabaseNode), nil //nolint:forcetypeassert } +// AddRemoteElastiCacheNode adds a new ElastiCache node. +// +//nolint:dupl +func (s *NodesService) AddRemoteElastiCacheNode(ctx context.Context, req *inventoryv1.AddRemoteElastiCacheNodeParams) (*inventoryv1.RemoteElastiCacheNode, error) { + params := &models.CreateNodeParams{ + NodeName: req.NodeName, + Address: req.Address, + NodeModel: req.NodeModel, + Region: pointer.ToStringOrNil(req.Region), + AZ: req.Az, + CustomLabels: req.CustomLabels, + } + + node := &models.Node{} + e := s.db.InTransactionContext(ctx, nil, func(tx *reform.TX) error { + var err error + node, err = models.CreateNode(tx.Querier, models.RemoteElastiCacheNodeType, params) + if err != nil { + return err + } + return nil + }) + if e != nil { + return nil, e + } + + invNode, err := services.ToAPINode(node) + if err != nil { + return nil, err + } + + return invNode.(*inventoryv1.RemoteElastiCacheNode), nil //nolint:forcetypeassert +} + // Remove removes Node without any Agents and Services. // Removes Node with the Agents and Services if force == true. // Returns an error if force == false and Node has Agents or Services. diff --git a/managed/services/management/elasticache.go b/managed/services/management/elasticache.go new file mode 100644 index 00000000000..81af54cfbee --- /dev/null +++ b/managed/services/management/elasticache.go @@ -0,0 +1,333 @@ +// Copyright (C) 2023 Percona LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +package management + +import ( + "context" + "net/http" + "sort" + + "github.com/AlekSi/pointer" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/config" + "github.com/aws/aws-sdk-go-v2/credentials" + "github.com/aws/aws-sdk-go-v2/service/elasticache" + ectypes "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/aws/smithy-go" + "github.com/pkg/errors" + "github.com/sirupsen/logrus" + "golang.org/x/sync/errgroup" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "gopkg.in/reform.v1" + + inventoryv1 "github.com/percona/pmm/api/inventory/v1" + managementv1 "github.com/percona/pmm/api/management/v1" + "github.com/percona/pmm/managed/models" + "github.com/percona/pmm/managed/services" + "github.com/percona/pmm/utils/logger" +) + +// elasticacheEngines maps AWS engine names to our proto enum. +var elasticacheEngines = map[string]managementv1.DiscoverElastiCacheEngine{ + "redis": managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_REDIS, + "valkey": managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_VALKEY, +} + +// discoverElastiCacheRegion returns a list of ElastiCache replication groups from a single region. +func discoverElastiCacheRegion(ctx context.Context, cfg aws.Config, region string) ([]ectypes.ReplicationGroup, error) { + var res []ectypes.ReplicationGroup + client := elasticache.NewFromConfig(cfg, func(o *elasticache.Options) { + o.Region = region + }) + + paginator := elasticache.NewDescribeReplicationGroupsPaginator(client, &elasticache.DescribeReplicationGroupsInput{}) + for paginator.HasMorePages() { + page, err := paginator.NextPage(ctx) + if err != nil { + return res, err + } + res = append(res, page.ReplicationGroups...) + } + + return res, nil +} + +// listElastiCacheRegions returns a list of AWS regions where ElastiCache is available. +// ElastiCache is available in the same regions as RDS, so we reuse the same list. +func listElastiCacheRegions(partitions []string) []string { + return listRegions(partitions) +} + +// DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). +func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { + l := logger.Get(ctx).WithField("component", "discover/elasticache") + + settings, err := models.GetSettings(s.db.Querier) + if err != nil { + return nil, err + } + + // Use given credentials, or default credential chain. + var creds aws.CredentialsProvider + if req.AwsAccessKey != "" && req.AwsSecretKey != "" { + creds = credentials.NewStaticCredentialsProvider(req.AwsAccessKey, req.AwsSecretKey, "") + } + + opts := []func(*config.LoadOptions) error{ + config.WithCredentialsProvider(creds), + config.WithHTTPClient(&http.Client{}), + } + if l.Logger != nil && l.Logger.Level >= logrus.DebugLevel { + opts = append(opts, config.WithClientLogMode(aws.LogRetries|aws.LogRequestWithBody|aws.LogResponseWithBody)) + } + + cfg, err := config.LoadDefaultConfig(ctx, opts...) + if err != nil { + return nil, errors.WithStack(err) + } + + // Default to standard AWS partition if none configured. + partitions := settings.AWSPartitions + if len(partitions) == 0 { + partitions = []string{"aws"} + } + + ctx, cancel := context.WithTimeout(ctx, awsDiscoverTimeout) + defer cancel() + var wg errgroup.Group + instances := make(chan *managementv1.DiscoverElastiCacheInstance) + + for _, region := range listElastiCacheRegions(partitions) { + wg.Go(func() error { + regGroups, err := discoverElastiCacheRegion(ctx, cfg, region) + if err != nil { + l.Debugf("%s: %+v", region, err) + } + + for _, rg := range regGroups { + if rg.Status == nil || *rg.Status != "available" { + continue + } + + engine, ok := elasticacheEngines[pointer.GetString(rg.Engine)] + if !ok { + continue + } + + clusterName := pointer.GetString(rg.ReplicationGroupId) + nodeType := pointer.GetString(rg.CacheNodeType) + transitEncryption := rg.TransitEncryptionEnabled != nil && *rg.TransitEncryptionEnabled + + // Cluster Mode Enabled: use ConfigurationEndpoint. + if rg.ClusterEnabled != nil && *rg.ClusterEnabled && rg.ConfigurationEndpoint != nil { + az := "" + if len(rg.NodeGroups) > 0 && len(rg.NodeGroups[0].NodeGroupMembers) > 0 { + az = pointer.GetString(rg.NodeGroups[0].NodeGroupMembers[0].PreferredAvailabilityZone) + } + instances <- &managementv1.DiscoverElastiCacheInstance{ + Region: region, + Az: az, + InstanceId: clusterName, + NodeModel: nodeType, + Address: pointer.GetString(rg.ConfigurationEndpoint.Address), + Port: uint32(pointer.GetInt32(rg.ConfigurationEndpoint.Port)), + Engine: engine, + TransitEncryptionEnabled: transitEncryption, + Cluster: clusterName, + } + continue + } + + // Cluster Mode Disabled: report per-shard endpoints. + for _, ng := range rg.NodeGroups { + if ng.PrimaryEndpoint == nil { + continue + } + + az := "" + if len(ng.NodeGroupMembers) > 0 { + az = pointer.GetString(ng.NodeGroupMembers[0].PreferredAvailabilityZone) + } + + instances <- &managementv1.DiscoverElastiCacheInstance{ + Region: region, + Az: az, + InstanceId: clusterName, + NodeModel: nodeType, + Address: pointer.GetString(ng.PrimaryEndpoint.Address), + Port: uint32(pointer.GetInt32(ng.PrimaryEndpoint.Port)), + Engine: engine, + TransitEncryptionEnabled: transitEncryption, + Cluster: clusterName, + } + } + } + + return err + }) + } + + go func() { + _ = wg.Wait() + close(instances) + }() + + res := &managementv1.DiscoverElastiCacheResponse{} + for i := range instances { + res.ElasticacheInstances = append(res.ElasticacheInstances, i) + } + + sort.Slice(res.ElasticacheInstances, func(i, j int) bool { + if res.ElasticacheInstances[i].Region != res.ElasticacheInstances[j].Region { + return res.ElasticacheInstances[i].Region < res.ElasticacheInstances[j].Region + } + return res.ElasticacheInstances[i].InstanceId < res.ElasticacheInstances[j].InstanceId + }) + + if len(res.ElasticacheInstances) != 0 { + return res, nil + } + + // Return better gRPC errors in typical cases. + err = wg.Wait() + if err != nil { + var apiErr *smithy.GenericAPIError + if errors.As(err, &apiErr) { + switch { + case apiErr.Code == "InvalidClientTokenId": + return res, status.Error(codes.InvalidArgument, apiErr.Message) + case errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded): + return res, status.Error(codes.DeadlineExceeded, "Request timeout.") + default: + return res, status.Error(codes.Unknown, apiErr.Error()) + } + } + + if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { + return res, status.Error(codes.DeadlineExceeded, "Request timeout.") + } + + return res, status.Error(codes.Unknown, err.Error()) + } + + return nil, err +} + +// addElastiCache adds an ElastiCache instance as a Valkey service. +func (s *ManagementService) addElastiCache(ctx context.Context, req *managementv1.AddElastiCacheServiceParams) (*managementv1.AddServiceResponse, error) { + ec := &managementv1.ElastiCacheServiceResult{} + + pmmAgentID := models.PMMServerAgentID + if req.GetPmmAgentId() != "" { + pmmAgentID = req.GetPmmAgentId() + } + + errTx := s.db.InTransactionContext(ctx, nil, func(tx *reform.TX) error { + if req.NodeName == "" { + req.NodeName = req.InstanceId + } + if req.ServiceName == "" { + req.ServiceName = req.InstanceId + } + + node, err := models.CreateNode(tx.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ + NodeName: req.NodeName, + NodeModel: req.NodeModel, + AZ: req.Az, + InstanceID: req.InstanceId, + Address: req.Address, + Region: &req.Region, + CustomLabels: req.CustomLabels, + }) + if err != nil { + return err + } + invNode, err := services.ToAPINode(node) + if err != nil { + return err + } + ec.Node = invNode.(*inventoryv1.RemoteElastiCacheNode) //nolint:forcetypeassert + + metricsMode, err := supportedMetricsMode(req.MetricsMode, pmmAgentID) + if err != nil { + return err + } + + service, err := models.AddNewService(tx.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ + ServiceName: req.ServiceName, + NodeID: node.NodeID, + Environment: req.Environment, + Cluster: req.Cluster, + ReplicationSet: req.ReplicationSet, + CustomLabels: req.CustomLabels, + Address: &req.Address, + Port: pointer.ToUint16(uint16(req.Port)), //nolint:gosec + }) + if err != nil { + return err + } + invService, err := services.ToAPIService(service) + if err != nil { + return err + } + ec.ValkeyService = invService.(*inventoryv1.ValkeyService) //nolint:forcetypeassert + + valkeyExporter, err := models.CreateAgent(tx.Querier, models.ValkeyExporterType, &models.CreateAgentParams{ + PMMAgentID: pmmAgentID, + ServiceID: service.ServiceID, + Username: req.Username, + Password: req.Password, + TLS: req.Tls, + TLSSkipVerify: req.TlsSkipVerify, + ExporterOptions: models.ExporterOptions{ + PushMetrics: isPushMode(metricsMode), + }, + }) + if err != nil { + return err + } + + if !req.SkipConnectionCheck { + if err = s.cc.CheckConnectionToService(ctx, tx.Querier, service, valkeyExporter); err != nil { + return err + } + if err = s.sib.GetInfoFromService(ctx, tx.Querier, service, valkeyExporter); err != nil { + return err + } + } + + invAgent, err := services.ToAPIAgent(tx.Querier, valkeyExporter) + if err != nil { + return err + } + ec.ValkeyExporter = invAgent.(*inventoryv1.ValkeyExporter) //nolint:forcetypeassert + + return nil + }) + + if errTx != nil { + return nil, errTx + } + + s.state.RequestStateUpdate(ctx, pmmAgentID) + + return &managementv1.AddServiceResponse{ + Service: &managementv1.AddServiceResponse_Elasticache{ + Elasticache: ec, + }, + }, nil +} diff --git a/managed/services/management/elasticache_discovery.go b/managed/services/management/elasticache_discovery.go new file mode 100644 index 00000000000..62d53be48be --- /dev/null +++ b/managed/services/management/elasticache_discovery.go @@ -0,0 +1,503 @@ +// Copyright (C) 2023 Percona LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +package management + +import ( + "context" + "fmt" + "net/http" + "sort" + "time" + + "github.com/AlekSi/pointer" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/config" + "github.com/aws/aws-sdk-go-v2/service/elasticache" + ectypes "github.com/aws/aws-sdk-go-v2/service/elasticache/types" + "github.com/sirupsen/logrus" + "golang.org/x/sync/errgroup" + "gopkg.in/reform.v1" + + "github.com/percona/pmm/managed/models" +) + +const ( + // How long to wait after startup before first discovery run. + elasticacheDiscoveryStartupDelay = 30 * time.Second + // How often to run the reconciliation loop. + elasticacheDiscoveryInterval = 5 * time.Minute + // Timeout for a single discovery cycle (all regions). + elasticacheDiscoveryTimeout = 60 * time.Second + // Tag that must be "true" on a replication group for it to be auto-added. + elasticacheTagKey = "pmm_enable" + elasticacheTagValue = "true" + // Label used to identify services managed by auto-discovery. + elasticacheManagedByLabel = "elasticache-autodiscovery" +) + +// ElastiCacheDiscovery is a background service that periodically discovers +// ElastiCache replication groups tagged with pmm_enable=true and reconciles +// them with the PMM inventory. +type ElastiCacheDiscovery struct { + db *reform.DB + state agentsStateUpdater + l *logrus.Entry +} + +// NewElastiCacheDiscovery creates a new ElastiCacheDiscovery service. +func NewElastiCacheDiscovery(db *reform.DB, state agentsStateUpdater) *ElastiCacheDiscovery { + return &ElastiCacheDiscovery{ + db: db, + state: state, + l: logrus.WithField("component", "elasticache-discovery"), + } +} + +// discoveredInstance holds info about an ElastiCache endpoint discovered from AWS. +type discoveredInstance struct { + Region string + AZ string + ClusterID string // ReplicationGroupId + NodeType string // CacheNodeType + Address string + Port int32 + Engine string // "redis" or "valkey" + TLS bool + Environment string // from AWS "Environment" tag + Role string // "primary", "reader", or "cluster" for cluster mode +} + +// Run starts the background discovery loop. It blocks until ctx is cancelled. +func (d *ElastiCacheDiscovery) Run(ctx context.Context) { + d.l.Info("Starting (waiting for initial delay)...") + select { + case <-time.After(elasticacheDiscoveryStartupDelay): + case <-ctx.Done(): + return + } + + d.l.Info("Started.") + ticker := time.NewTicker(elasticacheDiscoveryInterval) + defer ticker.Stop() + + for { + d.reconcile(ctx) + + select { + case <-ticker.C: + case <-ctx.Done(): + d.l.Info("Stopped.") + return + } + } +} + +// reconcile runs a single discovery + sync cycle. +func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { + d.l.Info("Running reconciliation...") + + settings, err := models.GetSettings(d.db.Querier) + if err != nil { + d.l.Warnf("Failed to get settings: %v", err) + return + } + + // Default to standard AWS partition if none configured. + partitions := settings.AWSPartitions + if len(partitions) == 0 { + partitions = []string{"aws"} + } + + regions := listElastiCacheRegions(partitions) + discovered, err := d.discoverTaggedInstances(ctx, regions) + if err != nil { + d.l.Warnf("Discovery failed: %v", err) + return + } + + managed, err := d.findManagedServices() + if err != nil { + d.l.Warnf("Failed to list managed services: %v", err) + return + } + + d.l.Infof("Discovered %d endpoint(s), PMM has %d managed service(s)", len(discovered), len(managed)) + + // Build maps keyed by address for diffing. + expectedByAddr := make(map[string]discoveredInstance, len(discovered)) + for _, inst := range discovered { + expectedByAddr[inst.Address] = inst + } + + managedByAddr := make(map[string]*models.Service, len(managed)) + for _, svc := range managed { + if svc.Address != nil { + managedByAddr[*svc.Address] = svc + } + } + + // Add missing. + var added int + for addr, inst := range expectedByAddr { + if _, exists := managedByAddr[addr]; exists { + continue + } + if err := d.addInstance(ctx, inst); err != nil { + d.l.Warnf("Failed to add %s (%s): %v", inst.ClusterID, addr, err) + continue + } + added++ + } + + // Remove stale. + var removed int + for addr, svc := range managedByAddr { + if _, exists := expectedByAddr[addr]; exists { + continue + } + if err := d.removeService(ctx, svc); err != nil { + d.l.Warnf("Failed to remove %s (%s): %v", svc.ServiceName, addr, err) + continue + } + removed++ + } + + unchanged := len(expectedByAddr) - added + d.l.Infof("Reconciliation complete: +%d added, -%d removed, =%d unchanged", added, removed, unchanged) +} + +// discoverTaggedInstances discovers ElastiCache replication groups across regions +// and filters to those tagged with pmm_enable=true. +func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regions []string) ([]discoveredInstance, error) { + cfg, err := config.LoadDefaultConfig(ctx, + config.WithHTTPClient(&http.Client{}), + ) + if err != nil { + return nil, fmt.Errorf("failed to load AWS config: %w", err) + } + + d.l.Debugf("Scanning %d region(s)", len(regions)) + + ctx, cancel := context.WithTimeout(ctx, elasticacheDiscoveryTimeout) + defer cancel() + + var wg errgroup.Group + results := make(chan discoveredInstance) + + for _, region := range regions { + wg.Go(func() error { + instances, err := d.discoverRegionTagged(ctx, cfg, region) + if err != nil { + d.l.Debugf("Region %s: %v", region, err) + return nil + } + if len(instances) > 0 { + d.l.Debugf("Region %s: found %d tagged endpoint(s)", region, len(instances)) + } + for _, inst := range instances { + results <- inst + } + return nil + }) + } + + go func() { + _ = wg.Wait() + close(results) + }() + + var discovered []discoveredInstance + for inst := range results { + discovered = append(discovered, inst) + } + + sort.Slice(discovered, func(i, j int) bool { + if discovered[i].Region != discovered[j].Region { + return discovered[i].Region < discovered[j].Region + } + return discovered[i].Address < discovered[j].Address + }) + + return discovered, nil +} + +// discoverRegionTagged returns ElastiCache replication groups in a region that are tagged pmm_enable=true. +func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws.Config, region string) ([]discoveredInstance, error) { + client := elasticache.NewFromConfig(cfg, func(o *elasticache.Options) { + o.Region = region + }) + + var instances []discoveredInstance + + paginator := elasticache.NewDescribeReplicationGroupsPaginator(client, &elasticache.DescribeReplicationGroupsInput{}) + for paginator.HasMorePages() { + page, err := paginator.NextPage(ctx) + if err != nil { + return nil, err + } + + for _, rg := range page.ReplicationGroups { + if rg.Status == nil || *rg.Status != "available" { + continue + } + + engine := pointer.GetString(rg.Engine) + if engine != "redis" && engine != "valkey" { + continue + } + + clusterName := pointer.GetString(rg.ReplicationGroupId) + + // Skip clusters with authentication enabled (no credentials support). + if rg.AuthTokenEnabled != nil && *rg.AuthTokenEnabled { + d.l.Debugf("Skipping %s: AUTH token enabled", clusterName) + continue + } + if len(rg.UserGroupIds) > 0 { + d.l.Debugf("Skipping %s: ACL user groups configured", clusterName) + continue + } + + // Check tags for pmm_enable=true and extract Environment. + tags := d.checkTags(ctx, client, rg) + if !tags.enabled { + continue + } + + nodeType := pointer.GetString(rg.CacheNodeType) + tls := rg.TransitEncryptionEnabled != nil && *rg.TransitEncryptionEnabled + + // Cluster Mode Enabled: use the ConfigurationEndpoint (covers all shards). + if rg.ClusterEnabled != nil && *rg.ClusterEnabled && rg.ConfigurationEndpoint != nil { + az := "" + if len(rg.NodeGroups) > 0 && len(rg.NodeGroups[0].NodeGroupMembers) > 0 { + az = pointer.GetString(rg.NodeGroups[0].NodeGroupMembers[0].PreferredAvailabilityZone) + } + + instances = append(instances, discoveredInstance{ + Region: region, + AZ: az, + ClusterID: clusterName, + NodeType: nodeType, + Address: pointer.GetString(rg.ConfigurationEndpoint.Address), + Port: pointer.GetInt32(rg.ConfigurationEndpoint.Port), + Engine: engine, + TLS: tls, + Environment: tags.environment, + Role: "cluster", + }) + continue + } + + // Cluster Mode Disabled: add primary (writer) and reader endpoints per shard. + for _, ng := range rg.NodeGroups { + az := "" + if len(ng.NodeGroupMembers) > 0 { + az = pointer.GetString(ng.NodeGroupMembers[0].PreferredAvailabilityZone) + } + + if ng.PrimaryEndpoint != nil { + instances = append(instances, discoveredInstance{ + Region: region, + AZ: az, + ClusterID: clusterName, + NodeType: nodeType, + Address: pointer.GetString(ng.PrimaryEndpoint.Address), + Port: pointer.GetInt32(ng.PrimaryEndpoint.Port), + Engine: engine, + TLS: tls, + Environment: tags.environment, + Role: "primary", + }) + } + + if ng.ReaderEndpoint != nil { + instances = append(instances, discoveredInstance{ + Region: region, + AZ: az, + ClusterID: clusterName, + NodeType: nodeType, + Address: pointer.GetString(ng.ReaderEndpoint.Address), + Port: pointer.GetInt32(ng.ReaderEndpoint.Port), + Engine: engine, + TLS: tls, + Environment: tags.environment, + Role: "reader", + }) + } + } + } + } + + return instances, nil +} + +// tagResult holds the result of a tag check. +type tagResult struct { + enabled bool + environment string +} + +// checkTags checks if a replication group has the pmm_enable=true tag and extracts the Environment tag. +func (d *ElastiCacheDiscovery) checkTags(ctx context.Context, client *elasticache.Client, rg ectypes.ReplicationGroup) tagResult { + if rg.ARN == nil { + return tagResult{} + } + + resp, err := client.ListTagsForResource(ctx, &elasticache.ListTagsForResourceInput{ + ResourceName: rg.ARN, + }) + if err != nil { + d.l.Debugf("Failed to list tags for %s: %v", pointer.GetString(rg.ReplicationGroupId), err) + return tagResult{} + } + + result := tagResult{} + for _, tag := range resp.TagList { + key := pointer.GetString(tag.Key) + value := pointer.GetString(tag.Value) + if key == elasticacheTagKey && value == elasticacheTagValue { + result.enabled = true + } + if key == "Environment" { + result.environment = value + } + } + return result +} + +// findManagedServices returns all Valkey services in the inventory that were added by auto-discovery. +func (d *ElastiCacheDiscovery) findManagedServices() ([]*models.Service, error) { + valkeyType := models.ValkeyServiceType + allServices, err := models.FindServices(d.db.Querier, models.ServiceFilters{ + ServiceType: &valkeyType, + }) + if err != nil { + return nil, err + } + + var managed []*models.Service + for _, svc := range allServices { + labels, err := svc.GetCustomLabels() + if err != nil { + continue + } + if labels["managed_by"] == elasticacheManagedByLabel { + managed = append(managed, svc) + } + } + return managed, nil +} + +// addInstance creates a RemoteElastiCacheNode + ValkeyService + ValkeyExporter for a discovered instance. +func (d *ElastiCacheDiscovery) addInstance(ctx context.Context, inst discoveredInstance) error { + serviceName := fmt.Sprintf("elasticache-%s", inst.ClusterID) + if inst.Role == "reader" { + serviceName = fmt.Sprintf("elasticache-%s-reader", inst.ClusterID) + } + d.l.Infof("ADD %s [%s] %s:%d (env=%s)", serviceName, inst.Role, inst.Address, inst.Port, inst.Environment) + + pmmAgentID := models.PMMServerAgentID + + return d.db.InTransactionContext(ctx, nil, func(tx *reform.TX) error { + node, err := models.CreateNode(tx.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ + NodeName: serviceName, + NodeModel: inst.NodeType, + AZ: inst.AZ, + InstanceID: inst.ClusterID, + Address: inst.Address, + Region: &inst.Region, + CustomLabels: map[string]string{ + "managed_by": elasticacheManagedByLabel, + "source": "elasticache", + }, + }) + if err != nil { + return fmt.Errorf("create node: %w", err) + } + + service, err := models.AddNewService(tx.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ + ServiceName: serviceName, + NodeID: node.NodeID, + Environment: inst.Environment, + Cluster: inst.ClusterID, + Address: &inst.Address, + Port: pointer.ToUint16(uint16(inst.Port)), //nolint:gosec + CustomLabels: map[string]string{ + "managed_by": elasticacheManagedByLabel, + "source": "elasticache", + "engine": inst.Engine, + "role": inst.Role, + }, + }) + if err != nil { + return fmt.Errorf("add service: %w", err) + } + + _, err = models.CreateAgent(tx.Querier, models.ValkeyExporterType, &models.CreateAgentParams{ + PMMAgentID: pmmAgentID, + ServiceID: service.ServiceID, + TLS: inst.TLS, + ExporterOptions: models.ExporterOptions{ + PushMetrics: true, + }, + }) + if err != nil { + return fmt.Errorf("create agent: %w", err) + } + + d.state.RequestStateUpdate(ctx, pmmAgentID) + return nil + }) +} + +// removeService removes a service, its agents, and its node. +func (d *ElastiCacheDiscovery) removeService(ctx context.Context, svc *models.Service) error { + d.l.Infof("DEL %s (%s)", svc.ServiceName, pointer.GetString(svc.Address)) + + return d.db.InTransactionContext(ctx, nil, func(tx *reform.TX) error { + agents, err := models.FindAgents(tx.Querier, models.AgentFilters{ServiceID: svc.ServiceID}) + if err != nil { + return err + } + for _, agent := range agents { + if _, err := models.RemoveAgent(tx.Querier, agent.AgentID, models.RemoveRestrict); err != nil { + return err + } + if agent.PMMAgentID != nil { + d.state.RequestStateUpdate(ctx, pointer.GetString(agent.PMMAgentID)) + } + } + + nodeID := svc.NodeID + + if err := models.RemoveService(tx.Querier, svc.ServiceID, models.RemoveCascade); err != nil { + return err + } + + node, err := models.FindNodeByID(tx.Querier, nodeID) + if err != nil { + return err + } + if node.NodeType == models.RemoteElastiCacheNodeType { + if err := models.RemoveNode(tx.Querier, node.NodeID, models.RemoveCascade); err != nil { + return err + } + } + + return nil + }) +} diff --git a/managed/services/management/service.go b/managed/services/management/service.go index b616154afb4..5dbfea7dec7 100644 --- a/managed/services/management/service.go +++ b/managed/services/management/service.go @@ -113,6 +113,8 @@ func (s *ManagementService) AddService(ctx context.Context, req *managementv1.Ad return s.addRDS(ctx, req.GetRds()) case *managementv1.AddServiceRequest_Valkey: return s.addValkey(ctx, req.GetValkey()) + case *managementv1.AddServiceRequest_Elasticache: + return s.addElastiCache(ctx, req.GetElasticache()) default: return nil, status.Error(codes.InvalidArgument, "invalid service type") } @@ -313,8 +315,8 @@ func (s *ManagementService) RemoveService(ctx context.Context, req *managementv1 return err } - // For RDS and Azure we also want to remove the node. - if node.NodeType == models.RemoteRDSNodeType || node.NodeType == models.RemoteAzureDatabaseNodeType { + // For RDS, Azure and ElastiCache we also want to remove the node. + if node.NodeType == models.RemoteRDSNodeType || node.NodeType == models.RemoteAzureDatabaseNodeType || node.NodeType == models.RemoteElastiCacheNodeType { agents, err = models.FindAgents(tx.Querier, models.AgentFilters{NodeID: node.NodeID}) if err != nil { return err From 9adfff5a8c2a4fcf2036d73b17f03829a8d3e793 Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Wed, 29 Apr 2026 15:51:04 +0200 Subject: [PATCH 02/15] Fix review issues: nil response, node compatibility, inventory cleanup - Fix nil response on empty discovery (return empty response, not nil) - Add RemoteElastiCacheNodeType to compatibleNodeAndAgent map - Add RemoteElastiCacheNodeType to inventory-layer RemoveService cleanup - Add instance_id field to AddRemoteElastiCacheNodeParams proto - Fix misleading "unchanged" count when add failures occur Co-Authored-By: Claude Opus 4.6 (1M context) --- api/inventory/v1/nodes.proto | 2 ++ managed/models/agent_helpers.go | 1 + managed/services/inventory/services.go | 4 ++-- managed/services/management/elasticache.go | 2 +- managed/services/management/elasticache_discovery.go | 7 ++++--- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/api/inventory/v1/nodes.proto b/api/inventory/v1/nodes.proto index 93807826c78..de3c5a71939 100644 --- a/api/inventory/v1/nodes.proto +++ b/api/inventory/v1/nodes.proto @@ -311,6 +311,8 @@ message AddRemoteElastiCacheNodeParams { string az = 5; // Custom user-assigned labels. map custom_labels = 6; + // AWS instance ID (replication group ID). + string instance_id = 7; } // Remove diff --git a/managed/models/agent_helpers.go b/managed/models/agent_helpers.go index 8796bfa0b34..1a09fff39bd 100644 --- a/managed/models/agent_helpers.go +++ b/managed/models/agent_helpers.go @@ -827,6 +827,7 @@ func compatibleNodeAndAgent(nodeType NodeType, agentType AgentType) bool { RemoteNodeType: ExternalExporterType, RemoteRDSNodeType: RDSExporterType, RemoteAzureDatabaseNodeType: AzureDatabaseExporterType, + RemoteElastiCacheNodeType: allowAll, } allowed, ok := allow[nodeType] diff --git a/managed/services/inventory/services.go b/managed/services/inventory/services.go index 4211b9b4587..3b5b83a69a7 100644 --- a/managed/services/inventory/services.go +++ b/managed/services/inventory/services.go @@ -333,8 +333,8 @@ func (ss *ServicesService) Remove(ctx context.Context, id string, force bool) er return err } - // For RDS and Azure remove also node. - if node.NodeType == models.RemoteRDSNodeType || node.NodeType == models.RemoteAzureDatabaseNodeType { + // For RDS, Azure and ElastiCache remove also node. + if node.NodeType == models.RemoteRDSNodeType || node.NodeType == models.RemoteAzureDatabaseNodeType || node.NodeType == models.RemoteElastiCacheNodeType { agents, err := models.FindAgents(tx.Querier, models.AgentFilters{NodeID: node.NodeID}) if err != nil { return err diff --git a/managed/services/management/elasticache.go b/managed/services/management/elasticache.go index 81af54cfbee..6002fc454fb 100644 --- a/managed/services/management/elasticache.go +++ b/managed/services/management/elasticache.go @@ -224,7 +224,7 @@ func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *manage return res, status.Error(codes.Unknown, err.Error()) } - return nil, err + return res, nil } // addElastiCache adds an ElastiCache instance as a Valkey service. diff --git a/managed/services/management/elasticache_discovery.go b/managed/services/management/elasticache_discovery.go index 62d53be48be..da36affb2d8 100644 --- a/managed/services/management/elasticache_discovery.go +++ b/managed/services/management/elasticache_discovery.go @@ -150,13 +150,14 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { } // Add missing. - var added int + var added, addFailed int for addr, inst := range expectedByAddr { if _, exists := managedByAddr[addr]; exists { continue } if err := d.addInstance(ctx, inst); err != nil { d.l.Warnf("Failed to add %s (%s): %v", inst.ClusterID, addr, err) + addFailed++ continue } added++ @@ -175,8 +176,8 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { removed++ } - unchanged := len(expectedByAddr) - added - d.l.Infof("Reconciliation complete: +%d added, -%d removed, =%d unchanged", added, removed, unchanged) + unchanged := len(expectedByAddr) - added - addFailed + d.l.Infof("Reconciliation complete: +%d added, -%d removed, =%d unchanged, %d failed", added, removed, unchanged, addFailed) } // discoverTaggedInstances discovers ElastiCache replication groups across regions From 8a1a3a9c9d8e4b3af117948f552c525ec30e1c51 Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Mon, 4 May 2026 09:43:20 +0200 Subject: [PATCH 03/15] chore: regenerate protobuf, swagger, and JSON client code Run make init && make gen to regenerate all derived files after ElastiCache auto-discovery changes. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../client/nodes_service/add_node_responses.go | 3 +++ api/inventory/v1/json/v1.json | 5 +++++ api/inventory/v1/nodes.pb.go | 17 ++++++++++++++--- api/inventory/v1/nodes.pb.validate.go | 2 ++ api/management/v1/service.pb.go | 4 ++-- api/swagger/swagger-dev.json | 5 +++++ api/swagger/swagger.json | 5 +++++ 7 files changed, 36 insertions(+), 5 deletions(-) diff --git a/api/inventory/v1/json/client/nodes_service/add_node_responses.go b/api/inventory/v1/json/client/nodes_service/add_node_responses.go index 69ee556e1d1..40d9d972f0f 100644 --- a/api/inventory/v1/json/client/nodes_service/add_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/add_node_responses.go @@ -1801,6 +1801,9 @@ type AddNodeParamsBodyRemoteElasticache struct { // Custom user-assigned labels. CustomLabels map[string]string `json:"custom_labels,omitempty"` + + // AWS instance ID (replication group ID). + InstanceID string `json:"instance_id,omitempty"` } // Validate validates this add node params body remote elasticache diff --git a/api/inventory/v1/json/v1.json b/api/inventory/v1/json/v1.json index e8208c834d1..88fd7c86679 100644 --- a/api/inventory/v1/json/v1.json +++ b/api/inventory/v1/json/v1.json @@ -12693,6 +12693,11 @@ "type": "string" }, "x-order": 5 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 6 } }, "x-order": 5 diff --git a/api/inventory/v1/nodes.pb.go b/api/inventory/v1/nodes.pb.go index ff36f1798c5..677e5bbd038 100644 --- a/api/inventory/v1/nodes.pb.go +++ b/api/inventory/v1/nodes.pb.go @@ -1888,7 +1888,9 @@ type AddRemoteElastiCacheNodeParams struct { // Node availability zone. Az string `protobuf:"bytes,5,opt,name=az,proto3" json:"az,omitempty"` // Custom user-assigned labels. - CustomLabels map[string]string `protobuf:"bytes,6,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + CustomLabels map[string]string `protobuf:"bytes,6,rep,name=custom_labels,json=customLabels,proto3" json:"custom_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + // AWS instance ID (replication group ID). + InstanceId string `protobuf:"bytes,7,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1965,6 +1967,13 @@ func (x *AddRemoteElastiCacheNodeParams) GetCustomLabels() map[string]string { return nil } +func (x *AddRemoteElastiCacheNodeParams) GetInstanceId() string { + if x != nil { + return x.InstanceId + } + return "" +} + type RemoveNodeRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Unique randomly generated instance identifier. @@ -2248,7 +2257,7 @@ const file_inventory_v1_nodes_proto_rawDesc = "" + "\rcustom_labels\x18\x06 \x03(\v28.inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntryR\fcustomLabels\x1a?\n" + "\x11CustomLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xdf\x02\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x80\x03\n" + "\x1eAddRemoteElastiCacheNodeParams\x12$\n" + "\tnode_name\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\bnodeName\x12!\n" + "\aaddress\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\aaddress\x12\x1d\n" + @@ -2256,7 +2265,9 @@ const file_inventory_v1_nodes_proto_rawDesc = "" + "node_model\x18\x03 \x01(\tR\tnodeModel\x12\x1f\n" + "\x06region\x18\x04 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06region\x12\x0e\n" + "\x02az\x18\x05 \x01(\tR\x02az\x12c\n" + - "\rcustom_labels\x18\x06 \x03(\v2>.inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntryR\fcustomLabels\x1a?\n" + + "\rcustom_labels\x18\x06 \x03(\v2>.inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntryR\fcustomLabels\x12\x1f\n" + + "\vinstance_id\x18\a \x01(\tR\n" + + "instanceId\x1a?\n" + "\x11CustomLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"K\n" + diff --git a/api/inventory/v1/nodes.pb.validate.go b/api/inventory/v1/nodes.pb.validate.go index 7453876d1a2..f9394bc742b 100644 --- a/api/inventory/v1/nodes.pb.validate.go +++ b/api/inventory/v1/nodes.pb.validate.go @@ -3076,6 +3076,8 @@ func (m *AddRemoteElastiCacheNodeParams) validate(all bool) error { // no validation rules for CustomLabels + // no validation rules for InstanceId + if len(errors) > 0 { return AddRemoteElastiCacheNodeParamsMultiError(errors) } diff --git a/api/management/v1/service.pb.go b/api/management/v1/service.pb.go index 7ddaed16224..bcd139244d9 100644 --- a/api/management/v1/service.pb.go +++ b/api/management/v1/service.pb.go @@ -884,7 +884,7 @@ var File_management_v1_service_proto protoreflect.FileDescriptor const file_management_v1_service_proto_rawDesc = "" + "\n" + - "\x1bmanagement/v1/service.proto\x12\rmanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1binventory/v1/services.proto\x1a\x19management/v1/agent.proto\x1a\x1emanagement/v1/annotation.proto\x1a\x19management/v1/azure.proto\x1a\x1cmanagement/v1/external.proto\x1a\x1bmanagement/v1/haproxy.proto\x1a\x1bmanagement/v1/mongodb.proto\x1a\x19management/v1/mysql.proto\x1a\x18management/v1/node.proto\x1a\x1emanagement/v1/postgresql.proto\x1a\x1cmanagement/v1/proxysql.proto\x1a\x1fmanagement/v1/elasticache.proto\x1a\x17management/v1/rds.proto\x1a\x1amanagement/v1/valkey.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x88\x05\n" + + "\x1bmanagement/v1/service.proto\x12\rmanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1binventory/v1/services.proto\x1a\x19management/v1/agent.proto\x1a\x1emanagement/v1/annotation.proto\x1a\x19management/v1/azure.proto\x1a\x1fmanagement/v1/elasticache.proto\x1a\x1cmanagement/v1/external.proto\x1a\x1bmanagement/v1/haproxy.proto\x1a\x1bmanagement/v1/mongodb.proto\x1a\x19management/v1/mysql.proto\x1a\x18management/v1/node.proto\x1a\x1emanagement/v1/postgresql.proto\x1a\x1cmanagement/v1/proxysql.proto\x1a\x17management/v1/rds.proto\x1a\x1amanagement/v1/valkey.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x88\x05\n" + "\x11AddServiceRequest\x12<\n" + "\x05mysql\x18\x01 \x01(\v2$.management.v1.AddMySQLServiceParamsH\x00R\x05mysql\x12B\n" + "\amongodb\x18\x02 \x01(\v2&.management.v1.AddMongoDBServiceParamsH\x00R\amongodb\x12K\n" + @@ -1115,6 +1115,7 @@ func file_management_v1_service_proto_init() { file_management_v1_agent_proto_init() file_management_v1_annotation_proto_init() file_management_v1_azure_proto_init() + file_management_v1_elasticache_proto_init() file_management_v1_external_proto_init() file_management_v1_haproxy_proto_init() file_management_v1_mongodb_proto_init() @@ -1122,7 +1123,6 @@ func file_management_v1_service_proto_init() { file_management_v1_node_proto_init() file_management_v1_postgresql_proto_init() file_management_v1_proxysql_proto_init() - file_management_v1_elasticache_proto_init() file_management_v1_rds_proto_init() file_management_v1_valkey_proto_init() file_management_v1_service_proto_msgTypes[0].OneofWrappers = []any{ diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index cadae39c8d6..a5cee700055 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -17966,6 +17966,11 @@ "type": "string" }, "x-order": 5 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 6 } }, "x-order": 5 diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index ed10e267dcc..6cc1feccc7e 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -17008,6 +17008,11 @@ "type": "string" }, "x-order": 5 + }, + "instance_id": { + "description": "AWS instance ID (replication group ID).", + "type": "string", + "x-order": 6 } }, "x-order": 5 From fc636162fd562878ed8019f5a2c754faba372172 Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Mon, 4 May 2026 12:28:26 +0200 Subject: [PATCH 04/15] test: add unit tests for ElastiCache node, service, and discovery Cover uncovered lines flagged by Codecov: - nodes.go: AddRemoteElastiCacheNode lifecycle and uniqueness - service.go: RemoveService/ListServices with ElastiCache node type - elasticache.go: region listing and engine map - elasticache_discovery.go: findManagedServices, addInstance, removeService Co-Authored-By: Claude Opus 4.6 (1M context) --- managed/services/inventory/nodes_test.go | 97 ++++++++- .../management/elasticache_discovery_test.go | 189 ++++++++++++++++++ .../services/management/elasticache_test.go | 76 +++++++ managed/services/management/service_test.go | 86 ++++++++ 4 files changed, 447 insertions(+), 1 deletion(-) create mode 100644 managed/services/management/elasticache_discovery_test.go create mode 100644 managed/services/management/elasticache_test.go diff --git a/managed/services/inventory/nodes_test.go b/managed/services/inventory/nodes_test.go index fee6179a00a..09fbc610c3f 100644 --- a/managed/services/inventory/nodes_test.go +++ b/managed/services/inventory/nodes_test.go @@ -207,6 +207,7 @@ func TestAddNode(t *testing.T) { nodeID3 = "00000000-0000-4000-8000-000000000007" nodeID4 = "00000000-0000-4000-8000-000000000008" nodeID5 = "00000000-0000-4000-8000-000000000009" + nodeID6 = "00000000-0000-4000-8000-00000000000a" ) _, _, ns, teardown, ctx, _ := setup(t) t.Cleanup(func() { teardown(t) }) @@ -317,13 +318,33 @@ func TestAddNode(t *testing.T) { require.NoError(t, err) assert.Equal(t, expectedNode5, addNodeResponse.GetRemoteRds()) + expectedNode6 := &inventoryv1.RemoteElastiCacheNode{ + NodeId: nodeID6, + NodeName: "test-name6", + Region: "test-region", + Az: "test-region-az", + Address: "test6", + } + addNodeResponse, err = ns.AddNode(ctx, &inventoryv1.AddNodeRequest{ + Node: &inventoryv1.AddNodeRequest_RemoteElasticache{ + RemoteElasticache: &inventoryv1.AddRemoteElastiCacheNodeParams{ + NodeName: "test-name6", + Region: "test-region", + Az: "test-region-az", + Address: "test6", + }, + }, + }) + require.NoError(t, err) + assert.Equal(t, expectedNode6, addNodeResponse.GetRemoteElasticache()) + getNodeResponse, err := ns.Get(ctx, &inventoryv1.GetNodeRequest{NodeId: nodeID1}) require.NoError(t, err) assert.Equal(t, expectedNode1, getNodeResponse) nodesResponse, err := ns.List(ctx, models.NodeFilters{}) require.NoError(t, err) - require.Len(t, nodesResponse, 6) + require.Len(t, nodesResponse, 7) assert.Equal(t, expectedNode1, nodesResponse[0]) err = ns.Remove(ctx, nodeID1, false) @@ -333,6 +354,80 @@ func TestAddNode(t *testing.T) { assert.Nil(t, getNodeResponse) }) + t.Run("AddRemoteElastiCacheNode", func(t *testing.T) { + const nodeID = "00000000-0000-4000-8000-000000000005" + _, _, ns, teardown, ctx, _ := setup(t) + t.Cleanup(func() { teardown(t) }) + + addNodeResponse, err := ns.AddNode(ctx, &inventoryv1.AddNodeRequest{ + Node: &inventoryv1.AddNodeRequest_RemoteElasticache{ + RemoteElasticache: &inventoryv1.AddRemoteElastiCacheNodeParams{ + NodeName: "test-elasticache", + Address: "my-cluster.abc123.use1.cache.amazonaws.com", + Region: "us-east-1", + Az: "us-east-1a", + NodeModel: "cache.r6g.large", + CustomLabels: map[string]string{ + "env": "production", + }, + }, + }, + }) + require.NoError(t, err) + + expectedNode := &inventoryv1.RemoteElastiCacheNode{ + NodeId: nodeID, + NodeName: "test-elasticache", + Address: "my-cluster.abc123.use1.cache.amazonaws.com", + Region: "us-east-1", + Az: "us-east-1a", + NodeModel: "cache.r6g.large", + CustomLabels: map[string]string{ + "env": "production", + }, + } + assert.Equal(t, expectedNode, addNodeResponse.GetRemoteElasticache()) + + getNodeResponse, err := ns.Get(ctx, &inventoryv1.GetNodeRequest{NodeId: nodeID}) + require.NoError(t, err) + assert.Equal(t, expectedNode, getNodeResponse) + + err = ns.Remove(ctx, nodeID, false) + require.NoError(t, err) + + getNodeResponse, err = ns.Get(ctx, &inventoryv1.GetNodeRequest{NodeId: nodeID}) + tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf("Node with ID %q not found.", nodeID)), err) + assert.Nil(t, getNodeResponse) + }) + + t.Run("AddRemoteElastiCacheNodeNonUnique", func(t *testing.T) { + _, _, ns, teardown, ctx, _ := setup(t) + t.Cleanup(func() { teardown(t) }) + + _, err := ns.AddNode(ctx, &inventoryv1.AddNodeRequest{ + Node: &inventoryv1.AddNodeRequest_RemoteElasticache{ + RemoteElasticache: &inventoryv1.AddRemoteElastiCacheNodeParams{ + NodeName: "test1", + Region: "test-region", + Address: "test-address", + }, + }, + }) + require.NoError(t, err) + + _, err = ns.AddNode(ctx, &inventoryv1.AddNodeRequest{ + Node: &inventoryv1.AddNodeRequest_RemoteElasticache{ + RemoteElasticache: &inventoryv1.AddRemoteElastiCacheNodeParams{ + NodeName: "test2", + Region: "test-region", + Address: "test-address", + }, + }, + }) + expected := status.New(codes.AlreadyExists, `Node with address "test-address" and region "test-region" already exists.`) + tests.AssertGRPCError(t, expected, err) + }) + t.Run("AddRemoteRDSNodeNonUnique", func(t *testing.T) { _, _, ns, teardown, ctx, _ := setup(t) t.Cleanup(func() { teardown(t) }) diff --git a/managed/services/management/elasticache_discovery_test.go b/managed/services/management/elasticache_discovery_test.go new file mode 100644 index 00000000000..e2ababde774 --- /dev/null +++ b/managed/services/management/elasticache_discovery_test.go @@ -0,0 +1,189 @@ +// Copyright (C) 2023 Percona LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +package management + +import ( + "context" + "testing" + + "github.com/AlekSi/pointer" + "github.com/google/uuid" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "gopkg.in/reform.v1" + "gopkg.in/reform.v1/dialects/postgresql" + + "github.com/percona/pmm/managed/models" + "github.com/percona/pmm/managed/utils/testdb" + "github.com/percona/pmm/managed/utils/tests" + "github.com/percona/pmm/utils/logger" +) + +func TestElastiCacheDiscovery(t *testing.T) { + t.Run("FindManagedServices", func(t *testing.T) { + t.Run("NoServices", func(t *testing.T) { + _ = logger.Set(t.Context(), t.Name()) + uuid.SetRand(&tests.IDReader{}) + t.Cleanup(func() { uuid.SetRand(nil) }) + + sqlDB := testdb.Open(t, models.SetupFixtures, nil) + t.Cleanup(func() { require.NoError(t, sqlDB.Close()) }) + db := reform.NewDB(sqlDB, postgresql.Dialect, reform.NewPrintfLogger(t.Logf)) + + state := &mockAgentsStateUpdater{} + state.Test(t) + t.Cleanup(func() { state.AssertExpectations(t) }) + + d := NewElastiCacheDiscovery(db, state) + managed, err := d.findManagedServices() + require.NoError(t, err) + assert.Empty(t, managed) + }) + + t.Run("OnlyManagedServicesReturned", func(t *testing.T) { + ctx := logger.Set(t.Context(), t.Name()) + _ = ctx + uuid.SetRand(&tests.IDReader{}) + t.Cleanup(func() { uuid.SetRand(nil) }) + + sqlDB := testdb.Open(t, models.SetupFixtures, nil) + t.Cleanup(func() { require.NoError(t, sqlDB.Close()) }) + db := reform.NewDB(sqlDB, postgresql.Dialect, reform.NewPrintfLogger(t.Logf)) + + state := &mockAgentsStateUpdater{} + state.Test(t) + t.Cleanup(func() { state.AssertExpectations(t) }) + + // Create a node for the services. + node, err := models.CreateNode(db.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ + NodeName: "test-node", + Address: "test-address", + Region: pointer.ToString("us-east-1"), + }) + require.NoError(t, err) + + // Create a managed Valkey service (with managed_by label). + _, err = models.AddNewService(db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ + ServiceName: "managed-valkey", + NodeID: node.NodeID, + Address: pointer.ToString("managed.cache.amazonaws.com"), + Port: pointer.ToUint16(6379), + CustomLabels: map[string]string{ + "managed_by": elasticacheManagedByLabel, + "source": "elasticache", + }, + }) + require.NoError(t, err) + + // Create a non-managed Valkey service (no managed_by label). + _, err = models.AddNewService(db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ + ServiceName: "manual-valkey", + NodeID: node.NodeID, + Address: pointer.ToString("manual.cache.amazonaws.com"), + Port: pointer.ToUint16(6380), + }) + require.NoError(t, err) + + d := NewElastiCacheDiscovery(db, state) + managed, err := d.findManagedServices() + require.NoError(t, err) + require.Len(t, managed, 1) + assert.Equal(t, "managed-valkey", managed[0].ServiceName) + }) + }) + + t.Run("AddAndRemoveInstance", func(t *testing.T) { + ctx := logger.Set(t.Context(), t.Name()) + uuid.SetRand(&tests.IDReader{}) + t.Cleanup(func() { uuid.SetRand(nil) }) + + sqlDB := testdb.Open(t, models.SetupFixtures, nil) + t.Cleanup(func() { require.NoError(t, sqlDB.Close()) }) + db := reform.NewDB(sqlDB, postgresql.Dialect, reform.NewPrintfLogger(t.Logf)) + + state := &mockAgentsStateUpdater{} + state.Test(t) + t.Cleanup(func() { state.AssertExpectations(t) }) + + d := NewElastiCacheDiscovery(db, state) + + // Add an instance. + state.On("RequestStateUpdate", ctx, models.PMMServerAgentID) + inst := discoveredInstance{ + Region: "us-east-1", + AZ: "us-east-1a", + ClusterID: "my-cluster", + NodeType: "cache.r6g.large", + Address: "my-cluster.abc123.use1.cache.amazonaws.com", + Port: 6379, + Engine: "valkey", + TLS: false, + Environment: "production", + Role: "primary", + } + err := d.addInstance(ctx, inst) + require.NoError(t, err) + + // Verify a managed service was created. + managed, err := d.findManagedServices() + require.NoError(t, err) + require.Len(t, managed, 1) + assert.Equal(t, "elasticache-my-cluster", managed[0].ServiceName) + assert.Equal(t, "my-cluster.abc123.use1.cache.amazonaws.com", pointer.GetString(managed[0].Address)) + + // Remove the service. + err = d.removeService(ctx, managed[0]) + require.NoError(t, err) + + // Verify it's gone. + managed, err = d.findManagedServices() + require.NoError(t, err) + assert.Empty(t, managed) + }) + + t.Run("AddReaderInstance", func(t *testing.T) { + ctx := logger.Set(context.Background(), t.Name()) + uuid.SetRand(&tests.IDReader{}) + t.Cleanup(func() { uuid.SetRand(nil) }) + + sqlDB := testdb.Open(t, models.SetupFixtures, nil) + t.Cleanup(func() { require.NoError(t, sqlDB.Close()) }) + db := reform.NewDB(sqlDB, postgresql.Dialect, reform.NewPrintfLogger(t.Logf)) + + state := &mockAgentsStateUpdater{} + state.Test(t) + t.Cleanup(func() { state.AssertExpectations(t) }) + + d := NewElastiCacheDiscovery(db, state) + + state.On("RequestStateUpdate", ctx, models.PMMServerAgentID) + inst := discoveredInstance{ + Region: "us-east-1", + ClusterID: "my-cluster", + Address: "my-cluster-ro.abc123.use1.cache.amazonaws.com", + Port: 6379, + Engine: "redis", + Role: "reader", + } + err := d.addInstance(ctx, inst) + require.NoError(t, err) + + managed, err := d.findManagedServices() + require.NoError(t, err) + require.Len(t, managed, 1) + assert.Equal(t, "elasticache-my-cluster-reader", managed[0].ServiceName) + }) +} diff --git a/managed/services/management/elasticache_test.go b/managed/services/management/elasticache_test.go new file mode 100644 index 00000000000..cd7db494226 --- /dev/null +++ b/managed/services/management/elasticache_test.go @@ -0,0 +1,76 @@ +// Copyright (C) 2023 Percona LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +package management + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + managementv1 "github.com/percona/pmm/api/management/v1" +) + +func TestListElastiCacheRegions(t *testing.T) { + t.Run("DefaultPartition", func(t *testing.T) { + regions := listElastiCacheRegions([]string{"aws"}) + require.NotEmpty(t, regions) + assert.Contains(t, regions, "us-east-1") + assert.Contains(t, regions, "eu-central-1") + }) + + t.Run("GovCloudPartition", func(t *testing.T) { + regions := listElastiCacheRegions([]string{"aws-us-gov"}) + require.NotEmpty(t, regions) + assert.Contains(t, regions, "us-gov-west-1") + }) + + t.Run("MultiplePartitions", func(t *testing.T) { + regions := listElastiCacheRegions([]string{"aws", "aws-cn"}) + require.NotEmpty(t, regions) + assert.Contains(t, regions, "us-east-1") + assert.Contains(t, regions, "cn-north-1") + }) + + t.Run("EmptyPartitions", func(t *testing.T) { + regions := listElastiCacheRegions([]string{}) + assert.Empty(t, regions) + }) + + t.Run("UnknownPartition", func(t *testing.T) { + regions := listElastiCacheRegions([]string{"unknown"}) + assert.Empty(t, regions) + }) +} + +func TestElastiCacheEngineMap(t *testing.T) { + t.Run("Redis", func(t *testing.T) { + engine, ok := elasticacheEngines["redis"] + assert.True(t, ok) + assert.Equal(t, managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_REDIS, engine) + }) + + t.Run("Valkey", func(t *testing.T) { + engine, ok := elasticacheEngines["valkey"] + assert.True(t, ok) + assert.Equal(t, managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_VALKEY, engine) + }) + + t.Run("UnsupportedEngine", func(t *testing.T) { + _, ok := elasticacheEngines["memcached"] + assert.False(t, ok) + }) +} diff --git a/managed/services/management/service_test.go b/managed/services/management/service_test.go index 9cff2574a6c..88122e83266 100644 --- a/managed/services/management/service_test.go +++ b/managed/services/management/service_test.go @@ -273,6 +273,48 @@ func TestServiceService(t *testing.T) { _, err = models.FindNodeByID(s.db.Querier, node.NodeID) tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Node with ID "%s" not found.`, node.NodeID)), err) }) + + t.Run("ElastiCache", func(t *testing.T) { + ctx, s, teardown, _ := setup(t) + defer teardown(t) + + node, err := models.CreateNode(s.db.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ + NodeName: "test-elasticache", + Address: "test-address", + Region: pointer.ToString("us-east-1"), + }) + require.NoError(t, err) + + service, err := models.AddNewService(s.db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ + ServiceName: "test-valkey", + NodeID: node.NodeID, + Address: pointer.ToString("test-address"), + Port: pointer.ToUint16(6379), + }) + require.NoError(t, err) + + pmmAgent, err := models.CreatePMMAgent(s.db.Querier, models.PMMServerNodeID, nil) + require.NoError(t, err) + + valkeyExporter, err := models.CreateAgent(s.db.Querier, models.ValkeyExporterType, &models.CreateAgentParams{ + PMMAgentID: pmmAgent.AgentID, + ServiceID: service.ServiceID, + }) + require.NoError(t, err) + + s.state.(*mockAgentsStateUpdater).On("RequestStateUpdate", ctx, pmmAgent.AgentID) + _, err = s.RemoveService(ctx, &managementv1.RemoveServiceRequest{ServiceId: service.ServiceName, ServiceType: inventoryv1.ServiceType_SERVICE_TYPE_VALKEY_SERVICE}) + assert.NoError(t, err) + + _, err = models.FindServiceByID(s.db.Querier, service.ServiceID) + tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Service with ID "%s" not found.`, service.ServiceID)), err) + + _, err = models.FindAgentByID(s.db.Querier, valkeyExporter.AgentID) + tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Agent with ID %s not found.`, valkeyExporter.AgentID)), err) + + _, err = models.FindNodeByID(s.db.Querier, node.NodeID) + tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Node with ID "%s" not found.`, node.NodeID)), err) + }) }) t.Run("List", func(t *testing.T) { @@ -404,6 +446,50 @@ func TestServiceService(t *testing.T) { assert.Len(t, response.Services[1].Agents, 2) }) + t.Run("ElastiCache", func(t *testing.T) { + ctx, s, teardown, _ := setup(t) + t.Cleanup(func() { teardown(t) }) + + node, err := models.CreateNode(s.db.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ + NodeName: "test-elasticache", + Address: "test-address", + Region: pointer.ToString("us-east-1"), + }) + require.NoError(t, err) + + service, err := models.AddNewService(s.db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ + ServiceName: "test-valkey", + NodeID: node.NodeID, + Address: pointer.ToString("test-address"), + Port: pointer.ToUint16(6379), + }) + require.NoError(t, err) + + pmmAgent, err := models.CreatePMMAgent(s.db.Querier, models.PMMServerNodeID, nil) + require.NoError(t, err) + + valkeyExporter, err := models.CreateAgent(s.db.Querier, models.ValkeyExporterType, &models.CreateAgentParams{ + PMMAgentID: pmmAgent.AgentID, + ServiceID: service.ServiceID, + }) + require.NoError(t, err) + + s.vmClient.(*mockVictoriaMetricsClient).On("Query", ctx, mock.Anything, mock.Anything).Return(model.Vector{}, nil, nil).Once() + s.r.(*mockAgentsRegistry).On("IsConnected", models.PMMServerAgentID).Return(true).Once() + s.r.(*mockAgentsRegistry).On("IsConnected", pmmAgent.AgentID).Return(true).Once() + s.r.(*mockAgentsRegistry).On("IsConnected", pgExporterID).Return(false).Once() + s.r.(*mockAgentsRegistry).On("IsConnected", pgStatStatementID).Return(false).Once() + s.r.(*mockAgentsRegistry).On("IsConnected", PMMAgentID).Return(false) + s.r.(*mockAgentsRegistry).On("IsConnected", valkeyExporter.AgentID).Return(false).Once() + + response, err := s.ListServices(ctx, &managementv1.ListServicesRequest{}) + + require.NoError(t, err) + assert.Len(t, response.Services, 2) // PMM Server PostgreSQL service, Valkey service + assert.Len(t, response.Services[0].Agents, 4) + assert.Len(t, response.Services[1].Agents, 1) + }) + t.Run("Azure", func(t *testing.T) { ctx, s, teardown, _ := setup(t) t.Cleanup(func() { teardown(t) }) From db23fba9b83ade001c61d7cb456b8a4c43ca7f4f Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Mon, 4 May 2026 13:19:07 +0200 Subject: [PATCH 05/15] fix: align struct fields in nodes_test.go for gofumpt Co-Authored-By: Claude Opus 4.6 (1M context) --- managed/services/inventory/nodes_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/managed/services/inventory/nodes_test.go b/managed/services/inventory/nodes_test.go index 09fbc610c3f..f74866b8aff 100644 --- a/managed/services/inventory/nodes_test.go +++ b/managed/services/inventory/nodes_test.go @@ -362,10 +362,10 @@ func TestAddNode(t *testing.T) { addNodeResponse, err := ns.AddNode(ctx, &inventoryv1.AddNodeRequest{ Node: &inventoryv1.AddNodeRequest_RemoteElasticache{ RemoteElasticache: &inventoryv1.AddRemoteElastiCacheNodeParams{ - NodeName: "test-elasticache", - Address: "my-cluster.abc123.use1.cache.amazonaws.com", - Region: "us-east-1", - Az: "us-east-1a", + NodeName: "test-elasticache", + Address: "my-cluster.abc123.use1.cache.amazonaws.com", + Region: "us-east-1", + Az: "us-east-1a", NodeModel: "cache.r6g.large", CustomLabels: map[string]string{ "env": "production", From f4f6a6865610853115afe060262f15a37652cb2f Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Tue, 5 May 2026 16:18:03 +0200 Subject: [PATCH 06/15] chore: regenerate protobuf, swagger, and JSON client code Regenerated after rebase onto latest v3 to align with updated protoc tooling and resolve generated file conflicts. Co-Authored-By: Claude Opus 4.6 (1M context) --- api/accesscontrol/v1beta1/accesscontrol.pb.go | 46 ++- .../v1beta1/accesscontrol.pb.validate.go | 47 ++-- .../v1beta1/accesscontrol_grpc.pb.go | 7 - .../assign_roles_parameters.go | 2 + .../assign_roles_responses.go | 10 + .../create_role_parameters.go | 2 + .../create_role_responses.go | 11 + .../delete_role_parameters.go | 3 + .../delete_role_responses.go | 9 + .../get_role_parameters.go | 2 + .../get_role_responses.go | 10 + .../list_roles_parameters.go | 1 + .../list_roles_responses.go | 14 + .../set_default_role_parameters.go | 2 + .../set_default_role_responses.go | 10 + .../update_role_parameters.go | 2 + .../update_role_responses.go | 10 + api/actions/v1/actions.pb.go | 84 +++--- api/actions/v1/actions.pb.validate.go | 96 +++---- api/actions/v1/actions_grpc.pb.go | 4 - .../cancel_action_parameters.go | 2 + .../cancel_action_responses.go | 10 + .../actions_service/get_action_parameters.go | 2 + .../actions_service/get_action_responses.go | 10 + .../start_pt_summary_action_parameters.go | 2 + .../start_pt_summary_action_responses.go | 11 + .../start_service_action_parameters.go | 2 + .../start_service_action_responses.go | 59 ++++ api/advisors/v1/advisors.pb.go | 67 ++--- api/advisors/v1/advisors.pb.validate.go | 58 ++-- api/advisors/v1/advisors_grpc.pb.go | 6 - .../change_advisor_checks_parameters.go | 2 + .../change_advisor_checks_responses.go | 14 + .../get_failed_checks_parameters.go | 5 + .../get_failed_checks_responses.go | 14 + .../list_advisor_checks_parameters.go | 1 + .../list_advisor_checks_responses.go | 14 + .../list_advisors_parameters.go | 1 + .../list_advisors_responses.go | 18 ++ .../list_failed_services_parameters.go | 1 + .../list_failed_services_responses.go | 14 + .../start_advisor_checks_parameters.go | 2 + .../start_advisor_checks_responses.go | 10 + api/agent/pb/agent.pb.go | 9 +- api/agent/pb/agent_grpc.pb.go | 4 +- api/agent/v1/agent.pb.go | 265 +++++++++--------- api/agent/v1/agent.pb.validate.go | 259 ++++++----------- api/agent/v1/agent_grpc.pb.go | 1 - api/agent/v1/collector.pb.go | 39 ++- api/agent/v1/collector.pb.validate.go | 18 +- api/agentlocal/v1/agentlocal.pb.go | 39 ++- api/agentlocal/v1/agentlocal.pb.validate.go | 18 +- api/agentlocal/v1/agentlocal_grpc.pb.go | 2 - .../agent_local_service/reload_parameters.go | 2 + .../agent_local_service/reload_responses.go | 9 + .../agent_local_service/status2_parameters.go | 3 + .../agent_local_service/status2_responses.go | 16 ++ .../agent_local_service/status_parameters.go | 2 + .../agent_local_service/status_responses.go | 17 ++ api/alerting/v1/alerting.pb.go | 75 +++-- api/alerting/v1/alerting.pb.validate.go | 55 ++-- api/alerting/v1/alerting_grpc.pb.go | 5 - .../create_rule_parameters.go | 2 + .../alerting_service/create_rule_responses.go | 18 ++ .../create_template_parameters.go | 2 + .../create_template_responses.go | 10 + .../delete_template_parameters.go | 2 + .../delete_template_responses.go | 9 + .../list_templates_parameters.go | 5 + .../list_templates_responses.go | 24 ++ .../update_template_parameters.go | 2 + .../update_template_responses.go | 10 + api/alerting/v1/params.pb.go | 18 +- api/backup/v1/artifacts.pb.go | 44 ++- api/backup/v1/artifacts.pb.validate.go | 24 +- api/backup/v1/backup.pb.go | 75 +++-- api/backup/v1/backup.pb.validate.go | 45 +-- api/backup/v1/backup_grpc.pb.go | 10 - api/backup/v1/common.pb.go | 32 +-- api/backup/v1/common.pb.validate.go | 12 +- api/backup/v1/errors.pb.go | 20 +- api/backup/v1/errors.pb.validate.go | 3 +- .../change_scheduled_backup_parameters.go | 2 + .../change_scheduled_backup_responses.go | 10 + .../delete_artifact_parameters.go | 3 + .../delete_artifact_responses.go | 9 + .../backup_service/get_logs_parameters.go | 4 + .../backup_service/get_logs_responses.go | 14 + ...artifact_compatible_services_parameters.go | 2 + ..._artifact_compatible_services_responses.go | 18 ++ .../list_artifacts_parameters.go | 1 + .../list_artifacts_responses.go | 24 ++ .../list_pitr_timeranges_parameters.go | 2 + .../list_pitr_timeranges_responses.go | 14 + .../list_scheduled_backups_parameters.go | 1 + .../list_scheduled_backups_responses.go | 14 + .../remove_scheduled_backup_parameters.go | 2 + .../remove_scheduled_backup_responses.go | 9 + .../schedule_backup_parameters.go | 2 + .../schedule_backup_responses.go | 11 + .../backup_service/start_backup_parameters.go | 2 + .../backup_service/start_backup_responses.go | 11 + .../add_location_parameters.go | 2 + .../add_location_responses.go | 15 + .../change_location_parameters.go | 2 + .../change_location_responses.go | 14 + .../list_locations_parameters.go | 1 + .../list_locations_responses.go | 18 ++ .../remove_location_parameters.go | 3 + .../remove_location_responses.go | 9 + .../test_location_config_parameters.go | 2 + .../test_location_config_responses.go | 14 + .../get_logs_mixin5_parameters.go | 4 + .../get_logs_mixin5_responses.go | 14 + .../list_restores_parameters.go | 1 + .../list_restores_responses.go | 14 + .../restore_backup_parameters.go | 2 + .../restore_backup_responses.go | 11 + api/backup/v1/locations.pb.go | 45 ++- api/backup/v1/locations.pb.validate.go | 39 +-- api/backup/v1/locations_grpc.pb.go | 5 - api/backup/v1/restores.pb.go | 40 ++- api/backup/v1/restores.pb.validate.go | 21 +- api/backup/v1/restores_grpc.pb.go | 3 - api/common/common.pb.go | 20 +- api/common/common.pb.validate.go | 6 +- api/common/metrics_resolutions.pb.go | 20 +- api/common/metrics_resolutions.pb.validate.go | 3 +- api/dump/v1beta1/dump.pb.go | 51 ++-- api/dump/v1beta1/dump.pb.validate.go | 39 +-- api/dump/v1beta1/dump_grpc.pb.go | 5 - .../dump_service/delete_dump_parameters.go | 2 + .../dump_service/delete_dump_responses.go | 10 + .../dump_service/get_dump_logs_parameters.go | 4 + .../dump_service/get_dump_logs_responses.go | 14 + .../dump_service/list_dumps_parameters.go | 1 + .../dump_service/list_dumps_responses.go | 14 + .../dump_service/start_dump_parameters.go | 2 + .../dump_service/start_dump_responses.go | 11 + .../dump_service/upload_dump_parameters.go | 2 + .../dump_service/upload_dump_responses.go | 12 + api/extensions/v1/redact.pb.go | 20 +- api/ha/v1beta1/ha.pb.go | 30 +- api/ha/v1beta1/ha.pb.validate.go | 15 +- api/ha/v1beta1/ha_grpc.pb.go | 2 - .../ha_service/list_nodes_parameters.go | 1 + .../client/ha_service/list_nodes_responses.go | 14 + .../client/ha_service/status_parameters.go | 1 + .../client/ha_service/status_responses.go | 10 + api/inventory/v1/agent_status.pb.go | 16 +- api/inventory/v1/agents.pb.go | 249 ++++++++-------- api/inventory/v1/agents.pb.validate.go | 239 +++++++--------- api/inventory/v1/agents_grpc.pb.go | 6 - .../agents_service/add_agent_parameters.go | 2 + .../agents_service/add_agent_responses.go | 101 +++++++ .../agents_service/change_agent_parameters.go | 2 + .../agents_service/change_agent_responses.go | 163 +++++++++++ .../get_agent_logs_parameters.go | 3 + .../get_agent_logs_responses.go | 10 + .../agents_service/get_agent_parameters.go | 2 + .../agents_service/get_agent_responses.go | 68 +++++ .../agents_service/list_agents_parameters.go | 10 +- .../agents_service/list_agents_responses.go | 106 +++++++ .../agents_service/remove_agent_parameters.go | 3 + .../agents_service/remove_agent_responses.go | 9 + .../nodes_service/add_node_parameters.go | 2 + .../nodes_service/add_node_responses.go | 35 +++ .../nodes_service/get_node_parameters.go | 2 + .../nodes_service/get_node_responses.go | 22 ++ .../nodes_service/list_nodes_parameters.go | 7 +- .../nodes_service/list_nodes_responses.go | 34 +++ .../nodes_service/remove_node_parameters.go | 3 + .../nodes_service/remove_node_responses.go | 9 + .../add_service_parameters.go | 2 + .../services_service/add_service_responses.go | 39 +++ .../change_service_parameters.go | 2 + .../change_service_responses.go | 27 ++ .../get_service_parameters.go | 2 + .../services_service/get_service_responses.go | 24 ++ .../list_active_service_types_parameters.go | 2 + .../list_active_service_types_responses.go | 10 + .../list_services_parameters.go | 9 +- .../list_services_responses.go | 38 +++ .../remove_service_parameters.go | 3 + .../remove_service_responses.go | 9 + api/inventory/v1/log_level.pb.go | 16 +- api/inventory/v1/nodes.pb.go | 84 +++--- api/inventory/v1/nodes.pb.validate.go | 54 ++-- api/inventory/v1/nodes_grpc.pb.go | 4 - api/inventory/v1/services.pb.go | 109 ++++--- api/inventory/v1/services.pb.validate.go | 80 ++---- api/inventory/v1/services_grpc.pb.go | 6 - api/management/v1/agent.pb.go | 57 ++-- api/management/v1/agent.pb.validate.go | 33 +-- api/management/v1/annotation.pb.go | 20 +- api/management/v1/annotation.pb.validate.go | 6 +- api/management/v1/azure.pb.go | 35 +-- api/management/v1/azure.pb.validate.go | 15 +- api/management/v1/elasticache.pb.go | 45 ++- api/management/v1/external.pb.go | 35 +-- api/management/v1/external.pb.validate.go | 6 +- api/management/v1/haproxy.pb.go | 35 +-- api/management/v1/haproxy.pb.validate.go | 6 +- .../add_annotation_parameters.go | 2 + .../add_annotation_responses.go | 10 + .../add_azure_database_parameters.go | 2 + .../add_azure_database_responses.go | 10 + .../add_service_parameters.go | 2 + .../add_service_responses.go | 149 ++++++++++ .../discover_azure_database_parameters.go | 2 + .../discover_azure_database_responses.go | 15 + .../discover_elasti_cache_parameters.go | 2 + .../discover_elasti_cache_responses.go | 15 + .../discover_rds_parameters.go | 2 + .../discover_rds_responses.go | 15 + .../management_service/get_node_parameters.go | 2 + .../management_service/get_node_responses.go | 20 ++ .../list_agent_versions_parameters.go | 1 + .../list_agent_versions_responses.go | 14 + .../list_agents_parameters.go | 4 + .../list_agents_responses.go | 24 ++ .../list_nodes_parameters.go | 7 +- .../list_nodes_responses.go | 22 ++ .../list_services_parameters.go | 9 +- .../list_services_responses.go | 28 ++ .../register_node_parameters.go | 2 + .../register_node_responses.go | 17 ++ .../remove_service_parameters.go | 7 +- .../remove_service_responses.go | 9 + .../unregister_node_parameters.go | 3 + .../unregister_node_responses.go | 10 + api/management/v1/metrics.pb.go | 16 +- api/management/v1/mongodb.pb.go | 43 ++- api/management/v1/mongodb.pb.validate.go | 6 +- api/management/v1/mysql.pb.go | 43 ++- api/management/v1/mysql.pb.validate.go | 6 +- api/management/v1/node.pb.go | 67 ++--- api/management/v1/node.pb.validate.go | 36 +-- api/management/v1/postgresql.pb.go | 41 ++- api/management/v1/postgresql.pb.validate.go | 6 +- api/management/v1/proxysql.pb.go | 37 ++- api/management/v1/proxysql.pb.validate.go | 6 +- api/management/v1/rds.pb.go | 55 ++-- api/management/v1/rds.pb.validate.go | 15 +- api/management/v1/service.pb.go | 125 ++++----- api/management/v1/service.pb.validate.go | 21 +- api/management/v1/service_grpc.pb.go | 14 - api/management/v1/severity.pb.go | 16 +- api/management/v1/valkey.pb.go | 37 ++- api/management/v1/valkey.pb.validate.go | 10 +- api/qan/v1/collector.pb.go | 35 +-- api/qan/v1/collector.pb.validate.go | 9 +- api/qan/v1/collector_grpc.pb.go | 1 - api/qan/v1/filters.pb.go | 30 +- api/qan/v1/filters.pb.validate.go | 12 +- ...lain_fingerprint_by_query_id_parameters.go | 2 + ...plain_fingerprint_by_query_id_responses.go | 11 + .../get_filtered_metrics_names_parameters.go | 2 + .../get_filtered_metrics_names_responses.go | 23 ++ .../qan_service/get_histogram_parameters.go | 2 + .../qan_service/get_histogram_responses.go | 19 ++ .../qan_service/get_labels_parameters.go | 2 + .../qan_service/get_labels_responses.go | 15 + .../get_metrics_names_parameters.go | 2 + .../get_metrics_names_responses.go | 10 + .../qan_service/get_metrics_parameters.go | 2 + .../qan_service/get_metrics_responses.go | 29 ++ .../get_query_example_parameters.go | 2 + .../get_query_example_responses.go | 19 ++ .../qan_service/get_query_plan_parameters.go | 2 + .../qan_service/get_query_plan_responses.go | 10 + .../qan_service/get_report_parameters.go | 2 + .../qan_service/get_report_responses.go | 29 ++ .../qan_service/health_check_parameters.go | 1 + .../qan_service/health_check_responses.go | 9 + .../qan_service/query_exists_parameters.go | 2 + .../qan_service/query_exists_responses.go | 11 + .../schema_by_query_id_parameters.go | 2 + .../schema_by_query_id_responses.go | 11 + api/qan/v1/object_details.pb.go | 76 +++-- api/qan/v1/object_details.pb.validate.go | 66 ++--- api/qan/v1/profile.pb.go | 34 +-- api/qan/v1/profile.pb.validate.go | 18 +- api/qan/v1/qan.pb.go | 22 +- api/qan/v1/qan.pb.validate.go | 6 +- api/qan/v1/service.pb.go | 66 ++--- api/qan/v1/service.pb.validate.go | 12 +- api/qan/v1/service_grpc.pb.go | 12 - api/realtimeanalytics/v1/collector.pb.go | 22 +- .../v1/collector.pb.validate.go | 6 +- api/realtimeanalytics/v1/collector_grpc.pb.go | 1 - .../list_services_parameters.go | 7 +- .../list_services_responses.go | 14 + .../list_sessions_parameters.go | 3 + .../list_sessions_responses.go | 14 + .../search_queries_parameters.go | 2 + .../search_queries_responses.go | 17 ++ .../start_session_parameters.go | 2 + .../start_session_responses.go | 13 + .../stop_session_parameters.go | 2 + .../stop_session_responses.go | 10 + api/realtimeanalytics/v1/query.pb.go | 24 +- api/realtimeanalytics/v1/query.pb.validate.go | 6 +- .../v1/realtimeanalytics.pb.go | 55 ++-- .../v1/realtimeanalytics.pb.validate.go | 33 +-- .../v1/realtimeanalytics_grpc.pb.go | 6 - api/server/v1/httperror.pb.go | 20 +- api/server/v1/httperror.pb.validate.go | 3 +- .../change_settings_parameters.go | 2 + .../change_settings_responses.go | 23 ++ .../check_updates_parameters.go | 4 + .../server_service/check_updates_responses.go | 14 + .../get_read_only_settings_parameters.go | 1 + .../get_read_only_settings_responses.go | 12 + .../server_service/get_settings_parameters.go | 1 + .../server_service/get_settings_responses.go | 16 ++ .../leader_health_check_parameters.go | 1 + .../leader_health_check_responses.go | 9 + .../list_change_logs_parameters.go | 1 + .../list_change_logs_responses.go | 14 + .../client/server_service/logs_parameters.go | 3 + .../client/server_service/logs_responses.go | 4 + .../server_service/readiness_parameters.go | 1 + .../server_service/readiness_responses.go | 9 + .../server_service/start_update_parameters.go | 2 + .../server_service/start_update_responses.go | 11 + .../update_status_parameters.go | 2 + .../server_service/update_status_responses.go | 11 + .../server_service/version_parameters.go | 3 + .../server_service/version_responses.go | 14 + api/server/v1/server.pb.go | 83 +++--- api/server/v1/server.pb.validate.go | 80 ++---- api/server/v1/server_grpc.pb.go | 10 - api/uievents/v1/server.pb.go | 30 +- api/uievents/v1/server.pb.gw.go | 8 +- api/uievents/v1/server.pb.validate.go | 18 +- api/uievents/v1/server_grpc.pb.go | 1 - .../user_service/get_user_parameters.go | 1 + .../client/user_service/get_user_responses.go | 10 + .../user_service/list_users_parameters.go | 1 + .../user_service/list_users_responses.go | 14 + .../user_service/update_user_parameters.go | 2 + .../user_service/update_user_responses.go | 11 + api/user/v1/user.pb.go | 32 +-- api/user/v1/user.pb.validate.go | 21 +- api/user/v1/user_grpc.pb.go | 3 - 346 files changed, 4282 insertions(+), 2645 deletions(-) diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.go b/api/accesscontrol/v1beta1/accesscontrol.pb.go index f5e8ea4b004..639df37bd7e 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.go @@ -7,15 +7,14 @@ package accesscontrolv1beta1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" + unsafe "unsafe" ) const ( @@ -824,27 +823,24 @@ func file_accesscontrol_v1beta1_accesscontrol_proto_rawDescGZIP() []byte { return file_accesscontrol_v1beta1_accesscontrol_proto_rawDescData } -var ( - file_accesscontrol_v1beta1_accesscontrol_proto_msgTypes = make([]protoimpl.MessageInfo, 15) - file_accesscontrol_v1beta1_accesscontrol_proto_goTypes = []any{ - (*CreateRoleRequest)(nil), // 0: accesscontrol.v1beta1.CreateRoleRequest - (*CreateRoleResponse)(nil), // 1: accesscontrol.v1beta1.CreateRoleResponse - (*UpdateRoleRequest)(nil), // 2: accesscontrol.v1beta1.UpdateRoleRequest - (*UpdateRoleResponse)(nil), // 3: accesscontrol.v1beta1.UpdateRoleResponse - (*DeleteRoleRequest)(nil), // 4: accesscontrol.v1beta1.DeleteRoleRequest - (*DeleteRoleResponse)(nil), // 5: accesscontrol.v1beta1.DeleteRoleResponse - (*GetRoleRequest)(nil), // 6: accesscontrol.v1beta1.GetRoleRequest - (*GetRoleResponse)(nil), // 7: accesscontrol.v1beta1.GetRoleResponse - (*SetDefaultRoleRequest)(nil), // 8: accesscontrol.v1beta1.SetDefaultRoleRequest - (*SetDefaultRoleResponse)(nil), // 9: accesscontrol.v1beta1.SetDefaultRoleResponse - (*AssignRolesRequest)(nil), // 10: accesscontrol.v1beta1.AssignRolesRequest - (*AssignRolesResponse)(nil), // 11: accesscontrol.v1beta1.AssignRolesResponse - (*ListRolesRequest)(nil), // 12: accesscontrol.v1beta1.ListRolesRequest - (*ListRolesResponse)(nil), // 13: accesscontrol.v1beta1.ListRolesResponse - (*ListRolesResponse_RoleData)(nil), // 14: accesscontrol.v1beta1.ListRolesResponse.RoleData - } -) - +var file_accesscontrol_v1beta1_accesscontrol_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_accesscontrol_v1beta1_accesscontrol_proto_goTypes = []any{ + (*CreateRoleRequest)(nil), // 0: accesscontrol.v1beta1.CreateRoleRequest + (*CreateRoleResponse)(nil), // 1: accesscontrol.v1beta1.CreateRoleResponse + (*UpdateRoleRequest)(nil), // 2: accesscontrol.v1beta1.UpdateRoleRequest + (*UpdateRoleResponse)(nil), // 3: accesscontrol.v1beta1.UpdateRoleResponse + (*DeleteRoleRequest)(nil), // 4: accesscontrol.v1beta1.DeleteRoleRequest + (*DeleteRoleResponse)(nil), // 5: accesscontrol.v1beta1.DeleteRoleResponse + (*GetRoleRequest)(nil), // 6: accesscontrol.v1beta1.GetRoleRequest + (*GetRoleResponse)(nil), // 7: accesscontrol.v1beta1.GetRoleResponse + (*SetDefaultRoleRequest)(nil), // 8: accesscontrol.v1beta1.SetDefaultRoleRequest + (*SetDefaultRoleResponse)(nil), // 9: accesscontrol.v1beta1.SetDefaultRoleResponse + (*AssignRolesRequest)(nil), // 10: accesscontrol.v1beta1.AssignRolesRequest + (*AssignRolesResponse)(nil), // 11: accesscontrol.v1beta1.AssignRolesResponse + (*ListRolesRequest)(nil), // 12: accesscontrol.v1beta1.ListRolesRequest + (*ListRolesResponse)(nil), // 13: accesscontrol.v1beta1.ListRolesResponse + (*ListRolesResponse_RoleData)(nil), // 14: accesscontrol.v1beta1.ListRolesResponse.RoleData +} var file_accesscontrol_v1beta1_accesscontrol_proto_depIdxs = []int32{ 14, // 0: accesscontrol.v1beta1.ListRolesResponse.roles:type_name -> accesscontrol.v1beta1.ListRolesResponse.RoleData 0, // 1: accesscontrol.v1beta1.AccessControlService.CreateRole:input_type -> accesscontrol.v1beta1.CreateRoleRequest diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go b/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go index 631fd1a9c6c..eb8ae6ba022 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go @@ -139,8 +139,7 @@ func (e CreateRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CreateRoleRequestValidationError{} @@ -244,8 +243,7 @@ func (e CreateRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CreateRoleResponseValidationError{} @@ -292,6 +290,7 @@ func (m *UpdateRoleRequest) validate(all bool) error { } if m.Title != nil { + if utf8.RuneCountInString(m.GetTitle()) < 1 { err := UpdateRoleRequestValidationError{ field: "Title", @@ -302,6 +301,7 @@ func (m *UpdateRoleRequest) validate(all bool) error { } errors = append(errors, err) } + } if m.Filter != nil { @@ -379,8 +379,7 @@ func (e UpdateRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateRoleRequestValidationError{} @@ -482,8 +481,7 @@ func (e UpdateRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateRoleResponseValidationError{} @@ -598,8 +596,7 @@ func (e DeleteRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteRoleRequestValidationError{} @@ -701,8 +698,7 @@ func (e DeleteRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteRoleResponseValidationError{} @@ -813,8 +809,7 @@ func (e GetRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetRoleRequestValidationError{} @@ -922,8 +917,7 @@ func (e GetRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetRoleResponseValidationError{} @@ -1036,8 +1030,7 @@ func (e SetDefaultRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SetDefaultRoleRequestValidationError{} @@ -1139,8 +1132,7 @@ func (e SetDefaultRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SetDefaultRoleResponseValidationError{} @@ -1253,8 +1245,7 @@ func (e AssignRolesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AssignRolesRequestValidationError{} @@ -1356,8 +1347,7 @@ func (e AssignRolesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AssignRolesResponseValidationError{} @@ -1457,8 +1447,7 @@ func (e ListRolesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListRolesRequestValidationError{} @@ -1594,8 +1583,7 @@ func (e ListRolesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListRolesResponseValidationError{} @@ -1705,8 +1693,7 @@ func (e ListRolesResponse_RoleDataValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListRolesResponse_RoleDataValidationError{} diff --git a/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go b/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go index 27f509ee6f5..f868b277a03 100644 --- a/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go +++ b/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go @@ -8,7 +8,6 @@ package accesscontrolv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -162,27 +161,21 @@ type UnimplementedAccessControlServiceServer struct{} func (UnimplementedAccessControlServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateRole not implemented") } - func (UnimplementedAccessControlServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateRole not implemented") } - func (UnimplementedAccessControlServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteRole not implemented") } - func (UnimplementedAccessControlServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetRole not implemented") } - func (UnimplementedAccessControlServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRoles not implemented") } - func (UnimplementedAccessControlServiceServer) AssignRoles(context.Context, *AssignRolesRequest) (*AssignRolesResponse, error) { return nil, status.Error(codes.Unimplemented, "method AssignRoles not implemented") } - func (UnimplementedAccessControlServiceServer) SetDefaultRole(context.Context, *SetDefaultRoleRequest) (*SetDefaultRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method SetDefaultRole not implemented") } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go index 382f7922a2d..cb993665cc2 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go @@ -60,6 +60,7 @@ AssignRolesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AssignRolesParams struct { + // Body. Body AssignRolesBody @@ -129,6 +130,7 @@ func (o *AssignRolesParams) SetBody(body AssignRolesBody) { // WriteToRequest writes these params to a swagger request func (o *AssignRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go index e8da90c3536..2a2044f1092 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go @@ -104,6 +104,7 @@ func (o *AssignRolesOK) GetPayload() any { } func (o *AssignRolesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *AssignRolesDefault) GetPayload() *AssignRolesDefaultBody { } func (o *AssignRolesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AssignRolesDefaultBody) // response payload @@ -190,6 +192,7 @@ AssignRolesBody assign roles body swagger:model AssignRolesBody */ type AssignRolesBody struct { + // role ids RoleIds []int64 `json:"role_ids"` @@ -230,6 +233,7 @@ AssignRolesDefaultBody assign roles default body swagger:model AssignRolesDefaultBody */ type AssignRolesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -299,7 +303,9 @@ func (o *AssignRolesDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AssignRolesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -319,6 +325,7 @@ func (o *AssignRolesDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -347,6 +354,7 @@ AssignRolesDefaultBodyDetailsItems0 assign roles default body details items0 swagger:model AssignRolesDefaultBodyDetailsItems0 */ type AssignRolesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -358,6 +366,7 @@ type AssignRolesDefaultBodyDetailsItems0 struct { func (o *AssignRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -395,6 +404,7 @@ func (o *AssignRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AssignRolesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go index b938a079586..1bb34601822 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go @@ -60,6 +60,7 @@ CreateRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateRoleParams struct { + // Body. Body CreateRoleBody @@ -129,6 +130,7 @@ func (o *CreateRoleParams) SetBody(body CreateRoleBody) { // WriteToRequest writes these params to a swagger request func (o *CreateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go index b03fdb96075..0df54ce131f 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go @@ -104,6 +104,7 @@ func (o *CreateRoleOK) GetPayload() *CreateRoleOKBody { } func (o *CreateRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateRoleOKBody) // response payload @@ -177,6 +178,7 @@ func (o *CreateRoleDefault) GetPayload() *CreateRoleDefaultBody { } func (o *CreateRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateRoleDefaultBody) // response payload @@ -192,6 +194,7 @@ CreateRoleBody create role body swagger:model CreateRoleBody */ type CreateRoleBody struct { + // title Title string `json:"title,omitempty"` @@ -235,6 +238,7 @@ CreateRoleDefaultBody create role default body swagger:model CreateRoleDefaultBody */ type CreateRoleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -304,7 +308,9 @@ func (o *CreateRoleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *CreateRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -324,6 +330,7 @@ func (o *CreateRoleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -352,6 +359,7 @@ CreateRoleDefaultBodyDetailsItems0 create role default body details items0 swagger:model CreateRoleDefaultBodyDetailsItems0 */ type CreateRoleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -363,6 +371,7 @@ type CreateRoleDefaultBodyDetailsItems0 struct { func (o *CreateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -400,6 +409,7 @@ func (o *CreateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o CreateRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -463,6 +473,7 @@ CreateRoleOKBody create role OK body swagger:model CreateRoleOKBody */ type CreateRoleOKBody struct { + // role id RoleID int64 `json:"role_id,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go index 7e502e8dcd7..0b1b7b1af71 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go @@ -61,6 +61,7 @@ DeleteRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteRoleParams struct { + /* ReplacementRoleID. Role ID to be used as a replacement for the role. Additional logic applies. @@ -151,6 +152,7 @@ func (o *DeleteRoleParams) SetRoleID(roleID int64) { // WriteToRequest writes these params to a swagger request func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -166,6 +168,7 @@ func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qReplacementRoleID := swag.FormatInt64(qrReplacementRoleID) if qReplacementRoleID != "" { + if err := r.SetQueryParam("replacement_role_id", qReplacementRoleID); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go index 84cb3699513..86015ab4298 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go @@ -104,6 +104,7 @@ func (o *DeleteRoleOK) GetPayload() any { } func (o *DeleteRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *DeleteRoleDefault) GetPayload() *DeleteRoleDefaultBody { } func (o *DeleteRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteRoleDefaultBody) // response payload @@ -190,6 +192,7 @@ DeleteRoleDefaultBody delete role default body swagger:model DeleteRoleDefaultBody */ type DeleteRoleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,9 @@ func (o *DeleteRoleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *DeleteRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *DeleteRoleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -307,6 +313,7 @@ DeleteRoleDefaultBodyDetailsItems0 delete role default body details items0 swagger:model DeleteRoleDefaultBodyDetailsItems0 */ type DeleteRoleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type DeleteRoleDefaultBodyDetailsItems0 struct { func (o *DeleteRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *DeleteRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go index 31a018c004a..609e5c621ee 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go @@ -61,6 +61,7 @@ GetRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetRoleParams struct { + // RoleID. // // Format: int64 @@ -132,6 +133,7 @@ func (o *GetRoleParams) SetRoleID(roleID int64) { // WriteToRequest writes these params to a swagger request func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go index f731e38c4d1..3b6e7faabf5 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go @@ -104,6 +104,7 @@ func (o *GetRoleOK) GetPayload() *GetRoleOKBody { } func (o *GetRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetRoleOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetRoleDefault) GetPayload() *GetRoleDefaultBody { } func (o *GetRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetRoleDefaultBody) // response payload @@ -192,6 +194,7 @@ GetRoleDefaultBody get role default body swagger:model GetRoleDefaultBody */ type GetRoleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *GetRoleDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetRoleDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -309,6 +315,7 @@ GetRoleDefaultBodyDetailsItems0 get role default body details items0 swagger:model GetRoleDefaultBodyDetailsItems0 */ type GetRoleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetRoleDefaultBodyDetailsItems0 struct { func (o *GetRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetRoleOKBody get role OK body swagger:model GetRoleOKBody */ type GetRoleOKBody struct { + // role id RoleID int64 `json:"role_id,omitempty"` diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go index 0fb513e0af3..2d886057c5e 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go @@ -115,6 +115,7 @@ func (o *ListRolesParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go index 62d47cc68b2..1834c8ed751 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go @@ -104,6 +104,7 @@ func (o *ListRolesOK) GetPayload() *ListRolesOKBody { } func (o *ListRolesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListRolesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListRolesDefault) GetPayload() *ListRolesDefaultBody { } func (o *ListRolesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListRolesDefaultBody) // response payload @@ -192,6 +194,7 @@ ListRolesDefaultBody list roles default body swagger:model ListRolesDefaultBody */ type ListRolesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *ListRolesDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListRolesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListRolesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -309,6 +315,7 @@ ListRolesDefaultBodyDetailsItems0 list roles default body details items0 swagger:model ListRolesDefaultBodyDetailsItems0 */ type ListRolesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListRolesDefaultBodyDetailsItems0 struct { func (o *ListRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListRolesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListRolesOKBody list roles OK body swagger:model ListRolesOKBody */ type ListRolesOKBody struct { + // roles Roles []*ListRolesOKBodyRolesItems0 `json:"roles"` } @@ -483,7 +493,9 @@ func (o *ListRolesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListRolesOKBody) contextValidateRoles(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Roles); i++ { + if o.Roles[i] != nil { if swag.IsZero(o.Roles[i]) { // not required @@ -503,6 +515,7 @@ func (o *ListRolesOKBody) contextValidateRoles(ctx context.Context, formats strf return err } } + } return nil @@ -531,6 +544,7 @@ ListRolesOKBodyRolesItems0 list roles OK body roles items0 swagger:model ListRolesOKBodyRolesItems0 */ type ListRolesOKBodyRolesItems0 struct { + // role id RoleID int64 `json:"role_id,omitempty"` diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go index 516a1543b14..858d855c7eb 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go @@ -60,6 +60,7 @@ SetDefaultRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type SetDefaultRoleParams struct { + // Body. Body SetDefaultRoleBody @@ -129,6 +130,7 @@ func (o *SetDefaultRoleParams) SetBody(body SetDefaultRoleBody) { // WriteToRequest writes these params to a swagger request func (o *SetDefaultRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go index 101b2683e30..e6288362405 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go @@ -104,6 +104,7 @@ func (o *SetDefaultRoleOK) GetPayload() any { } func (o *SetDefaultRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *SetDefaultRoleDefault) GetPayload() *SetDefaultRoleDefaultBody { } func (o *SetDefaultRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SetDefaultRoleDefaultBody) // response payload @@ -190,6 +192,7 @@ SetDefaultRoleBody set default role body swagger:model SetDefaultRoleBody */ type SetDefaultRoleBody struct { + // role id RoleID int64 `json:"role_id,omitempty"` } @@ -227,6 +230,7 @@ SetDefaultRoleDefaultBody set default role default body swagger:model SetDefaultRoleDefaultBody */ type SetDefaultRoleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,9 @@ func (o *SetDefaultRoleDefaultBody) ContextValidate(ctx context.Context, formats } func (o *SetDefaultRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *SetDefaultRoleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -344,6 +351,7 @@ SetDefaultRoleDefaultBodyDetailsItems0 set default role default body details ite swagger:model SetDefaultRoleDefaultBodyDetailsItems0 */ type SetDefaultRoleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type SetDefaultRoleDefaultBodyDetailsItems0 struct { func (o *SetDefaultRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *SetDefaultRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o SetDefaultRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go index c5724145e12..234a65456d7 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go @@ -61,6 +61,7 @@ UpdateRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateRoleParams struct { + // Body. Body UpdateRoleBody @@ -146,6 +147,7 @@ func (o *UpdateRoleParams) SetRoleID(roleID int64) { // WriteToRequest writes these params to a swagger request func (o *UpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go index 0fd4a4964f6..f280b94732a 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go @@ -104,6 +104,7 @@ func (o *UpdateRoleOK) GetPayload() any { } func (o *UpdateRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *UpdateRoleDefault) GetPayload() *UpdateRoleDefaultBody { } func (o *UpdateRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateRoleDefaultBody) // response payload @@ -190,6 +192,7 @@ UpdateRoleBody update role body swagger:model UpdateRoleBody */ type UpdateRoleBody struct { + // title Title *string `json:"title,omitempty"` @@ -233,6 +236,7 @@ UpdateRoleDefaultBody update role default body swagger:model UpdateRoleDefaultBody */ type UpdateRoleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -302,7 +306,9 @@ func (o *UpdateRoleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UpdateRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,6 +328,7 @@ func (o *UpdateRoleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -350,6 +357,7 @@ UpdateRoleDefaultBodyDetailsItems0 update role default body details items0 swagger:model UpdateRoleDefaultBodyDetailsItems0 */ type UpdateRoleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -361,6 +369,7 @@ type UpdateRoleDefaultBodyDetailsItems0 struct { func (o *UpdateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -398,6 +407,7 @@ func (o *UpdateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/actions/v1/actions.pb.go b/api/actions/v1/actions.pb.go index f1cfdec8cfa..c22f9dab1a2 100644 --- a/api/actions/v1/actions.pb.go +++ b/api/actions/v1/actions.pb.go @@ -7,15 +7,14 @@ package actionsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" + unsafe "unsafe" ) const ( @@ -2610,46 +2609,43 @@ func file_actions_v1_actions_proto_rawDescGZIP() []byte { return file_actions_v1_actions_proto_rawDescData } -var ( - file_actions_v1_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_actions_v1_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 32) - file_actions_v1_actions_proto_goTypes = []any{ - ActionType(0), // 0: actions.v1.ActionType - (*GetActionRequest)(nil), // 1: actions.v1.GetActionRequest - (*GetActionResponse)(nil), // 2: actions.v1.GetActionResponse - (*StartMySQLExplainActionParams)(nil), // 3: actions.v1.StartMySQLExplainActionParams - (*StartMySQLExplainActionResult)(nil), // 4: actions.v1.StartMySQLExplainActionResult - (*StartMySQLExplainJSONActionParams)(nil), // 5: actions.v1.StartMySQLExplainJSONActionParams - (*StartMySQLExplainJSONActionResult)(nil), // 6: actions.v1.StartMySQLExplainJSONActionResult - (*StartMySQLExplainTraditionalJSONActionParams)(nil), // 7: actions.v1.StartMySQLExplainTraditionalJSONActionParams - (*StartMySQLExplainTraditionalJSONActionResult)(nil), // 8: actions.v1.StartMySQLExplainTraditionalJSONActionResult - (*StartMySQLShowCreateTableActionParams)(nil), // 9: actions.v1.StartMySQLShowCreateTableActionParams - (*StartMySQLShowCreateTableActionResult)(nil), // 10: actions.v1.StartMySQLShowCreateTableActionResult - (*StartMySQLShowTableStatusActionParams)(nil), // 11: actions.v1.StartMySQLShowTableStatusActionParams - (*StartMySQLShowTableStatusActionResult)(nil), // 12: actions.v1.StartMySQLShowTableStatusActionResult - (*StartMySQLShowIndexActionParams)(nil), // 13: actions.v1.StartMySQLShowIndexActionParams - (*StartMySQLShowIndexActionResult)(nil), // 14: actions.v1.StartMySQLShowIndexActionResult - (*StartPostgreSQLShowCreateTableActionParams)(nil), // 15: actions.v1.StartPostgreSQLShowCreateTableActionParams - (*StartPostgreSQLShowCreateTableActionResult)(nil), // 16: actions.v1.StartPostgreSQLShowCreateTableActionResult - (*StartPostgreSQLShowIndexActionParams)(nil), // 17: actions.v1.StartPostgreSQLShowIndexActionParams - (*StartPostgreSQLShowIndexActionResult)(nil), // 18: actions.v1.StartPostgreSQLShowIndexActionResult - (*StartMongoDBExplainActionParams)(nil), // 19: actions.v1.StartMongoDBExplainActionParams - (*StartMongoDBExplainActionResult)(nil), // 20: actions.v1.StartMongoDBExplainActionResult - (*StartPTPgSummaryActionParams)(nil), // 21: actions.v1.StartPTPgSummaryActionParams - (*StartPTPgSummaryActionResult)(nil), // 22: actions.v1.StartPTPgSummaryActionResult - (*StartPTMongoDBSummaryActionParams)(nil), // 23: actions.v1.StartPTMongoDBSummaryActionParams - (*StartPTMongoDBSummaryActionResult)(nil), // 24: actions.v1.StartPTMongoDBSummaryActionResult - (*StartPTMySQLSummaryActionParams)(nil), // 25: actions.v1.StartPTMySQLSummaryActionParams - (*StartPTMySQLSummaryActionResult)(nil), // 26: actions.v1.StartPTMySQLSummaryActionResult - (*StartPTSummaryActionRequest)(nil), // 27: actions.v1.StartPTSummaryActionRequest - (*StartPTSummaryActionResponse)(nil), // 28: actions.v1.StartPTSummaryActionResponse - (*CancelActionRequest)(nil), // 29: actions.v1.CancelActionRequest - (*CancelActionResponse)(nil), // 30: actions.v1.CancelActionResponse - (*StartServiceActionRequest)(nil), // 31: actions.v1.StartServiceActionRequest - (*StartServiceActionResponse)(nil), // 32: actions.v1.StartServiceActionResponse - } -) - +var file_actions_v1_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_actions_v1_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 32) +var file_actions_v1_actions_proto_goTypes = []any{ + (ActionType)(0), // 0: actions.v1.ActionType + (*GetActionRequest)(nil), // 1: actions.v1.GetActionRequest + (*GetActionResponse)(nil), // 2: actions.v1.GetActionResponse + (*StartMySQLExplainActionParams)(nil), // 3: actions.v1.StartMySQLExplainActionParams + (*StartMySQLExplainActionResult)(nil), // 4: actions.v1.StartMySQLExplainActionResult + (*StartMySQLExplainJSONActionParams)(nil), // 5: actions.v1.StartMySQLExplainJSONActionParams + (*StartMySQLExplainJSONActionResult)(nil), // 6: actions.v1.StartMySQLExplainJSONActionResult + (*StartMySQLExplainTraditionalJSONActionParams)(nil), // 7: actions.v1.StartMySQLExplainTraditionalJSONActionParams + (*StartMySQLExplainTraditionalJSONActionResult)(nil), // 8: actions.v1.StartMySQLExplainTraditionalJSONActionResult + (*StartMySQLShowCreateTableActionParams)(nil), // 9: actions.v1.StartMySQLShowCreateTableActionParams + (*StartMySQLShowCreateTableActionResult)(nil), // 10: actions.v1.StartMySQLShowCreateTableActionResult + (*StartMySQLShowTableStatusActionParams)(nil), // 11: actions.v1.StartMySQLShowTableStatusActionParams + (*StartMySQLShowTableStatusActionResult)(nil), // 12: actions.v1.StartMySQLShowTableStatusActionResult + (*StartMySQLShowIndexActionParams)(nil), // 13: actions.v1.StartMySQLShowIndexActionParams + (*StartMySQLShowIndexActionResult)(nil), // 14: actions.v1.StartMySQLShowIndexActionResult + (*StartPostgreSQLShowCreateTableActionParams)(nil), // 15: actions.v1.StartPostgreSQLShowCreateTableActionParams + (*StartPostgreSQLShowCreateTableActionResult)(nil), // 16: actions.v1.StartPostgreSQLShowCreateTableActionResult + (*StartPostgreSQLShowIndexActionParams)(nil), // 17: actions.v1.StartPostgreSQLShowIndexActionParams + (*StartPostgreSQLShowIndexActionResult)(nil), // 18: actions.v1.StartPostgreSQLShowIndexActionResult + (*StartMongoDBExplainActionParams)(nil), // 19: actions.v1.StartMongoDBExplainActionParams + (*StartMongoDBExplainActionResult)(nil), // 20: actions.v1.StartMongoDBExplainActionResult + (*StartPTPgSummaryActionParams)(nil), // 21: actions.v1.StartPTPgSummaryActionParams + (*StartPTPgSummaryActionResult)(nil), // 22: actions.v1.StartPTPgSummaryActionResult + (*StartPTMongoDBSummaryActionParams)(nil), // 23: actions.v1.StartPTMongoDBSummaryActionParams + (*StartPTMongoDBSummaryActionResult)(nil), // 24: actions.v1.StartPTMongoDBSummaryActionResult + (*StartPTMySQLSummaryActionParams)(nil), // 25: actions.v1.StartPTMySQLSummaryActionParams + (*StartPTMySQLSummaryActionResult)(nil), // 26: actions.v1.StartPTMySQLSummaryActionResult + (*StartPTSummaryActionRequest)(nil), // 27: actions.v1.StartPTSummaryActionRequest + (*StartPTSummaryActionResponse)(nil), // 28: actions.v1.StartPTSummaryActionResponse + (*CancelActionRequest)(nil), // 29: actions.v1.CancelActionRequest + (*CancelActionResponse)(nil), // 30: actions.v1.CancelActionResponse + (*StartServiceActionRequest)(nil), // 31: actions.v1.StartServiceActionRequest + (*StartServiceActionResponse)(nil), // 32: actions.v1.StartServiceActionResponse +} var file_actions_v1_actions_proto_depIdxs = []int32{ 3, // 0: actions.v1.StartServiceActionRequest.mysql_explain:type_name -> actions.v1.StartMySQLExplainActionParams 5, // 1: actions.v1.StartServiceActionRequest.mysql_explain_json:type_name -> actions.v1.StartMySQLExplainJSONActionParams diff --git a/api/actions/v1/actions.pb.validate.go b/api/actions/v1/actions.pb.validate.go index fc9b2a60515..3c8feb7b777 100644 --- a/api/actions/v1/actions.pb.validate.go +++ b/api/actions/v1/actions.pb.validate.go @@ -133,8 +133,7 @@ func (e GetActionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetActionRequestValidationError{} @@ -246,8 +245,7 @@ func (e GetActionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetActionResponseValidationError{} @@ -367,8 +365,7 @@ func (e StartMySQLExplainActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLExplainActionParamsValidationError{} @@ -475,8 +472,7 @@ func (e StartMySQLExplainActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLExplainActionResultValidationError{} @@ -598,8 +594,7 @@ func (e StartMySQLExplainJSONActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLExplainJSONActionParamsValidationError{} @@ -708,8 +703,7 @@ func (e StartMySQLExplainJSONActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLExplainJSONActionResultValidationError{} @@ -833,8 +827,7 @@ func (e StartMySQLExplainTraditionalJSONActionParamsValidationError) Error() str key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLExplainTraditionalJSONActionParamsValidationError{} @@ -945,8 +938,7 @@ func (e StartMySQLExplainTraditionalJSONActionResultValidationError) Error() str key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLExplainTraditionalJSONActionResultValidationError{} @@ -1077,8 +1069,7 @@ func (e StartMySQLShowCreateTableActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLShowCreateTableActionParamsValidationError{} @@ -1187,8 +1178,7 @@ func (e StartMySQLShowCreateTableActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLShowCreateTableActionResultValidationError{} @@ -1319,8 +1309,7 @@ func (e StartMySQLShowTableStatusActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLShowTableStatusActionParamsValidationError{} @@ -1429,8 +1418,7 @@ func (e StartMySQLShowTableStatusActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLShowTableStatusActionResultValidationError{} @@ -1559,8 +1547,7 @@ func (e StartMySQLShowIndexActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLShowIndexActionParamsValidationError{} @@ -1667,8 +1654,7 @@ func (e StartMySQLShowIndexActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMySQLShowIndexActionResultValidationError{} @@ -1800,8 +1786,7 @@ func (e StartPostgreSQLShowCreateTableActionParamsValidationError) Error() strin key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPostgreSQLShowCreateTableActionParamsValidationError{} @@ -1911,8 +1896,7 @@ func (e StartPostgreSQLShowCreateTableActionResultValidationError) Error() strin key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPostgreSQLShowCreateTableActionResultValidationError{} @@ -2043,8 +2027,7 @@ func (e StartPostgreSQLShowIndexActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPostgreSQLShowIndexActionParamsValidationError{} @@ -2153,8 +2136,7 @@ func (e StartPostgreSQLShowIndexActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPostgreSQLShowIndexActionResultValidationError{} @@ -2281,8 +2263,7 @@ func (e StartMongoDBExplainActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMongoDBExplainActionParamsValidationError{} @@ -2389,8 +2370,7 @@ func (e StartMongoDBExplainActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartMongoDBExplainActionResultValidationError{} @@ -2497,8 +2477,7 @@ func (e StartPTPgSummaryActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTPgSummaryActionParamsValidationError{} @@ -2605,8 +2584,7 @@ func (e StartPTPgSummaryActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTPgSummaryActionResultValidationError{} @@ -2715,8 +2693,7 @@ func (e StartPTMongoDBSummaryActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTMongoDBSummaryActionParamsValidationError{} @@ -2825,8 +2802,7 @@ func (e StartPTMongoDBSummaryActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTMongoDBSummaryActionResultValidationError{} @@ -2933,8 +2909,7 @@ func (e StartPTMySQLSummaryActionParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTMySQLSummaryActionParamsValidationError{} @@ -3041,8 +3016,7 @@ func (e StartPTMySQLSummaryActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTMySQLSummaryActionResultValidationError{} @@ -3149,8 +3123,7 @@ func (e StartPTSummaryActionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTSummaryActionRequestValidationError{} @@ -3257,8 +3230,7 @@ func (e StartPTSummaryActionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartPTSummaryActionResponseValidationError{} @@ -3371,8 +3343,7 @@ func (e CancelActionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CancelActionRequestValidationError{} @@ -3474,8 +3445,7 @@ func (e CancelActionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CancelActionResponseValidationError{} @@ -4074,8 +4044,7 @@ func (e StartServiceActionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartServiceActionRequestValidationError{} @@ -4674,8 +4643,7 @@ func (e StartServiceActionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartServiceActionResponseValidationError{} diff --git a/api/actions/v1/actions_grpc.pb.go b/api/actions/v1/actions_grpc.pb.go index cfe06386498..f9fb5ad5c81 100644 --- a/api/actions/v1/actions_grpc.pb.go +++ b/api/actions/v1/actions_grpc.pb.go @@ -8,7 +8,6 @@ package actionsv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -117,15 +116,12 @@ type UnimplementedActionsServiceServer struct{} func (UnimplementedActionsServiceServer) GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAction not implemented") } - func (UnimplementedActionsServiceServer) StartServiceAction(context.Context, *StartServiceActionRequest) (*StartServiceActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartServiceAction not implemented") } - func (UnimplementedActionsServiceServer) StartPTSummaryAction(context.Context, *StartPTSummaryActionRequest) (*StartPTSummaryActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartPTSummaryAction not implemented") } - func (UnimplementedActionsServiceServer) CancelAction(context.Context, *CancelActionRequest) (*CancelActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method CancelAction not implemented") } diff --git a/api/actions/v1/json/client/actions_service/cancel_action_parameters.go b/api/actions/v1/json/client/actions_service/cancel_action_parameters.go index 6348e7d94eb..212f1d60d20 100644 --- a/api/actions/v1/json/client/actions_service/cancel_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/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/actions/v1/json/client/actions_service/cancel_action_responses.go b/api/actions/v1/json/client/actions_service/cancel_action_responses.go index 0e13c7ab307..09883420047 100644 --- a/api/actions/v1/json/client/actions_service/cancel_action_responses.go +++ b/api/actions/v1/json/client/actions_service/cancel_action_responses.go @@ -104,6 +104,7 @@ func (o *CancelActionOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *CancelActionDefault) GetPayload() *CancelActionDefaultBody { } func (o *CancelActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CancelActionDefaultBody) // response payload @@ -190,6 +192,7 @@ CancelActionBody cancel action body swagger:model CancelActionBody */ type CancelActionBody struct { + // Unique Action ID. Required. ActionID string `json:"action_id,omitempty"` } @@ -227,6 +230,7 @@ CancelActionDefaultBody cancel action default body swagger:model CancelActionDefaultBody */ type CancelActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,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 swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *CancelActionDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -344,6 +351,7 @@ CancelActionDefaultBodyDetailsItems0 cancel action default body details items0 swagger:model CancelActionDefaultBodyDetailsItems0 */ type CancelActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type CancelActionDefaultBodyDetailsItems0 struct { func (o *CancelActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *CancelActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o CancelActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/actions/v1/json/client/actions_service/get_action_parameters.go b/api/actions/v1/json/client/actions_service/get_action_parameters.go index 260fc6822b1..6b0d82f9eea 100644 --- a/api/actions/v1/json/client/actions_service/get_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/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 { + /* ActionID. Unique Action ID. @@ -132,6 +133,7 @@ func (o *GetActionParams) SetActionID(actionID string) { // 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/actions/v1/json/client/actions_service/get_action_responses.go b/api/actions/v1/json/client/actions_service/get_action_responses.go index 9b33b0d5d9e..d45f0432bae 100644 --- a/api/actions/v1/json/client/actions_service/get_action_responses.go +++ b/api/actions/v1/json/client/actions_service/get_action_responses.go @@ -104,6 +104,7 @@ func (o *GetActionOK) GetPayload() *GetActionOKBody { } func (o *GetActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetActionOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetActionDefault) GetPayload() *GetActionDefaultBody { } func (o *GetActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetActionDefaultBody) // response payload @@ -192,6 +194,7 @@ GetActionDefaultBody get action default body swagger:model GetActionDefaultBody */ type GetActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetActionDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -309,6 +315,7 @@ GetActionDefaultBodyDetailsItems0 get action default body details items0 swagger:model GetActionDefaultBodyDetailsItems0 */ type GetActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetActionDefaultBodyDetailsItems0 struct { func (o *GetActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,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/actions/v1/json/client/actions_service/start_pt_summary_action_parameters.go b/api/actions/v1/json/client/actions_service/start_pt_summary_action_parameters.go index 968ef894f1e..5b8ccd3118d 100644 --- a/api/actions/v1/json/client/actions_service/start_pt_summary_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/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/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go b/api/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go index 8cafc764bc5..78ab76df792 100644 --- a/api/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go +++ b/api/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go @@ -104,6 +104,7 @@ func (o *StartPTSummaryActionOK) GetPayload() *StartPTSummaryActionOKBody { } func (o *StartPTSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTSummaryActionOKBody) // response payload @@ -177,6 +178,7 @@ func (o *StartPTSummaryActionDefault) GetPayload() *StartPTSummaryActionDefaultB } func (o *StartPTSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartPTSummaryActionDefaultBody) // response payload @@ -192,6 +194,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"` @@ -232,6 +235,7 @@ StartPTSummaryActionDefaultBody start PT summary action default body swagger:model StartPTSummaryActionDefaultBody */ type StartPTSummaryActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -301,7 +305,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 swag.IsZero(o.Details[i]) { // not required @@ -321,6 +327,7 @@ func (o *StartPTSummaryActionDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -349,6 +356,7 @@ StartPTSummaryActionDefaultBodyDetailsItems0 start PT summary action default bod swagger:model StartPTSummaryActionDefaultBodyDetailsItems0 */ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -360,6 +368,7 @@ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { func (o *StartPTSummaryActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -397,6 +406,7 @@ func (o *StartPTSummaryActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte // MarshalJSON marshals this object with additional properties into a JSON object func (o StartPTSummaryActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -460,6 +470,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/actions/v1/json/client/actions_service/start_service_action_parameters.go b/api/actions/v1/json/client/actions_service/start_service_action_parameters.go index efc1acb5ebf..9aa53446c00 100644 --- a/api/actions/v1/json/client/actions_service/start_service_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/start_service_action_parameters.go @@ -60,6 +60,7 @@ StartServiceActionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartServiceActionParams struct { + // Body. Body StartServiceActionBody @@ -129,6 +130,7 @@ func (o *StartServiceActionParams) SetBody(body StartServiceActionBody) { // WriteToRequest writes these params to a swagger request func (o *StartServiceActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/actions/v1/json/client/actions_service/start_service_action_responses.go b/api/actions/v1/json/client/actions_service/start_service_action_responses.go index ffe544f60ab..3184f68f740 100644 --- a/api/actions/v1/json/client/actions_service/start_service_action_responses.go +++ b/api/actions/v1/json/client/actions_service/start_service_action_responses.go @@ -104,6 +104,7 @@ func (o *StartServiceActionOK) GetPayload() *StartServiceActionOKBody { } func (o *StartServiceActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartServiceActionOKBody) // response payload @@ -177,6 +178,7 @@ func (o *StartServiceActionDefault) GetPayload() *StartServiceActionDefaultBody } func (o *StartServiceActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartServiceActionDefaultBody) // response payload @@ -192,6 +194,7 @@ StartServiceActionBody start service action body swagger:model StartServiceActionBody */ type StartServiceActionBody struct { + // mongodb explain MongodbExplain *StartServiceActionParamsBodyMongodbExplain `json:"mongodb_explain,omitempty"` @@ -622,6 +625,7 @@ func (o *StartServiceActionBody) ContextValidate(ctx context.Context, formats st } func (o *StartServiceActionBody) contextValidateMongodbExplain(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExplain != nil { if swag.IsZero(o.MongodbExplain) { // not required @@ -646,6 +650,7 @@ func (o *StartServiceActionBody) contextValidateMongodbExplain(ctx context.Conte } func (o *StartServiceActionBody) contextValidateMysqlExplain(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlExplain != nil { if swag.IsZero(o.MysqlExplain) { // not required @@ -670,6 +675,7 @@ func (o *StartServiceActionBody) contextValidateMysqlExplain(ctx context.Context } func (o *StartServiceActionBody) contextValidateMysqlExplainJSON(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlExplainJSON != nil { if swag.IsZero(o.MysqlExplainJSON) { // not required @@ -694,6 +700,7 @@ func (o *StartServiceActionBody) contextValidateMysqlExplainJSON(ctx context.Con } func (o *StartServiceActionBody) contextValidateMysqlExplainTraditionalJSON(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlExplainTraditionalJSON != nil { if swag.IsZero(o.MysqlExplainTraditionalJSON) { // not required @@ -718,6 +725,7 @@ func (o *StartServiceActionBody) contextValidateMysqlExplainTraditionalJSON(ctx } func (o *StartServiceActionBody) contextValidateMysqlShowCreateTable(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlShowCreateTable != nil { if swag.IsZero(o.MysqlShowCreateTable) { // not required @@ -742,6 +750,7 @@ func (o *StartServiceActionBody) contextValidateMysqlShowCreateTable(ctx context } func (o *StartServiceActionBody) contextValidateMysqlShowIndex(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlShowIndex != nil { if swag.IsZero(o.MysqlShowIndex) { // not required @@ -766,6 +775,7 @@ func (o *StartServiceActionBody) contextValidateMysqlShowIndex(ctx context.Conte } func (o *StartServiceActionBody) contextValidateMysqlShowTableStatus(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlShowTableStatus != nil { if swag.IsZero(o.MysqlShowTableStatus) { // not required @@ -790,6 +800,7 @@ func (o *StartServiceActionBody) contextValidateMysqlShowTableStatus(ctx context } func (o *StartServiceActionBody) contextValidatePostgresShowCreateTable(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresShowCreateTable != nil { if swag.IsZero(o.PostgresShowCreateTable) { // not required @@ -814,6 +825,7 @@ func (o *StartServiceActionBody) contextValidatePostgresShowCreateTable(ctx cont } func (o *StartServiceActionBody) contextValidatePostgresShowIndex(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresShowIndex != nil { if swag.IsZero(o.PostgresShowIndex) { // not required @@ -838,6 +850,7 @@ func (o *StartServiceActionBody) contextValidatePostgresShowIndex(ctx context.Co } func (o *StartServiceActionBody) contextValidatePTMongodbSummary(ctx context.Context, formats strfmt.Registry) error { + if o.PTMongodbSummary != nil { if swag.IsZero(o.PTMongodbSummary) { // not required @@ -862,6 +875,7 @@ func (o *StartServiceActionBody) contextValidatePTMongodbSummary(ctx context.Con } func (o *StartServiceActionBody) contextValidatePTMysqlSummary(ctx context.Context, formats strfmt.Registry) error { + if o.PTMysqlSummary != nil { if swag.IsZero(o.PTMysqlSummary) { // not required @@ -886,6 +900,7 @@ func (o *StartServiceActionBody) contextValidatePTMysqlSummary(ctx context.Conte } func (o *StartServiceActionBody) contextValidatePTPostgresSummary(ctx context.Context, formats strfmt.Registry) error { + if o.PTPostgresSummary != nil { if swag.IsZero(o.PTPostgresSummary) { // not required @@ -932,6 +947,7 @@ StartServiceActionDefaultBody start service action default body swagger:model StartServiceActionDefaultBody */ type StartServiceActionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -1001,7 +1017,9 @@ func (o *StartServiceActionDefaultBody) ContextValidate(ctx context.Context, for } func (o *StartServiceActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -1021,6 +1039,7 @@ func (o *StartServiceActionDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -1049,6 +1068,7 @@ StartServiceActionDefaultBodyDetailsItems0 start service action default body det swagger:model StartServiceActionDefaultBodyDetailsItems0 */ type StartServiceActionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -1060,6 +1080,7 @@ type StartServiceActionDefaultBodyDetailsItems0 struct { func (o *StartServiceActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -1097,6 +1118,7 @@ func (o *StartServiceActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o StartServiceActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -1160,6 +1182,7 @@ StartServiceActionOKBody start service action OK body swagger:model StartServiceActionOKBody */ type StartServiceActionOKBody struct { + // mongodb explain MongodbExplain *StartServiceActionOKBodyMongodbExplain `json:"mongodb_explain,omitempty"` @@ -1590,6 +1613,7 @@ func (o *StartServiceActionOKBody) ContextValidate(ctx context.Context, formats } func (o *StartServiceActionOKBody) contextValidateMongodbExplain(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExplain != nil { if swag.IsZero(o.MongodbExplain) { // not required @@ -1614,6 +1638,7 @@ func (o *StartServiceActionOKBody) contextValidateMongodbExplain(ctx context.Con } func (o *StartServiceActionOKBody) contextValidateMysqlExplain(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlExplain != nil { if swag.IsZero(o.MysqlExplain) { // not required @@ -1638,6 +1663,7 @@ func (o *StartServiceActionOKBody) contextValidateMysqlExplain(ctx context.Conte } func (o *StartServiceActionOKBody) contextValidateMysqlExplainJSON(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlExplainJSON != nil { if swag.IsZero(o.MysqlExplainJSON) { // not required @@ -1662,6 +1688,7 @@ func (o *StartServiceActionOKBody) contextValidateMysqlExplainJSON(ctx context.C } func (o *StartServiceActionOKBody) contextValidateMysqlExplainTraditionalJSON(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlExplainTraditionalJSON != nil { if swag.IsZero(o.MysqlExplainTraditionalJSON) { // not required @@ -1686,6 +1713,7 @@ func (o *StartServiceActionOKBody) contextValidateMysqlExplainTraditionalJSON(ct } func (o *StartServiceActionOKBody) contextValidateMysqlShowCreateTable(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlShowCreateTable != nil { if swag.IsZero(o.MysqlShowCreateTable) { // not required @@ -1710,6 +1738,7 @@ func (o *StartServiceActionOKBody) contextValidateMysqlShowCreateTable(ctx conte } func (o *StartServiceActionOKBody) contextValidateMysqlShowIndex(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlShowIndex != nil { if swag.IsZero(o.MysqlShowIndex) { // not required @@ -1734,6 +1763,7 @@ func (o *StartServiceActionOKBody) contextValidateMysqlShowIndex(ctx context.Con } func (o *StartServiceActionOKBody) contextValidateMysqlShowTableStatus(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlShowTableStatus != nil { if swag.IsZero(o.MysqlShowTableStatus) { // not required @@ -1758,6 +1788,7 @@ func (o *StartServiceActionOKBody) contextValidateMysqlShowTableStatus(ctx conte } func (o *StartServiceActionOKBody) contextValidatePostgresqlShowCreateTable(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresqlShowCreateTable != nil { if swag.IsZero(o.PostgresqlShowCreateTable) { // not required @@ -1782,6 +1813,7 @@ func (o *StartServiceActionOKBody) contextValidatePostgresqlShowCreateTable(ctx } func (o *StartServiceActionOKBody) contextValidatePostgresqlShowIndex(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresqlShowIndex != nil { if swag.IsZero(o.PostgresqlShowIndex) { // not required @@ -1806,6 +1838,7 @@ func (o *StartServiceActionOKBody) contextValidatePostgresqlShowIndex(ctx contex } func (o *StartServiceActionOKBody) contextValidatePTMongodbSummary(ctx context.Context, formats strfmt.Registry) error { + if o.PTMongodbSummary != nil { if swag.IsZero(o.PTMongodbSummary) { // not required @@ -1830,6 +1863,7 @@ func (o *StartServiceActionOKBody) contextValidatePTMongodbSummary(ctx context.C } func (o *StartServiceActionOKBody) contextValidatePTMysqlSummary(ctx context.Context, formats strfmt.Registry) error { + if o.PTMysqlSummary != nil { if swag.IsZero(o.PTMysqlSummary) { // not required @@ -1854,6 +1888,7 @@ func (o *StartServiceActionOKBody) contextValidatePTMysqlSummary(ctx context.Con } func (o *StartServiceActionOKBody) contextValidatePTPostgresSummary(ctx context.Context, formats strfmt.Registry) error { + if o.PTPostgresSummary != nil { if swag.IsZero(o.PTPostgresSummary) { // not required @@ -1900,6 +1935,7 @@ StartServiceActionOKBodyMongodbExplain start service action OK body mongodb expl swagger:model StartServiceActionOKBodyMongodbExplain */ type StartServiceActionOKBodyMongodbExplain struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -1940,6 +1976,7 @@ StartServiceActionOKBodyMysqlExplain start service action OK body mysql explain swagger:model StartServiceActionOKBodyMysqlExplain */ type StartServiceActionOKBodyMysqlExplain struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -1980,6 +2017,7 @@ StartServiceActionOKBodyMysqlExplainJSON start service action OK body mysql expl swagger:model StartServiceActionOKBodyMysqlExplainJSON */ type StartServiceActionOKBodyMysqlExplainJSON struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2020,6 +2058,7 @@ StartServiceActionOKBodyMysqlExplainTraditionalJSON start service action OK body swagger:model StartServiceActionOKBodyMysqlExplainTraditionalJSON */ type StartServiceActionOKBodyMysqlExplainTraditionalJSON struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2060,6 +2099,7 @@ StartServiceActionOKBodyMysqlShowCreateTable start service action OK body mysql swagger:model StartServiceActionOKBodyMysqlShowCreateTable */ type StartServiceActionOKBodyMysqlShowCreateTable struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2100,6 +2140,7 @@ StartServiceActionOKBodyMysqlShowIndex start service action OK body mysql show i swagger:model StartServiceActionOKBodyMysqlShowIndex */ type StartServiceActionOKBodyMysqlShowIndex struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2140,6 +2181,7 @@ StartServiceActionOKBodyMysqlShowTableStatus start service action OK body mysql swagger:model StartServiceActionOKBodyMysqlShowTableStatus */ type StartServiceActionOKBodyMysqlShowTableStatus struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2180,6 +2222,7 @@ StartServiceActionOKBodyPTMongodbSummary Message to retrieve the prepared pt-mon swagger:model StartServiceActionOKBodyPTMongodbSummary */ type StartServiceActionOKBodyPTMongodbSummary struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2220,6 +2263,7 @@ StartServiceActionOKBodyPTMysqlSummary Message to retrieve the prepared pt-mysql swagger:model StartServiceActionOKBodyPTMysqlSummary */ type StartServiceActionOKBodyPTMysqlSummary struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2260,6 +2304,7 @@ StartServiceActionOKBodyPTPostgresSummary Message to retrieve the prepared pt-pg swagger:model StartServiceActionOKBodyPTPostgresSummary */ type StartServiceActionOKBodyPTPostgresSummary struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2300,6 +2345,7 @@ StartServiceActionOKBodyPostgresqlShowCreateTable start service action OK body p swagger:model StartServiceActionOKBodyPostgresqlShowCreateTable */ type StartServiceActionOKBodyPostgresqlShowCreateTable struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2340,6 +2386,7 @@ StartServiceActionOKBodyPostgresqlShowIndex start service action OK body postgre swagger:model StartServiceActionOKBodyPostgresqlShowIndex */ type StartServiceActionOKBodyPostgresqlShowIndex struct { + // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2380,6 +2427,7 @@ StartServiceActionParamsBodyMongodbExplain start service action params body mong swagger:model StartServiceActionParamsBodyMongodbExplain */ type StartServiceActionParamsBodyMongodbExplain struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2423,6 +2471,7 @@ StartServiceActionParamsBodyMysqlExplain start service action params body mysql swagger:model StartServiceActionParamsBodyMysqlExplain */ type StartServiceActionParamsBodyMysqlExplain struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2472,6 +2521,7 @@ StartServiceActionParamsBodyMysqlExplainJSON start service action params body my swagger:model StartServiceActionParamsBodyMysqlExplainJSON */ type StartServiceActionParamsBodyMysqlExplainJSON struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2521,6 +2571,7 @@ StartServiceActionParamsBodyMysqlExplainTraditionalJSON start service action par swagger:model StartServiceActionParamsBodyMysqlExplainTraditionalJSON */ type StartServiceActionParamsBodyMysqlExplainTraditionalJSON struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2570,6 +2621,7 @@ StartServiceActionParamsBodyMysqlShowCreateTable start service action params bod swagger:model StartServiceActionParamsBodyMysqlShowCreateTable */ type StartServiceActionParamsBodyMysqlShowCreateTable struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2616,6 +2668,7 @@ StartServiceActionParamsBodyMysqlShowIndex start service action params body mysq swagger:model StartServiceActionParamsBodyMysqlShowIndex */ type StartServiceActionParamsBodyMysqlShowIndex struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2662,6 +2715,7 @@ StartServiceActionParamsBodyMysqlShowTableStatus start service action params bod swagger:model StartServiceActionParamsBodyMysqlShowTableStatus */ type StartServiceActionParamsBodyMysqlShowTableStatus struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2708,6 +2762,7 @@ StartServiceActionParamsBodyPTMongodbSummary Message to prepare pt-mongodb-summa swagger:model StartServiceActionParamsBodyPTMongodbSummary */ type StartServiceActionParamsBodyPTMongodbSummary struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2748,6 +2803,7 @@ StartServiceActionParamsBodyPTMysqlSummary Message to prepare pt-mysql-summary d swagger:model StartServiceActionParamsBodyPTMysqlSummary */ type StartServiceActionParamsBodyPTMysqlSummary struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2788,6 +2844,7 @@ StartServiceActionParamsBodyPTPostgresSummary Message to prepare pt-pg-summary d swagger:model StartServiceActionParamsBodyPTPostgresSummary */ type StartServiceActionParamsBodyPTPostgresSummary struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2828,6 +2885,7 @@ StartServiceActionParamsBodyPostgresShowCreateTable start service action params swagger:model StartServiceActionParamsBodyPostgresShowCreateTable */ type StartServiceActionParamsBodyPostgresShowCreateTable struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2874,6 +2932,7 @@ StartServiceActionParamsBodyPostgresShowIndex start service action params body p swagger:model StartServiceActionParamsBodyPostgresShowIndex */ type StartServiceActionParamsBodyPostgresShowIndex struct { + // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` diff --git a/api/advisors/v1/advisors.pb.go b/api/advisors/v1/advisors.pb.go index 3e4995415ad..e86ccdfcea8 100644 --- a/api/advisors/v1/advisors.pb.go +++ b/api/advisors/v1/advisors.pb.go @@ -7,17 +7,15 @@ package advisorsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + v1 "github.com/percona/pmm/api/management/v1" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - v1 "github.com/percona/pmm/api/management/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -1358,36 +1356,33 @@ func file_advisors_v1_advisors_proto_rawDescGZIP() []byte { return file_advisors_v1_advisors_proto_rawDescData } -var ( - file_advisors_v1_advisors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_advisors_v1_advisors_proto_msgTypes = make([]protoimpl.MessageInfo, 20) - file_advisors_v1_advisors_proto_goTypes = []any{ - AdvisorCheckInterval(0), // 0: advisors.v1.AdvisorCheckInterval - AdvisorCheckFamily(0), // 1: advisors.v1.AdvisorCheckFamily - (*AdvisorCheckResult)(nil), // 2: advisors.v1.AdvisorCheckResult - (*CheckResultSummary)(nil), // 3: advisors.v1.CheckResultSummary - (*CheckResult)(nil), // 4: advisors.v1.CheckResult - (*AdvisorCheck)(nil), // 5: advisors.v1.AdvisorCheck - (*Advisor)(nil), // 6: advisors.v1.Advisor - (*ChangeAdvisorCheckParams)(nil), // 7: advisors.v1.ChangeAdvisorCheckParams - (*StartAdvisorChecksRequest)(nil), // 8: advisors.v1.StartAdvisorChecksRequest - (*StartAdvisorChecksResponse)(nil), // 9: advisors.v1.StartAdvisorChecksResponse - (*ListAdvisorChecksRequest)(nil), // 10: advisors.v1.ListAdvisorChecksRequest - (*ListAdvisorChecksResponse)(nil), // 11: advisors.v1.ListAdvisorChecksResponse - (*ListAdvisorsRequest)(nil), // 12: advisors.v1.ListAdvisorsRequest - (*ListAdvisorsResponse)(nil), // 13: advisors.v1.ListAdvisorsResponse - (*ChangeAdvisorChecksRequest)(nil), // 14: advisors.v1.ChangeAdvisorChecksRequest - (*ChangeAdvisorChecksResponse)(nil), // 15: advisors.v1.ChangeAdvisorChecksResponse - (*ListFailedServicesRequest)(nil), // 16: advisors.v1.ListFailedServicesRequest - (*ListFailedServicesResponse)(nil), // 17: advisors.v1.ListFailedServicesResponse - (*GetFailedChecksRequest)(nil), // 18: advisors.v1.GetFailedChecksRequest - (*GetFailedChecksResponse)(nil), // 19: advisors.v1.GetFailedChecksResponse - nil, // 20: advisors.v1.AdvisorCheckResult.LabelsEntry - nil, // 21: advisors.v1.CheckResult.LabelsEntry - v1.Severity(0), // 22: management.v1.Severity - } -) - +var file_advisors_v1_advisors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_advisors_v1_advisors_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_advisors_v1_advisors_proto_goTypes = []any{ + (AdvisorCheckInterval)(0), // 0: advisors.v1.AdvisorCheckInterval + (AdvisorCheckFamily)(0), // 1: advisors.v1.AdvisorCheckFamily + (*AdvisorCheckResult)(nil), // 2: advisors.v1.AdvisorCheckResult + (*CheckResultSummary)(nil), // 3: advisors.v1.CheckResultSummary + (*CheckResult)(nil), // 4: advisors.v1.CheckResult + (*AdvisorCheck)(nil), // 5: advisors.v1.AdvisorCheck + (*Advisor)(nil), // 6: advisors.v1.Advisor + (*ChangeAdvisorCheckParams)(nil), // 7: advisors.v1.ChangeAdvisorCheckParams + (*StartAdvisorChecksRequest)(nil), // 8: advisors.v1.StartAdvisorChecksRequest + (*StartAdvisorChecksResponse)(nil), // 9: advisors.v1.StartAdvisorChecksResponse + (*ListAdvisorChecksRequest)(nil), // 10: advisors.v1.ListAdvisorChecksRequest + (*ListAdvisorChecksResponse)(nil), // 11: advisors.v1.ListAdvisorChecksResponse + (*ListAdvisorsRequest)(nil), // 12: advisors.v1.ListAdvisorsRequest + (*ListAdvisorsResponse)(nil), // 13: advisors.v1.ListAdvisorsResponse + (*ChangeAdvisorChecksRequest)(nil), // 14: advisors.v1.ChangeAdvisorChecksRequest + (*ChangeAdvisorChecksResponse)(nil), // 15: advisors.v1.ChangeAdvisorChecksResponse + (*ListFailedServicesRequest)(nil), // 16: advisors.v1.ListFailedServicesRequest + (*ListFailedServicesResponse)(nil), // 17: advisors.v1.ListFailedServicesResponse + (*GetFailedChecksRequest)(nil), // 18: advisors.v1.GetFailedChecksRequest + (*GetFailedChecksResponse)(nil), // 19: advisors.v1.GetFailedChecksResponse + nil, // 20: advisors.v1.AdvisorCheckResult.LabelsEntry + nil, // 21: advisors.v1.CheckResult.LabelsEntry + (v1.Severity)(0), // 22: management.v1.Severity +} var file_advisors_v1_advisors_proto_depIdxs = []int32{ 22, // 0: advisors.v1.AdvisorCheckResult.severity:type_name -> management.v1.Severity 20, // 1: advisors.v1.AdvisorCheckResult.labels:type_name -> advisors.v1.AdvisorCheckResult.LabelsEntry diff --git a/api/advisors/v1/advisors.pb.validate.go b/api/advisors/v1/advisors.pb.validate.go index 74c3d47a85b..2c9a192edc4 100644 --- a/api/advisors/v1/advisors.pb.validate.go +++ b/api/advisors/v1/advisors.pb.validate.go @@ -140,8 +140,7 @@ func (e AdvisorCheckResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AdvisorCheckResultValidationError{} @@ -263,8 +262,7 @@ func (e CheckResultSummaryValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckResultSummaryValidationError{} @@ -381,8 +379,7 @@ func (e CheckResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckResultValidationError{} @@ -493,8 +490,7 @@ func (e AdvisorCheckValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AdvisorCheckValidationError{} @@ -636,8 +632,7 @@ func (e AdvisorValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AdvisorValidationError{} @@ -747,8 +742,7 @@ func (e ChangeAdvisorCheckParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeAdvisorCheckParamsValidationError{} @@ -850,8 +844,7 @@ func (e StartAdvisorChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartAdvisorChecksRequestValidationError{} @@ -953,8 +946,7 @@ func (e StartAdvisorChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartAdvisorChecksResponseValidationError{} @@ -1056,8 +1048,7 @@ func (e ListAdvisorChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAdvisorChecksRequestValidationError{} @@ -1193,8 +1184,7 @@ func (e ListAdvisorChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAdvisorChecksResponseValidationError{} @@ -1296,8 +1286,7 @@ func (e ListAdvisorsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAdvisorsRequestValidationError{} @@ -1433,8 +1422,7 @@ func (e ListAdvisorsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAdvisorsResponseValidationError{} @@ -1570,8 +1558,7 @@ func (e ChangeAdvisorChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeAdvisorChecksRequestValidationError{} @@ -1674,8 +1661,7 @@ func (e ChangeAdvisorChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeAdvisorChecksResponseValidationError{} @@ -1777,8 +1763,7 @@ func (e ListFailedServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListFailedServicesRequestValidationError{} @@ -1914,8 +1899,7 @@ func (e ListFailedServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListFailedServicesResponseValidationError{} @@ -1953,6 +1937,7 @@ func (m *GetFailedChecksRequest) validate(all bool) error { // no validation rules for ServiceId if m.PageSize != nil { + if m.GetPageSize() < 1 { err := GetFailedChecksRequestValidationError{ field: "PageSize", @@ -1963,9 +1948,11 @@ func (m *GetFailedChecksRequest) validate(all bool) error { } errors = append(errors, err) } + } if m.PageIndex != nil { + if m.GetPageIndex() < 0 { err := GetFailedChecksRequestValidationError{ field: "PageIndex", @@ -1976,6 +1963,7 @@ func (m *GetFailedChecksRequest) validate(all bool) error { } errors = append(errors, err) } + } if len(errors) > 0 { @@ -2045,8 +2033,7 @@ func (e GetFailedChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetFailedChecksRequestValidationError{} @@ -2186,8 +2173,7 @@ func (e GetFailedChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetFailedChecksResponseValidationError{} diff --git a/api/advisors/v1/advisors_grpc.pb.go b/api/advisors/v1/advisors_grpc.pb.go index 968dd072fc8..b5a99aa9d13 100644 --- a/api/advisors/v1/advisors_grpc.pb.go +++ b/api/advisors/v1/advisors_grpc.pb.go @@ -8,7 +8,6 @@ package advisorsv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -147,23 +146,18 @@ type UnimplementedAdvisorServiceServer struct{} func (UnimplementedAdvisorServiceServer) ListFailedServices(context.Context, *ListFailedServicesRequest) (*ListFailedServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListFailedServices not implemented") } - func (UnimplementedAdvisorServiceServer) GetFailedChecks(context.Context, *GetFailedChecksRequest) (*GetFailedChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetFailedChecks not implemented") } - func (UnimplementedAdvisorServiceServer) StartAdvisorChecks(context.Context, *StartAdvisorChecksRequest) (*StartAdvisorChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartAdvisorChecks not implemented") } - func (UnimplementedAdvisorServiceServer) ListAdvisorChecks(context.Context, *ListAdvisorChecksRequest) (*ListAdvisorChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAdvisorChecks not implemented") } - func (UnimplementedAdvisorServiceServer) ListAdvisors(context.Context, *ListAdvisorsRequest) (*ListAdvisorsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAdvisors not implemented") } - func (UnimplementedAdvisorServiceServer) ChangeAdvisorChecks(context.Context, *ChangeAdvisorChecksRequest) (*ChangeAdvisorChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeAdvisorChecks not implemented") } diff --git a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go index 9f9ee299089..a6f9670f4d3 100644 --- a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go @@ -60,6 +60,7 @@ ChangeAdvisorChecksParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type ChangeAdvisorChecksParams struct { + // Body. Body ChangeAdvisorChecksBody @@ -129,6 +130,7 @@ func (o *ChangeAdvisorChecksParams) SetBody(body ChangeAdvisorChecksBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeAdvisorChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go index 5206e6f500b..bd687235181 100644 --- a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go @@ -105,6 +105,7 @@ func (o *ChangeAdvisorChecksOK) GetPayload() any { } func (o *ChangeAdvisorChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,6 +177,7 @@ func (o *ChangeAdvisorChecksDefault) GetPayload() *ChangeAdvisorChecksDefaultBod } func (o *ChangeAdvisorChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeAdvisorChecksDefaultBody) // response payload @@ -191,6 +193,7 @@ ChangeAdvisorChecksBody change advisor checks body swagger:model ChangeAdvisorChecksBody */ type ChangeAdvisorChecksBody struct { + // params Params []*ChangeAdvisorChecksParamsBodyParamsItems0 `json:"params"` } @@ -254,7 +257,9 @@ func (o *ChangeAdvisorChecksBody) ContextValidate(ctx context.Context, formats s } func (o *ChangeAdvisorChecksBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Params); i++ { + if o.Params[i] != nil { if swag.IsZero(o.Params[i]) { // not required @@ -274,6 +279,7 @@ func (o *ChangeAdvisorChecksBody) contextValidateParams(ctx context.Context, for return err } } + } return nil @@ -302,6 +308,7 @@ ChangeAdvisorChecksDefaultBody change advisor checks default body swagger:model ChangeAdvisorChecksDefaultBody */ type ChangeAdvisorChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -371,7 +378,9 @@ func (o *ChangeAdvisorChecksDefaultBody) ContextValidate(ctx context.Context, fo } func (o *ChangeAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -391,6 +400,7 @@ func (o *ChangeAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -419,6 +429,7 @@ ChangeAdvisorChecksDefaultBodyDetailsItems0 change advisor checks default body d swagger:model ChangeAdvisorChecksDefaultBodyDetailsItems0 */ type ChangeAdvisorChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -430,6 +441,7 @@ type ChangeAdvisorChecksDefaultBodyDetailsItems0 struct { func (o *ChangeAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -467,6 +479,7 @@ func (o *ChangeAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeAdvisorChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -530,6 +543,7 @@ ChangeAdvisorChecksParamsBodyParamsItems0 ChangeAdvisorCheckParams specifies a s swagger:model ChangeAdvisorChecksParamsBodyParamsItems0 */ type ChangeAdvisorChecksParamsBodyParamsItems0 struct { + // The name of the check to change. Name string `json:"name,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go index 0248b1355a4..87eedd930ea 100644 --- a/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go @@ -61,6 +61,7 @@ GetFailedChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetFailedChecksParams struct { + /* PageIndex. Index of the requested page, starts from 0. @@ -171,6 +172,7 @@ func (o *GetFailedChecksParams) SetServiceID(serviceID *string) { // 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 } @@ -186,6 +188,7 @@ func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strf } qPageIndex := swag.FormatInt32(qrPageIndex) if qPageIndex != "" { + if err := r.SetQueryParam("page_index", qPageIndex); err != nil { return err } @@ -202,6 +205,7 @@ func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strf } qPageSize := swag.FormatInt32(qrPageSize) if qPageSize != "" { + if err := r.SetQueryParam("page_size", qPageSize); err != nil { return err } @@ -218,6 +222,7 @@ func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strf } qServiceID := qrServiceID if qServiceID != "" { + if err := r.SetQueryParam("service_id", qServiceID); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go b/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go index a74c7943f5a..80ff7506eb0 100644 --- a/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go @@ -105,6 +105,7 @@ func (o *GetFailedChecksOK) GetPayload() *GetFailedChecksOKBody { } func (o *GetFailedChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetFailedChecksOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetFailedChecksDefault) GetPayload() *GetFailedChecksDefaultBody { } func (o *GetFailedChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetFailedChecksDefaultBody) // response payload @@ -193,6 +195,7 @@ GetFailedChecksDefaultBody get failed checks default body swagger:model GetFailedChecksDefaultBody */ type GetFailedChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *GetFailedChecksDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -310,6 +316,7 @@ GetFailedChecksDefaultBodyDetailsItems0 get failed checks default body details i swagger:model GetFailedChecksDefaultBodyDetailsItems0 */ type GetFailedChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type GetFailedChecksDefaultBodyDetailsItems0 struct { func (o *GetFailedChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *GetFailedChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o GetFailedChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ GetFailedChecksOKBody get failed checks OK body swagger:model GetFailedChecksOKBody */ type GetFailedChecksOKBody struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -490,7 +500,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 swag.IsZero(o.Results[i]) { // not required @@ -510,6 +522,7 @@ func (o *GetFailedChecksOKBody) contextValidateResults(ctx context.Context, form return err } } + } return nil @@ -538,6 +551,7 @@ GetFailedChecksOKBodyResultsItems0 CheckResult represents the check results for swagger:model GetFailedChecksOKBodyResultsItems0 */ type GetFailedChecksOKBodyResultsItems0 struct { + // summary Summary string `json:"summary,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go index 23e2a16e65b..4718c378e1a 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go @@ -115,6 +115,7 @@ func (o *ListAdvisorChecksParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListAdvisorChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go index 1696a05ac3d..9b715e5fb64 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go @@ -105,6 +105,7 @@ func (o *ListAdvisorChecksOK) GetPayload() *ListAdvisorChecksOKBody { } func (o *ListAdvisorChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAdvisorChecksOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListAdvisorChecksDefault) GetPayload() *ListAdvisorChecksDefaultBody { } func (o *ListAdvisorChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAdvisorChecksDefaultBody) // response payload @@ -193,6 +195,7 @@ ListAdvisorChecksDefaultBody list advisor checks default body swagger:model ListAdvisorChecksDefaultBody */ type ListAdvisorChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListAdvisorChecksDefaultBody) ContextValidate(ctx context.Context, form } func (o *ListAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -310,6 +316,7 @@ ListAdvisorChecksDefaultBodyDetailsItems0 list advisor checks default body detai swagger:model ListAdvisorChecksDefaultBodyDetailsItems0 */ type ListAdvisorChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListAdvisorChecksDefaultBodyDetailsItems0 struct { func (o *ListAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) e // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAdvisorChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListAdvisorChecksOKBody list advisor checks OK body swagger:model ListAdvisorChecksOKBody */ type ListAdvisorChecksOKBody struct { + // checks Checks []*ListAdvisorChecksOKBodyChecksItems0 `json:"checks"` } @@ -484,7 +494,9 @@ func (o *ListAdvisorChecksOKBody) ContextValidate(ctx context.Context, formats s } func (o *ListAdvisorChecksOKBody) contextValidateChecks(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Checks); i++ { + if o.Checks[i] != nil { if swag.IsZero(o.Checks[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListAdvisorChecksOKBody) contextValidateChecks(ctx context.Context, for return err } } + } return nil @@ -532,6 +545,7 @@ ListAdvisorChecksOKBodyChecksItems0 AdvisorCheck contains check name and status. swagger:model ListAdvisorChecksOKBodyChecksItems0 */ type ListAdvisorChecksOKBodyChecksItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go b/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go index 214b86b0951..375bb68b896 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go @@ -115,6 +115,7 @@ func (o *ListAdvisorsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListAdvisorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go b/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go index 4631a560e62..6f3228b661a 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go @@ -105,6 +105,7 @@ func (o *ListAdvisorsOK) GetPayload() *ListAdvisorsOKBody { } func (o *ListAdvisorsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAdvisorsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListAdvisorsDefault) GetPayload() *ListAdvisorsDefaultBody { } func (o *ListAdvisorsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAdvisorsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListAdvisorsDefaultBody list advisors default body swagger:model ListAdvisorsDefaultBody */ type ListAdvisorsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListAdvisorsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListAdvisorsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListAdvisorsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -310,6 +316,7 @@ ListAdvisorsDefaultBodyDetailsItems0 list advisors default body details items0 swagger:model ListAdvisorsDefaultBodyDetailsItems0 */ type ListAdvisorsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListAdvisorsDefaultBodyDetailsItems0 struct { func (o *ListAdvisorsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListAdvisorsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAdvisorsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListAdvisorsOKBody list advisors OK body swagger:model ListAdvisorsOKBody */ type ListAdvisorsOKBody struct { + // advisors Advisors []*ListAdvisorsOKBodyAdvisorsItems0 `json:"advisors"` } @@ -484,7 +494,9 @@ func (o *ListAdvisorsOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListAdvisorsOKBody) contextValidateAdvisors(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Advisors); i++ { + if o.Advisors[i] != nil { if swag.IsZero(o.Advisors[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListAdvisorsOKBody) contextValidateAdvisors(ctx context.Context, format return err } } + } return nil @@ -532,6 +545,7 @@ ListAdvisorsOKBodyAdvisorsItems0 list advisors OK body advisors items0 swagger:model ListAdvisorsOKBodyAdvisorsItems0 */ type ListAdvisorsOKBodyAdvisorsItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -610,7 +624,9 @@ func (o *ListAdvisorsOKBodyAdvisorsItems0) ContextValidate(ctx context.Context, } func (o *ListAdvisorsOKBodyAdvisorsItems0) contextValidateChecks(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Checks); i++ { + if o.Checks[i] != nil { if swag.IsZero(o.Checks[i]) { // not required @@ -630,6 +646,7 @@ func (o *ListAdvisorsOKBodyAdvisorsItems0) contextValidateChecks(ctx context.Con return err } } + } return nil @@ -658,6 +675,7 @@ ListAdvisorsOKBodyAdvisorsItems0ChecksItems0 AdvisorCheck contains check name an swagger:model ListAdvisorsOKBodyAdvisorsItems0ChecksItems0 */ type ListAdvisorsOKBodyAdvisorsItems0ChecksItems0 struct { + // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go b/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go index 7b386ac01a3..579c66ebdae 100644 --- a/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go @@ -115,6 +115,7 @@ func (o *ListFailedServicesParams) SetHTTPClient(client *http.Client) { // 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/advisors/v1/json/client/advisor_service/list_failed_services_responses.go b/api/advisors/v1/json/client/advisor_service/list_failed_services_responses.go index f8a8531e45e..8cc3888c528 100644 --- a/api/advisors/v1/json/client/advisor_service/list_failed_services_responses.go +++ b/api/advisors/v1/json/client/advisor_service/list_failed_services_responses.go @@ -104,6 +104,7 @@ func (o *ListFailedServicesOK) GetPayload() *ListFailedServicesOKBody { } func (o *ListFailedServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListFailedServicesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListFailedServicesDefault) GetPayload() *ListFailedServicesDefaultBody } func (o *ListFailedServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListFailedServicesDefaultBody) // response payload @@ -192,6 +194,7 @@ ListFailedServicesDefaultBody list failed services default body swagger:model ListFailedServicesDefaultBody */ type ListFailedServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListFailedServicesDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -309,6 +315,7 @@ ListFailedServicesDefaultBodyDetailsItems0 list failed services default body det swagger:model ListFailedServicesDefaultBodyDetailsItems0 */ type ListFailedServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListFailedServicesDefaultBodyDetailsItems0 struct { func (o *ListFailedServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListFailedServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o ListFailedServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListFailedServicesOKBody list failed services OK body swagger:model ListFailedServicesOKBody */ type ListFailedServicesOKBody struct { + // result Result []*ListFailedServicesOKBodyResultItems0 `json:"result"` } @@ -483,7 +493,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 swag.IsZero(o.Result[i]) { // not required @@ -503,6 +515,7 @@ func (o *ListFailedServicesOKBody) contextValidateResult(ctx context.Context, fo return err } } + } return nil @@ -531,6 +544,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/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go index 879f8418f64..9a9d66c843a 100644 --- a/api/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go @@ -60,6 +60,7 @@ StartAdvisorChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartAdvisorChecksParams struct { + // Body. Body StartAdvisorChecksBody @@ -129,6 +130,7 @@ func (o *StartAdvisorChecksParams) SetBody(body StartAdvisorChecksBody) { // WriteToRequest writes these params to a swagger request func (o *StartAdvisorChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go index 4fd31464244..c1c2b9eea3f 100644 --- a/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go @@ -104,6 +104,7 @@ func (o *StartAdvisorChecksOK) GetPayload() any { } func (o *StartAdvisorChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *StartAdvisorChecksDefault) GetPayload() *StartAdvisorChecksDefaultBody } func (o *StartAdvisorChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartAdvisorChecksDefaultBody) // response payload @@ -190,6 +192,7 @@ StartAdvisorChecksBody start advisor checks body swagger:model StartAdvisorChecksBody */ type StartAdvisorChecksBody struct { + // Names of the checks that should be started. Names []string `json:"names"` } @@ -227,6 +230,7 @@ StartAdvisorChecksDefaultBody start advisor checks default body swagger:model StartAdvisorChecksDefaultBody */ type StartAdvisorChecksDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,9 @@ func (o *StartAdvisorChecksDefaultBody) ContextValidate(ctx context.Context, for } func (o *StartAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *StartAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -344,6 +351,7 @@ StartAdvisorChecksDefaultBodyDetailsItems0 start advisor checks default body det swagger:model StartAdvisorChecksDefaultBodyDetailsItems0 */ type StartAdvisorChecksDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type StartAdvisorChecksDefaultBodyDetailsItems0 struct { func (o *StartAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *StartAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o StartAdvisorChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/agent/pb/agent.pb.go b/api/agent/pb/agent.pb.go index cfe97cee491..3e266018313 100644 --- a/api/agent/pb/agent.pb.go +++ b/api/agent/pb/agent.pb.go @@ -7,13 +7,11 @@ package pb import ( - reflect "reflect" - unsafe "unsafe" - + v1 "github.com/percona/pmm/api/agent/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - v1 "github.com/percona/pmm/api/agent/v1" + reflect "reflect" + unsafe "unsafe" ) const ( @@ -37,7 +35,6 @@ var file_agent_pb_agent_proto_goTypes = []any{ (*v1.AgentMessage)(nil), // 0: agent.v1.AgentMessage (*v1.ServerMessage)(nil), // 1: agent.v1.ServerMessage } - var file_agent_pb_agent_proto_depIdxs = []int32{ 0, // 0: agent.Agent.Connect:input_type -> agent.v1.AgentMessage 1, // 1: agent.Agent.Connect:output_type -> agent.v1.ServerMessage diff --git a/api/agent/pb/agent_grpc.pb.go b/api/agent/pb/agent_grpc.pb.go index 6755a51892e..591479ea96f 100644 --- a/api/agent/pb/agent_grpc.pb.go +++ b/api/agent/pb/agent_grpc.pb.go @@ -8,12 +8,10 @@ package pb import ( context "context" - + v1 "github.com/percona/pmm/api/agent/v1" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" - - v1 "github.com/percona/pmm/api/agent/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/api/agent/v1/agent.pb.go b/api/agent/v1/agent.pb.go index c42471205b1..4a4fb10c071 100644 --- a/api/agent/v1/agent.pb.go +++ b/api/agent/v1/agent.pb.go @@ -7,19 +7,17 @@ package agentv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - + v11 "github.com/percona/pmm/api/backup/v1" + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" 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" - - v11 "github.com/percona/pmm/api/backup/v1" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -3795,7 +3793,7 @@ type SetStateRequest_BuiltinAgent struct { func (x *SetStateRequest_BuiltinAgent) Reset() { *x = SetStateRequest_BuiltinAgent{} - mi := &file_agent_v1_agent_proto_msgTypes[45] + mi := &file_agent_v1_agent_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3807,7 +3805,7 @@ func (x *SetStateRequest_BuiltinAgent) String() string { func (*SetStateRequest_BuiltinAgent) ProtoMessage() {} func (x *SetStateRequest_BuiltinAgent) ProtoReflect() protoreflect.Message { - mi := &file_agent_v1_agent_proto_msgTypes[45] + mi := &file_agent_v1_agent_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3820,7 +3818,7 @@ func (x *SetStateRequest_BuiltinAgent) ProtoReflect() protoreflect.Message { // Deprecated: Use SetStateRequest_BuiltinAgent.ProtoReflect.Descriptor instead. func (*SetStateRequest_BuiltinAgent) Descriptor() ([]byte, []int) { - return file_agent_v1_agent_proto_rawDescGZIP(), []int{7, 2} + return file_agent_v1_agent_proto_rawDescGZIP(), []int{7, 1} } func (x *SetStateRequest_BuiltinAgent) GetType() v1.AgentType { @@ -6671,10 +6669,7 @@ const file_agent_v1_agent_proto_rawDesc = "" + "\x12env_variable_names\x18\b \x03(\tR\x10envVariableNames\x1a<\n" + "\x0eTextFilesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1ai\n" + - "\x13AgentProcessesEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12<\n" + - "\x05value\x18\x02 \x01(\v2&.agent.v1.SetStateRequest.AgentProcessR\x05value:\x028\x01\x1a\x86\x05\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x86\x05\n" + "\fBuiltinAgent\x12+\n" + "\x04type\x18\x01 \x01(\x0e2\x17.inventory.v1.AgentTypeR\x04type\x12\x16\n" + "\x03dsn\x18\x02 \x01(\tB\x04\x88\xb5\x18\x03R\x03dsn\x12(\n" + @@ -6695,7 +6690,10 @@ const file_agent_v1_agent_proto_rawDesc = "" + "\fservice_name\x18\r \x01(\tR\vserviceName\x1a6\n" + "\bEnvEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1ah\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1ai\n" + + "\x13AgentProcessesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12<\n" + + "\x05value\x18\x02 \x01(\v2&.agent.v1.SetStateRequest.AgentProcessR\x05value:\x028\x01\x1ah\n" + "\x12BuiltinAgentsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12<\n" + "\x05value\x18\x02 \x01(\v2&.agent.v1.SetStateRequest.BuiltinAgentR\x05value:\x028\x01\"\x12\n" + @@ -7110,124 +7108,121 @@ func file_agent_v1_agent_proto_rawDescGZIP() []byte { return file_agent_v1_agent_proto_rawDescData } -var ( - file_agent_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_agent_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 92) - file_agent_v1_agent_proto_goTypes = []any{ - MysqlExplainOutputFormat(0), // 0: agent.v1.MysqlExplainOutputFormat - StartActionRequest_RestartSystemServiceParams_SystemService(0), // 1: agent.v1.StartActionRequest.RestartSystemServiceParams.SystemService - (*TextFiles)(nil), // 2: agent.v1.TextFiles - (*Ping)(nil), // 3: agent.v1.Ping - (*Pong)(nil), // 4: agent.v1.Pong - (*QANCollectRequest)(nil), // 5: agent.v1.QANCollectRequest - (*QANCollectResponse)(nil), // 6: agent.v1.QANCollectResponse - (*StateChangedRequest)(nil), // 7: agent.v1.StateChangedRequest - (*StateChangedResponse)(nil), // 8: agent.v1.StateChangedResponse - (*SetStateRequest)(nil), // 9: agent.v1.SetStateRequest - (*SetStateResponse)(nil), // 10: agent.v1.SetStateResponse - (*QueryActionValue)(nil), // 11: agent.v1.QueryActionValue - (*QueryActionSlice)(nil), // 12: agent.v1.QueryActionSlice - (*QueryActionMap)(nil), // 13: agent.v1.QueryActionMap - (*QueryActionBinary)(nil), // 14: agent.v1.QueryActionBinary - (*QueryActionResult)(nil), // 15: agent.v1.QueryActionResult - (*StartActionRequest)(nil), // 16: agent.v1.StartActionRequest - (*StartActionResponse)(nil), // 17: agent.v1.StartActionResponse - (*StopActionRequest)(nil), // 18: agent.v1.StopActionRequest - (*StopActionResponse)(nil), // 19: agent.v1.StopActionResponse - (*ActionResultRequest)(nil), // 20: agent.v1.ActionResultRequest - (*ActionResultResponse)(nil), // 21: agent.v1.ActionResultResponse - (*PBMSwitchPITRRequest)(nil), // 22: agent.v1.PBMSwitchPITRRequest - (*PBMSwitchPITRResponse)(nil), // 23: agent.v1.PBMSwitchPITRResponse - (*AgentLogsRequest)(nil), // 24: agent.v1.AgentLogsRequest - (*AgentLogsResponse)(nil), // 25: agent.v1.AgentLogsResponse - (*CheckConnectionRequest)(nil), // 26: agent.v1.CheckConnectionRequest - (*CheckConnectionResponse)(nil), // 27: agent.v1.CheckConnectionResponse - (*ServiceInfoRequest)(nil), // 28: agent.v1.ServiceInfoRequest - (*ServiceInfoResponse)(nil), // 29: agent.v1.ServiceInfoResponse - (*JobStatusRequest)(nil), // 30: agent.v1.JobStatusRequest - (*JobStatusResponse)(nil), // 31: agent.v1.JobStatusResponse - (*S3LocationConfig)(nil), // 32: agent.v1.S3LocationConfig - (*FilesystemLocationConfig)(nil), // 33: agent.v1.FilesystemLocationConfig - (*StartJobRequest)(nil), // 34: agent.v1.StartJobRequest - (*StartJobResponse)(nil), // 35: agent.v1.StartJobResponse - (*StopJobRequest)(nil), // 36: agent.v1.StopJobRequest - (*StopJobResponse)(nil), // 37: agent.v1.StopJobResponse - (*JobResult)(nil), // 38: agent.v1.JobResult - (*JobProgress)(nil), // 39: agent.v1.JobProgress - (*GetVersionsRequest)(nil), // 40: agent.v1.GetVersionsRequest - (*GetVersionsResponse)(nil), // 41: agent.v1.GetVersionsResponse - (*AgentMessage)(nil), // 42: agent.v1.AgentMessage - (*ServerMessage)(nil), // 43: agent.v1.ServerMessage - nil, // 44: agent.v1.TextFiles.FilesEntry - (*SetStateRequest_AgentProcess)(nil), // 45: agent.v1.SetStateRequest.AgentProcess - nil, // 46: agent.v1.SetStateRequest.AgentProcessesEntry - (*SetStateRequest_BuiltinAgent)(nil), // 47: agent.v1.SetStateRequest.BuiltinAgent - nil, // 48: agent.v1.SetStateRequest.BuiltinAgentsEntry - nil, // 49: agent.v1.SetStateRequest.AgentProcess.TextFilesEntry - nil, // 50: agent.v1.SetStateRequest.BuiltinAgent.EnvEntry - nil, // 51: agent.v1.QueryActionMap.MapEntry - (*StartActionRequest_MySQLExplainParams)(nil), // 52: agent.v1.StartActionRequest.MySQLExplainParams - (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 53: agent.v1.StartActionRequest.MySQLShowCreateTableParams - (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 54: agent.v1.StartActionRequest.MySQLShowTableStatusParams - (*StartActionRequest_MySQLShowIndexParams)(nil), // 55: agent.v1.StartActionRequest.MySQLShowIndexParams - (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 56: agent.v1.StartActionRequest.PostgreSQLShowCreateTableParams - (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 57: agent.v1.StartActionRequest.PostgreSQLShowIndexParams - (*StartActionRequest_MongoDBExplainParams)(nil), // 58: agent.v1.StartActionRequest.MongoDBExplainParams - (*StartActionRequest_PTSummaryParams)(nil), // 59: agent.v1.StartActionRequest.PTSummaryParams - (*StartActionRequest_PTPgSummaryParams)(nil), // 60: agent.v1.StartActionRequest.PTPgSummaryParams - (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 61: agent.v1.StartActionRequest.PTMongoDBSummaryParams - (*StartActionRequest_PTMySQLSummaryParams)(nil), // 62: agent.v1.StartActionRequest.PTMySQLSummaryParams - (*StartActionRequest_MySQLQueryShowParams)(nil), // 63: agent.v1.StartActionRequest.MySQLQueryShowParams - (*StartActionRequest_MySQLQuerySelectParams)(nil), // 64: agent.v1.StartActionRequest.MySQLQuerySelectParams - (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 65: agent.v1.StartActionRequest.PostgreSQLQueryShowParams - (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 66: agent.v1.StartActionRequest.PostgreSQLQuerySelectParams - (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 67: agent.v1.StartActionRequest.MongoDBQueryGetParameterParams - (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 68: agent.v1.StartActionRequest.MongoDBQueryBuildInfoParams - (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 69: agent.v1.StartActionRequest.MongoDBQueryGetCmdLineOptsParams - (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 70: agent.v1.StartActionRequest.MongoDBQueryReplSetGetStatusParams - (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 71: agent.v1.StartActionRequest.MongoDBQueryGetDiagnosticDataParams - (*StartActionRequest_RestartSystemServiceParams)(nil), // 72: agent.v1.StartActionRequest.RestartSystemServiceParams - (*CheckConnectionResponse_Stats)(nil), // 73: agent.v1.CheckConnectionResponse.Stats - (*StartJobRequest_MySQLBackup)(nil), // 74: agent.v1.StartJobRequest.MySQLBackup - (*StartJobRequest_MySQLRestoreBackup)(nil), // 75: agent.v1.StartJobRequest.MySQLRestoreBackup - (*StartJobRequest_MongoDBBackup)(nil), // 76: agent.v1.StartJobRequest.MongoDBBackup - (*StartJobRequest_MongoDBRestoreBackup)(nil), // 77: agent.v1.StartJobRequest.MongoDBRestoreBackup - (*JobResult_Error)(nil), // 78: agent.v1.JobResult.Error - (*JobResult_MongoDBBackup)(nil), // 79: agent.v1.JobResult.MongoDBBackup - (*JobResult_MySQLBackup)(nil), // 80: agent.v1.JobResult.MySQLBackup - (*JobResult_MySQLRestoreBackup)(nil), // 81: agent.v1.JobResult.MySQLRestoreBackup - (*JobResult_MongoDBRestoreBackup)(nil), // 82: agent.v1.JobResult.MongoDBRestoreBackup - (*JobProgress_MySQLBackup)(nil), // 83: agent.v1.JobProgress.MySQLBackup - (*JobProgress_MySQLRestoreBackup)(nil), // 84: agent.v1.JobProgress.MySQLRestoreBackup - (*JobProgress_Logs)(nil), // 85: agent.v1.JobProgress.Logs - (*GetVersionsRequest_MySQLd)(nil), // 86: agent.v1.GetVersionsRequest.MySQLd - (*GetVersionsRequest_Xtrabackup)(nil), // 87: agent.v1.GetVersionsRequest.Xtrabackup - (*GetVersionsRequest_Xbcloud)(nil), // 88: agent.v1.GetVersionsRequest.Xbcloud - (*GetVersionsRequest_Qpress)(nil), // 89: agent.v1.GetVersionsRequest.Qpress - (*GetVersionsRequest_MongoDB)(nil), // 90: agent.v1.GetVersionsRequest.MongoDB - (*GetVersionsRequest_PBM)(nil), // 91: agent.v1.GetVersionsRequest.PBM - (*GetVersionsRequest_Software)(nil), // 92: agent.v1.GetVersionsRequest.Software - (*GetVersionsResponse_Version)(nil), // 93: agent.v1.GetVersionsResponse.Version - (*timestamppb.Timestamp)(nil), // 94: google.protobuf.Timestamp - (*MetricsBucket)(nil), // 95: agent.v1.MetricsBucket - v1.AgentStatus(0), // 96: inventory.v1.AgentStatus - (*durationpb.Duration)(nil), // 97: google.protobuf.Duration - v1.ServiceType(0), // 98: inventory.v1.ServiceType - (*status.Status)(nil), // 99: google.rpc.Status - v1.AgentType(0), // 100: inventory.v1.AgentType - (*v1.RTAOptions)(nil), // 101: inventory.v1.RTAOptions - v11.DataModel(0), // 102: backup.v1.DataModel - (*v11.PbmMetadata)(nil), // 103: backup.v1.PbmMetadata - (*v11.Metadata)(nil), // 104: backup.v1.Metadata - } -) - +var file_agent_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_agent_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 92) +var file_agent_v1_agent_proto_goTypes = []any{ + (MysqlExplainOutputFormat)(0), // 0: agent.v1.MysqlExplainOutputFormat + (StartActionRequest_RestartSystemServiceParams_SystemService)(0), // 1: agent.v1.StartActionRequest.RestartSystemServiceParams.SystemService + (*TextFiles)(nil), // 2: agent.v1.TextFiles + (*Ping)(nil), // 3: agent.v1.Ping + (*Pong)(nil), // 4: agent.v1.Pong + (*QANCollectRequest)(nil), // 5: agent.v1.QANCollectRequest + (*QANCollectResponse)(nil), // 6: agent.v1.QANCollectResponse + (*StateChangedRequest)(nil), // 7: agent.v1.StateChangedRequest + (*StateChangedResponse)(nil), // 8: agent.v1.StateChangedResponse + (*SetStateRequest)(nil), // 9: agent.v1.SetStateRequest + (*SetStateResponse)(nil), // 10: agent.v1.SetStateResponse + (*QueryActionValue)(nil), // 11: agent.v1.QueryActionValue + (*QueryActionSlice)(nil), // 12: agent.v1.QueryActionSlice + (*QueryActionMap)(nil), // 13: agent.v1.QueryActionMap + (*QueryActionBinary)(nil), // 14: agent.v1.QueryActionBinary + (*QueryActionResult)(nil), // 15: agent.v1.QueryActionResult + (*StartActionRequest)(nil), // 16: agent.v1.StartActionRequest + (*StartActionResponse)(nil), // 17: agent.v1.StartActionResponse + (*StopActionRequest)(nil), // 18: agent.v1.StopActionRequest + (*StopActionResponse)(nil), // 19: agent.v1.StopActionResponse + (*ActionResultRequest)(nil), // 20: agent.v1.ActionResultRequest + (*ActionResultResponse)(nil), // 21: agent.v1.ActionResultResponse + (*PBMSwitchPITRRequest)(nil), // 22: agent.v1.PBMSwitchPITRRequest + (*PBMSwitchPITRResponse)(nil), // 23: agent.v1.PBMSwitchPITRResponse + (*AgentLogsRequest)(nil), // 24: agent.v1.AgentLogsRequest + (*AgentLogsResponse)(nil), // 25: agent.v1.AgentLogsResponse + (*CheckConnectionRequest)(nil), // 26: agent.v1.CheckConnectionRequest + (*CheckConnectionResponse)(nil), // 27: agent.v1.CheckConnectionResponse + (*ServiceInfoRequest)(nil), // 28: agent.v1.ServiceInfoRequest + (*ServiceInfoResponse)(nil), // 29: agent.v1.ServiceInfoResponse + (*JobStatusRequest)(nil), // 30: agent.v1.JobStatusRequest + (*JobStatusResponse)(nil), // 31: agent.v1.JobStatusResponse + (*S3LocationConfig)(nil), // 32: agent.v1.S3LocationConfig + (*FilesystemLocationConfig)(nil), // 33: agent.v1.FilesystemLocationConfig + (*StartJobRequest)(nil), // 34: agent.v1.StartJobRequest + (*StartJobResponse)(nil), // 35: agent.v1.StartJobResponse + (*StopJobRequest)(nil), // 36: agent.v1.StopJobRequest + (*StopJobResponse)(nil), // 37: agent.v1.StopJobResponse + (*JobResult)(nil), // 38: agent.v1.JobResult + (*JobProgress)(nil), // 39: agent.v1.JobProgress + (*GetVersionsRequest)(nil), // 40: agent.v1.GetVersionsRequest + (*GetVersionsResponse)(nil), // 41: agent.v1.GetVersionsResponse + (*AgentMessage)(nil), // 42: agent.v1.AgentMessage + (*ServerMessage)(nil), // 43: agent.v1.ServerMessage + nil, // 44: agent.v1.TextFiles.FilesEntry + (*SetStateRequest_AgentProcess)(nil), // 45: agent.v1.SetStateRequest.AgentProcess + (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.v1.SetStateRequest.BuiltinAgent + nil, // 47: agent.v1.SetStateRequest.AgentProcessesEntry + nil, // 48: agent.v1.SetStateRequest.BuiltinAgentsEntry + nil, // 49: agent.v1.SetStateRequest.AgentProcess.TextFilesEntry + nil, // 50: agent.v1.SetStateRequest.BuiltinAgent.EnvEntry + nil, // 51: agent.v1.QueryActionMap.MapEntry + (*StartActionRequest_MySQLExplainParams)(nil), // 52: agent.v1.StartActionRequest.MySQLExplainParams + (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 53: agent.v1.StartActionRequest.MySQLShowCreateTableParams + (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 54: agent.v1.StartActionRequest.MySQLShowTableStatusParams + (*StartActionRequest_MySQLShowIndexParams)(nil), // 55: agent.v1.StartActionRequest.MySQLShowIndexParams + (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 56: agent.v1.StartActionRequest.PostgreSQLShowCreateTableParams + (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 57: agent.v1.StartActionRequest.PostgreSQLShowIndexParams + (*StartActionRequest_MongoDBExplainParams)(nil), // 58: agent.v1.StartActionRequest.MongoDBExplainParams + (*StartActionRequest_PTSummaryParams)(nil), // 59: agent.v1.StartActionRequest.PTSummaryParams + (*StartActionRequest_PTPgSummaryParams)(nil), // 60: agent.v1.StartActionRequest.PTPgSummaryParams + (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 61: agent.v1.StartActionRequest.PTMongoDBSummaryParams + (*StartActionRequest_PTMySQLSummaryParams)(nil), // 62: agent.v1.StartActionRequest.PTMySQLSummaryParams + (*StartActionRequest_MySQLQueryShowParams)(nil), // 63: agent.v1.StartActionRequest.MySQLQueryShowParams + (*StartActionRequest_MySQLQuerySelectParams)(nil), // 64: agent.v1.StartActionRequest.MySQLQuerySelectParams + (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 65: agent.v1.StartActionRequest.PostgreSQLQueryShowParams + (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 66: agent.v1.StartActionRequest.PostgreSQLQuerySelectParams + (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 67: agent.v1.StartActionRequest.MongoDBQueryGetParameterParams + (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 68: agent.v1.StartActionRequest.MongoDBQueryBuildInfoParams + (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 69: agent.v1.StartActionRequest.MongoDBQueryGetCmdLineOptsParams + (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 70: agent.v1.StartActionRequest.MongoDBQueryReplSetGetStatusParams + (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 71: agent.v1.StartActionRequest.MongoDBQueryGetDiagnosticDataParams + (*StartActionRequest_RestartSystemServiceParams)(nil), // 72: agent.v1.StartActionRequest.RestartSystemServiceParams + (*CheckConnectionResponse_Stats)(nil), // 73: agent.v1.CheckConnectionResponse.Stats + (*StartJobRequest_MySQLBackup)(nil), // 74: agent.v1.StartJobRequest.MySQLBackup + (*StartJobRequest_MySQLRestoreBackup)(nil), // 75: agent.v1.StartJobRequest.MySQLRestoreBackup + (*StartJobRequest_MongoDBBackup)(nil), // 76: agent.v1.StartJobRequest.MongoDBBackup + (*StartJobRequest_MongoDBRestoreBackup)(nil), // 77: agent.v1.StartJobRequest.MongoDBRestoreBackup + (*JobResult_Error)(nil), // 78: agent.v1.JobResult.Error + (*JobResult_MongoDBBackup)(nil), // 79: agent.v1.JobResult.MongoDBBackup + (*JobResult_MySQLBackup)(nil), // 80: agent.v1.JobResult.MySQLBackup + (*JobResult_MySQLRestoreBackup)(nil), // 81: agent.v1.JobResult.MySQLRestoreBackup + (*JobResult_MongoDBRestoreBackup)(nil), // 82: agent.v1.JobResult.MongoDBRestoreBackup + (*JobProgress_MySQLBackup)(nil), // 83: agent.v1.JobProgress.MySQLBackup + (*JobProgress_MySQLRestoreBackup)(nil), // 84: agent.v1.JobProgress.MySQLRestoreBackup + (*JobProgress_Logs)(nil), // 85: agent.v1.JobProgress.Logs + (*GetVersionsRequest_MySQLd)(nil), // 86: agent.v1.GetVersionsRequest.MySQLd + (*GetVersionsRequest_Xtrabackup)(nil), // 87: agent.v1.GetVersionsRequest.Xtrabackup + (*GetVersionsRequest_Xbcloud)(nil), // 88: agent.v1.GetVersionsRequest.Xbcloud + (*GetVersionsRequest_Qpress)(nil), // 89: agent.v1.GetVersionsRequest.Qpress + (*GetVersionsRequest_MongoDB)(nil), // 90: agent.v1.GetVersionsRequest.MongoDB + (*GetVersionsRequest_PBM)(nil), // 91: agent.v1.GetVersionsRequest.PBM + (*GetVersionsRequest_Software)(nil), // 92: agent.v1.GetVersionsRequest.Software + (*GetVersionsResponse_Version)(nil), // 93: agent.v1.GetVersionsResponse.Version + (*timestamppb.Timestamp)(nil), // 94: google.protobuf.Timestamp + (*MetricsBucket)(nil), // 95: agent.v1.MetricsBucket + (v1.AgentStatus)(0), // 96: inventory.v1.AgentStatus + (*durationpb.Duration)(nil), // 97: google.protobuf.Duration + (v1.ServiceType)(0), // 98: inventory.v1.ServiceType + (*status.Status)(nil), // 99: google.rpc.Status + (v1.AgentType)(0), // 100: inventory.v1.AgentType + (*v1.RTAOptions)(nil), // 101: inventory.v1.RTAOptions + (v11.DataModel)(0), // 102: backup.v1.DataModel + (*v11.PbmMetadata)(nil), // 103: backup.v1.PbmMetadata + (*v11.Metadata)(nil), // 104: backup.v1.Metadata +} var file_agent_v1_agent_proto_depIdxs = []int32{ 44, // 0: agent.v1.TextFiles.files:type_name -> agent.v1.TextFiles.FilesEntry 94, // 1: agent.v1.Pong.current_time:type_name -> google.protobuf.Timestamp 95, // 2: agent.v1.QANCollectRequest.metrics_bucket:type_name -> agent.v1.MetricsBucket 96, // 3: agent.v1.StateChangedRequest.status:type_name -> inventory.v1.AgentStatus - 46, // 4: agent.v1.SetStateRequest.agent_processes:type_name -> agent.v1.SetStateRequest.AgentProcessesEntry + 47, // 4: agent.v1.SetStateRequest.agent_processes:type_name -> agent.v1.SetStateRequest.AgentProcessesEntry 48, // 5: agent.v1.SetStateRequest.builtin_agents:type_name -> agent.v1.SetStateRequest.BuiltinAgentsEntry 94, // 6: agent.v1.QueryActionValue.timestamp:type_name -> google.protobuf.Timestamp 12, // 7: agent.v1.QueryActionValue.slice:type_name -> agent.v1.QueryActionSlice @@ -7321,12 +7316,12 @@ var file_agent_v1_agent_proto_depIdxs = []int32{ 28, // 95: agent.v1.ServerMessage.service_info:type_name -> agent.v1.ServiceInfoRequest 100, // 96: agent.v1.SetStateRequest.AgentProcess.type:type_name -> inventory.v1.AgentType 49, // 97: agent.v1.SetStateRequest.AgentProcess.text_files:type_name -> agent.v1.SetStateRequest.AgentProcess.TextFilesEntry - 45, // 98: agent.v1.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.v1.SetStateRequest.AgentProcess - 100, // 99: agent.v1.SetStateRequest.BuiltinAgent.type:type_name -> inventory.v1.AgentType - 2, // 100: agent.v1.SetStateRequest.BuiltinAgent.text_files:type_name -> agent.v1.TextFiles - 50, // 101: agent.v1.SetStateRequest.BuiltinAgent.env:type_name -> agent.v1.SetStateRequest.BuiltinAgent.EnvEntry - 101, // 102: agent.v1.SetStateRequest.BuiltinAgent.rta_options:type_name -> inventory.v1.RTAOptions - 47, // 103: agent.v1.SetStateRequest.BuiltinAgentsEntry.value:type_name -> agent.v1.SetStateRequest.BuiltinAgent + 100, // 98: agent.v1.SetStateRequest.BuiltinAgent.type:type_name -> inventory.v1.AgentType + 2, // 99: agent.v1.SetStateRequest.BuiltinAgent.text_files:type_name -> agent.v1.TextFiles + 50, // 100: agent.v1.SetStateRequest.BuiltinAgent.env:type_name -> agent.v1.SetStateRequest.BuiltinAgent.EnvEntry + 101, // 101: agent.v1.SetStateRequest.BuiltinAgent.rta_options:type_name -> inventory.v1.RTAOptions + 45, // 102: agent.v1.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.v1.SetStateRequest.AgentProcess + 46, // 103: agent.v1.SetStateRequest.BuiltinAgentsEntry.value:type_name -> agent.v1.SetStateRequest.BuiltinAgent 11, // 104: agent.v1.QueryActionMap.MapEntry.value:type_name -> agent.v1.QueryActionValue 0, // 105: agent.v1.StartActionRequest.MySQLExplainParams.output_format:type_name -> agent.v1.MysqlExplainOutputFormat 2, // 106: agent.v1.StartActionRequest.MySQLExplainParams.tls_files:type_name -> agent.v1.TextFiles diff --git a/api/agent/v1/agent.pb.validate.go b/api/agent/v1/agent.pb.validate.go index b5a18f68749..cfc2a1682b7 100644 --- a/api/agent/v1/agent.pb.validate.go +++ b/api/agent/v1/agent.pb.validate.go @@ -19,6 +19,7 @@ import ( "google.golang.org/protobuf/types/known/anypb" backupv1 "github.com/percona/pmm/api/backup/v1" + inventoryv1 "github.com/percona/pmm/api/inventory/v1" ) @@ -134,8 +135,7 @@ func (e TextFilesValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = TextFilesValidationError{} @@ -233,8 +233,7 @@ func (e PingValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PingValidationError{} @@ -361,8 +360,7 @@ func (e PongValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PongValidationError{} @@ -498,8 +496,7 @@ func (e QANCollectRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANCollectRequestValidationError{} @@ -601,8 +598,7 @@ func (e QANCollectResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANCollectResponseValidationError{} @@ -714,8 +710,7 @@ func (e StateChangedRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StateChangedRequestValidationError{} @@ -817,8 +812,7 @@ func (e StateChangedResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StateChangedResponseValidationError{} @@ -1010,8 +1004,7 @@ func (e SetStateRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SetStateRequestValidationError{} @@ -1111,8 +1104,7 @@ func (e SetStateResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SetStateResponseValidationError{} @@ -1453,8 +1445,7 @@ func (e QueryActionValueValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryActionValueValidationError{} @@ -1588,8 +1579,7 @@ func (e QueryActionSliceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryActionSliceValidationError{} @@ -1735,8 +1725,7 @@ func (e QueryActionMapValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryActionMapValidationError{} @@ -1842,8 +1831,7 @@ func (e QueryActionBinaryValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryActionBinaryValidationError{} @@ -2013,8 +2001,7 @@ func (e QueryActionResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryActionResultValidationError{} @@ -3013,8 +3000,7 @@ func (e StartActionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequestValidationError{} @@ -3116,8 +3102,7 @@ func (e StartActionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionResponseValidationError{} @@ -3221,8 +3206,7 @@ func (e StopActionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StopActionRequestValidationError{} @@ -3324,8 +3308,7 @@ func (e StopActionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StopActionResponseValidationError{} @@ -3435,8 +3418,7 @@ func (e ActionResultRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ActionResultRequestValidationError{} @@ -3538,8 +3520,7 @@ func (e ActionResultResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ActionResultResponseValidationError{} @@ -3674,8 +3655,7 @@ func (e PBMSwitchPITRRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PBMSwitchPITRRequestValidationError{} @@ -3779,8 +3759,7 @@ func (e PBMSwitchPITRResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PBMSwitchPITRResponseValidationError{} @@ -3884,8 +3863,7 @@ func (e AgentLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AgentLogsRequestValidationError{} @@ -3989,8 +3967,7 @@ func (e AgentLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AgentLogsResponseValidationError{} @@ -4158,8 +4135,7 @@ func (e CheckConnectionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckConnectionRequestValidationError{} @@ -4263,8 +4239,7 @@ func (e CheckConnectionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckConnectionResponseValidationError{} @@ -4432,8 +4407,7 @@ func (e ServiceInfoRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ServiceInfoRequestValidationError{} @@ -4545,8 +4519,7 @@ func (e ServiceInfoResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ServiceInfoResponseValidationError{} @@ -4648,8 +4621,7 @@ func (e JobStatusRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobStatusRequestValidationError{} @@ -4753,8 +4725,7 @@ func (e JobStatusResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobStatusResponseValidationError{} @@ -4864,8 +4835,7 @@ func (e S3LocationConfigValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = S3LocationConfigValidationError{} @@ -4969,8 +4939,7 @@ func (e FilesystemLocationConfigValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = FilesystemLocationConfigValidationError{} @@ -5270,8 +5239,7 @@ func (e StartJobRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartJobRequestValidationError{} @@ -5373,8 +5341,7 @@ func (e StartJobResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartJobResponseValidationError{} @@ -5476,8 +5443,7 @@ func (e StopJobRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StopJobRequestValidationError{} @@ -5577,8 +5543,7 @@ func (e StopJobResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StopJobResponseValidationError{} @@ -5918,8 +5883,7 @@ func (e JobResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobResultValidationError{} @@ -6177,8 +6141,7 @@ func (e JobProgressValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobProgressValidationError{} @@ -6314,8 +6277,7 @@ func (e GetVersionsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequestValidationError{} @@ -6451,8 +6413,7 @@ func (e GetVersionsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsResponseValidationError{} @@ -7325,8 +7286,7 @@ func (e AgentMessageValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AgentMessageValidationError{} @@ -8118,8 +8078,7 @@ func (e ServerMessageValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ServerMessageValidationError{} @@ -8230,8 +8189,7 @@ func (e SetStateRequest_AgentProcessValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SetStateRequest_AgentProcessValidationError{} @@ -8414,8 +8372,7 @@ func (e SetStateRequest_BuiltinAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SetStateRequest_BuiltinAgentValidationError{} @@ -8559,8 +8516,7 @@ func (e StartActionRequest_MySQLExplainParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MySQLExplainParamsValidationError{} @@ -8704,8 +8660,7 @@ func (e StartActionRequest_MySQLShowCreateTableParamsValidationError) Error() st key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MySQLShowCreateTableParamsValidationError{} @@ -8849,8 +8804,7 @@ func (e StartActionRequest_MySQLShowTableStatusParamsValidationError) Error() st key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MySQLShowTableStatusParamsValidationError{} @@ -8991,8 +8945,7 @@ func (e StartActionRequest_MySQLShowIndexParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MySQLShowIndexParamsValidationError{} @@ -9141,8 +9094,7 @@ func (e StartActionRequest_PostgreSQLShowCreateTableParamsValidationError) Error key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PostgreSQLShowCreateTableParamsValidationError{} @@ -9284,8 +9236,7 @@ func (e StartActionRequest_PostgreSQLShowIndexParamsValidationError) Error() str key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PostgreSQLShowIndexParamsValidationError{} @@ -9424,8 +9375,7 @@ func (e StartActionRequest_MongoDBExplainParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MongoDBExplainParamsValidationError{} @@ -9530,8 +9480,7 @@ func (e StartActionRequest_PTSummaryParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PTSummaryParamsValidationError{} @@ -9644,8 +9593,7 @@ func (e StartActionRequest_PTPgSummaryParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PTPgSummaryParamsValidationError{} @@ -9759,8 +9707,7 @@ func (e StartActionRequest_PTMongoDBSummaryParamsValidationError) Error() string key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PTMongoDBSummaryParamsValidationError{} @@ -9876,8 +9823,7 @@ func (e StartActionRequest_PTMySQLSummaryParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PTMySQLSummaryParamsValidationError{} @@ -10018,8 +9964,7 @@ func (e StartActionRequest_MySQLQueryShowParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MySQLQueryShowParamsValidationError{} @@ -10160,8 +10105,7 @@ func (e StartActionRequest_MySQLQuerySelectParamsValidationError) Error() string key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MySQLQuerySelectParamsValidationError{} @@ -10301,8 +10245,7 @@ func (e StartActionRequest_PostgreSQLQueryShowParamsValidationError) Error() str key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PostgreSQLQueryShowParamsValidationError{} @@ -10446,8 +10389,7 @@ func (e StartActionRequest_PostgreSQLQuerySelectParamsValidationError) Error() s key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_PostgreSQLQuerySelectParamsValidationError{} @@ -10591,8 +10533,7 @@ func (e StartActionRequest_MongoDBQueryGetParameterParamsValidationError) Error( key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MongoDBQueryGetParameterParamsValidationError{} @@ -10732,8 +10673,7 @@ func (e StartActionRequest_MongoDBQueryBuildInfoParamsValidationError) Error() s key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MongoDBQueryBuildInfoParamsValidationError{} @@ -10878,8 +10818,7 @@ func (e StartActionRequest_MongoDBQueryGetCmdLineOptsParamsValidationError) Erro key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MongoDBQueryGetCmdLineOptsParamsValidationError{} @@ -11028,8 +10967,7 @@ func (e StartActionRequest_MongoDBQueryReplSetGetStatusParamsValidationError) Er key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MongoDBQueryReplSetGetStatusParamsValidationError{} @@ -11178,8 +11116,7 @@ func (e StartActionRequest_MongoDBQueryGetDiagnosticDataParamsValidationError) E key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_MongoDBQueryGetDiagnosticDataParamsValidationError{} @@ -11290,8 +11227,7 @@ func (e StartActionRequest_RestartSystemServiceParamsValidationError) Error() st key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartActionRequest_RestartSystemServiceParamsValidationError{} @@ -11396,8 +11332,7 @@ func (e CheckConnectionResponse_StatsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckConnectionResponse_StatsValidationError{} @@ -11560,8 +11495,7 @@ func (e StartJobRequest_MySQLBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartJobRequest_MySQLBackupValidationError{} @@ -11718,8 +11652,7 @@ func (e StartJobRequest_MySQLRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartJobRequest_MySQLRestoreBackupValidationError{} @@ -11948,8 +11881,7 @@ func (e StartJobRequest_MongoDBBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartJobRequest_MongoDBBackupValidationError{} @@ -12234,8 +12166,7 @@ func (e StartJobRequest_MongoDBRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartJobRequest_MongoDBRestoreBackupValidationError{} @@ -12337,8 +12268,7 @@ func (e JobResult_ErrorValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobResult_ErrorValidationError{} @@ -12471,8 +12401,7 @@ func (e JobResult_MongoDBBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobResult_MongoDBBackupValidationError{} @@ -12603,8 +12532,7 @@ func (e JobResult_MySQLBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobResult_MySQLBackupValidationError{} @@ -12707,8 +12635,7 @@ func (e JobResult_MySQLRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobResult_MySQLRestoreBackupValidationError{} @@ -12811,8 +12738,7 @@ func (e JobResult_MongoDBRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobResult_MongoDBRestoreBackupValidationError{} @@ -12914,8 +12840,7 @@ func (e JobProgress_MySQLBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobProgress_MySQLBackupValidationError{} @@ -13018,8 +12943,7 @@ func (e JobProgress_MySQLRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobProgress_MySQLRestoreBackupValidationError{} @@ -13125,8 +13049,7 @@ func (e JobProgress_LogsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = JobProgress_LogsValidationError{} @@ -13228,8 +13151,7 @@ func (e GetVersionsRequest_MySQLdValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_MySQLdValidationError{} @@ -13332,8 +13254,7 @@ func (e GetVersionsRequest_XtrabackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_XtrabackupValidationError{} @@ -13435,8 +13356,7 @@ func (e GetVersionsRequest_XbcloudValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_XbcloudValidationError{} @@ -13538,8 +13458,7 @@ func (e GetVersionsRequest_QpressValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_QpressValidationError{} @@ -13641,8 +13560,7 @@ func (e GetVersionsRequest_MongoDBValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_MongoDBValidationError{} @@ -13744,8 +13662,7 @@ func (e GetVersionsRequest_PBMValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_PBMValidationError{} @@ -14099,8 +14016,7 @@ func (e GetVersionsRequest_SoftwareValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsRequest_SoftwareValidationError{} @@ -14207,8 +14123,7 @@ func (e GetVersionsResponse_VersionValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetVersionsResponse_VersionValidationError{} diff --git a/api/agent/v1/agent_grpc.pb.go b/api/agent/v1/agent_grpc.pb.go index 93727efa84c..d307ddcad19 100644 --- a/api/agent/v1/agent_grpc.pb.go +++ b/api/agent/v1/agent_grpc.pb.go @@ -8,7 +8,6 @@ package agentv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/agent/v1/collector.pb.go b/api/agent/v1/collector.pb.go index 5c0102a2025..f1c9b64e7a9 100644 --- a/api/agent/v1/collector.pb.go +++ b/api/agent/v1/collector.pb.go @@ -7,14 +7,12 @@ package agentv1 import ( + v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -2810,23 +2808,20 @@ func file_agent_v1_collector_proto_rawDescGZIP() []byte { return file_agent_v1_collector_proto_rawDescData } -var ( - file_agent_v1_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_agent_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 8) - file_agent_v1_collector_proto_goTypes = []any{ - ExampleType(0), // 0: agent.v1.ExampleType - (*MetricsBucket)(nil), // 1: agent.v1.MetricsBucket - (*HistogramItem)(nil), // 2: agent.v1.HistogramItem - (*MetricsBucket_Common)(nil), // 3: agent.v1.MetricsBucket.Common - (*MetricsBucket_MySQL)(nil), // 4: agent.v1.MetricsBucket.MySQL - (*MetricsBucket_MongoDB)(nil), // 5: agent.v1.MetricsBucket.MongoDB - (*MetricsBucket_PostgreSQL)(nil), // 6: agent.v1.MetricsBucket.PostgreSQL - nil, // 7: agent.v1.MetricsBucket.Common.CommentsEntry - nil, // 8: agent.v1.MetricsBucket.Common.ErrorsEntry - v1.AgentType(0), // 9: inventory.v1.AgentType - } -) - +var file_agent_v1_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_agent_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_agent_v1_collector_proto_goTypes = []any{ + (ExampleType)(0), // 0: agent.v1.ExampleType + (*MetricsBucket)(nil), // 1: agent.v1.MetricsBucket + (*HistogramItem)(nil), // 2: agent.v1.HistogramItem + (*MetricsBucket_Common)(nil), // 3: agent.v1.MetricsBucket.Common + (*MetricsBucket_MySQL)(nil), // 4: agent.v1.MetricsBucket.MySQL + (*MetricsBucket_MongoDB)(nil), // 5: agent.v1.MetricsBucket.MongoDB + (*MetricsBucket_PostgreSQL)(nil), // 6: agent.v1.MetricsBucket.PostgreSQL + nil, // 7: agent.v1.MetricsBucket.Common.CommentsEntry + nil, // 8: agent.v1.MetricsBucket.Common.ErrorsEntry + (v1.AgentType)(0), // 9: inventory.v1.AgentType +} var file_agent_v1_collector_proto_depIdxs = []int32{ 3, // 0: agent.v1.MetricsBucket.common:type_name -> agent.v1.MetricsBucket.Common 4, // 1: agent.v1.MetricsBucket.mysql:type_name -> agent.v1.MetricsBucket.MySQL diff --git a/api/agent/v1/collector.pb.validate.go b/api/agent/v1/collector.pb.validate.go index 3fc7bc65c70..717ac8d0327 100644 --- a/api/agent/v1/collector.pb.validate.go +++ b/api/agent/v1/collector.pb.validate.go @@ -242,8 +242,7 @@ func (e MetricsBucketValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsBucketValidationError{} @@ -347,8 +346,7 @@ func (e HistogramItemValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HistogramItemValidationError{} @@ -500,8 +498,7 @@ func (e MetricsBucket_CommonValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsBucket_CommonValidationError{} @@ -833,8 +830,7 @@ func (e MetricsBucket_MySQLValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsBucket_MySQLValidationError{} @@ -1044,8 +1040,7 @@ func (e MetricsBucket_MongoDBValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsBucket_MongoDBValidationError{} @@ -1297,8 +1292,7 @@ func (e MetricsBucket_PostgreSQLValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsBucket_PostgreSQLValidationError{} diff --git a/api/agentlocal/v1/agentlocal.pb.go b/api/agentlocal/v1/agentlocal.pb.go index 7bb13a7cb58..374821c2931 100644 --- a/api/agentlocal/v1/agentlocal.pb.go +++ b/api/agentlocal/v1/agentlocal.pb.go @@ -7,16 +7,14 @@ package agentlocalv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - + v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -244,7 +242,7 @@ func (x *StatusRequest) GetGetNetworkInfo() bool { type StatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - RunsOnNodeId string `protobuf:"bytes,2,opt,name=runs_on_node_id,json=runsOnNodeId,proto3" json:"runs_on_node_id,omitempty"` // TODO: rename to node_id + RunsOnNodeId string `protobuf:"bytes,2,opt,name=runs_on_node_id,json=runsOnNodeId,proto3" json:"runs_on_node_id,omitempty"` //TODO: rename to node_id NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` ServerInfo *ServerInfo `protobuf:"bytes,4,opt,name=server_info,json=serverInfo,proto3" json:"server_info,omitempty"` AgentsInfo []*AgentInfo `protobuf:"bytes,5,rep,name=agents_info,json=agentsInfo,proto3" json:"agents_info,omitempty"` @@ -471,21 +469,18 @@ func file_agentlocal_v1_agentlocal_proto_rawDescGZIP() []byte { return file_agentlocal_v1_agentlocal_proto_rawDescData } -var ( - file_agentlocal_v1_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_agentlocal_v1_agentlocal_proto_goTypes = []any{ - (*ServerInfo)(nil), // 0: agentlocal.v1.ServerInfo - (*AgentInfo)(nil), // 1: agentlocal.v1.AgentInfo - (*StatusRequest)(nil), // 2: agentlocal.v1.StatusRequest - (*StatusResponse)(nil), // 3: agentlocal.v1.StatusResponse - (*ReloadRequest)(nil), // 4: agentlocal.v1.ReloadRequest - (*ReloadResponse)(nil), // 5: agentlocal.v1.ReloadResponse - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration - v1.AgentType(0), // 7: inventory.v1.AgentType - v1.AgentStatus(0), // 8: inventory.v1.AgentStatus - } -) - +var file_agentlocal_v1_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_agentlocal_v1_agentlocal_proto_goTypes = []any{ + (*ServerInfo)(nil), // 0: agentlocal.v1.ServerInfo + (*AgentInfo)(nil), // 1: agentlocal.v1.AgentInfo + (*StatusRequest)(nil), // 2: agentlocal.v1.StatusRequest + (*StatusResponse)(nil), // 3: agentlocal.v1.StatusResponse + (*ReloadRequest)(nil), // 4: agentlocal.v1.ReloadRequest + (*ReloadResponse)(nil), // 5: agentlocal.v1.ReloadResponse + (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (v1.AgentType)(0), // 7: inventory.v1.AgentType + (v1.AgentStatus)(0), // 8: inventory.v1.AgentStatus +} var file_agentlocal_v1_agentlocal_proto_depIdxs = []int32{ 6, // 0: agentlocal.v1.ServerInfo.latency:type_name -> google.protobuf.Duration 6, // 1: agentlocal.v1.ServerInfo.clock_drift:type_name -> google.protobuf.Duration diff --git a/api/agentlocal/v1/agentlocal.pb.validate.go b/api/agentlocal/v1/agentlocal.pb.validate.go index 019b64db736..118cb9f916a 100644 --- a/api/agentlocal/v1/agentlocal.pb.validate.go +++ b/api/agentlocal/v1/agentlocal.pb.validate.go @@ -191,8 +191,7 @@ func (e ServerInfoValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ServerInfoValidationError{} @@ -301,8 +300,7 @@ func (e AgentInfoValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AgentInfoValidationError{} @@ -404,8 +402,7 @@ func (e StatusRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StatusRequestValidationError{} @@ -580,8 +577,7 @@ func (e StatusResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StatusResponseValidationError{} @@ -681,8 +677,7 @@ func (e ReloadRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ReloadRequestValidationError{} @@ -782,8 +777,7 @@ func (e ReloadResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ReloadResponseValidationError{} diff --git a/api/agentlocal/v1/agentlocal_grpc.pb.go b/api/agentlocal/v1/agentlocal_grpc.pb.go index 14d47f7c727..1b4e4c73073 100644 --- a/api/agentlocal/v1/agentlocal_grpc.pb.go +++ b/api/agentlocal/v1/agentlocal_grpc.pb.go @@ -8,7 +8,6 @@ package agentlocalv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -87,7 +86,6 @@ type UnimplementedAgentLocalServiceServer struct{} func (UnimplementedAgentLocalServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method Status not implemented") } - func (UnimplementedAgentLocalServiceServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error) { return nil, status.Error(codes.Unimplemented, "method Reload not implemented") } diff --git a/api/agentlocal/v1/json/client/agent_local_service/reload_parameters.go b/api/agentlocal/v1/json/client/agent_local_service/reload_parameters.go index 7a559d37dc8..2e504d1316f 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/reload_parameters.go +++ b/api/agentlocal/v1/json/client/agent_local_service/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 any @@ -129,6 +130,7 @@ func (o *ReloadParams) SetBody(body any) { // 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/agentlocal/v1/json/client/agent_local_service/reload_responses.go b/api/agentlocal/v1/json/client/agent_local_service/reload_responses.go index 1595292df0d..b2c7d41e7fd 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/reload_responses.go +++ b/api/agentlocal/v1/json/client/agent_local_service/reload_responses.go @@ -104,6 +104,7 @@ func (o *ReloadOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *ReloadDefault) GetPayload() *ReloadDefaultBody { } func (o *ReloadDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ReloadDefaultBody) // response payload @@ -190,6 +192,7 @@ ReloadDefaultBody reload default body swagger:model ReloadDefaultBody */ type ReloadDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *ReloadDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -307,6 +313,7 @@ ReloadDefaultBodyDetailsItems0 reload default body details items0 swagger:model ReloadDefaultBodyDetailsItems0 */ type ReloadDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type ReloadDefaultBodyDetailsItems0 struct { func (o *ReloadDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *ReloadDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ReloadDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/agentlocal/v1/json/client/agent_local_service/status2_parameters.go b/api/agentlocal/v1/json/client/agent_local_service/status2_parameters.go index 220d4c5bbac..e1a0f18fb76 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status2_parameters.go +++ b/api/agentlocal/v1/json/client/agent_local_service/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/agentlocal/v1/json/client/agent_local_service/status2_responses.go b/api/agentlocal/v1/json/client/agent_local_service/status2_responses.go index 39bee162725..6b1873e8997 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status2_responses.go +++ b/api/agentlocal/v1/json/client/agent_local_service/status2_responses.go @@ -105,6 +105,7 @@ func (o *Status2OK) GetPayload() *Status2OKBody { } func (o *Status2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(Status2OKBody) // response payload @@ -178,6 +179,7 @@ func (o *Status2Default) GetPayload() *Status2DefaultBody { } func (o *Status2Default) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(Status2DefaultBody) // response payload @@ -193,6 +195,7 @@ Status2DefaultBody status2 default body swagger:model Status2DefaultBody */ type Status2DefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *Status2DefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -310,6 +316,7 @@ Status2DefaultBodyDetailsItems0 status2 default body details items0 swagger:model Status2DefaultBodyDetailsItems0 */ type Status2DefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type Status2DefaultBodyDetailsItems0 struct { func (o *Status2DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *Status2DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o Status2DefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ Status2OKBody status2 OK body swagger:model Status2OKBody */ type Status2OKBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -536,7 +546,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 swag.IsZero(o.AgentsInfo[i]) { // not required @@ -556,12 +568,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 swag.IsZero(o.ServerInfo) { // not required @@ -608,6 +622,7 @@ Status2OKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model Status2OKBodyAgentsInfoItems0 */ type Status2OKBodyAgentsInfoItems0 struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -837,6 +852,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/agentlocal/v1/json/client/agent_local_service/status_parameters.go b/api/agentlocal/v1/json/client/agent_local_service/status_parameters.go index f522c468298..56301866ccc 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status_parameters.go +++ b/api/agentlocal/v1/json/client/agent_local_service/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/agentlocal/v1/json/client/agent_local_service/status_responses.go b/api/agentlocal/v1/json/client/agent_local_service/status_responses.go index f7e4f3fa0c8..66b7d2d110d 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status_responses.go +++ b/api/agentlocal/v1/json/client/agent_local_service/status_responses.go @@ -105,6 +105,7 @@ func (o *StatusOK) GetPayload() *StatusOKBody { } func (o *StatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StatusOKBody) // response payload @@ -178,6 +179,7 @@ func (o *StatusDefault) GetPayload() *StatusDefaultBody { } func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StatusDefaultBody) // response payload @@ -193,6 +195,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"` } @@ -230,6 +233,7 @@ StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -299,7 +303,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 swag.IsZero(o.Details[i]) { // not required @@ -319,6 +325,7 @@ func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -347,6 +354,7 @@ StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -358,6 +366,7 @@ type StatusDefaultBodyDetailsItems0 struct { func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -395,6 +404,7 @@ func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StatusDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -458,6 +468,7 @@ StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -573,7 +584,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 swag.IsZero(o.AgentsInfo[i]) { // not required @@ -593,12 +606,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 swag.IsZero(o.ServerInfo) { // not required @@ -645,6 +660,7 @@ StatusOKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model StatusOKBodyAgentsInfoItems0 */ type StatusOKBodyAgentsInfoItems0 struct { + // agent id AgentID string `json:"agent_id,omitempty"` @@ -874,6 +890,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/alerting/v1/alerting.pb.go b/api/alerting/v1/alerting.pb.go index 3b2c47d73ec..44c388389a1 100644 --- a/api/alerting/v1/alerting.pb.go +++ b/api/alerting/v1/alerting.pb.go @@ -7,18 +7,16 @@ package alertingv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" + v1 "github.com/percona/pmm/api/management/v1" _ "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" - - v1 "github.com/percona/pmm/api/management/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -1426,40 +1424,37 @@ func file_alerting_v1_alerting_proto_rawDescGZIP() []byte { return file_alerting_v1_alerting_proto_rawDescData } -var ( - file_alerting_v1_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_alerting_v1_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) - file_alerting_v1_alerting_proto_goTypes = []any{ - 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 - ParamUnit(0), // 22: alerting.v1.ParamUnit - ParamType(0), // 23: alerting.v1.ParamType - (*durationpb.Duration)(nil), // 24: google.protobuf.Duration - v1.Severity(0), // 25: management.v1.Severity - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - } -) - +var file_alerting_v1_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_alerting_v1_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_alerting_v1_alerting_proto_goTypes = []any{ + (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 + (ParamUnit)(0), // 22: alerting.v1.ParamUnit + (ParamType)(0), // 23: alerting.v1.ParamType + (*durationpb.Duration)(nil), // 24: google.protobuf.Duration + (v1.Severity)(0), // 25: management.v1.Severity + (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp +} var file_alerting_v1_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit 23, // 1: alerting.v1.ParamDefinition.type:type_name -> alerting.v1.ParamType diff --git a/api/alerting/v1/alerting.pb.validate.go b/api/alerting/v1/alerting.pb.validate.go index 82cbd794e6a..bc3dfba5dfa 100644 --- a/api/alerting/v1/alerting.pb.validate.go +++ b/api/alerting/v1/alerting.pb.validate.go @@ -132,8 +132,7 @@ func (e BoolParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = BoolParamDefinitionValidationError{} @@ -247,8 +246,7 @@ func (e FloatParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = FloatParamDefinitionValidationError{} @@ -354,8 +352,7 @@ func (e StringParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StringParamDefinitionValidationError{} @@ -609,8 +606,7 @@ func (e ParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ParamDefinitionValidationError{} @@ -817,8 +813,7 @@ func (e TemplateValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = TemplateValidationError{} @@ -856,6 +851,7 @@ func (m *ListTemplatesRequest) validate(all bool) error { // no validation rules for Reload if m.PageSize != nil { + if m.GetPageSize() < 1 { err := ListTemplatesRequestValidationError{ field: "PageSize", @@ -866,9 +862,11 @@ func (m *ListTemplatesRequest) validate(all bool) error { } errors = append(errors, err) } + } if m.PageIndex != nil { + if m.GetPageIndex() < 0 { err := ListTemplatesRequestValidationError{ field: "PageIndex", @@ -879,6 +877,7 @@ func (m *ListTemplatesRequest) validate(all bool) error { } errors = append(errors, err) } + } if len(errors) > 0 { @@ -948,8 +947,7 @@ func (e ListTemplatesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListTemplatesRequestValidationError{} @@ -1089,8 +1087,7 @@ func (e ListTemplatesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListTemplatesResponseValidationError{} @@ -1203,8 +1200,7 @@ func (e CreateTemplateRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CreateTemplateRequestValidationError{} @@ -1306,8 +1302,7 @@ func (e CreateTemplateResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CreateTemplateResponseValidationError{} @@ -1431,8 +1426,7 @@ func (e UpdateTemplateRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateTemplateRequestValidationError{} @@ -1534,8 +1528,7 @@ func (e UpdateTemplateResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateTemplateResponseValidationError{} @@ -1648,8 +1641,7 @@ func (e DeleteTemplateRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteTemplateRequestValidationError{} @@ -1751,8 +1743,7 @@ func (e DeleteTemplateResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteTemplateResponseValidationError{} @@ -1856,8 +1847,7 @@ func (e FilterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = FilterValidationError{} @@ -2010,8 +2000,7 @@ func (e ParamValueValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ParamValueValidationError{} @@ -2251,8 +2240,7 @@ func (e CreateRuleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CreateRuleRequestValidationError{} @@ -2354,8 +2342,7 @@ func (e CreateRuleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CreateRuleResponseValidationError{} diff --git a/api/alerting/v1/alerting_grpc.pb.go b/api/alerting/v1/alerting_grpc.pb.go index d559dc19bfe..1db7fdf68b9 100644 --- a/api/alerting/v1/alerting_grpc.pb.go +++ b/api/alerting/v1/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" @@ -132,19 +131,15 @@ type UnimplementedAlertingServiceServer struct{} func (UnimplementedAlertingServiceServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListTemplates not implemented") } - func (UnimplementedAlertingServiceServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateTemplate not implemented") } - func (UnimplementedAlertingServiceServer) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateTemplate not implemented") } - func (UnimplementedAlertingServiceServer) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteTemplate not implemented") } - func (UnimplementedAlertingServiceServer) CreateRule(context.Context, *CreateRuleRequest) (*CreateRuleResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateRule not implemented") } diff --git a/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go b/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go index d99404fc945..dc970ceafc0 100644 --- a/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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/alerting/v1/json/client/alerting_service/create_rule_responses.go b/api/alerting/v1/json/client/alerting_service/create_rule_responses.go index 51443beb017..e18e8cb060d 100644 --- a/api/alerting/v1/json/client/alerting_service/create_rule_responses.go +++ b/api/alerting/v1/json/client/alerting_service/create_rule_responses.go @@ -105,6 +105,7 @@ func (o *CreateRuleOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,6 +177,7 @@ func (o *CreateRuleDefault) GetPayload() *CreateRuleDefaultBody { } func (o *CreateRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateRuleDefaultBody) // response payload @@ -191,6 +193,7 @@ CreateRuleBody create rule body swagger:model CreateRuleBody */ type CreateRuleBody struct { + // Template name. TemplateName string `json:"template_name,omitempty"` @@ -387,7 +390,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 swag.IsZero(o.Params[i]) { // not required @@ -407,13 +412,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 swag.IsZero(o.Filters[i]) { // not required @@ -433,6 +441,7 @@ func (o *CreateRuleBody) contextValidateFilters(ctx context.Context, formats str return err } } + } return nil @@ -461,6 +470,7 @@ CreateRuleDefaultBody create rule default body swagger:model CreateRuleDefaultBody */ type CreateRuleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -530,7 +540,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 swag.IsZero(o.Details[i]) { // not required @@ -550,6 +562,7 @@ func (o *CreateRuleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -578,6 +591,7 @@ CreateRuleDefaultBodyDetailsItems0 create rule default body details items0 swagger:model CreateRuleDefaultBodyDetailsItems0 */ type CreateRuleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -589,6 +603,7 @@ type CreateRuleDefaultBodyDetailsItems0 struct { func (o *CreateRuleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -626,6 +641,7 @@ func (o *CreateRuleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o CreateRuleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -689,6 +705,7 @@ CreateRuleParamsBodyFiltersItems0 Filter represents a single filter condition. swagger:model CreateRuleParamsBodyFiltersItems0 */ type CreateRuleParamsBodyFiltersItems0 struct { + // FilterType represents filter matching type. // Enum: ["FILTER_TYPE_UNSPECIFIED","FILTER_TYPE_MATCH","FILTER_TYPE_MISMATCH"] Type *string `json:"type,omitempty"` @@ -787,6 +804,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/alerting/v1/json/client/alerting_service/create_template_parameters.go b/api/alerting/v1/json/client/alerting_service/create_template_parameters.go index 7af56c35841..266ab9b7c49 100644 --- a/api/alerting/v1/json/client/alerting_service/create_template_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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/alerting/v1/json/client/alerting_service/create_template_responses.go b/api/alerting/v1/json/client/alerting_service/create_template_responses.go index d521ef29139..183c84fb46a 100644 --- a/api/alerting/v1/json/client/alerting_service/create_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/create_template_responses.go @@ -104,6 +104,7 @@ func (o *CreateTemplateOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *CreateTemplateDefault) GetPayload() *CreateTemplateDefaultBody { } func (o *CreateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CreateTemplateDefaultBody) // response payload @@ -190,6 +192,7 @@ CreateTemplateBody create template body swagger:model CreateTemplateBody */ type CreateTemplateBody struct { + // YAML template file content. Yaml string `json:"yaml,omitempty"` } @@ -227,6 +230,7 @@ CreateTemplateDefaultBody create template default body swagger:model CreateTemplateDefaultBody */ type CreateTemplateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,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 swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *CreateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -344,6 +351,7 @@ CreateTemplateDefaultBodyDetailsItems0 create template default body details item swagger:model CreateTemplateDefaultBodyDetailsItems0 */ type CreateTemplateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type CreateTemplateDefaultBodyDetailsItems0 struct { func (o *CreateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *CreateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o CreateTemplateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go b/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go index 12c5e9f70f9..08d19304dc6 100644 --- a/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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 { + // Name. Name string @@ -129,6 +130,7 @@ func (o *DeleteTemplateParams) SetName(name string) { // 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/alerting/v1/json/client/alerting_service/delete_template_responses.go b/api/alerting/v1/json/client/alerting_service/delete_template_responses.go index 2f12e61369a..e0387716d22 100644 --- a/api/alerting/v1/json/client/alerting_service/delete_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/delete_template_responses.go @@ -104,6 +104,7 @@ func (o *DeleteTemplateOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *DeleteTemplateDefault) GetPayload() *DeleteTemplateDefaultBody { } func (o *DeleteTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteTemplateDefaultBody) // response payload @@ -190,6 +192,7 @@ DeleteTemplateDefaultBody delete template default body swagger:model DeleteTemplateDefaultBody */ type DeleteTemplateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *DeleteTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -307,6 +313,7 @@ DeleteTemplateDefaultBodyDetailsItems0 delete template default body details item swagger:model DeleteTemplateDefaultBodyDetailsItems0 */ type DeleteTemplateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type DeleteTemplateDefaultBodyDetailsItems0 struct { func (o *DeleteTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *DeleteTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteTemplateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go b/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go index 54f826721d0..a13fd2e40a5 100644 --- a/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go @@ -61,6 +61,7 @@ ListTemplatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListTemplatesParams struct { + /* PageIndex. Index of the requested page, starts from 0. @@ -171,6 +172,7 @@ func (o *ListTemplatesParams) SetReload(reload *bool) { // 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 } @@ -186,6 +188,7 @@ func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qPageIndex := swag.FormatInt32(qrPageIndex) if qPageIndex != "" { + if err := r.SetQueryParam("page_index", qPageIndex); err != nil { return err } @@ -202,6 +205,7 @@ func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qPageSize := swag.FormatInt32(qrPageSize) if qPageSize != "" { + if err := r.SetQueryParam("page_size", qPageSize); err != nil { return err } @@ -218,6 +222,7 @@ func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qReload := swag.FormatBool(qrReload) if qReload != "" { + if err := r.SetQueryParam("reload", qReload); err != nil { return err } diff --git a/api/alerting/v1/json/client/alerting_service/list_templates_responses.go b/api/alerting/v1/json/client/alerting_service/list_templates_responses.go index e3ef0e66c65..dd3c76a03a2 100644 --- a/api/alerting/v1/json/client/alerting_service/list_templates_responses.go +++ b/api/alerting/v1/json/client/alerting_service/list_templates_responses.go @@ -105,6 +105,7 @@ func (o *ListTemplatesOK) GetPayload() *ListTemplatesOKBody { } func (o *ListTemplatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListTemplatesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListTemplatesDefault) GetPayload() *ListTemplatesDefaultBody { } func (o *ListTemplatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListTemplatesDefaultBody) // response payload @@ -193,6 +195,7 @@ ListTemplatesDefaultBody list templates default body swagger:model ListTemplatesDefaultBody */ type ListTemplatesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListTemplatesDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -310,6 +316,7 @@ ListTemplatesDefaultBodyDetailsItems0 list templates default body details items0 swagger:model ListTemplatesDefaultBodyDetailsItems0 */ type ListTemplatesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListTemplatesDefaultBodyDetailsItems0 struct { func (o *ListTemplatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListTemplatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListTemplatesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListTemplatesOKBody list templates OK body swagger:model ListTemplatesOKBody */ type ListTemplatesOKBody struct { + // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -490,7 +500,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 swag.IsZero(o.Templates[i]) { // not required @@ -510,6 +522,7 @@ func (o *ListTemplatesOKBody) contextValidateTemplates(ctx context.Context, form return err } } + } return nil @@ -538,6 +551,7 @@ ListTemplatesOKBodyTemplatesItems0 Template represents Alert Template that is us swagger:model ListTemplatesOKBodyTemplatesItems0 */ type ListTemplatesOKBodyTemplatesItems0 struct { + // Machine-readable name (ID). Name string `json:"name,omitempty"` @@ -777,7 +791,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 swag.IsZero(o.Params[i]) { // not required @@ -797,6 +813,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0) contextValidateParams(ctx context.C return err } } + } return nil @@ -825,6 +842,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"` @@ -1068,6 +1086,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) ContextValidate(ctx con } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { + if o.Bool != nil { if swag.IsZero(o.Bool) { // not required @@ -1092,6 +1111,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { + if o.Float != nil { if swag.IsZero(o.Float) { // not required @@ -1116,6 +1136,7 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ct } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { + if o.String != nil { if swag.IsZero(o.String) { // not required @@ -1162,6 +1183,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool BoolParamDefinition represent swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool struct { + // default Default *bool `json:"default,omitempty"` } @@ -1199,6 +1221,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Float FloatParamDefinition represe swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Float */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Float struct { + // Default value. Default *float64 `json:"default,omitempty"` @@ -1242,6 +1265,7 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0String StringParamDefinition repre swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0String */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0String struct { + // Default value. Default *string `json:"default,omitempty"` } diff --git a/api/alerting/v1/json/client/alerting_service/update_template_parameters.go b/api/alerting/v1/json/client/alerting_service/update_template_parameters.go index 531cd4e36b3..8d019495cab 100644 --- a/api/alerting/v1/json/client/alerting_service/update_template_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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 @@ -146,6 +147,7 @@ func (o *UpdateTemplateParams) SetName(name string) { // 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/alerting/v1/json/client/alerting_service/update_template_responses.go b/api/alerting/v1/json/client/alerting_service/update_template_responses.go index 51a789ea3e5..c180a25fe82 100644 --- a/api/alerting/v1/json/client/alerting_service/update_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/update_template_responses.go @@ -104,6 +104,7 @@ func (o *UpdateTemplateOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *UpdateTemplateDefault) GetPayload() *UpdateTemplateDefaultBody { } func (o *UpdateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateTemplateDefaultBody) // response payload @@ -190,6 +192,7 @@ UpdateTemplateBody update template body swagger:model UpdateTemplateBody */ type UpdateTemplateBody struct { + // YAML template file content. Yaml string `json:"yaml,omitempty"` } @@ -227,6 +230,7 @@ UpdateTemplateDefaultBody update template default body swagger:model UpdateTemplateDefaultBody */ type UpdateTemplateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,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 swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *UpdateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -344,6 +351,7 @@ UpdateTemplateDefaultBodyDetailsItems0 update template default body details item swagger:model UpdateTemplateDefaultBodyDetailsItems0 */ type UpdateTemplateDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type UpdateTemplateDefaultBodyDetailsItems0 struct { func (o *UpdateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *UpdateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateTemplateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/alerting/v1/params.pb.go b/api/alerting/v1/params.pb.go index 69d88497102..4f9034616f4 100644 --- a/api/alerting/v1/params.pb.go +++ b/api/alerting/v1/params.pb.go @@ -7,12 +7,11 @@ package alertingv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -156,14 +155,11 @@ func file_alerting_v1_params_proto_rawDescGZIP() []byte { return file_alerting_v1_params_proto_rawDescData } -var ( - file_alerting_v1_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_alerting_v1_params_proto_goTypes = []any{ - ParamUnit(0), // 0: alerting.v1.ParamUnit - ParamType(0), // 1: alerting.v1.ParamType - } -) - +var file_alerting_v1_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_alerting_v1_params_proto_goTypes = []any{ + (ParamUnit)(0), // 0: alerting.v1.ParamUnit + (ParamType)(0), // 1: alerting.v1.ParamType +} var file_alerting_v1_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/backup/v1/artifacts.pb.go b/api/backup/v1/artifacts.pb.go index dde03ceefef..a921d234e96 100644 --- a/api/backup/v1/artifacts.pb.go +++ b/api/backup/v1/artifacts.pb.go @@ -7,14 +7,13 @@ package backupv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" 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" + unsafe "unsafe" ) const ( @@ -637,26 +636,23 @@ func file_backup_v1_artifacts_proto_rawDescGZIP() []byte { return file_backup_v1_artifacts_proto_rawDescData } -var ( - file_backup_v1_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_backup_v1_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 8) - file_backup_v1_artifacts_proto_goTypes = []any{ - BackupStatus(0), // 0: backup.v1.BackupStatus - (*Artifact)(nil), // 1: backup.v1.Artifact - (*ListArtifactsRequest)(nil), // 2: backup.v1.ListArtifactsRequest - (*ListArtifactsResponse)(nil), // 3: backup.v1.ListArtifactsResponse - (*DeleteArtifactRequest)(nil), // 4: backup.v1.DeleteArtifactRequest - (*DeleteArtifactResponse)(nil), // 5: backup.v1.DeleteArtifactResponse - (*PitrTimerange)(nil), // 6: backup.v1.PitrTimerange - (*ListPitrTimerangesRequest)(nil), // 7: backup.v1.ListPitrTimerangesRequest - (*ListPitrTimerangesResponse)(nil), // 8: backup.v1.ListPitrTimerangesResponse - DataModel(0), // 9: backup.v1.DataModel - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - BackupMode(0), // 11: backup.v1.BackupMode - (*Metadata)(nil), // 12: backup.v1.Metadata - } -) - +var file_backup_v1_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_backup_v1_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_backup_v1_artifacts_proto_goTypes = []any{ + (BackupStatus)(0), // 0: backup.v1.BackupStatus + (*Artifact)(nil), // 1: backup.v1.Artifact + (*ListArtifactsRequest)(nil), // 2: backup.v1.ListArtifactsRequest + (*ListArtifactsResponse)(nil), // 3: backup.v1.ListArtifactsResponse + (*DeleteArtifactRequest)(nil), // 4: backup.v1.DeleteArtifactRequest + (*DeleteArtifactResponse)(nil), // 5: backup.v1.DeleteArtifactResponse + (*PitrTimerange)(nil), // 6: backup.v1.PitrTimerange + (*ListPitrTimerangesRequest)(nil), // 7: backup.v1.ListPitrTimerangesRequest + (*ListPitrTimerangesResponse)(nil), // 8: backup.v1.ListPitrTimerangesResponse + (DataModel)(0), // 9: backup.v1.DataModel + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (BackupMode)(0), // 11: backup.v1.BackupMode + (*Metadata)(nil), // 12: backup.v1.Metadata +} var file_backup_v1_artifacts_proto_depIdxs = []int32{ 9, // 0: backup.v1.Artifact.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.Artifact.status:type_name -> backup.v1.BackupStatus diff --git a/api/backup/v1/artifacts.pb.validate.go b/api/backup/v1/artifacts.pb.validate.go index 49916023a13..4b5be980436 100644 --- a/api/backup/v1/artifacts.pb.validate.go +++ b/api/backup/v1/artifacts.pb.validate.go @@ -208,8 +208,7 @@ func (e ArtifactValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ArtifactValidationError{} @@ -311,8 +310,7 @@ func (e ListArtifactsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListArtifactsRequestValidationError{} @@ -448,8 +446,7 @@ func (e ListArtifactsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListArtifactsResponseValidationError{} @@ -564,8 +561,7 @@ func (e DeleteArtifactRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteArtifactRequestValidationError{} @@ -667,8 +663,7 @@ func (e DeleteArtifactResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteArtifactResponseValidationError{} @@ -826,8 +821,7 @@ func (e PitrTimerangeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PitrTimerangeValidationError{} @@ -940,8 +934,7 @@ func (e ListPitrTimerangesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListPitrTimerangesRequestValidationError{} @@ -1077,8 +1070,7 @@ func (e ListPitrTimerangesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListPitrTimerangesResponseValidationError{} diff --git a/api/backup/v1/backup.pb.go b/api/backup/v1/backup.pb.go index 4d587217600..f358db0246e 100644 --- a/api/backup/v1/backup.pb.go +++ b/api/backup/v1/backup.pb.go @@ -7,19 +7,17 @@ package backupv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -1243,40 +1241,37 @@ func file_backup_v1_backup_proto_rawDescGZIP() []byte { return file_backup_v1_backup_proto_rawDescData } -var ( - file_backup_v1_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 15) - file_backup_v1_backup_proto_goTypes = []any{ - (*StartBackupRequest)(nil), // 0: backup.v1.StartBackupRequest - (*StartBackupResponse)(nil), // 1: backup.v1.StartBackupResponse - (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1.ListArtifactCompatibleServicesRequest - (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1.ListArtifactCompatibleServicesResponse - (*ScheduledBackup)(nil), // 4: backup.v1.ScheduledBackup - (*ScheduleBackupRequest)(nil), // 5: backup.v1.ScheduleBackupRequest - (*ScheduleBackupResponse)(nil), // 6: backup.v1.ScheduleBackupResponse - (*ListScheduledBackupsRequest)(nil), // 7: backup.v1.ListScheduledBackupsRequest - (*ListScheduledBackupsResponse)(nil), // 8: backup.v1.ListScheduledBackupsResponse - (*ChangeScheduledBackupRequest)(nil), // 9: backup.v1.ChangeScheduledBackupRequest - (*ChangeScheduledBackupResponse)(nil), // 10: backup.v1.ChangeScheduledBackupResponse - (*RemoveScheduledBackupRequest)(nil), // 11: backup.v1.RemoveScheduledBackupRequest - (*RemoveScheduledBackupResponse)(nil), // 12: backup.v1.RemoveScheduledBackupResponse - (*GetLogsRequest)(nil), // 13: backup.v1.GetLogsRequest - (*GetLogsResponse)(nil), // 14: backup.v1.GetLogsResponse - (*durationpb.Duration)(nil), // 15: google.protobuf.Duration - DataModel(0), // 16: backup.v1.DataModel - (*v1.MySQLService)(nil), // 17: inventory.v1.MySQLService - (*v1.MongoDBService)(nil), // 18: inventory.v1.MongoDBService - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - BackupMode(0), // 20: backup.v1.BackupMode - (*LogChunk)(nil), // 21: backup.v1.LogChunk - (*ListArtifactsRequest)(nil), // 22: backup.v1.ListArtifactsRequest - (*DeleteArtifactRequest)(nil), // 23: backup.v1.DeleteArtifactRequest - (*ListPitrTimerangesRequest)(nil), // 24: backup.v1.ListPitrTimerangesRequest - (*ListArtifactsResponse)(nil), // 25: backup.v1.ListArtifactsResponse - (*DeleteArtifactResponse)(nil), // 26: backup.v1.DeleteArtifactResponse - (*ListPitrTimerangesResponse)(nil), // 27: backup.v1.ListPitrTimerangesResponse - } -) - +var file_backup_v1_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_backup_v1_backup_proto_goTypes = []any{ + (*StartBackupRequest)(nil), // 0: backup.v1.StartBackupRequest + (*StartBackupResponse)(nil), // 1: backup.v1.StartBackupResponse + (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1.ListArtifactCompatibleServicesRequest + (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1.ListArtifactCompatibleServicesResponse + (*ScheduledBackup)(nil), // 4: backup.v1.ScheduledBackup + (*ScheduleBackupRequest)(nil), // 5: backup.v1.ScheduleBackupRequest + (*ScheduleBackupResponse)(nil), // 6: backup.v1.ScheduleBackupResponse + (*ListScheduledBackupsRequest)(nil), // 7: backup.v1.ListScheduledBackupsRequest + (*ListScheduledBackupsResponse)(nil), // 8: backup.v1.ListScheduledBackupsResponse + (*ChangeScheduledBackupRequest)(nil), // 9: backup.v1.ChangeScheduledBackupRequest + (*ChangeScheduledBackupResponse)(nil), // 10: backup.v1.ChangeScheduledBackupResponse + (*RemoveScheduledBackupRequest)(nil), // 11: backup.v1.RemoveScheduledBackupRequest + (*RemoveScheduledBackupResponse)(nil), // 12: backup.v1.RemoveScheduledBackupResponse + (*GetLogsRequest)(nil), // 13: backup.v1.GetLogsRequest + (*GetLogsResponse)(nil), // 14: backup.v1.GetLogsResponse + (*durationpb.Duration)(nil), // 15: google.protobuf.Duration + (DataModel)(0), // 16: backup.v1.DataModel + (*v1.MySQLService)(nil), // 17: inventory.v1.MySQLService + (*v1.MongoDBService)(nil), // 18: inventory.v1.MongoDBService + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (BackupMode)(0), // 20: backup.v1.BackupMode + (*LogChunk)(nil), // 21: backup.v1.LogChunk + (*ListArtifactsRequest)(nil), // 22: backup.v1.ListArtifactsRequest + (*DeleteArtifactRequest)(nil), // 23: backup.v1.DeleteArtifactRequest + (*ListPitrTimerangesRequest)(nil), // 24: backup.v1.ListPitrTimerangesRequest + (*ListArtifactsResponse)(nil), // 25: backup.v1.ListArtifactsResponse + (*DeleteArtifactResponse)(nil), // 26: backup.v1.DeleteArtifactResponse + (*ListPitrTimerangesResponse)(nil), // 27: backup.v1.ListPitrTimerangesResponse +} var file_backup_v1_backup_proto_depIdxs = []int32{ 15, // 0: backup.v1.StartBackupRequest.retry_interval:type_name -> google.protobuf.Duration 16, // 1: backup.v1.StartBackupRequest.data_model:type_name -> backup.v1.DataModel diff --git a/api/backup/v1/backup.pb.validate.go b/api/backup/v1/backup.pb.validate.go index 8e691936935..743bd45f688 100644 --- a/api/backup/v1/backup.pb.validate.go +++ b/api/backup/v1/backup.pb.validate.go @@ -185,8 +185,7 @@ func (e StartBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartBackupRequestValidationError{} @@ -290,8 +289,7 @@ func (e StartBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartBackupResponseValidationError{} @@ -407,8 +405,7 @@ func (e ListArtifactCompatibleServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListArtifactCompatibleServicesRequestValidationError{} @@ -582,8 +579,7 @@ func (e ListArtifactCompatibleServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListArtifactCompatibleServicesResponseValidationError{} @@ -829,8 +825,7 @@ func (e ScheduledBackupValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ScheduledBackupValidationError{} @@ -1039,8 +1034,7 @@ func (e ScheduleBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ScheduleBackupRequestValidationError{} @@ -1144,8 +1138,7 @@ func (e ScheduleBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ScheduleBackupResponseValidationError{} @@ -1248,8 +1241,7 @@ func (e ListScheduledBackupsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListScheduledBackupsRequestValidationError{} @@ -1386,8 +1378,7 @@ func (e ListScheduledBackupsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListScheduledBackupsResponseValidationError{} @@ -1583,8 +1574,7 @@ func (e ChangeScheduledBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeScheduledBackupRequestValidationError{} @@ -1687,8 +1677,7 @@ func (e ChangeScheduledBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeScheduledBackupResponseValidationError{} @@ -1802,8 +1791,7 @@ func (e RemoveScheduledBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveScheduledBackupRequestValidationError{} @@ -1906,8 +1894,7 @@ func (e RemoveScheduledBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveScheduledBackupResponseValidationError{} @@ -2022,8 +2009,7 @@ func (e GetLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetLogsRequestValidationError{} @@ -2159,8 +2145,7 @@ func (e GetLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetLogsResponseValidationError{} diff --git a/api/backup/v1/backup_grpc.pb.go b/api/backup/v1/backup_grpc.pb.go index 2f28a3ab987..6d16ad2b7de 100644 --- a/api/backup/v1/backup_grpc.pb.go +++ b/api/backup/v1/backup_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -207,39 +206,30 @@ type UnimplementedBackupServiceServer struct{} func (UnimplementedBackupServiceServer) StartBackup(context.Context, *StartBackupRequest) (*StartBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartBackup not implemented") } - func (UnimplementedBackupServiceServer) ListArtifactCompatibleServices(context.Context, *ListArtifactCompatibleServicesRequest) (*ListArtifactCompatibleServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListArtifactCompatibleServices not implemented") } - func (UnimplementedBackupServiceServer) ScheduleBackup(context.Context, *ScheduleBackupRequest) (*ScheduleBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method ScheduleBackup not implemented") } - func (UnimplementedBackupServiceServer) ListScheduledBackups(context.Context, *ListScheduledBackupsRequest) (*ListScheduledBackupsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListScheduledBackups not implemented") } - func (UnimplementedBackupServiceServer) ChangeScheduledBackup(context.Context, *ChangeScheduledBackupRequest) (*ChangeScheduledBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeScheduledBackup not implemented") } - func (UnimplementedBackupServiceServer) RemoveScheduledBackup(context.Context, *RemoveScheduledBackupRequest) (*RemoveScheduledBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveScheduledBackup not implemented") } - func (UnimplementedBackupServiceServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetLogs not implemented") } - func (UnimplementedBackupServiceServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListArtifacts not implemented") } - func (UnimplementedBackupServiceServer) DeleteArtifact(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteArtifact not implemented") } - func (UnimplementedBackupServiceServer) ListPitrTimeranges(context.Context, *ListPitrTimerangesRequest) (*ListPitrTimerangesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListPitrTimeranges not implemented") } diff --git a/api/backup/v1/common.pb.go b/api/backup/v1/common.pb.go index c8274024e38..da7f4a0678c 100644 --- a/api/backup/v1/common.pb.go +++ b/api/backup/v1/common.pb.go @@ -7,14 +7,13 @@ package backupv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" 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" + unsafe "unsafe" ) const ( @@ -410,20 +409,17 @@ func file_backup_v1_common_proto_rawDescGZIP() []byte { return file_backup_v1_common_proto_rawDescData } -var ( - file_backup_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) - file_backup_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4) - file_backup_v1_common_proto_goTypes = []any{ - DataModel(0), // 0: backup.v1.DataModel - BackupMode(0), // 1: backup.v1.BackupMode - (*File)(nil), // 2: backup.v1.File - (*PbmMetadata)(nil), // 3: backup.v1.PbmMetadata - (*Metadata)(nil), // 4: backup.v1.Metadata - (*LogChunk)(nil), // 5: backup.v1.LogChunk - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp - } -) - +var file_backup_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_backup_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_backup_v1_common_proto_goTypes = []any{ + (DataModel)(0), // 0: backup.v1.DataModel + (BackupMode)(0), // 1: backup.v1.BackupMode + (*File)(nil), // 2: backup.v1.File + (*PbmMetadata)(nil), // 3: backup.v1.PbmMetadata + (*Metadata)(nil), // 4: backup.v1.Metadata + (*LogChunk)(nil), // 5: backup.v1.LogChunk + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp +} var file_backup_v1_common_proto_depIdxs = []int32{ 2, // 0: backup.v1.Metadata.file_list:type_name -> backup.v1.File 6, // 1: backup.v1.Metadata.restore_to:type_name -> google.protobuf.Timestamp diff --git a/api/backup/v1/common.pb.validate.go b/api/backup/v1/common.pb.validate.go index 819c06422f9..20835ce8c7f 100644 --- a/api/backup/v1/common.pb.validate.go +++ b/api/backup/v1/common.pb.validate.go @@ -133,8 +133,7 @@ func (e FileValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = FileValidationError{} @@ -235,8 +234,7 @@ func (e PbmMetadataValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PbmMetadataValidationError{} @@ -444,8 +442,7 @@ func (e MetadataValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetadataValidationError{} @@ -548,8 +545,7 @@ func (e LogChunkValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = LogChunkValidationError{} diff --git a/api/backup/v1/errors.pb.go b/api/backup/v1/errors.pb.go index 902adc277c1..a9645403e6b 100644 --- a/api/backup/v1/errors.pb.go +++ b/api/backup/v1/errors.pb.go @@ -7,12 +7,11 @@ package backupv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -161,15 +160,12 @@ func file_backup_v1_errors_proto_rawDescGZIP() []byte { return file_backup_v1_errors_proto_rawDescData } -var ( - file_backup_v1_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_backup_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) - file_backup_v1_errors_proto_goTypes = []any{ - ErrorCode(0), // 0: backup.v1.ErrorCode - (*Error)(nil), // 1: backup.v1.Error - } -) - +var file_backup_v1_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_backup_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_backup_v1_errors_proto_goTypes = []any{ + (ErrorCode)(0), // 0: backup.v1.ErrorCode + (*Error)(nil), // 1: backup.v1.Error +} var file_backup_v1_errors_proto_depIdxs = []int32{ 0, // 0: backup.v1.Error.code:type_name -> backup.v1.ErrorCode 1, // [1:1] is the sub-list for method output_type diff --git a/api/backup/v1/errors.pb.validate.go b/api/backup/v1/errors.pb.validate.go index aae393a3b70..9aebb9d7648 100644 --- a/api/backup/v1/errors.pb.validate.go +++ b/api/backup/v1/errors.pb.validate.go @@ -122,8 +122,7 @@ func (e ErrorValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ErrorValidationError{} diff --git a/api/backup/v1/json/client/backup_service/change_scheduled_backup_parameters.go b/api/backup/v1/json/client/backup_service/change_scheduled_backup_parameters.go index 484dc341fb1..e1e4cbea656 100644 --- a/api/backup/v1/json/client/backup_service/change_scheduled_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go b/api/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go index 1c742c07f14..927e6a3c0a4 100644 --- a/api/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go @@ -105,6 +105,7 @@ func (o *ChangeScheduledBackupOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,6 +177,7 @@ func (o *ChangeScheduledBackupDefault) GetPayload() *ChangeScheduledBackupDefaul } func (o *ChangeScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeScheduledBackupDefaultBody) // response payload @@ -191,6 +193,7 @@ ChangeScheduledBackupBody change scheduled backup body swagger:model ChangeScheduledBackupBody */ type ChangeScheduledBackupBody struct { + // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` @@ -274,6 +277,7 @@ ChangeScheduledBackupDefaultBody change scheduled backup default body swagger:model ChangeScheduledBackupDefaultBody */ type ChangeScheduledBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -343,7 +347,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 swag.IsZero(o.Details[i]) { // not required @@ -363,6 +369,7 @@ func (o *ChangeScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -391,6 +398,7 @@ ChangeScheduledBackupDefaultBodyDetailsItems0 change scheduled backup default bo swagger:model ChangeScheduledBackupDefaultBodyDetailsItems0 */ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -402,6 +410,7 @@ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { func (o *ChangeScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -439,6 +448,7 @@ func (o *ChangeScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byt // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeScheduledBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go b/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go index 865c2d19370..0ab18abe2eb 100644 --- a/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go +++ b/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go @@ -61,6 +61,7 @@ DeleteArtifactParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteArtifactParams struct { + /* ArtifactID. Machine-readable artifact ID. @@ -150,6 +151,7 @@ func (o *DeleteArtifactParams) SetRemoveFiles(removeFiles *bool) { // 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 } @@ -170,6 +172,7 @@ func (o *DeleteArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfm } qRemoveFiles := swag.FormatBool(qrRemoveFiles) if qRemoveFiles != "" { + if err := r.SetQueryParam("remove_files", qRemoveFiles); err != nil { return err } diff --git a/api/backup/v1/json/client/backup_service/delete_artifact_responses.go b/api/backup/v1/json/client/backup_service/delete_artifact_responses.go index 2d1ede4bc15..221036497de 100644 --- a/api/backup/v1/json/client/backup_service/delete_artifact_responses.go +++ b/api/backup/v1/json/client/backup_service/delete_artifact_responses.go @@ -104,6 +104,7 @@ func (o *DeleteArtifactOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *DeleteArtifactDefault) GetPayload() *DeleteArtifactDefaultBody { } func (o *DeleteArtifactDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteArtifactDefaultBody) // response payload @@ -190,6 +192,7 @@ DeleteArtifactDefaultBody delete artifact default body swagger:model DeleteArtifactDefaultBody */ type DeleteArtifactDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *DeleteArtifactDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -307,6 +313,7 @@ DeleteArtifactDefaultBodyDetailsItems0 delete artifact default body details item swagger:model DeleteArtifactDefaultBodyDetailsItems0 */ type DeleteArtifactDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type DeleteArtifactDefaultBodyDetailsItems0 struct { func (o *DeleteArtifactDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *DeleteArtifactDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteArtifactDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/get_logs_parameters.go b/api/backup/v1/json/client/backup_service/get_logs_parameters.go index d65124e93df..bf377166c3a 100644 --- a/api/backup/v1/json/client/backup_service/get_logs_parameters.go +++ b/api/backup/v1/json/client/backup_service/get_logs_parameters.go @@ -61,6 +61,7 @@ GetLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsParams struct { + // ArtifactID. ArtifactID string @@ -162,6 +163,7 @@ func (o *GetLogsParams) SetOffset(offset *int64) { // 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 } @@ -182,6 +184,7 @@ func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { return err } @@ -198,6 +201,7 @@ func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qOffset := swag.FormatInt64(qrOffset) if qOffset != "" { + if err := r.SetQueryParam("offset", qOffset); err != nil { return err } diff --git a/api/backup/v1/json/client/backup_service/get_logs_responses.go b/api/backup/v1/json/client/backup_service/get_logs_responses.go index a3a59102f58..8182a0c2d4a 100644 --- a/api/backup/v1/json/client/backup_service/get_logs_responses.go +++ b/api/backup/v1/json/client/backup_service/get_logs_responses.go @@ -104,6 +104,7 @@ func (o *GetLogsOK) GetPayload() *GetLogsOKBody { } func (o *GetLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody { } func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsDefaultBody) // response payload @@ -192,6 +194,7 @@ GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -309,6 +315,7 @@ GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetLogsDefaultBodyDetailsItems0 struct { func (o *GetLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { + // logs Logs []*GetLogsOKBodyLogsItems0 `json:"logs"` @@ -486,7 +496,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 swag.IsZero(o.Logs[i]) { // not required @@ -506,6 +518,7 @@ func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt. return err } } + } return nil @@ -534,6 +547,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/backup/v1/json/client/backup_service/list_artifact_compatible_services_parameters.go b/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_parameters.go index 77f127caee5..aa2fb065491 100644 --- a/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_parameters.go +++ b/api/backup/v1/json/client/backup_service/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 { + /* ArtifactID. Artifact id used to determine restore compatibility. @@ -132,6 +133,7 @@ func (o *ListArtifactCompatibleServicesParams) SetArtifactID(artifactID string) // 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/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go b/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go index cb6169a7f4b..41e1f96b663 100644 --- a/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go +++ b/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go @@ -104,6 +104,7 @@ func (o *ListArtifactCompatibleServicesOK) GetPayload() *ListArtifactCompatibleS } func (o *ListArtifactCompatibleServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactCompatibleServicesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListArtifactCompatibleServicesDefault) GetPayload() *ListArtifactCompat } func (o *ListArtifactCompatibleServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactCompatibleServicesDefaultBody) // response payload @@ -192,6 +194,7 @@ ListArtifactCompatibleServicesDefaultBody list artifact compatible services defa swagger:model ListArtifactCompatibleServicesDefaultBody */ type ListArtifactCompatibleServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListArtifactCompatibleServicesDefaultBody) contextValidateDetails(ctx c return err } } + } return nil @@ -309,6 +315,7 @@ ListArtifactCompatibleServicesDefaultBodyDetailsItems0 list artifact compatible swagger:model ListArtifactCompatibleServicesDefaultBodyDetailsItems0 */ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { func (o *ListArtifactCompatibleServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListArtifactCompatibleServicesDefaultBodyDetailsItems0) UnmarshalJSON(d // MarshalJSON marshals this object with additional properties into a JSON object func (o ListArtifactCompatibleServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListArtifactCompatibleServicesOKBody list artifact compatible services OK body swagger:model ListArtifactCompatibleServicesOKBody */ type ListArtifactCompatibleServicesOKBody struct { + // mysql Mysql []*ListArtifactCompatibleServicesOKBodyMysqlItems0 `json:"mysql"` @@ -524,7 +534,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 swag.IsZero(o.Mysql[i]) { // not required @@ -544,13 +556,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 swag.IsZero(o.Mongodb[i]) { // not required @@ -570,6 +585,7 @@ func (o *ListArtifactCompatibleServicesOKBody) contextValidateMongodb(ctx contex return err } } + } return nil @@ -598,6 +614,7 @@ ListArtifactCompatibleServicesOKBodyMongodbItems0 MongoDBService represents a ge swagger:model ListArtifactCompatibleServicesOKBodyMongodbItems0 */ type ListArtifactCompatibleServicesOKBodyMongodbItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -668,6 +685,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/backup/v1/json/client/backup_service/list_artifacts_parameters.go b/api/backup/v1/json/client/backup_service/list_artifacts_parameters.go index c22d1264781..158ab869be0 100644 --- a/api/backup/v1/json/client/backup_service/list_artifacts_parameters.go +++ b/api/backup/v1/json/client/backup_service/list_artifacts_parameters.go @@ -115,6 +115,7 @@ func (o *ListArtifactsParams) SetHTTPClient(client *http.Client) { // 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/backup/v1/json/client/backup_service/list_artifacts_responses.go b/api/backup/v1/json/client/backup_service/list_artifacts_responses.go index 36316157438..9fe3b844284 100644 --- a/api/backup/v1/json/client/backup_service/list_artifacts_responses.go +++ b/api/backup/v1/json/client/backup_service/list_artifacts_responses.go @@ -105,6 +105,7 @@ func (o *ListArtifactsOK) GetPayload() *ListArtifactsOKBody { } func (o *ListArtifactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListArtifactsDefault) GetPayload() *ListArtifactsDefaultBody { } func (o *ListArtifactsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListArtifactsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListArtifactsDefaultBody list artifacts default body swagger:model ListArtifactsDefaultBody */ type ListArtifactsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListArtifactsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -310,6 +316,7 @@ ListArtifactsDefaultBodyDetailsItems0 list artifacts default body details items0 swagger:model ListArtifactsDefaultBodyDetailsItems0 */ type ListArtifactsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListArtifactsDefaultBodyDetailsItems0 struct { func (o *ListArtifactsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListArtifactsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListArtifactsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListArtifactsOKBody list artifacts OK body swagger:model ListArtifactsOKBody */ type ListArtifactsOKBody struct { + // artifacts Artifacts []*ListArtifactsOKBodyArtifactsItems0 `json:"artifacts"` } @@ -484,7 +494,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 swag.IsZero(o.Artifacts[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListArtifactsOKBody) contextValidateArtifacts(ctx context.Context, form return err } } + } return nil @@ -532,6 +545,7 @@ ListArtifactsOKBodyArtifactsItems0 Artifact represents single backup artifact. swagger:model ListArtifactsOKBodyArtifactsItems0 */ type ListArtifactsOKBodyArtifactsItems0 struct { + // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` @@ -822,7 +836,9 @@ func (o *ListArtifactsOKBodyArtifactsItems0) ContextValidate(ctx context.Context } func (o *ListArtifactsOKBodyArtifactsItems0) contextValidateMetadataList(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.MetadataList); i++ { + if o.MetadataList[i] != nil { if swag.IsZero(o.MetadataList[i]) { // not required @@ -842,6 +858,7 @@ func (o *ListArtifactsOKBodyArtifactsItems0) contextValidateMetadataList(ctx con return err } } + } return nil @@ -870,6 +887,7 @@ ListArtifactsOKBodyArtifactsItems0MetadataListItems0 Metadata contains extra art swagger:model ListArtifactsOKBodyArtifactsItems0MetadataListItems0 */ type ListArtifactsOKBodyArtifactsItems0MetadataListItems0 struct { + // List of files backup consists of. FileList []*ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 `json:"file_list"` @@ -987,7 +1005,9 @@ func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) ContextValidate(c } func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) contextValidateFileList(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.FileList); i++ { + if o.FileList[i] != nil { if swag.IsZero(o.FileList[i]) { // not required @@ -1007,12 +1027,14 @@ func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) contextValidateFi return err } } + } return nil } func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) contextValidatePbmMetadata(ctx context.Context, formats strfmt.Registry) error { + if o.PbmMetadata != nil { if swag.IsZero(o.PbmMetadata) { // not required @@ -1059,6 +1081,7 @@ ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 File represen swagger:model ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 */ type ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 struct { + // name Name string `json:"name,omitempty"` @@ -1099,6 +1122,7 @@ ListArtifactsOKBodyArtifactsItems0MetadataListItems0PbmMetadata PbmMetadata cont swagger:model ListArtifactsOKBodyArtifactsItems0MetadataListItems0PbmMetadata */ type ListArtifactsOKBodyArtifactsItems0MetadataListItems0PbmMetadata struct { + // Name of backup in backup tool representation. Name string `json:"name,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go index 069308b4635..9e5c9057658 100644 --- a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go +++ b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go @@ -60,6 +60,7 @@ ListPitrTimerangesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListPitrTimerangesParams struct { + /* ArtifactID. Artifact ID represents artifact whose location has PITR timeranges to be retrieved. @@ -132,6 +133,7 @@ func (o *ListPitrTimerangesParams) SetArtifactID(artifactID string) { // WriteToRequest writes these params to a swagger request func (o *ListPitrTimerangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go index f67370539e5..d6ad2cb6e78 100644 --- a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go +++ b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go @@ -105,6 +105,7 @@ func (o *ListPitrTimerangesOK) GetPayload() *ListPitrTimerangesOKBody { } func (o *ListPitrTimerangesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListPitrTimerangesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListPitrTimerangesDefault) GetPayload() *ListPitrTimerangesDefaultBody } func (o *ListPitrTimerangesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListPitrTimerangesDefaultBody) // response payload @@ -193,6 +195,7 @@ ListPitrTimerangesDefaultBody list pitr timeranges default body swagger:model ListPitrTimerangesDefaultBody */ type ListPitrTimerangesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListPitrTimerangesDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListPitrTimerangesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListPitrTimerangesDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -310,6 +316,7 @@ ListPitrTimerangesDefaultBodyDetailsItems0 list pitr timeranges default body det swagger:model ListPitrTimerangesDefaultBodyDetailsItems0 */ type ListPitrTimerangesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListPitrTimerangesDefaultBodyDetailsItems0 struct { func (o *ListPitrTimerangesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListPitrTimerangesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o ListPitrTimerangesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListPitrTimerangesOKBody list pitr timeranges OK body swagger:model ListPitrTimerangesOKBody */ type ListPitrTimerangesOKBody struct { + // timeranges Timeranges []*ListPitrTimerangesOKBodyTimerangesItems0 `json:"timeranges"` } @@ -484,7 +494,9 @@ func (o *ListPitrTimerangesOKBody) ContextValidate(ctx context.Context, formats } func (o *ListPitrTimerangesOKBody) contextValidateTimeranges(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Timeranges); i++ { + if o.Timeranges[i] != nil { if swag.IsZero(o.Timeranges[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListPitrTimerangesOKBody) contextValidateTimeranges(ctx context.Context return err } } + } return nil @@ -532,6 +545,7 @@ ListPitrTimerangesOKBodyTimerangesItems0 list pitr timeranges OK body timeranges swagger:model ListPitrTimerangesOKBodyTimerangesItems0 */ type ListPitrTimerangesOKBodyTimerangesItems0 struct { + // start_timestamp is the time of the first event in the PITR chunk. // Format: date-time StartTimestamp strfmt.DateTime `json:"start_timestamp,omitempty"` diff --git a/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go b/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go index e87207a6d84..43c3c9b0fc6 100644 --- a/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go +++ b/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go @@ -115,6 +115,7 @@ func (o *ListScheduledBackupsParams) SetHTTPClient(client *http.Client) { // 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/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go b/api/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go index 838aafb1637..ae84e5111a9 100644 --- a/api/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go +++ b/api/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go @@ -105,6 +105,7 @@ func (o *ListScheduledBackupsOK) GetPayload() *ListScheduledBackupsOKBody { } func (o *ListScheduledBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListScheduledBackupsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListScheduledBackupsDefault) GetPayload() *ListScheduledBackupsDefaultB } func (o *ListScheduledBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListScheduledBackupsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListScheduledBackupsDefaultBody list scheduled backups default body swagger:model ListScheduledBackupsDefaultBody */ type ListScheduledBackupsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListScheduledBackupsDefaultBody) contextValidateDetails(ctx context.Con return err } } + } return nil @@ -310,6 +316,7 @@ ListScheduledBackupsDefaultBodyDetailsItems0 list scheduled backups default body swagger:model ListScheduledBackupsDefaultBodyDetailsItems0 */ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { func (o *ListScheduledBackupsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListScheduledBackupsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte // MarshalJSON marshals this object with additional properties into a JSON object func (o ListScheduledBackupsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListScheduledBackupsOKBody list scheduled backups OK body swagger:model ListScheduledBackupsOKBody */ type ListScheduledBackupsOKBody struct { + // scheduled backups ScheduledBackups []*ListScheduledBackupsOKBodyScheduledBackupsItems0 `json:"scheduled_backups"` } @@ -484,7 +494,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 swag.IsZero(o.ScheduledBackups[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListScheduledBackupsOKBody) contextValidateScheduledBackups(ctx context return err } } + } return nil @@ -532,6 +545,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/backup/v1/json/client/backup_service/remove_scheduled_backup_parameters.go b/api/backup/v1/json/client/backup_service/remove_scheduled_backup_parameters.go index d1848495013..5e16fc7570a 100644 --- a/api/backup/v1/json/client/backup_service/remove_scheduled_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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 { + // ScheduledBackupID. ScheduledBackupID string @@ -129,6 +130,7 @@ func (o *RemoveScheduledBackupParams) SetScheduledBackupID(scheduledBackupID str // 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/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go b/api/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go index 0a157b49f34..09788a97680 100644 --- a/api/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go @@ -104,6 +104,7 @@ func (o *RemoveScheduledBackupOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *RemoveScheduledBackupDefault) GetPayload() *RemoveScheduledBackupDefaul } func (o *RemoveScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveScheduledBackupDefaultBody) // response payload @@ -190,6 +192,7 @@ RemoveScheduledBackupDefaultBody remove scheduled backup default body swagger:model RemoveScheduledBackupDefaultBody */ type RemoveScheduledBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *RemoveScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -307,6 +313,7 @@ RemoveScheduledBackupDefaultBodyDetailsItems0 remove scheduled backup default bo swagger:model RemoveScheduledBackupDefaultBodyDetailsItems0 */ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { func (o *RemoveScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *RemoveScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byt // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveScheduledBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/schedule_backup_parameters.go b/api/backup/v1/json/client/backup_service/schedule_backup_parameters.go index 843f97f8cdb..3a9140d3469 100644 --- a/api/backup/v1/json/client/backup_service/schedule_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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/backup/v1/json/client/backup_service/schedule_backup_responses.go b/api/backup/v1/json/client/backup_service/schedule_backup_responses.go index 84b170cf30d..1c650b7bde2 100644 --- a/api/backup/v1/json/client/backup_service/schedule_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/schedule_backup_responses.go @@ -105,6 +105,7 @@ func (o *ScheduleBackupOK) GetPayload() *ScheduleBackupOKBody { } func (o *ScheduleBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ScheduleBackupOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ScheduleBackupDefault) GetPayload() *ScheduleBackupDefaultBody { } func (o *ScheduleBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ScheduleBackupDefaultBody) // response payload @@ -193,6 +195,7 @@ ScheduleBackupBody schedule backup body swagger:model ScheduleBackupBody */ type ScheduleBackupBody struct { + // Service identifier where backup should be performed. ServiceID string `json:"service_id,omitempty"` @@ -392,6 +395,7 @@ ScheduleBackupDefaultBody schedule backup default body swagger:model ScheduleBackupDefaultBody */ type ScheduleBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -461,7 +465,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 swag.IsZero(o.Details[i]) { // not required @@ -481,6 +487,7 @@ func (o *ScheduleBackupDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -509,6 +516,7 @@ ScheduleBackupDefaultBodyDetailsItems0 schedule backup default body details item swagger:model ScheduleBackupDefaultBodyDetailsItems0 */ type ScheduleBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -520,6 +528,7 @@ type ScheduleBackupDefaultBodyDetailsItems0 struct { func (o *ScheduleBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -557,6 +566,7 @@ func (o *ScheduleBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ScheduleBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -620,6 +630,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/backup/v1/json/client/backup_service/start_backup_parameters.go b/api/backup/v1/json/client/backup_service/start_backup_parameters.go index c886e6520d6..f6b1b4020ea 100644 --- a/api/backup/v1/json/client/backup_service/start_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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/backup/v1/json/client/backup_service/start_backup_responses.go b/api/backup/v1/json/client/backup_service/start_backup_responses.go index 3137ce1bc85..466948a9ce6 100644 --- a/api/backup/v1/json/client/backup_service/start_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/start_backup_responses.go @@ -105,6 +105,7 @@ func (o *StartBackupOK) GetPayload() *StartBackupOKBody { } func (o *StartBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartBackupOKBody) // response payload @@ -178,6 +179,7 @@ func (o *StartBackupDefault) GetPayload() *StartBackupDefaultBody { } func (o *StartBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartBackupDefaultBody) // response payload @@ -193,6 +195,7 @@ StartBackupBody start backup body swagger:model StartBackupBody */ type StartBackupBody struct { + // Service identifier. ServiceID string `json:"service_id,omitempty"` @@ -306,6 +309,7 @@ StartBackupDefaultBody start backup default body swagger:model StartBackupDefaultBody */ type StartBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -375,7 +379,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 swag.IsZero(o.Details[i]) { // not required @@ -395,6 +401,7 @@ func (o *StartBackupDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -423,6 +430,7 @@ StartBackupDefaultBodyDetailsItems0 start backup default body details items0 swagger:model StartBackupDefaultBodyDetailsItems0 */ type StartBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -434,6 +442,7 @@ type StartBackupDefaultBodyDetailsItems0 struct { func (o *StartBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -471,6 +480,7 @@ func (o *StartBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StartBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -534,6 +544,7 @@ StartBackupOKBody start backup OK body swagger:model StartBackupOKBody */ type StartBackupOKBody struct { + // Unique identifier. ArtifactID string `json:"artifact_id,omitempty"` } diff --git a/api/backup/v1/json/client/locations_service/add_location_parameters.go b/api/backup/v1/json/client/locations_service/add_location_parameters.go index a6fe1c12370..f79768e1d20 100644 --- a/api/backup/v1/json/client/locations_service/add_location_parameters.go +++ b/api/backup/v1/json/client/locations_service/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/backup/v1/json/client/locations_service/add_location_responses.go b/api/backup/v1/json/client/locations_service/add_location_responses.go index fc373eed126..7f936c3868e 100644 --- a/api/backup/v1/json/client/locations_service/add_location_responses.go +++ b/api/backup/v1/json/client/locations_service/add_location_responses.go @@ -104,6 +104,7 @@ func (o *AddLocationOK) GetPayload() *AddLocationOKBody { } func (o *AddLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddLocationOKBody) // response payload @@ -177,6 +178,7 @@ func (o *AddLocationDefault) GetPayload() *AddLocationDefaultBody { } func (o *AddLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddLocationDefaultBody) // response payload @@ -192,6 +194,7 @@ AddLocationBody add location body swagger:model AddLocationBody */ type AddLocationBody struct { + // Location name Name string `json:"name,omitempty"` @@ -288,6 +291,7 @@ func (o *AddLocationBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddLocationBody) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { + if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -312,6 +316,7 @@ func (o *AddLocationBody) contextValidateFilesystemConfig(ctx context.Context, f } func (o *AddLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -358,6 +363,7 @@ AddLocationDefaultBody add location default body swagger:model AddLocationDefaultBody */ type AddLocationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -427,7 +433,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 swag.IsZero(o.Details[i]) { // not required @@ -447,6 +455,7 @@ func (o *AddLocationDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -475,6 +484,7 @@ AddLocationDefaultBodyDetailsItems0 add location default body details items0 swagger:model AddLocationDefaultBodyDetailsItems0 */ type AddLocationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -486,6 +496,7 @@ type AddLocationDefaultBodyDetailsItems0 struct { func (o *AddLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -523,6 +534,7 @@ func (o *AddLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddLocationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -586,6 +598,7 @@ AddLocationOKBody add location OK body swagger:model AddLocationOKBody */ type AddLocationOKBody struct { + // Machine-readable ID. LocationID string `json:"location_id,omitempty"` } @@ -623,6 +636,7 @@ AddLocationParamsBodyFilesystemConfig FilesystemLocationConfig represents file s swagger:model AddLocationParamsBodyFilesystemConfig */ type AddLocationParamsBodyFilesystemConfig struct { + // path Path string `json:"path,omitempty"` } @@ -660,6 +674,7 @@ AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuratio swagger:model AddLocationParamsBodyS3Config */ type AddLocationParamsBodyS3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/locations_service/change_location_parameters.go b/api/backup/v1/json/client/locations_service/change_location_parameters.go index 1b0e5bef6b0..7c817aec1b0 100644 --- a/api/backup/v1/json/client/locations_service/change_location_parameters.go +++ b/api/backup/v1/json/client/locations_service/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 @@ -146,6 +147,7 @@ func (o *ChangeLocationParams) SetLocationID(locationID string) { // 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/backup/v1/json/client/locations_service/change_location_responses.go b/api/backup/v1/json/client/locations_service/change_location_responses.go index 54f0b55f31b..c2d4b96dcb0 100644 --- a/api/backup/v1/json/client/locations_service/change_location_responses.go +++ b/api/backup/v1/json/client/locations_service/change_location_responses.go @@ -104,6 +104,7 @@ func (o *ChangeLocationOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *ChangeLocationDefault) GetPayload() *ChangeLocationDefaultBody { } func (o *ChangeLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeLocationDefaultBody) // response payload @@ -190,6 +192,7 @@ ChangeLocationBody change location body swagger:model ChangeLocationBody */ type ChangeLocationBody struct { + // Location name Name string `json:"name,omitempty"` @@ -286,6 +289,7 @@ func (o *ChangeLocationBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeLocationBody) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { + if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -310,6 +314,7 @@ func (o *ChangeLocationBody) contextValidateFilesystemConfig(ctx context.Context } func (o *ChangeLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -356,6 +361,7 @@ ChangeLocationDefaultBody change location default body swagger:model ChangeLocationDefaultBody */ type ChangeLocationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -425,7 +431,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 swag.IsZero(o.Details[i]) { // not required @@ -445,6 +453,7 @@ func (o *ChangeLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -473,6 +482,7 @@ ChangeLocationDefaultBodyDetailsItems0 change location default body details item swagger:model ChangeLocationDefaultBodyDetailsItems0 */ type ChangeLocationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -484,6 +494,7 @@ type ChangeLocationDefaultBodyDetailsItems0 struct { func (o *ChangeLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -521,6 +532,7 @@ func (o *ChangeLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeLocationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -584,6 +596,7 @@ ChangeLocationParamsBodyFilesystemConfig FilesystemLocationConfig represents fil swagger:model ChangeLocationParamsBodyFilesystemConfig */ type ChangeLocationParamsBodyFilesystemConfig struct { + // path Path string `json:"path,omitempty"` } @@ -621,6 +634,7 @@ ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configura swagger:model ChangeLocationParamsBodyS3Config */ type ChangeLocationParamsBodyS3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/locations_service/list_locations_parameters.go b/api/backup/v1/json/client/locations_service/list_locations_parameters.go index 263117d982d..eb22d06cbc9 100644 --- a/api/backup/v1/json/client/locations_service/list_locations_parameters.go +++ b/api/backup/v1/json/client/locations_service/list_locations_parameters.go @@ -115,6 +115,7 @@ func (o *ListLocationsParams) SetHTTPClient(client *http.Client) { // 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/backup/v1/json/client/locations_service/list_locations_responses.go b/api/backup/v1/json/client/locations_service/list_locations_responses.go index 8d799fec0df..34c2600a41e 100644 --- a/api/backup/v1/json/client/locations_service/list_locations_responses.go +++ b/api/backup/v1/json/client/locations_service/list_locations_responses.go @@ -104,6 +104,7 @@ func (o *ListLocationsOK) GetPayload() *ListLocationsOKBody { } func (o *ListLocationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListLocationsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListLocationsDefault) GetPayload() *ListLocationsDefaultBody { } func (o *ListLocationsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListLocationsDefaultBody) // response payload @@ -192,6 +194,7 @@ ListLocationsDefaultBody list locations default body swagger:model ListLocationsDefaultBody */ type ListLocationsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListLocationsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -309,6 +315,7 @@ ListLocationsDefaultBodyDetailsItems0 list locations default body details items0 swagger:model ListLocationsDefaultBodyDetailsItems0 */ type ListLocationsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListLocationsDefaultBodyDetailsItems0 struct { func (o *ListLocationsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListLocationsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListLocationsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListLocationsOKBody list locations OK body swagger:model ListLocationsOKBody */ type ListLocationsOKBody struct { + // locations Locations []*ListLocationsOKBodyLocationsItems0 `json:"locations"` } @@ -483,7 +493,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 swag.IsZero(o.Locations[i]) { // not required @@ -503,6 +515,7 @@ func (o *ListLocationsOKBody) contextValidateLocations(ctx context.Context, form return err } } + } return nil @@ -531,6 +544,7 @@ ListLocationsOKBodyLocationsItems0 Location represents single Backup Location. swagger:model ListLocationsOKBodyLocationsItems0 */ type ListLocationsOKBodyLocationsItems0 struct { + // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -630,6 +644,7 @@ func (o *ListLocationsOKBodyLocationsItems0) ContextValidate(ctx context.Context } func (o *ListLocationsOKBodyLocationsItems0) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { + if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -654,6 +669,7 @@ func (o *ListLocationsOKBodyLocationsItems0) contextValidateFilesystemConfig(ctx } func (o *ListLocationsOKBodyLocationsItems0) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -700,6 +716,7 @@ ListLocationsOKBodyLocationsItems0FilesystemConfig FilesystemLocationConfig repr swagger:model ListLocationsOKBodyLocationsItems0FilesystemConfig */ type ListLocationsOKBodyLocationsItems0FilesystemConfig struct { + // path Path string `json:"path,omitempty"` } @@ -737,6 +754,7 @@ ListLocationsOKBodyLocationsItems0S3Config S3LocationConfig represents S3 bucket swagger:model ListLocationsOKBodyLocationsItems0S3Config */ type ListLocationsOKBodyLocationsItems0S3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/locations_service/remove_location_parameters.go b/api/backup/v1/json/client/locations_service/remove_location_parameters.go index 3a4a644edd2..f806c18bdc1 100644 --- a/api/backup/v1/json/client/locations_service/remove_location_parameters.go +++ b/api/backup/v1/json/client/locations_service/remove_location_parameters.go @@ -61,6 +61,7 @@ RemoveLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveLocationParams struct { + /* Force. Force mode @@ -150,6 +151,7 @@ func (o *RemoveLocationParams) SetLocationID(locationID string) { // 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 } @@ -165,6 +167,7 @@ func (o *RemoveLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfm } qForce := swag.FormatBool(qrForce) if qForce != "" { + if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/backup/v1/json/client/locations_service/remove_location_responses.go b/api/backup/v1/json/client/locations_service/remove_location_responses.go index 7ae1a7821fc..c1506cb9753 100644 --- a/api/backup/v1/json/client/locations_service/remove_location_responses.go +++ b/api/backup/v1/json/client/locations_service/remove_location_responses.go @@ -104,6 +104,7 @@ func (o *RemoveLocationOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *RemoveLocationDefault) GetPayload() *RemoveLocationDefaultBody { } func (o *RemoveLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveLocationDefaultBody) // response payload @@ -190,6 +192,7 @@ RemoveLocationDefaultBody remove location default body swagger:model RemoveLocationDefaultBody */ type RemoveLocationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *RemoveLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -307,6 +313,7 @@ RemoveLocationDefaultBodyDetailsItems0 remove location default body details item swagger:model RemoveLocationDefaultBodyDetailsItems0 */ type RemoveLocationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type RemoveLocationDefaultBodyDetailsItems0 struct { func (o *RemoveLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *RemoveLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveLocationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/locations_service/test_location_config_parameters.go b/api/backup/v1/json/client/locations_service/test_location_config_parameters.go index 1856fe0f364..c930393f8cc 100644 --- a/api/backup/v1/json/client/locations_service/test_location_config_parameters.go +++ b/api/backup/v1/json/client/locations_service/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/backup/v1/json/client/locations_service/test_location_config_responses.go b/api/backup/v1/json/client/locations_service/test_location_config_responses.go index 70d3fc4eca0..d7daaa0f33a 100644 --- a/api/backup/v1/json/client/locations_service/test_location_config_responses.go +++ b/api/backup/v1/json/client/locations_service/test_location_config_responses.go @@ -104,6 +104,7 @@ func (o *TestLocationConfigOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *TestLocationConfigDefault) GetPayload() *TestLocationConfigDefaultBody } func (o *TestLocationConfigDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(TestLocationConfigDefaultBody) // response payload @@ -190,6 +192,7 @@ TestLocationConfigBody test location config body swagger:model TestLocationConfigBody */ type TestLocationConfigBody struct { + // filesystem config FilesystemConfig *TestLocationConfigParamsBodyFilesystemConfig `json:"filesystem_config,omitempty"` @@ -280,6 +283,7 @@ func (o *TestLocationConfigBody) ContextValidate(ctx context.Context, formats st } func (o *TestLocationConfigBody) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { + if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -304,6 +308,7 @@ func (o *TestLocationConfigBody) contextValidateFilesystemConfig(ctx context.Con } func (o *TestLocationConfigBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { + if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -350,6 +355,7 @@ TestLocationConfigDefaultBody test location config default body swagger:model TestLocationConfigDefaultBody */ type TestLocationConfigDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -419,7 +425,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 swag.IsZero(o.Details[i]) { // not required @@ -439,6 +447,7 @@ func (o *TestLocationConfigDefaultBody) contextValidateDetails(ctx context.Conte return err } } + } return nil @@ -467,6 +476,7 @@ TestLocationConfigDefaultBodyDetailsItems0 test location config default body det swagger:model TestLocationConfigDefaultBodyDetailsItems0 */ type TestLocationConfigDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -478,6 +488,7 @@ type TestLocationConfigDefaultBodyDetailsItems0 struct { func (o *TestLocationConfigDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -515,6 +526,7 @@ func (o *TestLocationConfigDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o TestLocationConfigDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -578,6 +590,7 @@ TestLocationConfigParamsBodyFilesystemConfig FilesystemLocationConfig represents swagger:model TestLocationConfigParamsBodyFilesystemConfig */ type TestLocationConfigParamsBodyFilesystemConfig struct { + // path Path string `json:"path,omitempty"` } @@ -615,6 +628,7 @@ TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket confi swagger:model TestLocationConfigParamsBodyS3Config */ type TestLocationConfigParamsBodyS3Config struct { + // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go b/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go index b621fbb6800..0e417604cc6 100644 --- a/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go +++ b/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go @@ -61,6 +61,7 @@ GetLogsMixin5Params contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsMixin5Params struct { + // Limit. // // Format: int64 @@ -162,6 +163,7 @@ func (o *GetLogsMixin5Params) SetRestoreID(restoreID string) { // WriteToRequest writes these params to a swagger request func (o *GetLogsMixin5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -177,6 +179,7 @@ func (o *GetLogsMixin5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { return err } @@ -193,6 +196,7 @@ func (o *GetLogsMixin5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt } qOffset := swag.FormatInt64(qrOffset) if qOffset != "" { + if err := r.SetQueryParam("offset", qOffset); err != nil { return err } diff --git a/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go b/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go index 8adf159cd53..52f8f8982a4 100644 --- a/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go +++ b/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go @@ -104,6 +104,7 @@ func (o *GetLogsMixin5OK) GetPayload() *GetLogsMixin5OKBody { } func (o *GetLogsMixin5OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsMixin5OKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetLogsMixin5Default) GetPayload() *GetLogsMixin5DefaultBody { } func (o *GetLogsMixin5Default) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLogsMixin5DefaultBody) // response payload @@ -192,6 +194,7 @@ GetLogsMixin5DefaultBody get logs mixin5 default body swagger:model GetLogsMixin5DefaultBody */ type GetLogsMixin5DefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *GetLogsMixin5DefaultBody) ContextValidate(ctx context.Context, formats } func (o *GetLogsMixin5DefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetLogsMixin5DefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -309,6 +315,7 @@ GetLogsMixin5DefaultBodyDetailsItems0 get logs mixin5 default body details items swagger:model GetLogsMixin5DefaultBodyDetailsItems0 */ type GetLogsMixin5DefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetLogsMixin5DefaultBodyDetailsItems0 struct { func (o *GetLogsMixin5DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetLogsMixin5DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetLogsMixin5DefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetLogsMixin5OKBody get logs mixin5 OK body swagger:model GetLogsMixin5OKBody */ type GetLogsMixin5OKBody struct { + // logs Logs []*GetLogsMixin5OKBodyLogsItems0 `json:"logs"` @@ -486,7 +496,9 @@ func (o *GetLogsMixin5OKBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetLogsMixin5OKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Logs); i++ { + if o.Logs[i] != nil { if swag.IsZero(o.Logs[i]) { // not required @@ -506,6 +518,7 @@ func (o *GetLogsMixin5OKBody) contextValidateLogs(ctx context.Context, formats s return err } } + } return nil @@ -534,6 +547,7 @@ GetLogsMixin5OKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetLogsMixin5OKBodyLogsItems0 */ type GetLogsMixin5OKBodyLogsItems0 struct { + // chunk id ChunkID int64 `json:"chunk_id,omitempty"` diff --git a/api/backup/v1/json/client/restore_service/list_restores_parameters.go b/api/backup/v1/json/client/restore_service/list_restores_parameters.go index d46fd70f9e4..fd958787b8b 100644 --- a/api/backup/v1/json/client/restore_service/list_restores_parameters.go +++ b/api/backup/v1/json/client/restore_service/list_restores_parameters.go @@ -115,6 +115,7 @@ func (o *ListRestoresParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListRestoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/backup/v1/json/client/restore_service/list_restores_responses.go b/api/backup/v1/json/client/restore_service/list_restores_responses.go index d3b45468b2f..472aa2e11aa 100644 --- a/api/backup/v1/json/client/restore_service/list_restores_responses.go +++ b/api/backup/v1/json/client/restore_service/list_restores_responses.go @@ -105,6 +105,7 @@ func (o *ListRestoresOK) GetPayload() *ListRestoresOKBody { } func (o *ListRestoresOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListRestoresOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListRestoresDefault) GetPayload() *ListRestoresDefaultBody { } func (o *ListRestoresDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListRestoresDefaultBody) // response payload @@ -193,6 +195,7 @@ ListRestoresDefaultBody list restores default body swagger:model ListRestoresDefaultBody */ type ListRestoresDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListRestoresDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListRestoresDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListRestoresDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -310,6 +316,7 @@ ListRestoresDefaultBodyDetailsItems0 list restores default body details items0 swagger:model ListRestoresDefaultBodyDetailsItems0 */ type ListRestoresDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListRestoresDefaultBodyDetailsItems0 struct { func (o *ListRestoresDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListRestoresDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListRestoresDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListRestoresOKBody list restores OK body swagger:model ListRestoresOKBody */ type ListRestoresOKBody struct { + // items Items []*ListRestoresOKBodyItemsItems0 `json:"items"` } @@ -484,7 +494,9 @@ func (o *ListRestoresOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListRestoresOKBody) contextValidateItems(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Items); i++ { + if o.Items[i] != nil { if swag.IsZero(o.Items[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListRestoresOKBody) contextValidateItems(ctx context.Context, formats s return err } } + } return nil @@ -532,6 +545,7 @@ ListRestoresOKBodyItemsItems0 RestoreHistoryItem represents single backup restor swagger:model ListRestoresOKBodyItemsItems0 */ type ListRestoresOKBodyItemsItems0 struct { + // Machine-readable restore id. RestoreID string `json:"restore_id,omitempty"` diff --git a/api/backup/v1/json/client/restore_service/restore_backup_parameters.go b/api/backup/v1/json/client/restore_service/restore_backup_parameters.go index 4d6b7d7f955..343407b6017 100644 --- a/api/backup/v1/json/client/restore_service/restore_backup_parameters.go +++ b/api/backup/v1/json/client/restore_service/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/backup/v1/json/client/restore_service/restore_backup_responses.go b/api/backup/v1/json/client/restore_service/restore_backup_responses.go index 1aa57a61322..7392970ae81 100644 --- a/api/backup/v1/json/client/restore_service/restore_backup_responses.go +++ b/api/backup/v1/json/client/restore_service/restore_backup_responses.go @@ -105,6 +105,7 @@ func (o *RestoreBackupOK) GetPayload() *RestoreBackupOKBody { } func (o *RestoreBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RestoreBackupOKBody) // response payload @@ -178,6 +179,7 @@ func (o *RestoreBackupDefault) GetPayload() *RestoreBackupDefaultBody { } func (o *RestoreBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RestoreBackupDefaultBody) // response payload @@ -193,6 +195,7 @@ RestoreBackupBody restore backup body swagger:model RestoreBackupBody */ type RestoreBackupBody struct { + // Service identifier where backup should be restored. ServiceID string `json:"service_id,omitempty"` @@ -258,6 +261,7 @@ RestoreBackupDefaultBody restore backup default body swagger:model RestoreBackupDefaultBody */ type RestoreBackupDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -327,7 +331,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 swag.IsZero(o.Details[i]) { // not required @@ -347,6 +353,7 @@ func (o *RestoreBackupDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -375,6 +382,7 @@ RestoreBackupDefaultBodyDetailsItems0 restore backup default body details items0 swagger:model RestoreBackupDefaultBodyDetailsItems0 */ type RestoreBackupDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -386,6 +394,7 @@ type RestoreBackupDefaultBodyDetailsItems0 struct { func (o *RestoreBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -423,6 +432,7 @@ func (o *RestoreBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RestoreBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -486,6 +496,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/backup/v1/locations.pb.go b/api/backup/v1/locations.pb.go index 396b552ee80..050f150f8ad 100644 --- a/api/backup/v1/locations.pb.go +++ b/api/backup/v1/locations.pb.go @@ -7,17 +7,15 @@ package backupv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "github.com/percona/pmm/api/extensions/v1" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - _ "github.com/percona/pmm/api/extensions/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -815,25 +813,22 @@ func file_backup_v1_locations_proto_rawDescGZIP() []byte { return file_backup_v1_locations_proto_rawDescData } -var ( - file_backup_v1_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 13) - file_backup_v1_locations_proto_goTypes = []any{ - (*FilesystemLocationConfig)(nil), // 0: backup.v1.FilesystemLocationConfig - (*S3LocationConfig)(nil), // 1: backup.v1.S3LocationConfig - (*Location)(nil), // 2: backup.v1.Location - (*ListLocationsRequest)(nil), // 3: backup.v1.ListLocationsRequest - (*ListLocationsResponse)(nil), // 4: backup.v1.ListLocationsResponse - (*AddLocationRequest)(nil), // 5: backup.v1.AddLocationRequest - (*AddLocationResponse)(nil), // 6: backup.v1.AddLocationResponse - (*ChangeLocationRequest)(nil), // 7: backup.v1.ChangeLocationRequest - (*ChangeLocationResponse)(nil), // 8: backup.v1.ChangeLocationResponse - (*RemoveLocationRequest)(nil), // 9: backup.v1.RemoveLocationRequest - (*RemoveLocationResponse)(nil), // 10: backup.v1.RemoveLocationResponse - (*TestLocationConfigRequest)(nil), // 11: backup.v1.TestLocationConfigRequest - (*TestLocationConfigResponse)(nil), // 12: backup.v1.TestLocationConfigResponse - } -) - +var file_backup_v1_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_backup_v1_locations_proto_goTypes = []any{ + (*FilesystemLocationConfig)(nil), // 0: backup.v1.FilesystemLocationConfig + (*S3LocationConfig)(nil), // 1: backup.v1.S3LocationConfig + (*Location)(nil), // 2: backup.v1.Location + (*ListLocationsRequest)(nil), // 3: backup.v1.ListLocationsRequest + (*ListLocationsResponse)(nil), // 4: backup.v1.ListLocationsResponse + (*AddLocationRequest)(nil), // 5: backup.v1.AddLocationRequest + (*AddLocationResponse)(nil), // 6: backup.v1.AddLocationResponse + (*ChangeLocationRequest)(nil), // 7: backup.v1.ChangeLocationRequest + (*ChangeLocationResponse)(nil), // 8: backup.v1.ChangeLocationResponse + (*RemoveLocationRequest)(nil), // 9: backup.v1.RemoveLocationRequest + (*RemoveLocationResponse)(nil), // 10: backup.v1.RemoveLocationResponse + (*TestLocationConfigRequest)(nil), // 11: backup.v1.TestLocationConfigRequest + (*TestLocationConfigResponse)(nil), // 12: backup.v1.TestLocationConfigResponse +} var file_backup_v1_locations_proto_depIdxs = []int32{ 0, // 0: backup.v1.Location.filesystem_config:type_name -> backup.v1.FilesystemLocationConfig 1, // 1: backup.v1.Location.s3_config:type_name -> backup.v1.S3LocationConfig diff --git a/api/backup/v1/locations.pb.validate.go b/api/backup/v1/locations.pb.validate.go index 18cbddde6b2..04d465b6e6c 100644 --- a/api/backup/v1/locations.pb.validate.go +++ b/api/backup/v1/locations.pb.validate.go @@ -135,8 +135,7 @@ func (e FilesystemLocationConfigValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = FilesystemLocationConfigValidationError{} @@ -280,8 +279,7 @@ func (e S3LocationConfigValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = S3LocationConfigValidationError{} @@ -473,8 +471,7 @@ func (e LocationValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = LocationValidationError{} @@ -576,8 +573,7 @@ func (e ListLocationsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListLocationsRequestValidationError{} @@ -713,8 +709,7 @@ func (e ListLocationsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListLocationsResponseValidationError{} @@ -887,8 +882,7 @@ func (e AddLocationRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddLocationRequestValidationError{} @@ -992,8 +986,7 @@ func (e AddLocationResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddLocationResponseValidationError{} @@ -1168,8 +1161,7 @@ func (e ChangeLocationRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeLocationRequestValidationError{} @@ -1271,8 +1263,7 @@ func (e ChangeLocationResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeLocationResponseValidationError{} @@ -1378,8 +1369,7 @@ func (e RemoveLocationRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveLocationRequestValidationError{} @@ -1481,8 +1471,7 @@ func (e RemoveLocationResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveLocationResponseValidationError{} @@ -1642,8 +1631,7 @@ func (e TestLocationConfigRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = TestLocationConfigRequestValidationError{} @@ -1745,8 +1733,7 @@ func (e TestLocationConfigResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = TestLocationConfigResponseValidationError{} diff --git a/api/backup/v1/locations_grpc.pb.go b/api/backup/v1/locations_grpc.pb.go index 15b1c781046..628344a5a7c 100644 --- a/api/backup/v1/locations_grpc.pb.go +++ b/api/backup/v1/locations_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -132,19 +131,15 @@ type UnimplementedLocationsServiceServer struct{} func (UnimplementedLocationsServiceServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListLocations not implemented") } - func (UnimplementedLocationsServiceServer) AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddLocation not implemented") } - func (UnimplementedLocationsServiceServer) ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeLocation not implemented") } - func (UnimplementedLocationsServiceServer) RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveLocation not implemented") } - func (UnimplementedLocationsServiceServer) TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, error) { return nil, status.Error(codes.Unimplemented, "method TestLocationConfig not implemented") } diff --git a/api/backup/v1/restores.pb.go b/api/backup/v1/restores.pb.go index ee12d6b9285..04d7b270102 100644 --- a/api/backup/v1/restores.pb.go +++ b/api/backup/v1/restores.pb.go @@ -7,16 +7,15 @@ package backupv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -608,24 +607,21 @@ func file_backup_v1_restores_proto_rawDescGZIP() []byte { return file_backup_v1_restores_proto_rawDescData } -var ( - file_backup_v1_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_backup_v1_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 7) - file_backup_v1_restores_proto_goTypes = []any{ - RestoreStatus(0), // 0: backup.v1.RestoreStatus - (*RestoreHistoryItem)(nil), // 1: backup.v1.RestoreHistoryItem - (*ListRestoresRequest)(nil), // 2: backup.v1.ListRestoresRequest - (*ListRestoresResponse)(nil), // 3: backup.v1.ListRestoresResponse - (*RestoreServiceGetLogsRequest)(nil), // 4: backup.v1.RestoreServiceGetLogsRequest - (*RestoreServiceGetLogsResponse)(nil), // 5: backup.v1.RestoreServiceGetLogsResponse - (*RestoreBackupRequest)(nil), // 6: backup.v1.RestoreBackupRequest - (*RestoreBackupResponse)(nil), // 7: backup.v1.RestoreBackupResponse - DataModel(0), // 8: backup.v1.DataModel - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*LogChunk)(nil), // 10: backup.v1.LogChunk - } -) - +var file_backup_v1_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_backup_v1_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_backup_v1_restores_proto_goTypes = []any{ + (RestoreStatus)(0), // 0: backup.v1.RestoreStatus + (*RestoreHistoryItem)(nil), // 1: backup.v1.RestoreHistoryItem + (*ListRestoresRequest)(nil), // 2: backup.v1.ListRestoresRequest + (*ListRestoresResponse)(nil), // 3: backup.v1.ListRestoresResponse + (*RestoreServiceGetLogsRequest)(nil), // 4: backup.v1.RestoreServiceGetLogsRequest + (*RestoreServiceGetLogsResponse)(nil), // 5: backup.v1.RestoreServiceGetLogsResponse + (*RestoreBackupRequest)(nil), // 6: backup.v1.RestoreBackupRequest + (*RestoreBackupResponse)(nil), // 7: backup.v1.RestoreBackupResponse + (DataModel)(0), // 8: backup.v1.DataModel + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*LogChunk)(nil), // 10: backup.v1.LogChunk +} var file_backup_v1_restores_proto_depIdxs = []int32{ 8, // 0: backup.v1.RestoreHistoryItem.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.RestoreHistoryItem.status:type_name -> backup.v1.RestoreStatus diff --git a/api/backup/v1/restores.pb.validate.go b/api/backup/v1/restores.pb.validate.go index 5f7bf3b059e..0f530c1fc99 100644 --- a/api/backup/v1/restores.pb.validate.go +++ b/api/backup/v1/restores.pb.validate.go @@ -231,8 +231,7 @@ func (e RestoreHistoryItemValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RestoreHistoryItemValidationError{} @@ -334,8 +333,7 @@ func (e ListRestoresRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListRestoresRequestValidationError{} @@ -471,8 +469,7 @@ func (e ListRestoresResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListRestoresResponseValidationError{} @@ -590,8 +587,7 @@ func (e RestoreServiceGetLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RestoreServiceGetLogsRequestValidationError{} @@ -730,8 +726,7 @@ func (e RestoreServiceGetLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RestoreServiceGetLogsResponseValidationError{} @@ -884,8 +879,7 @@ func (e RestoreBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RestoreBackupRequestValidationError{} @@ -989,8 +983,7 @@ func (e RestoreBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RestoreBackupResponseValidationError{} diff --git a/api/backup/v1/restores_grpc.pb.go b/api/backup/v1/restores_grpc.pb.go index c27c45e9f4e..a7fdce1c5f0 100644 --- a/api/backup/v1/restores_grpc.pb.go +++ b/api/backup/v1/restores_grpc.pb.go @@ -8,7 +8,6 @@ package backupv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -102,11 +101,9 @@ type UnimplementedRestoreServiceServer struct{} func (UnimplementedRestoreServiceServer) ListRestores(context.Context, *ListRestoresRequest) (*ListRestoresResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRestores not implemented") } - func (UnimplementedRestoreServiceServer) GetLogs(context.Context, *RestoreServiceGetLogsRequest) (*RestoreServiceGetLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetLogs not implemented") } - func (UnimplementedRestoreServiceServer) RestoreBackup(context.Context, *RestoreBackupRequest) (*RestoreBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method RestoreBackup not implemented") } diff --git a/api/common/common.pb.go b/api/common/common.pb.go index 0d05883daa1..5c809939700 100644 --- a/api/common/common.pb.go +++ b/api/common/common.pb.go @@ -7,12 +7,11 @@ package common import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -139,15 +138,12 @@ func file_common_common_proto_rawDescGZIP() []byte { return file_common_common_proto_rawDescData } -var ( - file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_common_common_proto_goTypes = []any{ - (*StringArray)(nil), // 0: common.StringArray - (*StringMap)(nil), // 1: common.StringMap - nil, // 2: common.StringMap.ValuesEntry - } -) - +var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_common_common_proto_goTypes = []any{ + (*StringArray)(nil), // 0: common.StringArray + (*StringMap)(nil), // 1: common.StringMap + nil, // 2: common.StringMap.ValuesEntry +} var file_common_common_proto_depIdxs = []int32{ 2, // 0: common.StringMap.values:type_name -> common.StringMap.ValuesEntry 1, // [1:1] is the sub-list for method output_type diff --git a/api/common/common.pb.validate.go b/api/common/common.pb.validate.go index 0c967b6124f..9caff2dff61 100644 --- a/api/common/common.pb.validate.go +++ b/api/common/common.pb.validate.go @@ -121,8 +121,7 @@ func (e StringArrayValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StringArrayValidationError{} @@ -223,8 +222,7 @@ func (e StringMapValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StringMapValidationError{} diff --git a/api/common/metrics_resolutions.pb.go b/api/common/metrics_resolutions.pb.go index 75e587ba9a5..30e99f3894f 100644 --- a/api/common/metrics_resolutions.pb.go +++ b/api/common/metrics_resolutions.pb.go @@ -7,13 +7,12 @@ package common import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - 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" + unsafe "unsafe" ) const ( @@ -111,14 +110,11 @@ func file_common_metrics_resolutions_proto_rawDescGZIP() []byte { return file_common_metrics_resolutions_proto_rawDescData } -var ( - file_common_metrics_resolutions_proto_msgTypes = make([]protoimpl.MessageInfo, 1) - file_common_metrics_resolutions_proto_goTypes = []any{ - (*MetricsResolutions)(nil), // 0: common.MetricsResolutions - (*durationpb.Duration)(nil), // 1: google.protobuf.Duration - } -) - +var file_common_metrics_resolutions_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_common_metrics_resolutions_proto_goTypes = []any{ + (*MetricsResolutions)(nil), // 0: common.MetricsResolutions + (*durationpb.Duration)(nil), // 1: google.protobuf.Duration +} var file_common_metrics_resolutions_proto_depIdxs = []int32{ 1, // 0: common.MetricsResolutions.hr:type_name -> google.protobuf.Duration 1, // 1: common.MetricsResolutions.mr:type_name -> google.protobuf.Duration diff --git a/api/common/metrics_resolutions.pb.validate.go b/api/common/metrics_resolutions.pb.validate.go index 9cc045a33d2..0668c224e6f 100644 --- a/api/common/metrics_resolutions.pb.validate.go +++ b/api/common/metrics_resolutions.pb.validate.go @@ -211,8 +211,7 @@ func (e MetricsResolutionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsResolutionsValidationError{} diff --git a/api/dump/v1beta1/dump.pb.go b/api/dump/v1beta1/dump.pb.go index 21c5be6d93e..cace98725a2 100644 --- a/api/dump/v1beta1/dump.pb.go +++ b/api/dump/v1beta1/dump.pb.go @@ -7,18 +7,16 @@ package dumpv1beta1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "github.com/percona/pmm/api/extensions/v1" _ "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" - - _ "github.com/percona/pmm/api/extensions/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -846,28 +844,25 @@ func file_dump_v1beta1_dump_proto_rawDescGZIP() []byte { return file_dump_v1beta1_dump_proto_rawDescData } -var ( - file_dump_v1beta1_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_dump_v1beta1_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 13) - file_dump_v1beta1_dump_proto_goTypes = []any{ - DumpStatus(0), // 0: dump.v1beta1.DumpStatus - (*Dump)(nil), // 1: dump.v1beta1.Dump - (*StartDumpRequest)(nil), // 2: dump.v1beta1.StartDumpRequest - (*StartDumpResponse)(nil), // 3: dump.v1beta1.StartDumpResponse - (*ListDumpsRequest)(nil), // 4: dump.v1beta1.ListDumpsRequest - (*ListDumpsResponse)(nil), // 5: dump.v1beta1.ListDumpsResponse - (*DeleteDumpRequest)(nil), // 6: dump.v1beta1.DeleteDumpRequest - (*DeleteDumpResponse)(nil), // 7: dump.v1beta1.DeleteDumpResponse - (*GetDumpLogsRequest)(nil), // 8: dump.v1beta1.GetDumpLogsRequest - (*GetDumpLogsResponse)(nil), // 9: dump.v1beta1.GetDumpLogsResponse - (*LogChunk)(nil), // 10: dump.v1beta1.LogChunk - (*SFTPParameters)(nil), // 11: dump.v1beta1.SFTPParameters - (*UploadDumpRequest)(nil), // 12: dump.v1beta1.UploadDumpRequest - (*UploadDumpResponse)(nil), // 13: dump.v1beta1.UploadDumpResponse - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - } -) - +var file_dump_v1beta1_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_dump_v1beta1_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_dump_v1beta1_dump_proto_goTypes = []any{ + (DumpStatus)(0), // 0: dump.v1beta1.DumpStatus + (*Dump)(nil), // 1: dump.v1beta1.Dump + (*StartDumpRequest)(nil), // 2: dump.v1beta1.StartDumpRequest + (*StartDumpResponse)(nil), // 3: dump.v1beta1.StartDumpResponse + (*ListDumpsRequest)(nil), // 4: dump.v1beta1.ListDumpsRequest + (*ListDumpsResponse)(nil), // 5: dump.v1beta1.ListDumpsResponse + (*DeleteDumpRequest)(nil), // 6: dump.v1beta1.DeleteDumpRequest + (*DeleteDumpResponse)(nil), // 7: dump.v1beta1.DeleteDumpResponse + (*GetDumpLogsRequest)(nil), // 8: dump.v1beta1.GetDumpLogsRequest + (*GetDumpLogsResponse)(nil), // 9: dump.v1beta1.GetDumpLogsResponse + (*LogChunk)(nil), // 10: dump.v1beta1.LogChunk + (*SFTPParameters)(nil), // 11: dump.v1beta1.SFTPParameters + (*UploadDumpRequest)(nil), // 12: dump.v1beta1.UploadDumpRequest + (*UploadDumpResponse)(nil), // 13: dump.v1beta1.UploadDumpResponse + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp +} var file_dump_v1beta1_dump_proto_depIdxs = []int32{ 0, // 0: dump.v1beta1.Dump.status:type_name -> dump.v1beta1.DumpStatus 14, // 1: dump.v1beta1.Dump.start_time:type_name -> google.protobuf.Timestamp diff --git a/api/dump/v1beta1/dump.pb.validate.go b/api/dump/v1beta1/dump.pb.validate.go index 8c1f4c14d0b..6ff806abc21 100644 --- a/api/dump/v1beta1/dump.pb.validate.go +++ b/api/dump/v1beta1/dump.pb.validate.go @@ -211,8 +211,7 @@ func (e DumpValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DumpValidationError{} @@ -374,8 +373,7 @@ func (e StartDumpRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartDumpRequestValidationError{} @@ -479,8 +477,7 @@ func (e StartDumpResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartDumpResponseValidationError{} @@ -580,8 +577,7 @@ func (e ListDumpsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListDumpsRequestValidationError{} @@ -717,8 +713,7 @@ func (e ListDumpsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListDumpsResponseValidationError{} @@ -852,8 +847,7 @@ func (e DeleteDumpRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteDumpRequestValidationError{} @@ -955,8 +949,7 @@ func (e DeleteDumpResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DeleteDumpResponseValidationError{} @@ -1073,8 +1066,7 @@ func (e GetDumpLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetDumpLogsRequestValidationError{} @@ -1212,8 +1204,7 @@ func (e GetDumpLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetDumpLogsResponseValidationError{} @@ -1316,8 +1307,7 @@ func (e LogChunkValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = LogChunkValidationError{} @@ -1452,8 +1442,7 @@ func (e SFTPParametersValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SFTPParametersValidationError{} @@ -1627,8 +1616,7 @@ func (e UploadDumpRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UploadDumpRequestValidationError{} @@ -1730,8 +1718,7 @@ func (e UploadDumpResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UploadDumpResponseValidationError{} diff --git a/api/dump/v1beta1/dump_grpc.pb.go b/api/dump/v1beta1/dump_grpc.pb.go index 987f75bd579..bb65b07cc1b 100644 --- a/api/dump/v1beta1/dump_grpc.pb.go +++ b/api/dump/v1beta1/dump_grpc.pb.go @@ -8,7 +8,6 @@ package dumpv1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -128,19 +127,15 @@ type UnimplementedDumpServiceServer struct{} func (UnimplementedDumpServiceServer) StartDump(context.Context, *StartDumpRequest) (*StartDumpResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartDump not implemented") } - func (UnimplementedDumpServiceServer) ListDumps(context.Context, *ListDumpsRequest) (*ListDumpsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListDumps not implemented") } - func (UnimplementedDumpServiceServer) DeleteDump(context.Context, *DeleteDumpRequest) (*DeleteDumpResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteDump not implemented") } - func (UnimplementedDumpServiceServer) GetDumpLogs(context.Context, *GetDumpLogsRequest) (*GetDumpLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetDumpLogs not implemented") } - func (UnimplementedDumpServiceServer) UploadDump(context.Context, *UploadDumpRequest) (*UploadDumpResponse, error) { return nil, status.Error(codes.Unimplemented, "method UploadDump not implemented") } diff --git a/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go b/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go index 0c83d67b573..733240643c1 100644 --- a/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go @@ -60,6 +60,7 @@ DeleteDumpParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteDumpParams struct { + // Body. Body DeleteDumpBody @@ -129,6 +130,7 @@ func (o *DeleteDumpParams) SetBody(body DeleteDumpBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go b/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go index d703d60a325..551a20314ae 100644 --- a/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go @@ -104,6 +104,7 @@ func (o *DeleteDumpOK) GetPayload() any { } func (o *DeleteDumpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *DeleteDumpDefault) GetPayload() *DeleteDumpDefaultBody { } func (o *DeleteDumpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DeleteDumpDefaultBody) // response payload @@ -190,6 +192,7 @@ DeleteDumpBody delete dump body swagger:model DeleteDumpBody */ type DeleteDumpBody struct { + // dump ids DumpIds []string `json:"dump_ids"` } @@ -227,6 +230,7 @@ DeleteDumpDefaultBody delete dump default body swagger:model DeleteDumpDefaultBody */ type DeleteDumpDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,9 @@ func (o *DeleteDumpDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *DeleteDumpDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *DeleteDumpDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -344,6 +351,7 @@ DeleteDumpDefaultBodyDetailsItems0 delete dump default body details items0 swagger:model DeleteDumpDefaultBodyDetailsItems0 */ type DeleteDumpDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type DeleteDumpDefaultBodyDetailsItems0 struct { func (o *DeleteDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *DeleteDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteDumpDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go index 82ed2997d2d..4be2f03898b 100644 --- a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go @@ -61,6 +61,7 @@ GetDumpLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetDumpLogsParams struct { + // DumpID. DumpID string @@ -162,6 +163,7 @@ func (o *GetDumpLogsParams) SetOffset(offset *int64) { // WriteToRequest writes these params to a swagger request func (o *GetDumpLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -182,6 +184,7 @@ func (o *GetDumpLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { return err } @@ -198,6 +201,7 @@ func (o *GetDumpLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } qOffset := swag.FormatInt64(qrOffset) if qOffset != "" { + if err := r.SetQueryParam("offset", qOffset); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go index 8a0e0c45bef..a8749604dc0 100644 --- a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go @@ -104,6 +104,7 @@ func (o *GetDumpLogsOK) GetPayload() *GetDumpLogsOKBody { } func (o *GetDumpLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetDumpLogsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetDumpLogsDefault) GetPayload() *GetDumpLogsDefaultBody { } func (o *GetDumpLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetDumpLogsDefaultBody) // response payload @@ -192,6 +194,7 @@ GetDumpLogsDefaultBody get dump logs default body swagger:model GetDumpLogsDefaultBody */ type GetDumpLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *GetDumpLogsDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *GetDumpLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetDumpLogsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -309,6 +315,7 @@ GetDumpLogsDefaultBodyDetailsItems0 get dump logs default body details items0 swagger:model GetDumpLogsDefaultBodyDetailsItems0 */ type GetDumpLogsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetDumpLogsDefaultBodyDetailsItems0 struct { func (o *GetDumpLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetDumpLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetDumpLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetDumpLogsOKBody get dump logs OK body swagger:model GetDumpLogsOKBody */ type GetDumpLogsOKBody struct { + // logs Logs []*GetDumpLogsOKBodyLogsItems0 `json:"logs"` @@ -486,7 +496,9 @@ func (o *GetDumpLogsOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *GetDumpLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Logs); i++ { + if o.Logs[i] != nil { if swag.IsZero(o.Logs[i]) { // not required @@ -506,6 +518,7 @@ func (o *GetDumpLogsOKBody) contextValidateLogs(ctx context.Context, formats str return err } } + } return nil @@ -534,6 +547,7 @@ GetDumpLogsOKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetDumpLogsOKBodyLogsItems0 */ type GetDumpLogsOKBodyLogsItems0 struct { + // chunk id ChunkID int64 `json:"chunk_id,omitempty"` diff --git a/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go b/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go index dc28a36ad42..3ca0caf159f 100644 --- a/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go @@ -115,6 +115,7 @@ func (o *ListDumpsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListDumpsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go b/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go index 6e37793be89..edf749c4f40 100644 --- a/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go @@ -105,6 +105,7 @@ func (o *ListDumpsOK) GetPayload() *ListDumpsOKBody { } func (o *ListDumpsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListDumpsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListDumpsDefault) GetPayload() *ListDumpsDefaultBody { } func (o *ListDumpsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListDumpsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListDumpsDefaultBody list dumps default body swagger:model ListDumpsDefaultBody */ type ListDumpsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListDumpsDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListDumpsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListDumpsDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -310,6 +316,7 @@ ListDumpsDefaultBodyDetailsItems0 list dumps default body details items0 swagger:model ListDumpsDefaultBodyDetailsItems0 */ type ListDumpsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListDumpsDefaultBodyDetailsItems0 struct { func (o *ListDumpsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListDumpsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListDumpsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListDumpsOKBody list dumps OK body swagger:model ListDumpsOKBody */ type ListDumpsOKBody struct { + // dumps Dumps []*ListDumpsOKBodyDumpsItems0 `json:"dumps"` } @@ -484,7 +494,9 @@ func (o *ListDumpsOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListDumpsOKBody) contextValidateDumps(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Dumps); i++ { + if o.Dumps[i] != nil { if swag.IsZero(o.Dumps[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListDumpsOKBody) contextValidateDumps(ctx context.Context, formats strf return err } } + } return nil @@ -532,6 +545,7 @@ ListDumpsOKBodyDumpsItems0 list dumps OK body dumps items0 swagger:model ListDumpsOKBodyDumpsItems0 */ type ListDumpsOKBodyDumpsItems0 struct { + // dump id DumpID string `json:"dump_id,omitempty"` diff --git a/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go b/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go index ac9f2ba90e8..c456e5f494f 100644 --- a/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go @@ -60,6 +60,7 @@ StartDumpParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartDumpParams struct { + // Body. Body StartDumpBody @@ -129,6 +130,7 @@ func (o *StartDumpParams) SetBody(body StartDumpBody) { // WriteToRequest writes these params to a swagger request func (o *StartDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go b/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go index 4e34e022214..5bf88e94483 100644 --- a/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go @@ -105,6 +105,7 @@ func (o *StartDumpOK) GetPayload() *StartDumpOKBody { } func (o *StartDumpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartDumpOKBody) // response payload @@ -178,6 +179,7 @@ func (o *StartDumpDefault) GetPayload() *StartDumpDefaultBody { } func (o *StartDumpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartDumpDefaultBody) // response payload @@ -193,6 +195,7 @@ StartDumpBody start dump body swagger:model StartDumpBody */ type StartDumpBody struct { + // service names ServiceNames []string `json:"service_names"` @@ -281,6 +284,7 @@ StartDumpDefaultBody start dump default body swagger:model StartDumpDefaultBody */ type StartDumpDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -350,7 +354,9 @@ func (o *StartDumpDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *StartDumpDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -370,6 +376,7 @@ func (o *StartDumpDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -398,6 +405,7 @@ StartDumpDefaultBodyDetailsItems0 start dump default body details items0 swagger:model StartDumpDefaultBodyDetailsItems0 */ type StartDumpDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -409,6 +417,7 @@ type StartDumpDefaultBodyDetailsItems0 struct { func (o *StartDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -446,6 +455,7 @@ func (o *StartDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StartDumpDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -509,6 +519,7 @@ StartDumpOKBody start dump OK body swagger:model StartDumpOKBody */ type StartDumpOKBody struct { + // dump id DumpID string `json:"dump_id,omitempty"` } diff --git a/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go b/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go index 0be24f481a8..0073c54dd7a 100644 --- a/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go @@ -60,6 +60,7 @@ UploadDumpParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UploadDumpParams struct { + // Body. Body UploadDumpBody @@ -129,6 +130,7 @@ func (o *UploadDumpParams) SetBody(body UploadDumpBody) { // WriteToRequest writes these params to a swagger request func (o *UploadDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go b/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go index 19cdb3631ac..96ff7aa4145 100644 --- a/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go @@ -104,6 +104,7 @@ func (o *UploadDumpOK) GetPayload() any { } func (o *UploadDumpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *UploadDumpDefault) GetPayload() *UploadDumpDefaultBody { } func (o *UploadDumpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UploadDumpDefaultBody) // response payload @@ -190,6 +192,7 @@ UploadDumpBody upload dump body swagger:model UploadDumpBody */ type UploadDumpBody struct { + // dump ids DumpIds []string `json:"dump_ids"` @@ -249,6 +252,7 @@ func (o *UploadDumpBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *UploadDumpBody) contextValidateSftpParameters(ctx context.Context, formats strfmt.Registry) error { + if o.SftpParameters != nil { if swag.IsZero(o.SftpParameters) { // not required @@ -295,6 +299,7 @@ UploadDumpDefaultBody upload dump default body swagger:model UploadDumpDefaultBody */ type UploadDumpDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -364,7 +369,9 @@ func (o *UploadDumpDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UploadDumpDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -384,6 +391,7 @@ func (o *UploadDumpDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -412,6 +420,7 @@ UploadDumpDefaultBodyDetailsItems0 upload dump default body details items0 swagger:model UploadDumpDefaultBodyDetailsItems0 */ type UploadDumpDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -423,6 +432,7 @@ type UploadDumpDefaultBodyDetailsItems0 struct { func (o *UploadDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -460,6 +470,7 @@ func (o *UploadDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o UploadDumpDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -523,6 +534,7 @@ UploadDumpParamsBodySftpParameters upload dump params body sftp parameters swagger:model UploadDumpParamsBodySftpParameters */ type UploadDumpParamsBodySftpParameters struct { + // address Address string `json:"address,omitempty"` diff --git a/api/extensions/v1/redact.pb.go b/api/extensions/v1/redact.pb.go index 738ce213118..9bd0d249d3a 100644 --- a/api/extensions/v1/redact.pb.go +++ b/api/extensions/v1/redact.pb.go @@ -7,13 +7,12 @@ package extensionsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -128,14 +127,11 @@ func file_extensions_v1_redact_proto_rawDescGZIP() []byte { return file_extensions_v1_redact_proto_rawDescData } -var ( - file_extensions_v1_redact_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_extensions_v1_redact_proto_goTypes = []any{ - RedactType(0), // 0: extensions.v1.RedactType - (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions - } -) - +var file_extensions_v1_redact_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_extensions_v1_redact_proto_goTypes = []any{ + (RedactType)(0), // 0: extensions.v1.RedactType + (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions +} var file_extensions_v1_redact_proto_depIdxs = []int32{ 1, // 0: extensions.v1.sensitive:extendee -> google.protobuf.FieldOptions 0, // 1: extensions.v1.sensitive:type_name -> extensions.v1.RedactType diff --git a/api/ha/v1beta1/ha.pb.go b/api/ha/v1beta1/ha.pb.go index f798cccbcc0..c592f717052 100644 --- a/api/ha/v1beta1/ha.pb.go +++ b/api/ha/v1beta1/ha.pb.go @@ -7,14 +7,13 @@ package hav1beta1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "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" + unsafe "unsafe" ) const ( @@ -339,19 +338,16 @@ func file_ha_v1beta1_ha_proto_rawDescGZIP() []byte { return file_ha_v1beta1_ha_proto_rawDescData } -var ( - file_ha_v1beta1_ha_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_ha_v1beta1_ha_proto_msgTypes = make([]protoimpl.MessageInfo, 5) - file_ha_v1beta1_ha_proto_goTypes = []any{ - NodeRole(0), // 0: ha.v1beta1.NodeRole - (*ListNodesRequest)(nil), // 1: ha.v1beta1.ListNodesRequest - (*HANode)(nil), // 2: ha.v1beta1.HANode - (*ListNodesResponse)(nil), // 3: ha.v1beta1.ListNodesResponse - (*StatusRequest)(nil), // 4: ha.v1beta1.StatusRequest - (*StatusResponse)(nil), // 5: ha.v1beta1.StatusResponse - } -) - +var file_ha_v1beta1_ha_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_ha_v1beta1_ha_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_ha_v1beta1_ha_proto_goTypes = []any{ + (NodeRole)(0), // 0: ha.v1beta1.NodeRole + (*ListNodesRequest)(nil), // 1: ha.v1beta1.ListNodesRequest + (*HANode)(nil), // 2: ha.v1beta1.HANode + (*ListNodesResponse)(nil), // 3: ha.v1beta1.ListNodesResponse + (*StatusRequest)(nil), // 4: ha.v1beta1.StatusRequest + (*StatusResponse)(nil), // 5: ha.v1beta1.StatusResponse +} var file_ha_v1beta1_ha_proto_depIdxs = []int32{ 0, // 0: ha.v1beta1.HANode.role:type_name -> ha.v1beta1.NodeRole 2, // 1: ha.v1beta1.ListNodesResponse.nodes:type_name -> ha.v1beta1.HANode diff --git a/api/ha/v1beta1/ha.pb.validate.go b/api/ha/v1beta1/ha.pb.validate.go index 36ad57e423b..5a55fe5cfe1 100644 --- a/api/ha/v1beta1/ha.pb.validate.go +++ b/api/ha/v1beta1/ha.pb.validate.go @@ -122,8 +122,7 @@ func (e ListNodesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListNodesRequestValidationError{} @@ -227,8 +226,7 @@ func (e HANodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HANodeValidationError{} @@ -364,8 +362,7 @@ func (e ListNodesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListNodesResponseValidationError{} @@ -465,8 +462,7 @@ func (e StatusRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StatusRequestValidationError{} @@ -568,8 +564,7 @@ func (e StatusResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StatusResponseValidationError{} diff --git a/api/ha/v1beta1/ha_grpc.pb.go b/api/ha/v1beta1/ha_grpc.pb.go index 75e664a29e5..c723d8996be 100644 --- a/api/ha/v1beta1/ha_grpc.pb.go +++ b/api/ha/v1beta1/ha_grpc.pb.go @@ -8,7 +8,6 @@ package hav1beta1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -87,7 +86,6 @@ type UnimplementedHAServiceServer struct{} func (UnimplementedHAServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method Status not implemented") } - func (UnimplementedHAServiceServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListNodes not implemented") } diff --git a/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go b/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go index c74ca68dd4e..1e3652130cf 100644 --- a/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go +++ b/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go @@ -115,6 +115,7 @@ func (o *ListNodesParams) SetHTTPClient(client *http.Client) { // 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/ha/v1beta1/json/client/ha_service/list_nodes_responses.go b/api/ha/v1beta1/json/client/ha_service/list_nodes_responses.go index 8661938e936..0a686180710 100644 --- a/api/ha/v1beta1/json/client/ha_service/list_nodes_responses.go +++ b/api/ha/v1beta1/json/client/ha_service/list_nodes_responses.go @@ -105,6 +105,7 @@ func (o *ListNodesOK) GetPayload() *ListNodesOKBody { } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesDefaultBody) // response payload @@ -193,6 +195,7 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -310,6 +316,7 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListNodesDefaultBodyDetailsItems0 struct { func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListNodesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { + // List of nodes in the HA cluster. Nodes []*ListNodesOKBodyNodesItems0 `json:"nodes"` } @@ -484,7 +494,9 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Nodes); i++ { + if o.Nodes[i] != nil { if swag.IsZero(o.Nodes[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strf return err } } + } return nil @@ -532,6 +545,7 @@ ListNodesOKBodyNodesItems0 HANode represents a single node in the HA cluster. swagger:model ListNodesOKBodyNodesItems0 */ type ListNodesOKBodyNodesItems0 struct { + // Human-readable name of the node. NodeName string `json:"node_name,omitempty"` diff --git a/api/ha/v1beta1/json/client/ha_service/status_parameters.go b/api/ha/v1beta1/json/client/ha_service/status_parameters.go index 161ac87d1e0..1d287a5e4c0 100644 --- a/api/ha/v1beta1/json/client/ha_service/status_parameters.go +++ b/api/ha/v1beta1/json/client/ha_service/status_parameters.go @@ -115,6 +115,7 @@ func (o *StatusParams) SetHTTPClient(client *http.Client) { // 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/ha/v1beta1/json/client/ha_service/status_responses.go b/api/ha/v1beta1/json/client/ha_service/status_responses.go index 4530572e2ba..f2384b30038 100644 --- a/api/ha/v1beta1/json/client/ha_service/status_responses.go +++ b/api/ha/v1beta1/json/client/ha_service/status_responses.go @@ -104,6 +104,7 @@ func (o *StatusOK) GetPayload() *StatusOKBody { } func (o *StatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StatusOKBody) // response payload @@ -177,6 +178,7 @@ func (o *StatusDefault) GetPayload() *StatusDefaultBody { } func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StatusDefaultBody) // response payload @@ -192,6 +194,7 @@ StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -309,6 +315,7 @@ StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type StatusDefaultBodyDetailsItems0 struct { func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StatusDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { + // Status of HA mode: "Enabled" or "Disabled". Status string `json:"status,omitempty"` } diff --git a/api/inventory/v1/agent_status.pb.go b/api/inventory/v1/agent_status.pb.go index 1e23074d2fc..025bb50c788 100644 --- a/api/inventory/v1/agent_status.pb.go +++ b/api/inventory/v1/agent_status.pb.go @@ -7,12 +7,11 @@ package inventoryv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -122,13 +121,10 @@ func file_inventory_v1_agent_status_proto_rawDescGZIP() []byte { return file_inventory_v1_agent_status_proto_rawDescData } -var ( - file_inventory_v1_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_agent_status_proto_goTypes = []any{ - AgentStatus(0), // 0: inventory.v1.AgentStatus - } -) - +var file_inventory_v1_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventory_v1_agent_status_proto_goTypes = []any{ + (AgentStatus)(0), // 0: inventory.v1.AgentStatus +} var file_inventory_v1_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/inventory/v1/agents.pb.go b/api/inventory/v1/agents.pb.go index 591af43e6a0..8b6e6654776 100644 --- a/api/inventory/v1/agents.pb.go +++ b/api/inventory/v1/agents.pb.go @@ -7,19 +7,17 @@ package inventoryv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + common "github.com/percona/pmm/api/common" + _ "github.com/percona/pmm/api/extensions/v1" _ "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" - - common "github.com/percona/pmm/api/common" - _ "github.com/percona/pmm/api/extensions/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -12244,126 +12242,123 @@ func file_inventory_v1_agents_proto_rawDescGZIP() []byte { return file_inventory_v1_agents_proto_rawDescData } -var ( - file_inventory_v1_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) - file_inventory_v1_agents_proto_goTypes = []any{ - AgentType(0), // 0: inventory.v1.AgentType - (*PMMAgent)(nil), // 1: inventory.v1.PMMAgent - (*VMAgent)(nil), // 2: inventory.v1.VMAgent - (*NomadAgent)(nil), // 3: inventory.v1.NomadAgent - (*NodeExporter)(nil), // 4: inventory.v1.NodeExporter - (*MySQLdExporter)(nil), // 5: inventory.v1.MySQLdExporter - (*MongoDBExporter)(nil), // 6: inventory.v1.MongoDBExporter - (*PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter - (*ProxySQLExporter)(nil), // 8: inventory.v1.ProxySQLExporter - (*ValkeyExporter)(nil), // 9: inventory.v1.ValkeyExporter - (*QANMySQLPerfSchemaAgent)(nil), // 10: inventory.v1.QANMySQLPerfSchemaAgent - (*QANMySQLSlowlogAgent)(nil), // 11: inventory.v1.QANMySQLSlowlogAgent - (*QANMongoDBProfilerAgent)(nil), // 12: inventory.v1.QANMongoDBProfilerAgent - (*QANMongoDBMongologAgent)(nil), // 13: inventory.v1.QANMongoDBMongologAgent - (*RTAOptions)(nil), // 14: inventory.v1.RTAOptions - (*RTAMongoDBAgent)(nil), // 15: inventory.v1.RTAMongoDBAgent - (*QANPostgreSQLPgStatementsAgent)(nil), // 16: inventory.v1.QANPostgreSQLPgStatementsAgent - (*QANPostgreSQLPgStatMonitorAgent)(nil), // 17: inventory.v1.QANPostgreSQLPgStatMonitorAgent - (*RDSExporter)(nil), // 18: inventory.v1.RDSExporter - (*ExternalExporter)(nil), // 19: inventory.v1.ExternalExporter - (*AzureDatabaseExporter)(nil), // 20: inventory.v1.AzureDatabaseExporter - (*ChangeCommonAgentParams)(nil), // 21: inventory.v1.ChangeCommonAgentParams - (*ListAgentsRequest)(nil), // 22: inventory.v1.ListAgentsRequest - (*ListAgentsResponse)(nil), // 23: inventory.v1.ListAgentsResponse - (*GetAgentRequest)(nil), // 24: inventory.v1.GetAgentRequest - (*GetAgentResponse)(nil), // 25: inventory.v1.GetAgentResponse - (*GetAgentLogsRequest)(nil), // 26: inventory.v1.GetAgentLogsRequest - (*GetAgentLogsResponse)(nil), // 27: inventory.v1.GetAgentLogsResponse - (*AddAgentRequest)(nil), // 28: inventory.v1.AddAgentRequest - (*AddAgentResponse)(nil), // 29: inventory.v1.AddAgentResponse - (*ChangeAgentRequest)(nil), // 30: inventory.v1.ChangeAgentRequest - (*ChangeAgentResponse)(nil), // 31: inventory.v1.ChangeAgentResponse - (*AddPMMAgentParams)(nil), // 32: inventory.v1.AddPMMAgentParams - (*AddNodeExporterParams)(nil), // 33: inventory.v1.AddNodeExporterParams - (*ChangeNodeExporterParams)(nil), // 34: inventory.v1.ChangeNodeExporterParams - (*AddMySQLdExporterParams)(nil), // 35: inventory.v1.AddMySQLdExporterParams - (*ChangeMySQLdExporterParams)(nil), // 36: inventory.v1.ChangeMySQLdExporterParams - (*AddMongoDBExporterParams)(nil), // 37: inventory.v1.AddMongoDBExporterParams - (*ChangeMongoDBExporterParams)(nil), // 38: inventory.v1.ChangeMongoDBExporterParams - (*AddPostgresExporterParams)(nil), // 39: inventory.v1.AddPostgresExporterParams - (*ChangePostgresExporterParams)(nil), // 40: inventory.v1.ChangePostgresExporterParams - (*AddProxySQLExporterParams)(nil), // 41: inventory.v1.AddProxySQLExporterParams - (*ChangeProxySQLExporterParams)(nil), // 42: inventory.v1.ChangeProxySQLExporterParams - (*AddQANMySQLPerfSchemaAgentParams)(nil), // 43: inventory.v1.AddQANMySQLPerfSchemaAgentParams - (*ChangeQANMySQLPerfSchemaAgentParams)(nil), // 44: inventory.v1.ChangeQANMySQLPerfSchemaAgentParams - (*AddQANMySQLSlowlogAgentParams)(nil), // 45: inventory.v1.AddQANMySQLSlowlogAgentParams - (*ChangeQANMySQLSlowlogAgentParams)(nil), // 46: inventory.v1.ChangeQANMySQLSlowlogAgentParams - (*AddQANMongoDBProfilerAgentParams)(nil), // 47: inventory.v1.AddQANMongoDBProfilerAgentParams - (*ChangeQANMongoDBProfilerAgentParams)(nil), // 48: inventory.v1.ChangeQANMongoDBProfilerAgentParams - (*AddQANMongoDBMongologAgentParams)(nil), // 49: inventory.v1.AddQANMongoDBMongologAgentParams - (*ChangeQANMongoDBMongologAgentParams)(nil), // 50: inventory.v1.ChangeQANMongoDBMongologAgentParams - (*AddQANPostgreSQLPgStatementsAgentParams)(nil), // 51: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams - (*ChangeQANPostgreSQLPgStatementsAgentParams)(nil), // 52: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentParams - (*AddQANPostgreSQLPgStatMonitorAgentParams)(nil), // 53: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams - (*ChangeQANPostgreSQLPgStatMonitorAgentParams)(nil), // 54: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentParams - (*AddRDSExporterParams)(nil), // 55: inventory.v1.AddRDSExporterParams - (*ChangeRDSExporterParams)(nil), // 56: inventory.v1.ChangeRDSExporterParams - (*AddExternalExporterParams)(nil), // 57: inventory.v1.AddExternalExporterParams - (*ChangeExternalExporterParams)(nil), // 58: inventory.v1.ChangeExternalExporterParams - (*AddAzureDatabaseExporterParams)(nil), // 59: inventory.v1.AddAzureDatabaseExporterParams - (*ChangeAzureDatabaseExporterParams)(nil), // 60: inventory.v1.ChangeAzureDatabaseExporterParams - (*ChangeNomadAgentParams)(nil), // 61: inventory.v1.ChangeNomadAgentParams - (*AddValkeyExporterParams)(nil), // 62: inventory.v1.AddValkeyExporterParams - (*ChangeValkeyExporterParams)(nil), // 63: inventory.v1.ChangeValkeyExporterParams - (*AddRTAMongoDBAgentParams)(nil), // 64: inventory.v1.AddRTAMongoDBAgentParams - (*ChangeRTAMongoDBAgentParams)(nil), // 65: inventory.v1.ChangeRTAMongoDBAgentParams - (*RemoveAgentRequest)(nil), // 66: inventory.v1.RemoveAgentRequest - (*RemoveAgentResponse)(nil), // 67: inventory.v1.RemoveAgentResponse - nil, // 68: inventory.v1.PMMAgent.CustomLabelsEntry - nil, // 69: inventory.v1.NodeExporter.CustomLabelsEntry - nil, // 70: inventory.v1.MySQLdExporter.CustomLabelsEntry - nil, // 71: inventory.v1.MySQLdExporter.ExtraDsnParamsEntry - nil, // 72: inventory.v1.MongoDBExporter.CustomLabelsEntry - nil, // 73: inventory.v1.PostgresExporter.CustomLabelsEntry - nil, // 74: inventory.v1.ProxySQLExporter.CustomLabelsEntry - nil, // 75: inventory.v1.ValkeyExporter.CustomLabelsEntry - nil, // 76: inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry - nil, // 77: inventory.v1.QANMySQLPerfSchemaAgent.ExtraDsnParamsEntry - nil, // 78: inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry - nil, // 79: inventory.v1.QANMySQLSlowlogAgent.ExtraDsnParamsEntry - nil, // 80: inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry - nil, // 81: inventory.v1.QANMongoDBMongologAgent.CustomLabelsEntry - nil, // 82: inventory.v1.RTAMongoDBAgent.CustomLabelsEntry - nil, // 83: inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry - nil, // 84: inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry - nil, // 85: inventory.v1.RDSExporter.CustomLabelsEntry - nil, // 86: inventory.v1.ExternalExporter.CustomLabelsEntry - nil, // 87: inventory.v1.AzureDatabaseExporter.CustomLabelsEntry - nil, // 88: inventory.v1.AddPMMAgentParams.CustomLabelsEntry - nil, // 89: inventory.v1.AddNodeExporterParams.CustomLabelsEntry - nil, // 90: inventory.v1.AddMySQLdExporterParams.CustomLabelsEntry - nil, // 91: inventory.v1.AddMySQLdExporterParams.ExtraDsnParamsEntry - nil, // 92: inventory.v1.AddMongoDBExporterParams.CustomLabelsEntry - nil, // 93: inventory.v1.AddPostgresExporterParams.CustomLabelsEntry - nil, // 94: inventory.v1.AddProxySQLExporterParams.CustomLabelsEntry - nil, // 95: inventory.v1.AddQANMySQLPerfSchemaAgentParams.CustomLabelsEntry - nil, // 96: inventory.v1.AddQANMySQLPerfSchemaAgentParams.ExtraDsnParamsEntry - nil, // 97: inventory.v1.AddQANMySQLSlowlogAgentParams.CustomLabelsEntry - nil, // 98: inventory.v1.AddQANMySQLSlowlogAgentParams.ExtraDsnParamsEntry - nil, // 99: inventory.v1.AddQANMongoDBProfilerAgentParams.CustomLabelsEntry - nil, // 100: inventory.v1.AddQANMongoDBMongologAgentParams.CustomLabelsEntry - nil, // 101: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.CustomLabelsEntry - nil, // 102: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.CustomLabelsEntry - nil, // 103: inventory.v1.AddRDSExporterParams.CustomLabelsEntry - nil, // 104: inventory.v1.AddExternalExporterParams.CustomLabelsEntry - nil, // 105: inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry - nil, // 106: inventory.v1.AddValkeyExporterParams.CustomLabelsEntry - nil, // 107: inventory.v1.AddRTAMongoDBAgentParams.CustomLabelsEntry - AgentStatus(0), // 108: inventory.v1.AgentStatus - LogLevel(0), // 109: inventory.v1.LogLevel - (*common.MetricsResolutions)(nil), // 110: common.MetricsResolutions - (*durationpb.Duration)(nil), // 111: google.protobuf.Duration - (*common.StringMap)(nil), // 112: common.StringMap - } -) - +var file_inventory_v1_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) +var file_inventory_v1_agents_proto_goTypes = []any{ + (AgentType)(0), // 0: inventory.v1.AgentType + (*PMMAgent)(nil), // 1: inventory.v1.PMMAgent + (*VMAgent)(nil), // 2: inventory.v1.VMAgent + (*NomadAgent)(nil), // 3: inventory.v1.NomadAgent + (*NodeExporter)(nil), // 4: inventory.v1.NodeExporter + (*MySQLdExporter)(nil), // 5: inventory.v1.MySQLdExporter + (*MongoDBExporter)(nil), // 6: inventory.v1.MongoDBExporter + (*PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter + (*ProxySQLExporter)(nil), // 8: inventory.v1.ProxySQLExporter + (*ValkeyExporter)(nil), // 9: inventory.v1.ValkeyExporter + (*QANMySQLPerfSchemaAgent)(nil), // 10: inventory.v1.QANMySQLPerfSchemaAgent + (*QANMySQLSlowlogAgent)(nil), // 11: inventory.v1.QANMySQLSlowlogAgent + (*QANMongoDBProfilerAgent)(nil), // 12: inventory.v1.QANMongoDBProfilerAgent + (*QANMongoDBMongologAgent)(nil), // 13: inventory.v1.QANMongoDBMongologAgent + (*RTAOptions)(nil), // 14: inventory.v1.RTAOptions + (*RTAMongoDBAgent)(nil), // 15: inventory.v1.RTAMongoDBAgent + (*QANPostgreSQLPgStatementsAgent)(nil), // 16: inventory.v1.QANPostgreSQLPgStatementsAgent + (*QANPostgreSQLPgStatMonitorAgent)(nil), // 17: inventory.v1.QANPostgreSQLPgStatMonitorAgent + (*RDSExporter)(nil), // 18: inventory.v1.RDSExporter + (*ExternalExporter)(nil), // 19: inventory.v1.ExternalExporter + (*AzureDatabaseExporter)(nil), // 20: inventory.v1.AzureDatabaseExporter + (*ChangeCommonAgentParams)(nil), // 21: inventory.v1.ChangeCommonAgentParams + (*ListAgentsRequest)(nil), // 22: inventory.v1.ListAgentsRequest + (*ListAgentsResponse)(nil), // 23: inventory.v1.ListAgentsResponse + (*GetAgentRequest)(nil), // 24: inventory.v1.GetAgentRequest + (*GetAgentResponse)(nil), // 25: inventory.v1.GetAgentResponse + (*GetAgentLogsRequest)(nil), // 26: inventory.v1.GetAgentLogsRequest + (*GetAgentLogsResponse)(nil), // 27: inventory.v1.GetAgentLogsResponse + (*AddAgentRequest)(nil), // 28: inventory.v1.AddAgentRequest + (*AddAgentResponse)(nil), // 29: inventory.v1.AddAgentResponse + (*ChangeAgentRequest)(nil), // 30: inventory.v1.ChangeAgentRequest + (*ChangeAgentResponse)(nil), // 31: inventory.v1.ChangeAgentResponse + (*AddPMMAgentParams)(nil), // 32: inventory.v1.AddPMMAgentParams + (*AddNodeExporterParams)(nil), // 33: inventory.v1.AddNodeExporterParams + (*ChangeNodeExporterParams)(nil), // 34: inventory.v1.ChangeNodeExporterParams + (*AddMySQLdExporterParams)(nil), // 35: inventory.v1.AddMySQLdExporterParams + (*ChangeMySQLdExporterParams)(nil), // 36: inventory.v1.ChangeMySQLdExporterParams + (*AddMongoDBExporterParams)(nil), // 37: inventory.v1.AddMongoDBExporterParams + (*ChangeMongoDBExporterParams)(nil), // 38: inventory.v1.ChangeMongoDBExporterParams + (*AddPostgresExporterParams)(nil), // 39: inventory.v1.AddPostgresExporterParams + (*ChangePostgresExporterParams)(nil), // 40: inventory.v1.ChangePostgresExporterParams + (*AddProxySQLExporterParams)(nil), // 41: inventory.v1.AddProxySQLExporterParams + (*ChangeProxySQLExporterParams)(nil), // 42: inventory.v1.ChangeProxySQLExporterParams + (*AddQANMySQLPerfSchemaAgentParams)(nil), // 43: inventory.v1.AddQANMySQLPerfSchemaAgentParams + (*ChangeQANMySQLPerfSchemaAgentParams)(nil), // 44: inventory.v1.ChangeQANMySQLPerfSchemaAgentParams + (*AddQANMySQLSlowlogAgentParams)(nil), // 45: inventory.v1.AddQANMySQLSlowlogAgentParams + (*ChangeQANMySQLSlowlogAgentParams)(nil), // 46: inventory.v1.ChangeQANMySQLSlowlogAgentParams + (*AddQANMongoDBProfilerAgentParams)(nil), // 47: inventory.v1.AddQANMongoDBProfilerAgentParams + (*ChangeQANMongoDBProfilerAgentParams)(nil), // 48: inventory.v1.ChangeQANMongoDBProfilerAgentParams + (*AddQANMongoDBMongologAgentParams)(nil), // 49: inventory.v1.AddQANMongoDBMongologAgentParams + (*ChangeQANMongoDBMongologAgentParams)(nil), // 50: inventory.v1.ChangeQANMongoDBMongologAgentParams + (*AddQANPostgreSQLPgStatementsAgentParams)(nil), // 51: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams + (*ChangeQANPostgreSQLPgStatementsAgentParams)(nil), // 52: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentParams + (*AddQANPostgreSQLPgStatMonitorAgentParams)(nil), // 53: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams + (*ChangeQANPostgreSQLPgStatMonitorAgentParams)(nil), // 54: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentParams + (*AddRDSExporterParams)(nil), // 55: inventory.v1.AddRDSExporterParams + (*ChangeRDSExporterParams)(nil), // 56: inventory.v1.ChangeRDSExporterParams + (*AddExternalExporterParams)(nil), // 57: inventory.v1.AddExternalExporterParams + (*ChangeExternalExporterParams)(nil), // 58: inventory.v1.ChangeExternalExporterParams + (*AddAzureDatabaseExporterParams)(nil), // 59: inventory.v1.AddAzureDatabaseExporterParams + (*ChangeAzureDatabaseExporterParams)(nil), // 60: inventory.v1.ChangeAzureDatabaseExporterParams + (*ChangeNomadAgentParams)(nil), // 61: inventory.v1.ChangeNomadAgentParams + (*AddValkeyExporterParams)(nil), // 62: inventory.v1.AddValkeyExporterParams + (*ChangeValkeyExporterParams)(nil), // 63: inventory.v1.ChangeValkeyExporterParams + (*AddRTAMongoDBAgentParams)(nil), // 64: inventory.v1.AddRTAMongoDBAgentParams + (*ChangeRTAMongoDBAgentParams)(nil), // 65: inventory.v1.ChangeRTAMongoDBAgentParams + (*RemoveAgentRequest)(nil), // 66: inventory.v1.RemoveAgentRequest + (*RemoveAgentResponse)(nil), // 67: inventory.v1.RemoveAgentResponse + nil, // 68: inventory.v1.PMMAgent.CustomLabelsEntry + nil, // 69: inventory.v1.NodeExporter.CustomLabelsEntry + nil, // 70: inventory.v1.MySQLdExporter.CustomLabelsEntry + nil, // 71: inventory.v1.MySQLdExporter.ExtraDsnParamsEntry + nil, // 72: inventory.v1.MongoDBExporter.CustomLabelsEntry + nil, // 73: inventory.v1.PostgresExporter.CustomLabelsEntry + nil, // 74: inventory.v1.ProxySQLExporter.CustomLabelsEntry + nil, // 75: inventory.v1.ValkeyExporter.CustomLabelsEntry + nil, // 76: inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry + nil, // 77: inventory.v1.QANMySQLPerfSchemaAgent.ExtraDsnParamsEntry + nil, // 78: inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry + nil, // 79: inventory.v1.QANMySQLSlowlogAgent.ExtraDsnParamsEntry + nil, // 80: inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry + nil, // 81: inventory.v1.QANMongoDBMongologAgent.CustomLabelsEntry + nil, // 82: inventory.v1.RTAMongoDBAgent.CustomLabelsEntry + nil, // 83: inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry + nil, // 84: inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry + nil, // 85: inventory.v1.RDSExporter.CustomLabelsEntry + nil, // 86: inventory.v1.ExternalExporter.CustomLabelsEntry + nil, // 87: inventory.v1.AzureDatabaseExporter.CustomLabelsEntry + nil, // 88: inventory.v1.AddPMMAgentParams.CustomLabelsEntry + nil, // 89: inventory.v1.AddNodeExporterParams.CustomLabelsEntry + nil, // 90: inventory.v1.AddMySQLdExporterParams.CustomLabelsEntry + nil, // 91: inventory.v1.AddMySQLdExporterParams.ExtraDsnParamsEntry + nil, // 92: inventory.v1.AddMongoDBExporterParams.CustomLabelsEntry + nil, // 93: inventory.v1.AddPostgresExporterParams.CustomLabelsEntry + nil, // 94: inventory.v1.AddProxySQLExporterParams.CustomLabelsEntry + nil, // 95: inventory.v1.AddQANMySQLPerfSchemaAgentParams.CustomLabelsEntry + nil, // 96: inventory.v1.AddQANMySQLPerfSchemaAgentParams.ExtraDsnParamsEntry + nil, // 97: inventory.v1.AddQANMySQLSlowlogAgentParams.CustomLabelsEntry + nil, // 98: inventory.v1.AddQANMySQLSlowlogAgentParams.ExtraDsnParamsEntry + nil, // 99: inventory.v1.AddQANMongoDBProfilerAgentParams.CustomLabelsEntry + nil, // 100: inventory.v1.AddQANMongoDBMongologAgentParams.CustomLabelsEntry + nil, // 101: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.CustomLabelsEntry + nil, // 102: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.CustomLabelsEntry + nil, // 103: inventory.v1.AddRDSExporterParams.CustomLabelsEntry + nil, // 104: inventory.v1.AddExternalExporterParams.CustomLabelsEntry + nil, // 105: inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry + nil, // 106: inventory.v1.AddValkeyExporterParams.CustomLabelsEntry + nil, // 107: inventory.v1.AddRTAMongoDBAgentParams.CustomLabelsEntry + (AgentStatus)(0), // 108: inventory.v1.AgentStatus + (LogLevel)(0), // 109: inventory.v1.LogLevel + (*common.MetricsResolutions)(nil), // 110: common.MetricsResolutions + (*durationpb.Duration)(nil), // 111: google.protobuf.Duration + (*common.StringMap)(nil), // 112: common.StringMap +} var file_inventory_v1_agents_proto_depIdxs = []int32{ 68, // 0: inventory.v1.PMMAgent.custom_labels:type_name -> inventory.v1.PMMAgent.CustomLabelsEntry 108, // 1: inventory.v1.VMAgent.status:type_name -> inventory.v1.AgentStatus diff --git a/api/inventory/v1/agents.pb.validate.go b/api/inventory/v1/agents.pb.validate.go index 784eafd82f3..0f2d68e9a5f 100644 --- a/api/inventory/v1/agents.pb.validate.go +++ b/api/inventory/v1/agents.pb.validate.go @@ -134,8 +134,7 @@ func (e PMMAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PMMAgentValidationError{} @@ -243,8 +242,7 @@ func (e VMAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = VMAgentValidationError{} @@ -355,8 +353,7 @@ func (e NomadAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = NomadAgentValidationError{} @@ -504,8 +501,7 @@ func (e NodeExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = NodeExporterValidationError{} @@ -676,8 +672,7 @@ func (e MySQLdExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MySQLdExporterValidationError{} @@ -838,8 +833,7 @@ func (e MongoDBExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MongoDBExporterValidationError{} @@ -1000,8 +994,7 @@ func (e PostgresExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PostgresExporterValidationError{} @@ -1158,8 +1151,7 @@ func (e ProxySQLExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ProxySQLExporterValidationError{} @@ -1314,8 +1306,7 @@ func (e ValkeyExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ValkeyExporterValidationError{} @@ -1453,8 +1444,7 @@ func (e QANMySQLPerfSchemaAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANMySQLPerfSchemaAgentValidationError{} @@ -1594,8 +1584,7 @@ func (e QANMySQLSlowlogAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANMySQLSlowlogAgentValidationError{} @@ -1721,8 +1710,7 @@ func (e QANMongoDBProfilerAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANMongoDBProfilerAgentValidationError{} @@ -1848,8 +1836,7 @@ func (e QANMongoDBMongologAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANMongoDBMongologAgentValidationError{} @@ -1978,8 +1965,7 @@ func (e RTAOptionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RTAOptionsValidationError{} @@ -2128,8 +2114,7 @@ func (e RTAMongoDBAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RTAMongoDBAgentValidationError{} @@ -2258,8 +2243,7 @@ func (e QANPostgreSQLPgStatementsAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANPostgreSQLPgStatementsAgentValidationError{} @@ -2390,8 +2374,7 @@ func (e QANPostgreSQLPgStatMonitorAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QANPostgreSQLPgStatMonitorAgentValidationError{} @@ -2547,8 +2530,7 @@ func (e RDSExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RDSExporterValidationError{} @@ -2703,8 +2685,7 @@ func (e ExternalExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ExternalExporterValidationError{} @@ -2859,8 +2840,7 @@ func (e AzureDatabaseExporterValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AzureDatabaseExporterValidationError{} @@ -2929,6 +2909,7 @@ func (m *ChangeCommonAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -2957,6 +2938,7 @@ func (m *ChangeCommonAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -3030,8 +3012,7 @@ func (e ChangeCommonAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeCommonAgentParamsValidationError{} @@ -3141,8 +3122,7 @@ func (e ListAgentsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAgentsRequestValidationError{} @@ -3890,8 +3870,7 @@ func (e ListAgentsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAgentsResponseValidationError{} @@ -4002,8 +3981,7 @@ func (e GetAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetAgentRequestValidationError{} @@ -4887,8 +4865,7 @@ func (e GetAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetAgentResponseValidationError{} @@ -5003,8 +4980,7 @@ func (e GetAgentLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetAgentLogsRequestValidationError{} @@ -5108,8 +5084,7 @@ func (e GetAgentLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetAgentLogsResponseValidationError{} @@ -5911,8 +5886,7 @@ func (e AddAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAgentRequestValidationError{} @@ -6714,8 +6688,7 @@ func (e AddAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAgentResponseValidationError{} @@ -7530,8 +7503,7 @@ func (e ChangeAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeAgentRequestValidationError{} @@ -8335,8 +8307,7 @@ func (e ChangeAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeAgentResponseValidationError{} @@ -8451,8 +8422,7 @@ func (e AddPMMAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddPMMAgentParamsValidationError{} @@ -8573,8 +8543,7 @@ func (e AddNodeExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddNodeExporterParamsValidationError{} @@ -8643,6 +8612,7 @@ func (m *ChangeNodeExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -8671,6 +8641,7 @@ func (m *ChangeNodeExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -8752,8 +8723,7 @@ func (e ChangeNodeExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeNodeExporterParamsValidationError{} @@ -8916,8 +8886,7 @@ func (e AddMySQLdExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddMySQLdExporterParamsValidationError{} @@ -8986,6 +8955,7 @@ func (m *ChangeMySQLdExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -9014,6 +8984,7 @@ func (m *ChangeMySQLdExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -9135,8 +9106,7 @@ func (e ChangeMySQLdExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeMySQLdExporterParamsValidationError{} @@ -9294,8 +9264,7 @@ func (e AddMongoDBExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddMongoDBExporterParamsValidationError{} @@ -9364,6 +9333,7 @@ func (m *ChangeMongoDBExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -9392,6 +9362,7 @@ func (m *ChangeMongoDBExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -9526,8 +9497,7 @@ func (e ChangeMongoDBExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeMongoDBExporterParamsValidationError{} @@ -9690,8 +9660,7 @@ func (e AddPostgresExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddPostgresExporterParamsValidationError{} @@ -9760,6 +9729,7 @@ func (m *ChangePostgresExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -9788,6 +9758,7 @@ func (m *ChangePostgresExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -9914,8 +9885,7 @@ func (e ChangePostgresExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangePostgresExporterParamsValidationError{} @@ -10068,8 +10038,7 @@ func (e AddProxySQLExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddProxySQLExporterParamsValidationError{} @@ -10138,6 +10107,7 @@ func (m *ChangeProxySQLExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -10166,6 +10136,7 @@ func (m *ChangeProxySQLExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -10268,8 +10239,7 @@ func (e ChangeProxySQLExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeProxySQLExporterParamsValidationError{} @@ -10433,8 +10403,7 @@ func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddQANMySQLPerfSchemaAgentParamsValidationError{} @@ -10504,6 +10473,7 @@ func (m *ChangeQANMySQLPerfSchemaAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -10532,6 +10502,7 @@ func (m *ChangeQANMySQLPerfSchemaAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -10655,8 +10626,7 @@ func (e ChangeQANMySQLPerfSchemaAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeQANMySQLPerfSchemaAgentParamsValidationError{} @@ -10820,8 +10790,7 @@ func (e AddQANMySQLSlowlogAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddQANMySQLSlowlogAgentParamsValidationError{} @@ -10891,6 +10860,7 @@ func (m *ChangeQANMySQLSlowlogAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -10919,6 +10889,7 @@ func (m *ChangeQANMySQLSlowlogAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -11046,8 +11017,7 @@ func (e ChangeQANMySQLSlowlogAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeQANMySQLSlowlogAgentParamsValidationError{} @@ -11200,8 +11170,7 @@ func (e AddQANMongoDBProfilerAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddQANMongoDBProfilerAgentParamsValidationError{} @@ -11271,6 +11240,7 @@ func (m *ChangeQANMongoDBProfilerAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -11299,6 +11269,7 @@ func (m *ChangeQANMongoDBProfilerAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -11418,8 +11389,7 @@ func (e ChangeQANMongoDBProfilerAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeQANMongoDBProfilerAgentParamsValidationError{} @@ -11572,8 +11542,7 @@ func (e AddQANMongoDBMongologAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddQANMongoDBMongologAgentParamsValidationError{} @@ -11643,6 +11612,7 @@ func (m *ChangeQANMongoDBMongologAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -11671,6 +11641,7 @@ func (m *ChangeQANMongoDBMongologAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -11790,8 +11761,7 @@ func (e ChangeQANMongoDBMongologAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeQANMongoDBMongologAgentParamsValidationError{} @@ -11952,8 +11922,7 @@ func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddQANPostgreSQLPgStatementsAgentParamsValidationError{} @@ -12024,6 +11993,7 @@ func (m *ChangeQANPostgreSQLPgStatementsAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -12052,6 +12022,7 @@ func (m *ChangeQANPostgreSQLPgStatementsAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -12167,8 +12138,7 @@ func (e ChangeQANPostgreSQLPgStatementsAgentParamsValidationError) Error() strin key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeQANPostgreSQLPgStatementsAgentParamsValidationError{} @@ -12331,8 +12301,7 @@ func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Error() string key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{} @@ -12403,6 +12372,7 @@ func (m *ChangeQANPostgreSQLPgStatMonitorAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -12431,6 +12401,7 @@ func (m *ChangeQANPostgreSQLPgStatMonitorAgentParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -12550,8 +12521,7 @@ func (e ChangeQANPostgreSQLPgStatMonitorAgentParamsValidationError) Error() stri key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeQANPostgreSQLPgStatMonitorAgentParamsValidationError{} @@ -12691,8 +12661,7 @@ func (e AddRDSExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddRDSExporterParamsValidationError{} @@ -12761,6 +12730,7 @@ func (m *ChangeRDSExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -12789,6 +12759,7 @@ func (m *ChangeRDSExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -12882,8 +12853,7 @@ func (e ChangeRDSExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeRDSExporterParamsValidationError{} @@ -13023,8 +12993,7 @@ func (e AddExternalExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddExternalExporterParamsValidationError{} @@ -13093,6 +13062,7 @@ func (m *ChangeExternalExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -13121,6 +13091,7 @@ func (m *ChangeExternalExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -13211,8 +13182,7 @@ func (e ChangeExternalExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeExternalExporterParamsValidationError{} @@ -13366,8 +13336,7 @@ func (e AddAzureDatabaseExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAzureDatabaseExporterParamsValidationError{} @@ -13437,6 +13406,7 @@ func (m *ChangeAzureDatabaseExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -13465,6 +13435,7 @@ func (m *ChangeAzureDatabaseExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -13564,8 +13535,7 @@ func (e ChangeAzureDatabaseExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeAzureDatabaseExporterParamsValidationError{} @@ -13671,8 +13641,7 @@ func (e ChangeNomadAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeNomadAgentParamsValidationError{} @@ -13840,8 +13809,7 @@ func (e AddValkeyExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddValkeyExporterParamsValidationError{} @@ -13910,6 +13878,7 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -13938,6 +13907,7 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } } } + } if m.EnablePushMetrics != nil { @@ -13945,6 +13915,7 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } if m.Username != nil { + if utf8.RuneCountInString(m.GetUsername()) < 1 { err := ChangeValkeyExporterParamsValidationError{ field: "Username", @@ -13955,6 +13926,7 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } errors = append(errors, err) } + } if m.Password != nil { @@ -14060,8 +14032,7 @@ func (e ChangeValkeyExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeValkeyExporterParamsValidationError{} @@ -14236,8 +14207,7 @@ func (e AddRTAMongoDBAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddRTAMongoDBAgentParamsValidationError{} @@ -14277,6 +14247,7 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -14305,6 +14276,7 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } } } + } if m.LogLevel != nil { @@ -14344,6 +14316,7 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } if m.RtaOptions != nil { + if all { switch v := interface{}(m.GetRtaOptions()).(type) { case interface{ ValidateAll() error }: @@ -14372,6 +14345,7 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } } } + } if len(errors) > 0 { @@ -14442,8 +14416,7 @@ func (e ChangeRTAMongoDBAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeRTAMongoDBAgentParamsValidationError{} @@ -14558,8 +14531,7 @@ func (e RemoveAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveAgentRequestValidationError{} @@ -14661,8 +14633,7 @@ func (e RemoveAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveAgentResponseValidationError{} diff --git a/api/inventory/v1/agents_grpc.pb.go b/api/inventory/v1/agents_grpc.pb.go index 0b4c6fc63e1..bfb234718bc 100644 --- a/api/inventory/v1/agents_grpc.pb.go +++ b/api/inventory/v1/agents_grpc.pb.go @@ -8,7 +8,6 @@ package inventoryv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -147,23 +146,18 @@ type UnimplementedAgentsServiceServer struct{} func (UnimplementedAgentsServiceServer) ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAgents not implemented") } - func (UnimplementedAgentsServiceServer) GetAgent(context.Context, *GetAgentRequest) (*GetAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAgent not implemented") } - func (UnimplementedAgentsServiceServer) GetAgentLogs(context.Context, *GetAgentLogsRequest) (*GetAgentLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAgentLogs not implemented") } - func (UnimplementedAgentsServiceServer) AddAgent(context.Context, *AddAgentRequest) (*AddAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddAgent not implemented") } - func (UnimplementedAgentsServiceServer) ChangeAgent(context.Context, *ChangeAgentRequest) (*ChangeAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeAgent not implemented") } - func (UnimplementedAgentsServiceServer) RemoveAgent(context.Context, *RemoveAgentRequest) (*RemoveAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveAgent not implemented") } diff --git a/api/inventory/v1/json/client/agents_service/add_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_agent_parameters.go index eca45926526..cb8c62d2ad0 100644 --- a/api/inventory/v1/json/client/agents_service/add_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/add_agent_parameters.go @@ -60,6 +60,7 @@ AddAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddAgentParams struct { + // Body. Body AddAgentBody @@ -129,6 +130,7 @@ func (o *AddAgentParams) SetBody(body AddAgentBody) { // WriteToRequest writes these params to a swagger request func (o *AddAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/add_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_agent_responses.go index b11c2f86fc3..92ad62dcef5 100644 --- a/api/inventory/v1/json/client/agents_service/add_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/add_agent_responses.go @@ -105,6 +105,7 @@ func (o *AddAgentOK) GetPayload() *AddAgentOKBody { } func (o *AddAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAgentOKBody) // response payload @@ -178,6 +179,7 @@ func (o *AddAgentDefault) GetPayload() *AddAgentDefaultBody { } func (o *AddAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAgentDefaultBody) // response payload @@ -193,6 +195,7 @@ AddAgentBody add agent body swagger:model AddAgentBody */ type AddAgentBody struct { + // azure database exporter AzureDatabaseExporter *AddAgentParamsBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -793,6 +796,7 @@ func (o *AddAgentBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *AddAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -817,6 +821,7 @@ func (o *AddAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, } func (o *AddAgentBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -841,6 +846,7 @@ func (o *AddAgentBody) contextValidateExternalExporter(ctx context.Context, form } func (o *AddAgentBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -865,6 +871,7 @@ func (o *AddAgentBody) contextValidateMongodbExporter(ctx context.Context, forma } func (o *AddAgentBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -889,6 +896,7 @@ func (o *AddAgentBody) contextValidateMysqldExporter(ctx context.Context, format } func (o *AddAgentBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -913,6 +921,7 @@ func (o *AddAgentBody) contextValidateNodeExporter(ctx context.Context, formats } func (o *AddAgentBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { if swag.IsZero(o.PMMAgent) { // not required @@ -937,6 +946,7 @@ func (o *AddAgentBody) contextValidatePMMAgent(ctx context.Context, formats strf } func (o *AddAgentBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -961,6 +971,7 @@ func (o *AddAgentBody) contextValidatePostgresExporter(ctx context.Context, form } func (o *AddAgentBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -985,6 +996,7 @@ func (o *AddAgentBody) contextValidateProxysqlExporter(ctx context.Context, form } func (o *AddAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -1009,6 +1021,7 @@ func (o *AddAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Contex } func (o *AddAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -1033,6 +1046,7 @@ func (o *AddAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Contex } func (o *AddAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -1057,6 +1071,7 @@ func (o *AddAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Contex } func (o *AddAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -1081,6 +1096,7 @@ func (o *AddAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, } func (o *AddAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -1105,6 +1121,7 @@ func (o *AddAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context } func (o *AddAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -1129,6 +1146,7 @@ func (o *AddAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx contex } func (o *AddAgentBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -1153,6 +1171,7 @@ func (o *AddAgentBody) contextValidateRDSExporter(ctx context.Context, formats s } func (o *AddAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -1177,6 +1196,7 @@ func (o *AddAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, forma } func (o *AddAgentBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1223,6 +1243,7 @@ AddAgentDefaultBody add agent default body swagger:model AddAgentDefaultBody */ type AddAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -1292,7 +1313,9 @@ func (o *AddAgentDefaultBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -1312,6 +1335,7 @@ func (o *AddAgentDefaultBody) contextValidateDetails(ctx context.Context, format return err } } + } return nil @@ -1340,6 +1364,7 @@ AddAgentDefaultBodyDetailsItems0 add agent default body details items0 swagger:model AddAgentDefaultBodyDetailsItems0 */ type AddAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -1351,6 +1376,7 @@ type AddAgentDefaultBodyDetailsItems0 struct { func (o *AddAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -1388,6 +1414,7 @@ func (o *AddAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -1451,6 +1478,7 @@ AddAgentOKBody add agent OK body swagger:model AddAgentOKBody */ type AddAgentOKBody struct { + // azure database exporter AzureDatabaseExporter *AddAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -2051,6 +2079,7 @@ func (o *AddAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -2075,6 +2104,7 @@ func (o *AddAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Contex } func (o *AddAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2099,6 +2129,7 @@ func (o *AddAgentOKBody) contextValidateExternalExporter(ctx context.Context, fo } func (o *AddAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -2123,6 +2154,7 @@ func (o *AddAgentOKBody) contextValidateMongodbExporter(ctx context.Context, for } func (o *AddAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -2147,6 +2179,7 @@ func (o *AddAgentOKBody) contextValidateMysqldExporter(ctx context.Context, form } func (o *AddAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -2171,6 +2204,7 @@ func (o *AddAgentOKBody) contextValidateNodeExporter(ctx context.Context, format } func (o *AddAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { if swag.IsZero(o.PMMAgent) { // not required @@ -2195,6 +2229,7 @@ func (o *AddAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats st } func (o *AddAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -2219,6 +2254,7 @@ func (o *AddAgentOKBody) contextValidatePostgresExporter(ctx context.Context, fo } func (o *AddAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -2243,6 +2279,7 @@ func (o *AddAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, fo } func (o *AddAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -2267,6 +2304,7 @@ func (o *AddAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Cont } func (o *AddAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -2291,6 +2329,7 @@ func (o *AddAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Cont } func (o *AddAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -2315,6 +2354,7 @@ func (o *AddAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Cont } func (o *AddAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -2339,6 +2379,7 @@ func (o *AddAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context } func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -2363,6 +2404,7 @@ func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx conte } func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -2387,6 +2429,7 @@ func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx cont } func (o *AddAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -2411,6 +2454,7 @@ func (o *AddAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats } func (o *AddAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -2435,6 +2479,7 @@ func (o *AddAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, for } func (o *AddAgentOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -2481,6 +2526,7 @@ AddAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Con swagger:model AddAgentOKBodyAzureDatabaseExporter */ type AddAgentOKBodyAzureDatabaseExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2707,6 +2753,7 @@ func (o *AddAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Contex } func (o *AddAgentOKBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2753,6 +2800,7 @@ AddAgentOKBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions represe swagger:model AddAgentOKBodyAzureDatabaseExporterMetricsResolutions */ type AddAgentOKBodyAzureDatabaseExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2796,6 +2844,7 @@ AddAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including swagger:model AddAgentOKBodyExternalExporter */ type AddAgentOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2964,6 +3013,7 @@ func (o *AddAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, fo } func (o *AddAgentOKBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3010,6 +3060,7 @@ AddAgentOKBodyExternalExporterMetricsResolutions MetricsResolutions represents P swagger:model AddAgentOKBodyExternalExporterMetricsResolutions */ type AddAgentOKBodyExternalExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3053,6 +3104,7 @@ AddAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node swagger:model AddAgentOKBodyMongodbExporter */ type AddAgentOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3301,6 +3353,7 @@ func (o *AddAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, for } func (o *AddAgentOKBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3347,6 +3400,7 @@ AddAgentOKBodyMongodbExporterMetricsResolutions MetricsResolutions represents Pr swagger:model AddAgentOKBodyMongodbExporterMetricsResolutions */ type AddAgentOKBodyMongodbExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3390,6 +3444,7 @@ AddAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node an swagger:model AddAgentOKBodyMysqldExporter */ type AddAgentOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3648,6 +3703,7 @@ func (o *AddAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, form } func (o *AddAgentOKBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3694,6 +3750,7 @@ AddAgentOKBodyMysqldExporterMetricsResolutions MetricsResolutions represents Pro swagger:model AddAgentOKBodyMysqldExporterMetricsResolutions */ type AddAgentOKBodyMysqldExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3737,6 +3794,7 @@ AddAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and ex swagger:model AddAgentOKBodyNodeExporter */ type AddAgentOKBodyNodeExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3960,6 +4018,7 @@ func (o *AddAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, format } func (o *AddAgentOKBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4006,6 +4065,7 @@ AddAgentOKBodyNodeExporterMetricsResolutions MetricsResolutions represents Prome swagger:model AddAgentOKBodyNodeExporterMetricsResolutions */ type AddAgentOKBodyNodeExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4049,6 +4109,7 @@ AddAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model AddAgentOKBodyPMMAgent */ type AddAgentOKBodyPMMAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4098,6 +4159,7 @@ AddAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Nod swagger:model AddAgentOKBodyPostgresExporter */ type AddAgentOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4339,6 +4401,7 @@ func (o *AddAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, fo } func (o *AddAgentOKBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4385,6 +4448,7 @@ AddAgentOKBodyPostgresExporterMetricsResolutions MetricsResolutions represents P swagger:model AddAgentOKBodyPostgresExporterMetricsResolutions */ type AddAgentOKBodyPostgresExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4428,6 +4492,7 @@ AddAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Nod swagger:model AddAgentOKBodyProxysqlExporter */ type AddAgentOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4663,6 +4728,7 @@ func (o *AddAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, fo } func (o *AddAgentOKBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4709,6 +4775,7 @@ AddAgentOKBodyProxysqlExporterMetricsResolutions MetricsResolutions represents P swagger:model AddAgentOKBodyProxysqlExporterMetricsResolutions */ type AddAgentOKBodyProxysqlExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4752,6 +4819,7 @@ AddAgentOKBodyQANMongodbMongologAgent QANMongoDBMongologAgent runs within pmm-ag swagger:model AddAgentOKBodyQANMongodbMongologAgent */ type AddAgentOKBodyQANMongodbMongologAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4961,6 +5029,7 @@ AddAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-ag swagger:model AddAgentOKBodyQANMongodbProfilerAgent */ type AddAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5170,6 +5239,7 @@ AddAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model AddAgentOKBodyQANMysqlPerfschemaAgent */ type AddAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5397,6 +5467,7 @@ AddAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent an swagger:model AddAgentOKBodyQANMysqlSlowlogAgent */ type AddAgentOKBodyQANMysqlSlowlogAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5627,6 +5698,7 @@ AddAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs swagger:model AddAgentOKBodyQANPostgresqlPgstatementsAgent */ type AddAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5839,6 +5911,7 @@ AddAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent ru swagger:model AddAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type AddAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6054,6 +6127,7 @@ AddAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and expo swagger:model AddAgentOKBodyRDSExporter */ type AddAgentOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6286,6 +6360,7 @@ func (o *AddAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, formats } func (o *AddAgentOKBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6332,6 +6407,7 @@ AddAgentOKBodyRDSExporterMetricsResolutions MetricsResolutions represents Promet swagger:model AddAgentOKBodyRDSExporterMetricsResolutions */ type AddAgentOKBodyRDSExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6375,6 +6451,7 @@ AddAgentOKBodyRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and sends Mo swagger:model AddAgentOKBodyRtaMongodbAgent */ type AddAgentOKBodyRtaMongodbAgent struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -6595,6 +6672,7 @@ func (o *AddAgentOKBodyRtaMongodbAgent) ContextValidate(ctx context.Context, for } func (o *AddAgentOKBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -6641,6 +6719,7 @@ AddAgentOKBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Analyti swagger:model AddAgentOKBodyRtaMongodbAgentRtaOptions */ type AddAgentOKBodyRtaMongodbAgentRtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -6678,6 +6757,7 @@ AddAgentOKBodyValkeyExporter ValkeyExporter runs on Generic or Container Node an swagger:model AddAgentOKBodyValkeyExporter */ type AddAgentOKBodyValkeyExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6849,6 +6929,7 @@ func (o *AddAgentOKBodyValkeyExporter) ContextValidate(ctx context.Context, form } func (o *AddAgentOKBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6895,6 +6976,7 @@ AddAgentOKBodyValkeyExporterMetricsResolutions MetricsResolutions represents Pro swagger:model AddAgentOKBodyValkeyExporterMetricsResolutions */ type AddAgentOKBodyValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6938,6 +7020,7 @@ AddAgentParamsBodyAzureDatabaseExporter add agent params body azure database exp swagger:model AddAgentParamsBodyAzureDatabaseExporter */ type AddAgentParamsBodyAzureDatabaseExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7074,6 +7157,7 @@ AddAgentParamsBodyExternalExporter add agent params body external exporter swagger:model AddAgentParamsBodyExternalExporter */ type AddAgentParamsBodyExternalExporter struct { + // The node identifier where this instance is run. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -7138,6 +7222,7 @@ AddAgentParamsBodyMongodbExporter add agent params body mongodb exporter swagger:model AddAgentParamsBodyMongodbExporter */ type AddAgentParamsBodyMongodbExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7308,6 +7393,7 @@ AddAgentParamsBodyMysqldExporter add agent params body mysqld exporter swagger:model AddAgentParamsBodyMysqldExporter */ type AddAgentParamsBodyMysqldExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7464,6 +7550,7 @@ AddAgentParamsBodyNodeExporter add agent params body node exporter swagger:model AddAgentParamsBodyNodeExporter */ type AddAgentParamsBodyNodeExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7582,6 +7669,7 @@ AddAgentParamsBodyPMMAgent add agent params body PMM agent swagger:model AddAgentParamsBodyPMMAgent */ type AddAgentParamsBodyPMMAgent struct { + // Node identifier where this instance runs. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -7622,6 +7710,7 @@ AddAgentParamsBodyPostgresExporter add agent params body postgres exporter swagger:model AddAgentParamsBodyPostgresExporter */ type AddAgentParamsBodyPostgresExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7776,6 +7865,7 @@ AddAgentParamsBodyProxysqlExporter add agent params body proxysql exporter swagger:model AddAgentParamsBodyProxysqlExporter */ type AddAgentParamsBodyProxysqlExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7915,6 +8005,7 @@ AddAgentParamsBodyQANMongodbMongologAgent add agent params body QAN mongodb mong swagger:model AddAgentParamsBodyQANMongodbMongologAgent */ type AddAgentParamsBodyQANMongodbMongologAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8062,6 +8153,7 @@ AddAgentParamsBodyQANMongodbProfilerAgent add agent params body QAN mongodb prof swagger:model AddAgentParamsBodyQANMongodbProfilerAgent */ type AddAgentParamsBodyQANMongodbProfilerAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8209,6 +8301,7 @@ AddAgentParamsBodyQANMysqlPerfschemaAgent add agent params body QAN mysql perfsc swagger:model AddAgentParamsBodyQANMysqlPerfschemaAgent */ type AddAgentParamsBodyQANMysqlPerfschemaAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8357,6 +8450,7 @@ AddAgentParamsBodyQANMysqlSlowlogAgent add agent params body QAN mysql slowlog a swagger:model AddAgentParamsBodyQANMysqlSlowlogAgent */ type AddAgentParamsBodyQANMysqlSlowlogAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8509,6 +8603,7 @@ AddAgentParamsBodyQANPostgresqlPgstatementsAgent add agent params body QAN postg swagger:model AddAgentParamsBodyQANPostgresqlPgstatementsAgent */ type AddAgentParamsBodyQANPostgresqlPgstatementsAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8651,6 +8746,7 @@ AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent add agent params body QAN post swagger:model AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent */ type AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8796,6 +8892,7 @@ AddAgentParamsBodyRDSExporter add agent params body RDS exporter swagger:model AddAgentParamsBodyRDSExporter */ type AddAgentParamsBodyRDSExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8926,6 +9023,7 @@ AddAgentParamsBodyRtaMongodbAgent add agent params body rta mongodb agent swagger:model AddAgentParamsBodyRtaMongodbAgent */ type AddAgentParamsBodyRtaMongodbAgent struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -9085,6 +9183,7 @@ func (o *AddAgentParamsBodyRtaMongodbAgent) ContextValidate(ctx context.Context, } func (o *AddAgentParamsBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -9131,6 +9230,7 @@ AddAgentParamsBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Ana swagger:model AddAgentParamsBodyRtaMongodbAgentRtaOptions */ type AddAgentParamsBodyRtaMongodbAgentRtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -9168,6 +9268,7 @@ AddAgentParamsBodyValkeyExporter add agent params body valkey exporter swagger:model AddAgentParamsBodyValkeyExporter */ type AddAgentParamsBodyValkeyExporter struct { + // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` diff --git a/api/inventory/v1/json/client/agents_service/change_agent_parameters.go b/api/inventory/v1/json/client/agents_service/change_agent_parameters.go index c683f8aeb08..142e0f54487 100644 --- a/api/inventory/v1/json/client/agents_service/change_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/change_agent_parameters.go @@ -60,6 +60,7 @@ ChangeAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeAgentParams struct { + // AgentID. AgentID string @@ -143,6 +144,7 @@ func (o *ChangeAgentParams) SetBody(body ChangeAgentBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/change_agent_responses.go b/api/inventory/v1/json/client/agents_service/change_agent_responses.go index efd1d7e7a74..1f8243bc800 100644 --- a/api/inventory/v1/json/client/agents_service/change_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/change_agent_responses.go @@ -105,6 +105,7 @@ func (o *ChangeAgentOK) GetPayload() *ChangeAgentOKBody { } func (o *ChangeAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeAgentOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ChangeAgentDefault) GetPayload() *ChangeAgentDefaultBody { } func (o *ChangeAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeAgentDefaultBody) // response payload @@ -193,6 +195,7 @@ ChangeAgentBody change agent body swagger:model ChangeAgentBody */ type ChangeAgentBody struct { + // azure database exporter AzureDatabaseExporter *ChangeAgentParamsBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -793,6 +796,7 @@ func (o *ChangeAgentBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ChangeAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -817,6 +821,7 @@ func (o *ChangeAgentBody) contextValidateAzureDatabaseExporter(ctx context.Conte } func (o *ChangeAgentBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -841,6 +846,7 @@ func (o *ChangeAgentBody) contextValidateExternalExporter(ctx context.Context, f } func (o *ChangeAgentBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -865,6 +871,7 @@ func (o *ChangeAgentBody) contextValidateMongodbExporter(ctx context.Context, fo } func (o *ChangeAgentBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -889,6 +896,7 @@ func (o *ChangeAgentBody) contextValidateMysqldExporter(ctx context.Context, for } func (o *ChangeAgentBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -913,6 +921,7 @@ func (o *ChangeAgentBody) contextValidateNodeExporter(ctx context.Context, forma } func (o *ChangeAgentBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { + if o.NomadAgent != nil { if swag.IsZero(o.NomadAgent) { // not required @@ -937,6 +946,7 @@ func (o *ChangeAgentBody) contextValidateNomadAgent(ctx context.Context, formats } func (o *ChangeAgentBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -961,6 +971,7 @@ func (o *ChangeAgentBody) contextValidatePostgresExporter(ctx context.Context, f } func (o *ChangeAgentBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -985,6 +996,7 @@ func (o *ChangeAgentBody) contextValidateProxysqlExporter(ctx context.Context, f } func (o *ChangeAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -1009,6 +1021,7 @@ func (o *ChangeAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Con } func (o *ChangeAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -1033,6 +1046,7 @@ func (o *ChangeAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Con } func (o *ChangeAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -1057,6 +1071,7 @@ func (o *ChangeAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Con } func (o *ChangeAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -1081,6 +1096,7 @@ func (o *ChangeAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Contex } func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -1105,6 +1121,7 @@ func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx cont } func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -1129,6 +1146,7 @@ func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx con } func (o *ChangeAgentBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -1153,6 +1171,7 @@ func (o *ChangeAgentBody) contextValidateRDSExporter(ctx context.Context, format } func (o *ChangeAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -1177,6 +1196,7 @@ func (o *ChangeAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, fo } func (o *ChangeAgentBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1223,6 +1243,7 @@ ChangeAgentDefaultBody change agent default body swagger:model ChangeAgentDefaultBody */ type ChangeAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -1292,7 +1313,9 @@ func (o *ChangeAgentDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *ChangeAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -1312,6 +1335,7 @@ func (o *ChangeAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -1340,6 +1364,7 @@ ChangeAgentDefaultBodyDetailsItems0 change agent default body details items0 swagger:model ChangeAgentDefaultBodyDetailsItems0 */ type ChangeAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -1351,6 +1376,7 @@ type ChangeAgentDefaultBodyDetailsItems0 struct { func (o *ChangeAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -1388,6 +1414,7 @@ func (o *ChangeAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -1451,6 +1478,7 @@ ChangeAgentOKBody change agent OK body swagger:model ChangeAgentOKBody */ type ChangeAgentOKBody struct { + // azure database exporter AzureDatabaseExporter *ChangeAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -2051,6 +2079,7 @@ func (o *ChangeAgentOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ChangeAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { + if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -2075,6 +2104,7 @@ func (o *ChangeAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Con } func (o *ChangeAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2099,6 +2129,7 @@ func (o *ChangeAgentOKBody) contextValidateExternalExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -2123,6 +2154,7 @@ func (o *ChangeAgentOKBody) contextValidateMongodbExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -2147,6 +2179,7 @@ func (o *ChangeAgentOKBody) contextValidateMysqldExporter(ctx context.Context, f } func (o *ChangeAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { + if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -2171,6 +2204,7 @@ func (o *ChangeAgentOKBody) contextValidateNodeExporter(ctx context.Context, for } func (o *ChangeAgentOKBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { + if o.NomadAgent != nil { if swag.IsZero(o.NomadAgent) { // not required @@ -2195,6 +2229,7 @@ func (o *ChangeAgentOKBody) contextValidateNomadAgent(ctx context.Context, forma } func (o *ChangeAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -2219,6 +2254,7 @@ func (o *ChangeAgentOKBody) contextValidatePostgresExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -2243,6 +2279,7 @@ func (o *ChangeAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -2267,6 +2304,7 @@ func (o *ChangeAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.C } func (o *ChangeAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -2291,6 +2329,7 @@ func (o *ChangeAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.C } func (o *ChangeAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -2315,6 +2354,7 @@ func (o *ChangeAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.C } func (o *ChangeAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -2339,6 +2379,7 @@ func (o *ChangeAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Cont } func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -2363,6 +2404,7 @@ func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx co } func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -2387,6 +2429,7 @@ func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx c } func (o *ChangeAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -2411,6 +2454,7 @@ func (o *ChangeAgentOKBody) contextValidateRDSExporter(ctx context.Context, form } func (o *ChangeAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -2435,6 +2479,7 @@ func (o *ChangeAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -2481,6 +2526,7 @@ ChangeAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or swagger:model ChangeAgentOKBodyAzureDatabaseExporter */ type ChangeAgentOKBodyAzureDatabaseExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2707,6 +2753,7 @@ func (o *ChangeAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Con } func (o *ChangeAgentOKBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2753,6 +2800,7 @@ ChangeAgentOKBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions repr swagger:model ChangeAgentOKBodyAzureDatabaseExporterMetricsResolutions */ type ChangeAgentOKBodyAzureDatabaseExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2796,6 +2844,7 @@ ChangeAgentOKBodyExternalExporter ExternalExporter runs on any Node type, includ swagger:model ChangeAgentOKBodyExternalExporter */ type ChangeAgentOKBodyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2964,6 +3013,7 @@ func (o *ChangeAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3010,6 +3060,7 @@ ChangeAgentOKBodyExternalExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentOKBodyExternalExporterMetricsResolutions */ type ChangeAgentOKBodyExternalExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3053,6 +3104,7 @@ ChangeAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container No swagger:model ChangeAgentOKBodyMongodbExporter */ type ChangeAgentOKBodyMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3301,6 +3353,7 @@ func (o *ChangeAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3347,6 +3400,7 @@ ChangeAgentOKBodyMongodbExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentOKBodyMongodbExporterMetricsResolutions */ type ChangeAgentOKBodyMongodbExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3390,6 +3444,7 @@ ChangeAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node swagger:model ChangeAgentOKBodyMysqldExporter */ type ChangeAgentOKBodyMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3648,6 +3703,7 @@ func (o *ChangeAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, f } func (o *ChangeAgentOKBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3694,6 +3750,7 @@ ChangeAgentOKBodyMysqldExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentOKBodyMysqldExporterMetricsResolutions */ type ChangeAgentOKBodyMysqldExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3737,6 +3794,7 @@ ChangeAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and swagger:model ChangeAgentOKBodyNodeExporter */ type ChangeAgentOKBodyNodeExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3960,6 +4018,7 @@ func (o *ChangeAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, for } func (o *ChangeAgentOKBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4006,6 +4065,7 @@ ChangeAgentOKBodyNodeExporterMetricsResolutions MetricsResolutions represents Pr swagger:model ChangeAgentOKBodyNodeExporterMetricsResolutions */ type ChangeAgentOKBodyNodeExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4049,6 +4109,7 @@ ChangeAgentOKBodyNomadAgent change agent OK body nomad agent swagger:model ChangeAgentOKBodyNomadAgent */ type ChangeAgentOKBodyNomadAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4179,6 +4240,7 @@ ChangeAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container swagger:model ChangeAgentOKBodyPostgresExporter */ type ChangeAgentOKBodyPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4420,6 +4482,7 @@ func (o *ChangeAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4466,6 +4529,7 @@ ChangeAgentOKBodyPostgresExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentOKBodyPostgresExporterMetricsResolutions */ type ChangeAgentOKBodyPostgresExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4509,6 +4573,7 @@ ChangeAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container swagger:model ChangeAgentOKBodyProxysqlExporter */ type ChangeAgentOKBodyProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4744,6 +4809,7 @@ func (o *ChangeAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4790,6 +4856,7 @@ ChangeAgentOKBodyProxysqlExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentOKBodyProxysqlExporterMetricsResolutions */ type ChangeAgentOKBodyProxysqlExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4833,6 +4900,7 @@ ChangeAgentOKBodyQANMongodbMongologAgent QANMongoDBMongologAgent runs within pmm swagger:model ChangeAgentOKBodyQANMongodbMongologAgent */ type ChangeAgentOKBodyQANMongodbMongologAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5042,6 +5110,7 @@ ChangeAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm swagger:model ChangeAgentOKBodyQANMongodbProfilerAgent */ type ChangeAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5251,6 +5320,7 @@ ChangeAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm swagger:model ChangeAgentOKBodyQANMysqlPerfschemaAgent */ type ChangeAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5478,6 +5548,7 @@ ChangeAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent swagger:model ChangeAgentOKBodyQANMysqlSlowlogAgent */ type ChangeAgentOKBodyQANMysqlSlowlogAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5708,6 +5779,7 @@ ChangeAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent r swagger:model ChangeAgentOKBodyQANPostgresqlPgstatementsAgent */ type ChangeAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5920,6 +5992,7 @@ ChangeAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent swagger:model ChangeAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type ChangeAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6135,6 +6208,7 @@ ChangeAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and e swagger:model ChangeAgentOKBodyRDSExporter */ type ChangeAgentOKBodyRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6367,6 +6441,7 @@ func (o *ChangeAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, form } func (o *ChangeAgentOKBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6413,6 +6488,7 @@ ChangeAgentOKBodyRDSExporterMetricsResolutions MetricsResolutions represents Pro swagger:model ChangeAgentOKBodyRDSExporterMetricsResolutions */ type ChangeAgentOKBodyRDSExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6456,6 +6532,7 @@ ChangeAgentOKBodyRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and sends swagger:model ChangeAgentOKBodyRtaMongodbAgent */ type ChangeAgentOKBodyRtaMongodbAgent struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -6676,6 +6753,7 @@ func (o *ChangeAgentOKBodyRtaMongodbAgent) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -6722,6 +6800,7 @@ ChangeAgentOKBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Anal swagger:model ChangeAgentOKBodyRtaMongodbAgentRtaOptions */ type ChangeAgentOKBodyRtaMongodbAgentRtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -6759,6 +6838,7 @@ ChangeAgentOKBodyValkeyExporter ValkeyExporter runs on Generic or Container Node swagger:model ChangeAgentOKBodyValkeyExporter */ type ChangeAgentOKBodyValkeyExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6930,6 +7010,7 @@ func (o *ChangeAgentOKBodyValkeyExporter) ContextValidate(ctx context.Context, f } func (o *ChangeAgentOKBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6976,6 +7057,7 @@ ChangeAgentOKBodyValkeyExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentOKBodyValkeyExporterMetricsResolutions */ type ChangeAgentOKBodyValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7019,6 +7101,7 @@ ChangeAgentParamsBodyAzureDatabaseExporter change agent params body azure databa swagger:model ChangeAgentParamsBodyAzureDatabaseExporter */ type ChangeAgentParamsBodyAzureDatabaseExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -7194,6 +7277,7 @@ func (o *ChangeAgentParamsBodyAzureDatabaseExporter) ContextValidate(ctx context } func (o *ChangeAgentParamsBodyAzureDatabaseExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -7218,6 +7302,7 @@ func (o *ChangeAgentParamsBodyAzureDatabaseExporter) contextValidateCustomLabels } func (o *ChangeAgentParamsBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7264,6 +7349,7 @@ ChangeAgentParamsBodyAzureDatabaseExporterCustomLabels A wrapper for map[string] swagger:model ChangeAgentParamsBodyAzureDatabaseExporterCustomLabels */ type ChangeAgentParamsBodyAzureDatabaseExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -7301,6 +7387,7 @@ ChangeAgentParamsBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions swagger:model ChangeAgentParamsBodyAzureDatabaseExporterMetricsResolutions */ type ChangeAgentParamsBodyAzureDatabaseExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7344,6 +7431,7 @@ ChangeAgentParamsBodyExternalExporter change agent params body external exporter swagger:model ChangeAgentParamsBodyExternalExporter */ type ChangeAgentParamsBodyExternalExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -7452,6 +7540,7 @@ func (o *ChangeAgentParamsBodyExternalExporter) ContextValidate(ctx context.Cont } func (o *ChangeAgentParamsBodyExternalExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -7476,6 +7565,7 @@ func (o *ChangeAgentParamsBodyExternalExporter) contextValidateCustomLabels(ctx } func (o *ChangeAgentParamsBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7522,6 +7612,7 @@ ChangeAgentParamsBodyExternalExporterCustomLabels A wrapper for map[string]strin swagger:model ChangeAgentParamsBodyExternalExporterCustomLabels */ type ChangeAgentParamsBodyExternalExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -7559,6 +7650,7 @@ ChangeAgentParamsBodyExternalExporterMetricsResolutions MetricsResolutions repre swagger:model ChangeAgentParamsBodyExternalExporterMetricsResolutions */ type ChangeAgentParamsBodyExternalExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7602,6 +7694,7 @@ ChangeAgentParamsBodyMongodbExporter change agent params body mongodb exporter swagger:model ChangeAgentParamsBodyMongodbExporter */ type ChangeAgentParamsBodyMongodbExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -7810,6 +7903,7 @@ func (o *ChangeAgentParamsBodyMongodbExporter) ContextValidate(ctx context.Conte } func (o *ChangeAgentParamsBodyMongodbExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -7834,6 +7928,7 @@ func (o *ChangeAgentParamsBodyMongodbExporter) contextValidateCustomLabels(ctx c } func (o *ChangeAgentParamsBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7880,6 +7975,7 @@ ChangeAgentParamsBodyMongodbExporterCustomLabels A wrapper for map[string]string swagger:model ChangeAgentParamsBodyMongodbExporterCustomLabels */ type ChangeAgentParamsBodyMongodbExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -7917,6 +8013,7 @@ ChangeAgentParamsBodyMongodbExporterMetricsResolutions MetricsResolutions repres swagger:model ChangeAgentParamsBodyMongodbExporterMetricsResolutions */ type ChangeAgentParamsBodyMongodbExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7960,6 +8057,7 @@ ChangeAgentParamsBodyMysqldExporter change agent params body mysqld exporter swagger:model ChangeAgentParamsBodyMysqldExporter */ type ChangeAgentParamsBodyMysqldExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -8156,6 +8254,7 @@ func (o *ChangeAgentParamsBodyMysqldExporter) ContextValidate(ctx context.Contex } func (o *ChangeAgentParamsBodyMysqldExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -8180,6 +8279,7 @@ func (o *ChangeAgentParamsBodyMysqldExporter) contextValidateCustomLabels(ctx co } func (o *ChangeAgentParamsBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8226,6 +8326,7 @@ ChangeAgentParamsBodyMysqldExporterCustomLabels A wrapper for map[string]string. swagger:model ChangeAgentParamsBodyMysqldExporterCustomLabels */ type ChangeAgentParamsBodyMysqldExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -8263,6 +8364,7 @@ ChangeAgentParamsBodyMysqldExporterMetricsResolutions MetricsResolutions represe swagger:model ChangeAgentParamsBodyMysqldExporterMetricsResolutions */ type ChangeAgentParamsBodyMysqldExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8306,6 +8408,7 @@ ChangeAgentParamsBodyNodeExporter change agent params body node exporter swagger:model ChangeAgentParamsBodyNodeExporter */ type ChangeAgentParamsBodyNodeExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -8472,6 +8575,7 @@ func (o *ChangeAgentParamsBodyNodeExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentParamsBodyNodeExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -8496,6 +8600,7 @@ func (o *ChangeAgentParamsBodyNodeExporter) contextValidateCustomLabels(ctx cont } func (o *ChangeAgentParamsBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8542,6 +8647,7 @@ ChangeAgentParamsBodyNodeExporterCustomLabels A wrapper for map[string]string. T swagger:model ChangeAgentParamsBodyNodeExporterCustomLabels */ type ChangeAgentParamsBodyNodeExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -8579,6 +8685,7 @@ ChangeAgentParamsBodyNodeExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentParamsBodyNodeExporterMetricsResolutions */ type ChangeAgentParamsBodyNodeExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8622,6 +8729,7 @@ ChangeAgentParamsBodyNomadAgent change agent params body nomad agent swagger:model ChangeAgentParamsBodyNomadAgent */ type ChangeAgentParamsBodyNomadAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` } @@ -8659,6 +8767,7 @@ ChangeAgentParamsBodyPostgresExporter change agent params body postgres exporter swagger:model ChangeAgentParamsBodyPostgresExporter */ type ChangeAgentParamsBodyPostgresExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -8858,6 +8967,7 @@ func (o *ChangeAgentParamsBodyPostgresExporter) ContextValidate(ctx context.Cont } func (o *ChangeAgentParamsBodyPostgresExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -8882,6 +8992,7 @@ func (o *ChangeAgentParamsBodyPostgresExporter) contextValidateCustomLabels(ctx } func (o *ChangeAgentParamsBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8928,6 +9039,7 @@ ChangeAgentParamsBodyPostgresExporterCustomLabels A wrapper for map[string]strin swagger:model ChangeAgentParamsBodyPostgresExporterCustomLabels */ type ChangeAgentParamsBodyPostgresExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -8965,6 +9077,7 @@ ChangeAgentParamsBodyPostgresExporterMetricsResolutions MetricsResolutions repre swagger:model ChangeAgentParamsBodyPostgresExporterMetricsResolutions */ type ChangeAgentParamsBodyPostgresExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9008,6 +9121,7 @@ ChangeAgentParamsBodyProxysqlExporter change agent params body proxysql exporter swagger:model ChangeAgentParamsBodyProxysqlExporter */ type ChangeAgentParamsBodyProxysqlExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -9189,6 +9303,7 @@ func (o *ChangeAgentParamsBodyProxysqlExporter) ContextValidate(ctx context.Cont } func (o *ChangeAgentParamsBodyProxysqlExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -9213,6 +9328,7 @@ func (o *ChangeAgentParamsBodyProxysqlExporter) contextValidateCustomLabels(ctx } func (o *ChangeAgentParamsBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9259,6 +9375,7 @@ ChangeAgentParamsBodyProxysqlExporterCustomLabels A wrapper for map[string]strin swagger:model ChangeAgentParamsBodyProxysqlExporterCustomLabels */ type ChangeAgentParamsBodyProxysqlExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -9296,6 +9413,7 @@ ChangeAgentParamsBodyProxysqlExporterMetricsResolutions MetricsResolutions repre swagger:model ChangeAgentParamsBodyProxysqlExporterMetricsResolutions */ type ChangeAgentParamsBodyProxysqlExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9339,6 +9457,7 @@ ChangeAgentParamsBodyQANMongodbMongologAgent change agent params body QAN mongod swagger:model ChangeAgentParamsBodyQANMongodbMongologAgent */ type ChangeAgentParamsBodyQANMongodbMongologAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -9529,6 +9648,7 @@ func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) ContextValidate(ctx conte } func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -9553,6 +9673,7 @@ func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) contextValidateCustomLabe } func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9599,6 +9720,7 @@ ChangeAgentParamsBodyQANMongodbMongologAgentCustomLabels A wrapper for map[strin swagger:model ChangeAgentParamsBodyQANMongodbMongologAgentCustomLabels */ type ChangeAgentParamsBodyQANMongodbMongologAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -9636,6 +9758,7 @@ ChangeAgentParamsBodyQANMongodbMongologAgentMetricsResolutions MetricsResolution swagger:model ChangeAgentParamsBodyQANMongodbMongologAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMongodbMongologAgentMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9679,6 +9802,7 @@ ChangeAgentParamsBodyQANMongodbProfilerAgent change agent params body QAN mongod swagger:model ChangeAgentParamsBodyQANMongodbProfilerAgent */ type ChangeAgentParamsBodyQANMongodbProfilerAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -9869,6 +9993,7 @@ func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) ContextValidate(ctx conte } func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -9893,6 +10018,7 @@ func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) contextValidateCustomLabe } func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9939,6 +10065,7 @@ ChangeAgentParamsBodyQANMongodbProfilerAgentCustomLabels A wrapper for map[strin swagger:model ChangeAgentParamsBodyQANMongodbProfilerAgentCustomLabels */ type ChangeAgentParamsBodyQANMongodbProfilerAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -9976,6 +10103,7 @@ ChangeAgentParamsBodyQANMongodbProfilerAgentMetricsResolutions MetricsResolution swagger:model ChangeAgentParamsBodyQANMongodbProfilerAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMongodbProfilerAgentMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10019,6 +10147,7 @@ ChangeAgentParamsBodyQANMysqlPerfschemaAgent change agent params body QAN mysql swagger:model ChangeAgentParamsBodyQANMysqlPerfschemaAgent */ type ChangeAgentParamsBodyQANMysqlPerfschemaAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -10212,6 +10341,7 @@ func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) ContextValidate(ctx conte } func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -10236,6 +10366,7 @@ func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) contextValidateCustomLabe } func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10282,6 +10413,7 @@ ChangeAgentParamsBodyQANMysqlPerfschemaAgentCustomLabels A wrapper for map[strin swagger:model ChangeAgentParamsBodyQANMysqlPerfschemaAgentCustomLabels */ type ChangeAgentParamsBodyQANMysqlPerfschemaAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -10319,6 +10451,7 @@ ChangeAgentParamsBodyQANMysqlPerfschemaAgentMetricsResolutions MetricsResolution swagger:model ChangeAgentParamsBodyQANMysqlPerfschemaAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMysqlPerfschemaAgentMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10362,6 +10495,7 @@ ChangeAgentParamsBodyQANMysqlSlowlogAgent change agent params body QAN mysql slo swagger:model ChangeAgentParamsBodyQANMysqlSlowlogAgent */ type ChangeAgentParamsBodyQANMysqlSlowlogAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -10558,6 +10692,7 @@ func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) ContextValidate(ctx context. } func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -10582,6 +10717,7 @@ func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) contextValidateCustomLabels( } func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10628,6 +10764,7 @@ ChangeAgentParamsBodyQANMysqlSlowlogAgentCustomLabels A wrapper for map[string]s swagger:model ChangeAgentParamsBodyQANMysqlSlowlogAgentCustomLabels */ type ChangeAgentParamsBodyQANMysqlSlowlogAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -10665,6 +10802,7 @@ ChangeAgentParamsBodyQANMysqlSlowlogAgentMetricsResolutions MetricsResolutions r swagger:model ChangeAgentParamsBodyQANMysqlSlowlogAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMysqlSlowlogAgentMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10708,6 +10846,7 @@ ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent change agent params body QAN swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent */ type ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -10895,6 +11034,7 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) ContextValidate(ct } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -10919,6 +11059,7 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) contextValidateCus } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10965,6 +11106,7 @@ ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentCustomLabels A wrapper for ma swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentCustomLabels */ type ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -11002,6 +11144,7 @@ ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentMetricsResolutions MetricsRes swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentMetricsResolutions */ type ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -11045,6 +11188,7 @@ ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent change agent params body QA swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent */ type ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -11235,6 +11379,7 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) ContextValidate(c } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -11259,6 +11404,7 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) contextValidateCu } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -11305,6 +11451,7 @@ ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentCustomLabels A wrapper for m swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentCustomLabels */ type ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -11342,6 +11489,7 @@ ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentMetricsResolutions MetricsRe swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentMetricsResolutions */ type ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -11385,6 +11533,7 @@ ChangeAgentParamsBodyRDSExporter change agent params body RDS exporter swagger:model ChangeAgentParamsBodyRDSExporter */ type ChangeAgentParamsBodyRDSExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -11557,6 +11706,7 @@ func (o *ChangeAgentParamsBodyRDSExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentParamsBodyRDSExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -11581,6 +11731,7 @@ func (o *ChangeAgentParamsBodyRDSExporter) contextValidateCustomLabels(ctx conte } func (o *ChangeAgentParamsBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -11627,6 +11778,7 @@ ChangeAgentParamsBodyRDSExporterCustomLabels A wrapper for map[string]string. Th swagger:model ChangeAgentParamsBodyRDSExporterCustomLabels */ type ChangeAgentParamsBodyRDSExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -11664,6 +11816,7 @@ ChangeAgentParamsBodyRDSExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentParamsBodyRDSExporterMetricsResolutions */ type ChangeAgentParamsBodyRDSExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -11707,6 +11860,7 @@ ChangeAgentParamsBodyRtaMongodbAgent change agent params body rta mongodb agent swagger:model ChangeAgentParamsBodyRtaMongodbAgent */ type ChangeAgentParamsBodyRtaMongodbAgent struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -11888,6 +12042,7 @@ func (o *ChangeAgentParamsBodyRtaMongodbAgent) ContextValidate(ctx context.Conte } func (o *ChangeAgentParamsBodyRtaMongodbAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -11912,6 +12067,7 @@ func (o *ChangeAgentParamsBodyRtaMongodbAgent) contextValidateCustomLabels(ctx c } func (o *ChangeAgentParamsBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -11958,6 +12114,7 @@ ChangeAgentParamsBodyRtaMongodbAgentCustomLabels A wrapper for map[string]string swagger:model ChangeAgentParamsBodyRtaMongodbAgentCustomLabels */ type ChangeAgentParamsBodyRtaMongodbAgentCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -11995,6 +12152,7 @@ ChangeAgentParamsBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query swagger:model ChangeAgentParamsBodyRtaMongodbAgentRtaOptions */ type ChangeAgentParamsBodyRtaMongodbAgentRtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -12032,6 +12190,7 @@ ChangeAgentParamsBodyValkeyExporter change agent params body valkey exporter swagger:model ChangeAgentParamsBodyValkeyExporter */ type ChangeAgentParamsBodyValkeyExporter struct { + // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -12222,6 +12381,7 @@ func (o *ChangeAgentParamsBodyValkeyExporter) ContextValidate(ctx context.Contex } func (o *ChangeAgentParamsBodyValkeyExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -12246,6 +12406,7 @@ func (o *ChangeAgentParamsBodyValkeyExporter) contextValidateCustomLabels(ctx co } func (o *ChangeAgentParamsBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -12292,6 +12453,7 @@ ChangeAgentParamsBodyValkeyExporterCustomLabels A wrapper for map[string]string. swagger:model ChangeAgentParamsBodyValkeyExporterCustomLabels */ type ChangeAgentParamsBodyValkeyExporterCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } @@ -12329,6 +12491,7 @@ ChangeAgentParamsBodyValkeyExporterMetricsResolutions MetricsResolutions represe swagger:model ChangeAgentParamsBodyValkeyExporterMetricsResolutions */ type ChangeAgentParamsBodyValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` diff --git a/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go b/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go index 97651a5eab8..f62c8c34010 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go +++ b/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go @@ -61,6 +61,7 @@ GetAgentLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetAgentLogsParams struct { + /* AgentID. Unique randomly generated instance identifier. @@ -152,6 +153,7 @@ func (o *GetAgentLogsParams) SetLimit(limit *int64) { // 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 } @@ -172,6 +174,7 @@ func (o *GetAgentLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { + if err := r.SetQueryParam("limit", qLimit); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go b/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go index 4925d51c520..13fac0ab0c1 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go +++ b/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go @@ -104,6 +104,7 @@ func (o *GetAgentLogsOK) GetPayload() *GetAgentLogsOKBody { } func (o *GetAgentLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentLogsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetAgentLogsDefault) GetPayload() *GetAgentLogsDefaultBody { } func (o *GetAgentLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentLogsDefaultBody) // response payload @@ -192,6 +194,7 @@ GetAgentLogsDefaultBody get agent logs default body swagger:model GetAgentLogsDefaultBody */ type GetAgentLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetAgentLogsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -309,6 +315,7 @@ GetAgentLogsDefaultBodyDetailsItems0 get agent logs default body details items0 swagger:model GetAgentLogsDefaultBodyDetailsItems0 */ type GetAgentLogsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetAgentLogsDefaultBodyDetailsItems0 struct { func (o *GetAgentLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetAgentLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetAgentLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetAgentLogsOKBody get agent logs OK body swagger:model GetAgentLogsOKBody */ type GetAgentLogsOKBody struct { + // logs Logs []string `json:"logs"` diff --git a/api/inventory/v1/json/client/agents_service/get_agent_parameters.go b/api/inventory/v1/json/client/agents_service/get_agent_parameters.go index 05cb31a609f..8242239f60a 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/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 { + /* AgentID. Unique randomly generated instance identifier. @@ -132,6 +133,7 @@ func (o *GetAgentParams) SetAgentID(agentID string) { // 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/inventory/v1/json/client/agents_service/get_agent_responses.go b/api/inventory/v1/json/client/agents_service/get_agent_responses.go index f0befcd1b48..6dee04d0f0b 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/get_agent_responses.go @@ -105,6 +105,7 @@ func (o *GetAgentOK) GetPayload() *GetAgentOKBody { } func (o *GetAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetAgentDefault) GetPayload() *GetAgentDefaultBody { } func (o *GetAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetAgentDefaultBody) // response payload @@ -193,6 +195,7 @@ GetAgentDefaultBody get agent default body swagger:model GetAgentDefaultBody */ type GetAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *GetAgentDefaultBody) contextValidateDetails(ctx context.Context, format return err } } + } return nil @@ -310,6 +316,7 @@ GetAgentDefaultBodyDetailsItems0 get agent default body details items0 swagger:model GetAgentDefaultBodyDetailsItems0 */ type GetAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type GetAgentDefaultBodyDetailsItems0 struct { func (o *GetAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *GetAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ GetAgentOKBody get agent OK body swagger:model GetAgentOKBody */ type GetAgentOKBody struct { + // azure database exporter AzureDatabaseExporter *GetAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -1089,6 +1099,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 swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -1113,6 +1124,7 @@ func (o *GetAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Contex } func (o *GetAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -1137,6 +1149,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 swag.IsZero(o.MongodbExporter) { // not required @@ -1161,6 +1174,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 swag.IsZero(o.MysqldExporter) { // not required @@ -1185,6 +1199,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 swag.IsZero(o.NodeExporter) { // not required @@ -1209,6 +1224,7 @@ func (o *GetAgentOKBody) contextValidateNodeExporter(ctx context.Context, format } func (o *GetAgentOKBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { + if o.NomadAgent != nil { if swag.IsZero(o.NomadAgent) { // not required @@ -1233,6 +1249,7 @@ func (o *GetAgentOKBody) contextValidateNomadAgent(ctx context.Context, formats } func (o *GetAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { + if o.PMMAgent != nil { if swag.IsZero(o.PMMAgent) { // not required @@ -1257,6 +1274,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 swag.IsZero(o.PostgresExporter) { // not required @@ -1281,6 +1299,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 swag.IsZero(o.ProxysqlExporter) { // not required @@ -1305,6 +1324,7 @@ func (o *GetAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -1329,6 +1349,7 @@ func (o *GetAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -1353,6 +1374,7 @@ func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -1377,6 +1399,7 @@ func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -1401,6 +1424,7 @@ func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -1425,6 +1449,7 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx conte } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -1449,6 +1474,7 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx cont } func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -1473,6 +1499,7 @@ func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats } func (o *GetAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -1497,6 +1524,7 @@ func (o *GetAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, for } func (o *GetAgentOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1521,6 +1549,7 @@ func (o *GetAgentOKBody) contextValidateValkeyExporter(ctx context.Context, form } func (o *GetAgentOKBody) contextValidateVmagent(ctx context.Context, formats strfmt.Registry) error { + if o.Vmagent != nil { if swag.IsZero(o.Vmagent) { // not required @@ -1567,6 +1596,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"` @@ -1793,6 +1823,7 @@ func (o *GetAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Contex } func (o *GetAgentOKBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -1839,6 +1870,7 @@ GetAgentOKBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions represe swagger:model GetAgentOKBodyAzureDatabaseExporterMetricsResolutions */ type GetAgentOKBodyAzureDatabaseExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -1882,6 +1914,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"` @@ -2050,6 +2083,7 @@ func (o *GetAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, fo } func (o *GetAgentOKBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2096,6 +2130,7 @@ GetAgentOKBodyExternalExporterMetricsResolutions MetricsResolutions represents P swagger:model GetAgentOKBodyExternalExporterMetricsResolutions */ type GetAgentOKBodyExternalExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2139,6 +2174,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"` @@ -2387,6 +2423,7 @@ func (o *GetAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, for } func (o *GetAgentOKBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2433,6 +2470,7 @@ GetAgentOKBodyMongodbExporterMetricsResolutions MetricsResolutions represents Pr swagger:model GetAgentOKBodyMongodbExporterMetricsResolutions */ type GetAgentOKBodyMongodbExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2476,6 +2514,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"` @@ -2734,6 +2773,7 @@ func (o *GetAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, form } func (o *GetAgentOKBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2780,6 +2820,7 @@ GetAgentOKBodyMysqldExporterMetricsResolutions MetricsResolutions represents Pro swagger:model GetAgentOKBodyMysqldExporterMetricsResolutions */ type GetAgentOKBodyMysqldExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2823,6 +2864,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"` @@ -3046,6 +3088,7 @@ func (o *GetAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, format } func (o *GetAgentOKBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3092,6 +3135,7 @@ GetAgentOKBodyNodeExporterMetricsResolutions MetricsResolutions represents Prome swagger:model GetAgentOKBodyNodeExporterMetricsResolutions */ type GetAgentOKBodyNodeExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3135,6 +3179,7 @@ GetAgentOKBodyNomadAgent get agent OK body nomad agent swagger:model GetAgentOKBodyNomadAgent */ type GetAgentOKBodyNomadAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3265,6 +3310,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"` @@ -3314,6 +3360,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"` @@ -3555,6 +3602,7 @@ func (o *GetAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, fo } func (o *GetAgentOKBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3601,6 +3649,7 @@ GetAgentOKBodyPostgresExporterMetricsResolutions MetricsResolutions represents P swagger:model GetAgentOKBodyPostgresExporterMetricsResolutions */ type GetAgentOKBodyPostgresExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3644,6 +3693,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"` @@ -3879,6 +3929,7 @@ func (o *GetAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, fo } func (o *GetAgentOKBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3925,6 +3976,7 @@ GetAgentOKBodyProxysqlExporterMetricsResolutions MetricsResolutions represents P swagger:model GetAgentOKBodyProxysqlExporterMetricsResolutions */ type GetAgentOKBodyProxysqlExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3968,6 +4020,7 @@ GetAgentOKBodyQANMongodbMongologAgent QANMongoDBMongologAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMongodbMongologAgent */ type GetAgentOKBodyQANMongodbMongologAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4177,6 +4230,7 @@ GetAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMongodbProfilerAgent */ type GetAgentOKBodyQANMongodbProfilerAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4386,6 +4440,7 @@ GetAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMysqlPerfschemaAgent */ type GetAgentOKBodyQANMysqlPerfschemaAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4613,6 +4668,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"` @@ -4843,6 +4899,7 @@ GetAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs swagger:model GetAgentOKBodyQANPostgresqlPgstatementsAgent */ type GetAgentOKBodyQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5055,6 +5112,7 @@ GetAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent ru swagger:model GetAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type GetAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5270,6 +5328,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"` @@ -5502,6 +5561,7 @@ func (o *GetAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, formats } func (o *GetAgentOKBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -5548,6 +5608,7 @@ GetAgentOKBodyRDSExporterMetricsResolutions MetricsResolutions represents Promet swagger:model GetAgentOKBodyRDSExporterMetricsResolutions */ type GetAgentOKBodyRDSExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -5591,6 +5652,7 @@ GetAgentOKBodyRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and sends Mo swagger:model GetAgentOKBodyRtaMongodbAgent */ type GetAgentOKBodyRtaMongodbAgent struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -5811,6 +5873,7 @@ func (o *GetAgentOKBodyRtaMongodbAgent) ContextValidate(ctx context.Context, for } func (o *GetAgentOKBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -5857,6 +5920,7 @@ GetAgentOKBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Analyti swagger:model GetAgentOKBodyRtaMongodbAgentRtaOptions */ type GetAgentOKBodyRtaMongodbAgentRtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -5894,6 +5958,7 @@ GetAgentOKBodyValkeyExporter ValkeyExporter runs on Generic or Container Node an swagger:model GetAgentOKBodyValkeyExporter */ type GetAgentOKBodyValkeyExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6065,6 +6130,7 @@ func (o *GetAgentOKBodyValkeyExporter) ContextValidate(ctx context.Context, form } func (o *GetAgentOKBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6111,6 +6177,7 @@ GetAgentOKBodyValkeyExporterMetricsResolutions MetricsResolutions represents Pro swagger:model GetAgentOKBodyValkeyExporterMetricsResolutions */ type GetAgentOKBodyValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6156,6 +6223,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/inventory/v1/json/client/agents_service/list_agents_parameters.go b/api/inventory/v1/json/client/agents_service/list_agents_parameters.go index 371c8f77c34..1836e25a8c4 100644 --- a/api/inventory/v1/json/client/agents_service/list_agents_parameters.go +++ b/api/inventory/v1/json/client/agents_service/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 { + /* AgentType. Return only agents of a particular type. @@ -106,7 +107,9 @@ func (o *ListAgentsParams) WithDefaults() *ListAgentsParams { // // All values with no default are reset to their zero value. func (o *ListAgentsParams) SetDefaults() { - agentTypeDefault := string("AGENT_TYPE_UNSPECIFIED") + var ( + agentTypeDefault = string("AGENT_TYPE_UNSPECIFIED") + ) val := ListAgentsParams{ AgentType: &agentTypeDefault, @@ -197,6 +200,7 @@ func (o *ListAgentsParams) SetServiceID(serviceID *string) { // 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 } @@ -212,6 +216,7 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qAgentType := qrAgentType if qAgentType != "" { + if err := r.SetQueryParam("agent_type", qAgentType); err != nil { return err } @@ -228,6 +233,7 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qNodeID := qrNodeID if qNodeID != "" { + if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -244,6 +250,7 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qPMMAgentID := qrPMMAgentID if qPMMAgentID != "" { + if err := r.SetQueryParam("pmm_agent_id", qPMMAgentID); err != nil { return err } @@ -260,6 +267,7 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qServiceID := qrServiceID if qServiceID != "" { + if err := r.SetQueryParam("service_id", qServiceID); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/list_agents_responses.go b/api/inventory/v1/json/client/agents_service/list_agents_responses.go index 33502ed0d27..db7a7796bd5 100644 --- a/api/inventory/v1/json/client/agents_service/list_agents_responses.go +++ b/api/inventory/v1/json/client/agents_service/list_agents_responses.go @@ -105,6 +105,7 @@ func (o *ListAgentsOK) GetPayload() *ListAgentsOKBody { } func (o *ListAgentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListAgentsDefault) GetPayload() *ListAgentsDefaultBody { } func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -310,6 +316,7 @@ ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListAgentsDefaultBodyDetailsItems0 struct { func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAgentsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { + // pmm agent PMMAgent []*ListAgentsOKBodyPMMAgentItems0 `json:"pmm_agent"` @@ -1222,7 +1232,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 swag.IsZero(o.PMMAgent[i]) { // not required @@ -1242,13 +1254,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 swag.IsZero(o.VMAgent[i]) { // not required @@ -1268,13 +1283,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 swag.IsZero(o.NodeExporter[i]) { // not required @@ -1294,13 +1312,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 swag.IsZero(o.MysqldExporter[i]) { // not required @@ -1320,13 +1341,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 swag.IsZero(o.MongodbExporter[i]) { // not required @@ -1346,13 +1370,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 swag.IsZero(o.PostgresExporter[i]) { // not required @@ -1372,13 +1399,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 swag.IsZero(o.ProxysqlExporter[i]) { // not required @@ -1398,13 +1428,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 swag.IsZero(o.QANMysqlPerfschemaAgent[i]) { // not required @@ -1424,13 +1457,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 swag.IsZero(o.QANMysqlSlowlogAgent[i]) { // not required @@ -1450,13 +1486,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 swag.IsZero(o.QANMongodbProfilerAgent[i]) { // not required @@ -1476,13 +1515,16 @@ func (o *ListAgentsOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Co return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.QANMongodbMongologAgent); i++ { + if o.QANMongodbMongologAgent[i] != nil { if swag.IsZero(o.QANMongodbMongologAgent[i]) { // not required @@ -1502,13 +1544,16 @@ func (o *ListAgentsOKBody) contextValidateQANMongodbMongologAgent(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 swag.IsZero(o.QANPostgresqlPgstatementsAgent[i]) { // not required @@ -1528,13 +1573,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 swag.IsZero(o.QANPostgresqlPgstatmonitorAgent[i]) { // not required @@ -1554,13 +1602,16 @@ func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx co 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 swag.IsZero(o.ExternalExporter[i]) { // not required @@ -1580,13 +1631,16 @@ func (o *ListAgentsOKBody) contextValidateExternalExporter(ctx context.Context, 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 swag.IsZero(o.RDSExporter[i]) { // not required @@ -1606,13 +1660,16 @@ func (o *ListAgentsOKBody) contextValidateRDSExporter(ctx context.Context, forma 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 swag.IsZero(o.AzureDatabaseExporter[i]) { // not required @@ -1632,13 +1689,16 @@ func (o *ListAgentsOKBody) contextValidateAzureDatabaseExporter(ctx context.Cont return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.NomadAgent); i++ { + if o.NomadAgent[i] != nil { if swag.IsZero(o.NomadAgent[i]) { // not required @@ -1658,13 +1718,16 @@ func (o *ListAgentsOKBody) contextValidateNomadAgent(ctx context.Context, format return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ValkeyExporter); i++ { + if o.ValkeyExporter[i] != nil { if swag.IsZero(o.ValkeyExporter[i]) { // not required @@ -1684,13 +1747,16 @@ func (o *ListAgentsOKBody) contextValidateValkeyExporter(ctx context.Context, fo return err } } + } return nil } func (o *ListAgentsOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RtaMongodbAgent); i++ { + if o.RtaMongodbAgent[i] != nil { if swag.IsZero(o.RtaMongodbAgent[i]) { // not required @@ -1710,6 +1776,7 @@ func (o *ListAgentsOKBody) contextValidateRtaMongodbAgent(ctx context.Context, f return err } } + } return nil @@ -1738,6 +1805,7 @@ ListAgentsOKBodyAzureDatabaseExporterItems0 AzureDatabaseExporter runs on Generi swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0 */ type ListAgentsOKBodyAzureDatabaseExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -1964,6 +2032,7 @@ func (o *ListAgentsOKBodyAzureDatabaseExporterItems0) ContextValidate(ctx contex } func (o *ListAgentsOKBodyAzureDatabaseExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2010,6 +2079,7 @@ ListAgentsOKBodyAzureDatabaseExporterItems0MetricsResolutions MetricsResolutions swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0MetricsResolutions */ type ListAgentsOKBodyAzureDatabaseExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2053,6 +2123,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"` @@ -2221,6 +2292,7 @@ func (o *ListAgentsOKBodyExternalExporterItems0) ContextValidate(ctx context.Con } func (o *ListAgentsOKBodyExternalExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2267,6 +2339,7 @@ ListAgentsOKBodyExternalExporterItems0MetricsResolutions MetricsResolutions repr swagger:model ListAgentsOKBodyExternalExporterItems0MetricsResolutions */ type ListAgentsOKBodyExternalExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2310,6 +2383,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"` @@ -2558,6 +2632,7 @@ func (o *ListAgentsOKBodyMongodbExporterItems0) ContextValidate(ctx context.Cont } func (o *ListAgentsOKBodyMongodbExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2604,6 +2679,7 @@ ListAgentsOKBodyMongodbExporterItems0MetricsResolutions MetricsResolutions repre swagger:model ListAgentsOKBodyMongodbExporterItems0MetricsResolutions */ type ListAgentsOKBodyMongodbExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2647,6 +2723,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"` @@ -2905,6 +2982,7 @@ func (o *ListAgentsOKBodyMysqldExporterItems0) ContextValidate(ctx context.Conte } func (o *ListAgentsOKBodyMysqldExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2951,6 +3029,7 @@ ListAgentsOKBodyMysqldExporterItems0MetricsResolutions MetricsResolutions repres swagger:model ListAgentsOKBodyMysqldExporterItems0MetricsResolutions */ type ListAgentsOKBodyMysqldExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2994,6 +3073,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"` @@ -3217,6 +3297,7 @@ func (o *ListAgentsOKBodyNodeExporterItems0) ContextValidate(ctx context.Context } func (o *ListAgentsOKBodyNodeExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3263,6 +3344,7 @@ ListAgentsOKBodyNodeExporterItems0MetricsResolutions MetricsResolutions represen swagger:model ListAgentsOKBodyNodeExporterItems0MetricsResolutions */ type ListAgentsOKBodyNodeExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3306,6 +3388,7 @@ ListAgentsOKBodyNomadAgentItems0 list agents OK body nomad agent items0 swagger:model ListAgentsOKBodyNomadAgentItems0 */ type ListAgentsOKBodyNomadAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3436,6 +3519,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"` @@ -3485,6 +3569,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"` @@ -3726,6 +3811,7 @@ func (o *ListAgentsOKBodyPostgresExporterItems0) ContextValidate(ctx context.Con } func (o *ListAgentsOKBodyPostgresExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3772,6 +3858,7 @@ ListAgentsOKBodyPostgresExporterItems0MetricsResolutions MetricsResolutions repr swagger:model ListAgentsOKBodyPostgresExporterItems0MetricsResolutions */ type ListAgentsOKBodyPostgresExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3815,6 +3902,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"` @@ -4050,6 +4138,7 @@ func (o *ListAgentsOKBodyProxysqlExporterItems0) ContextValidate(ctx context.Con } func (o *ListAgentsOKBodyProxysqlExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4096,6 +4185,7 @@ ListAgentsOKBodyProxysqlExporterItems0MetricsResolutions MetricsResolutions repr swagger:model ListAgentsOKBodyProxysqlExporterItems0MetricsResolutions */ type ListAgentsOKBodyProxysqlExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4139,6 +4229,7 @@ ListAgentsOKBodyQANMongodbMongologAgentItems0 QANMongoDBMongologAgent runs withi swagger:model ListAgentsOKBodyQANMongodbMongologAgentItems0 */ type ListAgentsOKBodyQANMongodbMongologAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4348,6 +4439,7 @@ ListAgentsOKBodyQANMongodbProfilerAgentItems0 QANMongoDBProfilerAgent runs withi swagger:model ListAgentsOKBodyQANMongodbProfilerAgentItems0 */ type ListAgentsOKBodyQANMongodbProfilerAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4557,6 +4649,7 @@ ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 QANMySQLPerfSchemaAgent runs withi swagger:model ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 */ type ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4784,6 +4877,7 @@ ListAgentsOKBodyQANMysqlSlowlogAgentItems0 QANMySQLSlowlogAgent runs within pmm- swagger:model ListAgentsOKBodyQANMysqlSlowlogAgentItems0 */ type ListAgentsOKBodyQANMysqlSlowlogAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5014,6 +5108,7 @@ ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 QANPostgreSQLPgStatementsAg swagger:model ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5226,6 +5321,7 @@ ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 QANPostgreSQLPgStatMonitor swagger:model ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5441,6 +5537,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"` @@ -5673,6 +5770,7 @@ func (o *ListAgentsOKBodyRDSExporterItems0) ContextValidate(ctx context.Context, } func (o *ListAgentsOKBodyRDSExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -5719,6 +5817,7 @@ ListAgentsOKBodyRDSExporterItems0MetricsResolutions MetricsResolutions represent swagger:model ListAgentsOKBodyRDSExporterItems0MetricsResolutions */ type ListAgentsOKBodyRDSExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -5762,6 +5861,7 @@ ListAgentsOKBodyRtaMongodbAgentItems0 RTAMongoDBAgent runs within pmm-agent and swagger:model ListAgentsOKBodyRtaMongodbAgentItems0 */ type ListAgentsOKBodyRtaMongodbAgentItems0 struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -5982,6 +6082,7 @@ func (o *ListAgentsOKBodyRtaMongodbAgentItems0) ContextValidate(ctx context.Cont } func (o *ListAgentsOKBodyRtaMongodbAgentItems0) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -6028,6 +6129,7 @@ ListAgentsOKBodyRtaMongodbAgentItems0RtaOptions RTAOptions holds Real-Time Query swagger:model ListAgentsOKBodyRtaMongodbAgentItems0RtaOptions */ type ListAgentsOKBodyRtaMongodbAgentItems0RtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -6067,6 +6169,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"` @@ -6194,6 +6297,7 @@ ListAgentsOKBodyValkeyExporterItems0 ValkeyExporter runs on Generic or Container swagger:model ListAgentsOKBodyValkeyExporterItems0 */ type ListAgentsOKBodyValkeyExporterItems0 struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6365,6 +6469,7 @@ func (o *ListAgentsOKBodyValkeyExporterItems0) ContextValidate(ctx context.Conte } func (o *ListAgentsOKBodyValkeyExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6411,6 +6516,7 @@ ListAgentsOKBodyValkeyExporterItems0MetricsResolutions MetricsResolutions repres swagger:model ListAgentsOKBodyValkeyExporterItems0MetricsResolutions */ type ListAgentsOKBodyValkeyExporterItems0MetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` diff --git a/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go b/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go index fd762f29720..946dbbe4ca8 100644 --- a/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go @@ -61,6 +61,7 @@ RemoveAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveAgentParams struct { + // AgentID. AgentID string @@ -147,6 +148,7 @@ func (o *RemoveAgentParams) SetForce(force *bool) { // 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 } @@ -167,6 +169,7 @@ func (o *RemoveAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } qForce := swag.FormatBool(qrForce) if qForce != "" { + if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/remove_agent_responses.go b/api/inventory/v1/json/client/agents_service/remove_agent_responses.go index 15ce395fa19..2cf7048bdb4 100644 --- a/api/inventory/v1/json/client/agents_service/remove_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/remove_agent_responses.go @@ -104,6 +104,7 @@ func (o *RemoveAgentOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *RemoveAgentDefault) GetPayload() *RemoveAgentDefaultBody { } func (o *RemoveAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveAgentDefaultBody) // response payload @@ -190,6 +192,7 @@ RemoveAgentDefaultBody remove agent default body swagger:model RemoveAgentDefaultBody */ type RemoveAgentDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *RemoveAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -307,6 +313,7 @@ RemoveAgentDefaultBodyDetailsItems0 remove agent default body details items0 swagger:model RemoveAgentDefaultBodyDetailsItems0 */ type RemoveAgentDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type RemoveAgentDefaultBodyDetailsItems0 struct { func (o *RemoveAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *RemoveAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventory/v1/json/client/nodes_service/add_node_parameters.go b/api/inventory/v1/json/client/nodes_service/add_node_parameters.go index 67702dfa372..a1f49d176f4 100644 --- a/api/inventory/v1/json/client/nodes_service/add_node_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/add_node_parameters.go @@ -60,6 +60,7 @@ AddNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddNodeParams struct { + // Body. Body AddNodeBody @@ -129,6 +130,7 @@ func (o *AddNodeParams) SetBody(body AddNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/nodes_service/add_node_responses.go b/api/inventory/v1/json/client/nodes_service/add_node_responses.go index 40d9d972f0f..106a55c442a 100644 --- a/api/inventory/v1/json/client/nodes_service/add_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/add_node_responses.go @@ -104,6 +104,7 @@ func (o *AddNodeOK) GetPayload() *AddNodeOKBody { } func (o *AddNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddNodeOKBody) // response payload @@ -177,6 +178,7 @@ func (o *AddNodeDefault) GetPayload() *AddNodeDefaultBody { } func (o *AddNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddNodeDefaultBody) // response payload @@ -192,6 +194,7 @@ AddNodeBody add node body swagger:model AddNodeBody */ type AddNodeBody struct { + // container Container *AddNodeParamsBodyContainer `json:"container,omitempty"` @@ -418,6 +421,7 @@ func (o *AddNodeBody) ContextValidate(ctx context.Context, formats strfmt.Regist } func (o *AddNodeBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { + if o.Container != nil { if swag.IsZero(o.Container) { // not required @@ -442,6 +446,7 @@ func (o *AddNodeBody) contextValidateContainer(ctx context.Context, formats strf } func (o *AddNodeBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { + if o.Generic != nil { if swag.IsZero(o.Generic) { // not required @@ -466,6 +471,7 @@ func (o *AddNodeBody) contextValidateGeneric(ctx context.Context, formats strfmt } func (o *AddNodeBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { + if o.Remote != nil { if swag.IsZero(o.Remote) { // not required @@ -490,6 +496,7 @@ func (o *AddNodeBody) contextValidateRemote(ctx context.Context, formats strfmt. } func (o *AddNodeBody) contextValidateRemoteAzure(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteAzure != nil { if swag.IsZero(o.RemoteAzure) { // not required @@ -514,6 +521,7 @@ func (o *AddNodeBody) contextValidateRemoteAzure(ctx context.Context, formats st } func (o *AddNodeBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteElasticache != nil { if swag.IsZero(o.RemoteElasticache) { // not required @@ -538,6 +546,7 @@ func (o *AddNodeBody) contextValidateRemoteElasticache(ctx context.Context, form } func (o *AddNodeBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteRDS != nil { if swag.IsZero(o.RemoteRDS) { // not required @@ -584,6 +593,7 @@ AddNodeDefaultBody add node default body swagger:model AddNodeDefaultBody */ type AddNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -653,7 +663,9 @@ func (o *AddNodeDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *AddNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -673,6 +685,7 @@ func (o *AddNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -701,6 +714,7 @@ AddNodeDefaultBodyDetailsItems0 add node default body details items0 swagger:model AddNodeDefaultBodyDetailsItems0 */ type AddNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -712,6 +726,7 @@ type AddNodeDefaultBodyDetailsItems0 struct { func (o *AddNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -749,6 +764,7 @@ func (o *AddNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -812,6 +828,7 @@ AddNodeOKBody add node OK body swagger:model AddNodeOKBody */ type AddNodeOKBody struct { + // container Container *AddNodeOKBodyContainer `json:"container,omitempty"` @@ -1038,6 +1055,7 @@ func (o *AddNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *AddNodeOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { + if o.Container != nil { if swag.IsZero(o.Container) { // not required @@ -1062,6 +1080,7 @@ func (o *AddNodeOKBody) contextValidateContainer(ctx context.Context, formats st } func (o *AddNodeOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { + if o.Generic != nil { if swag.IsZero(o.Generic) { // not required @@ -1086,6 +1105,7 @@ func (o *AddNodeOKBody) contextValidateGeneric(ctx context.Context, formats strf } func (o *AddNodeOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { + if o.Remote != nil { if swag.IsZero(o.Remote) { // not required @@ -1110,6 +1130,7 @@ func (o *AddNodeOKBody) contextValidateRemote(ctx context.Context, formats strfm } func (o *AddNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteAzureDatabase != nil { if swag.IsZero(o.RemoteAzureDatabase) { // not required @@ -1134,6 +1155,7 @@ func (o *AddNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, } func (o *AddNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteElasticache != nil { if swag.IsZero(o.RemoteElasticache) { // not required @@ -1158,6 +1180,7 @@ func (o *AddNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, fo } func (o *AddNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteRDS != nil { if swag.IsZero(o.RemoteRDS) { // not required @@ -1204,6 +1227,7 @@ AddNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model AddNodeOKBodyContainer */ type AddNodeOKBodyContainer struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1271,6 +1295,7 @@ AddNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machi swagger:model AddNodeOKBodyGeneric */ type AddNodeOKBodyGeneric struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1335,6 +1360,7 @@ AddNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where swagger:model AddNodeOKBodyRemote */ type AddNodeOKBodyRemote struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1390,6 +1416,7 @@ AddNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote Azure swagger:model AddNodeOKBodyRemoteAzureDatabase */ type AddNodeOKBodyRemoteAzureDatabase struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1445,6 +1472,7 @@ AddNodeOKBodyRemoteElasticache RemoteElastiCacheNode represents remote ElastiCac swagger:model AddNodeOKBodyRemoteElasticache */ type AddNodeOKBodyRemoteElasticache struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1503,6 +1531,7 @@ AddNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't ru swagger:model AddNodeOKBodyRemoteRDS */ type AddNodeOKBodyRemoteRDS struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1561,6 +1590,7 @@ AddNodeParamsBodyContainer add node params body container swagger:model AddNodeParamsBodyContainer */ type AddNodeParamsBodyContainer struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1622,6 +1652,7 @@ AddNodeParamsBodyGeneric add node params body generic swagger:model AddNodeParamsBodyGeneric */ type AddNodeParamsBodyGeneric struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1680,6 +1711,7 @@ AddNodeParamsBodyRemote add node params body remote swagger:model AddNodeParamsBodyRemote */ type AddNodeParamsBodyRemote struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1732,6 +1764,7 @@ AddNodeParamsBodyRemoteAzure add node params body remote azure swagger:model AddNodeParamsBodyRemoteAzure */ type AddNodeParamsBodyRemoteAzure struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1784,6 +1817,7 @@ AddNodeParamsBodyRemoteElasticache add node params body remote elasticache swagger:model AddNodeParamsBodyRemoteElasticache */ type AddNodeParamsBodyRemoteElasticache struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1839,6 +1873,7 @@ AddNodeParamsBodyRemoteRDS add node params body remote RDS swagger:model AddNodeParamsBodyRemoteRDS */ type AddNodeParamsBodyRemoteRDS struct { + // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` diff --git a/api/inventory/v1/json/client/nodes_service/get_node_parameters.go b/api/inventory/v1/json/client/nodes_service/get_node_parameters.go index 3498346e1f1..25b4a671bc0 100644 --- a/api/inventory/v1/json/client/nodes_service/get_node_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/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 { + /* NodeID. Unique randomly generated instance identifier. @@ -132,6 +133,7 @@ func (o *GetNodeParams) SetNodeID(nodeID string) { // 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/inventory/v1/json/client/nodes_service/get_node_responses.go b/api/inventory/v1/json/client/nodes_service/get_node_responses.go index 7f5342b5ad8..4246e1762d4 100644 --- a/api/inventory/v1/json/client/nodes_service/get_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/get_node_responses.go @@ -104,6 +104,7 @@ func (o *GetNodeOK) GetPayload() *GetNodeOKBody { } func (o *GetNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetNodeOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetNodeDefault) GetPayload() *GetNodeDefaultBody { } func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetNodeDefaultBody) // response payload @@ -192,6 +194,7 @@ GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -309,6 +315,7 @@ GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetNodeDefaultBodyDetailsItems0 struct { func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { + // container Container *GetNodeOKBodyContainer `json:"container,omitempty"` @@ -646,6 +656,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 swag.IsZero(o.Container) { // not required @@ -670,6 +681,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 swag.IsZero(o.Generic) { // not required @@ -694,6 +706,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 swag.IsZero(o.Remote) { // not required @@ -718,6 +731,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 swag.IsZero(o.RemoteAzureDatabase) { // not required @@ -742,6 +756,7 @@ func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, } func (o *GetNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteElasticache != nil { if swag.IsZero(o.RemoteElasticache) { // not required @@ -766,6 +781,7 @@ func (o *GetNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, fo } func (o *GetNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RemoteRDS != nil { if swag.IsZero(o.RemoteRDS) { // not required @@ -812,6 +828,7 @@ GetNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model GetNodeOKBodyContainer */ type GetNodeOKBodyContainer struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -879,6 +896,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"` @@ -943,6 +961,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"` @@ -998,6 +1017,7 @@ GetNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote Azure swagger:model GetNodeOKBodyRemoteAzureDatabase */ type GetNodeOKBodyRemoteAzureDatabase struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1053,6 +1073,7 @@ GetNodeOKBodyRemoteElasticache RemoteElastiCacheNode represents remote ElastiCac swagger:model GetNodeOKBodyRemoteElasticache */ type GetNodeOKBodyRemoteElasticache struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1111,6 +1132,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/inventory/v1/json/client/nodes_service/list_nodes_parameters.go b/api/inventory/v1/json/client/nodes_service/list_nodes_parameters.go index 63128821ce8..828de4c8f11 100644 --- a/api/inventory/v1/json/client/nodes_service/list_nodes_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/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 { + /* NodeType. Return only Nodes with matching Node type. @@ -85,7 +86,9 @@ func (o *ListNodesParams) WithDefaults() *ListNodesParams { // // All values with no default are reset to their zero value. func (o *ListNodesParams) SetDefaults() { - nodeTypeDefault := string("NODE_TYPE_UNSPECIFIED") + var ( + nodeTypeDefault = string("NODE_TYPE_UNSPECIFIED") + ) val := ListNodesParams{ NodeType: &nodeTypeDefault, @@ -143,6 +146,7 @@ func (o *ListNodesParams) SetNodeType(nodeType *string) { // 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 } @@ -158,6 +162,7 @@ func (o *ListNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg } qNodeType := qrNodeType if qNodeType != "" { + if err := r.SetQueryParam("node_type", qNodeType); err != nil { return err } diff --git a/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go b/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go index 61197977382..f80d13ebb35 100644 --- a/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go +++ b/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go @@ -104,6 +104,7 @@ func (o *ListNodesOK) GetPayload() *ListNodesOKBody { } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesDefaultBody) // response payload @@ -192,6 +194,7 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -309,6 +315,7 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListNodesDefaultBodyDetailsItems0 struct { func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListNodesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { + // generic Generic []*ListNodesOKBodyGenericItems0 `json:"generic"` @@ -688,7 +698,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 swag.IsZero(o.Generic[i]) { // not required @@ -708,13 +720,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 swag.IsZero(o.Container[i]) { // not required @@ -734,13 +749,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 swag.IsZero(o.Remote[i]) { // not required @@ -760,13 +778,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 swag.IsZero(o.RemoteRDS[i]) { // not required @@ -786,13 +807,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 swag.IsZero(o.RemoteAzureDatabase[i]) { // not required @@ -812,13 +836,16 @@ func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context return err } } + } return nil } func (o *ListNodesOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.RemoteElasticache); i++ { + if o.RemoteElasticache[i] != nil { if swag.IsZero(o.RemoteElasticache[i]) { // not required @@ -838,6 +865,7 @@ func (o *ListNodesOKBody) contextValidateRemoteElasticache(ctx context.Context, return err } } + } return nil @@ -866,6 +894,7 @@ ListNodesOKBodyContainerItems0 ContainerNode represents a Docker container. swagger:model ListNodesOKBodyContainerItems0 */ type ListNodesOKBodyContainerItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -933,6 +962,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"` @@ -997,6 +1027,7 @@ ListNodesOKBodyRemoteAzureDatabaseItems0 RemoteAzureDatabaseNode represents remo swagger:model ListNodesOKBodyRemoteAzureDatabaseItems0 */ type ListNodesOKBodyRemoteAzureDatabaseItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1052,6 +1083,7 @@ ListNodesOKBodyRemoteElasticacheItems0 RemoteElastiCacheNode represents remote E swagger:model ListNodesOKBodyRemoteElasticacheItems0 */ type ListNodesOKBodyRemoteElasticacheItems0 struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1110,6 +1142,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"` @@ -1165,6 +1198,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/inventory/v1/json/client/nodes_service/remove_node_parameters.go b/api/inventory/v1/json/client/nodes_service/remove_node_parameters.go index 62194bd1a8e..c2bfa764dad 100644 --- a/api/inventory/v1/json/client/nodes_service/remove_node_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/remove_node_parameters.go @@ -61,6 +61,7 @@ RemoveNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveNodeParams struct { + /* Force. Remove node with all dependencies. @@ -150,6 +151,7 @@ func (o *RemoveNodeParams) SetNodeID(nodeID string) { // 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 } @@ -165,6 +167,7 @@ func (o *RemoveNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qForce := swag.FormatBool(qrForce) if qForce != "" { + if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/inventory/v1/json/client/nodes_service/remove_node_responses.go b/api/inventory/v1/json/client/nodes_service/remove_node_responses.go index 4fc5f3a61c4..e16f0f64905 100644 --- a/api/inventory/v1/json/client/nodes_service/remove_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/remove_node_responses.go @@ -104,6 +104,7 @@ func (o *RemoveNodeOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *RemoveNodeDefault) GetPayload() *RemoveNodeDefaultBody { } func (o *RemoveNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveNodeDefaultBody) // response payload @@ -190,6 +192,7 @@ RemoveNodeDefaultBody remove node default body swagger:model RemoveNodeDefaultBody */ type RemoveNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *RemoveNodeDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -307,6 +313,7 @@ RemoveNodeDefaultBodyDetailsItems0 remove node default body details items0 swagger:model RemoveNodeDefaultBodyDetailsItems0 */ type RemoveNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type RemoveNodeDefaultBodyDetailsItems0 struct { func (o *RemoveNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *RemoveNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventory/v1/json/client/services_service/add_service_parameters.go b/api/inventory/v1/json/client/services_service/add_service_parameters.go index ed2a7830ee1..db289d481c3 100644 --- a/api/inventory/v1/json/client/services_service/add_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/add_service_parameters.go @@ -60,6 +60,7 @@ AddServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddServiceParams struct { + // Body. Body AddServiceBody @@ -129,6 +130,7 @@ func (o *AddServiceParams) SetBody(body AddServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/add_service_responses.go b/api/inventory/v1/json/client/services_service/add_service_responses.go index 04f7212eda1..8dbbb3552eb 100644 --- a/api/inventory/v1/json/client/services_service/add_service_responses.go +++ b/api/inventory/v1/json/client/services_service/add_service_responses.go @@ -104,6 +104,7 @@ func (o *AddServiceOK) GetPayload() *AddServiceOKBody { } func (o *AddServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddServiceOKBody) // response payload @@ -177,6 +178,7 @@ func (o *AddServiceDefault) GetPayload() *AddServiceDefaultBody { } func (o *AddServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddServiceDefaultBody) // response payload @@ -192,6 +194,7 @@ AddServiceBody add service body swagger:model AddServiceBody */ type AddServiceBody struct { + // external External *AddServiceParamsBodyExternal `json:"external,omitempty"` @@ -452,6 +455,7 @@ func (o *AddServiceBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if swag.IsZero(o.External) { // not required @@ -476,6 +480,7 @@ func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -500,6 +505,7 @@ func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -524,6 +530,7 @@ func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -548,6 +555,7 @@ func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfm } func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -572,6 +580,7 @@ func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats } func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -596,6 +605,7 @@ func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -642,6 +652,7 @@ AddServiceDefaultBody add service default body swagger:model AddServiceDefaultBody */ type AddServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -711,7 +722,9 @@ func (o *AddServiceDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -731,6 +744,7 @@ func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -759,6 +773,7 @@ AddServiceDefaultBodyDetailsItems0 add service default body details items0 swagger:model AddServiceDefaultBodyDetailsItems0 */ type AddServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -770,6 +785,7 @@ type AddServiceDefaultBodyDetailsItems0 struct { func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -807,6 +823,7 @@ func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -870,6 +887,7 @@ AddServiceOKBody add service OK body swagger:model AddServiceOKBody */ type AddServiceOKBody struct { + // external External *AddServiceOKBodyExternal `json:"external,omitempty"` @@ -1130,6 +1148,7 @@ func (o *AddServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if swag.IsZero(o.External) { // not required @@ -1154,6 +1173,7 @@ func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -1178,6 +1198,7 @@ func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -1202,6 +1223,7 @@ func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -1226,6 +1248,7 @@ func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats str } func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -1250,6 +1273,7 @@ func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, format } func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -1274,6 +1298,7 @@ func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -1320,6 +1345,7 @@ AddServiceOKBodyExternal ExternalService represents a generic External service i swagger:model AddServiceOKBodyExternal */ type AddServiceOKBodyExternal struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1384,6 +1410,7 @@ AddServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service inst swagger:model AddServiceOKBodyHaproxy */ type AddServiceOKBodyHaproxy struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1439,6 +1466,7 @@ AddServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model AddServiceOKBodyMongodb */ type AddServiceOKBodyMongodb struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1509,6 +1537,7 @@ AddServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddServiceOKBodyMysql */ type AddServiceOKBodyMysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1582,6 +1611,7 @@ AddServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL ins swagger:model AddServiceOKBodyPostgresql */ type AddServiceOKBodyPostgresql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1658,6 +1688,7 @@ AddServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model AddServiceOKBodyProxysql */ type AddServiceOKBodyProxysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1728,6 +1759,7 @@ AddServiceOKBodyValkey ValkeyService represents a generic Valkey instance. swagger:model AddServiceOKBodyValkey */ type AddServiceOKBodyValkey struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1798,6 +1830,7 @@ AddServiceParamsBodyExternal add service params body external swagger:model AddServiceParamsBodyExternal */ type AddServiceParamsBodyExternal struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -1853,6 +1886,7 @@ AddServiceParamsBodyHaproxy add service params body haproxy swagger:model AddServiceParamsBodyHaproxy */ type AddServiceParamsBodyHaproxy struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -1905,6 +1939,7 @@ AddServiceParamsBodyMongodb add service params body mongodb swagger:model AddServiceParamsBodyMongodb */ type AddServiceParamsBodyMongodb struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -1969,6 +2004,7 @@ AddServiceParamsBodyMysql add service params body mysql swagger:model AddServiceParamsBodyMysql */ type AddServiceParamsBodyMysql struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2036,6 +2072,7 @@ AddServiceParamsBodyPostgresql add service params body postgresql swagger:model AddServiceParamsBodyPostgresql */ type AddServiceParamsBodyPostgresql struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2103,6 +2140,7 @@ AddServiceParamsBodyProxysql add service params body proxysql swagger:model AddServiceParamsBodyProxysql */ type AddServiceParamsBodyProxysql struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2167,6 +2205,7 @@ AddServiceParamsBodyValkey add service params body valkey swagger:model AddServiceParamsBodyValkey */ type AddServiceParamsBodyValkey struct { + // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` diff --git a/api/inventory/v1/json/client/services_service/change_service_parameters.go b/api/inventory/v1/json/client/services_service/change_service_parameters.go index d718cb7f5b9..d2ffc87b968 100644 --- a/api/inventory/v1/json/client/services_service/change_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/change_service_parameters.go @@ -60,6 +60,7 @@ ChangeServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeServiceParams struct { + // Body. Body ChangeServiceBody @@ -143,6 +144,7 @@ func (o *ChangeServiceParams) SetServiceID(serviceID string) { // WriteToRequest writes these params to a swagger request func (o *ChangeServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/change_service_responses.go b/api/inventory/v1/json/client/services_service/change_service_responses.go index 3b515455437..2e693a4093c 100644 --- a/api/inventory/v1/json/client/services_service/change_service_responses.go +++ b/api/inventory/v1/json/client/services_service/change_service_responses.go @@ -104,6 +104,7 @@ func (o *ChangeServiceOK) GetPayload() *ChangeServiceOKBody { } func (o *ChangeServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeServiceOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ChangeServiceDefault) GetPayload() *ChangeServiceDefaultBody { } func (o *ChangeServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeServiceDefaultBody) // response payload @@ -192,6 +194,7 @@ ChangeServiceBody change service body swagger:model ChangeServiceBody */ type ChangeServiceBody struct { + // environment Environment *string `json:"environment,omitempty"` @@ -260,6 +263,7 @@ func (o *ChangeServiceBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ChangeServiceBody) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { + if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -306,6 +310,7 @@ ChangeServiceDefaultBody change service default body swagger:model ChangeServiceDefaultBody */ type ChangeServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -375,7 +380,9 @@ func (o *ChangeServiceDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -395,6 +402,7 @@ func (o *ChangeServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -423,6 +431,7 @@ ChangeServiceDefaultBodyDetailsItems0 change service default body details items0 swagger:model ChangeServiceDefaultBodyDetailsItems0 */ type ChangeServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -434,6 +443,7 @@ type ChangeServiceDefaultBodyDetailsItems0 struct { func (o *ChangeServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -471,6 +481,7 @@ func (o *ChangeServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -534,6 +545,7 @@ ChangeServiceOKBody change service OK body swagger:model ChangeServiceOKBody */ type ChangeServiceOKBody struct { + // external External *ChangeServiceOKBodyExternal `json:"external,omitempty"` @@ -794,6 +806,7 @@ func (o *ChangeServiceOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ChangeServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if swag.IsZero(o.External) { // not required @@ -818,6 +831,7 @@ func (o *ChangeServiceOKBody) contextValidateExternal(ctx context.Context, forma } func (o *ChangeServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -842,6 +856,7 @@ func (o *ChangeServiceOKBody) contextValidateHaproxy(ctx context.Context, format } func (o *ChangeServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -866,6 +881,7 @@ func (o *ChangeServiceOKBody) contextValidateMongodb(ctx context.Context, format } func (o *ChangeServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -890,6 +906,7 @@ func (o *ChangeServiceOKBody) contextValidateMysql(ctx context.Context, formats } func (o *ChangeServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -914,6 +931,7 @@ func (o *ChangeServiceOKBody) contextValidatePostgresql(ctx context.Context, for } func (o *ChangeServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -938,6 +956,7 @@ func (o *ChangeServiceOKBody) contextValidateProxysql(ctx context.Context, forma } func (o *ChangeServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -984,6 +1003,7 @@ ChangeServiceOKBodyExternal ExternalService represents a generic External servic swagger:model ChangeServiceOKBodyExternal */ type ChangeServiceOKBodyExternal struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1048,6 +1068,7 @@ ChangeServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service i swagger:model ChangeServiceOKBodyHaproxy */ type ChangeServiceOKBodyHaproxy struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1103,6 +1124,7 @@ ChangeServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model ChangeServiceOKBodyMongodb */ type ChangeServiceOKBodyMongodb struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1173,6 +1195,7 @@ ChangeServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model ChangeServiceOKBodyMysql */ type ChangeServiceOKBodyMysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1246,6 +1269,7 @@ ChangeServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL swagger:model ChangeServiceOKBodyPostgresql */ type ChangeServiceOKBodyPostgresql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1322,6 +1346,7 @@ ChangeServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instan swagger:model ChangeServiceOKBodyProxysql */ type ChangeServiceOKBodyProxysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1392,6 +1417,7 @@ ChangeServiceOKBodyValkey ValkeyService represents a generic Valkey instance. swagger:model ChangeServiceOKBodyValkey */ type ChangeServiceOKBodyValkey struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1462,6 +1488,7 @@ ChangeServiceParamsBodyCustomLabels A wrapper for map[string]string. This type a swagger:model ChangeServiceParamsBodyCustomLabels */ type ChangeServiceParamsBodyCustomLabels struct { + // values Values map[string]string `json:"values,omitempty"` } diff --git a/api/inventory/v1/json/client/services_service/get_service_parameters.go b/api/inventory/v1/json/client/services_service/get_service_parameters.go index 8569bce763c..12989ecf6ae 100644 --- a/api/inventory/v1/json/client/services_service/get_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/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 { + /* ServiceID. Unique randomly generated instance identifier. @@ -132,6 +133,7 @@ func (o *GetServiceParams) SetServiceID(serviceID string) { // 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/inventory/v1/json/client/services_service/get_service_responses.go b/api/inventory/v1/json/client/services_service/get_service_responses.go index 798b441b811..0c2a396fa28 100644 --- a/api/inventory/v1/json/client/services_service/get_service_responses.go +++ b/api/inventory/v1/json/client/services_service/get_service_responses.go @@ -104,6 +104,7 @@ func (o *GetServiceOK) GetPayload() *GetServiceOKBody { } func (o *GetServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetServiceOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetServiceDefault) GetPayload() *GetServiceDefaultBody { } func (o *GetServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetServiceDefaultBody) // response payload @@ -192,6 +194,7 @@ GetServiceDefaultBody get service default body swagger:model GetServiceDefaultBody */ type GetServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -309,6 +315,7 @@ GetServiceDefaultBodyDetailsItems0 get service default body details items0 swagger:model GetServiceDefaultBodyDetailsItems0 */ type GetServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetServiceDefaultBodyDetailsItems0 struct { func (o *GetServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetServiceOKBody get service OK body swagger:model GetServiceOKBody */ type GetServiceOKBody struct { + // external External *GetServiceOKBodyExternal `json:"external,omitempty"` @@ -680,6 +690,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 swag.IsZero(o.External) { // not required @@ -704,6 +715,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 swag.IsZero(o.Haproxy) { // not required @@ -728,6 +740,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 swag.IsZero(o.Mongodb) { // not required @@ -752,6 +765,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 swag.IsZero(o.Mysql) { // not required @@ -776,6 +790,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 swag.IsZero(o.Postgresql) { // not required @@ -800,6 +815,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 swag.IsZero(o.Proxysql) { // not required @@ -824,6 +840,7 @@ func (o *GetServiceOKBody) contextValidateProxysql(ctx context.Context, formats } func (o *GetServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -870,6 +887,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"` @@ -934,6 +952,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"` @@ -989,6 +1008,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"` @@ -1059,6 +1079,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"` @@ -1132,6 +1153,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"` @@ -1208,6 +1230,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"` @@ -1278,6 +1301,7 @@ GetServiceOKBodyValkey ValkeyService represents a generic Valkey instance. swagger:model GetServiceOKBodyValkey */ type GetServiceOKBodyValkey struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go b/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go index 9415db910a0..e51b41675fb 100644 --- a/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go +++ b/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go @@ -60,6 +60,7 @@ ListActiveServiceTypesParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ListActiveServiceTypesParams struct { + // Body. Body any @@ -129,6 +130,7 @@ func (o *ListActiveServiceTypesParams) SetBody(body any) { // WriteToRequest writes these params to a swagger request func (o *ListActiveServiceTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go b/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go index d973352a1e6..55e66e2850e 100644 --- a/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go +++ b/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go @@ -105,6 +105,7 @@ func (o *ListActiveServiceTypesOK) GetPayload() *ListActiveServiceTypesOKBody { } func (o *ListActiveServiceTypesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListActiveServiceTypesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListActiveServiceTypesDefault) GetPayload() *ListActiveServiceTypesDefa } func (o *ListActiveServiceTypesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListActiveServiceTypesDefaultBody) // response payload @@ -193,6 +195,7 @@ ListActiveServiceTypesDefaultBody list active service types default body swagger:model ListActiveServiceTypesDefaultBody */ type ListActiveServiceTypesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListActiveServiceTypesDefaultBody) ContextValidate(ctx context.Context, } func (o *ListActiveServiceTypesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListActiveServiceTypesDefaultBody) contextValidateDetails(ctx context.C return err } } + } return nil @@ -310,6 +316,7 @@ ListActiveServiceTypesDefaultBodyDetailsItems0 list active service types default swagger:model ListActiveServiceTypesDefaultBodyDetailsItems0 */ type ListActiveServiceTypesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListActiveServiceTypesDefaultBodyDetailsItems0 struct { func (o *ListActiveServiceTypesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListActiveServiceTypesDefaultBodyDetailsItems0) UnmarshalJSON(data []by // MarshalJSON marshals this object with additional properties into a JSON object func (o ListActiveServiceTypesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListActiveServiceTypesOKBody list active service types OK body swagger:model ListActiveServiceTypesOKBody */ type ListActiveServiceTypesOKBody struct { + // service types ServiceTypes []*string `json:"service_types"` } diff --git a/api/inventory/v1/json/client/services_service/list_services_parameters.go b/api/inventory/v1/json/client/services_service/list_services_parameters.go index 2173e7e1824..9c038187829 100644 --- a/api/inventory/v1/json/client/services_service/list_services_parameters.go +++ b/api/inventory/v1/json/client/services_service/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 { + /* ExternalGroup. Return only services in this external group. @@ -97,7 +98,9 @@ func (o *ListServicesParams) WithDefaults() *ListServicesParams { // // All values with no default are reset to their zero value. func (o *ListServicesParams) SetDefaults() { - serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") + var ( + serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") + ) val := ListServicesParams{ ServiceType: &serviceTypeDefault, @@ -177,6 +180,7 @@ func (o *ListServicesParams) SetServiceType(serviceType *string) { // 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 } @@ -192,6 +196,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qExternalGroup := qrExternalGroup if qExternalGroup != "" { + if err := r.SetQueryParam("external_group", qExternalGroup); err != nil { return err } @@ -208,6 +213,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qNodeID := qrNodeID if qNodeID != "" { + if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -224,6 +230,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qServiceType := qrServiceType if qServiceType != "" { + if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/list_services_responses.go b/api/inventory/v1/json/client/services_service/list_services_responses.go index 68f7aa12d99..3207db63e40 100644 --- a/api/inventory/v1/json/client/services_service/list_services_responses.go +++ b/api/inventory/v1/json/client/services_service/list_services_responses.go @@ -104,6 +104,7 @@ func (o *ListServicesOK) GetPayload() *ListServicesOKBody { } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesDefaultBody) // response payload @@ -192,6 +194,7 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -309,6 +315,7 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListServicesDefaultBodyDetailsItems0 struct { func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { + // mysql Mysql []*ListServicesOKBodyMysqlItems0 `json:"mysql"` @@ -729,7 +739,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 swag.IsZero(o.Mysql[i]) { // not required @@ -749,13 +761,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 swag.IsZero(o.Mongodb[i]) { // not required @@ -775,13 +790,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 swag.IsZero(o.Postgresql[i]) { // not required @@ -801,13 +819,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 swag.IsZero(o.Proxysql[i]) { // not required @@ -827,13 +848,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 swag.IsZero(o.Haproxy[i]) { // not required @@ -853,13 +877,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 swag.IsZero(o.External[i]) { // not required @@ -879,13 +906,16 @@ func (o *ListServicesOKBody) contextValidateExternal(ctx context.Context, format return err } } + } return nil } func (o *ListServicesOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Valkey); i++ { + if o.Valkey[i] != nil { if swag.IsZero(o.Valkey[i]) { // not required @@ -905,6 +935,7 @@ func (o *ListServicesOKBody) contextValidateValkey(ctx context.Context, formats return err } } + } return nil @@ -933,6 +964,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"` @@ -997,6 +1029,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"` @@ -1052,6 +1085,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"` @@ -1122,6 +1156,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"` @@ -1195,6 +1230,7 @@ ListServicesOKBodyPostgresqlItems0 PostgreSQLService represents a generic Postgr swagger:model ListServicesOKBodyPostgresqlItems0 */ type ListServicesOKBodyPostgresqlItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1271,6 +1307,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"` @@ -1341,6 +1378,7 @@ ListServicesOKBodyValkeyItems0 ValkeyService represents a generic Valkey instanc swagger:model ListServicesOKBodyValkeyItems0 */ type ListServicesOKBodyValkeyItems0 struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventory/v1/json/client/services_service/remove_service_parameters.go b/api/inventory/v1/json/client/services_service/remove_service_parameters.go index 876f2945e99..09c33e6bcd7 100644 --- a/api/inventory/v1/json/client/services_service/remove_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/remove_service_parameters.go @@ -61,6 +61,7 @@ RemoveServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveServiceParams struct { + /* Force. Remove service with all dependencies. @@ -150,6 +151,7 @@ func (o *RemoveServiceParams) SetServiceID(serviceID string) { // 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 } @@ -165,6 +167,7 @@ func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qForce := swag.FormatBool(qrForce) if qForce != "" { + if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/remove_service_responses.go b/api/inventory/v1/json/client/services_service/remove_service_responses.go index 399b18b8cf9..404174da350 100644 --- a/api/inventory/v1/json/client/services_service/remove_service_responses.go +++ b/api/inventory/v1/json/client/services_service/remove_service_responses.go @@ -104,6 +104,7 @@ func (o *RemoveServiceOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -190,6 +192,7 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -307,6 +313,7 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type RemoveServiceDefaultBodyDetailsItems0 struct { func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventory/v1/log_level.pb.go b/api/inventory/v1/log_level.pb.go index ff4d79ca3f2..16defbb9016 100644 --- a/api/inventory/v1/log_level.pb.go +++ b/api/inventory/v1/log_level.pb.go @@ -7,12 +7,11 @@ package inventoryv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -108,13 +107,10 @@ func file_inventory_v1_log_level_proto_rawDescGZIP() []byte { return file_inventory_v1_log_level_proto_rawDescData } -var ( - file_inventory_v1_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_log_level_proto_goTypes = []any{ - LogLevel(0), // 0: inventory.v1.LogLevel - } -) - +var file_inventory_v1_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventory_v1_log_level_proto_goTypes = []any{ + (LogLevel)(0), // 0: inventory.v1.LogLevel +} var file_inventory_v1_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/inventory/v1/nodes.pb.go b/api/inventory/v1/nodes.pb.go index 677e5bbd038..1d6c05d14fe 100644 --- a/api/inventory/v1/nodes.pb.go +++ b/api/inventory/v1/nodes.pb.go @@ -7,15 +7,14 @@ package inventoryv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" + unsafe "unsafe" ) const ( @@ -2307,46 +2306,43 @@ func file_inventory_v1_nodes_proto_rawDescGZIP() []byte { return file_inventory_v1_nodes_proto_rawDescData } -var ( - file_inventory_v1_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 32) - file_inventory_v1_nodes_proto_goTypes = []any{ - (NodeType)(0), // 0: inventory.v1.NodeType - (*GenericNode)(nil), // 1: inventory.v1.GenericNode - (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode - (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode - (*RemoteRDSNode)(nil), // 4: inventory.v1.RemoteRDSNode - (*RemoteAzureDatabaseNode)(nil), // 5: inventory.v1.RemoteAzureDatabaseNode - (*RemoteElastiCacheNode)(nil), // 6: inventory.v1.RemoteElastiCacheNode - (*ListNodesRequest)(nil), // 7: inventory.v1.ListNodesRequest - (*ListNodesResponse)(nil), // 8: inventory.v1.ListNodesResponse - (*GetNodeRequest)(nil), // 9: inventory.v1.GetNodeRequest - (*GetNodeResponse)(nil), // 10: inventory.v1.GetNodeResponse - (*AddNodeRequest)(nil), // 11: inventory.v1.AddNodeRequest - (*AddNodeResponse)(nil), // 12: inventory.v1.AddNodeResponse - (*AddGenericNodeParams)(nil), // 13: inventory.v1.AddGenericNodeParams - (*AddContainerNodeParams)(nil), // 14: inventory.v1.AddContainerNodeParams - (*AddRemoteNodeParams)(nil), // 15: inventory.v1.AddRemoteNodeParams - (*AddRemoteRDSNodeParams)(nil), // 16: inventory.v1.AddRemoteRDSNodeParams - (*AddRemoteAzureNodeParams)(nil), // 17: inventory.v1.AddRemoteAzureNodeParams - (*AddRemoteElastiCacheNodeParams)(nil), // 18: inventory.v1.AddRemoteElastiCacheNodeParams - (*RemoveNodeRequest)(nil), // 19: inventory.v1.RemoveNodeRequest - (*RemoveNodeResponse)(nil), // 20: inventory.v1.RemoveNodeResponse - nil, // 21: inventory.v1.GenericNode.CustomLabelsEntry - nil, // 22: inventory.v1.ContainerNode.CustomLabelsEntry - nil, // 23: inventory.v1.RemoteNode.CustomLabelsEntry - nil, // 24: inventory.v1.RemoteRDSNode.CustomLabelsEntry - nil, // 25: inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry - nil, // 26: inventory.v1.RemoteElastiCacheNode.CustomLabelsEntry - nil, // 27: inventory.v1.AddGenericNodeParams.CustomLabelsEntry - nil, // 28: inventory.v1.AddContainerNodeParams.CustomLabelsEntry - nil, // 29: inventory.v1.AddRemoteNodeParams.CustomLabelsEntry - nil, // 30: inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry - nil, // 31: inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry - nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry - } -) - +var file_inventory_v1_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 32) +var file_inventory_v1_nodes_proto_goTypes = []any{ + (NodeType)(0), // 0: inventory.v1.NodeType + (*GenericNode)(nil), // 1: inventory.v1.GenericNode + (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode + (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode + (*RemoteRDSNode)(nil), // 4: inventory.v1.RemoteRDSNode + (*RemoteAzureDatabaseNode)(nil), // 5: inventory.v1.RemoteAzureDatabaseNode + (*RemoteElastiCacheNode)(nil), // 6: inventory.v1.RemoteElastiCacheNode + (*ListNodesRequest)(nil), // 7: inventory.v1.ListNodesRequest + (*ListNodesResponse)(nil), // 8: inventory.v1.ListNodesResponse + (*GetNodeRequest)(nil), // 9: inventory.v1.GetNodeRequest + (*GetNodeResponse)(nil), // 10: inventory.v1.GetNodeResponse + (*AddNodeRequest)(nil), // 11: inventory.v1.AddNodeRequest + (*AddNodeResponse)(nil), // 12: inventory.v1.AddNodeResponse + (*AddGenericNodeParams)(nil), // 13: inventory.v1.AddGenericNodeParams + (*AddContainerNodeParams)(nil), // 14: inventory.v1.AddContainerNodeParams + (*AddRemoteNodeParams)(nil), // 15: inventory.v1.AddRemoteNodeParams + (*AddRemoteRDSNodeParams)(nil), // 16: inventory.v1.AddRemoteRDSNodeParams + (*AddRemoteAzureNodeParams)(nil), // 17: inventory.v1.AddRemoteAzureNodeParams + (*AddRemoteElastiCacheNodeParams)(nil), // 18: inventory.v1.AddRemoteElastiCacheNodeParams + (*RemoveNodeRequest)(nil), // 19: inventory.v1.RemoveNodeRequest + (*RemoveNodeResponse)(nil), // 20: inventory.v1.RemoveNodeResponse + nil, // 21: inventory.v1.GenericNode.CustomLabelsEntry + nil, // 22: inventory.v1.ContainerNode.CustomLabelsEntry + nil, // 23: inventory.v1.RemoteNode.CustomLabelsEntry + nil, // 24: inventory.v1.RemoteRDSNode.CustomLabelsEntry + nil, // 25: inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry + nil, // 26: inventory.v1.RemoteElastiCacheNode.CustomLabelsEntry + nil, // 27: inventory.v1.AddGenericNodeParams.CustomLabelsEntry + nil, // 28: inventory.v1.AddContainerNodeParams.CustomLabelsEntry + nil, // 29: inventory.v1.AddRemoteNodeParams.CustomLabelsEntry + nil, // 30: inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry + nil, // 31: inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry + nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry +} var file_inventory_v1_nodes_proto_depIdxs = []int32{ 21, // 0: inventory.v1.GenericNode.custom_labels:type_name -> inventory.v1.GenericNode.CustomLabelsEntry 22, // 1: inventory.v1.ContainerNode.custom_labels:type_name -> inventory.v1.ContainerNode.CustomLabelsEntry diff --git a/api/inventory/v1/nodes.pb.validate.go b/api/inventory/v1/nodes.pb.validate.go index f9394bc742b..a466cb0f01b 100644 --- a/api/inventory/v1/nodes.pb.validate.go +++ b/api/inventory/v1/nodes.pb.validate.go @@ -141,8 +141,7 @@ func (e GenericNodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GenericNodeValidationError{} @@ -264,8 +263,7 @@ func (e ContainerNodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ContainerNodeValidationError{} @@ -378,8 +376,7 @@ func (e RemoteNodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoteNodeValidationError{} @@ -495,8 +492,7 @@ func (e RemoteRDSNodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoteRDSNodeValidationError{} @@ -612,8 +608,7 @@ func (e RemoteAzureDatabaseNodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoteAzureDatabaseNodeValidationError{} @@ -833,8 +828,7 @@ func (e ListNodesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListNodesRequestValidationError{} @@ -1140,8 +1134,7 @@ func (e ListNodesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListNodesResponseValidationError{} @@ -1252,8 +1245,7 @@ func (e GetNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetNodeRequestValidationError{} @@ -1604,8 +1596,7 @@ func (e GetNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetNodeResponseValidationError{} @@ -1956,8 +1947,7 @@ func (e AddNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddNodeRequestValidationError{} @@ -2308,8 +2298,7 @@ func (e AddNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddNodeResponseValidationError{} @@ -2445,8 +2434,7 @@ func (e AddGenericNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddGenericNodeParamsValidationError{} @@ -2584,8 +2572,7 @@ func (e AddContainerNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddContainerNodeParamsValidationError{} @@ -2717,8 +2704,7 @@ func (e AddRemoteNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddRemoteNodeParamsValidationError{} @@ -2859,8 +2845,7 @@ func (e AddRemoteRDSNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddRemoteRDSNodeParamsValidationError{} @@ -3001,8 +2986,7 @@ func (e AddRemoteAzureNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddRemoteAzureNodeParamsValidationError{} @@ -3261,8 +3245,7 @@ func (e RemoveNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveNodeRequestValidationError{} @@ -3364,8 +3347,7 @@ func (e RemoveNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveNodeResponseValidationError{} diff --git a/api/inventory/v1/nodes_grpc.pb.go b/api/inventory/v1/nodes_grpc.pb.go index 7142c1b4a15..14c8f370438 100644 --- a/api/inventory/v1/nodes_grpc.pb.go +++ b/api/inventory/v1/nodes_grpc.pb.go @@ -8,7 +8,6 @@ package inventoryv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -117,15 +116,12 @@ type UnimplementedNodesServiceServer struct{} func (UnimplementedNodesServiceServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListNodes not implemented") } - func (UnimplementedNodesServiceServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetNode not implemented") } - func (UnimplementedNodesServiceServer) AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddNode not implemented") } - func (UnimplementedNodesServiceServer) RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveNode not implemented") } diff --git a/api/inventory/v1/services.pb.go b/api/inventory/v1/services.pb.go index a8d1519b61f..d1a54903862 100644 --- a/api/inventory/v1/services.pb.go +++ b/api/inventory/v1/services.pb.go @@ -7,17 +7,15 @@ package inventoryv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + common "github.com/percona/pmm/api/common" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - common "github.com/percona/pmm/api/common" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -3284,57 +3282,54 @@ func file_inventory_v1_services_proto_rawDescGZIP() []byte { return file_inventory_v1_services_proto_rawDescData } -var ( - file_inventory_v1_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_inventory_v1_services_proto_msgTypes = make([]protoimpl.MessageInfo, 42) - file_inventory_v1_services_proto_goTypes = []any{ - ServiceType(0), // 0: inventory.v1.ServiceType - (*MySQLService)(nil), // 1: inventory.v1.MySQLService - (*MongoDBService)(nil), // 2: inventory.v1.MongoDBService - (*PostgreSQLService)(nil), // 3: inventory.v1.PostgreSQLService - (*ValkeyService)(nil), // 4: inventory.v1.ValkeyService - (*ProxySQLService)(nil), // 5: inventory.v1.ProxySQLService - (*HAProxyService)(nil), // 6: inventory.v1.HAProxyService - (*ExternalService)(nil), // 7: inventory.v1.ExternalService - (*ListServicesRequest)(nil), // 8: inventory.v1.ListServicesRequest - (*ListServicesResponse)(nil), // 9: inventory.v1.ListServicesResponse - (*ListActiveServiceTypesRequest)(nil), // 10: inventory.v1.ListActiveServiceTypesRequest - (*ListActiveServiceTypesResponse)(nil), // 11: inventory.v1.ListActiveServiceTypesResponse - (*GetServiceRequest)(nil), // 12: inventory.v1.GetServiceRequest - (*GetServiceResponse)(nil), // 13: inventory.v1.GetServiceResponse - (*AddServiceRequest)(nil), // 14: inventory.v1.AddServiceRequest - (*AddServiceResponse)(nil), // 15: inventory.v1.AddServiceResponse - (*AddMySQLServiceParams)(nil), // 16: inventory.v1.AddMySQLServiceParams - (*AddMongoDBServiceParams)(nil), // 17: inventory.v1.AddMongoDBServiceParams - (*AddPostgreSQLServiceParams)(nil), // 18: inventory.v1.AddPostgreSQLServiceParams - (*AddValkeyServiceParams)(nil), // 19: inventory.v1.AddValkeyServiceParams - (*AddProxySQLServiceParams)(nil), // 20: inventory.v1.AddProxySQLServiceParams - (*AddHAProxyServiceParams)(nil), // 21: inventory.v1.AddHAProxyServiceParams - (*AddExternalServiceParams)(nil), // 22: inventory.v1.AddExternalServiceParams - (*RemoveServiceRequest)(nil), // 23: inventory.v1.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 24: inventory.v1.RemoveServiceResponse - (*ChangeServiceRequest)(nil), // 25: inventory.v1.ChangeServiceRequest - (*ChangeServiceResponse)(nil), // 26: inventory.v1.ChangeServiceResponse - nil, // 27: inventory.v1.MySQLService.CustomLabelsEntry - nil, // 28: inventory.v1.MySQLService.ExtraDsnParamsEntry - nil, // 29: inventory.v1.MongoDBService.CustomLabelsEntry - nil, // 30: inventory.v1.PostgreSQLService.CustomLabelsEntry - nil, // 31: inventory.v1.ValkeyService.CustomLabelsEntry - nil, // 32: inventory.v1.ProxySQLService.CustomLabelsEntry - nil, // 33: inventory.v1.HAProxyService.CustomLabelsEntry - nil, // 34: inventory.v1.ExternalService.CustomLabelsEntry - nil, // 35: inventory.v1.AddMySQLServiceParams.CustomLabelsEntry - nil, // 36: inventory.v1.AddMySQLServiceParams.ExtraDsnParamsEntry - nil, // 37: inventory.v1.AddMongoDBServiceParams.CustomLabelsEntry - nil, // 38: inventory.v1.AddPostgreSQLServiceParams.CustomLabelsEntry - nil, // 39: inventory.v1.AddValkeyServiceParams.CustomLabelsEntry - nil, // 40: inventory.v1.AddProxySQLServiceParams.CustomLabelsEntry - nil, // 41: inventory.v1.AddHAProxyServiceParams.CustomLabelsEntry - nil, // 42: inventory.v1.AddExternalServiceParams.CustomLabelsEntry - (*common.StringMap)(nil), // 43: common.StringMap - } -) - +var file_inventory_v1_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_inventory_v1_services_proto_msgTypes = make([]protoimpl.MessageInfo, 42) +var file_inventory_v1_services_proto_goTypes = []any{ + (ServiceType)(0), // 0: inventory.v1.ServiceType + (*MySQLService)(nil), // 1: inventory.v1.MySQLService + (*MongoDBService)(nil), // 2: inventory.v1.MongoDBService + (*PostgreSQLService)(nil), // 3: inventory.v1.PostgreSQLService + (*ValkeyService)(nil), // 4: inventory.v1.ValkeyService + (*ProxySQLService)(nil), // 5: inventory.v1.ProxySQLService + (*HAProxyService)(nil), // 6: inventory.v1.HAProxyService + (*ExternalService)(nil), // 7: inventory.v1.ExternalService + (*ListServicesRequest)(nil), // 8: inventory.v1.ListServicesRequest + (*ListServicesResponse)(nil), // 9: inventory.v1.ListServicesResponse + (*ListActiveServiceTypesRequest)(nil), // 10: inventory.v1.ListActiveServiceTypesRequest + (*ListActiveServiceTypesResponse)(nil), // 11: inventory.v1.ListActiveServiceTypesResponse + (*GetServiceRequest)(nil), // 12: inventory.v1.GetServiceRequest + (*GetServiceResponse)(nil), // 13: inventory.v1.GetServiceResponse + (*AddServiceRequest)(nil), // 14: inventory.v1.AddServiceRequest + (*AddServiceResponse)(nil), // 15: inventory.v1.AddServiceResponse + (*AddMySQLServiceParams)(nil), // 16: inventory.v1.AddMySQLServiceParams + (*AddMongoDBServiceParams)(nil), // 17: inventory.v1.AddMongoDBServiceParams + (*AddPostgreSQLServiceParams)(nil), // 18: inventory.v1.AddPostgreSQLServiceParams + (*AddValkeyServiceParams)(nil), // 19: inventory.v1.AddValkeyServiceParams + (*AddProxySQLServiceParams)(nil), // 20: inventory.v1.AddProxySQLServiceParams + (*AddHAProxyServiceParams)(nil), // 21: inventory.v1.AddHAProxyServiceParams + (*AddExternalServiceParams)(nil), // 22: inventory.v1.AddExternalServiceParams + (*RemoveServiceRequest)(nil), // 23: inventory.v1.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 24: inventory.v1.RemoveServiceResponse + (*ChangeServiceRequest)(nil), // 25: inventory.v1.ChangeServiceRequest + (*ChangeServiceResponse)(nil), // 26: inventory.v1.ChangeServiceResponse + nil, // 27: inventory.v1.MySQLService.CustomLabelsEntry + nil, // 28: inventory.v1.MySQLService.ExtraDsnParamsEntry + nil, // 29: inventory.v1.MongoDBService.CustomLabelsEntry + nil, // 30: inventory.v1.PostgreSQLService.CustomLabelsEntry + nil, // 31: inventory.v1.ValkeyService.CustomLabelsEntry + nil, // 32: inventory.v1.ProxySQLService.CustomLabelsEntry + nil, // 33: inventory.v1.HAProxyService.CustomLabelsEntry + nil, // 34: inventory.v1.ExternalService.CustomLabelsEntry + nil, // 35: inventory.v1.AddMySQLServiceParams.CustomLabelsEntry + nil, // 36: inventory.v1.AddMySQLServiceParams.ExtraDsnParamsEntry + nil, // 37: inventory.v1.AddMongoDBServiceParams.CustomLabelsEntry + nil, // 38: inventory.v1.AddPostgreSQLServiceParams.CustomLabelsEntry + nil, // 39: inventory.v1.AddValkeyServiceParams.CustomLabelsEntry + nil, // 40: inventory.v1.AddProxySQLServiceParams.CustomLabelsEntry + nil, // 41: inventory.v1.AddHAProxyServiceParams.CustomLabelsEntry + nil, // 42: inventory.v1.AddExternalServiceParams.CustomLabelsEntry + (*common.StringMap)(nil), // 43: common.StringMap +} var file_inventory_v1_services_proto_depIdxs = []int32{ 27, // 0: inventory.v1.MySQLService.custom_labels:type_name -> inventory.v1.MySQLService.CustomLabelsEntry 28, // 1: inventory.v1.MySQLService.extra_dsn_params:type_name -> inventory.v1.MySQLService.ExtraDsnParamsEntry diff --git a/api/inventory/v1/services.pb.validate.go b/api/inventory/v1/services.pb.validate.go index 8a59926820d..6f939fb5f8f 100644 --- a/api/inventory/v1/services.pb.validate.go +++ b/api/inventory/v1/services.pb.validate.go @@ -145,8 +145,7 @@ func (e MySQLServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MySQLServiceValidationError{} @@ -268,8 +267,7 @@ func (e MongoDBServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MongoDBServiceValidationError{} @@ -397,8 +395,7 @@ func (e PostgreSQLServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PostgreSQLServiceValidationError{} @@ -520,8 +517,7 @@ func (e ValkeyServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ValkeyServiceValidationError{} @@ -643,8 +639,7 @@ func (e ProxySQLServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ProxySQLServiceValidationError{} @@ -758,8 +753,7 @@ func (e HAProxyServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HAProxyServiceValidationError{} @@ -879,8 +873,7 @@ func (e ExternalServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ExternalServiceValidationError{} @@ -988,8 +981,7 @@ func (e ListServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListServicesRequestValidationError{} @@ -1329,8 +1321,7 @@ func (e ListServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListServicesResponseValidationError{} @@ -1433,8 +1424,7 @@ func (e ListActiveServiceTypesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListActiveServiceTypesRequestValidationError{} @@ -1537,8 +1527,7 @@ func (e ListActiveServiceTypesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListActiveServiceTypesResponseValidationError{} @@ -1651,8 +1640,7 @@ func (e GetServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetServiceRequestValidationError{} @@ -2046,8 +2034,7 @@ func (e GetServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetServiceResponseValidationError{} @@ -2441,8 +2428,7 @@ func (e AddServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddServiceRequestValidationError{} @@ -2836,8 +2822,7 @@ func (e AddServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddServiceResponseValidationError{} @@ -2977,8 +2962,7 @@ func (e AddMySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddMySQLServiceParamsValidationError{} @@ -3116,8 +3100,7 @@ func (e AddMongoDBServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddMongoDBServiceParamsValidationError{} @@ -3257,8 +3240,7 @@ func (e AddPostgreSQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddPostgreSQLServiceParamsValidationError{} @@ -3396,8 +3378,7 @@ func (e AddValkeyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddValkeyServiceParamsValidationError{} @@ -3535,8 +3516,7 @@ func (e AddProxySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddProxySQLServiceParamsValidationError{} @@ -3668,8 +3648,7 @@ func (e AddHAProxyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddHAProxyServiceParamsValidationError{} @@ -3803,8 +3782,7 @@ func (e AddExternalServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddExternalServiceParamsValidationError{} @@ -3919,8 +3897,7 @@ func (e RemoveServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveServiceRequestValidationError{} @@ -4022,8 +3999,7 @@ func (e RemoveServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveServiceResponseValidationError{} @@ -4086,6 +4062,7 @@ func (m *ChangeServiceRequest) validate(all bool) error { } if m.CustomLabels != nil { + if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -4114,6 +4091,7 @@ func (m *ChangeServiceRequest) validate(all bool) error { } } } + } if len(errors) > 0 { @@ -4183,8 +4161,7 @@ func (e ChangeServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeServiceRequestValidationError{} @@ -4578,8 +4555,7 @@ func (e ChangeServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeServiceResponseValidationError{} diff --git a/api/inventory/v1/services_grpc.pb.go b/api/inventory/v1/services_grpc.pb.go index 1de232e4cc5..27f42369172 100644 --- a/api/inventory/v1/services_grpc.pb.go +++ b/api/inventory/v1/services_grpc.pb.go @@ -8,7 +8,6 @@ package inventoryv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -147,23 +146,18 @@ type UnimplementedServicesServiceServer struct{} func (UnimplementedServicesServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListServices not implemented") } - func (UnimplementedServicesServiceServer) ListActiveServiceTypes(context.Context, *ListActiveServiceTypesRequest) (*ListActiveServiceTypesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListActiveServiceTypes not implemented") } - func (UnimplementedServicesServiceServer) GetService(context.Context, *GetServiceRequest) (*GetServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetService not implemented") } - func (UnimplementedServicesServiceServer) AddService(context.Context, *AddServiceRequest) (*AddServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddService not implemented") } - func (UnimplementedServicesServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveService not implemented") } - func (UnimplementedServicesServiceServer) ChangeService(context.Context, *ChangeServiceRequest) (*ChangeServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeService not implemented") } diff --git a/api/management/v1/agent.pb.go b/api/management/v1/agent.pb.go index 9594f928226..2feb29c665d 100644 --- a/api/management/v1/agent.pb.go +++ b/api/management/v1/agent.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -1206,30 +1204,27 @@ func file_management_v1_agent_proto_rawDescGZIP() []byte { return file_management_v1_agent_proto_rawDescData } -var ( - file_management_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 13) - file_management_v1_agent_proto_goTypes = []any{ - UpdateSeverity(0), // 0: management.v1.UpdateSeverity - (*UniversalAgent)(nil), // 1: management.v1.UniversalAgent - (*ListAgentsRequest)(nil), // 2: management.v1.ListAgentsRequest - (*ListAgentsResponse)(nil), // 3: management.v1.ListAgentsResponse - (*AgentVersions)(nil), // 4: management.v1.AgentVersions - (*ListAgentVersionsRequest)(nil), // 5: management.v1.ListAgentVersionsRequest - (*ListAgentVersionsResponse)(nil), // 6: management.v1.ListAgentVersionsResponse - (*UniversalAgent_MySQLOptions)(nil), // 7: management.v1.UniversalAgent.MySQLOptions - (*UniversalAgent_AzureOptions)(nil), // 8: management.v1.UniversalAgent.AzureOptions - (*UniversalAgent_MongoDBOptions)(nil), // 9: management.v1.UniversalAgent.MongoDBOptions - (*UniversalAgent_PostgreSQLOptions)(nil), // 10: management.v1.UniversalAgent.PostgreSQLOptions - (*UniversalAgent_ValkeyOptions)(nil), // 11: management.v1.UniversalAgent.ValkeyOptions - nil, // 12: management.v1.UniversalAgent.CustomLabelsEntry - nil, // 13: management.v1.UniversalAgent.MySQLOptions.ExtraDsnParamsEntry - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - v1.LogLevel(0), // 15: inventory.v1.LogLevel - (*v1.RTAOptions)(nil), // 16: inventory.v1.RTAOptions - } -) - +var file_management_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_management_v1_agent_proto_goTypes = []any{ + (UpdateSeverity)(0), // 0: management.v1.UpdateSeverity + (*UniversalAgent)(nil), // 1: management.v1.UniversalAgent + (*ListAgentsRequest)(nil), // 2: management.v1.ListAgentsRequest + (*ListAgentsResponse)(nil), // 3: management.v1.ListAgentsResponse + (*AgentVersions)(nil), // 4: management.v1.AgentVersions + (*ListAgentVersionsRequest)(nil), // 5: management.v1.ListAgentVersionsRequest + (*ListAgentVersionsResponse)(nil), // 6: management.v1.ListAgentVersionsResponse + (*UniversalAgent_MySQLOptions)(nil), // 7: management.v1.UniversalAgent.MySQLOptions + (*UniversalAgent_AzureOptions)(nil), // 8: management.v1.UniversalAgent.AzureOptions + (*UniversalAgent_MongoDBOptions)(nil), // 9: management.v1.UniversalAgent.MongoDBOptions + (*UniversalAgent_PostgreSQLOptions)(nil), // 10: management.v1.UniversalAgent.PostgreSQLOptions + (*UniversalAgent_ValkeyOptions)(nil), // 11: management.v1.UniversalAgent.ValkeyOptions + nil, // 12: management.v1.UniversalAgent.CustomLabelsEntry + nil, // 13: management.v1.UniversalAgent.MySQLOptions.ExtraDsnParamsEntry + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (v1.LogLevel)(0), // 15: inventory.v1.LogLevel + (*v1.RTAOptions)(nil), // 16: inventory.v1.RTAOptions +} var file_management_v1_agent_proto_depIdxs = []int32{ 8, // 0: management.v1.UniversalAgent.azure_options:type_name -> management.v1.UniversalAgent.AzureOptions 14, // 1: management.v1.UniversalAgent.created_at:type_name -> google.protobuf.Timestamp diff --git a/api/management/v1/agent.pb.validate.go b/api/management/v1/agent.pb.validate.go index 96983a21369..a278a0a189b 100644 --- a/api/management/v1/agent.pb.validate.go +++ b/api/management/v1/agent.pb.validate.go @@ -424,8 +424,7 @@ func (e UniversalAgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalAgentValidationError{} @@ -531,8 +530,7 @@ func (e ListAgentsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAgentsRequestValidationError{} @@ -668,8 +666,7 @@ func (e ListAgentsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAgentsResponseValidationError{} @@ -777,8 +774,7 @@ func (e AgentVersionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AgentVersionsValidationError{} @@ -880,8 +876,7 @@ func (e ListAgentVersionsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAgentVersionsRequestValidationError{} @@ -1017,8 +1012,7 @@ func (e ListAgentVersionsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListAgentVersionsResponseValidationError{} @@ -1125,8 +1119,7 @@ func (e UniversalAgent_MySQLOptionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalAgent_MySQLOptionsValidationError{} @@ -1239,8 +1232,7 @@ func (e UniversalAgent_AzureOptionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalAgent_AzureOptionsValidationError{} @@ -1355,8 +1347,7 @@ func (e UniversalAgent_MongoDBOptionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalAgent_MongoDBOptionsValidationError{} @@ -1467,8 +1458,7 @@ func (e UniversalAgent_PostgreSQLOptionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalAgent_PostgreSQLOptionsValidationError{} @@ -1571,8 +1561,7 @@ func (e UniversalAgent_ValkeyOptionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalAgent_ValkeyOptionsValidationError{} diff --git a/api/management/v1/annotation.pb.go b/api/management/v1/annotation.pb.go index ec781561e4c..d014773c308 100644 --- a/api/management/v1/annotation.pb.go +++ b/api/management/v1/annotation.pb.go @@ -7,13 +7,12 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -157,14 +156,11 @@ func file_management_v1_annotation_proto_rawDescGZIP() []byte { return file_management_v1_annotation_proto_rawDescData } -var ( - file_management_v1_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_management_v1_annotation_proto_goTypes = []any{ - (*AddAnnotationRequest)(nil), // 0: management.v1.AddAnnotationRequest - (*AddAnnotationResponse)(nil), // 1: management.v1.AddAnnotationResponse - } -) - +var file_management_v1_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_management_v1_annotation_proto_goTypes = []any{ + (*AddAnnotationRequest)(nil), // 0: management.v1.AddAnnotationRequest + (*AddAnnotationResponse)(nil), // 1: management.v1.AddAnnotationResponse +} var file_management_v1_annotation_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/management/v1/annotation.pb.validate.go b/api/management/v1/annotation.pb.validate.go index 9ce68747925..2a157cc3722 100644 --- a/api/management/v1/annotation.pb.validate.go +++ b/api/management/v1/annotation.pb.validate.go @@ -137,8 +137,7 @@ func (e AddAnnotationRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAnnotationRequestValidationError{} @@ -240,8 +239,7 @@ func (e AddAnnotationResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAnnotationResponseValidationError{} diff --git a/api/management/v1/azure.pb.go b/api/management/v1/azure.pb.go index 7d990ccc9e4..92325eca4a3 100644 --- a/api/management/v1/azure.pb.go +++ b/api/management/v1/azure.pb.go @@ -7,15 +7,13 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" + _ "github.com/percona/pmm/api/extensions/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - _ "github.com/percona/pmm/api/extensions/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -701,20 +699,17 @@ func file_management_v1_azure_proto_rawDescGZIP() []byte { return file_management_v1_azure_proto_rawDescData } -var ( - file_management_v1_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_management_v1_azure_proto_goTypes = []any{ - DiscoverAzureDatabaseType(0), // 0: management.v1.DiscoverAzureDatabaseType - (*DiscoverAzureDatabaseRequest)(nil), // 1: management.v1.DiscoverAzureDatabaseRequest - (*DiscoverAzureDatabaseInstance)(nil), // 2: management.v1.DiscoverAzureDatabaseInstance - (*DiscoverAzureDatabaseResponse)(nil), // 3: management.v1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseRequest)(nil), // 4: management.v1.AddAzureDatabaseRequest - (*AddAzureDatabaseResponse)(nil), // 5: management.v1.AddAzureDatabaseResponse - nil, // 6: management.v1.AddAzureDatabaseRequest.CustomLabelsEntry - } -) - +var file_management_v1_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_management_v1_azure_proto_goTypes = []any{ + (DiscoverAzureDatabaseType)(0), // 0: management.v1.DiscoverAzureDatabaseType + (*DiscoverAzureDatabaseRequest)(nil), // 1: management.v1.DiscoverAzureDatabaseRequest + (*DiscoverAzureDatabaseInstance)(nil), // 2: management.v1.DiscoverAzureDatabaseInstance + (*DiscoverAzureDatabaseResponse)(nil), // 3: management.v1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseRequest)(nil), // 4: management.v1.AddAzureDatabaseRequest + (*AddAzureDatabaseResponse)(nil), // 5: management.v1.AddAzureDatabaseResponse + nil, // 6: management.v1.AddAzureDatabaseRequest.CustomLabelsEntry +} var file_management_v1_azure_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverAzureDatabaseInstance.type:type_name -> management.v1.DiscoverAzureDatabaseType 2, // 1: management.v1.DiscoverAzureDatabaseResponse.azure_database_instance:type_name -> management.v1.DiscoverAzureDatabaseInstance diff --git a/api/management/v1/azure.pb.validate.go b/api/management/v1/azure.pb.validate.go index 9f7e1bc19a8..6d5787b2687 100644 --- a/api/management/v1/azure.pb.validate.go +++ b/api/management/v1/azure.pb.validate.go @@ -169,8 +169,7 @@ func (e DiscoverAzureDatabaseRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DiscoverAzureDatabaseRequestValidationError{} @@ -293,8 +292,7 @@ func (e DiscoverAzureDatabaseInstanceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DiscoverAzureDatabaseInstanceValidationError{} @@ -431,8 +429,7 @@ func (e DiscoverAzureDatabaseResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DiscoverAzureDatabaseResponseValidationError{} @@ -674,8 +671,7 @@ func (e AddAzureDatabaseRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAzureDatabaseRequestValidationError{} @@ -777,8 +773,7 @@ func (e AddAzureDatabaseResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddAzureDatabaseResponseValidationError{} diff --git a/api/management/v1/elasticache.pb.go b/api/management/v1/elasticache.pb.go index 50692a3f9c2..975eecac7c8 100644 --- a/api/management/v1/elasticache.pb.go +++ b/api/management/v1/elasticache.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -661,24 +659,21 @@ func file_management_v1_elasticache_proto_rawDescGZIP() []byte { return file_management_v1_elasticache_proto_rawDescData } -var ( - file_management_v1_elasticache_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_elasticache_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_management_v1_elasticache_proto_goTypes = []any{ - (DiscoverElastiCacheEngine)(0), // 0: management.v1.DiscoverElastiCacheEngine - (*DiscoverElastiCacheInstance)(nil), // 1: management.v1.DiscoverElastiCacheInstance - (*DiscoverElastiCacheRequest)(nil), // 2: management.v1.DiscoverElastiCacheRequest - (*DiscoverElastiCacheResponse)(nil), // 3: management.v1.DiscoverElastiCacheResponse - (*AddElastiCacheServiceParams)(nil), // 4: management.v1.AddElastiCacheServiceParams - (*ElastiCacheServiceResult)(nil), // 5: management.v1.ElastiCacheServiceResult - nil, // 6: management.v1.AddElastiCacheServiceParams.CustomLabelsEntry - (MetricsMode)(0), // 7: management.v1.MetricsMode - (*v1.RemoteElastiCacheNode)(nil), // 8: inventory.v1.RemoteElastiCacheNode - (*v1.ValkeyService)(nil), // 9: inventory.v1.ValkeyService - (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter - } -) - +var file_management_v1_elasticache_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_elasticache_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_management_v1_elasticache_proto_goTypes = []any{ + (DiscoverElastiCacheEngine)(0), // 0: management.v1.DiscoverElastiCacheEngine + (*DiscoverElastiCacheInstance)(nil), // 1: management.v1.DiscoverElastiCacheInstance + (*DiscoverElastiCacheRequest)(nil), // 2: management.v1.DiscoverElastiCacheRequest + (*DiscoverElastiCacheResponse)(nil), // 3: management.v1.DiscoverElastiCacheResponse + (*AddElastiCacheServiceParams)(nil), // 4: management.v1.AddElastiCacheServiceParams + (*ElastiCacheServiceResult)(nil), // 5: management.v1.ElastiCacheServiceResult + nil, // 6: management.v1.AddElastiCacheServiceParams.CustomLabelsEntry + (MetricsMode)(0), // 7: management.v1.MetricsMode + (*v1.RemoteElastiCacheNode)(nil), // 8: inventory.v1.RemoteElastiCacheNode + (*v1.ValkeyService)(nil), // 9: inventory.v1.ValkeyService + (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter +} var file_management_v1_elasticache_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverElastiCacheInstance.engine:type_name -> management.v1.DiscoverElastiCacheEngine 1, // 1: management.v1.DiscoverElastiCacheResponse.elasticache_instances:type_name -> management.v1.DiscoverElastiCacheInstance diff --git a/api/management/v1/external.pb.go b/api/management/v1/external.pb.go index 3632121e1c2..12fb403ca50 100644 --- a/api/management/v1/external.pb.go +++ b/api/management/v1/external.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -343,19 +341,16 @@ func file_management_v1_external_proto_rawDescGZIP() []byte { return file_management_v1_external_proto_rawDescData } -var ( - file_management_v1_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_management_v1_external_proto_goTypes = []any{ - (*AddExternalServiceParams)(nil), // 0: management.v1.AddExternalServiceParams - (*ExternalServiceResult)(nil), // 1: management.v1.ExternalServiceResult - nil, // 2: management.v1.AddExternalServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - MetricsMode(0), // 4: management.v1.MetricsMode - (*v1.ExternalService)(nil), // 5: inventory.v1.ExternalService - (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter - } -) - +var file_management_v1_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_management_v1_external_proto_goTypes = []any{ + (*AddExternalServiceParams)(nil), // 0: management.v1.AddExternalServiceParams + (*ExternalServiceResult)(nil), // 1: management.v1.ExternalServiceResult + nil, // 2: management.v1.AddExternalServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (*v1.ExternalService)(nil), // 5: inventory.v1.ExternalService + (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter +} var file_management_v1_external_proto_depIdxs = []int32{ 3, // 0: management.v1.AddExternalServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddExternalServiceParams.custom_labels:type_name -> management.v1.AddExternalServiceParams.CustomLabelsEntry diff --git a/api/management/v1/external.pb.validate.go b/api/management/v1/external.pb.validate.go index a59468c08ae..232949e1810 100644 --- a/api/management/v1/external.pb.validate.go +++ b/api/management/v1/external.pb.validate.go @@ -207,8 +207,7 @@ func (e AddExternalServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddExternalServiceParamsValidationError{} @@ -368,8 +367,7 @@ func (e ExternalServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ExternalServiceResultValidationError{} diff --git a/api/management/v1/haproxy.pb.go b/api/management/v1/haproxy.pb.go index f3de5158762..a42c3d57161 100644 --- a/api/management/v1/haproxy.pb.go +++ b/api/management/v1/haproxy.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -321,19 +319,16 @@ func file_management_v1_haproxy_proto_rawDescGZIP() []byte { return file_management_v1_haproxy_proto_rawDescData } -var ( - file_management_v1_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_management_v1_haproxy_proto_goTypes = []any{ - (*AddHAProxyServiceParams)(nil), // 0: management.v1.AddHAProxyServiceParams - (*HAProxyServiceResult)(nil), // 1: management.v1.HAProxyServiceResult - nil, // 2: management.v1.AddHAProxyServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - MetricsMode(0), // 4: management.v1.MetricsMode - (*v1.HAProxyService)(nil), // 5: inventory.v1.HAProxyService - (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter - } -) - +var file_management_v1_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_management_v1_haproxy_proto_goTypes = []any{ + (*AddHAProxyServiceParams)(nil), // 0: management.v1.AddHAProxyServiceParams + (*HAProxyServiceResult)(nil), // 1: management.v1.HAProxyServiceResult + nil, // 2: management.v1.AddHAProxyServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (*v1.HAProxyService)(nil), // 5: inventory.v1.HAProxyService + (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter +} var file_management_v1_haproxy_proto_depIdxs = []int32{ 3, // 0: management.v1.AddHAProxyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddHAProxyServiceParams.custom_labels:type_name -> management.v1.AddHAProxyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/haproxy.pb.validate.go b/api/management/v1/haproxy.pb.validate.go index c11d58e6e5c..bf825aa36e8 100644 --- a/api/management/v1/haproxy.pb.validate.go +++ b/api/management/v1/haproxy.pb.validate.go @@ -203,8 +203,7 @@ func (e AddHAProxyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddHAProxyServiceParamsValidationError{} @@ -364,8 +363,7 @@ func (e HAProxyServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HAProxyServiceResultValidationError{} diff --git a/api/management/v1/json/client/management_service/add_annotation_parameters.go b/api/management/v1/json/client/management_service/add_annotation_parameters.go index 0a6148e59af..68d4bd76539 100644 --- a/api/management/v1/json/client/management_service/add_annotation_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/add_annotation_responses.go b/api/management/v1/json/client/management_service/add_annotation_responses.go index e0707e893c8..27296879191 100644 --- a/api/management/v1/json/client/management_service/add_annotation_responses.go +++ b/api/management/v1/json/client/management_service/add_annotation_responses.go @@ -104,6 +104,7 @@ func (o *AddAnnotationOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *AddAnnotationDefault) GetPayload() *AddAnnotationDefaultBody { } func (o *AddAnnotationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAnnotationDefaultBody) // response payload @@ -190,6 +192,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"` @@ -236,6 +239,7 @@ AddAnnotationDefaultBody add annotation default body swagger:model AddAnnotationDefaultBody */ type AddAnnotationDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -305,7 +309,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 swag.IsZero(o.Details[i]) { // not required @@ -325,6 +331,7 @@ func (o *AddAnnotationDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -353,6 +360,7 @@ AddAnnotationDefaultBodyDetailsItems0 add annotation default body details items0 swagger:model AddAnnotationDefaultBodyDetailsItems0 */ type AddAnnotationDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -364,6 +372,7 @@ type AddAnnotationDefaultBodyDetailsItems0 struct { func (o *AddAnnotationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -401,6 +410,7 @@ func (o *AddAnnotationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o AddAnnotationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/management/v1/json/client/management_service/add_azure_database_parameters.go b/api/management/v1/json/client/management_service/add_azure_database_parameters.go index b9e1d96ff02..1fd8c87b5db 100644 --- a/api/management/v1/json/client/management_service/add_azure_database_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/add_azure_database_responses.go b/api/management/v1/json/client/management_service/add_azure_database_responses.go index 947f66d7e84..5d5bd67446a 100644 --- a/api/management/v1/json/client/management_service/add_azure_database_responses.go +++ b/api/management/v1/json/client/management_service/add_azure_database_responses.go @@ -105,6 +105,7 @@ func (o *AddAzureDatabaseOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,6 +177,7 @@ func (o *AddAzureDatabaseDefault) GetPayload() *AddAzureDatabaseDefaultBody { } func (o *AddAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddAzureDatabaseDefaultBody) // response payload @@ -191,6 +193,7 @@ AddAzureDatabaseBody add azure database body swagger:model AddAzureDatabaseBody */ type AddAzureDatabaseBody struct { + // Azure database location. Region string `json:"region,omitempty"` @@ -361,6 +364,7 @@ AddAzureDatabaseDefaultBody add azure database default body swagger:model AddAzureDatabaseDefaultBody */ type AddAzureDatabaseDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -430,7 +434,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 swag.IsZero(o.Details[i]) { // not required @@ -450,6 +456,7 @@ func (o *AddAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context return err } } + } return nil @@ -478,6 +485,7 @@ AddAzureDatabaseDefaultBodyDetailsItems0 add azure database default body details swagger:model AddAzureDatabaseDefaultBodyDetailsItems0 */ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -489,6 +497,7 @@ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { func (o *AddAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -526,6 +535,7 @@ func (o *AddAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) er // MarshalJSON marshals this object with additional properties into a JSON object func (o AddAzureDatabaseDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/management/v1/json/client/management_service/add_service_parameters.go b/api/management/v1/json/client/management_service/add_service_parameters.go index 64e2dd78b6b..8e80c2a6085 100644 --- a/api/management/v1/json/client/management_service/add_service_parameters.go +++ b/api/management/v1/json/client/management_service/add_service_parameters.go @@ -60,6 +60,7 @@ AddServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddServiceParams struct { + // Body. Body AddServiceBody @@ -129,6 +130,7 @@ func (o *AddServiceParams) SetBody(body AddServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/add_service_responses.go b/api/management/v1/json/client/management_service/add_service_responses.go index 03c8d00fbbb..93ca8511a43 100644 --- a/api/management/v1/json/client/management_service/add_service_responses.go +++ b/api/management/v1/json/client/management_service/add_service_responses.go @@ -105,6 +105,7 @@ func (o *AddServiceOK) GetPayload() *AddServiceOKBody { } func (o *AddServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddServiceOKBody) // response payload @@ -178,6 +179,7 @@ func (o *AddServiceDefault) GetPayload() *AddServiceDefaultBody { } func (o *AddServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(AddServiceDefaultBody) // response payload @@ -193,6 +195,7 @@ AddServiceBody add service body swagger:model AddServiceBody */ type AddServiceBody struct { + // elasticache Elasticache *AddServiceParamsBodyElasticache `json:"elasticache,omitempty"` @@ -521,6 +524,7 @@ func (o *AddServiceBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddServiceBody) contextValidateElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.Elasticache != nil { if swag.IsZero(o.Elasticache) { // not required @@ -545,6 +549,7 @@ func (o *AddServiceBody) contextValidateElasticache(ctx context.Context, formats } func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if swag.IsZero(o.External) { // not required @@ -569,6 +574,7 @@ func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -593,6 +599,7 @@ func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -617,6 +624,7 @@ func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -641,6 +649,7 @@ func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfm } func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -665,6 +674,7 @@ func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats } func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -689,6 +699,7 @@ func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RDS != nil { if swag.IsZero(o.RDS) { // not required @@ -713,6 +724,7 @@ func (o *AddServiceBody) contextValidateRDS(ctx context.Context, formats strfmt. } func (o *AddServiceBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -759,6 +771,7 @@ AddServiceDefaultBody add service default body swagger:model AddServiceDefaultBody */ type AddServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -828,7 +841,9 @@ func (o *AddServiceDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -848,6 +863,7 @@ func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -876,6 +892,7 @@ AddServiceDefaultBodyDetailsItems0 add service default body details items0 swagger:model AddServiceDefaultBodyDetailsItems0 */ type AddServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -887,6 +904,7 @@ type AddServiceDefaultBodyDetailsItems0 struct { func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -924,6 +942,7 @@ func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -987,6 +1006,7 @@ AddServiceOKBody add service OK body swagger:model AddServiceOKBody */ type AddServiceOKBody struct { + // elasticache Elasticache *AddServiceOKBodyElasticache `json:"elasticache,omitempty"` @@ -1315,6 +1335,7 @@ func (o *AddServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddServiceOKBody) contextValidateElasticache(ctx context.Context, formats strfmt.Registry) error { + if o.Elasticache != nil { if swag.IsZero(o.Elasticache) { // not required @@ -1339,6 +1360,7 @@ func (o *AddServiceOKBody) contextValidateElasticache(ctx context.Context, forma } func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { + if o.External != nil { if swag.IsZero(o.External) { // not required @@ -1363,6 +1385,7 @@ func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { + if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -1387,6 +1410,7 @@ func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { + if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -1411,6 +1435,7 @@ func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -1435,6 +1460,7 @@ func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats str } func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -1459,6 +1485,7 @@ func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, format } func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { + if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -1483,6 +1510,7 @@ func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateRDS(ctx context.Context, formats strfmt.Registry) error { + if o.RDS != nil { if swag.IsZero(o.RDS) { // not required @@ -1507,6 +1535,7 @@ func (o *AddServiceOKBody) contextValidateRDS(ctx context.Context, formats strfm } func (o *AddServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { + if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -1553,6 +1582,7 @@ AddServiceOKBodyElasticache add service OK body elasticache swagger:model AddServiceOKBodyElasticache */ type AddServiceOKBodyElasticache struct { + // node Node *AddServiceOKBodyElasticacheNode `json:"node,omitempty"` @@ -1677,6 +1707,7 @@ func (o *AddServiceOKBodyElasticache) ContextValidate(ctx context.Context, forma } func (o *AddServiceOKBodyElasticache) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { + if o.Node != nil { if swag.IsZero(o.Node) { // not required @@ -1701,6 +1732,7 @@ func (o *AddServiceOKBodyElasticache) contextValidateNode(ctx context.Context, f } func (o *AddServiceOKBodyElasticache) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1725,6 +1757,7 @@ func (o *AddServiceOKBodyElasticache) contextValidateValkeyExporter(ctx context. } func (o *AddServiceOKBodyElasticache) contextValidateValkeyService(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyService != nil { if swag.IsZero(o.ValkeyService) { // not required @@ -1771,6 +1804,7 @@ AddServiceOKBodyElasticacheNode RemoteElastiCacheNode represents remote ElastiCa swagger:model AddServiceOKBodyElasticacheNode */ type AddServiceOKBodyElasticacheNode struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1829,6 +1863,7 @@ AddServiceOKBodyElasticacheValkeyExporter ValkeyExporter runs on Generic or Cont swagger:model AddServiceOKBodyElasticacheValkeyExporter */ type AddServiceOKBodyElasticacheValkeyExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2000,6 +2035,7 @@ func (o *AddServiceOKBodyElasticacheValkeyExporter) ContextValidate(ctx context. } func (o *AddServiceOKBodyElasticacheValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2046,6 +2082,7 @@ AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions MetricsResolutions r swagger:model AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions */ type AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2089,6 +2126,7 @@ AddServiceOKBodyElasticacheValkeyService ValkeyService represents a generic Valk swagger:model AddServiceOKBodyElasticacheValkeyService */ type AddServiceOKBodyElasticacheValkeyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -2159,6 +2197,7 @@ AddServiceOKBodyExternal add service OK body external swagger:model AddServiceOKBodyExternal */ type AddServiceOKBodyExternal struct { + // external exporter ExternalExporter *AddServiceOKBodyExternalExternalExporter `json:"external_exporter,omitempty"` @@ -2249,6 +2288,7 @@ func (o *AddServiceOKBodyExternal) ContextValidate(ctx context.Context, formats } func (o *AddServiceOKBodyExternal) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2273,6 +2313,7 @@ func (o *AddServiceOKBodyExternal) contextValidateExternalExporter(ctx context.C } func (o *AddServiceOKBodyExternal) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -2319,6 +2360,7 @@ AddServiceOKBodyExternalExternalExporter ExternalExporter runs on any Node type, swagger:model AddServiceOKBodyExternalExternalExporter */ type AddServiceOKBodyExternalExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2487,6 +2529,7 @@ func (o *AddServiceOKBodyExternalExternalExporter) ContextValidate(ctx context.C } func (o *AddServiceOKBodyExternalExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2533,6 +2576,7 @@ AddServiceOKBodyExternalExternalExporterMetricsResolutions MetricsResolutions re swagger:model AddServiceOKBodyExternalExternalExporterMetricsResolutions */ type AddServiceOKBodyExternalExternalExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2576,6 +2620,7 @@ AddServiceOKBodyExternalService ExternalService represents a generic External se swagger:model AddServiceOKBodyExternalService */ type AddServiceOKBodyExternalService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -2640,6 +2685,7 @@ AddServiceOKBodyHaproxy add service OK body haproxy swagger:model AddServiceOKBodyHaproxy */ type AddServiceOKBodyHaproxy struct { + // external exporter ExternalExporter *AddServiceOKBodyHaproxyExternalExporter `json:"external_exporter,omitempty"` @@ -2730,6 +2776,7 @@ func (o *AddServiceOKBodyHaproxy) ContextValidate(ctx context.Context, formats s } func (o *AddServiceOKBodyHaproxy) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2754,6 +2801,7 @@ func (o *AddServiceOKBodyHaproxy) contextValidateExternalExporter(ctx context.Co } func (o *AddServiceOKBodyHaproxy) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -2800,6 +2848,7 @@ AddServiceOKBodyHaproxyExternalExporter ExternalExporter runs on any Node type, swagger:model AddServiceOKBodyHaproxyExternalExporter */ type AddServiceOKBodyHaproxyExternalExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2968,6 +3017,7 @@ func (o *AddServiceOKBodyHaproxyExternalExporter) ContextValidate(ctx context.Co } func (o *AddServiceOKBodyHaproxyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3014,6 +3064,7 @@ AddServiceOKBodyHaproxyExternalExporterMetricsResolutions MetricsResolutions rep swagger:model AddServiceOKBodyHaproxyExternalExporterMetricsResolutions */ type AddServiceOKBodyHaproxyExternalExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3057,6 +3108,7 @@ AddServiceOKBodyHaproxyService HAProxyService represents a generic HAProxy servi swagger:model AddServiceOKBodyHaproxyService */ type AddServiceOKBodyHaproxyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -3112,6 +3164,7 @@ AddServiceOKBodyMongodb add service OK body mongodb swagger:model AddServiceOKBodyMongodb */ type AddServiceOKBodyMongodb struct { + // mongodb exporter MongodbExporter *AddServiceOKBodyMongodbMongodbExporter `json:"mongodb_exporter,omitempty"` @@ -3304,6 +3357,7 @@ func (o *AddServiceOKBodyMongodb) ContextValidate(ctx context.Context, formats s } func (o *AddServiceOKBodyMongodb) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -3328,6 +3382,7 @@ func (o *AddServiceOKBodyMongodb) contextValidateMongodbExporter(ctx context.Con } func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbMongolog(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbMongolog != nil { if swag.IsZero(o.QANMongodbMongolog) { // not required @@ -3352,6 +3407,7 @@ func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbMongolog(ctx context. } func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbProfiler(ctx context.Context, formats strfmt.Registry) error { + if o.QANMongodbProfiler != nil { if swag.IsZero(o.QANMongodbProfiler) { // not required @@ -3376,6 +3432,7 @@ func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbProfiler(ctx context. } func (o *AddServiceOKBodyMongodb) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { + if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -3400,6 +3457,7 @@ func (o *AddServiceOKBodyMongodb) contextValidateRtaMongodbAgent(ctx context.Con } func (o *AddServiceOKBodyMongodb) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -3446,6 +3504,7 @@ AddServiceOKBodyMongodbMongodbExporter MongoDBExporter runs on Generic or Contai swagger:model AddServiceOKBodyMongodbMongodbExporter */ type AddServiceOKBodyMongodbMongodbExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3694,6 +3753,7 @@ func (o *AddServiceOKBodyMongodbMongodbExporter) ContextValidate(ctx context.Con } func (o *AddServiceOKBodyMongodbMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3740,6 +3800,7 @@ AddServiceOKBodyMongodbMongodbExporterMetricsResolutions MetricsResolutions repr swagger:model AddServiceOKBodyMongodbMongodbExporterMetricsResolutions */ type AddServiceOKBodyMongodbMongodbExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3783,6 +3844,7 @@ AddServiceOKBodyMongodbQANMongodbMongolog QANMongoDBMongologAgent runs within pm swagger:model AddServiceOKBodyMongodbQANMongodbMongolog */ type AddServiceOKBodyMongodbQANMongodbMongolog struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3992,6 +4054,7 @@ AddServiceOKBodyMongodbQANMongodbProfiler QANMongoDBProfilerAgent runs within pm swagger:model AddServiceOKBodyMongodbQANMongodbProfiler */ type AddServiceOKBodyMongodbQANMongodbProfiler struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4201,6 +4264,7 @@ AddServiceOKBodyMongodbRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and swagger:model AddServiceOKBodyMongodbRtaMongodbAgent */ type AddServiceOKBodyMongodbRtaMongodbAgent struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -4421,6 +4485,7 @@ func (o *AddServiceOKBodyMongodbRtaMongodbAgent) ContextValidate(ctx context.Con } func (o *AddServiceOKBodyMongodbRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -4467,6 +4532,7 @@ AddServiceOKBodyMongodbRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Quer swagger:model AddServiceOKBodyMongodbRtaMongodbAgentRtaOptions */ type AddServiceOKBodyMongodbRtaMongodbAgentRtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -4504,6 +4570,7 @@ AddServiceOKBodyMongodbService MongoDBService represents a generic MongoDB insta swagger:model AddServiceOKBodyMongodbService */ type AddServiceOKBodyMongodbService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -4574,6 +4641,7 @@ AddServiceOKBodyMysql add service OK body mysql swagger:model AddServiceOKBodyMysql */ type AddServiceOKBodyMysql struct { + // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -4735,6 +4803,7 @@ func (o *AddServiceOKBodyMysql) ContextValidate(ctx context.Context, formats str } func (o *AddServiceOKBodyMysql) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -4759,6 +4828,7 @@ func (o *AddServiceOKBodyMysql) contextValidateMysqldExporter(ctx context.Contex } func (o *AddServiceOKBodyMysql) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschema != nil { if swag.IsZero(o.QANMysqlPerfschema) { // not required @@ -4783,6 +4853,7 @@ func (o *AddServiceOKBodyMysql) contextValidateQANMysqlPerfschema(ctx context.Co } func (o *AddServiceOKBodyMysql) contextValidateQANMysqlSlowlog(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlSlowlog != nil { if swag.IsZero(o.QANMysqlSlowlog) { // not required @@ -4807,6 +4878,7 @@ func (o *AddServiceOKBodyMysql) contextValidateQANMysqlSlowlog(ctx context.Conte } func (o *AddServiceOKBodyMysql) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -4853,6 +4925,7 @@ AddServiceOKBodyMysqlMysqldExporter MySQLdExporter runs on Generic or Container swagger:model AddServiceOKBodyMysqlMysqldExporter */ type AddServiceOKBodyMysqlMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5111,6 +5184,7 @@ func (o *AddServiceOKBodyMysqlMysqldExporter) ContextValidate(ctx context.Contex } func (o *AddServiceOKBodyMysqlMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -5157,6 +5231,7 @@ AddServiceOKBodyMysqlMysqldExporterMetricsResolutions MetricsResolutions represe swagger:model AddServiceOKBodyMysqlMysqldExporterMetricsResolutions */ type AddServiceOKBodyMysqlMysqldExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -5200,6 +5275,7 @@ AddServiceOKBodyMysqlQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm- swagger:model AddServiceOKBodyMysqlQANMysqlPerfschema */ type AddServiceOKBodyMysqlQANMysqlPerfschema struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5427,6 +5503,7 @@ AddServiceOKBodyMysqlQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent swagger:model AddServiceOKBodyMysqlQANMysqlSlowlog */ type AddServiceOKBodyMysqlQANMysqlSlowlog struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5657,6 +5734,7 @@ AddServiceOKBodyMysqlService MySQLService represents a generic MySQL instance. swagger:model AddServiceOKBodyMysqlService */ type AddServiceOKBodyMysqlService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -5730,6 +5808,7 @@ AddServiceOKBodyPostgresql add service OK body postgresql swagger:model AddServiceOKBodyPostgresql */ type AddServiceOKBodyPostgresql struct { + // Warning message. Warning string `json:"warning,omitempty"` @@ -5891,6 +5970,7 @@ func (o *AddServiceOKBodyPostgresql) ContextValidate(ctx context.Context, format } func (o *AddServiceOKBodyPostgresql) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -5915,6 +5995,7 @@ func (o *AddServiceOKBodyPostgresql) contextValidatePostgresExporter(ctx context } func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -5939,6 +6020,7 @@ func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatementsAge } func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -5963,6 +6045,7 @@ func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatmonitorAg } func (o *AddServiceOKBodyPostgresql) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -6009,6 +6092,7 @@ AddServiceOKBodyPostgresqlPostgresExporter PostgresExporter runs on Generic or C swagger:model AddServiceOKBodyPostgresqlPostgresExporter */ type AddServiceOKBodyPostgresqlPostgresExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6250,6 +6334,7 @@ func (o *AddServiceOKBodyPostgresqlPostgresExporter) ContextValidate(ctx context } func (o *AddServiceOKBodyPostgresqlPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6296,6 +6381,7 @@ AddServiceOKBodyPostgresqlPostgresExporterMetricsResolutions MetricsResolutions swagger:model AddServiceOKBodyPostgresqlPostgresExporterMetricsResolutions */ type AddServiceOKBodyPostgresqlPostgresExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6339,6 +6425,7 @@ AddServiceOKBodyPostgresqlQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatemen swagger:model AddServiceOKBodyPostgresqlQANPostgresqlPgstatementsAgent */ type AddServiceOKBodyPostgresqlQANPostgresqlPgstatementsAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6551,6 +6638,7 @@ AddServiceOKBodyPostgresqlQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMon swagger:model AddServiceOKBodyPostgresqlQANPostgresqlPgstatmonitorAgent */ type AddServiceOKBodyPostgresqlQANPostgresqlPgstatmonitorAgent struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6766,6 +6854,7 @@ AddServiceOKBodyPostgresqlService PostgreSQLService represents a generic Postgre swagger:model AddServiceOKBodyPostgresqlService */ type AddServiceOKBodyPostgresqlService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -6842,6 +6931,7 @@ AddServiceOKBodyProxysql add service OK body proxysql swagger:model AddServiceOKBodyProxysql */ type AddServiceOKBodyProxysql struct { + // proxysql exporter ProxysqlExporter *AddServiceOKBodyProxysqlProxysqlExporter `json:"proxysql_exporter,omitempty"` @@ -6932,6 +7022,7 @@ func (o *AddServiceOKBodyProxysql) ContextValidate(ctx context.Context, formats } func (o *AddServiceOKBodyProxysql) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -6956,6 +7047,7 @@ func (o *AddServiceOKBodyProxysql) contextValidateProxysqlExporter(ctx context.C } func (o *AddServiceOKBodyProxysql) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -7002,6 +7094,7 @@ AddServiceOKBodyProxysqlProxysqlExporter ProxySQLExporter runs on Generic or Con swagger:model AddServiceOKBodyProxysqlProxysqlExporter */ type AddServiceOKBodyProxysqlProxysqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -7237,6 +7330,7 @@ func (o *AddServiceOKBodyProxysqlProxysqlExporter) ContextValidate(ctx context.C } func (o *AddServiceOKBodyProxysqlProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7283,6 +7377,7 @@ AddServiceOKBodyProxysqlProxysqlExporterMetricsResolutions MetricsResolutions re swagger:model AddServiceOKBodyProxysqlProxysqlExporterMetricsResolutions */ type AddServiceOKBodyProxysqlProxysqlExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7326,6 +7421,7 @@ AddServiceOKBodyProxysqlService ProxySQLService represents a generic ProxySQL in swagger:model AddServiceOKBodyProxysqlService */ type AddServiceOKBodyProxysqlService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -7396,6 +7492,7 @@ AddServiceOKBodyRDS add service OK body RDS swagger:model AddServiceOKBodyRDS */ type AddServiceOKBodyRDS struct { + // mysql Mysql *AddServiceOKBodyRDSMysql `json:"mysql,omitempty"` @@ -7690,6 +7787,7 @@ func (o *AddServiceOKBodyRDS) ContextValidate(ctx context.Context, formats strfm } func (o *AddServiceOKBodyRDS) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { + if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -7714,6 +7812,7 @@ func (o *AddServiceOKBodyRDS) contextValidateMysql(ctx context.Context, formats } func (o *AddServiceOKBodyRDS) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { + if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -7738,6 +7837,7 @@ func (o *AddServiceOKBodyRDS) contextValidateMysqldExporter(ctx context.Context, } func (o *AddServiceOKBodyRDS) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { + if o.Node != nil { if swag.IsZero(o.Node) { // not required @@ -7762,6 +7862,7 @@ func (o *AddServiceOKBodyRDS) contextValidateNode(ctx context.Context, formats s } func (o *AddServiceOKBodyRDS) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { + if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -7786,6 +7887,7 @@ func (o *AddServiceOKBodyRDS) contextValidatePostgresql(ctx context.Context, for } func (o *AddServiceOKBodyRDS) contextValidatePostgresqlExporter(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresqlExporter != nil { if swag.IsZero(o.PostgresqlExporter) { // not required @@ -7810,6 +7912,7 @@ func (o *AddServiceOKBodyRDS) contextValidatePostgresqlExporter(ctx context.Cont } func (o *AddServiceOKBodyRDS) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { + if o.QANMysqlPerfschema != nil { if swag.IsZero(o.QANMysqlPerfschema) { // not required @@ -7834,6 +7937,7 @@ func (o *AddServiceOKBodyRDS) contextValidateQANMysqlPerfschema(ctx context.Cont } func (o *AddServiceOKBodyRDS) contextValidateQANPostgresqlPgstatements(ctx context.Context, formats strfmt.Registry) error { + if o.QANPostgresqlPgstatements != nil { if swag.IsZero(o.QANPostgresqlPgstatements) { // not required @@ -7858,6 +7962,7 @@ func (o *AddServiceOKBodyRDS) contextValidateQANPostgresqlPgstatements(ctx conte } func (o *AddServiceOKBodyRDS) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { + if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -7904,6 +8009,7 @@ AddServiceOKBodyRDSMysql MySQLService represents a generic MySQL instance. swagger:model AddServiceOKBodyRDSMysql */ type AddServiceOKBodyRDSMysql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -7977,6 +8083,7 @@ AddServiceOKBodyRDSMysqldExporter MySQLdExporter runs on Generic or Container No swagger:model AddServiceOKBodyRDSMysqldExporter */ type AddServiceOKBodyRDSMysqldExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -8235,6 +8342,7 @@ func (o *AddServiceOKBodyRDSMysqldExporter) ContextValidate(ctx context.Context, } func (o *AddServiceOKBodyRDSMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8281,6 +8389,7 @@ AddServiceOKBodyRDSMysqldExporterMetricsResolutions MetricsResolutions represent swagger:model AddServiceOKBodyRDSMysqldExporterMetricsResolutions */ type AddServiceOKBodyRDSMysqldExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8324,6 +8433,7 @@ AddServiceOKBodyRDSNode RemoteRDSNode represents remote RDS Node. Agents can't r swagger:model AddServiceOKBodyRDSNode */ type AddServiceOKBodyRDSNode struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -8382,6 +8492,7 @@ AddServiceOKBodyRDSPostgresql PostgreSQLService represents a generic PostgreSQL swagger:model AddServiceOKBodyRDSPostgresql */ type AddServiceOKBodyRDSPostgresql struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -8458,6 +8569,7 @@ AddServiceOKBodyRDSPostgresqlExporter PostgresExporter runs on Generic or Contai swagger:model AddServiceOKBodyRDSPostgresqlExporter */ type AddServiceOKBodyRDSPostgresqlExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -8699,6 +8811,7 @@ func (o *AddServiceOKBodyRDSPostgresqlExporter) ContextValidate(ctx context.Cont } func (o *AddServiceOKBodyRDSPostgresqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8745,6 +8858,7 @@ AddServiceOKBodyRDSPostgresqlExporterMetricsResolutions MetricsResolutions repre swagger:model AddServiceOKBodyRDSPostgresqlExporterMetricsResolutions */ type AddServiceOKBodyRDSPostgresqlExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8788,6 +8902,7 @@ AddServiceOKBodyRDSQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model AddServiceOKBodyRDSQANMysqlPerfschema */ type AddServiceOKBodyRDSQANMysqlPerfschema struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9015,6 +9130,7 @@ AddServiceOKBodyRDSQANPostgresqlPgstatements QANPostgreSQLPgStatementsAgent runs swagger:model AddServiceOKBodyRDSQANPostgresqlPgstatements */ type AddServiceOKBodyRDSQANPostgresqlPgstatements struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9227,6 +9343,7 @@ AddServiceOKBodyRDSRDSExporter RDSExporter runs on Generic or Container Node and swagger:model AddServiceOKBodyRDSRDSExporter */ type AddServiceOKBodyRDSRDSExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9459,6 +9576,7 @@ func (o *AddServiceOKBodyRDSRDSExporter) ContextValidate(ctx context.Context, fo } func (o *AddServiceOKBodyRDSRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9505,6 +9623,7 @@ AddServiceOKBodyRDSRDSExporterMetricsResolutions MetricsResolutions represents P swagger:model AddServiceOKBodyRDSRDSExporterMetricsResolutions */ type AddServiceOKBodyRDSRDSExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9548,6 +9667,7 @@ AddServiceOKBodyValkey add service OK body valkey swagger:model AddServiceOKBodyValkey */ type AddServiceOKBodyValkey struct { + // service Service *AddServiceOKBodyValkeyService `json:"service,omitempty"` @@ -9638,6 +9758,7 @@ func (o *AddServiceOKBodyValkey) ContextValidate(ctx context.Context, formats st } func (o *AddServiceOKBodyValkey) contextValidateService(ctx context.Context, formats strfmt.Registry) error { + if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -9662,6 +9783,7 @@ func (o *AddServiceOKBodyValkey) contextValidateService(ctx context.Context, for } func (o *AddServiceOKBodyValkey) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { + if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -9708,6 +9830,7 @@ AddServiceOKBodyValkeyService ValkeyService represents a generic Valkey instance swagger:model AddServiceOKBodyValkeyService */ type AddServiceOKBodyValkeyService struct { + // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -9778,6 +9901,7 @@ AddServiceOKBodyValkeyValkeyExporter ValkeyExporter runs on Generic or Container swagger:model AddServiceOKBodyValkeyValkeyExporter */ type AddServiceOKBodyValkeyValkeyExporter struct { + // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9949,6 +10073,7 @@ func (o *AddServiceOKBodyValkeyValkeyExporter) ContextValidate(ctx context.Conte } func (o *AddServiceOKBodyValkeyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9995,6 +10120,7 @@ AddServiceOKBodyValkeyValkeyExporterMetricsResolutions MetricsResolutions repres swagger:model AddServiceOKBodyValkeyValkeyExporterMetricsResolutions */ type AddServiceOKBodyValkeyValkeyExporterMetricsResolutions struct { + // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10038,6 +10164,7 @@ AddServiceParamsBodyElasticache add service params body elasticache swagger:model AddServiceParamsBodyElasticache */ type AddServiceParamsBodyElasticache struct { + // AWS region. Region string `json:"region,omitempty"` @@ -10243,6 +10370,7 @@ AddServiceParamsBodyExternal add service params body external swagger:model AddServiceParamsBodyExternal */ type AddServiceParamsBodyExternal struct { + // Node identifier on which an external exporter is been running. // runs_on_node_id should always be passed with node_id. // Exactly one of these parameters should be present: node_id, node_name, add_node. @@ -10411,6 +10539,7 @@ func (o *AddServiceParamsBodyExternal) ContextValidate(ctx context.Context, form } func (o *AddServiceParamsBodyExternal) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -10457,6 +10586,7 @@ AddServiceParamsBodyExternalAddNode AddNodeParams holds node params and is used swagger:model AddServiceParamsBodyExternalAddNode */ type AddServiceParamsBodyExternalAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -10588,6 +10718,7 @@ AddServiceParamsBodyHaproxy add service params body haproxy swagger:model AddServiceParamsBodyHaproxy */ type AddServiceParamsBodyHaproxy 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"` @@ -10748,6 +10879,7 @@ func (o *AddServiceParamsBodyHaproxy) ContextValidate(ctx context.Context, forma } func (o *AddServiceParamsBodyHaproxy) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -10794,6 +10926,7 @@ AddServiceParamsBodyHaproxyAddNode AddNodeParams holds node params and is used t swagger:model AddServiceParamsBodyHaproxyAddNode */ type AddServiceParamsBodyHaproxyAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -10925,6 +11058,7 @@ AddServiceParamsBodyMongodb add service params body mongodb swagger:model AddServiceParamsBodyMongodb */ type AddServiceParamsBodyMongodb 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"` @@ -11206,6 +11340,7 @@ func (o *AddServiceParamsBodyMongodb) ContextValidate(ctx context.Context, forma } func (o *AddServiceParamsBodyMongodb) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -11252,6 +11387,7 @@ AddServiceParamsBodyMongodbAddNode AddNodeParams holds node params and is used t swagger:model AddServiceParamsBodyMongodbAddNode */ type AddServiceParamsBodyMongodbAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -11383,6 +11519,7 @@ AddServiceParamsBodyMysql add service params body mysql swagger:model AddServiceParamsBodyMysql */ type AddServiceParamsBodyMysql 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"` @@ -11658,6 +11795,7 @@ func (o *AddServiceParamsBodyMysql) ContextValidate(ctx context.Context, formats } func (o *AddServiceParamsBodyMysql) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -11704,6 +11842,7 @@ AddServiceParamsBodyMysqlAddNode AddNodeParams holds node params and is used to swagger:model AddServiceParamsBodyMysqlAddNode */ type AddServiceParamsBodyMysqlAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -11835,6 +11974,7 @@ AddServiceParamsBodyPostgresql add service params body postgresql swagger:model AddServiceParamsBodyPostgresql */ type AddServiceParamsBodyPostgresql 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"` @@ -12106,6 +12246,7 @@ func (o *AddServiceParamsBodyPostgresql) ContextValidate(ctx context.Context, fo } func (o *AddServiceParamsBodyPostgresql) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -12152,6 +12293,7 @@ AddServiceParamsBodyPostgresqlAddNode AddNodeParams holds node params and is use swagger:model AddServiceParamsBodyPostgresqlAddNode */ type AddServiceParamsBodyPostgresqlAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -12283,6 +12425,7 @@ AddServiceParamsBodyProxysql add service params body proxysql swagger:model AddServiceParamsBodyProxysql */ type AddServiceParamsBodyProxysql 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"` @@ -12521,6 +12664,7 @@ func (o *AddServiceParamsBodyProxysql) ContextValidate(ctx context.Context, form } func (o *AddServiceParamsBodyProxysql) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -12567,6 +12711,7 @@ AddServiceParamsBodyProxysqlAddNode AddNodeParams holds node params and is used swagger:model AddServiceParamsBodyProxysqlAddNode */ type AddServiceParamsBodyProxysqlAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -12698,6 +12843,7 @@ AddServiceParamsBodyRDS add service params body RDS swagger:model AddServiceParamsBodyRDS */ type AddServiceParamsBodyRDS struct { + // AWS region. Region string `json:"region,omitempty"` @@ -12944,6 +13090,7 @@ AddServiceParamsBodyValkey add service params body valkey swagger:model AddServiceParamsBodyValkey */ type AddServiceParamsBodyValkey struct { + // Node identifier on which the service is running. // Only one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -13188,6 +13335,7 @@ func (o *AddServiceParamsBodyValkey) ContextValidate(ctx context.Context, format } func (o *AddServiceParamsBodyValkey) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { + if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -13234,6 +13382,7 @@ AddServiceParamsBodyValkeyAddNode AddNodeParams holds node params and is used to swagger:model AddServiceParamsBodyValkeyAddNode */ type AddServiceParamsBodyValkeyAddNode struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` diff --git a/api/management/v1/json/client/management_service/discover_azure_database_parameters.go b/api/management/v1/json/client/management_service/discover_azure_database_parameters.go index f5f9f75a926..75b1e24acba 100644 --- a/api/management/v1/json/client/management_service/discover_azure_database_parameters.go +++ b/api/management/v1/json/client/management_service/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. DiscoverAzureDatabaseRequest discover azure databases request. @@ -132,6 +133,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/management/v1/json/client/management_service/discover_azure_database_responses.go b/api/management/v1/json/client/management_service/discover_azure_database_responses.go index ee99deb5004..edc2c16bb58 100644 --- a/api/management/v1/json/client/management_service/discover_azure_database_responses.go +++ b/api/management/v1/json/client/management_service/discover_azure_database_responses.go @@ -105,6 +105,7 @@ func (o *DiscoverAzureDatabaseOK) GetPayload() *DiscoverAzureDatabaseOKBody { } func (o *DiscoverAzureDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverAzureDatabaseOKBody) // response payload @@ -178,6 +179,7 @@ func (o *DiscoverAzureDatabaseDefault) GetPayload() *DiscoverAzureDatabaseDefaul } func (o *DiscoverAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverAzureDatabaseDefaultBody) // response payload @@ -193,6 +195,7 @@ DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases swagger:model DiscoverAzureDatabaseBody */ type DiscoverAzureDatabaseBody struct { + // Azure client ID. AzureClientID string `json:"azure_client_id,omitempty"` @@ -239,6 +242,7 @@ DiscoverAzureDatabaseDefaultBody discover azure database default body swagger:model DiscoverAzureDatabaseDefaultBody */ type DiscoverAzureDatabaseDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -308,7 +312,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 swag.IsZero(o.Details[i]) { // not required @@ -328,6 +334,7 @@ func (o *DiscoverAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Co return err } } + } return nil @@ -356,6 +363,7 @@ DiscoverAzureDatabaseDefaultBodyDetailsItems0 discover azure database default bo swagger:model DiscoverAzureDatabaseDefaultBodyDetailsItems0 */ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -367,6 +375,7 @@ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { func (o *DiscoverAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -404,6 +413,7 @@ func (o *DiscoverAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byt // MarshalJSON marshals this object with additional properties into a JSON object func (o DiscoverAzureDatabaseDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -467,6 +477,7 @@ DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databas swagger:model DiscoverAzureDatabaseOKBody */ type DiscoverAzureDatabaseOKBody struct { + // azure database instance AzureDatabaseInstance []*DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 `json:"azure_database_instance"` } @@ -530,7 +541,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 swag.IsZero(o.AzureDatabaseInstance[i]) { // not required @@ -550,6 +563,7 @@ func (o *DiscoverAzureDatabaseOKBody) contextValidateAzureDatabaseInstance(ctx c return err } } + } return nil @@ -578,6 +592,7 @@ DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 DiscoverAzureDatabaseInst swagger:model DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 */ type DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 struct { + // Azure database instance ID. InstanceID string `json:"instance_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go index 25025685e10..02bdca91296 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go @@ -60,6 +60,7 @@ DiscoverElastiCacheParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type DiscoverElastiCacheParams struct { + // Body. Body DiscoverElastiCacheBody @@ -129,6 +130,7 @@ func (o *DiscoverElastiCacheParams) SetBody(body DiscoverElastiCacheBody) { // WriteToRequest writes these params to a swagger request func (o *DiscoverElastiCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go index a39781aee91..c7fd5643742 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go @@ -105,6 +105,7 @@ func (o *DiscoverElastiCacheOK) GetPayload() *DiscoverElastiCacheOKBody { } func (o *DiscoverElastiCacheOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverElastiCacheOKBody) // response payload @@ -178,6 +179,7 @@ func (o *DiscoverElastiCacheDefault) GetPayload() *DiscoverElastiCacheDefaultBod } func (o *DiscoverElastiCacheDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverElastiCacheDefaultBody) // response payload @@ -193,6 +195,7 @@ DiscoverElastiCacheBody discover elasti cache body swagger:model DiscoverElastiCacheBody */ type DiscoverElastiCacheBody struct { + // AWS Access key. Optional — if empty, the default credential chain is used. AWSAccessKey string `json:"aws_access_key,omitempty"` @@ -233,6 +236,7 @@ DiscoverElastiCacheDefaultBody discover elasti cache default body swagger:model DiscoverElastiCacheDefaultBody */ type DiscoverElastiCacheDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -302,7 +306,9 @@ func (o *DiscoverElastiCacheDefaultBody) ContextValidate(ctx context.Context, fo } func (o *DiscoverElastiCacheDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,6 +328,7 @@ func (o *DiscoverElastiCacheDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -350,6 +357,7 @@ DiscoverElastiCacheDefaultBodyDetailsItems0 discover elasti cache default body d swagger:model DiscoverElastiCacheDefaultBodyDetailsItems0 */ type DiscoverElastiCacheDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -361,6 +369,7 @@ type DiscoverElastiCacheDefaultBodyDetailsItems0 struct { func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -398,6 +407,7 @@ func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o DiscoverElastiCacheDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -461,6 +471,7 @@ DiscoverElastiCacheOKBody discover elasti cache OK body swagger:model DiscoverElastiCacheOKBody */ type DiscoverElastiCacheOKBody struct { + // elasticache instances ElasticacheInstances []*DiscoverElastiCacheOKBodyElasticacheInstancesItems0 `json:"elasticache_instances"` } @@ -524,7 +535,9 @@ func (o *DiscoverElastiCacheOKBody) ContextValidate(ctx context.Context, formats } func (o *DiscoverElastiCacheOKBody) contextValidateElasticacheInstances(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.ElasticacheInstances); i++ { + if o.ElasticacheInstances[i] != nil { if swag.IsZero(o.ElasticacheInstances[i]) { // not required @@ -544,6 +557,7 @@ func (o *DiscoverElastiCacheOKBody) contextValidateElasticacheInstances(ctx cont return err } } + } return nil @@ -572,6 +586,7 @@ DiscoverElastiCacheOKBodyElasticacheInstancesItems0 DiscoverElastiCacheInstance swagger:model DiscoverElastiCacheOKBodyElasticacheInstancesItems0 */ type DiscoverElastiCacheOKBodyElasticacheInstancesItems0 struct { + // AWS region. Region string `json:"region,omitempty"` diff --git a/api/management/v1/json/client/management_service/discover_rds_parameters.go b/api/management/v1/json/client/management_service/discover_rds_parameters.go index ef5c0058c50..93e9487d969 100644 --- a/api/management/v1/json/client/management_service/discover_rds_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/discover_rds_responses.go b/api/management/v1/json/client/management_service/discover_rds_responses.go index b8743c96b40..d0a66ec60d0 100644 --- a/api/management/v1/json/client/management_service/discover_rds_responses.go +++ b/api/management/v1/json/client/management_service/discover_rds_responses.go @@ -105,6 +105,7 @@ func (o *DiscoverRDSOK) GetPayload() *DiscoverRDSOKBody { } func (o *DiscoverRDSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverRDSOKBody) // response payload @@ -178,6 +179,7 @@ func (o *DiscoverRDSDefault) GetPayload() *DiscoverRDSDefaultBody { } func (o *DiscoverRDSDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(DiscoverRDSDefaultBody) // response payload @@ -193,6 +195,7 @@ DiscoverRDSBody discover RDS body swagger:model DiscoverRDSBody */ type DiscoverRDSBody struct { + // AWS Access key. Optional. AWSAccessKey string `json:"aws_access_key,omitempty"` @@ -233,6 +236,7 @@ DiscoverRDSDefaultBody discover RDS default body swagger:model DiscoverRDSDefaultBody */ type DiscoverRDSDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -302,7 +306,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 swag.IsZero(o.Details[i]) { // not required @@ -322,6 +328,7 @@ func (o *DiscoverRDSDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -350,6 +357,7 @@ DiscoverRDSDefaultBodyDetailsItems0 discover RDS default body details items0 swagger:model DiscoverRDSDefaultBodyDetailsItems0 */ type DiscoverRDSDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -361,6 +369,7 @@ type DiscoverRDSDefaultBodyDetailsItems0 struct { func (o *DiscoverRDSDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -398,6 +407,7 @@ func (o *DiscoverRDSDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o DiscoverRDSDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -461,6 +471,7 @@ DiscoverRDSOKBody discover RDS OK body swagger:model DiscoverRDSOKBody */ type DiscoverRDSOKBody struct { + // rds instances RDSInstances []*DiscoverRDSOKBodyRDSInstancesItems0 `json:"rds_instances"` } @@ -524,7 +535,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 swag.IsZero(o.RDSInstances[i]) { // not required @@ -544,6 +557,7 @@ func (o *DiscoverRDSOKBody) contextValidateRDSInstances(ctx context.Context, for return err } } + } return nil @@ -572,6 +586,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/management/v1/json/client/management_service/get_node_parameters.go b/api/management/v1/json/client/management_service/get_node_parameters.go index 63aa4bdf7c6..73629cc22da 100644 --- a/api/management/v1/json/client/management_service/get_node_parameters.go +++ b/api/management/v1/json/client/management_service/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 { + /* NodeID. Unique Node identifier. @@ -132,6 +133,7 @@ func (o *GetNodeParams) SetNodeID(nodeID string) { // 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/management/v1/json/client/management_service/get_node_responses.go b/api/management/v1/json/client/management_service/get_node_responses.go index 241eb92bed5..7d10fda71b9 100644 --- a/api/management/v1/json/client/management_service/get_node_responses.go +++ b/api/management/v1/json/client/management_service/get_node_responses.go @@ -105,6 +105,7 @@ func (o *GetNodeOK) GetPayload() *GetNodeOKBody { } func (o *GetNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetNodeOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetNodeDefault) GetPayload() *GetNodeDefaultBody { } func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetNodeDefaultBody) // response payload @@ -193,6 +195,7 @@ GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -310,6 +316,7 @@ GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type GetNodeDefaultBodyDetailsItems0 struct { func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { + // node Node *GetNodeOKBodyNode `json:"node,omitempty"` } @@ -477,6 +487,7 @@ func (o *GetNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetNodeOKBody) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { + if o.Node != nil { if swag.IsZero(o.Node) { // not required @@ -523,6 +534,7 @@ GetNodeOKBodyNode get node OK body node swagger:model GetNodeOKBodyNode */ type GetNodeOKBodyNode struct { + // Unique Node identifier. NodeID string `json:"node_id,omitempty"` @@ -770,7 +782,9 @@ func (o *GetNodeOKBodyNode) ContextValidate(ctx context.Context, formats strfmt. } func (o *GetNodeOKBodyNode) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Agents); i++ { + if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -790,13 +804,16 @@ func (o *GetNodeOKBodyNode) contextValidateAgents(ctx context.Context, formats s return err } } + } return nil } func (o *GetNodeOKBodyNode) contextValidateServices(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Services); i++ { + if o.Services[i] != nil { if swag.IsZero(o.Services[i]) { // not required @@ -816,6 +833,7 @@ func (o *GetNodeOKBodyNode) contextValidateServices(ctx context.Context, formats return err } } + } return nil @@ -844,6 +862,7 @@ GetNodeOKBodyNodeAgentsItems0 get node OK body node agents items0 swagger:model GetNodeOKBodyNodeAgentsItems0 */ type GetNodeOKBodyNodeAgentsItems0 struct { + // Unique Agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -890,6 +909,7 @@ GetNodeOKBodyNodeServicesItems0 Service represents a service running on a node. swagger:model GetNodeOKBodyNodeServicesItems0 */ type GetNodeOKBodyNodeServicesItems0 struct { + // Unique Service identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/list_agent_versions_parameters.go b/api/management/v1/json/client/management_service/list_agent_versions_parameters.go index d7f16fa9b2d..97d2ce24b71 100644 --- a/api/management/v1/json/client/management_service/list_agent_versions_parameters.go +++ b/api/management/v1/json/client/management_service/list_agent_versions_parameters.go @@ -115,6 +115,7 @@ func (o *ListAgentVersionsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListAgentVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_agent_versions_responses.go b/api/management/v1/json/client/management_service/list_agent_versions_responses.go index a0a8858d962..dc5b538faef 100644 --- a/api/management/v1/json/client/management_service/list_agent_versions_responses.go +++ b/api/management/v1/json/client/management_service/list_agent_versions_responses.go @@ -105,6 +105,7 @@ func (o *ListAgentVersionsOK) GetPayload() *ListAgentVersionsOKBody { } func (o *ListAgentVersionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentVersionsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListAgentVersionsDefault) GetPayload() *ListAgentVersionsDefaultBody { } func (o *ListAgentVersionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentVersionsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListAgentVersionsDefaultBody list agent versions default body swagger:model ListAgentVersionsDefaultBody */ type ListAgentVersionsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListAgentVersionsDefaultBody) ContextValidate(ctx context.Context, form } func (o *ListAgentVersionsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListAgentVersionsDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -310,6 +316,7 @@ ListAgentVersionsDefaultBodyDetailsItems0 list agent versions default body detai swagger:model ListAgentVersionsDefaultBodyDetailsItems0 */ type ListAgentVersionsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListAgentVersionsDefaultBodyDetailsItems0 struct { func (o *ListAgentVersionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListAgentVersionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) e // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAgentVersionsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListAgentVersionsOKBody list agent versions OK body swagger:model ListAgentVersionsOKBody */ type ListAgentVersionsOKBody struct { + // List of Agent versions. AgentVersions []*ListAgentVersionsOKBodyAgentVersionsItems0 `json:"agent_versions"` } @@ -484,7 +494,9 @@ func (o *ListAgentVersionsOKBody) ContextValidate(ctx context.Context, formats s } func (o *ListAgentVersionsOKBody) contextValidateAgentVersions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.AgentVersions); i++ { + if o.AgentVersions[i] != nil { if swag.IsZero(o.AgentVersions[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListAgentVersionsOKBody) contextValidateAgentVersions(ctx context.Conte return err } } + } return nil @@ -532,6 +545,7 @@ ListAgentVersionsOKBodyAgentVersionsItems0 list agent versions OK body agent ver swagger:model ListAgentVersionsOKBodyAgentVersionsItems0 */ type ListAgentVersionsOKBodyAgentVersionsItems0 struct { + // Agent ID. AgentID string `json:"agent_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/list_agents_parameters.go b/api/management/v1/json/client/management_service/list_agents_parameters.go index 5dd7b7b6a4f..7c16816c10a 100644 --- a/api/management/v1/json/client/management_service/list_agents_parameters.go +++ b/api/management/v1/json/client/management_service/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 { + /* NodeID. Return only Agents that relate to a specific NodeID. @@ -149,6 +150,7 @@ func (o *ListAgentsParams) SetServiceID(serviceID *string) { // 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 } @@ -164,6 +166,7 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qNodeID := qrNodeID if qNodeID != "" { + if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -180,6 +183,7 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qServiceID := qrServiceID if qServiceID != "" { + if err := r.SetQueryParam("service_id", qServiceID); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_agents_responses.go b/api/management/v1/json/client/management_service/list_agents_responses.go index 2da78ec1324..b808212608c 100644 --- a/api/management/v1/json/client/management_service/list_agents_responses.go +++ b/api/management/v1/json/client/management_service/list_agents_responses.go @@ -105,6 +105,7 @@ func (o *ListAgentsOK) GetPayload() *ListAgentsOKBody { } func (o *ListAgentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListAgentsDefault) GetPayload() *ListAgentsDefaultBody { } func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListAgentsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -310,6 +316,7 @@ ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListAgentsDefaultBodyDetailsItems0 struct { func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAgentsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { + // List of Agents. Agents []*ListAgentsOKBodyAgentsItems0 `json:"agents"` } @@ -484,7 +494,9 @@ func (o *ListAgentsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListAgentsOKBody) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Agents); i++ { + if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListAgentsOKBody) contextValidateAgents(ctx context.Context, formats st return err } } + } return nil @@ -532,6 +545,7 @@ ListAgentsOKBodyAgentsItems0 list agents OK body agents items0 swagger:model ListAgentsOKBodyAgentsItems0 */ type ListAgentsOKBodyAgentsItems0 struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -932,6 +946,7 @@ func (o *ListAgentsOKBodyAgentsItems0) ContextValidate(ctx context.Context, form } func (o *ListAgentsOKBodyAgentsItems0) contextValidateAzureOptions(ctx context.Context, formats strfmt.Registry) error { + if o.AzureOptions != nil { if swag.IsZero(o.AzureOptions) { // not required @@ -956,6 +971,7 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidateAzureOptions(ctx context.C } func (o *ListAgentsOKBodyAgentsItems0) contextValidateMongoDBOptions(ctx context.Context, formats strfmt.Registry) error { + if o.MongoDBOptions != nil { if swag.IsZero(o.MongoDBOptions) { // not required @@ -980,6 +996,7 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidateMongoDBOptions(ctx context } func (o *ListAgentsOKBodyAgentsItems0) contextValidateMysqlOptions(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlOptions != nil { if swag.IsZero(o.MysqlOptions) { // not required @@ -1004,6 +1021,7 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidateMysqlOptions(ctx context.C } func (o *ListAgentsOKBodyAgentsItems0) contextValidatePostgresqlOptions(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresqlOptions != nil { if swag.IsZero(o.PostgresqlOptions) { // not required @@ -1028,6 +1046,7 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidatePostgresqlOptions(ctx cont } func (o *ListAgentsOKBodyAgentsItems0) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -1074,6 +1093,7 @@ ListAgentsOKBodyAgentsItems0AzureOptions list agents OK body agents items0 azure swagger:model ListAgentsOKBodyAgentsItems0AzureOptions */ type ListAgentsOKBodyAgentsItems0AzureOptions struct { + // Azure client ID. ClientID string `json:"client_id,omitempty"` @@ -1123,6 +1143,7 @@ ListAgentsOKBodyAgentsItems0MongoDBOptions list agents OK body agents items0 mon swagger:model ListAgentsOKBodyAgentsItems0MongoDBOptions */ type ListAgentsOKBodyAgentsItems0MongoDBOptions struct { + // True if TLS certificate is set. IsTLSCertificateKeySet bool `json:"is_tls_certificate_key_set,omitempty"` @@ -1178,6 +1199,7 @@ ListAgentsOKBodyAgentsItems0MysqlOptions list agents OK body agents items0 mysql swagger:model ListAgentsOKBodyAgentsItems0MysqlOptions */ type ListAgentsOKBodyAgentsItems0MysqlOptions struct { + // True if TLS key is set. IsTLSKeySet bool `json:"is_tls_key_set,omitempty"` @@ -1218,6 +1240,7 @@ ListAgentsOKBodyAgentsItems0PostgresqlOptions list agents OK body agents items0 swagger:model ListAgentsOKBodyAgentsItems0PostgresqlOptions */ type ListAgentsOKBodyAgentsItems0PostgresqlOptions struct { + // True if TLS key is set. IsSslKeySet bool `json:"is_ssl_key_set,omitempty"` @@ -1261,6 +1284,7 @@ ListAgentsOKBodyAgentsItems0RtaOptions RTAOptions holds Real-Time Query Analytic swagger:model ListAgentsOKBodyAgentsItems0RtaOptions */ type ListAgentsOKBodyAgentsItems0RtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } diff --git a/api/management/v1/json/client/management_service/list_nodes_parameters.go b/api/management/v1/json/client/management_service/list_nodes_parameters.go index 441e42660e2..eeca2a1f5f7 100644 --- a/api/management/v1/json/client/management_service/list_nodes_parameters.go +++ b/api/management/v1/json/client/management_service/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 { + /* NodeType. Node type to be filtered out. @@ -85,7 +86,9 @@ func (o *ListNodesParams) WithDefaults() *ListNodesParams { // // All values with no default are reset to their zero value. func (o *ListNodesParams) SetDefaults() { - nodeTypeDefault := string("NODE_TYPE_UNSPECIFIED") + var ( + nodeTypeDefault = string("NODE_TYPE_UNSPECIFIED") + ) val := ListNodesParams{ NodeType: &nodeTypeDefault, @@ -143,6 +146,7 @@ func (o *ListNodesParams) SetNodeType(nodeType *string) { // 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 } @@ -158,6 +162,7 @@ func (o *ListNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg } qNodeType := qrNodeType if qNodeType != "" { + if err := r.SetQueryParam("node_type", qNodeType); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_nodes_responses.go b/api/management/v1/json/client/management_service/list_nodes_responses.go index d9f378b0034..e47d09aad07 100644 --- a/api/management/v1/json/client/management_service/list_nodes_responses.go +++ b/api/management/v1/json/client/management_service/list_nodes_responses.go @@ -105,6 +105,7 @@ func (o *ListNodesOK) GetPayload() *ListNodesOKBody { } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListNodesDefaultBody) // response payload @@ -193,6 +195,7 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -310,6 +316,7 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListNodesDefaultBodyDetailsItems0 struct { func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListNodesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { + // nodes Nodes []*ListNodesOKBodyNodesItems0 `json:"nodes"` } @@ -484,7 +494,9 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Nodes); i++ { + if o.Nodes[i] != nil { if swag.IsZero(o.Nodes[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strf return err } } + } return nil @@ -532,6 +545,7 @@ ListNodesOKBodyNodesItems0 list nodes OK body nodes items0 swagger:model ListNodesOKBodyNodesItems0 */ type ListNodesOKBodyNodesItems0 struct { + // Unique Node identifier. NodeID string `json:"node_id,omitempty"` @@ -779,7 +793,9 @@ func (o *ListNodesOKBodyNodesItems0) ContextValidate(ctx context.Context, format } func (o *ListNodesOKBodyNodesItems0) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Agents); i++ { + if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -799,13 +815,16 @@ func (o *ListNodesOKBodyNodesItems0) contextValidateAgents(ctx context.Context, return err } } + } return nil } func (o *ListNodesOKBodyNodesItems0) contextValidateServices(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Services); i++ { + if o.Services[i] != nil { if swag.IsZero(o.Services[i]) { // not required @@ -825,6 +844,7 @@ func (o *ListNodesOKBodyNodesItems0) contextValidateServices(ctx context.Context return err } } + } return nil @@ -853,6 +873,7 @@ ListNodesOKBodyNodesItems0AgentsItems0 list nodes OK body nodes items0 agents it swagger:model ListNodesOKBodyNodesItems0AgentsItems0 */ type ListNodesOKBodyNodesItems0AgentsItems0 struct { + // Unique Agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -899,6 +920,7 @@ ListNodesOKBodyNodesItems0ServicesItems0 Service represents a service running on swagger:model ListNodesOKBodyNodesItems0ServicesItems0 */ type ListNodesOKBodyNodesItems0ServicesItems0 struct { + // Unique Service identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/list_services_parameters.go b/api/management/v1/json/client/management_service/list_services_parameters.go index 80363638efa..d9a1cba1032 100644 --- a/api/management/v1/json/client/management_service/list_services_parameters.go +++ b/api/management/v1/json/client/management_service/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 { + /* ExternalGroup. Return only services in this external group. @@ -97,7 +98,9 @@ func (o *ListServicesParams) WithDefaults() *ListServicesParams { // // All values with no default are reset to their zero value. func (o *ListServicesParams) SetDefaults() { - serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") + var ( + serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") + ) val := ListServicesParams{ ServiceType: &serviceTypeDefault, @@ -177,6 +180,7 @@ func (o *ListServicesParams) SetServiceType(serviceType *string) { // 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 } @@ -192,6 +196,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qExternalGroup := qrExternalGroup if qExternalGroup != "" { + if err := r.SetQueryParam("external_group", qExternalGroup); err != nil { return err } @@ -208,6 +213,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qNodeID := qrNodeID if qNodeID != "" { + if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -224,6 +230,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qServiceType := qrServiceType if qServiceType != "" { + if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_services_responses.go b/api/management/v1/json/client/management_service/list_services_responses.go index d9fcccd96b2..4570a26e435 100644 --- a/api/management/v1/json/client/management_service/list_services_responses.go +++ b/api/management/v1/json/client/management_service/list_services_responses.go @@ -105,6 +105,7 @@ func (o *ListServicesOK) GetPayload() *ListServicesOKBody { } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesDefaultBody) // response payload @@ -193,6 +195,7 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -310,6 +316,7 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListServicesDefaultBodyDetailsItems0 struct { func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { + // List of Services. Services []*ListServicesOKBodyServicesItems0 `json:"services"` } @@ -484,7 +494,9 @@ func (o *ListServicesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListServicesOKBody) contextValidateServices(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Services); i++ { + if o.Services[i] != nil { if swag.IsZero(o.Services[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListServicesOKBody) contextValidateServices(ctx context.Context, format return err } } + } return nil @@ -532,6 +545,7 @@ ListServicesOKBodyServicesItems0 list services OK body services items0 swagger:model ListServicesOKBodyServicesItems0 */ type ListServicesOKBodyServicesItems0 struct { + // Unique service identifier. ServiceID string `json:"service_id,omitempty"` @@ -744,7 +758,9 @@ func (o *ListServicesOKBodyServicesItems0) ContextValidate(ctx context.Context, } func (o *ListServicesOKBodyServicesItems0) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Agents); i++ { + if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -764,6 +780,7 @@ func (o *ListServicesOKBodyServicesItems0) contextValidateAgents(ctx context.Con return err } } + } return nil @@ -792,6 +809,7 @@ ListServicesOKBodyServicesItems0AgentsItems0 list services OK body services item swagger:model ListServicesOKBodyServicesItems0AgentsItems0 */ type ListServicesOKBodyServicesItems0AgentsItems0 struct { + // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -1192,6 +1210,7 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) ContextValidate(ctx conte } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateAzureOptions(ctx context.Context, formats strfmt.Registry) error { + if o.AzureOptions != nil { if swag.IsZero(o.AzureOptions) { // not required @@ -1216,6 +1235,7 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateAzureOptio } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMongoDBOptions(ctx context.Context, formats strfmt.Registry) error { + if o.MongoDBOptions != nil { if swag.IsZero(o.MongoDBOptions) { // not required @@ -1240,6 +1260,7 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMongoDBOpt } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMysqlOptions(ctx context.Context, formats strfmt.Registry) error { + if o.MysqlOptions != nil { if swag.IsZero(o.MysqlOptions) { // not required @@ -1264,6 +1285,7 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMysqlOptio } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidatePostgresqlOptions(ctx context.Context, formats strfmt.Registry) error { + if o.PostgresqlOptions != nil { if swag.IsZero(o.PostgresqlOptions) { // not required @@ -1288,6 +1310,7 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidatePostgresql } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { + if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -1334,6 +1357,7 @@ ListServicesOKBodyServicesItems0AgentsItems0AzureOptions list services OK body s swagger:model ListServicesOKBodyServicesItems0AgentsItems0AzureOptions */ type ListServicesOKBodyServicesItems0AgentsItems0AzureOptions struct { + // Azure client ID. ClientID string `json:"client_id,omitempty"` @@ -1383,6 +1407,7 @@ ListServicesOKBodyServicesItems0AgentsItems0MongoDBOptions list services OK body swagger:model ListServicesOKBodyServicesItems0AgentsItems0MongoDBOptions */ type ListServicesOKBodyServicesItems0AgentsItems0MongoDBOptions struct { + // True if TLS certificate is set. IsTLSCertificateKeySet bool `json:"is_tls_certificate_key_set,omitempty"` @@ -1438,6 +1463,7 @@ ListServicesOKBodyServicesItems0AgentsItems0MysqlOptions list services OK body s swagger:model ListServicesOKBodyServicesItems0AgentsItems0MysqlOptions */ type ListServicesOKBodyServicesItems0AgentsItems0MysqlOptions struct { + // True if TLS key is set. IsTLSKeySet bool `json:"is_tls_key_set,omitempty"` @@ -1478,6 +1504,7 @@ ListServicesOKBodyServicesItems0AgentsItems0PostgresqlOptions list services OK b swagger:model ListServicesOKBodyServicesItems0AgentsItems0PostgresqlOptions */ type ListServicesOKBodyServicesItems0AgentsItems0PostgresqlOptions struct { + // True if TLS key is set. IsSslKeySet bool `json:"is_ssl_key_set,omitempty"` @@ -1521,6 +1548,7 @@ ListServicesOKBodyServicesItems0AgentsItems0RtaOptions RTAOptions holds Real-Tim swagger:model ListServicesOKBodyServicesItems0AgentsItems0RtaOptions */ type ListServicesOKBodyServicesItems0AgentsItems0RtaOptions struct { + // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } diff --git a/api/management/v1/json/client/management_service/register_node_parameters.go b/api/management/v1/json/client/management_service/register_node_parameters.go index a614118a70b..5de06b5b324 100644 --- a/api/management/v1/json/client/management_service/register_node_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/register_node_responses.go b/api/management/v1/json/client/management_service/register_node_responses.go index eb4ec67a210..17a6b86d6f1 100644 --- a/api/management/v1/json/client/management_service/register_node_responses.go +++ b/api/management/v1/json/client/management_service/register_node_responses.go @@ -105,6 +105,7 @@ func (o *RegisterNodeOK) GetPayload() *RegisterNodeOKBody { } func (o *RegisterNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RegisterNodeOKBody) // response payload @@ -178,6 +179,7 @@ func (o *RegisterNodeDefault) GetPayload() *RegisterNodeDefaultBody { } func (o *RegisterNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RegisterNodeDefaultBody) // response payload @@ -193,6 +195,7 @@ RegisterNodeBody register node body swagger:model RegisterNodeBody */ type RegisterNodeBody struct { + // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -398,6 +401,7 @@ RegisterNodeDefaultBody register node default body swagger:model RegisterNodeDefaultBody */ type RegisterNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -467,7 +471,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 swag.IsZero(o.Details[i]) { // not required @@ -487,6 +493,7 @@ func (o *RegisterNodeDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -515,6 +522,7 @@ RegisterNodeDefaultBodyDetailsItems0 register node default body details items0 swagger:model RegisterNodeDefaultBodyDetailsItems0 */ type RegisterNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -526,6 +534,7 @@ type RegisterNodeDefaultBodyDetailsItems0 struct { func (o *RegisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -563,6 +572,7 @@ func (o *RegisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RegisterNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -626,6 +636,7 @@ RegisterNodeOKBody register node OK body swagger:model RegisterNodeOKBody */ type RegisterNodeOKBody struct { + // Token represents token for vmagent auth config. Token string `json:"token,omitempty"` @@ -756,6 +767,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 swag.IsZero(o.ContainerNode) { // not required @@ -780,6 +792,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 swag.IsZero(o.GenericNode) { // not required @@ -804,6 +817,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 swag.IsZero(o.PMMAgent) { // not required @@ -850,6 +864,7 @@ RegisterNodeOKBodyContainerNode ContainerNode represents a Docker container. swagger:model RegisterNodeOKBodyContainerNode */ type RegisterNodeOKBodyContainerNode struct { + // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -917,6 +932,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"` @@ -981,6 +997,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/management/v1/json/client/management_service/remove_service_parameters.go b/api/management/v1/json/client/management_service/remove_service_parameters.go index 16511c1b2e4..7700f224248 100644 --- a/api/management/v1/json/client/management_service/remove_service_parameters.go +++ b/api/management/v1/json/client/management_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 { + /* ServiceID. Either a Service ID or a Service Name. @@ -91,7 +92,9 @@ func (o *RemoveServiceParams) WithDefaults() *RemoveServiceParams { // // All values with no default are reset to their zero value. func (o *RemoveServiceParams) SetDefaults() { - serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") + var ( + serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") + ) val := RemoveServiceParams{ ServiceType: &serviceTypeDefault, @@ -160,6 +163,7 @@ func (o *RemoveServiceParams) SetServiceType(serviceType *string) { // 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 } @@ -180,6 +184,7 @@ func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qServiceType := qrServiceType if qServiceType != "" { + if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/remove_service_responses.go b/api/management/v1/json/client/management_service/remove_service_responses.go index b9b54fc46ba..04adf4f9132 100644 --- a/api/management/v1/json/client/management_service/remove_service_responses.go +++ b/api/management/v1/json/client/management_service/remove_service_responses.go @@ -104,6 +104,7 @@ func (o *RemoveServiceOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -190,6 +192,7 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -307,6 +313,7 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type RemoveServiceDefaultBodyDetailsItems0 struct { func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/management/v1/json/client/management_service/unregister_node_parameters.go b/api/management/v1/json/client/management_service/unregister_node_parameters.go index 069530e44b2..21d279574a5 100644 --- a/api/management/v1/json/client/management_service/unregister_node_parameters.go +++ b/api/management/v1/json/client/management_service/unregister_node_parameters.go @@ -61,6 +61,7 @@ UnregisterNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UnregisterNodeParams struct { + /* Force. Force delete node, related service account, even if it has more service tokens attached. @@ -150,6 +151,7 @@ func (o *UnregisterNodeParams) SetNodeID(nodeID string) { // WriteToRequest writes these params to a swagger request func (o *UnregisterNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -165,6 +167,7 @@ func (o *UnregisterNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfm } qForce := swag.FormatBool(qrForce) if qForce != "" { + if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/unregister_node_responses.go b/api/management/v1/json/client/management_service/unregister_node_responses.go index a935e26136f..baa8ef3d866 100644 --- a/api/management/v1/json/client/management_service/unregister_node_responses.go +++ b/api/management/v1/json/client/management_service/unregister_node_responses.go @@ -104,6 +104,7 @@ func (o *UnregisterNodeOK) GetPayload() *UnregisterNodeOKBody { } func (o *UnregisterNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UnregisterNodeOKBody) // response payload @@ -177,6 +178,7 @@ func (o *UnregisterNodeDefault) GetPayload() *UnregisterNodeDefaultBody { } func (o *UnregisterNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UnregisterNodeDefaultBody) // response payload @@ -192,6 +194,7 @@ UnregisterNodeDefaultBody unregister node default body swagger:model UnregisterNodeDefaultBody */ type UnregisterNodeDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *UnregisterNodeDefaultBody) ContextValidate(ctx context.Context, formats } func (o *UnregisterNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *UnregisterNodeDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -309,6 +315,7 @@ UnregisterNodeDefaultBodyDetailsItems0 unregister node default body details item swagger:model UnregisterNodeDefaultBodyDetailsItems0 */ type UnregisterNodeDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type UnregisterNodeDefaultBodyDetailsItems0 struct { func (o *UnregisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *UnregisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o UnregisterNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ UnregisterNodeOKBody unregister node OK body swagger:model UnregisterNodeOKBody */ type UnregisterNodeOKBody struct { + // Warning message if there are more service tokens attached to service account. Warning string `json:"warning,omitempty"` } diff --git a/api/management/v1/metrics.pb.go b/api/management/v1/metrics.pb.go index 748642db7cb..4e15adc6171 100644 --- a/api/management/v1/metrics.pb.go +++ b/api/management/v1/metrics.pb.go @@ -7,12 +7,11 @@ package managementv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -97,13 +96,10 @@ func file_management_v1_metrics_proto_rawDescGZIP() []byte { return file_management_v1_metrics_proto_rawDescData } -var ( - file_management_v1_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_metrics_proto_goTypes = []any{ - MetricsMode(0), // 0: management.v1.MetricsMode - } -) - +var file_management_v1_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_metrics_proto_goTypes = []any{ + (MetricsMode)(0), // 0: management.v1.MetricsMode +} var file_management_v1_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/management/v1/mongodb.pb.go b/api/management/v1/mongodb.pb.go index d32ec31453b..3181c2fd833 100644 --- a/api/management/v1/mongodb.pb.go +++ b/api/management/v1/mongodb.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -531,23 +529,20 @@ func file_management_v1_mongodb_proto_rawDescGZIP() []byte { return file_management_v1_mongodb_proto_rawDescData } -var ( - file_management_v1_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_management_v1_mongodb_proto_goTypes = []any{ - (*AddMongoDBServiceParams)(nil), // 0: management.v1.AddMongoDBServiceParams - (*MongoDBServiceResult)(nil), // 1: management.v1.MongoDBServiceResult - nil, // 2: management.v1.AddMongoDBServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - MetricsMode(0), // 4: management.v1.MetricsMode - v1.LogLevel(0), // 5: inventory.v1.LogLevel - (*v1.MongoDBService)(nil), // 6: inventory.v1.MongoDBService - (*v1.MongoDBExporter)(nil), // 7: inventory.v1.MongoDBExporter - (*v1.QANMongoDBProfilerAgent)(nil), // 8: inventory.v1.QANMongoDBProfilerAgent - (*v1.QANMongoDBMongologAgent)(nil), // 9: inventory.v1.QANMongoDBMongologAgent - (*v1.RTAMongoDBAgent)(nil), // 10: inventory.v1.RTAMongoDBAgent - } -) - +var file_management_v1_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_management_v1_mongodb_proto_goTypes = []any{ + (*AddMongoDBServiceParams)(nil), // 0: management.v1.AddMongoDBServiceParams + (*MongoDBServiceResult)(nil), // 1: management.v1.MongoDBServiceResult + nil, // 2: management.v1.AddMongoDBServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.MongoDBService)(nil), // 6: inventory.v1.MongoDBService + (*v1.MongoDBExporter)(nil), // 7: inventory.v1.MongoDBExporter + (*v1.QANMongoDBProfilerAgent)(nil), // 8: inventory.v1.QANMongoDBProfilerAgent + (*v1.QANMongoDBMongologAgent)(nil), // 9: inventory.v1.QANMongoDBMongologAgent + (*v1.RTAMongoDBAgent)(nil), // 10: inventory.v1.RTAMongoDBAgent +} var file_management_v1_mongodb_proto_depIdxs = []int32{ 3, // 0: management.v1.AddMongoDBServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMongoDBServiceParams.custom_labels:type_name -> management.v1.AddMongoDBServiceParams.CustomLabelsEntry diff --git a/api/management/v1/mongodb.pb.validate.go b/api/management/v1/mongodb.pb.validate.go index 7e5bd8733a4..3a2ef1fc711 100644 --- a/api/management/v1/mongodb.pb.validate.go +++ b/api/management/v1/mongodb.pb.validate.go @@ -237,8 +237,7 @@ func (e AddMongoDBServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddMongoDBServiceParamsValidationError{} @@ -485,8 +484,7 @@ func (e MongoDBServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MongoDBServiceResultValidationError{} diff --git a/api/management/v1/mysql.pb.go b/api/management/v1/mysql.pb.go index 70955b05d3d..a68a2abac59 100644 --- a/api/management/v1/mysql.pb.go +++ b/api/management/v1/mysql.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -517,23 +515,20 @@ func file_management_v1_mysql_proto_rawDescGZIP() []byte { return file_management_v1_mysql_proto_rawDescData } -var ( - file_management_v1_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 4) - file_management_v1_mysql_proto_goTypes = []any{ - (*AddMySQLServiceParams)(nil), // 0: management.v1.AddMySQLServiceParams - (*MySQLServiceResult)(nil), // 1: management.v1.MySQLServiceResult - nil, // 2: management.v1.AddMySQLServiceParams.CustomLabelsEntry - nil, // 3: management.v1.AddMySQLServiceParams.ExtraDsnParamsEntry - (*AddNodeParams)(nil), // 4: management.v1.AddNodeParams - MetricsMode(0), // 5: management.v1.MetricsMode - v1.LogLevel(0), // 6: inventory.v1.LogLevel - (*v1.MySQLService)(nil), // 7: inventory.v1.MySQLService - (*v1.MySQLdExporter)(nil), // 8: inventory.v1.MySQLdExporter - (*v1.QANMySQLPerfSchemaAgent)(nil), // 9: inventory.v1.QANMySQLPerfSchemaAgent - (*v1.QANMySQLSlowlogAgent)(nil), // 10: inventory.v1.QANMySQLSlowlogAgent - } -) - +var file_management_v1_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_management_v1_mysql_proto_goTypes = []any{ + (*AddMySQLServiceParams)(nil), // 0: management.v1.AddMySQLServiceParams + (*MySQLServiceResult)(nil), // 1: management.v1.MySQLServiceResult + nil, // 2: management.v1.AddMySQLServiceParams.CustomLabelsEntry + nil, // 3: management.v1.AddMySQLServiceParams.ExtraDsnParamsEntry + (*AddNodeParams)(nil), // 4: management.v1.AddNodeParams + (MetricsMode)(0), // 5: management.v1.MetricsMode + (v1.LogLevel)(0), // 6: inventory.v1.LogLevel + (*v1.MySQLService)(nil), // 7: inventory.v1.MySQLService + (*v1.MySQLdExporter)(nil), // 8: inventory.v1.MySQLdExporter + (*v1.QANMySQLPerfSchemaAgent)(nil), // 9: inventory.v1.QANMySQLPerfSchemaAgent + (*v1.QANMySQLSlowlogAgent)(nil), // 10: inventory.v1.QANMySQLSlowlogAgent +} var file_management_v1_mysql_proto_depIdxs = []int32{ 4, // 0: management.v1.AddMySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMySQLServiceParams.custom_labels:type_name -> management.v1.AddMySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/mysql.pb.validate.go b/api/management/v1/mysql.pb.validate.go index 41fa810fdbd..da50d9a1db8 100644 --- a/api/management/v1/mysql.pb.validate.go +++ b/api/management/v1/mysql.pb.validate.go @@ -246,8 +246,7 @@ func (e AddMySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddMySQLServiceParamsValidationError{} @@ -467,8 +466,7 @@ func (e MySQLServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MySQLServiceResultValidationError{} diff --git a/api/management/v1/node.pb.go b/api/management/v1/node.pb.go index 149fb30ad94..b1382860ae2 100644 --- a/api/management/v1/node.pb.go +++ b/api/management/v1/node.pb.go @@ -7,17 +7,15 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -1227,35 +1225,32 @@ func file_management_v1_node_proto_rawDescGZIP() []byte { return file_management_v1_node_proto_rawDescData } -var ( - file_management_v1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 15) - file_management_v1_node_proto_goTypes = []any{ - UniversalNode_Status(0), // 0: management.v1.UniversalNode.Status - (*AddNodeParams)(nil), // 1: management.v1.AddNodeParams - (*RegisterNodeRequest)(nil), // 2: management.v1.RegisterNodeRequest - (*RegisterNodeResponse)(nil), // 3: management.v1.RegisterNodeResponse - (*UnregisterNodeRequest)(nil), // 4: management.v1.UnregisterNodeRequest - (*UnregisterNodeResponse)(nil), // 5: management.v1.UnregisterNodeResponse - (*UniversalNode)(nil), // 6: management.v1.UniversalNode - (*ListNodesRequest)(nil), // 7: management.v1.ListNodesRequest - (*ListNodesResponse)(nil), // 8: management.v1.ListNodesResponse - (*GetNodeRequest)(nil), // 9: management.v1.GetNodeRequest - (*GetNodeResponse)(nil), // 10: management.v1.GetNodeResponse - nil, // 11: management.v1.AddNodeParams.CustomLabelsEntry - nil, // 12: management.v1.RegisterNodeRequest.CustomLabelsEntry - (*UniversalNode_Service)(nil), // 13: management.v1.UniversalNode.Service - (*UniversalNode_Agent)(nil), // 14: management.v1.UniversalNode.Agent - nil, // 15: management.v1.UniversalNode.CustomLabelsEntry - v1.NodeType(0), // 16: inventory.v1.NodeType - MetricsMode(0), // 17: management.v1.MetricsMode - (*v1.GenericNode)(nil), // 18: inventory.v1.GenericNode - (*v1.ContainerNode)(nil), // 19: inventory.v1.ContainerNode - (*v1.PMMAgent)(nil), // 20: inventory.v1.PMMAgent - (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp - } -) - +var file_management_v1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_management_v1_node_proto_goTypes = []any{ + (UniversalNode_Status)(0), // 0: management.v1.UniversalNode.Status + (*AddNodeParams)(nil), // 1: management.v1.AddNodeParams + (*RegisterNodeRequest)(nil), // 2: management.v1.RegisterNodeRequest + (*RegisterNodeResponse)(nil), // 3: management.v1.RegisterNodeResponse + (*UnregisterNodeRequest)(nil), // 4: management.v1.UnregisterNodeRequest + (*UnregisterNodeResponse)(nil), // 5: management.v1.UnregisterNodeResponse + (*UniversalNode)(nil), // 6: management.v1.UniversalNode + (*ListNodesRequest)(nil), // 7: management.v1.ListNodesRequest + (*ListNodesResponse)(nil), // 8: management.v1.ListNodesResponse + (*GetNodeRequest)(nil), // 9: management.v1.GetNodeRequest + (*GetNodeResponse)(nil), // 10: management.v1.GetNodeResponse + nil, // 11: management.v1.AddNodeParams.CustomLabelsEntry + nil, // 12: management.v1.RegisterNodeRequest.CustomLabelsEntry + (*UniversalNode_Service)(nil), // 13: management.v1.UniversalNode.Service + (*UniversalNode_Agent)(nil), // 14: management.v1.UniversalNode.Agent + nil, // 15: management.v1.UniversalNode.CustomLabelsEntry + (v1.NodeType)(0), // 16: inventory.v1.NodeType + (MetricsMode)(0), // 17: management.v1.MetricsMode + (*v1.GenericNode)(nil), // 18: inventory.v1.GenericNode + (*v1.ContainerNode)(nil), // 19: inventory.v1.ContainerNode + (*v1.PMMAgent)(nil), // 20: inventory.v1.PMMAgent + (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp +} var file_management_v1_node_proto_depIdxs = []int32{ 16, // 0: management.v1.AddNodeParams.node_type:type_name -> inventory.v1.NodeType 11, // 1: management.v1.AddNodeParams.custom_labels:type_name -> management.v1.AddNodeParams.CustomLabelsEntry diff --git a/api/management/v1/node.pb.validate.go b/api/management/v1/node.pb.validate.go index 34411b3f938..62a389ade8a 100644 --- a/api/management/v1/node.pb.validate.go +++ b/api/management/v1/node.pb.validate.go @@ -155,8 +155,7 @@ func (e AddNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddNodeParamsValidationError{} @@ -299,8 +298,7 @@ func (e RegisterNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RegisterNodeRequestValidationError{} @@ -493,8 +491,7 @@ func (e RegisterNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RegisterNodeResponseValidationError{} @@ -609,8 +606,7 @@ func (e UnregisterNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UnregisterNodeRequestValidationError{} @@ -714,8 +710,7 @@ func (e UnregisterNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UnregisterNodeResponseValidationError{} @@ -971,8 +966,7 @@ func (e UniversalNodeValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalNodeValidationError{} @@ -1074,8 +1068,7 @@ func (e ListNodesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListNodesRequestValidationError{} @@ -1211,8 +1204,7 @@ func (e ListNodesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListNodesResponseValidationError{} @@ -1323,8 +1315,7 @@ func (e GetNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetNodeRequestValidationError{} @@ -1453,8 +1444,7 @@ func (e GetNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetNodeResponseValidationError{} @@ -1562,8 +1552,7 @@ func (e UniversalNode_ServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalNode_ServiceValidationError{} @@ -1673,8 +1662,7 @@ func (e UniversalNode_AgentValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalNode_AgentValidationError{} diff --git a/api/management/v1/postgresql.pb.go b/api/management/v1/postgresql.pb.go index 497c80c298f..ce4a880bdee 100644 --- a/api/management/v1/postgresql.pb.go +++ b/api/management/v1/postgresql.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -508,22 +506,19 @@ func file_management_v1_postgresql_proto_rawDescGZIP() []byte { return file_management_v1_postgresql_proto_rawDescData } -var ( - file_management_v1_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_management_v1_postgresql_proto_goTypes = []any{ - (*AddPostgreSQLServiceParams)(nil), // 0: management.v1.AddPostgreSQLServiceParams - (*PostgreSQLServiceResult)(nil), // 1: management.v1.PostgreSQLServiceResult - nil, // 2: management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - MetricsMode(0), // 4: management.v1.MetricsMode - v1.LogLevel(0), // 5: inventory.v1.LogLevel - (*v1.PostgreSQLService)(nil), // 6: inventory.v1.PostgreSQLService - (*v1.PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter - (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.v1.QANPostgreSQLPgStatementsAgent - (*v1.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.v1.QANPostgreSQLPgStatMonitorAgent - } -) - +var file_management_v1_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_management_v1_postgresql_proto_goTypes = []any{ + (*AddPostgreSQLServiceParams)(nil), // 0: management.v1.AddPostgreSQLServiceParams + (*PostgreSQLServiceResult)(nil), // 1: management.v1.PostgreSQLServiceResult + nil, // 2: management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.PostgreSQLService)(nil), // 6: inventory.v1.PostgreSQLService + (*v1.PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter + (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.v1.QANPostgreSQLPgStatementsAgent + (*v1.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.v1.QANPostgreSQLPgStatMonitorAgent +} var file_management_v1_postgresql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddPostgreSQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddPostgreSQLServiceParams.custom_labels:type_name -> management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/postgresql.pb.validate.go b/api/management/v1/postgresql.pb.validate.go index bf7e90eae17..bb9a930bb42 100644 --- a/api/management/v1/postgresql.pb.validate.go +++ b/api/management/v1/postgresql.pb.validate.go @@ -246,8 +246,7 @@ func (e AddPostgreSQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddPostgreSQLServiceParamsValidationError{} @@ -467,8 +466,7 @@ func (e PostgreSQLServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PostgreSQLServiceResultValidationError{} diff --git a/api/management/v1/proxysql.pb.go b/api/management/v1/proxysql.pb.go index f4f75b01fa1..b7812ea753b 100644 --- a/api/management/v1/proxysql.pb.go +++ b/api/management/v1/proxysql.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -370,20 +368,17 @@ func file_management_v1_proxysql_proto_rawDescGZIP() []byte { return file_management_v1_proxysql_proto_rawDescData } -var ( - file_management_v1_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_management_v1_proxysql_proto_goTypes = []any{ - (*AddProxySQLServiceParams)(nil), // 0: management.v1.AddProxySQLServiceParams - (*ProxySQLServiceResult)(nil), // 1: management.v1.ProxySQLServiceResult - nil, // 2: management.v1.AddProxySQLServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - MetricsMode(0), // 4: management.v1.MetricsMode - v1.LogLevel(0), // 5: inventory.v1.LogLevel - (*v1.ProxySQLService)(nil), // 6: inventory.v1.ProxySQLService - (*v1.ProxySQLExporter)(nil), // 7: inventory.v1.ProxySQLExporter - } -) - +var file_management_v1_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_management_v1_proxysql_proto_goTypes = []any{ + (*AddProxySQLServiceParams)(nil), // 0: management.v1.AddProxySQLServiceParams + (*ProxySQLServiceResult)(nil), // 1: management.v1.ProxySQLServiceResult + nil, // 2: management.v1.AddProxySQLServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.ProxySQLService)(nil), // 6: inventory.v1.ProxySQLService + (*v1.ProxySQLExporter)(nil), // 7: inventory.v1.ProxySQLExporter +} var file_management_v1_proxysql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddProxySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddProxySQLServiceParams.custom_labels:type_name -> management.v1.AddProxySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/proxysql.pb.validate.go b/api/management/v1/proxysql.pb.validate.go index 7deb4365f60..d9fea3aff85 100644 --- a/api/management/v1/proxysql.pb.validate.go +++ b/api/management/v1/proxysql.pb.validate.go @@ -224,8 +224,7 @@ func (e AddProxySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddProxySQLServiceParamsValidationError{} @@ -385,8 +384,7 @@ func (e ProxySQLServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ProxySQLServiceResultValidationError{} diff --git a/api/management/v1/rds.pb.go b/api/management/v1/rds.pb.go index 3200aa01c3a..a630ff2c94d 100644 --- a/api/management/v1/rds.pb.go +++ b/api/management/v1/rds.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -820,29 +818,26 @@ func file_management_v1_rds_proto_rawDescGZIP() []byte { return file_management_v1_rds_proto_rawDescData } -var ( - file_management_v1_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_management_v1_rds_proto_goTypes = []any{ - DiscoverRDSEngine(0), // 0: management.v1.DiscoverRDSEngine - (*DiscoverRDSInstance)(nil), // 1: management.v1.DiscoverRDSInstance - (*DiscoverRDSRequest)(nil), // 2: management.v1.DiscoverRDSRequest - (*DiscoverRDSResponse)(nil), // 3: management.v1.DiscoverRDSResponse - (*AddRDSServiceParams)(nil), // 4: management.v1.AddRDSServiceParams - (*RDSServiceResult)(nil), // 5: management.v1.RDSServiceResult - nil, // 6: management.v1.AddRDSServiceParams.CustomLabelsEntry - MetricsMode(0), // 7: management.v1.MetricsMode - (*v1.RemoteRDSNode)(nil), // 8: inventory.v1.RemoteRDSNode - (*v1.RDSExporter)(nil), // 9: inventory.v1.RDSExporter - (*v1.MySQLService)(nil), // 10: inventory.v1.MySQLService - (*v1.MySQLdExporter)(nil), // 11: inventory.v1.MySQLdExporter - (*v1.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.v1.QANMySQLPerfSchemaAgent - (*v1.PostgreSQLService)(nil), // 13: inventory.v1.PostgreSQLService - (*v1.PostgresExporter)(nil), // 14: inventory.v1.PostgresExporter - (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.v1.QANPostgreSQLPgStatementsAgent - } -) - +var file_management_v1_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_management_v1_rds_proto_goTypes = []any{ + (DiscoverRDSEngine)(0), // 0: management.v1.DiscoverRDSEngine + (*DiscoverRDSInstance)(nil), // 1: management.v1.DiscoverRDSInstance + (*DiscoverRDSRequest)(nil), // 2: management.v1.DiscoverRDSRequest + (*DiscoverRDSResponse)(nil), // 3: management.v1.DiscoverRDSResponse + (*AddRDSServiceParams)(nil), // 4: management.v1.AddRDSServiceParams + (*RDSServiceResult)(nil), // 5: management.v1.RDSServiceResult + nil, // 6: management.v1.AddRDSServiceParams.CustomLabelsEntry + (MetricsMode)(0), // 7: management.v1.MetricsMode + (*v1.RemoteRDSNode)(nil), // 8: inventory.v1.RemoteRDSNode + (*v1.RDSExporter)(nil), // 9: inventory.v1.RDSExporter + (*v1.MySQLService)(nil), // 10: inventory.v1.MySQLService + (*v1.MySQLdExporter)(nil), // 11: inventory.v1.MySQLdExporter + (*v1.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.v1.QANMySQLPerfSchemaAgent + (*v1.PostgreSQLService)(nil), // 13: inventory.v1.PostgreSQLService + (*v1.PostgresExporter)(nil), // 14: inventory.v1.PostgresExporter + (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.v1.QANPostgreSQLPgStatementsAgent +} var file_management_v1_rds_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverRDSInstance.engine:type_name -> management.v1.DiscoverRDSEngine 1, // 1: management.v1.DiscoverRDSResponse.rds_instances:type_name -> management.v1.DiscoverRDSInstance diff --git a/api/management/v1/rds.pb.validate.go b/api/management/v1/rds.pb.validate.go index 4db2755f17a..920bb97dbf1 100644 --- a/api/management/v1/rds.pb.validate.go +++ b/api/management/v1/rds.pb.validate.go @@ -140,8 +140,7 @@ func (e DiscoverRDSInstanceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DiscoverRDSInstanceValidationError{} @@ -247,8 +246,7 @@ func (e DiscoverRDSRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DiscoverRDSRequestValidationError{} @@ -384,8 +382,7 @@ func (e DiscoverRDSResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DiscoverRDSResponseValidationError{} @@ -600,8 +597,7 @@ func (e AddRDSServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddRDSServiceParamsValidationError{} @@ -933,8 +929,7 @@ func (e RDSServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RDSServiceResultValidationError{} diff --git a/api/management/v1/service.pb.go b/api/management/v1/service.pb.go index bcd139244d9..9bb541ec239 100644 --- a/api/management/v1/service.pb.go +++ b/api/management/v1/service.pb.go @@ -7,17 +7,15 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -986,65 +984,62 @@ func file_management_v1_service_proto_rawDescGZIP() []byte { return file_management_v1_service_proto_rawDescData } -var ( - file_management_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) - file_management_v1_service_proto_goTypes = []any{ - (UniversalService_Status)(0), // 0: management.v1.UniversalService.Status - (*AddServiceRequest)(nil), // 1: management.v1.AddServiceRequest - (*AddServiceResponse)(nil), // 2: management.v1.AddServiceResponse - (*RemoveServiceRequest)(nil), // 3: management.v1.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 4: management.v1.RemoveServiceResponse - (*UniversalService)(nil), // 5: management.v1.UniversalService - (*ListServicesRequest)(nil), // 6: management.v1.ListServicesRequest - (*ListServicesResponse)(nil), // 7: management.v1.ListServicesResponse - nil, // 8: management.v1.UniversalService.CustomLabelsEntry - (*AddMySQLServiceParams)(nil), // 9: management.v1.AddMySQLServiceParams - (*AddMongoDBServiceParams)(nil), // 10: management.v1.AddMongoDBServiceParams - (*AddPostgreSQLServiceParams)(nil), // 11: management.v1.AddPostgreSQLServiceParams - (*AddProxySQLServiceParams)(nil), // 12: management.v1.AddProxySQLServiceParams - (*AddHAProxyServiceParams)(nil), // 13: management.v1.AddHAProxyServiceParams - (*AddExternalServiceParams)(nil), // 14: management.v1.AddExternalServiceParams - (*AddRDSServiceParams)(nil), // 15: management.v1.AddRDSServiceParams - (*AddValkeyServiceParams)(nil), // 16: management.v1.AddValkeyServiceParams - (*AddElastiCacheServiceParams)(nil), // 17: management.v1.AddElastiCacheServiceParams - (*MySQLServiceResult)(nil), // 18: management.v1.MySQLServiceResult - (*MongoDBServiceResult)(nil), // 19: management.v1.MongoDBServiceResult - (*PostgreSQLServiceResult)(nil), // 20: management.v1.PostgreSQLServiceResult - (*ProxySQLServiceResult)(nil), // 21: management.v1.ProxySQLServiceResult - (*HAProxyServiceResult)(nil), // 22: management.v1.HAProxyServiceResult - (*ExternalServiceResult)(nil), // 23: management.v1.ExternalServiceResult - (*RDSServiceResult)(nil), // 24: management.v1.RDSServiceResult - (*ValkeyServiceResult)(nil), // 25: management.v1.ValkeyServiceResult - (*ElastiCacheServiceResult)(nil), // 26: management.v1.ElastiCacheServiceResult - (v1.ServiceType)(0), // 27: inventory.v1.ServiceType - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp - (*UniversalAgent)(nil), // 29: management.v1.UniversalAgent - (*AddAnnotationRequest)(nil), // 30: management.v1.AddAnnotationRequest - (*ListAgentsRequest)(nil), // 31: management.v1.ListAgentsRequest - (*ListAgentVersionsRequest)(nil), // 32: management.v1.ListAgentVersionsRequest - (*RegisterNodeRequest)(nil), // 33: management.v1.RegisterNodeRequest - (*UnregisterNodeRequest)(nil), // 34: management.v1.UnregisterNodeRequest - (*ListNodesRequest)(nil), // 35: management.v1.ListNodesRequest - (*GetNodeRequest)(nil), // 36: management.v1.GetNodeRequest - (*DiscoverRDSRequest)(nil), // 37: management.v1.DiscoverRDSRequest - (*DiscoverAzureDatabaseRequest)(nil), // 38: management.v1.DiscoverAzureDatabaseRequest - (*AddAzureDatabaseRequest)(nil), // 39: management.v1.AddAzureDatabaseRequest - (*DiscoverElastiCacheRequest)(nil), // 40: management.v1.DiscoverElastiCacheRequest - (*AddAnnotationResponse)(nil), // 41: management.v1.AddAnnotationResponse - (*ListAgentsResponse)(nil), // 42: management.v1.ListAgentsResponse - (*ListAgentVersionsResponse)(nil), // 43: management.v1.ListAgentVersionsResponse - (*RegisterNodeResponse)(nil), // 44: management.v1.RegisterNodeResponse - (*UnregisterNodeResponse)(nil), // 45: management.v1.UnregisterNodeResponse - (*ListNodesResponse)(nil), // 46: management.v1.ListNodesResponse - (*GetNodeResponse)(nil), // 47: management.v1.GetNodeResponse - (*DiscoverRDSResponse)(nil), // 48: management.v1.DiscoverRDSResponse - (*DiscoverAzureDatabaseResponse)(nil), // 49: management.v1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseResponse)(nil), // 50: management.v1.AddAzureDatabaseResponse - (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse - } -) - +var file_management_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_management_v1_service_proto_goTypes = []any{ + (UniversalService_Status)(0), // 0: management.v1.UniversalService.Status + (*AddServiceRequest)(nil), // 1: management.v1.AddServiceRequest + (*AddServiceResponse)(nil), // 2: management.v1.AddServiceResponse + (*RemoveServiceRequest)(nil), // 3: management.v1.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 4: management.v1.RemoveServiceResponse + (*UniversalService)(nil), // 5: management.v1.UniversalService + (*ListServicesRequest)(nil), // 6: management.v1.ListServicesRequest + (*ListServicesResponse)(nil), // 7: management.v1.ListServicesResponse + nil, // 8: management.v1.UniversalService.CustomLabelsEntry + (*AddMySQLServiceParams)(nil), // 9: management.v1.AddMySQLServiceParams + (*AddMongoDBServiceParams)(nil), // 10: management.v1.AddMongoDBServiceParams + (*AddPostgreSQLServiceParams)(nil), // 11: management.v1.AddPostgreSQLServiceParams + (*AddProxySQLServiceParams)(nil), // 12: management.v1.AddProxySQLServiceParams + (*AddHAProxyServiceParams)(nil), // 13: management.v1.AddHAProxyServiceParams + (*AddExternalServiceParams)(nil), // 14: management.v1.AddExternalServiceParams + (*AddRDSServiceParams)(nil), // 15: management.v1.AddRDSServiceParams + (*AddValkeyServiceParams)(nil), // 16: management.v1.AddValkeyServiceParams + (*AddElastiCacheServiceParams)(nil), // 17: management.v1.AddElastiCacheServiceParams + (*MySQLServiceResult)(nil), // 18: management.v1.MySQLServiceResult + (*MongoDBServiceResult)(nil), // 19: management.v1.MongoDBServiceResult + (*PostgreSQLServiceResult)(nil), // 20: management.v1.PostgreSQLServiceResult + (*ProxySQLServiceResult)(nil), // 21: management.v1.ProxySQLServiceResult + (*HAProxyServiceResult)(nil), // 22: management.v1.HAProxyServiceResult + (*ExternalServiceResult)(nil), // 23: management.v1.ExternalServiceResult + (*RDSServiceResult)(nil), // 24: management.v1.RDSServiceResult + (*ValkeyServiceResult)(nil), // 25: management.v1.ValkeyServiceResult + (*ElastiCacheServiceResult)(nil), // 26: management.v1.ElastiCacheServiceResult + (v1.ServiceType)(0), // 27: inventory.v1.ServiceType + (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp + (*UniversalAgent)(nil), // 29: management.v1.UniversalAgent + (*AddAnnotationRequest)(nil), // 30: management.v1.AddAnnotationRequest + (*ListAgentsRequest)(nil), // 31: management.v1.ListAgentsRequest + (*ListAgentVersionsRequest)(nil), // 32: management.v1.ListAgentVersionsRequest + (*RegisterNodeRequest)(nil), // 33: management.v1.RegisterNodeRequest + (*UnregisterNodeRequest)(nil), // 34: management.v1.UnregisterNodeRequest + (*ListNodesRequest)(nil), // 35: management.v1.ListNodesRequest + (*GetNodeRequest)(nil), // 36: management.v1.GetNodeRequest + (*DiscoverRDSRequest)(nil), // 37: management.v1.DiscoverRDSRequest + (*DiscoverAzureDatabaseRequest)(nil), // 38: management.v1.DiscoverAzureDatabaseRequest + (*AddAzureDatabaseRequest)(nil), // 39: management.v1.AddAzureDatabaseRequest + (*DiscoverElastiCacheRequest)(nil), // 40: management.v1.DiscoverElastiCacheRequest + (*AddAnnotationResponse)(nil), // 41: management.v1.AddAnnotationResponse + (*ListAgentsResponse)(nil), // 42: management.v1.ListAgentsResponse + (*ListAgentVersionsResponse)(nil), // 43: management.v1.ListAgentVersionsResponse + (*RegisterNodeResponse)(nil), // 44: management.v1.RegisterNodeResponse + (*UnregisterNodeResponse)(nil), // 45: management.v1.UnregisterNodeResponse + (*ListNodesResponse)(nil), // 46: management.v1.ListNodesResponse + (*GetNodeResponse)(nil), // 47: management.v1.GetNodeResponse + (*DiscoverRDSResponse)(nil), // 48: management.v1.DiscoverRDSResponse + (*DiscoverAzureDatabaseResponse)(nil), // 49: management.v1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseResponse)(nil), // 50: management.v1.AddAzureDatabaseResponse + (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse +} var file_management_v1_service_proto_depIdxs = []int32{ 9, // 0: management.v1.AddServiceRequest.mysql:type_name -> management.v1.AddMySQLServiceParams 10, // 1: management.v1.AddServiceRequest.mongodb:type_name -> management.v1.AddMongoDBServiceParams diff --git a/api/management/v1/service.pb.validate.go b/api/management/v1/service.pb.validate.go index 97eb98b0e73..f1bdd20de74 100644 --- a/api/management/v1/service.pb.validate.go +++ b/api/management/v1/service.pb.validate.go @@ -502,8 +502,7 @@ func (e AddServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddServiceRequestValidationError{} @@ -979,8 +978,7 @@ func (e AddServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddServiceResponseValidationError{} @@ -1086,8 +1084,7 @@ func (e RemoveServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveServiceRequestValidationError{} @@ -1189,8 +1186,7 @@ func (e RemoveServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RemoveServiceResponseValidationError{} @@ -1414,8 +1410,7 @@ func (e UniversalServiceValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UniversalServiceValidationError{} @@ -1523,8 +1518,7 @@ func (e ListServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListServicesRequestValidationError{} @@ -1660,8 +1654,7 @@ func (e ListServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListServicesResponseValidationError{} diff --git a/api/management/v1/service_grpc.pb.go b/api/management/v1/service_grpc.pb.go index 21b6c95f4df..a9cfd7ed61a 100644 --- a/api/management/v1/service_grpc.pb.go +++ b/api/management/v1/service_grpc.pb.go @@ -8,7 +8,6 @@ package managementv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -267,55 +266,42 @@ type UnimplementedManagementServiceServer struct{} func (UnimplementedManagementServiceServer) AddAnnotation(context.Context, *AddAnnotationRequest) (*AddAnnotationResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddAnnotation not implemented") } - func (UnimplementedManagementServiceServer) ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAgents not implemented") } - func (UnimplementedManagementServiceServer) ListAgentVersions(context.Context, *ListAgentVersionsRequest) (*ListAgentVersionsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAgentVersions not implemented") } - func (UnimplementedManagementServiceServer) RegisterNode(context.Context, *RegisterNodeRequest) (*RegisterNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method RegisterNode not implemented") } - func (UnimplementedManagementServiceServer) UnregisterNode(context.Context, *UnregisterNodeRequest) (*UnregisterNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method UnregisterNode not implemented") } - func (UnimplementedManagementServiceServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListNodes not implemented") } - func (UnimplementedManagementServiceServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetNode not implemented") } - func (UnimplementedManagementServiceServer) AddService(context.Context, *AddServiceRequest) (*AddServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddService not implemented") } - func (UnimplementedManagementServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListServices not implemented") } - func (UnimplementedManagementServiceServer) DiscoverRDS(context.Context, *DiscoverRDSRequest) (*DiscoverRDSResponse, error) { return nil, status.Error(codes.Unimplemented, "method DiscoverRDS not implemented") } - func (UnimplementedManagementServiceServer) DiscoverAzureDatabase(context.Context, *DiscoverAzureDatabaseRequest) (*DiscoverAzureDatabaseResponse, error) { return nil, status.Error(codes.Unimplemented, "method DiscoverAzureDatabase not implemented") } - func (UnimplementedManagementServiceServer) AddAzureDatabase(context.Context, *AddAzureDatabaseRequest) (*AddAzureDatabaseResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddAzureDatabase not implemented") } - func (UnimplementedManagementServiceServer) DiscoverElastiCache(context.Context, *DiscoverElastiCacheRequest) (*DiscoverElastiCacheResponse, error) { return nil, status.Error(codes.Unimplemented, "method DiscoverElastiCache not implemented") } - func (UnimplementedManagementServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveService not implemented") } diff --git a/api/management/v1/severity.pb.go b/api/management/v1/severity.pb.go index 6a14d366aa6..dccdc65ddca 100644 --- a/api/management/v1/severity.pb.go +++ b/api/management/v1/severity.pb.go @@ -7,12 +7,11 @@ package managementv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -119,13 +118,10 @@ func file_management_v1_severity_proto_rawDescGZIP() []byte { return file_management_v1_severity_proto_rawDescData } -var ( - file_management_v1_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_management_v1_severity_proto_goTypes = []any{ - Severity(0), // 0: management.v1.Severity - } -) - +var file_management_v1_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_management_v1_severity_proto_goTypes = []any{ + (Severity)(0), // 0: management.v1.Severity +} var file_management_v1_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/management/v1/valkey.pb.go b/api/management/v1/valkey.pb.go index 15f69f6a750..73a667aa8fe 100644 --- a/api/management/v1/valkey.pb.go +++ b/api/management/v1/valkey.pb.go @@ -7,16 +7,14 @@ package managementv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "github.com/percona/pmm/api/extensions/v1" v1 "github.com/percona/pmm/api/inventory/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -392,20 +390,17 @@ func file_management_v1_valkey_proto_rawDescGZIP() []byte { return file_management_v1_valkey_proto_rawDescData } -var ( - file_management_v1_valkey_proto_msgTypes = make([]protoimpl.MessageInfo, 3) - file_management_v1_valkey_proto_goTypes = []any{ - (*AddValkeyServiceParams)(nil), // 0: management.v1.AddValkeyServiceParams - (*ValkeyServiceResult)(nil), // 1: management.v1.ValkeyServiceResult - nil, // 2: management.v1.AddValkeyServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - MetricsMode(0), // 4: management.v1.MetricsMode - v1.LogLevel(0), // 5: inventory.v1.LogLevel - (*v1.ValkeyService)(nil), // 6: inventory.v1.ValkeyService - (*v1.ValkeyExporter)(nil), // 7: inventory.v1.ValkeyExporter - } -) - +var file_management_v1_valkey_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_management_v1_valkey_proto_goTypes = []any{ + (*AddValkeyServiceParams)(nil), // 0: management.v1.AddValkeyServiceParams + (*ValkeyServiceResult)(nil), // 1: management.v1.ValkeyServiceResult + nil, // 2: management.v1.AddValkeyServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.ValkeyService)(nil), // 6: inventory.v1.ValkeyService + (*v1.ValkeyExporter)(nil), // 7: inventory.v1.ValkeyExporter +} var file_management_v1_valkey_proto_depIdxs = []int32{ 3, // 0: management.v1.AddValkeyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddValkeyServiceParams.custom_labels:type_name -> management.v1.AddValkeyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/valkey.pb.validate.go b/api/management/v1/valkey.pb.validate.go index 3da19fd188a..a2260070a98 100644 --- a/api/management/v1/valkey.pb.validate.go +++ b/api/management/v1/valkey.pb.validate.go @@ -62,6 +62,7 @@ func (m *AddValkeyServiceParams) validate(all bool) error { var errors []error if m.GetNodeId() != "" { + if utf8.RuneCountInString(m.GetNodeId()) < 1 { err := AddValkeyServiceParamsValidationError{ field: "NodeId", @@ -72,9 +73,11 @@ func (m *AddValkeyServiceParams) validate(all bool) error { } errors = append(errors, err) } + } if m.GetNodeName() != "" { + if utf8.RuneCountInString(m.GetNodeName()) < 1 { err := AddValkeyServiceParamsValidationError{ field: "NodeName", @@ -85,6 +88,7 @@ func (m *AddValkeyServiceParams) validate(all bool) error { } errors = append(errors, err) } + } if all { @@ -243,8 +247,7 @@ func (e AddValkeyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AddValkeyServiceParamsValidationError{} @@ -404,8 +407,7 @@ func (e ValkeyServiceResultValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ValkeyServiceResultValidationError{} diff --git a/api/qan/v1/collector.pb.go b/api/qan/v1/collector.pb.go index 8c46ac45fb5..b53102e8a73 100644 --- a/api/qan/v1/collector.pb.go +++ b/api/qan/v1/collector.pb.go @@ -7,15 +7,13 @@ package qanv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - + v1 "github.com/percona/pmm/api/inventory/v1" _ "google.golang.org/genproto/googleapis/api/visibility" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -2743,20 +2741,17 @@ func file_qan_v1_collector_proto_rawDescGZIP() []byte { return file_qan_v1_collector_proto_rawDescData } -var ( - file_qan_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) - file_qan_v1_collector_proto_goTypes = []any{ - (*CollectRequest)(nil), // 0: qan.v1.CollectRequest - (*MetricsBucket)(nil), // 1: qan.v1.MetricsBucket - (*CollectResponse)(nil), // 2: qan.v1.CollectResponse - nil, // 3: qan.v1.MetricsBucket.LabelsEntry - nil, // 4: qan.v1.MetricsBucket.WarningsEntry - nil, // 5: qan.v1.MetricsBucket.ErrorsEntry - v1.AgentType(0), // 6: inventory.v1.AgentType - ExampleType(0), // 7: qan.v1.ExampleType - } -) - +var file_qan_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_qan_v1_collector_proto_goTypes = []any{ + (*CollectRequest)(nil), // 0: qan.v1.CollectRequest + (*MetricsBucket)(nil), // 1: qan.v1.MetricsBucket + (*CollectResponse)(nil), // 2: qan.v1.CollectResponse + nil, // 3: qan.v1.MetricsBucket.LabelsEntry + nil, // 4: qan.v1.MetricsBucket.WarningsEntry + nil, // 5: qan.v1.MetricsBucket.ErrorsEntry + (v1.AgentType)(0), // 6: inventory.v1.AgentType + (ExampleType)(0), // 7: qan.v1.ExampleType +} var file_qan_v1_collector_proto_depIdxs = []int32{ 1, // 0: qan.v1.CollectRequest.metrics_bucket:type_name -> qan.v1.MetricsBucket 6, // 1: qan.v1.MetricsBucket.agent_type:type_name -> inventory.v1.AgentType diff --git a/api/qan/v1/collector.pb.validate.go b/api/qan/v1/collector.pb.validate.go index aba12fa90ed..a88b4517dd9 100644 --- a/api/qan/v1/collector.pb.validate.go +++ b/api/qan/v1/collector.pb.validate.go @@ -160,8 +160,7 @@ func (e CollectRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CollectRequestValidationError{} @@ -797,8 +796,7 @@ func (e MetricsBucketValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsBucketValidationError{} @@ -898,8 +896,7 @@ func (e CollectResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CollectResponseValidationError{} diff --git a/api/qan/v1/collector_grpc.pb.go b/api/qan/v1/collector_grpc.pb.go index e13e55d5599..99faa76e1ce 100644 --- a/api/qan/v1/collector_grpc.pb.go +++ b/api/qan/v1/collector_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/qan/v1/filters.pb.go b/api/qan/v1/filters.pb.go index fcbf5e7aead..cffe93c4255 100644 --- a/api/qan/v1/filters.pb.go +++ b/api/qan/v1/filters.pb.go @@ -7,13 +7,12 @@ package qanv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - 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" + unsafe "unsafe" ) const ( @@ -281,19 +280,16 @@ func file_qan_v1_filters_proto_rawDescGZIP() []byte { return file_qan_v1_filters_proto_rawDescData } -var ( - file_qan_v1_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) - file_qan_v1_filters_proto_goTypes = []any{ - (*GetFilteredMetricsNamesRequest)(nil), // 0: qan.v1.GetFilteredMetricsNamesRequest - (*GetFilteredMetricsNamesResponse)(nil), // 1: qan.v1.GetFilteredMetricsNamesResponse - (*ListLabels)(nil), // 2: qan.v1.ListLabels - (*Values)(nil), // 3: qan.v1.Values - nil, // 4: qan.v1.GetFilteredMetricsNamesResponse.LabelsEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 6: qan.v1.MapFieldEntry - } -) - +var file_qan_v1_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_qan_v1_filters_proto_goTypes = []any{ + (*GetFilteredMetricsNamesRequest)(nil), // 0: qan.v1.GetFilteredMetricsNamesRequest + (*GetFilteredMetricsNamesResponse)(nil), // 1: qan.v1.GetFilteredMetricsNamesResponse + (*ListLabels)(nil), // 2: qan.v1.ListLabels + (*Values)(nil), // 3: qan.v1.Values + nil, // 4: qan.v1.GetFilteredMetricsNamesResponse.LabelsEntry + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 6: qan.v1.MapFieldEntry +} var file_qan_v1_filters_proto_depIdxs = []int32{ 5, // 0: qan.v1.GetFilteredMetricsNamesRequest.period_start_from:type_name -> google.protobuf.Timestamp 5, // 1: qan.v1.GetFilteredMetricsNamesRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/filters.pb.validate.go b/api/qan/v1/filters.pb.validate.go index 2db21e6f863..bdd9c5d42dd 100644 --- a/api/qan/v1/filters.pb.validate.go +++ b/api/qan/v1/filters.pb.validate.go @@ -219,8 +219,7 @@ func (e GetFilteredMetricsNamesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetFilteredMetricsNamesRequestValidationError{} @@ -369,8 +368,7 @@ func (e GetFilteredMetricsNamesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetFilteredMetricsNamesResponseValidationError{} @@ -503,8 +501,7 @@ func (e ListLabelsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListLabelsValidationError{} @@ -608,8 +605,7 @@ func (e ValuesValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ValuesValidationError{} diff --git a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go index 5b2c7bf438c..0b477d3a710 100644 --- a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go +++ b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go @@ -60,6 +60,7 @@ ExplainFingerprintByQueryIDParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type ExplainFingerprintByQueryIDParams struct { + /* Body. ExplainFingerprintByQueryIDRequest get explain fingerprint for given query ID. @@ -132,6 +133,7 @@ func (o *ExplainFingerprintByQueryIDParams) SetBody(body ExplainFingerprintByQue // WriteToRequest writes these params to a swagger request func (o *ExplainFingerprintByQueryIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go index 55cf6802df7..274ea6b2639 100644 --- a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go +++ b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go @@ -104,6 +104,7 @@ func (o *ExplainFingerprintByQueryIDOK) GetPayload() *ExplainFingerprintByQueryI } func (o *ExplainFingerprintByQueryIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ExplainFingerprintByQueryIDOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ExplainFingerprintByQueryIDDefault) GetPayload() *ExplainFingerprintByQ } func (o *ExplainFingerprintByQueryIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ExplainFingerprintByQueryIDDefaultBody) // response payload @@ -192,6 +194,7 @@ ExplainFingerprintByQueryIDBody ExplainFingerprintByQueryIDRequest get explain f swagger:model ExplainFingerprintByQueryIDBody */ type ExplainFingerprintByQueryIDBody struct { + // serviceid Serviceid string `json:"serviceid,omitempty"` @@ -232,6 +235,7 @@ ExplainFingerprintByQueryIDDefaultBody explain fingerprint by query ID default b swagger:model ExplainFingerprintByQueryIDDefaultBody */ type ExplainFingerprintByQueryIDDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -301,7 +305,9 @@ func (o *ExplainFingerprintByQueryIDDefaultBody) ContextValidate(ctx context.Con } func (o *ExplainFingerprintByQueryIDDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -321,6 +327,7 @@ func (o *ExplainFingerprintByQueryIDDefaultBody) contextValidateDetails(ctx cont return err } } + } return nil @@ -349,6 +356,7 @@ ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 explain fingerprint by query swagger:model ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 */ type ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -360,6 +368,7 @@ type ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 struct { func (o *ExplainFingerprintByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -397,6 +406,7 @@ func (o *ExplainFingerprintByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data // MarshalJSON marshals this object with additional properties into a JSON object func (o ExplainFingerprintByQueryIDDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -460,6 +470,7 @@ ExplainFingerprintByQueryIDOKBody ExplainFingerprintByQueryIDResponse is explain swagger:model ExplainFingerprintByQueryIDOKBody */ type ExplainFingerprintByQueryIDOKBody struct { + // explain fingerprint ExplainFingerprint string `json:"explain_fingerprint,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go index 7b377ad61a2..14be6f6c2d3 100644 --- a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go +++ b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go @@ -60,6 +60,7 @@ GetFilteredMetricsNamesParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type GetFilteredMetricsNamesParams struct { + /* Body. GetFilteredMetricsNamesRequest contains period for which we need filters. @@ -132,6 +133,7 @@ func (o *GetFilteredMetricsNamesParams) SetBody(body GetFilteredMetricsNamesBody // WriteToRequest writes these params to a swagger request func (o *GetFilteredMetricsNamesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go index 2d3c57609d7..04715b23a5b 100644 --- a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go +++ b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go @@ -105,6 +105,7 @@ func (o *GetFilteredMetricsNamesOK) GetPayload() *GetFilteredMetricsNamesOKBody } func (o *GetFilteredMetricsNamesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetFilteredMetricsNamesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetFilteredMetricsNamesDefault) GetPayload() *GetFilteredMetricsNamesDe } func (o *GetFilteredMetricsNamesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetFilteredMetricsNamesDefaultBody) // response payload @@ -193,6 +195,7 @@ GetFilteredMetricsNamesBody GetFilteredMetricsNamesRequest contains period for w swagger:model GetFilteredMetricsNamesBody */ type GetFilteredMetricsNamesBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -299,7 +302,9 @@ func (o *GetFilteredMetricsNamesBody) ContextValidate(ctx context.Context, forma } func (o *GetFilteredMetricsNamesBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Labels); i++ { + if o.Labels[i] != nil { if swag.IsZero(o.Labels[i]) { // not required @@ -319,6 +324,7 @@ func (o *GetFilteredMetricsNamesBody) contextValidateLabels(ctx context.Context, return err } } + } return nil @@ -347,6 +353,7 @@ GetFilteredMetricsNamesDefaultBody get filtered metrics names default body swagger:model GetFilteredMetricsNamesDefaultBody */ type GetFilteredMetricsNamesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -416,7 +423,9 @@ func (o *GetFilteredMetricsNamesDefaultBody) ContextValidate(ctx context.Context } func (o *GetFilteredMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -436,6 +445,7 @@ func (o *GetFilteredMetricsNamesDefaultBody) contextValidateDetails(ctx context. return err } } + } return nil @@ -464,6 +474,7 @@ GetFilteredMetricsNamesDefaultBodyDetailsItems0 get filtered metrics names defau swagger:model GetFilteredMetricsNamesDefaultBodyDetailsItems0 */ type GetFilteredMetricsNamesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -475,6 +486,7 @@ type GetFilteredMetricsNamesDefaultBodyDetailsItems0 struct { func (o *GetFilteredMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -512,6 +524,7 @@ func (o *GetFilteredMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []b // MarshalJSON marshals this object with additional properties into a JSON object func (o GetFilteredMetricsNamesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -576,6 +589,7 @@ GetFilteredMetricsNamesOKBody GetFilteredMetricsNamesResponse is map of labels f swagger:model GetFilteredMetricsNamesOKBody */ type GetFilteredMetricsNamesOKBody struct { + // labels Labels map[string]GetFilteredMetricsNamesOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -639,12 +653,15 @@ func (o *GetFilteredMetricsNamesOKBody) ContextValidate(ctx context.Context, for } func (o *GetFilteredMetricsNamesOKBody) 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 @@ -673,6 +690,7 @@ GetFilteredMetricsNamesOKBodyLabelsAnon ListLabels is list of label's values: du swagger:model GetFilteredMetricsNamesOKBodyLabelsAnon */ type GetFilteredMetricsNamesOKBodyLabelsAnon struct { + // name Name []*GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 `json:"name"` } @@ -736,7 +754,9 @@ func (o *GetFilteredMetricsNamesOKBodyLabelsAnon) ContextValidate(ctx context.Co } func (o *GetFilteredMetricsNamesOKBodyLabelsAnon) contextValidateName(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Name); i++ { + if o.Name[i] != nil { if swag.IsZero(o.Name[i]) { // not required @@ -756,6 +776,7 @@ func (o *GetFilteredMetricsNamesOKBodyLabelsAnon) contextValidateName(ctx contex return err } } + } return nil @@ -784,6 +805,7 @@ GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 Values is label values and mai swagger:model GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 */ type GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 struct { + // value Value string `json:"value,omitempty"` @@ -827,6 +849,7 @@ GetFilteredMetricsNamesParamsBodyLabelsItems0 MapFieldEntry allows to pass label swagger:model GetFilteredMetricsNamesParamsBodyLabelsItems0 */ type GetFilteredMetricsNamesParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_histogram_parameters.go b/api/qan/v1/json/client/qan_service/get_histogram_parameters.go index 273d1c7ba35..a86298f9918 100644 --- a/api/qan/v1/json/client/qan_service/get_histogram_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetHistogramRequest 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/qan/v1/json/client/qan_service/get_histogram_responses.go b/api/qan/v1/json/client/qan_service/get_histogram_responses.go index 6bb68146f35..877b05e32d6 100644 --- a/api/qan/v1/json/client/qan_service/get_histogram_responses.go +++ b/api/qan/v1/json/client/qan_service/get_histogram_responses.go @@ -105,6 +105,7 @@ func (o *GetHistogramOK) GetPayload() *GetHistogramOKBody { } func (o *GetHistogramOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetHistogramOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetHistogramDefault) GetPayload() *GetHistogramDefaultBody { } func (o *GetHistogramDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetHistogramDefaultBody) // response payload @@ -193,6 +195,7 @@ GetHistogramBody GetHistogramRequest defines filtering by time range, labels and swagger:model GetHistogramBody */ type GetHistogramBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -299,7 +302,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 swag.IsZero(o.Labels[i]) { // not required @@ -319,6 +324,7 @@ func (o *GetHistogramBody) contextValidateLabels(ctx context.Context, formats st return err } } + } return nil @@ -347,6 +353,7 @@ GetHistogramDefaultBody get histogram default body swagger:model GetHistogramDefaultBody */ type GetHistogramDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -416,7 +423,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 swag.IsZero(o.Details[i]) { // not required @@ -436,6 +445,7 @@ func (o *GetHistogramDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -464,6 +474,7 @@ GetHistogramDefaultBodyDetailsItems0 get histogram default body details items0 swagger:model GetHistogramDefaultBodyDetailsItems0 */ type GetHistogramDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -475,6 +486,7 @@ type GetHistogramDefaultBodyDetailsItems0 struct { func (o *GetHistogramDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -512,6 +524,7 @@ func (o *GetHistogramDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetHistogramDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -575,6 +588,7 @@ GetHistogramOKBody GetHistogramResponse is histogram items as a list. swagger:model GetHistogramOKBody */ type GetHistogramOKBody struct { + // histogram items HistogramItems []*GetHistogramOKBodyHistogramItemsItems0 `json:"histogram_items"` } @@ -638,7 +652,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 swag.IsZero(o.HistogramItems[i]) { // not required @@ -658,6 +674,7 @@ func (o *GetHistogramOKBody) contextValidateHistogramItems(ctx context.Context, return err } } + } return nil @@ -686,6 +703,7 @@ GetHistogramOKBodyHistogramItemsItems0 HistogramItem represents one item in hist swagger:model GetHistogramOKBodyHistogramItemsItems0 */ type GetHistogramOKBodyHistogramItemsItems0 struct { + // range Range string `json:"range,omitempty"` @@ -726,6 +744,7 @@ GetHistogramParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimension swagger:model GetHistogramParamsBodyLabelsItems0 */ type GetHistogramParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_labels_parameters.go b/api/qan/v1/json/client/qan_service/get_labels_parameters.go index ebf388c1281..946aabc1dc4 100644 --- a/api/qan/v1/json/client/qan_service/get_labels_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetLabelsRequest 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/qan/v1/json/client/qan_service/get_labels_responses.go b/api/qan/v1/json/client/qan_service/get_labels_responses.go index 7425ccfc09c..c193d4132bf 100644 --- a/api/qan/v1/json/client/qan_service/get_labels_responses.go +++ b/api/qan/v1/json/client/qan_service/get_labels_responses.go @@ -105,6 +105,7 @@ func (o *GetLabelsOK) GetPayload() *GetLabelsOKBody { } func (o *GetLabelsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLabelsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetLabelsDefault) GetPayload() *GetLabelsDefaultBody { } func (o *GetLabelsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetLabelsDefaultBody) // response payload @@ -194,6 +196,7 @@ GetLabelsBody GetLabelsRequest defines filtering of object detail's labels for s swagger:model GetLabelsBody */ type GetLabelsBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -279,6 +282,7 @@ GetLabelsDefaultBody get labels default body swagger:model GetLabelsDefaultBody */ type GetLabelsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -348,7 +352,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 swag.IsZero(o.Details[i]) { // not required @@ -368,6 +374,7 @@ func (o *GetLabelsDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -396,6 +403,7 @@ GetLabelsDefaultBodyDetailsItems0 get labels default body details items0 swagger:model GetLabelsDefaultBodyDetailsItems0 */ type GetLabelsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -407,6 +415,7 @@ type GetLabelsDefaultBodyDetailsItems0 struct { func (o *GetLabelsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -444,6 +453,7 @@ func (o *GetLabelsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetLabelsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -507,6 +517,7 @@ GetLabelsOKBody GetLabelsResponse is a map of labels names as keys and labels va swagger:model GetLabelsOKBody */ type GetLabelsOKBody struct { + // labels Labels map[string]GetLabelsOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -570,12 +581,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 @@ -604,6 +618,7 @@ GetLabelsOKBodyLabelsAnon ListLabelValues is list of label's values. swagger:model GetLabelsOKBodyLabelsAnon */ type GetLabelsOKBodyLabelsAnon struct { + // values Values []string `json:"values"` } diff --git a/api/qan/v1/json/client/qan_service/get_metrics_names_parameters.go b/api/qan/v1/json/client/qan_service/get_metrics_names_parameters.go index eda3e3369e0..2872b797b52 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_names_parameters.go +++ b/api/qan/v1/json/client/qan_service/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 empty. @@ -132,6 +133,7 @@ func (o *GetMetricsNamesParams) SetBody(body any) { // 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/qan/v1/json/client/qan_service/get_metrics_names_responses.go b/api/qan/v1/json/client/qan_service/get_metrics_names_responses.go index e59b8c2e83c..d345b84a2b6 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_names_responses.go +++ b/api/qan/v1/json/client/qan_service/get_metrics_names_responses.go @@ -104,6 +104,7 @@ func (o *GetMetricsNamesOK) GetPayload() *GetMetricsNamesOKBody { } func (o *GetMetricsNamesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsNamesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetMetricsNamesDefault) GetPayload() *GetMetricsNamesDefaultBody { } func (o *GetMetricsNamesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsNamesDefaultBody) // response payload @@ -192,6 +194,7 @@ GetMetricsNamesDefaultBody get metrics names default body swagger:model GetMetricsNamesDefaultBody */ type GetMetricsNamesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -309,6 +315,7 @@ GetMetricsNamesDefaultBodyDetailsItems0 get metrics names default body details i swagger:model GetMetricsNamesDefaultBodyDetailsItems0 */ type GetMetricsNamesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetMetricsNamesDefaultBodyDetailsItems0 struct { func (o *GetMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o GetMetricsNamesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -422,6 +431,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/qan/v1/json/client/qan_service/get_metrics_parameters.go b/api/qan/v1/json/client/qan_service/get_metrics_parameters.go index 65e95eae003..66539066340 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetMetricsRequest 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/qan/v1/json/client/qan_service/get_metrics_responses.go b/api/qan/v1/json/client/qan_service/get_metrics_responses.go index 0577b0b8431..ed797c55ae3 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_responses.go +++ b/api/qan/v1/json/client/qan_service/get_metrics_responses.go @@ -105,6 +105,7 @@ func (o *GetMetricsOK) GetPayload() *GetMetricsOKBody { } func (o *GetMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetMetricsDefault) GetPayload() *GetMetricsDefaultBody { } func (o *GetMetricsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetMetricsDefaultBody) // response payload @@ -193,6 +195,7 @@ GetMetricsBody GetMetricsRequest defines filtering of metrics for specific value swagger:model GetMetricsBody */ type GetMetricsBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -308,7 +311,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 swag.IsZero(o.Labels[i]) { // not required @@ -328,6 +333,7 @@ func (o *GetMetricsBody) contextValidateLabels(ctx context.Context, formats strf return err } } + } return nil @@ -356,6 +362,7 @@ GetMetricsDefaultBody get metrics default body swagger:model GetMetricsDefaultBody */ type GetMetricsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -425,7 +432,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 swag.IsZero(o.Details[i]) { // not required @@ -445,6 +454,7 @@ func (o *GetMetricsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -473,6 +483,7 @@ GetMetricsDefaultBodyDetailsItems0 get metrics default body details items0 swagger:model GetMetricsDefaultBodyDetailsItems0 */ type GetMetricsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -484,6 +495,7 @@ type GetMetricsDefaultBodyDetailsItems0 struct { func (o *GetMetricsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -521,6 +533,7 @@ func (o *GetMetricsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetMetricsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -584,6 +597,7 @@ GetMetricsOKBody GetMetricsResponse defines metrics for specific value of dimens swagger:model GetMetricsOKBody */ type GetMetricsOKBody struct { + // metrics Metrics map[string]GetMetricsOKBodyMetricsAnon `json:"metrics,omitempty"` @@ -769,19 +783,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 swag.IsZero(o.Sparkline[i]) { // not required @@ -801,24 +820,29 @@ 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 } func (o *GetMetricsOKBody) contextValidateMetadata(ctx context.Context, formats strfmt.Registry) error { + if o.Metadata != nil { if swag.IsZero(o.Metadata) { // not required @@ -865,6 +889,7 @@ GetMetricsOKBodyMetadata GetSlecetedQueryMetadataResponse consists selected quer swagger:model GetMetricsOKBodyMetadata */ type GetMetricsOKBodyMetadata struct { + // service name ServiceName string `json:"service_name,omitempty"` @@ -935,6 +960,7 @@ GetMetricsOKBodyMetricsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyMetricsAnon */ type GetMetricsOKBodyMetricsAnon struct { + // rate Rate float32 `json:"rate,omitempty"` @@ -994,6 +1020,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"` @@ -1265,6 +1292,7 @@ GetMetricsOKBodyTotalsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyTotalsAnon */ type GetMetricsOKBodyTotalsAnon struct { + // rate Rate float32 `json:"rate,omitempty"` @@ -1323,6 +1351,7 @@ GetMetricsParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions swagger:model GetMetricsParamsBodyLabelsItems0 */ type GetMetricsParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_query_example_parameters.go b/api/qan/v1/json/client/qan_service/get_query_example_parameters.go index 7757bae1c9c..2d400fd9bb5 100644 --- a/api/qan/v1/json/client/qan_service/get_query_example_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetQueryExampleRequest 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/qan/v1/json/client/qan_service/get_query_example_responses.go b/api/qan/v1/json/client/qan_service/get_query_example_responses.go index a9ffcad7993..28dedc56567 100644 --- a/api/qan/v1/json/client/qan_service/get_query_example_responses.go +++ b/api/qan/v1/json/client/qan_service/get_query_example_responses.go @@ -105,6 +105,7 @@ func (o *GetQueryExampleOK) GetPayload() *GetQueryExampleOKBody { } func (o *GetQueryExampleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryExampleOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetQueryExampleDefault) GetPayload() *GetQueryExampleDefaultBody { } func (o *GetQueryExampleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryExampleDefaultBody) // response payload @@ -194,6 +196,7 @@ GetQueryExampleBody GetQueryExampleRequest defines filtering of query examples f swagger:model GetQueryExampleBody */ type GetQueryExampleBody struct { + // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -306,7 +309,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 swag.IsZero(o.Labels[i]) { // not required @@ -326,6 +331,7 @@ func (o *GetQueryExampleBody) contextValidateLabels(ctx context.Context, formats return err } } + } return nil @@ -354,6 +360,7 @@ GetQueryExampleDefaultBody get query example default body swagger:model GetQueryExampleDefaultBody */ type GetQueryExampleDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -423,7 +430,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 swag.IsZero(o.Details[i]) { // not required @@ -443,6 +452,7 @@ func (o *GetQueryExampleDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -471,6 +481,7 @@ GetQueryExampleDefaultBodyDetailsItems0 get query example default body details i swagger:model GetQueryExampleDefaultBodyDetailsItems0 */ type GetQueryExampleDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -482,6 +493,7 @@ type GetQueryExampleDefaultBodyDetailsItems0 struct { func (o *GetQueryExampleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -519,6 +531,7 @@ func (o *GetQueryExampleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o GetQueryExampleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -582,6 +595,7 @@ GetQueryExampleOKBody GetQueryExampleResponse list of query examples. swagger:model GetQueryExampleOKBody */ type GetQueryExampleOKBody struct { + // query examples QueryExamples []*GetQueryExampleOKBodyQueryExamplesItems0 `json:"query_examples"` } @@ -645,7 +659,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 swag.IsZero(o.QueryExamples[i]) { // not required @@ -665,6 +681,7 @@ func (o *GetQueryExampleOKBody) contextValidateQueryExamples(ctx context.Context return err } } + } return nil @@ -693,6 +710,7 @@ GetQueryExampleOKBodyQueryExamplesItems0 QueryExample shows query examples and t swagger:model GetQueryExampleOKBodyQueryExamplesItems0 */ type GetQueryExampleOKBodyQueryExamplesItems0 struct { + // example Example string `json:"example,omitempty"` @@ -821,6 +839,7 @@ GetQueryExampleParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimens swagger:model GetQueryExampleParamsBodyLabelsItems0 */ type GetQueryExampleParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_query_plan_parameters.go b/api/qan/v1/json/client/qan_service/get_query_plan_parameters.go index 3d949920218..367e78a912c 100644 --- a/api/qan/v1/json/client/qan_service/get_query_plan_parameters.go +++ b/api/qan/v1/json/client/qan_service/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 { + // Queryid. Queryid string @@ -129,6 +130,7 @@ func (o *GetQueryPlanParams) SetQueryid(queryid string) { // 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/qan/v1/json/client/qan_service/get_query_plan_responses.go b/api/qan/v1/json/client/qan_service/get_query_plan_responses.go index a5d3157a37a..cb82ef45379 100644 --- a/api/qan/v1/json/client/qan_service/get_query_plan_responses.go +++ b/api/qan/v1/json/client/qan_service/get_query_plan_responses.go @@ -104,6 +104,7 @@ func (o *GetQueryPlanOK) GetPayload() *GetQueryPlanOKBody { } func (o *GetQueryPlanOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryPlanOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetQueryPlanDefault) GetPayload() *GetQueryPlanDefaultBody { } func (o *GetQueryPlanDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetQueryPlanDefaultBody) // response payload @@ -192,6 +194,7 @@ GetQueryPlanDefaultBody get query plan default body swagger:model GetQueryPlanDefaultBody */ type GetQueryPlanDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetQueryPlanDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -309,6 +315,7 @@ GetQueryPlanDefaultBodyDetailsItems0 get query plan default body details items0 swagger:model GetQueryPlanDefaultBodyDetailsItems0 */ type GetQueryPlanDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type GetQueryPlanDefaultBodyDetailsItems0 struct { func (o *GetQueryPlanDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *GetQueryPlanDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetQueryPlanDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ GetQueryPlanOKBody GetQueryPlanResponse contains planid and query_plan. swagger:model GetQueryPlanOKBody */ type GetQueryPlanOKBody struct { + // planid Planid string `json:"planid,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_report_parameters.go b/api/qan/v1/json/client/qan_service/get_report_parameters.go index 41494719a45..69d495bc6b9 100644 --- a/api/qan/v1/json/client/qan_service/get_report_parameters.go +++ b/api/qan/v1/json/client/qan_service/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/qan/v1/json/client/qan_service/get_report_responses.go b/api/qan/v1/json/client/qan_service/get_report_responses.go index f6661b19771..8e3fb8d7272 100644 --- a/api/qan/v1/json/client/qan_service/get_report_responses.go +++ b/api/qan/v1/json/client/qan_service/get_report_responses.go @@ -105,6 +105,7 @@ func (o *GetReportOK) GetPayload() *GetReportOKBody { } func (o *GetReportOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetReportOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetReportDefault) GetPayload() *GetReportDefaultBody { } func (o *GetReportDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetReportDefaultBody) // response payload @@ -193,6 +195,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"` @@ -317,7 +320,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 swag.IsZero(o.Labels[i]) { // not required @@ -337,6 +342,7 @@ func (o *GetReportBody) contextValidateLabels(ctx context.Context, formats strfm return err } } + } return nil @@ -365,6 +371,7 @@ GetReportDefaultBody get report default body swagger:model GetReportDefaultBody */ type GetReportDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -434,7 +441,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 swag.IsZero(o.Details[i]) { // not required @@ -454,6 +463,7 @@ func (o *GetReportDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -482,6 +492,7 @@ GetReportDefaultBodyDetailsItems0 get report default body details items0 swagger:model GetReportDefaultBodyDetailsItems0 */ type GetReportDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -493,6 +504,7 @@ type GetReportDefaultBodyDetailsItems0 struct { func (o *GetReportDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -530,6 +542,7 @@ func (o *GetReportDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetReportDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -593,6 +606,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"` @@ -665,7 +679,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 swag.IsZero(o.Rows[i]) { // not required @@ -685,6 +701,7 @@ func (o *GetReportOKBody) contextValidateRows(ctx context.Context, formats strfm return err } } + } return nil @@ -713,6 +730,7 @@ GetReportOKBodyRowsItems0 Row define metrics for selected dimention. swagger:model GetReportOKBodyRowsItems0 */ type GetReportOKBodyRowsItems0 struct { + // rank Rank int64 `json:"rank,omitempty"` @@ -838,19 +856,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 swag.IsZero(o.Sparkline[i]) { // not required @@ -870,6 +893,7 @@ func (o *GetReportOKBodyRowsItems0) contextValidateSparkline(ctx context.Context return err } } + } return nil @@ -898,6 +922,7 @@ GetReportOKBodyRowsItems0MetricsAnon Metric cell. swagger:model GetReportOKBodyRowsItems0MetricsAnon */ type GetReportOKBodyRowsItems0MetricsAnon struct { + // stats Stats *GetReportOKBodyRowsItems0MetricsAnonStats `json:"stats,omitempty"` } @@ -954,6 +979,7 @@ func (o *GetReportOKBodyRowsItems0MetricsAnon) ContextValidate(ctx context.Conte } func (o *GetReportOKBodyRowsItems0MetricsAnon) contextValidateStats(ctx context.Context, formats strfmt.Registry) error { + if o.Stats != nil { if swag.IsZero(o.Stats) { // not required @@ -1000,6 +1026,7 @@ GetReportOKBodyRowsItems0MetricsAnonStats Stat is statistics of specific metric. swagger:model GetReportOKBodyRowsItems0MetricsAnonStats */ type GetReportOKBodyRowsItems0MetricsAnonStats struct { + // rate Rate float32 `json:"rate,omitempty"` @@ -1059,6 +1086,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"` @@ -1330,6 +1358,7 @@ GetReportParamsBodyLabelsItems0 ReportMapFieldEntry allows to pass labels/diment swagger:model GetReportParamsBodyLabelsItems0 */ type GetReportParamsBodyLabelsItems0 struct { + // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/health_check_parameters.go b/api/qan/v1/json/client/qan_service/health_check_parameters.go index d7e15d2d7bb..5aa3423e42e 100644 --- a/api/qan/v1/json/client/qan_service/health_check_parameters.go +++ b/api/qan/v1/json/client/qan_service/health_check_parameters.go @@ -115,6 +115,7 @@ func (o *HealthCheckParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *HealthCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/health_check_responses.go b/api/qan/v1/json/client/qan_service/health_check_responses.go index 7ba2cf47eb3..deed50d8786 100644 --- a/api/qan/v1/json/client/qan_service/health_check_responses.go +++ b/api/qan/v1/json/client/qan_service/health_check_responses.go @@ -104,6 +104,7 @@ func (o *HealthCheckOK) GetPayload() any { } func (o *HealthCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *HealthCheckDefault) GetPayload() *HealthCheckDefaultBody { } func (o *HealthCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(HealthCheckDefaultBody) // response payload @@ -190,6 +192,7 @@ HealthCheckDefaultBody health check default body swagger:model HealthCheckDefaultBody */ type HealthCheckDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,9 @@ func (o *HealthCheckDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *HealthCheckDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *HealthCheckDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -307,6 +313,7 @@ HealthCheckDefaultBodyDetailsItems0 health check default body details items0 swagger:model HealthCheckDefaultBodyDetailsItems0 */ type HealthCheckDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -318,6 +325,7 @@ type HealthCheckDefaultBodyDetailsItems0 struct { func (o *HealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -355,6 +363,7 @@ func (o *HealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o HealthCheckDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/qan/v1/json/client/qan_service/query_exists_parameters.go b/api/qan/v1/json/client/qan_service/query_exists_parameters.go index 7650af6a9df..21422ff17cc 100644 --- a/api/qan/v1/json/client/qan_service/query_exists_parameters.go +++ b/api/qan/v1/json/client/qan_service/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/qan/v1/json/client/qan_service/query_exists_responses.go b/api/qan/v1/json/client/qan_service/query_exists_responses.go index a6e036b1d42..589881f3c9f 100644 --- a/api/qan/v1/json/client/qan_service/query_exists_responses.go +++ b/api/qan/v1/json/client/qan_service/query_exists_responses.go @@ -104,6 +104,7 @@ func (o *QueryExistsOK) GetPayload() *QueryExistsOKBody { } func (o *QueryExistsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(QueryExistsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *QueryExistsDefault) GetPayload() *QueryExistsDefaultBody { } func (o *QueryExistsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(QueryExistsDefaultBody) // response payload @@ -192,6 +194,7 @@ QueryExistsBody QueryExistsRequest check if provided query exists or not. swagger:model QueryExistsBody */ type QueryExistsBody struct { + // serviceid Serviceid string `json:"serviceid,omitempty"` @@ -232,6 +235,7 @@ QueryExistsDefaultBody query exists default body swagger:model QueryExistsDefaultBody */ type QueryExistsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -301,7 +305,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 swag.IsZero(o.Details[i]) { // not required @@ -321,6 +327,7 @@ func (o *QueryExistsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -349,6 +356,7 @@ QueryExistsDefaultBodyDetailsItems0 query exists default body details items0 swagger:model QueryExistsDefaultBodyDetailsItems0 */ type QueryExistsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -360,6 +368,7 @@ type QueryExistsDefaultBodyDetailsItems0 struct { func (o *QueryExistsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -397,6 +406,7 @@ func (o *QueryExistsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o QueryExistsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -460,6 +470,7 @@ QueryExistsOKBody QueryExistsResponse returns true if query exists. swagger:model QueryExistsOKBody */ type QueryExistsOKBody struct { + // exists Exists bool `json:"exists,omitempty"` } diff --git a/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go b/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go index f0be4d869ce..45d51b4b648 100644 --- a/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go +++ b/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go @@ -60,6 +60,7 @@ SchemaByQueryIDParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type SchemaByQueryIDParams struct { + /* Body. SchemaByQueryIDRequest returns schema for given query ID and service ID. @@ -132,6 +133,7 @@ func (o *SchemaByQueryIDParams) SetBody(body SchemaByQueryIDBody) { // WriteToRequest writes these params to a swagger request func (o *SchemaByQueryIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go b/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go index 894c1d12cc9..51dd57a9326 100644 --- a/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go +++ b/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go @@ -104,6 +104,7 @@ func (o *SchemaByQueryIDOK) GetPayload() *SchemaByQueryIDOKBody { } func (o *SchemaByQueryIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SchemaByQueryIDOKBody) // response payload @@ -177,6 +178,7 @@ func (o *SchemaByQueryIDDefault) GetPayload() *SchemaByQueryIDDefaultBody { } func (o *SchemaByQueryIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SchemaByQueryIDDefaultBody) // response payload @@ -192,6 +194,7 @@ SchemaByQueryIDBody SchemaByQueryIDRequest returns schema for given query ID and swagger:model SchemaByQueryIDBody */ type SchemaByQueryIDBody struct { + // service id ServiceID string `json:"service_id,omitempty"` @@ -232,6 +235,7 @@ SchemaByQueryIDDefaultBody schema by query ID default body swagger:model SchemaByQueryIDDefaultBody */ type SchemaByQueryIDDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -301,7 +305,9 @@ func (o *SchemaByQueryIDDefaultBody) ContextValidate(ctx context.Context, format } func (o *SchemaByQueryIDDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -321,6 +327,7 @@ func (o *SchemaByQueryIDDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -349,6 +356,7 @@ SchemaByQueryIDDefaultBodyDetailsItems0 schema by query ID default body details swagger:model SchemaByQueryIDDefaultBodyDetailsItems0 */ type SchemaByQueryIDDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -360,6 +368,7 @@ type SchemaByQueryIDDefaultBodyDetailsItems0 struct { func (o *SchemaByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -397,6 +406,7 @@ func (o *SchemaByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o SchemaByQueryIDDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -460,6 +470,7 @@ SchemaByQueryIDOKBody SchemaByQueryIDResponse is schema for given query ID and s swagger:model SchemaByQueryIDOKBody */ type SchemaByQueryIDOKBody struct { + // schema Schema string `json:"schema,omitempty"` } diff --git a/api/qan/v1/object_details.pb.go b/api/qan/v1/object_details.pb.go index 213f0f098d6..9a68f9f39d4 100644 --- a/api/qan/v1/object_details.pb.go +++ b/api/qan/v1/object_details.pb.go @@ -7,13 +7,12 @@ package qanv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - 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" + unsafe "unsafe" ) const ( @@ -1608,42 +1607,39 @@ func file_qan_v1_object_details_proto_rawDescGZIP() []byte { return file_qan_v1_object_details_proto_rawDescData } -var ( - file_qan_v1_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 26) - file_qan_v1_object_details_proto_goTypes = []any{ - (*GetMetricsRequest)(nil), // 0: qan.v1.GetMetricsRequest - (*GetMetricsResponse)(nil), // 1: qan.v1.GetMetricsResponse - (*MetricValues)(nil), // 2: qan.v1.MetricValues - (*Labels)(nil), // 3: qan.v1.Labels - (*GetQueryExampleRequest)(nil), // 4: qan.v1.GetQueryExampleRequest - (*GetQueryExampleResponse)(nil), // 5: qan.v1.GetQueryExampleResponse - (*QueryExample)(nil), // 6: qan.v1.QueryExample - (*GetLabelsRequest)(nil), // 7: qan.v1.GetLabelsRequest - (*GetLabelsResponse)(nil), // 8: qan.v1.GetLabelsResponse - (*ListLabelValues)(nil), // 9: qan.v1.ListLabelValues - (*GetQueryPlanRequest)(nil), // 10: qan.v1.GetQueryPlanRequest - (*GetQueryPlanResponse)(nil), // 11: qan.v1.GetQueryPlanResponse - (*GetHistogramRequest)(nil), // 12: qan.v1.GetHistogramRequest - (*GetHistogramResponse)(nil), // 13: qan.v1.GetHistogramResponse - (*HistogramItem)(nil), // 14: qan.v1.HistogramItem - (*QueryExistsRequest)(nil), // 15: qan.v1.QueryExistsRequest - (*QueryExistsResponse)(nil), // 16: qan.v1.QueryExistsResponse - (*SchemaByQueryIDRequest)(nil), // 17: qan.v1.SchemaByQueryIDRequest - (*SchemaByQueryIDResponse)(nil), // 18: qan.v1.SchemaByQueryIDResponse - (*ExplainFingerprintByQueryIDRequest)(nil), // 19: qan.v1.ExplainFingerprintByQueryIDRequest - (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse - (*GetSelectedQueryMetadataResponse)(nil), // 21: qan.v1.GetSelectedQueryMetadataResponse - nil, // 22: qan.v1.GetMetricsResponse.MetricsEntry - nil, // 23: qan.v1.GetMetricsResponse.TextMetricsEntry - nil, // 24: qan.v1.GetMetricsResponse.TotalsEntry - nil, // 25: qan.v1.GetLabelsResponse.LabelsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 27: qan.v1.MapFieldEntry - (*Point)(nil), // 28: qan.v1.Point - ExampleType(0), // 29: qan.v1.ExampleType - } -) - +var file_qan_v1_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_qan_v1_object_details_proto_goTypes = []any{ + (*GetMetricsRequest)(nil), // 0: qan.v1.GetMetricsRequest + (*GetMetricsResponse)(nil), // 1: qan.v1.GetMetricsResponse + (*MetricValues)(nil), // 2: qan.v1.MetricValues + (*Labels)(nil), // 3: qan.v1.Labels + (*GetQueryExampleRequest)(nil), // 4: qan.v1.GetQueryExampleRequest + (*GetQueryExampleResponse)(nil), // 5: qan.v1.GetQueryExampleResponse + (*QueryExample)(nil), // 6: qan.v1.QueryExample + (*GetLabelsRequest)(nil), // 7: qan.v1.GetLabelsRequest + (*GetLabelsResponse)(nil), // 8: qan.v1.GetLabelsResponse + (*ListLabelValues)(nil), // 9: qan.v1.ListLabelValues + (*GetQueryPlanRequest)(nil), // 10: qan.v1.GetQueryPlanRequest + (*GetQueryPlanResponse)(nil), // 11: qan.v1.GetQueryPlanResponse + (*GetHistogramRequest)(nil), // 12: qan.v1.GetHistogramRequest + (*GetHistogramResponse)(nil), // 13: qan.v1.GetHistogramResponse + (*HistogramItem)(nil), // 14: qan.v1.HistogramItem + (*QueryExistsRequest)(nil), // 15: qan.v1.QueryExistsRequest + (*QueryExistsResponse)(nil), // 16: qan.v1.QueryExistsResponse + (*SchemaByQueryIDRequest)(nil), // 17: qan.v1.SchemaByQueryIDRequest + (*SchemaByQueryIDResponse)(nil), // 18: qan.v1.SchemaByQueryIDResponse + (*ExplainFingerprintByQueryIDRequest)(nil), // 19: qan.v1.ExplainFingerprintByQueryIDRequest + (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse + (*GetSelectedQueryMetadataResponse)(nil), // 21: qan.v1.GetSelectedQueryMetadataResponse + nil, // 22: qan.v1.GetMetricsResponse.MetricsEntry + nil, // 23: qan.v1.GetMetricsResponse.TextMetricsEntry + nil, // 24: qan.v1.GetMetricsResponse.TotalsEntry + nil, // 25: qan.v1.GetLabelsResponse.LabelsEntry + (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 27: qan.v1.MapFieldEntry + (*Point)(nil), // 28: qan.v1.Point + (ExampleType)(0), // 29: qan.v1.ExampleType +} var file_qan_v1_object_details_proto_depIdxs = []int32{ 26, // 0: qan.v1.GetMetricsRequest.period_start_from:type_name -> google.protobuf.Timestamp 26, // 1: qan.v1.GetMetricsRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/object_details.pb.validate.go b/api/qan/v1/object_details.pb.validate.go index 45a7fb602ea..59861ff0fde 100644 --- a/api/qan/v1/object_details.pb.validate.go +++ b/api/qan/v1/object_details.pb.validate.go @@ -222,8 +222,7 @@ func (e GetMetricsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetMetricsRequestValidationError{} @@ -484,8 +483,7 @@ func (e GetMetricsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetMetricsResponseValidationError{} @@ -600,8 +598,7 @@ func (e MetricValuesValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricValuesValidationError{} @@ -699,8 +696,7 @@ func (e LabelsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = LabelsValidationError{} @@ -900,8 +896,7 @@ func (e GetQueryExampleRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetQueryExampleRequestValidationError{} @@ -1037,8 +1032,7 @@ func (e GetQueryExampleResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetQueryExampleResponseValidationError{} @@ -1157,8 +1151,7 @@ func (e QueryExampleValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryExampleValidationError{} @@ -1320,8 +1313,7 @@ func (e GetLabelsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetLabelsRequestValidationError{} @@ -1469,8 +1461,7 @@ func (e GetLabelsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetLabelsResponseValidationError{} @@ -1570,8 +1561,7 @@ func (e ListLabelValuesValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListLabelValuesValidationError{} @@ -1675,8 +1665,7 @@ func (e GetQueryPlanRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetQueryPlanRequestValidationError{} @@ -1782,8 +1771,7 @@ func (e GetQueryPlanResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetQueryPlanResponseValidationError{} @@ -1979,8 +1967,7 @@ func (e GetHistogramRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetHistogramRequestValidationError{} @@ -2116,8 +2103,7 @@ func (e GetHistogramResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetHistogramResponseValidationError{} @@ -2221,8 +2207,7 @@ func (e HistogramItemValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HistogramItemValidationError{} @@ -2328,8 +2313,7 @@ func (e QueryExistsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryExistsRequestValidationError{} @@ -2433,8 +2417,7 @@ func (e QueryExistsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryExistsResponseValidationError{} @@ -2540,8 +2523,7 @@ func (e SchemaByQueryIDRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SchemaByQueryIDRequestValidationError{} @@ -2645,8 +2627,7 @@ func (e SchemaByQueryIDResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SchemaByQueryIDResponseValidationError{} @@ -2755,8 +2736,7 @@ func (e ExplainFingerprintByQueryIDRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ExplainFingerprintByQueryIDRequestValidationError{} @@ -2865,8 +2845,7 @@ func (e ExplainFingerprintByQueryIDResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ExplainFingerprintByQueryIDResponseValidationError{} @@ -2995,8 +2974,7 @@ func (e GetSelectedQueryMetadataResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetSelectedQueryMetadataResponseValidationError{} diff --git a/api/qan/v1/profile.pb.go b/api/qan/v1/profile.pb.go index 03ab97e871a..2dce8283404 100644 --- a/api/qan/v1/profile.pb.go +++ b/api/qan/v1/profile.pb.go @@ -7,13 +7,12 @@ package qanv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - 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" + unsafe "unsafe" ) const ( @@ -584,21 +583,18 @@ func file_qan_v1_profile_proto_rawDescGZIP() []byte { return file_qan_v1_profile_proto_rawDescData } -var ( - file_qan_v1_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) - file_qan_v1_profile_proto_goTypes = []any{ - (*GetReportRequest)(nil), // 0: qan.v1.GetReportRequest - (*ReportMapFieldEntry)(nil), // 1: qan.v1.ReportMapFieldEntry - (*GetReportResponse)(nil), // 2: qan.v1.GetReportResponse - (*Row)(nil), // 3: qan.v1.Row - (*Metric)(nil), // 4: qan.v1.Metric - (*Stat)(nil), // 5: qan.v1.Stat - nil, // 6: qan.v1.Row.MetricsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*Point)(nil), // 8: qan.v1.Point - } -) - +var file_qan_v1_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_qan_v1_profile_proto_goTypes = []any{ + (*GetReportRequest)(nil), // 0: qan.v1.GetReportRequest + (*ReportMapFieldEntry)(nil), // 1: qan.v1.ReportMapFieldEntry + (*GetReportResponse)(nil), // 2: qan.v1.GetReportResponse + (*Row)(nil), // 3: qan.v1.Row + (*Metric)(nil), // 4: qan.v1.Metric + (*Stat)(nil), // 5: qan.v1.Stat + nil, // 6: qan.v1.Row.MetricsEntry + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*Point)(nil), // 8: qan.v1.Point +} var file_qan_v1_profile_proto_depIdxs = []int32{ 7, // 0: qan.v1.GetReportRequest.period_start_from:type_name -> google.protobuf.Timestamp 7, // 1: qan.v1.GetReportRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/profile.pb.validate.go b/api/qan/v1/profile.pb.validate.go index 2357e48b4c6..fe2eb0e7026 100644 --- a/api/qan/v1/profile.pb.validate.go +++ b/api/qan/v1/profile.pb.validate.go @@ -226,8 +226,7 @@ func (e GetReportRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetReportRequestValidationError{} @@ -331,8 +330,7 @@ func (e ReportMapFieldEntryValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ReportMapFieldEntryValidationError{} @@ -474,8 +472,7 @@ func (e GetReportResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetReportResponseValidationError{} @@ -667,8 +664,7 @@ func (e RowValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = RowValidationError{} @@ -795,8 +791,7 @@ func (e MetricValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricValidationError{} @@ -910,8 +905,7 @@ func (e StatValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StatValidationError{} diff --git a/api/qan/v1/qan.pb.go b/api/qan/v1/qan.pb.go index c1d3bc6bb2e..8151058b8ea 100644 --- a/api/qan/v1/qan.pb.go +++ b/api/qan/v1/qan.pb.go @@ -7,12 +7,11 @@ package qanv1 import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -991,16 +990,13 @@ func file_qan_v1_qan_proto_rawDescGZIP() []byte { return file_qan_v1_qan_proto_rawDescData } -var ( - file_qan_v1_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_qan_v1_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_qan_v1_qan_proto_goTypes = []any{ - ExampleType(0), // 0: qan.v1.ExampleType - (*Point)(nil), // 1: qan.v1.Point - (*MapFieldEntry)(nil), // 2: qan.v1.MapFieldEntry - } -) - +var file_qan_v1_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_qan_v1_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_qan_v1_qan_proto_goTypes = []any{ + (ExampleType)(0), // 0: qan.v1.ExampleType + (*Point)(nil), // 1: qan.v1.Point + (*MapFieldEntry)(nil), // 2: qan.v1.MapFieldEntry +} var file_qan_v1_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/qan/v1/qan.pb.validate.go b/api/qan/v1/qan.pb.validate.go index ab31e2e4810..340a52bf0f7 100644 --- a/api/qan/v1/qan.pb.validate.go +++ b/api/qan/v1/qan.pb.validate.go @@ -278,8 +278,7 @@ func (e PointValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = PointValidationError{} @@ -381,8 +380,7 @@ func (e MapFieldEntryValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MapFieldEntryValidationError{} diff --git a/api/qan/v1/service.pb.go b/api/qan/v1/service.pb.go index 0e52423aa51..05c3c795339 100644 --- a/api/qan/v1/service.pb.go +++ b/api/qan/v1/service.pb.go @@ -7,14 +7,13 @@ package qanv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "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" + unsafe "unsafe" ) const ( @@ -228,37 +227,34 @@ func file_qan_v1_service_proto_rawDescGZIP() []byte { return file_qan_v1_service_proto_rawDescData } -var ( - file_qan_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) - file_qan_v1_service_proto_goTypes = []any{ - (*GetMetricsNamesRequest)(nil), // 0: qan.v1.GetMetricsNamesRequest - (*GetMetricsNamesResponse)(nil), // 1: qan.v1.GetMetricsNamesResponse - (*HealthCheckRequest)(nil), // 2: qan.v1.HealthCheckRequest - (*HealthCheckResponse)(nil), // 3: qan.v1.HealthCheckResponse - nil, // 4: qan.v1.GetMetricsNamesResponse.DataEntry - (*GetReportRequest)(nil), // 5: qan.v1.GetReportRequest - (*GetFilteredMetricsNamesRequest)(nil), // 6: qan.v1.GetFilteredMetricsNamesRequest - (*GetMetricsRequest)(nil), // 7: qan.v1.GetMetricsRequest - (*GetLabelsRequest)(nil), // 8: qan.v1.GetLabelsRequest - (*GetHistogramRequest)(nil), // 9: qan.v1.GetHistogramRequest - (*ExplainFingerprintByQueryIDRequest)(nil), // 10: qan.v1.ExplainFingerprintByQueryIDRequest - (*GetQueryPlanRequest)(nil), // 11: qan.v1.GetQueryPlanRequest - (*QueryExistsRequest)(nil), // 12: qan.v1.QueryExistsRequest - (*SchemaByQueryIDRequest)(nil), // 13: qan.v1.SchemaByQueryIDRequest - (*GetQueryExampleRequest)(nil), // 14: qan.v1.GetQueryExampleRequest - (*GetReportResponse)(nil), // 15: qan.v1.GetReportResponse - (*GetFilteredMetricsNamesResponse)(nil), // 16: qan.v1.GetFilteredMetricsNamesResponse - (*GetMetricsResponse)(nil), // 17: qan.v1.GetMetricsResponse - (*GetLabelsResponse)(nil), // 18: qan.v1.GetLabelsResponse - (*GetHistogramResponse)(nil), // 19: qan.v1.GetHistogramResponse - (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse - (*GetQueryPlanResponse)(nil), // 21: qan.v1.GetQueryPlanResponse - (*QueryExistsResponse)(nil), // 22: qan.v1.QueryExistsResponse - (*SchemaByQueryIDResponse)(nil), // 23: qan.v1.SchemaByQueryIDResponse - (*GetQueryExampleResponse)(nil), // 24: qan.v1.GetQueryExampleResponse - } -) - +var file_qan_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_qan_v1_service_proto_goTypes = []any{ + (*GetMetricsNamesRequest)(nil), // 0: qan.v1.GetMetricsNamesRequest + (*GetMetricsNamesResponse)(nil), // 1: qan.v1.GetMetricsNamesResponse + (*HealthCheckRequest)(nil), // 2: qan.v1.HealthCheckRequest + (*HealthCheckResponse)(nil), // 3: qan.v1.HealthCheckResponse + nil, // 4: qan.v1.GetMetricsNamesResponse.DataEntry + (*GetReportRequest)(nil), // 5: qan.v1.GetReportRequest + (*GetFilteredMetricsNamesRequest)(nil), // 6: qan.v1.GetFilteredMetricsNamesRequest + (*GetMetricsRequest)(nil), // 7: qan.v1.GetMetricsRequest + (*GetLabelsRequest)(nil), // 8: qan.v1.GetLabelsRequest + (*GetHistogramRequest)(nil), // 9: qan.v1.GetHistogramRequest + (*ExplainFingerprintByQueryIDRequest)(nil), // 10: qan.v1.ExplainFingerprintByQueryIDRequest + (*GetQueryPlanRequest)(nil), // 11: qan.v1.GetQueryPlanRequest + (*QueryExistsRequest)(nil), // 12: qan.v1.QueryExistsRequest + (*SchemaByQueryIDRequest)(nil), // 13: qan.v1.SchemaByQueryIDRequest + (*GetQueryExampleRequest)(nil), // 14: qan.v1.GetQueryExampleRequest + (*GetReportResponse)(nil), // 15: qan.v1.GetReportResponse + (*GetFilteredMetricsNamesResponse)(nil), // 16: qan.v1.GetFilteredMetricsNamesResponse + (*GetMetricsResponse)(nil), // 17: qan.v1.GetMetricsResponse + (*GetLabelsResponse)(nil), // 18: qan.v1.GetLabelsResponse + (*GetHistogramResponse)(nil), // 19: qan.v1.GetHistogramResponse + (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse + (*GetQueryPlanResponse)(nil), // 21: qan.v1.GetQueryPlanResponse + (*QueryExistsResponse)(nil), // 22: qan.v1.QueryExistsResponse + (*SchemaByQueryIDResponse)(nil), // 23: qan.v1.SchemaByQueryIDResponse + (*GetQueryExampleResponse)(nil), // 24: qan.v1.GetQueryExampleResponse +} var file_qan_v1_service_proto_depIdxs = []int32{ 4, // 0: qan.v1.GetMetricsNamesResponse.data:type_name -> qan.v1.GetMetricsNamesResponse.DataEntry 5, // 1: qan.v1.QANService.GetReport:input_type -> qan.v1.GetReportRequest diff --git a/api/qan/v1/service.pb.validate.go b/api/qan/v1/service.pb.validate.go index 685ef583493..611ba4ecddd 100644 --- a/api/qan/v1/service.pb.validate.go +++ b/api/qan/v1/service.pb.validate.go @@ -124,8 +124,7 @@ func (e GetMetricsNamesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetMetricsNamesRequestValidationError{} @@ -229,8 +228,7 @@ func (e GetMetricsNamesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetMetricsNamesResponseValidationError{} @@ -332,8 +330,7 @@ func (e HealthCheckRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HealthCheckRequestValidationError{} @@ -435,8 +432,7 @@ func (e HealthCheckResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HealthCheckResponseValidationError{} diff --git a/api/qan/v1/service_grpc.pb.go b/api/qan/v1/service_grpc.pb.go index d96a6d9d45c..752a91653a0 100644 --- a/api/qan/v1/service_grpc.pb.go +++ b/api/qan/v1/service_grpc.pb.go @@ -8,7 +8,6 @@ package qanv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -237,47 +236,36 @@ type UnimplementedQANServiceServer struct{} func (UnimplementedQANServiceServer) GetReport(context.Context, *GetReportRequest) (*GetReportResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetReport not implemented") } - func (UnimplementedQANServiceServer) GetFilteredMetricsNames(context.Context, *GetFilteredMetricsNamesRequest) (*GetFilteredMetricsNamesResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetFilteredMetricsNames not implemented") } - func (UnimplementedQANServiceServer) GetMetricsNames(context.Context, *GetMetricsNamesRequest) (*GetMetricsNamesResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetMetricsNames not implemented") } - func (UnimplementedQANServiceServer) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetMetrics not implemented") } - func (UnimplementedQANServiceServer) GetLabels(context.Context, *GetLabelsRequest) (*GetLabelsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetLabels not implemented") } - func (UnimplementedQANServiceServer) GetHistogram(context.Context, *GetHistogramRequest) (*GetHistogramResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetHistogram not implemented") } - func (UnimplementedQANServiceServer) ExplainFingerprintByQueryID(context.Context, *ExplainFingerprintByQueryIDRequest) (*ExplainFingerprintByQueryIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method ExplainFingerprintByQueryID not implemented") } - func (UnimplementedQANServiceServer) GetQueryPlan(context.Context, *GetQueryPlanRequest) (*GetQueryPlanResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetQueryPlan not implemented") } - func (UnimplementedQANServiceServer) QueryExists(context.Context, *QueryExistsRequest) (*QueryExistsResponse, error) { return nil, status.Error(codes.Unimplemented, "method QueryExists not implemented") } - func (UnimplementedQANServiceServer) SchemaByQueryID(context.Context, *SchemaByQueryIDRequest) (*SchemaByQueryIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method SchemaByQueryID not implemented") } - func (UnimplementedQANServiceServer) GetQueryExample(context.Context, *GetQueryExampleRequest) (*GetQueryExampleResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetQueryExample not implemented") } - func (UnimplementedQANServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } diff --git a/api/realtimeanalytics/v1/collector.pb.go b/api/realtimeanalytics/v1/collector.pb.go index f149de0a6cf..8bb47bf7612 100644 --- a/api/realtimeanalytics/v1/collector.pb.go +++ b/api/realtimeanalytics/v1/collector.pb.go @@ -7,13 +7,12 @@ package realtimeanalyticsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "google.golang.org/genproto/googleapis/api/visibility" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -132,15 +131,12 @@ func file_realtimeanalytics_v1_collector_proto_rawDescGZIP() []byte { return file_realtimeanalytics_v1_collector_proto_rawDescData } -var ( - file_realtimeanalytics_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_realtimeanalytics_v1_collector_proto_goTypes = []any{ - (*CollectRequest)(nil), // 0: realtimeanalytics.v1.CollectRequest - (*CollectResponse)(nil), // 1: realtimeanalytics.v1.CollectResponse - (*QueryData)(nil), // 2: realtimeanalytics.v1.QueryData - } -) - +var file_realtimeanalytics_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_realtimeanalytics_v1_collector_proto_goTypes = []any{ + (*CollectRequest)(nil), // 0: realtimeanalytics.v1.CollectRequest + (*CollectResponse)(nil), // 1: realtimeanalytics.v1.CollectResponse + (*QueryData)(nil), // 2: realtimeanalytics.v1.QueryData +} var file_realtimeanalytics_v1_collector_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.CollectRequest.queries:type_name -> realtimeanalytics.v1.QueryData 0, // 1: realtimeanalytics.v1.CollectorService.Collect:input_type -> realtimeanalytics.v1.CollectRequest diff --git a/api/realtimeanalytics/v1/collector.pb.validate.go b/api/realtimeanalytics/v1/collector.pb.validate.go index 591ccae1897..5bfa454f5e1 100644 --- a/api/realtimeanalytics/v1/collector.pb.validate.go +++ b/api/realtimeanalytics/v1/collector.pb.validate.go @@ -156,8 +156,7 @@ func (e CollectRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CollectRequestValidationError{} @@ -257,8 +256,7 @@ func (e CollectResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CollectResponseValidationError{} diff --git a/api/realtimeanalytics/v1/collector_grpc.pb.go b/api/realtimeanalytics/v1/collector_grpc.pb.go index 738bc9985e9..7bd50b8144c 100644 --- a/api/realtimeanalytics/v1/collector_grpc.pb.go +++ b/api/realtimeanalytics/v1/collector_grpc.pb.go @@ -8,7 +8,6 @@ package realtimeanalyticsv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_parameters.go index 96fb471c460..9fd15528e3f 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/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 { + /* ServiceType. Return only services filtered by service type. @@ -85,7 +86,9 @@ func (o *ListServicesParams) WithDefaults() *ListServicesParams { // // All values with no default are reset to their zero value. func (o *ListServicesParams) SetDefaults() { - serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") + var ( + serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") + ) val := ListServicesParams{ ServiceType: &serviceTypeDefault, @@ -143,6 +146,7 @@ func (o *ListServicesParams) SetServiceType(serviceType *string) { // 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 } @@ -158,6 +162,7 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qServiceType := qrServiceType if qServiceType != "" { + if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go index bcac3d589dc..373d9475d69 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go @@ -104,6 +104,7 @@ func (o *ListServicesOK) GetPayload() *ListServicesOKBody { } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListServicesDefaultBody) // response payload @@ -192,6 +194,7 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -309,6 +315,7 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListServicesDefaultBodyDetailsItems0 struct { func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { + // mongodb Mongodb []*ListServicesOKBodyMongodbItems0 `json:"mongodb"` } @@ -483,7 +493,9 @@ func (o *ListServicesOKBody) ContextValidate(ctx context.Context, formats strfmt } 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 swag.IsZero(o.Mongodb[i]) { // not required @@ -503,6 +515,7 @@ func (o *ListServicesOKBody) contextValidateMongodb(ctx context.Context, formats return err } } + } return nil @@ -531,6 +544,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"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go index d2d9bb171b0..5a86ae81b0c 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go @@ -60,6 +60,7 @@ ListSessionsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListSessionsParams struct { + /* ClusterName. Optional filter by cluster name. @@ -132,6 +133,7 @@ func (o *ListSessionsParams) SetClusterName(clusterName *string) { // WriteToRequest writes these params to a swagger request func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -147,6 +149,7 @@ func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qClusterName := qrClusterName if qClusterName != "" { + if err := r.SetQueryParam("cluster_name", qClusterName); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go index 1fc6503d603..e54f361204c 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go @@ -105,6 +105,7 @@ func (o *ListSessionsOK) GetPayload() *ListSessionsOKBody { } func (o *ListSessionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListSessionsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListSessionsDefault) GetPayload() *ListSessionsDefaultBody { } func (o *ListSessionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListSessionsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListSessionsDefaultBody list sessions default body swagger:model ListSessionsDefaultBody */ type ListSessionsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListSessionsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListSessionsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListSessionsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -310,6 +316,7 @@ ListSessionsDefaultBodyDetailsItems0 list sessions default body details items0 swagger:model ListSessionsDefaultBodyDetailsItems0 */ type ListSessionsDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type ListSessionsDefaultBodyDetailsItems0 struct { func (o *ListSessionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *ListSessionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListSessionsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ ListSessionsOKBody ListSessionsResponse returns the list of currently active Rea swagger:model ListSessionsOKBody */ type ListSessionsOKBody struct { + // List of active Real-Time Analytics Sessions. Sessions []*ListSessionsOKBodySessionsItems0 `json:"sessions"` } @@ -484,7 +494,9 @@ func (o *ListSessionsOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListSessionsOKBody) contextValidateSessions(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Sessions); i++ { + if o.Sessions[i] != nil { if swag.IsZero(o.Sessions[i]) { // not required @@ -504,6 +516,7 @@ func (o *ListSessionsOKBody) contextValidateSessions(ctx context.Context, format return err } } + } return nil @@ -532,6 +545,7 @@ ListSessionsOKBodySessionsItems0 Session represents an active Real-Time Analytic swagger:model ListSessionsOKBodySessionsItems0 */ type ListSessionsOKBodySessionsItems0 struct { + // Service identifier that has enabled Real-Time Analytics session. ServiceID string `json:"service_id,omitempty"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go index 0960212209a..d2ec16d2f6d 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go @@ -60,6 +60,7 @@ SearchQueriesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type SearchQueriesParams struct { + /* Body. SearchQueriesRequest contains optional filters for listing active Real-Time Analytics session Queries. @@ -132,6 +133,7 @@ func (o *SearchQueriesParams) SetBody(body SearchQueriesBody) { // WriteToRequest writes these params to a swagger request func (o *SearchQueriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go index c99d83d5853..189f74dfd04 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go @@ -105,6 +105,7 @@ func (o *SearchQueriesOK) GetPayload() *SearchQueriesOKBody { } func (o *SearchQueriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SearchQueriesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *SearchQueriesDefault) GetPayload() *SearchQueriesDefaultBody { } func (o *SearchQueriesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(SearchQueriesDefaultBody) // response payload @@ -193,6 +195,7 @@ SearchQueriesBody SearchQueriesRequest contains optional filters for listing act swagger:model SearchQueriesBody */ type SearchQueriesBody struct { + // Optional filter by Service identifiers. ServiceIds []string `json:"service_ids"` @@ -233,6 +236,7 @@ SearchQueriesDefaultBody search queries default body swagger:model SearchQueriesDefaultBody */ type SearchQueriesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -302,7 +306,9 @@ func (o *SearchQueriesDefaultBody) ContextValidate(ctx context.Context, formats } func (o *SearchQueriesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,6 +328,7 @@ func (o *SearchQueriesDefaultBody) contextValidateDetails(ctx context.Context, f return err } } + } return nil @@ -350,6 +357,7 @@ SearchQueriesDefaultBodyDetailsItems0 search queries default body details items0 swagger:model SearchQueriesDefaultBodyDetailsItems0 */ type SearchQueriesDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -361,6 +369,7 @@ type SearchQueriesDefaultBodyDetailsItems0 struct { func (o *SearchQueriesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -398,6 +407,7 @@ func (o *SearchQueriesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o SearchQueriesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -461,6 +471,7 @@ SearchQueriesOKBody SearchQueriesResponse returns the list of currently active R swagger:model SearchQueriesOKBody */ type SearchQueriesOKBody struct { + // List of active Real-Time Analytics session Queries. Queries []*SearchQueriesOKBodyQueriesItems0 `json:"queries"` } @@ -524,7 +535,9 @@ func (o *SearchQueriesOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *SearchQueriesOKBody) contextValidateQueries(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Queries); i++ { + if o.Queries[i] != nil { if swag.IsZero(o.Queries[i]) { // not required @@ -544,6 +557,7 @@ func (o *SearchQueriesOKBody) contextValidateQueries(ctx context.Context, format return err } } + } return nil @@ -573,6 +587,7 @@ SearchQueriesOKBodyQueriesItems0 QueryData represents a single Real-Time Analyti swagger:model SearchQueriesOKBodyQueriesItems0 */ type SearchQueriesOKBodyQueriesItems0 struct { + // PMM Service identifier that reported the query. ServiceID string `json:"service_id,omitempty"` @@ -670,6 +685,7 @@ func (o *SearchQueriesOKBodyQueriesItems0) ContextValidate(ctx context.Context, } func (o *SearchQueriesOKBodyQueriesItems0) contextValidateMongoDBPayload(ctx context.Context, formats strfmt.Registry) error { + if o.MongoDBPayload != nil { if swag.IsZero(o.MongoDBPayload) { // not required @@ -716,6 +732,7 @@ SearchQueriesOKBodyQueriesItems0MongoDBPayload QueryMongoDBData holds MongoDB-sp swagger:model SearchQueriesOKBodyQueriesItems0MongoDBPayload */ type SearchQueriesOKBodyQueriesItems0MongoDBPayload struct { + // MongoDB instance address(host:port) that processing the query. DBInstanceAddress string `json:"db_instance_address,omitempty"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go index 9a02b81b572..24d3dc531e9 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go @@ -60,6 +60,7 @@ StartSessionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartSessionParams struct { + /* Body. StartSessionRequest contains parameters for starting Real-Time Analytics session. @@ -132,6 +133,7 @@ func (o *StartSessionParams) SetBody(body StartSessionBody) { // WriteToRequest writes these params to a swagger request func (o *StartSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go index 8cfa9fd7612..579db2aef04 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go @@ -105,6 +105,7 @@ func (o *StartSessionOK) GetPayload() *StartSessionOKBody { } func (o *StartSessionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartSessionOKBody) // response payload @@ -178,6 +179,7 @@ func (o *StartSessionDefault) GetPayload() *StartSessionDefaultBody { } func (o *StartSessionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartSessionDefaultBody) // response payload @@ -193,6 +195,7 @@ StartSessionBody StartSessionRequest contains parameters for starting Real-Time swagger:model StartSessionBody */ type StartSessionBody struct { + // Required service identifier the Real-Time Analytics session shall be started for. ServiceID string `json:"service_id,omitempty"` } @@ -230,6 +233,7 @@ StartSessionDefaultBody start session default body swagger:model StartSessionDefaultBody */ type StartSessionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -299,7 +303,9 @@ func (o *StartSessionDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *StartSessionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -319,6 +325,7 @@ func (o *StartSessionDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -347,6 +354,7 @@ StartSessionDefaultBodyDetailsItems0 start session default body details items0 swagger:model StartSessionDefaultBodyDetailsItems0 */ type StartSessionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -358,6 +366,7 @@ type StartSessionDefaultBodyDetailsItems0 struct { func (o *StartSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -395,6 +404,7 @@ func (o *StartSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o StartSessionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -458,6 +468,7 @@ StartSessionOKBody StartSessionResponse is the response for starting Real-Time A swagger:model StartSessionOKBody */ type StartSessionOKBody struct { + // session Session *StartSessionOKBodySession `json:"session,omitempty"` } @@ -514,6 +525,7 @@ func (o *StartSessionOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *StartSessionOKBody) contextValidateSession(ctx context.Context, formats strfmt.Registry) error { + if o.Session != nil { if swag.IsZero(o.Session) { // not required @@ -560,6 +572,7 @@ StartSessionOKBodySession Session represents an active Real-Time Analytics sessi swagger:model StartSessionOKBodySession */ type StartSessionOKBodySession struct { + // Service identifier that has enabled Real-Time Analytics session. ServiceID string `json:"service_id,omitempty"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go index 13fe4370d0e..89661b9e6dc 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go @@ -60,6 +60,7 @@ StopSessionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StopSessionParams struct { + /* Body. StopSessionRequest contains parameters for stopping Real-Time Analytics session. @@ -132,6 +133,7 @@ func (o *StopSessionParams) SetBody(body StopSessionBody) { // WriteToRequest writes these params to a swagger request func (o *StopSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go index 020899894ca..38a1c14f612 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go @@ -104,6 +104,7 @@ func (o *StopSessionOK) GetPayload() any { } func (o *StopSessionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *StopSessionDefault) GetPayload() *StopSessionDefaultBody { } func (o *StopSessionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StopSessionDefaultBody) // response payload @@ -190,6 +192,7 @@ StopSessionBody StopSessionRequest contains parameters for stopping Real-Time An swagger:model StopSessionBody */ type StopSessionBody struct { + // Required service identifier the Real-Time Analytics session shall be stopped for. ServiceID string `json:"service_id,omitempty"` } @@ -227,6 +230,7 @@ StopSessionDefaultBody stop session default body swagger:model StopSessionDefaultBody */ type StopSessionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -296,7 +300,9 @@ func (o *StopSessionDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *StopSessionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -316,6 +322,7 @@ func (o *StopSessionDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -344,6 +351,7 @@ StopSessionDefaultBodyDetailsItems0 stop session default body details items0 swagger:model StopSessionDefaultBodyDetailsItems0 */ type StopSessionDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -355,6 +363,7 @@ type StopSessionDefaultBodyDetailsItems0 struct { func (o *StopSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -392,6 +401,7 @@ func (o *StopSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StopSessionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } diff --git a/api/realtimeanalytics/v1/query.pb.go b/api/realtimeanalytics/v1/query.pb.go index 6d3f2df71da..d2c537c1744 100644 --- a/api/realtimeanalytics/v1/query.pb.go +++ b/api/realtimeanalytics/v1/query.pb.go @@ -7,14 +7,13 @@ package realtimeanalyticsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - 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" + unsafe "unsafe" ) const ( @@ -320,16 +319,13 @@ func file_realtimeanalytics_v1_query_proto_rawDescGZIP() []byte { return file_realtimeanalytics_v1_query_proto_rawDescData } -var ( - file_realtimeanalytics_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) - file_realtimeanalytics_v1_query_proto_goTypes = []any{ - (*QueryMongoDBData)(nil), // 0: realtimeanalytics.v1.QueryMongoDBData - (*QueryData)(nil), // 1: realtimeanalytics.v1.QueryData - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 3: google.protobuf.Duration - } -) - +var file_realtimeanalytics_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_realtimeanalytics_v1_query_proto_goTypes = []any{ + (*QueryMongoDBData)(nil), // 0: realtimeanalytics.v1.QueryMongoDBData + (*QueryData)(nil), // 1: realtimeanalytics.v1.QueryData + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 3: google.protobuf.Duration +} var file_realtimeanalytics_v1_query_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.QueryMongoDBData.operation_start_time:type_name -> google.protobuf.Timestamp 3, // 1: realtimeanalytics.v1.QueryData.query_execution_duration:type_name -> google.protobuf.Duration diff --git a/api/realtimeanalytics/v1/query.pb.validate.go b/api/realtimeanalytics/v1/query.pb.validate.go index af551461acf..fbb91f40039 100644 --- a/api/realtimeanalytics/v1/query.pb.validate.go +++ b/api/realtimeanalytics/v1/query.pb.validate.go @@ -165,8 +165,7 @@ func (e QueryMongoDBDataValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryMongoDBDataValidationError{} @@ -381,8 +380,7 @@ func (e QueryDataValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = QueryDataValidationError{} diff --git a/api/realtimeanalytics/v1/realtimeanalytics.pb.go b/api/realtimeanalytics/v1/realtimeanalytics.pb.go index 8dbdbf8ccff..1d1b609979f 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics.pb.go +++ b/api/realtimeanalytics/v1/realtimeanalytics.pb.go @@ -7,19 +7,17 @@ package realtimeanalyticsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -695,30 +693,27 @@ func file_realtimeanalytics_v1_realtimeanalytics_proto_rawDescGZIP() []byte { return file_realtimeanalytics_v1_realtimeanalytics_proto_rawDescData } -var ( - file_realtimeanalytics_v1_realtimeanalytics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_realtimeanalytics_v1_realtimeanalytics_proto_msgTypes = make([]protoimpl.MessageInfo, 11) - file_realtimeanalytics_v1_realtimeanalytics_proto_goTypes = []any{ - SessionStatus(0), // 0: realtimeanalytics.v1.SessionStatus - (*ListServicesRequest)(nil), // 1: realtimeanalytics.v1.ListServicesRequest - (*ListServicesResponse)(nil), // 2: realtimeanalytics.v1.ListServicesResponse - (*Session)(nil), // 3: realtimeanalytics.v1.Session - (*ListSessionsRequest)(nil), // 4: realtimeanalytics.v1.ListSessionsRequest - (*ListSessionsResponse)(nil), // 5: realtimeanalytics.v1.ListSessionsResponse - (*StartSessionRequest)(nil), // 6: realtimeanalytics.v1.StartSessionRequest - (*StartSessionResponse)(nil), // 7: realtimeanalytics.v1.StartSessionResponse - (*StopSessionRequest)(nil), // 8: realtimeanalytics.v1.StopSessionRequest - (*StopSessionResponse)(nil), // 9: realtimeanalytics.v1.StopSessionResponse - (*SearchQueriesRequest)(nil), // 10: realtimeanalytics.v1.SearchQueriesRequest - (*SearchQueriesResponse)(nil), // 11: realtimeanalytics.v1.SearchQueriesResponse - v1.ServiceType(0), // 12: inventory.v1.ServiceType - (*v1.MongoDBService)(nil), // 13: inventory.v1.MongoDBService - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 15: google.protobuf.Duration - (*QueryData)(nil), // 16: realtimeanalytics.v1.QueryData - } -) - +var file_realtimeanalytics_v1_realtimeanalytics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_realtimeanalytics_v1_realtimeanalytics_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_realtimeanalytics_v1_realtimeanalytics_proto_goTypes = []any{ + (SessionStatus)(0), // 0: realtimeanalytics.v1.SessionStatus + (*ListServicesRequest)(nil), // 1: realtimeanalytics.v1.ListServicesRequest + (*ListServicesResponse)(nil), // 2: realtimeanalytics.v1.ListServicesResponse + (*Session)(nil), // 3: realtimeanalytics.v1.Session + (*ListSessionsRequest)(nil), // 4: realtimeanalytics.v1.ListSessionsRequest + (*ListSessionsResponse)(nil), // 5: realtimeanalytics.v1.ListSessionsResponse + (*StartSessionRequest)(nil), // 6: realtimeanalytics.v1.StartSessionRequest + (*StartSessionResponse)(nil), // 7: realtimeanalytics.v1.StartSessionResponse + (*StopSessionRequest)(nil), // 8: realtimeanalytics.v1.StopSessionRequest + (*StopSessionResponse)(nil), // 9: realtimeanalytics.v1.StopSessionResponse + (*SearchQueriesRequest)(nil), // 10: realtimeanalytics.v1.SearchQueriesRequest + (*SearchQueriesResponse)(nil), // 11: realtimeanalytics.v1.SearchQueriesResponse + (v1.ServiceType)(0), // 12: inventory.v1.ServiceType + (*v1.MongoDBService)(nil), // 13: inventory.v1.MongoDBService + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 15: google.protobuf.Duration + (*QueryData)(nil), // 16: realtimeanalytics.v1.QueryData +} var file_realtimeanalytics_v1_realtimeanalytics_proto_depIdxs = []int32{ 12, // 0: realtimeanalytics.v1.ListServicesRequest.service_type:type_name -> inventory.v1.ServiceType 13, // 1: realtimeanalytics.v1.ListServicesResponse.mongodb:type_name -> inventory.v1.MongoDBService diff --git a/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go b/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go index f392e0a0102..fb661d0e176 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go +++ b/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go @@ -130,8 +130,7 @@ func (e ListServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListServicesRequestValidationError{} @@ -267,8 +266,7 @@ func (e ListServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListServicesResponseValidationError{} @@ -432,8 +430,7 @@ func (e SessionValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SessionValidationError{} @@ -537,8 +534,7 @@ func (e ListSessionsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListSessionsRequestValidationError{} @@ -674,8 +670,7 @@ func (e ListSessionsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListSessionsResponseValidationError{} @@ -788,8 +783,7 @@ func (e StartSessionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartSessionRequestValidationError{} @@ -920,8 +914,7 @@ func (e StartSessionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartSessionResponseValidationError{} @@ -1034,8 +1027,7 @@ func (e StopSessionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StopSessionRequestValidationError{} @@ -1137,8 +1129,7 @@ func (e StopSessionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StopSessionResponseValidationError{} @@ -1274,8 +1265,7 @@ func (e SearchQueriesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SearchQueriesRequestValidationError{} @@ -1411,8 +1401,7 @@ func (e SearchQueriesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SearchQueriesResponseValidationError{} diff --git a/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go b/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go index 0d389f33d03..730891f4d8d 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go +++ b/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go @@ -8,7 +8,6 @@ package realtimeanalyticsv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -132,23 +131,18 @@ type UnimplementedRealtimeAnalyticsServiceServer struct{} func (UnimplementedRealtimeAnalyticsServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListServices not implemented") } - func (UnimplementedRealtimeAnalyticsServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListSessions not implemented") } - func (UnimplementedRealtimeAnalyticsServiceServer) StartSession(context.Context, *StartSessionRequest) (*StartSessionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartSession not implemented") } - func (UnimplementedRealtimeAnalyticsServiceServer) StopSession(context.Context, *StopSessionRequest) (*StopSessionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StopSession not implemented") } - func (UnimplementedRealtimeAnalyticsServiceServer) SearchQueries(context.Context, *SearchQueriesRequest) (*SearchQueriesResponse, error) { return nil, status.Error(codes.Unimplemented, "method SearchQueries not implemented") } - func (UnimplementedRealtimeAnalyticsServiceServer) mustEmbedUnimplementedRealtimeAnalyticsServiceServer() { } func (UnimplementedRealtimeAnalyticsServiceServer) testEmbeddedByValue() {} diff --git a/api/server/v1/httperror.pb.go b/api/server/v1/httperror.pb.go index 8778ad26272..a71c3b4f133 100644 --- a/api/server/v1/httperror.pb.go +++ b/api/server/v1/httperror.pb.go @@ -7,13 +7,12 @@ package serverv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - 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" + unsafe "unsafe" ) const ( @@ -120,14 +119,11 @@ func file_server_v1_httperror_proto_rawDescGZIP() []byte { return file_server_v1_httperror_proto_rawDescData } -var ( - file_server_v1_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) - file_server_v1_httperror_proto_goTypes = []any{ - (*HttpError)(nil), // 0: server.v1.HttpError - (*anypb.Any)(nil), // 1: google.protobuf.Any - } -) - +var file_server_v1_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_server_v1_httperror_proto_goTypes = []any{ + (*HttpError)(nil), // 0: server.v1.HttpError + (*anypb.Any)(nil), // 1: google.protobuf.Any +} var file_server_v1_httperror_proto_depIdxs = []int32{ 1, // 0: server.v1.HttpError.details:type_name -> google.protobuf.Any 1, // [1:1] is the sub-list for method output_type diff --git a/api/server/v1/httperror.pb.validate.go b/api/server/v1/httperror.pb.validate.go index 382bb964ae1..81217e496fb 100644 --- a/api/server/v1/httperror.pb.validate.go +++ b/api/server/v1/httperror.pb.validate.go @@ -161,8 +161,7 @@ func (e HttpErrorValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = HttpErrorValidationError{} diff --git a/api/server/v1/json/client/server_service/change_settings_parameters.go b/api/server/v1/json/client/server_service/change_settings_parameters.go index 12afd77da38..8fd09d8309e 100644 --- a/api/server/v1/json/client/server_service/change_settings_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/change_settings_responses.go b/api/server/v1/json/client/server_service/change_settings_responses.go index b916ef04041..072d37b9672 100644 --- a/api/server/v1/json/client/server_service/change_settings_responses.go +++ b/api/server/v1/json/client/server_service/change_settings_responses.go @@ -104,6 +104,7 @@ func (o *ChangeSettingsOK) GetPayload() *ChangeSettingsOKBody { } func (o *ChangeSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeSettingsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ChangeSettingsDefault) GetPayload() *ChangeSettingsDefaultBody { } func (o *ChangeSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ChangeSettingsDefaultBody) // response payload @@ -192,6 +194,7 @@ ChangeSettingsBody change settings body swagger:model ChangeSettingsBody */ type ChangeSettingsBody struct { + // enable updates EnableUpdates *bool `json:"enable_updates,omitempty"` @@ -352,6 +355,7 @@ func (o *ChangeSettingsBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeSettingsBody) contextValidateAdvisorRunIntervals(ctx context.Context, formats strfmt.Registry) error { + if o.AdvisorRunIntervals != nil { if swag.IsZero(o.AdvisorRunIntervals) { // not required @@ -376,6 +380,7 @@ func (o *ChangeSettingsBody) contextValidateAdvisorRunIntervals(ctx context.Cont } func (o *ChangeSettingsBody) contextValidateAWSPartitions(ctx context.Context, formats strfmt.Registry) error { + if o.AWSPartitions != nil { if swag.IsZero(o.AWSPartitions) { // not required @@ -400,6 +405,7 @@ func (o *ChangeSettingsBody) contextValidateAWSPartitions(ctx context.Context, f } func (o *ChangeSettingsBody) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -446,6 +452,7 @@ ChangeSettingsDefaultBody change settings default body swagger:model ChangeSettingsDefaultBody */ type ChangeSettingsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -515,7 +522,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 swag.IsZero(o.Details[i]) { // not required @@ -535,6 +544,7 @@ func (o *ChangeSettingsDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -647,6 +657,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 @@ -685,6 +696,7 @@ type ChangeSettingsDefaultBodyDetailsItems0 struct { func (o *ChangeSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -749,6 +761,7 @@ func (o *ChangeSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeSettingsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -839,6 +852,7 @@ ChangeSettingsOKBody change settings OK body swagger:model ChangeSettingsOKBody */ type ChangeSettingsOKBody struct { + // settings Settings *ChangeSettingsOKBodySettings `json:"settings,omitempty"` } @@ -895,6 +909,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 swag.IsZero(o.Settings) { // not required @@ -941,6 +956,7 @@ ChangeSettingsOKBodySettings Settings represents PMM Server settings. swagger:model ChangeSettingsOKBodySettings */ type ChangeSettingsOKBodySettings struct { + // True if updates are enabled. UpdatesEnabled bool `json:"updates_enabled,omitempty"` @@ -1082,6 +1098,7 @@ func (o *ChangeSettingsOKBodySettings) ContextValidate(ctx context.Context, form } func (o *ChangeSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx context.Context, formats strfmt.Registry) error { + if o.AdvisorRunIntervals != nil { if swag.IsZero(o.AdvisorRunIntervals) { // not required @@ -1106,6 +1123,7 @@ func (o *ChangeSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx co } func (o *ChangeSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -1152,6 +1170,7 @@ ChangeSettingsOKBodySettingsAdvisorRunIntervals AdvisorRunIntervals represents i swagger:model ChangeSettingsOKBodySettingsAdvisorRunIntervals */ type ChangeSettingsOKBodySettingsAdvisorRunIntervals struct { + // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -1195,6 +1214,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"` @@ -1238,6 +1258,7 @@ ChangeSettingsParamsBodyAWSPartitions A wrapper for a string array. This type al swagger:model ChangeSettingsParamsBodyAWSPartitions */ type ChangeSettingsParamsBodyAWSPartitions struct { + // values Values []string `json:"values"` } @@ -1275,6 +1296,7 @@ ChangeSettingsParamsBodyAdvisorRunIntervals AdvisorRunIntervals represents inter swagger:model ChangeSettingsParamsBodyAdvisorRunIntervals */ type ChangeSettingsParamsBodyAdvisorRunIntervals struct { + // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -1318,6 +1340,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"` diff --git a/api/server/v1/json/client/server_service/check_updates_parameters.go b/api/server/v1/json/client/server_service/check_updates_parameters.go index 9bf5b1322dc..601149cc3e7 100644 --- a/api/server/v1/json/client/server_service/check_updates_parameters.go +++ b/api/server/v1/json/client/server_service/check_updates_parameters.go @@ -61,6 +61,7 @@ CheckUpdatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CheckUpdatesParams struct { + /* Force. If false, cached information may be returned. @@ -150,6 +151,7 @@ func (o *CheckUpdatesParams) SetOnlyInstalledVersion(onlyInstalledVersion *bool) // 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 } @@ -165,6 +167,7 @@ func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qForce := swag.FormatBool(qrForce) if qForce != "" { + if err := r.SetQueryParam("force", qForce); err != nil { return err } @@ -181,6 +184,7 @@ func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qOnlyInstalledVersion := swag.FormatBool(qrOnlyInstalledVersion) if qOnlyInstalledVersion != "" { + if err := r.SetQueryParam("only_installed_version", qOnlyInstalledVersion); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/check_updates_responses.go b/api/server/v1/json/client/server_service/check_updates_responses.go index 85b567a990f..459be6a1852 100644 --- a/api/server/v1/json/client/server_service/check_updates_responses.go +++ b/api/server/v1/json/client/server_service/check_updates_responses.go @@ -105,6 +105,7 @@ func (o *CheckUpdatesOK) GetPayload() *CheckUpdatesOKBody { } func (o *CheckUpdatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CheckUpdatesOKBody) // response payload @@ -178,6 +179,7 @@ func (o *CheckUpdatesDefault) GetPayload() *CheckUpdatesDefaultBody { } func (o *CheckUpdatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(CheckUpdatesDefaultBody) // response payload @@ -193,6 +195,7 @@ CheckUpdatesDefaultBody check updates default body swagger:model CheckUpdatesDefaultBody */ type CheckUpdatesDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *CheckUpdatesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -394,6 +400,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 @@ -432,6 +439,7 @@ type CheckUpdatesDefaultBodyDetailsItems0 struct { func (o *CheckUpdatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -496,6 +504,7 @@ func (o *CheckUpdatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o CheckUpdatesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -586,6 +595,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"` @@ -702,6 +712,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 swag.IsZero(o.Installed) { // not required @@ -726,6 +737,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 swag.IsZero(o.Latest) { // not required @@ -772,6 +784,7 @@ CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Serv swagger:model CheckUpdatesOKBodyInstalled */ type CheckUpdatesOKBodyInstalled struct { + // User-visible version. Version string `json:"version,omitempty"` @@ -837,6 +850,7 @@ CheckUpdatesOKBodyLatest check updates OK body latest swagger:model CheckUpdatesOKBodyLatest */ type CheckUpdatesOKBodyLatest struct { + // PMM Version. Version string `json:"version,omitempty"` diff --git a/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go b/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go index ce14210b120..b4859e143a8 100644 --- a/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go +++ b/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go @@ -115,6 +115,7 @@ func (o *GetReadOnlySettingsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *GetReadOnlySettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/get_read_only_settings_responses.go b/api/server/v1/json/client/server_service/get_read_only_settings_responses.go index 31376147ddf..1c819458b59 100644 --- a/api/server/v1/json/client/server_service/get_read_only_settings_responses.go +++ b/api/server/v1/json/client/server_service/get_read_only_settings_responses.go @@ -104,6 +104,7 @@ func (o *GetReadOnlySettingsOK) GetPayload() *GetReadOnlySettingsOKBody { } func (o *GetReadOnlySettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetReadOnlySettingsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetReadOnlySettingsDefault) GetPayload() *GetReadOnlySettingsDefaultBod } func (o *GetReadOnlySettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetReadOnlySettingsDefaultBody) // response payload @@ -192,6 +194,7 @@ GetReadOnlySettingsDefaultBody get read only settings default body swagger:model GetReadOnlySettingsDefaultBody */ type GetReadOnlySettingsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *GetReadOnlySettingsDefaultBody) ContextValidate(ctx context.Context, fo } func (o *GetReadOnlySettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetReadOnlySettingsDefaultBody) contextValidateDetails(ctx context.Cont return err } } + } return nil @@ -393,6 +399,7 @@ GetReadOnlySettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serializ swagger:model GetReadOnlySettingsDefaultBodyDetailsItems0 */ type GetReadOnlySettingsDefaultBodyDetailsItems0 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 @@ -431,6 +438,7 @@ type GetReadOnlySettingsDefaultBodyDetailsItems0 struct { func (o *GetReadOnlySettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -495,6 +503,7 @@ func (o *GetReadOnlySettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o GetReadOnlySettingsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -585,6 +594,7 @@ GetReadOnlySettingsOKBody get read only settings OK body swagger:model GetReadOnlySettingsOKBody */ type GetReadOnlySettingsOKBody struct { + // settings Settings *GetReadOnlySettingsOKBodySettings `json:"settings,omitempty"` } @@ -641,6 +651,7 @@ func (o *GetReadOnlySettingsOKBody) ContextValidate(ctx context.Context, formats } func (o *GetReadOnlySettingsOKBody) contextValidateSettings(ctx context.Context, formats strfmt.Registry) error { + if o.Settings != nil { if swag.IsZero(o.Settings) { // not required @@ -687,6 +698,7 @@ GetReadOnlySettingsOKBodySettings ReadOnlySettings represents a stripped-down ve swagger:model GetReadOnlySettingsOKBodySettings */ type GetReadOnlySettingsOKBodySettings struct { + // True if updates are enabled. UpdatesEnabled bool `json:"updates_enabled,omitempty"` diff --git a/api/server/v1/json/client/server_service/get_settings_parameters.go b/api/server/v1/json/client/server_service/get_settings_parameters.go index a25fa8d3b24..f41cc415346 100644 --- a/api/server/v1/json/client/server_service/get_settings_parameters.go +++ b/api/server/v1/json/client/server_service/get_settings_parameters.go @@ -115,6 +115,7 @@ func (o *GetSettingsParams) SetHTTPClient(client *http.Client) { // 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/server/v1/json/client/server_service/get_settings_responses.go b/api/server/v1/json/client/server_service/get_settings_responses.go index 23c0026d5c9..dd50369970f 100644 --- a/api/server/v1/json/client/server_service/get_settings_responses.go +++ b/api/server/v1/json/client/server_service/get_settings_responses.go @@ -104,6 +104,7 @@ func (o *GetSettingsOK) GetPayload() *GetSettingsOKBody { } func (o *GetSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetSettingsOKBody) // response payload @@ -177,6 +178,7 @@ func (o *GetSettingsDefault) GetPayload() *GetSettingsDefaultBody { } func (o *GetSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetSettingsDefaultBody) // response payload @@ -192,6 +194,7 @@ GetSettingsDefaultBody get settings default body swagger:model GetSettingsDefaultBody */ type GetSettingsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,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 swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *GetSettingsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -393,6 +399,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 @@ -431,6 +438,7 @@ type GetSettingsDefaultBodyDetailsItems0 struct { func (o *GetSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -495,6 +503,7 @@ func (o *GetSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetSettingsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -585,6 +594,7 @@ GetSettingsOKBody get settings OK body swagger:model GetSettingsOKBody */ type GetSettingsOKBody struct { + // settings Settings *GetSettingsOKBodySettings `json:"settings,omitempty"` } @@ -641,6 +651,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 swag.IsZero(o.Settings) { // not required @@ -687,6 +698,7 @@ GetSettingsOKBodySettings Settings represents PMM Server settings. swagger:model GetSettingsOKBodySettings */ type GetSettingsOKBodySettings struct { + // True if updates are enabled. UpdatesEnabled bool `json:"updates_enabled,omitempty"` @@ -828,6 +840,7 @@ func (o *GetSettingsOKBodySettings) ContextValidate(ctx context.Context, formats } func (o *GetSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx context.Context, formats strfmt.Registry) error { + if o.AdvisorRunIntervals != nil { if swag.IsZero(o.AdvisorRunIntervals) { // not required @@ -852,6 +865,7 @@ func (o *GetSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx conte } func (o *GetSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { + if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -898,6 +912,7 @@ GetSettingsOKBodySettingsAdvisorRunIntervals AdvisorRunIntervals represents inte swagger:model GetSettingsOKBodySettingsAdvisorRunIntervals */ type GetSettingsOKBodySettingsAdvisorRunIntervals struct { + // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -941,6 +956,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"` diff --git a/api/server/v1/json/client/server_service/leader_health_check_parameters.go b/api/server/v1/json/client/server_service/leader_health_check_parameters.go index 86cdd9c398b..4cb5355dc72 100644 --- a/api/server/v1/json/client/server_service/leader_health_check_parameters.go +++ b/api/server/v1/json/client/server_service/leader_health_check_parameters.go @@ -115,6 +115,7 @@ func (o *LeaderHealthCheckParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *LeaderHealthCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/leader_health_check_responses.go b/api/server/v1/json/client/server_service/leader_health_check_responses.go index ab224190ccc..a7506fe40ec 100644 --- a/api/server/v1/json/client/server_service/leader_health_check_responses.go +++ b/api/server/v1/json/client/server_service/leader_health_check_responses.go @@ -104,6 +104,7 @@ func (o *LeaderHealthCheckOK) GetPayload() any { } func (o *LeaderHealthCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *LeaderHealthCheckDefault) GetPayload() *LeaderHealthCheckDefaultBody { } func (o *LeaderHealthCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(LeaderHealthCheckDefaultBody) // response payload @@ -190,6 +192,7 @@ LeaderHealthCheckDefaultBody leader health check default body swagger:model LeaderHealthCheckDefaultBody */ type LeaderHealthCheckDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,9 @@ func (o *LeaderHealthCheckDefaultBody) ContextValidate(ctx context.Context, form } func (o *LeaderHealthCheckDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *LeaderHealthCheckDefaultBody) contextValidateDetails(ctx context.Contex return err } } + } return nil @@ -391,6 +397,7 @@ LeaderHealthCheckDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized swagger:model LeaderHealthCheckDefaultBodyDetailsItems0 */ type LeaderHealthCheckDefaultBodyDetailsItems0 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 @@ -429,6 +436,7 @@ type LeaderHealthCheckDefaultBodyDetailsItems0 struct { func (o *LeaderHealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -493,6 +501,7 @@ func (o *LeaderHealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) e // MarshalJSON marshals this object with additional properties into a JSON object func (o LeaderHealthCheckDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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/server/v1/json/client/server_service/list_change_logs_parameters.go b/api/server/v1/json/client/server_service/list_change_logs_parameters.go index 4160eaf6faa..b801f277d16 100644 --- a/api/server/v1/json/client/server_service/list_change_logs_parameters.go +++ b/api/server/v1/json/client/server_service/list_change_logs_parameters.go @@ -115,6 +115,7 @@ func (o *ListChangeLogsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListChangeLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/list_change_logs_responses.go b/api/server/v1/json/client/server_service/list_change_logs_responses.go index f0943c1e69e..c8a18907ea6 100644 --- a/api/server/v1/json/client/server_service/list_change_logs_responses.go +++ b/api/server/v1/json/client/server_service/list_change_logs_responses.go @@ -105,6 +105,7 @@ func (o *ListChangeLogsOK) GetPayload() *ListChangeLogsOKBody { } func (o *ListChangeLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListChangeLogsOKBody) // response payload @@ -178,6 +179,7 @@ func (o *ListChangeLogsDefault) GetPayload() *ListChangeLogsDefaultBody { } func (o *ListChangeLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListChangeLogsDefaultBody) // response payload @@ -193,6 +195,7 @@ ListChangeLogsDefaultBody list change logs default body swagger:model ListChangeLogsDefaultBody */ type ListChangeLogsDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,9 @@ func (o *ListChangeLogsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListChangeLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *ListChangeLogsDefaultBody) contextValidateDetails(ctx context.Context, return err } } + } return nil @@ -394,6 +400,7 @@ ListChangeLogsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized pr swagger:model ListChangeLogsDefaultBodyDetailsItems0 */ type ListChangeLogsDefaultBodyDetailsItems0 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 @@ -432,6 +439,7 @@ type ListChangeLogsDefaultBodyDetailsItems0 struct { func (o *ListChangeLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -496,6 +504,7 @@ func (o *ListChangeLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ListChangeLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -586,6 +595,7 @@ ListChangeLogsOKBody list change logs OK body swagger:model ListChangeLogsOKBody */ type ListChangeLogsOKBody struct { + // List of available updates. Updates []*ListChangeLogsOKBodyUpdatesItems0 `json:"updates"` @@ -669,7 +679,9 @@ func (o *ListChangeLogsOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ListChangeLogsOKBody) contextValidateUpdates(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Updates); i++ { + if o.Updates[i] != nil { if swag.IsZero(o.Updates[i]) { // not required @@ -689,6 +701,7 @@ func (o *ListChangeLogsOKBody) contextValidateUpdates(ctx context.Context, forma return err } } + } return nil @@ -717,6 +730,7 @@ ListChangeLogsOKBodyUpdatesItems0 list change logs OK body updates items0 swagger:model ListChangeLogsOKBodyUpdatesItems0 */ type ListChangeLogsOKBodyUpdatesItems0 struct { + // PMM Version. Version string `json:"version,omitempty"` diff --git a/api/server/v1/json/client/server_service/logs_parameters.go b/api/server/v1/json/client/server_service/logs_parameters.go index eac190ca90c..31b876d12f8 100644 --- a/api/server/v1/json/client/server_service/logs_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/logs_responses.go b/api/server/v1/json/client/server_service/logs_responses.go index aef555e7c81..f49726868d9 100644 --- a/api/server/v1/json/client/server_service/logs_responses.go +++ b/api/server/v1/json/client/server_service/logs_responses.go @@ -47,6 +47,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, } } @@ -103,6 +104,7 @@ func (o *LogsOK) GetPayload() io.Writer { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -174,6 +176,7 @@ func (o *LogsDefault) GetPayload() *LogsDefaultBody { } func (o *LogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(LogsDefaultBody) // response payload @@ -189,6 +192,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/server/v1/json/client/server_service/readiness_parameters.go b/api/server/v1/json/client/server_service/readiness_parameters.go index 88fbc323803..ed27b254822 100644 --- a/api/server/v1/json/client/server_service/readiness_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/readiness_responses.go b/api/server/v1/json/client/server_service/readiness_responses.go index dd64679b8db..05b9d097c88 100644 --- a/api/server/v1/json/client/server_service/readiness_responses.go +++ b/api/server/v1/json/client/server_service/readiness_responses.go @@ -104,6 +104,7 @@ func (o *ReadinessOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -175,6 +176,7 @@ func (o *ReadinessDefault) GetPayload() *ReadinessDefaultBody { } func (o *ReadinessDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ReadinessDefaultBody) // response payload @@ -190,6 +192,7 @@ ReadinessDefaultBody readiness default body swagger:model ReadinessDefaultBody */ type ReadinessDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -259,7 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -279,6 +284,7 @@ func (o *ReadinessDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -391,6 +397,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 @@ -429,6 +436,7 @@ type ReadinessDefaultBodyDetailsItems0 struct { func (o *ReadinessDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -493,6 +501,7 @@ func (o *ReadinessDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ReadinessDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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/server/v1/json/client/server_service/start_update_parameters.go b/api/server/v1/json/client/server_service/start_update_parameters.go index 82bb6c79150..9ee4645d340 100644 --- a/api/server/v1/json/client/server_service/start_update_parameters.go +++ b/api/server/v1/json/client/server_service/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 StartUpdateBody @@ -129,6 +130,7 @@ func (o *StartUpdateParams) SetBody(body StartUpdateBody) { // 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/server/v1/json/client/server_service/start_update_responses.go b/api/server/v1/json/client/server_service/start_update_responses.go index 97ef6b5f00c..b8a40459f28 100644 --- a/api/server/v1/json/client/server_service/start_update_responses.go +++ b/api/server/v1/json/client/server_service/start_update_responses.go @@ -104,6 +104,7 @@ func (o *StartUpdateOK) GetPayload() *StartUpdateOKBody { } func (o *StartUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartUpdateOKBody) // response payload @@ -177,6 +178,7 @@ func (o *StartUpdateDefault) GetPayload() *StartUpdateDefaultBody { } func (o *StartUpdateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(StartUpdateDefaultBody) // response payload @@ -192,6 +194,7 @@ StartUpdateBody start update body swagger:model StartUpdateBody */ type StartUpdateBody struct { + // new image NewImage string `json:"new_image,omitempty"` } @@ -229,6 +232,7 @@ StartUpdateDefaultBody start update default body swagger:model StartUpdateDefaultBody */ type StartUpdateDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -298,7 +302,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 swag.IsZero(o.Details[i]) { // not required @@ -318,6 +324,7 @@ func (o *StartUpdateDefaultBody) contextValidateDetails(ctx context.Context, for return err } } + } return nil @@ -430,6 +437,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 @@ -468,6 +476,7 @@ type StartUpdateDefaultBodyDetailsItems0 struct { func (o *StartUpdateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -532,6 +541,7 @@ func (o *StartUpdateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StartUpdateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -622,6 +632,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/server/v1/json/client/server_service/update_status_parameters.go b/api/server/v1/json/client/server_service/update_status_parameters.go index c9ad7782841..fe3f759e402 100644 --- a/api/server/v1/json/client/server_service/update_status_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/update_status_responses.go b/api/server/v1/json/client/server_service/update_status_responses.go index b3d125d81dc..a32311edaf2 100644 --- a/api/server/v1/json/client/server_service/update_status_responses.go +++ b/api/server/v1/json/client/server_service/update_status_responses.go @@ -104,6 +104,7 @@ func (o *UpdateStatusOK) GetPayload() *UpdateStatusOKBody { } func (o *UpdateStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateStatusOKBody) // response payload @@ -177,6 +178,7 @@ func (o *UpdateStatusDefault) GetPayload() *UpdateStatusDefaultBody { } func (o *UpdateStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateStatusDefaultBody) // response payload @@ -192,6 +194,7 @@ UpdateStatusBody update status body swagger:model UpdateStatusBody */ type UpdateStatusBody struct { + // Authentication token. AuthToken string `json:"auth_token,omitempty"` @@ -232,6 +235,7 @@ UpdateStatusDefaultBody update status default body swagger:model UpdateStatusDefaultBody */ type UpdateStatusDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -301,7 +305,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 swag.IsZero(o.Details[i]) { // not required @@ -321,6 +327,7 @@ func (o *UpdateStatusDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } + } return nil @@ -433,6 +440,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 @@ -471,6 +479,7 @@ type UpdateStatusDefaultBodyDetailsItems0 struct { func (o *UpdateStatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -535,6 +544,7 @@ func (o *UpdateStatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateStatusDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -625,6 +635,7 @@ UpdateStatusOKBody update status OK body swagger:model UpdateStatusOKBody */ type UpdateStatusOKBody struct { + // Progress log lines. LogLines []string `json:"log_lines"` diff --git a/api/server/v1/json/client/server_service/version_parameters.go b/api/server/v1/json/client/server_service/version_parameters.go index 89ff6074173..3712817fa88 100644 --- a/api/server/v1/json/client/server_service/version_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/version_responses.go b/api/server/v1/json/client/server_service/version_responses.go index 2357cddccd3..dc9415e601c 100644 --- a/api/server/v1/json/client/server_service/version_responses.go +++ b/api/server/v1/json/client/server_service/version_responses.go @@ -105,6 +105,7 @@ func (o *VersionOK) GetPayload() *VersionOKBody { } func (o *VersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(VersionOKBody) // response payload @@ -178,6 +179,7 @@ func (o *VersionDefault) GetPayload() *VersionDefaultBody { } func (o *VersionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(VersionDefaultBody) // response payload @@ -193,6 +195,7 @@ VersionDefaultBody version default body swagger:model VersionDefaultBody */ type VersionDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *VersionDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -394,6 +400,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 @@ -432,6 +439,7 @@ type VersionDefaultBodyDetailsItems0 struct { func (o *VersionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -496,6 +504,7 @@ func (o *VersionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o VersionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -586,6 +595,7 @@ VersionOKBody version OK body swagger:model VersionOKBody */ type VersionOKBody struct { + // PMM Server version. Version string `json:"version,omitempty"` @@ -741,6 +751,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 swag.IsZero(o.Managed) { // not required @@ -765,6 +776,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 swag.IsZero(o.Server) { // not required @@ -811,6 +823,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"` @@ -876,6 +889,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/server/v1/server.pb.go b/api/server/v1/server.pb.go index b5772139c0a..613b8a403a3 100644 --- a/api/server/v1/server.pb.go +++ b/api/server/v1/server.pb.go @@ -7,19 +7,17 @@ package serverv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + common "github.com/percona/pmm/api/common" + _ "github.com/percona/pmm/api/extensions/v1" _ "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" - - common "github.com/percona/pmm/api/common" - _ "github.com/percona/pmm/api/extensions/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -1916,43 +1914,40 @@ func file_server_v1_server_proto_rawDescGZIP() []byte { return file_server_v1_server_proto_rawDescData } -var ( - file_server_v1_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) - file_server_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 26) - file_server_v1_server_proto_goTypes = []any{ - DistributionMethod(0), // 0: server.v1.DistributionMethod - (*VersionInfo)(nil), // 1: server.v1.VersionInfo - (*VersionRequest)(nil), // 2: server.v1.VersionRequest - (*VersionResponse)(nil), // 3: server.v1.VersionResponse - (*ReadinessRequest)(nil), // 4: server.v1.ReadinessRequest - (*ReadinessResponse)(nil), // 5: server.v1.ReadinessResponse - (*LeaderHealthCheckRequest)(nil), // 6: server.v1.LeaderHealthCheckRequest - (*LeaderHealthCheckResponse)(nil), // 7: server.v1.LeaderHealthCheckResponse - (*CheckUpdatesRequest)(nil), // 8: server.v1.CheckUpdatesRequest - (*DockerVersionInfo)(nil), // 9: server.v1.DockerVersionInfo - (*CheckUpdatesResponse)(nil), // 10: server.v1.CheckUpdatesResponse - (*ListChangeLogsRequest)(nil), // 11: server.v1.ListChangeLogsRequest - (*ListChangeLogsResponse)(nil), // 12: server.v1.ListChangeLogsResponse - (*StartUpdateRequest)(nil), // 13: server.v1.StartUpdateRequest - (*StartUpdateResponse)(nil), // 14: server.v1.StartUpdateResponse - (*UpdateStatusRequest)(nil), // 15: server.v1.UpdateStatusRequest - (*UpdateStatusResponse)(nil), // 16: server.v1.UpdateStatusResponse - (*MetricsResolutions)(nil), // 17: server.v1.MetricsResolutions - (*AdvisorRunIntervals)(nil), // 18: server.v1.AdvisorRunIntervals - (*Settings)(nil), // 19: server.v1.Settings - (*ReadOnlySettings)(nil), // 20: server.v1.ReadOnlySettings - (*GetSettingsRequest)(nil), // 21: server.v1.GetSettingsRequest - (*GetReadOnlySettingsRequest)(nil), // 22: server.v1.GetReadOnlySettingsRequest - (*GetSettingsResponse)(nil), // 23: server.v1.GetSettingsResponse - (*GetReadOnlySettingsResponse)(nil), // 24: server.v1.GetReadOnlySettingsResponse - (*ChangeSettingsRequest)(nil), // 25: server.v1.ChangeSettingsRequest - (*ChangeSettingsResponse)(nil), // 26: server.v1.ChangeSettingsResponse - (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 28: google.protobuf.Duration - (*common.StringArray)(nil), // 29: common.StringArray - } -) - +var file_server_v1_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_server_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_server_v1_server_proto_goTypes = []any{ + (DistributionMethod)(0), // 0: server.v1.DistributionMethod + (*VersionInfo)(nil), // 1: server.v1.VersionInfo + (*VersionRequest)(nil), // 2: server.v1.VersionRequest + (*VersionResponse)(nil), // 3: server.v1.VersionResponse + (*ReadinessRequest)(nil), // 4: server.v1.ReadinessRequest + (*ReadinessResponse)(nil), // 5: server.v1.ReadinessResponse + (*LeaderHealthCheckRequest)(nil), // 6: server.v1.LeaderHealthCheckRequest + (*LeaderHealthCheckResponse)(nil), // 7: server.v1.LeaderHealthCheckResponse + (*CheckUpdatesRequest)(nil), // 8: server.v1.CheckUpdatesRequest + (*DockerVersionInfo)(nil), // 9: server.v1.DockerVersionInfo + (*CheckUpdatesResponse)(nil), // 10: server.v1.CheckUpdatesResponse + (*ListChangeLogsRequest)(nil), // 11: server.v1.ListChangeLogsRequest + (*ListChangeLogsResponse)(nil), // 12: server.v1.ListChangeLogsResponse + (*StartUpdateRequest)(nil), // 13: server.v1.StartUpdateRequest + (*StartUpdateResponse)(nil), // 14: server.v1.StartUpdateResponse + (*UpdateStatusRequest)(nil), // 15: server.v1.UpdateStatusRequest + (*UpdateStatusResponse)(nil), // 16: server.v1.UpdateStatusResponse + (*MetricsResolutions)(nil), // 17: server.v1.MetricsResolutions + (*AdvisorRunIntervals)(nil), // 18: server.v1.AdvisorRunIntervals + (*Settings)(nil), // 19: server.v1.Settings + (*ReadOnlySettings)(nil), // 20: server.v1.ReadOnlySettings + (*GetSettingsRequest)(nil), // 21: server.v1.GetSettingsRequest + (*GetReadOnlySettingsRequest)(nil), // 22: server.v1.GetReadOnlySettingsRequest + (*GetSettingsResponse)(nil), // 23: server.v1.GetSettingsResponse + (*GetReadOnlySettingsResponse)(nil), // 24: server.v1.GetReadOnlySettingsResponse + (*ChangeSettingsRequest)(nil), // 25: server.v1.ChangeSettingsRequest + (*ChangeSettingsResponse)(nil), // 26: server.v1.ChangeSettingsResponse + (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 28: google.protobuf.Duration + (*common.StringArray)(nil), // 29: common.StringArray +} var file_server_v1_server_proto_depIdxs = []int32{ 27, // 0: server.v1.VersionInfo.timestamp:type_name -> google.protobuf.Timestamp 1, // 1: server.v1.VersionResponse.server:type_name -> server.v1.VersionInfo diff --git a/api/server/v1/server.pb.validate.go b/api/server/v1/server.pb.validate.go index e2643c4aa5b..dd94f1823e5 100644 --- a/api/server/v1/server.pb.validate.go +++ b/api/server/v1/server.pb.validate.go @@ -154,8 +154,7 @@ func (e VersionInfoValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = VersionInfoValidationError{} @@ -257,8 +256,7 @@ func (e VersionRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = VersionRequestValidationError{} @@ -420,8 +418,7 @@ func (e VersionResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = VersionResponseValidationError{} @@ -521,8 +518,7 @@ func (e ReadinessRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ReadinessRequestValidationError{} @@ -624,8 +620,7 @@ func (e ReadinessResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ReadinessResponseValidationError{} @@ -727,8 +722,7 @@ func (e LeaderHealthCheckRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = LeaderHealthCheckRequestValidationError{} @@ -830,8 +824,7 @@ func (e LeaderHealthCheckResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = LeaderHealthCheckResponseValidationError{} @@ -937,8 +930,7 @@ func (e CheckUpdatesRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckUpdatesRequestValidationError{} @@ -1077,8 +1069,7 @@ func (e DockerVersionInfoValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DockerVersionInfoValidationError{} @@ -1271,8 +1262,7 @@ func (e CheckUpdatesResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = CheckUpdatesResponseValidationError{} @@ -1374,8 +1364,7 @@ func (e ListChangeLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListChangeLogsRequestValidationError{} @@ -1540,8 +1529,7 @@ func (e ListChangeLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListChangeLogsResponseValidationError{} @@ -1645,8 +1633,7 @@ func (e StartUpdateRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartUpdateRequestValidationError{} @@ -1752,8 +1739,7 @@ func (e StartUpdateResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StartUpdateResponseValidationError{} @@ -1859,8 +1845,7 @@ func (e UpdateStatusRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateStatusRequestValidationError{} @@ -1966,8 +1951,7 @@ func (e UpdateStatusResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateStatusResponseValidationError{} @@ -2156,8 +2140,7 @@ func (e MetricsResolutionsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = MetricsResolutionsValidationError{} @@ -2346,8 +2329,7 @@ func (e AdvisorRunIntervalsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = AdvisorRunIntervalsValidationError{} @@ -2588,8 +2570,7 @@ func (e SettingsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = SettingsValidationError{} @@ -2705,8 +2686,7 @@ func (e ReadOnlySettingsValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ReadOnlySettingsValidationError{} @@ -2808,8 +2788,7 @@ func (e GetSettingsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetSettingsRequestValidationError{} @@ -2911,8 +2890,7 @@ func (e GetReadOnlySettingsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetReadOnlySettingsRequestValidationError{} @@ -3043,8 +3021,7 @@ func (e GetSettingsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetSettingsResponseValidationError{} @@ -3176,8 +3153,7 @@ func (e GetReadOnlySettingsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetReadOnlySettingsResponseValidationError{} @@ -3341,6 +3317,7 @@ func (m *ChangeSettingsRequest) validate(all bool) error { } if m.AwsPartitions != nil { + if all { switch v := interface{}(m.GetAwsPartitions()).(type) { case interface{ ValidateAll() error }: @@ -3369,6 +3346,7 @@ func (m *ChangeSettingsRequest) validate(all bool) error { } } } + } if m.EnableAdvisor != nil { @@ -3466,8 +3444,7 @@ func (e ChangeSettingsRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeSettingsRequestValidationError{} @@ -3598,8 +3575,7 @@ func (e ChangeSettingsResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ChangeSettingsResponseValidationError{} diff --git a/api/server/v1/server_grpc.pb.go b/api/server/v1/server_grpc.pb.go index 29719f730c8..145fe2a7a18 100644 --- a/api/server/v1/server_grpc.pb.go +++ b/api/server/v1/server_grpc.pb.go @@ -8,7 +8,6 @@ package serverv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -209,39 +208,30 @@ type UnimplementedServerServiceServer struct{} func (UnimplementedServerServiceServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { return nil, status.Error(codes.Unimplemented, "method Version not implemented") } - func (UnimplementedServerServiceServer) Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error) { return nil, status.Error(codes.Unimplemented, "method Readiness not implemented") } - func (UnimplementedServerServiceServer) LeaderHealthCheck(context.Context, *LeaderHealthCheckRequest) (*LeaderHealthCheckResponse, error) { return nil, status.Error(codes.Unimplemented, "method LeaderHealthCheck not implemented") } - func (UnimplementedServerServiceServer) CheckUpdates(context.Context, *CheckUpdatesRequest) (*CheckUpdatesResponse, error) { return nil, status.Error(codes.Unimplemented, "method CheckUpdates not implemented") } - func (UnimplementedServerServiceServer) ListChangeLogs(context.Context, *ListChangeLogsRequest) (*ListChangeLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListChangeLogs not implemented") } - func (UnimplementedServerServiceServer) StartUpdate(context.Context, *StartUpdateRequest) (*StartUpdateResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartUpdate not implemented") } - func (UnimplementedServerServiceServer) UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateStatus not implemented") } - func (UnimplementedServerServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetSettings not implemented") } - func (UnimplementedServerServiceServer) GetReadOnlySettings(context.Context, *GetReadOnlySettingsRequest) (*GetReadOnlySettingsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetReadOnlySettings not implemented") } - func (UnimplementedServerServiceServer) ChangeSettings(context.Context, *ChangeSettingsRequest) (*ChangeSettingsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeSettings not implemented") } diff --git a/api/uievents/v1/server.pb.go b/api/uievents/v1/server.pb.go index 41d144b9c29..6f3472d1deb 100644 --- a/api/uievents/v1/server.pb.go +++ b/api/uievents/v1/server.pb.go @@ -7,14 +7,13 @@ package uieventsv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "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" + unsafe "unsafe" ) const ( @@ -468,19 +467,16 @@ func file_uievents_v1_server_proto_rawDescGZIP() []byte { return file_uievents_v1_server_proto_rawDescData } -var ( - file_uievents_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 7) - file_uievents_v1_server_proto_goTypes = []any{ - (*NotificationEvent)(nil), // 0: uievents.v1.NotificationEvent - (*FetchingEvent)(nil), // 1: uievents.v1.FetchingEvent - (*DashboardUsageEvent)(nil), // 2: uievents.v1.DashboardUsageEvent - (*UserFlowEvent)(nil), // 3: uievents.v1.UserFlowEvent - (*StoreRequest)(nil), // 4: uievents.v1.StoreRequest - (*StoreResponse)(nil), // 5: uievents.v1.StoreResponse - nil, // 6: uievents.v1.UserFlowEvent.ParamsEntry - } -) - +var file_uievents_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_uievents_v1_server_proto_goTypes = []any{ + (*NotificationEvent)(nil), // 0: uievents.v1.NotificationEvent + (*FetchingEvent)(nil), // 1: uievents.v1.FetchingEvent + (*DashboardUsageEvent)(nil), // 2: uievents.v1.DashboardUsageEvent + (*UserFlowEvent)(nil), // 3: uievents.v1.UserFlowEvent + (*StoreRequest)(nil), // 4: uievents.v1.StoreRequest + (*StoreResponse)(nil), // 5: uievents.v1.StoreResponse + nil, // 6: uievents.v1.UserFlowEvent.ParamsEntry +} var file_uievents_v1_server_proto_depIdxs = []int32{ 6, // 0: uievents.v1.UserFlowEvent.params:type_name -> uievents.v1.UserFlowEvent.ParamsEntry 0, // 1: uievents.v1.StoreRequest.notifications:type_name -> uievents.v1.NotificationEvent diff --git a/api/uievents/v1/server.pb.gw.go b/api/uievents/v1/server.pb.gw.go index 7a044e6b3ba..e968c8546df 100644 --- a/api/uievents/v1/server.pb.gw.go +++ b/api/uievents/v1/server.pb.gw.go @@ -148,6 +148,10 @@ func RegisterUIEventsServiceHandlerClient(ctx context.Context, mux *runtime.Serv return nil } -var pattern_UIEventsService_Store_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "ui-events", "Store"}, "")) +var ( + pattern_UIEventsService_Store_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "ui-events", "Store"}, "")) +) -var forward_UIEventsService_Store_0 = runtime.ForwardResponseMessage +var ( + forward_UIEventsService_Store_0 = runtime.ForwardResponseMessage +) diff --git a/api/uievents/v1/server.pb.validate.go b/api/uievents/v1/server.pb.validate.go index 3b8e16d64a0..5996e04b712 100644 --- a/api/uievents/v1/server.pb.validate.go +++ b/api/uievents/v1/server.pb.validate.go @@ -132,8 +132,7 @@ func (e NotificationEventValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = NotificationEventValidationError{} @@ -241,8 +240,7 @@ func (e FetchingEventValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = FetchingEventValidationError{} @@ -354,8 +352,7 @@ func (e DashboardUsageEventValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = DashboardUsageEventValidationError{} @@ -463,8 +460,7 @@ func (e UserFlowEventValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UserFlowEventValidationError{} @@ -699,8 +695,7 @@ func (e StoreRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StoreRequestValidationError{} @@ -800,8 +795,7 @@ func (e StoreResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = StoreResponseValidationError{} diff --git a/api/uievents/v1/server_grpc.pb.go b/api/uievents/v1/server_grpc.pb.go index f4343f61ac3..3a3848baa05 100644 --- a/api/uievents/v1/server_grpc.pb.go +++ b/api/uievents/v1/server_grpc.pb.go @@ -8,7 +8,6 @@ package uieventsv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/user/v1/json/client/user_service/get_user_parameters.go b/api/user/v1/json/client/user_service/get_user_parameters.go index 9d7ebe5ff7d..8bf63bd7f8b 100644 --- a/api/user/v1/json/client/user_service/get_user_parameters.go +++ b/api/user/v1/json/client/user_service/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/user/v1/json/client/user_service/get_user_responses.go b/api/user/v1/json/client/user_service/get_user_responses.go index 44687c0b774..15440682187 100644 --- a/api/user/v1/json/client/user_service/get_user_responses.go +++ b/api/user/v1/json/client/user_service/get_user_responses.go @@ -105,6 +105,7 @@ func (o *GetUserOK) GetPayload() *GetUserOKBody { } func (o *GetUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetUserOKBody) // response payload @@ -178,6 +179,7 @@ func (o *GetUserDefault) GetPayload() *GetUserDefaultBody { } func (o *GetUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(GetUserDefaultBody) // response payload @@ -193,6 +195,7 @@ GetUserDefaultBody get user default body swagger:model GetUserDefaultBody */ type GetUserDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -262,7 +265,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 swag.IsZero(o.Details[i]) { // not required @@ -282,6 +287,7 @@ func (o *GetUserDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } + } return nil @@ -310,6 +316,7 @@ GetUserDefaultBodyDetailsItems0 get user default body details items0 swagger:model GetUserDefaultBodyDetailsItems0 */ type GetUserDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -321,6 +328,7 @@ type GetUserDefaultBodyDetailsItems0 struct { func (o *GetUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -358,6 +366,7 @@ func (o *GetUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetUserDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -421,6 +430,7 @@ GetUserOKBody get user OK body swagger:model GetUserOKBody */ type GetUserOKBody struct { + // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/user/v1/json/client/user_service/list_users_parameters.go b/api/user/v1/json/client/user_service/list_users_parameters.go index 1d3c35510b7..d5b20ea07cd 100644 --- a/api/user/v1/json/client/user_service/list_users_parameters.go +++ b/api/user/v1/json/client/user_service/list_users_parameters.go @@ -115,6 +115,7 @@ func (o *ListUsersParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/user/v1/json/client/user_service/list_users_responses.go b/api/user/v1/json/client/user_service/list_users_responses.go index ae9f445a45b..464f768ba29 100644 --- a/api/user/v1/json/client/user_service/list_users_responses.go +++ b/api/user/v1/json/client/user_service/list_users_responses.go @@ -104,6 +104,7 @@ func (o *ListUsersOK) GetPayload() *ListUsersOKBody { } func (o *ListUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListUsersOKBody) // response payload @@ -177,6 +178,7 @@ func (o *ListUsersDefault) GetPayload() *ListUsersDefaultBody { } func (o *ListUsersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(ListUsersDefaultBody) // response payload @@ -192,6 +194,7 @@ ListUsersDefaultBody list users default body swagger:model ListUsersDefaultBody */ type ListUsersDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -261,7 +264,9 @@ func (o *ListUsersDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListUsersDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Details); i++ { + if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -281,6 +286,7 @@ func (o *ListUsersDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } + } return nil @@ -309,6 +315,7 @@ ListUsersDefaultBodyDetailsItems0 list users default body details items0 swagger:model ListUsersDefaultBodyDetailsItems0 */ type ListUsersDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -320,6 +327,7 @@ type ListUsersDefaultBodyDetailsItems0 struct { func (o *ListUsersDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -357,6 +365,7 @@ func (o *ListUsersDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListUsersDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -420,6 +429,7 @@ ListUsersOKBody list users OK body swagger:model ListUsersOKBody */ type ListUsersOKBody struct { + // users Users []*ListUsersOKBodyUsersItems0 `json:"users"` } @@ -483,7 +493,9 @@ func (o *ListUsersOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListUsersOKBody) contextValidateUsers(ctx context.Context, formats strfmt.Registry) error { + for i := 0; i < len(o.Users); i++ { + if o.Users[i] != nil { if swag.IsZero(o.Users[i]) { // not required @@ -503,6 +515,7 @@ func (o *ListUsersOKBody) contextValidateUsers(ctx context.Context, formats strf return err } } + } return nil @@ -531,6 +544,7 @@ ListUsersOKBodyUsersItems0 list users OK body users items0 swagger:model ListUsersOKBodyUsersItems0 */ type ListUsersOKBodyUsersItems0 struct { + // user id UserID int64 `json:"user_id,omitempty"` diff --git a/api/user/v1/json/client/user_service/update_user_parameters.go b/api/user/v1/json/client/user_service/update_user_parameters.go index c1e0a19fa5d..d98c9c45bb0 100644 --- a/api/user/v1/json/client/user_service/update_user_parameters.go +++ b/api/user/v1/json/client/user_service/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/user/v1/json/client/user_service/update_user_responses.go b/api/user/v1/json/client/user_service/update_user_responses.go index f169cbad858..73f31851bae 100644 --- a/api/user/v1/json/client/user_service/update_user_responses.go +++ b/api/user/v1/json/client/user_service/update_user_responses.go @@ -105,6 +105,7 @@ func (o *UpdateUserOK) GetPayload() *UpdateUserOKBody { } func (o *UpdateUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateUserOKBody) // response payload @@ -178,6 +179,7 @@ func (o *UpdateUserDefault) GetPayload() *UpdateUserDefaultBody { } func (o *UpdateUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + o.Payload = new(UpdateUserDefaultBody) // response payload @@ -193,6 +195,7 @@ UpdateUserBody update user body swagger:model UpdateUserBody */ type UpdateUserBody struct { + // Product Tour ProductTourCompleted *bool `json:"product_tour_completed,omitempty"` @@ -236,6 +239,7 @@ UpdateUserDefaultBody update user default body swagger:model UpdateUserDefaultBody */ type UpdateUserDefaultBody struct { + // code Code int32 `json:"code,omitempty"` @@ -305,7 +309,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 swag.IsZero(o.Details[i]) { // not required @@ -325,6 +331,7 @@ func (o *UpdateUserDefaultBody) contextValidateDetails(ctx context.Context, form return err } } + } return nil @@ -353,6 +360,7 @@ UpdateUserDefaultBodyDetailsItems0 update user default body details items0 swagger:model UpdateUserDefaultBodyDetailsItems0 */ type UpdateUserDefaultBodyDetailsItems0 struct { + // at type AtType string `json:"@type,omitempty"` @@ -364,6 +372,7 @@ type UpdateUserDefaultBodyDetailsItems0 struct { func (o *UpdateUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -401,6 +410,7 @@ func (o *UpdateUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateUserDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { + // at type AtType string `json:"@type,omitempty"` } @@ -464,6 +474,7 @@ UpdateUserOKBody update user OK body swagger:model UpdateUserOKBody */ type UpdateUserOKBody struct { + // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/user/v1/user.pb.go b/api/user/v1/user.pb.go index 12a954ca3f4..ea4c06a469e 100644 --- a/api/user/v1/user.pb.go +++ b/api/user/v1/user.pb.go @@ -7,15 +7,14 @@ package userv1 import ( - reflect "reflect" - sync "sync" - unsafe "unsafe" - _ "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" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" + unsafe "unsafe" ) const ( @@ -494,20 +493,17 @@ func file_user_v1_user_proto_rawDescGZIP() []byte { return file_user_v1_user_proto_rawDescData } -var ( - file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 7) - file_user_v1_user_proto_goTypes = []any{ - (*GetUserRequest)(nil), // 0: user.v1.GetUserRequest - (*GetUserResponse)(nil), // 1: user.v1.GetUserResponse - (*UpdateUserRequest)(nil), // 2: user.v1.UpdateUserRequest - (*UpdateUserResponse)(nil), // 3: user.v1.UpdateUserResponse - (*ListUsersRequest)(nil), // 4: user.v1.ListUsersRequest - (*ListUsersResponse)(nil), // 5: user.v1.ListUsersResponse - (*ListUsersResponse_UserDetail)(nil), // 6: user.v1.ListUsersResponse.UserDetail - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - } -) - +var file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_user_v1_user_proto_goTypes = []any{ + (*GetUserRequest)(nil), // 0: user.v1.GetUserRequest + (*GetUserResponse)(nil), // 1: user.v1.GetUserResponse + (*UpdateUserRequest)(nil), // 2: user.v1.UpdateUserRequest + (*UpdateUserResponse)(nil), // 3: user.v1.UpdateUserResponse + (*ListUsersRequest)(nil), // 4: user.v1.ListUsersRequest + (*ListUsersResponse)(nil), // 5: user.v1.ListUsersResponse + (*ListUsersResponse_UserDetail)(nil), // 6: user.v1.ListUsersResponse.UserDetail + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp +} var file_user_v1_user_proto_depIdxs = []int32{ 7, // 0: user.v1.GetUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp 7, // 1: user.v1.UpdateUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp diff --git a/api/user/v1/user.pb.validate.go b/api/user/v1/user.pb.validate.go index 4686bc06f40..a6c5de6f159 100644 --- a/api/user/v1/user.pb.validate.go +++ b/api/user/v1/user.pb.validate.go @@ -122,8 +122,7 @@ func (e GetUserRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetUserRequestValidationError{} @@ -262,8 +261,7 @@ func (e GetUserResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = GetUserResponseValidationError{} @@ -377,8 +375,7 @@ func (e UpdateUserRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateUserRequestValidationError{} @@ -519,8 +516,7 @@ func (e UpdateUserResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = UpdateUserResponseValidationError{} @@ -620,8 +616,7 @@ func (e ListUsersRequestValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListUsersRequestValidationError{} @@ -757,8 +752,7 @@ func (e ListUsersResponseValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListUsersResponseValidationError{} @@ -863,8 +857,7 @@ func (e ListUsersResponse_UserDetailValidationError) Error() string { key, e.field, e.reason, - cause, - ) + cause) } var _ error = ListUsersResponse_UserDetailValidationError{} diff --git a/api/user/v1/user_grpc.pb.go b/api/user/v1/user_grpc.pb.go index 4201de2b381..5166f03fc21 100644 --- a/api/user/v1/user_grpc.pb.go +++ b/api/user/v1/user_grpc.pb.go @@ -8,7 +8,6 @@ package userv1 import ( context "context" - grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -96,11 +95,9 @@ type UnimplementedUserServiceServer struct{} func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetUser not implemented") } - func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateUser not implemented") } - func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListUsers not implemented") } From daa9f5a88676a6521c2316aa31a8c9899f59ee5a Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Tue, 19 May 2026 13:01:02 +0200 Subject: [PATCH 07/15] chore: regenerate protobuf, swagger, and JSON client code Co-Authored-By: Claude Opus 4.7 (1M context) --- api/accesscontrol/v1beta1/accesscontrol.pb.go | 46 ++-- .../v1beta1/accesscontrol.pb.validate.go | 2 - .../v1beta1/accesscontrol_grpc.pb.go | 7 + .../assign_roles_parameters.go | 2 - .../assign_roles_responses.go | 10 - .../create_role_parameters.go | 2 - .../create_role_responses.go | 11 - .../delete_role_parameters.go | 3 - .../delete_role_responses.go | 9 - .../get_role_parameters.go | 2 - .../get_role_responses.go | 10 - .../list_roles_parameters.go | 1 - .../list_roles_responses.go | 14 - .../set_default_role_parameters.go | 2 - .../set_default_role_responses.go | 10 - .../update_role_parameters.go | 2 - .../update_role_responses.go | 10 - api/actions/v1/actions.pb.go | 84 +++--- api/actions/v1/actions_grpc.pb.go | 4 + .../cancel_action_parameters.go | 2 - .../cancel_action_responses.go | 10 - .../actions_service/get_action_parameters.go | 2 - .../actions_service/get_action_responses.go | 10 - .../start_pt_summary_action_parameters.go | 2 - .../start_pt_summary_action_responses.go | 11 - .../start_service_action_parameters.go | 2 - .../start_service_action_responses.go | 59 ----- api/advisors/v1/advisors.pb.go | 67 ++--- api/advisors/v1/advisors.pb.validate.go | 4 - api/advisors/v1/advisors_grpc.pb.go | 6 + .../change_advisor_checks_parameters.go | 2 - .../change_advisor_checks_responses.go | 14 - .../get_failed_checks_parameters.go | 5 - .../get_failed_checks_responses.go | 14 - .../list_advisor_checks_parameters.go | 1 - .../list_advisor_checks_responses.go | 14 - .../list_advisors_parameters.go | 1 - .../list_advisors_responses.go | 18 -- .../list_failed_services_parameters.go | 1 - .../list_failed_services_responses.go | 14 - .../start_advisor_checks_parameters.go | 2 - .../start_advisor_checks_responses.go | 10 - api/agent/pb/agent.pb.go | 9 +- api/agent/pb/agent_grpc.pb.go | 4 +- api/agent/v1/agent.pb.go | 235 +++++++++-------- api/agent/v1/agent.pb.validate.go | 1 - api/agent/v1/agent_grpc.pb.go | 1 + api/agent/v1/collector.pb.go | 39 +-- api/agentlocal/v1/agentlocal.pb.go | 39 +-- api/agentlocal/v1/agentlocal_grpc.pb.go | 2 + .../agent_local_service/reload_parameters.go | 2 - .../agent_local_service/reload_responses.go | 9 - .../agent_local_service/status2_parameters.go | 3 - .../agent_local_service/status2_responses.go | 16 -- .../agent_local_service/status_parameters.go | 2 - .../agent_local_service/status_responses.go | 17 -- api/alerting/v1/alerting.pb.go | 75 +++--- api/alerting/v1/alerting.pb.validate.go | 4 - api/alerting/v1/alerting_grpc.pb.go | 5 + .../create_rule_parameters.go | 2 - .../alerting_service/create_rule_responses.go | 18 -- .../create_template_parameters.go | 2 - .../create_template_responses.go | 10 - .../delete_template_parameters.go | 2 - .../delete_template_responses.go | 9 - .../list_templates_parameters.go | 5 - .../list_templates_responses.go | 24 -- .../update_template_parameters.go | 2 - .../update_template_responses.go | 10 - api/alerting/v1/params.pb.go | 18 +- api/backup/v1/artifacts.pb.go | 44 ++-- api/backup/v1/backup.pb.go | 75 +++--- api/backup/v1/backup_grpc.pb.go | 10 + api/backup/v1/common.pb.go | 32 ++- api/backup/v1/errors.pb.go | 20 +- .../change_scheduled_backup_parameters.go | 2 - .../change_scheduled_backup_responses.go | 10 - .../delete_artifact_parameters.go | 3 - .../delete_artifact_responses.go | 9 - .../backup_service/get_logs_parameters.go | 4 - .../backup_service/get_logs_responses.go | 14 - ...artifact_compatible_services_parameters.go | 2 - ..._artifact_compatible_services_responses.go | 18 -- .../list_artifacts_parameters.go | 1 - .../list_artifacts_responses.go | 24 -- .../list_pitr_timeranges_parameters.go | 2 - .../list_pitr_timeranges_responses.go | 14 - .../list_scheduled_backups_parameters.go | 1 - .../list_scheduled_backups_responses.go | 14 - .../remove_scheduled_backup_parameters.go | 2 - .../remove_scheduled_backup_responses.go | 9 - .../schedule_backup_parameters.go | 2 - .../schedule_backup_responses.go | 11 - .../backup_service/start_backup_parameters.go | 2 - .../backup_service/start_backup_responses.go | 11 - .../add_location_parameters.go | 2 - .../add_location_responses.go | 15 -- .../change_location_parameters.go | 2 - .../change_location_responses.go | 14 - .../list_locations_parameters.go | 1 - .../list_locations_responses.go | 18 -- .../remove_location_parameters.go | 3 - .../remove_location_responses.go | 9 - .../test_location_config_parameters.go | 2 - .../test_location_config_responses.go | 14 - .../get_logs_mixin5_parameters.go | 4 - .../get_logs_mixin5_responses.go | 14 - .../list_restores_parameters.go | 1 - .../list_restores_responses.go | 14 - .../restore_backup_parameters.go | 2 - .../restore_backup_responses.go | 11 - api/backup/v1/locations.pb.go | 45 ++-- api/backup/v1/locations_grpc.pb.go | 5 + api/backup/v1/restores.pb.go | 40 +-- api/backup/v1/restores_grpc.pb.go | 3 + api/common/common.pb.go | 20 +- api/common/metrics_resolutions.pb.go | 20 +- api/dump/v1beta1/dump.pb.go | 51 ++-- api/dump/v1beta1/dump_grpc.pb.go | 5 + .../dump_service/delete_dump_parameters.go | 2 - .../dump_service/delete_dump_responses.go | 10 - .../dump_service/get_dump_logs_parameters.go | 4 - .../dump_service/get_dump_logs_responses.go | 14 - .../dump_service/list_dumps_parameters.go | 1 - .../dump_service/list_dumps_responses.go | 14 - .../dump_service/start_dump_parameters.go | 2 - .../dump_service/start_dump_responses.go | 11 - .../dump_service/upload_dump_parameters.go | 2 - .../dump_service/upload_dump_responses.go | 12 - api/extensions/v1/redact.pb.go | 20 +- api/ha/v1beta1/ha.pb.go | 30 ++- api/ha/v1beta1/ha_grpc.pb.go | 2 + .../ha_service/list_nodes_parameters.go | 1 - .../client/ha_service/list_nodes_responses.go | 14 - .../client/ha_service/status_parameters.go | 1 - .../client/ha_service/status_responses.go | 10 - api/inventory/v1/agent_status.pb.go | 16 +- api/inventory/v1/agents.pb.go | 249 +++++++++--------- api/inventory/v1/agents.pb.validate.go | 38 --- api/inventory/v1/agents_grpc.pb.go | 6 + .../agents_service/add_agent_parameters.go | 2 - .../agents_service/add_agent_responses.go | 101 ------- .../agents_service/change_agent_parameters.go | 2 - .../agents_service/change_agent_responses.go | 163 ------------ .../get_agent_logs_parameters.go | 3 - .../get_agent_logs_responses.go | 10 - .../agents_service/get_agent_parameters.go | 2 - .../agents_service/get_agent_responses.go | 68 ----- .../agents_service/list_agents_parameters.go | 10 +- .../agents_service/list_agents_responses.go | 106 -------- .../agents_service/remove_agent_parameters.go | 3 - .../agents_service/remove_agent_responses.go | 9 - .../nodes_service/add_node_parameters.go | 2 - .../nodes_service/add_node_responses.go | 35 --- .../nodes_service/get_node_parameters.go | 2 - .../nodes_service/get_node_responses.go | 22 -- .../nodes_service/list_nodes_parameters.go | 7 +- .../nodes_service/list_nodes_responses.go | 34 --- .../nodes_service/remove_node_parameters.go | 3 - .../nodes_service/remove_node_responses.go | 9 - .../add_service_parameters.go | 2 - .../services_service/add_service_responses.go | 39 --- .../change_service_parameters.go | 2 - .../change_service_responses.go | 27 -- .../get_service_parameters.go | 2 - .../services_service/get_service_responses.go | 24 -- .../list_active_service_types_parameters.go | 2 - .../list_active_service_types_responses.go | 10 - .../list_services_parameters.go | 9 +- .../list_services_responses.go | 38 --- .../remove_service_parameters.go | 3 - .../remove_service_responses.go | 9 - api/inventory/v1/log_level.pb.go | 16 +- api/inventory/v1/nodes.pb.go | 84 +++--- api/inventory/v1/nodes_grpc.pb.go | 4 + api/inventory/v1/services.pb.go | 109 ++++---- api/inventory/v1/services.pb.validate.go | 2 - api/inventory/v1/services_grpc.pb.go | 6 + api/management/v1/agent.pb.go | 57 ++-- api/management/v1/annotation.pb.go | 20 +- api/management/v1/azure.pb.go | 35 +-- api/management/v1/elasticache.pb.go | 45 ++-- api/management/v1/external.pb.go | 35 +-- api/management/v1/haproxy.pb.go | 35 +-- .../add_annotation_parameters.go | 2 - .../add_annotation_responses.go | 10 - .../add_azure_database_parameters.go | 2 - .../add_azure_database_responses.go | 10 - .../add_service_parameters.go | 2 - .../add_service_responses.go | 149 ----------- .../discover_azure_database_parameters.go | 2 - .../discover_azure_database_responses.go | 15 -- .../discover_elasti_cache_parameters.go | 2 - .../discover_elasti_cache_responses.go | 15 -- .../discover_rds_parameters.go | 2 - .../discover_rds_responses.go | 15 -- .../management_service/get_node_parameters.go | 2 - .../management_service/get_node_responses.go | 20 -- .../list_agent_versions_parameters.go | 1 - .../list_agent_versions_responses.go | 14 - .../list_agents_parameters.go | 4 - .../list_agents_responses.go | 24 -- .../list_nodes_parameters.go | 7 +- .../list_nodes_responses.go | 22 -- .../list_services_parameters.go | 9 +- .../list_services_responses.go | 28 -- .../register_node_parameters.go | 2 - .../register_node_responses.go | 17 -- .../remove_service_parameters.go | 7 +- .../remove_service_responses.go | 9 - .../unregister_node_parameters.go | 3 - .../unregister_node_responses.go | 10 - api/management/v1/metrics.pb.go | 16 +- api/management/v1/mongodb.pb.go | 43 +-- api/management/v1/mysql.pb.go | 43 +-- api/management/v1/node.pb.go | 67 ++--- api/management/v1/postgresql.pb.go | 41 +-- api/management/v1/proxysql.pb.go | 37 +-- api/management/v1/rds.pb.go | 55 ++-- api/management/v1/service.pb.go | 125 ++++----- api/management/v1/service_grpc.pb.go | 14 + api/management/v1/severity.pb.go | 16 +- api/management/v1/valkey.pb.go | 37 +-- api/management/v1/valkey.pb.validate.go | 4 - api/qan/v1/collector.pb.go | 35 +-- api/qan/v1/collector_grpc.pb.go | 1 + api/qan/v1/filters.pb.go | 30 ++- ...lain_fingerprint_by_query_id_parameters.go | 2 - ...plain_fingerprint_by_query_id_responses.go | 11 - .../get_filtered_metrics_names_parameters.go | 2 - .../get_filtered_metrics_names_responses.go | 23 -- .../qan_service/get_histogram_parameters.go | 2 - .../qan_service/get_histogram_responses.go | 19 -- .../qan_service/get_labels_parameters.go | 2 - .../qan_service/get_labels_responses.go | 15 -- .../get_metrics_names_parameters.go | 2 - .../get_metrics_names_responses.go | 10 - .../qan_service/get_metrics_parameters.go | 2 - .../qan_service/get_metrics_responses.go | 29 -- .../get_query_example_parameters.go | 2 - .../get_query_example_responses.go | 19 -- .../qan_service/get_query_plan_parameters.go | 2 - .../qan_service/get_query_plan_responses.go | 10 - .../qan_service/get_report_parameters.go | 2 - .../qan_service/get_report_responses.go | 29 -- .../qan_service/health_check_parameters.go | 1 - .../qan_service/health_check_responses.go | 9 - .../qan_service/query_exists_parameters.go | 2 - .../qan_service/query_exists_responses.go | 11 - .../schema_by_query_id_parameters.go | 2 - .../schema_by_query_id_responses.go | 11 - api/qan/v1/object_details.pb.go | 76 +++--- api/qan/v1/profile.pb.go | 34 +-- api/qan/v1/qan.pb.go | 22 +- api/qan/v1/service.pb.go | 66 ++--- api/qan/v1/service_grpc.pb.go | 12 + api/realtimeanalytics/v1/collector.pb.go | 22 +- api/realtimeanalytics/v1/collector_grpc.pb.go | 1 + .../list_services_parameters.go | 7 +- .../list_services_responses.go | 14 - .../list_sessions_parameters.go | 3 - .../list_sessions_responses.go | 14 - .../search_queries_parameters.go | 2 - .../search_queries_responses.go | 17 -- .../start_session_parameters.go | 2 - .../start_session_responses.go | 13 - .../stop_session_parameters.go | 2 - .../stop_session_responses.go | 10 - api/realtimeanalytics/v1/query.pb.go | 24 +- .../v1/realtimeanalytics.pb.go | 55 ++-- .../v1/realtimeanalytics_grpc.pb.go | 6 + api/server/v1/httperror.pb.go | 20 +- .../change_settings_parameters.go | 2 - .../change_settings_responses.go | 23 -- .../check_updates_parameters.go | 4 - .../server_service/check_updates_responses.go | 14 - .../get_read_only_settings_parameters.go | 1 - .../get_read_only_settings_responses.go | 12 - .../server_service/get_settings_parameters.go | 1 - .../server_service/get_settings_responses.go | 16 -- .../leader_health_check_parameters.go | 1 - .../leader_health_check_responses.go | 9 - .../list_change_logs_parameters.go | 1 - .../list_change_logs_responses.go | 14 - .../client/server_service/logs_parameters.go | 3 - .../client/server_service/logs_responses.go | 4 - .../server_service/readiness_parameters.go | 1 - .../server_service/readiness_responses.go | 9 - .../server_service/start_update_parameters.go | 2 - .../server_service/start_update_responses.go | 11 - .../update_status_parameters.go | 2 - .../server_service/update_status_responses.go | 11 - .../server_service/version_parameters.go | 3 - .../server_service/version_responses.go | 14 - api/server/v1/server.pb.go | 83 +++--- api/server/v1/server.pb.validate.go | 2 - api/server/v1/server_grpc.pb.go | 10 + api/uievents/v1/server.pb.go | 30 ++- api/uievents/v1/server.pb.gw.go | 8 +- api/uievents/v1/server_grpc.pb.go | 1 + .../user_service/get_user_parameters.go | 1 - .../client/user_service/get_user_responses.go | 10 - .../user_service/list_users_parameters.go | 1 - .../user_service/list_users_responses.go | 14 - .../user_service/update_user_parameters.go | 2 - .../user_service/update_user_responses.go | 11 - api/user/v1/user.pb.go | 32 ++- api/user/v1/user_grpc.pb.go | 3 + 308 files changed, 1606 insertions(+), 3755 deletions(-) diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.go b/api/accesscontrol/v1beta1/accesscontrol.pb.go index 639df37bd7e..f5e8ea4b004 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.go @@ -7,14 +7,15 @@ package accesscontrolv1beta1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" - unsafe "unsafe" ) const ( @@ -823,24 +824,27 @@ func file_accesscontrol_v1beta1_accesscontrol_proto_rawDescGZIP() []byte { return file_accesscontrol_v1beta1_accesscontrol_proto_rawDescData } -var file_accesscontrol_v1beta1_accesscontrol_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_accesscontrol_v1beta1_accesscontrol_proto_goTypes = []any{ - (*CreateRoleRequest)(nil), // 0: accesscontrol.v1beta1.CreateRoleRequest - (*CreateRoleResponse)(nil), // 1: accesscontrol.v1beta1.CreateRoleResponse - (*UpdateRoleRequest)(nil), // 2: accesscontrol.v1beta1.UpdateRoleRequest - (*UpdateRoleResponse)(nil), // 3: accesscontrol.v1beta1.UpdateRoleResponse - (*DeleteRoleRequest)(nil), // 4: accesscontrol.v1beta1.DeleteRoleRequest - (*DeleteRoleResponse)(nil), // 5: accesscontrol.v1beta1.DeleteRoleResponse - (*GetRoleRequest)(nil), // 6: accesscontrol.v1beta1.GetRoleRequest - (*GetRoleResponse)(nil), // 7: accesscontrol.v1beta1.GetRoleResponse - (*SetDefaultRoleRequest)(nil), // 8: accesscontrol.v1beta1.SetDefaultRoleRequest - (*SetDefaultRoleResponse)(nil), // 9: accesscontrol.v1beta1.SetDefaultRoleResponse - (*AssignRolesRequest)(nil), // 10: accesscontrol.v1beta1.AssignRolesRequest - (*AssignRolesResponse)(nil), // 11: accesscontrol.v1beta1.AssignRolesResponse - (*ListRolesRequest)(nil), // 12: accesscontrol.v1beta1.ListRolesRequest - (*ListRolesResponse)(nil), // 13: accesscontrol.v1beta1.ListRolesResponse - (*ListRolesResponse_RoleData)(nil), // 14: accesscontrol.v1beta1.ListRolesResponse.RoleData -} +var ( + file_accesscontrol_v1beta1_accesscontrol_proto_msgTypes = make([]protoimpl.MessageInfo, 15) + file_accesscontrol_v1beta1_accesscontrol_proto_goTypes = []any{ + (*CreateRoleRequest)(nil), // 0: accesscontrol.v1beta1.CreateRoleRequest + (*CreateRoleResponse)(nil), // 1: accesscontrol.v1beta1.CreateRoleResponse + (*UpdateRoleRequest)(nil), // 2: accesscontrol.v1beta1.UpdateRoleRequest + (*UpdateRoleResponse)(nil), // 3: accesscontrol.v1beta1.UpdateRoleResponse + (*DeleteRoleRequest)(nil), // 4: accesscontrol.v1beta1.DeleteRoleRequest + (*DeleteRoleResponse)(nil), // 5: accesscontrol.v1beta1.DeleteRoleResponse + (*GetRoleRequest)(nil), // 6: accesscontrol.v1beta1.GetRoleRequest + (*GetRoleResponse)(nil), // 7: accesscontrol.v1beta1.GetRoleResponse + (*SetDefaultRoleRequest)(nil), // 8: accesscontrol.v1beta1.SetDefaultRoleRequest + (*SetDefaultRoleResponse)(nil), // 9: accesscontrol.v1beta1.SetDefaultRoleResponse + (*AssignRolesRequest)(nil), // 10: accesscontrol.v1beta1.AssignRolesRequest + (*AssignRolesResponse)(nil), // 11: accesscontrol.v1beta1.AssignRolesResponse + (*ListRolesRequest)(nil), // 12: accesscontrol.v1beta1.ListRolesRequest + (*ListRolesResponse)(nil), // 13: accesscontrol.v1beta1.ListRolesResponse + (*ListRolesResponse_RoleData)(nil), // 14: accesscontrol.v1beta1.ListRolesResponse.RoleData + } +) + var file_accesscontrol_v1beta1_accesscontrol_proto_depIdxs = []int32{ 14, // 0: accesscontrol.v1beta1.ListRolesResponse.roles:type_name -> accesscontrol.v1beta1.ListRolesResponse.RoleData 0, // 1: accesscontrol.v1beta1.AccessControlService.CreateRole:input_type -> accesscontrol.v1beta1.CreateRoleRequest diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go b/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go index eb8ae6ba022..a055badfff2 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go @@ -290,7 +290,6 @@ func (m *UpdateRoleRequest) validate(all bool) error { } if m.Title != nil { - if utf8.RuneCountInString(m.GetTitle()) < 1 { err := UpdateRoleRequestValidationError{ field: "Title", @@ -301,7 +300,6 @@ func (m *UpdateRoleRequest) validate(all bool) error { } errors = append(errors, err) } - } if m.Filter != nil { diff --git a/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go b/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go index f868b277a03..27f509ee6f5 100644 --- a/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go +++ b/api/accesscontrol/v1beta1/accesscontrol_grpc.pb.go @@ -8,6 +8,7 @@ package accesscontrolv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -161,21 +162,27 @@ type UnimplementedAccessControlServiceServer struct{} func (UnimplementedAccessControlServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateRole not implemented") } + func (UnimplementedAccessControlServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateRole not implemented") } + func (UnimplementedAccessControlServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteRole not implemented") } + func (UnimplementedAccessControlServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetRole not implemented") } + func (UnimplementedAccessControlServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRoles not implemented") } + func (UnimplementedAccessControlServiceServer) AssignRoles(context.Context, *AssignRolesRequest) (*AssignRolesResponse, error) { return nil, status.Error(codes.Unimplemented, "method AssignRoles not implemented") } + func (UnimplementedAccessControlServiceServer) SetDefaultRole(context.Context, *SetDefaultRoleRequest) (*SetDefaultRoleResponse, error) { return nil, status.Error(codes.Unimplemented, "method SetDefaultRole not implemented") } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go index cb993665cc2..382f7922a2d 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_parameters.go @@ -60,7 +60,6 @@ AssignRolesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AssignRolesParams struct { - // Body. Body AssignRolesBody @@ -130,7 +129,6 @@ func (o *AssignRolesParams) SetBody(body AssignRolesBody) { // WriteToRequest writes these params to a swagger request func (o *AssignRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go index 2a2044f1092..e8da90c3536 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/assign_roles_responses.go @@ -104,7 +104,6 @@ func (o *AssignRolesOK) GetPayload() any { } func (o *AssignRolesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *AssignRolesDefault) GetPayload() *AssignRolesDefaultBody { } func (o *AssignRolesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AssignRolesDefaultBody) // response payload @@ -192,7 +190,6 @@ AssignRolesBody assign roles body swagger:model AssignRolesBody */ type AssignRolesBody struct { - // role ids RoleIds []int64 `json:"role_ids"` @@ -233,7 +230,6 @@ AssignRolesDefaultBody assign roles default body swagger:model AssignRolesDefaultBody */ type AssignRolesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -303,9 +299,7 @@ func (o *AssignRolesDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *AssignRolesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -325,7 +319,6 @@ func (o *AssignRolesDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -354,7 +347,6 @@ AssignRolesDefaultBodyDetailsItems0 assign roles default body details items0 swagger:model AssignRolesDefaultBodyDetailsItems0 */ type AssignRolesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -366,7 +358,6 @@ type AssignRolesDefaultBodyDetailsItems0 struct { func (o *AssignRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -404,7 +395,6 @@ func (o *AssignRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AssignRolesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go index 1bb34601822..b938a079586 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_parameters.go @@ -60,7 +60,6 @@ CreateRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CreateRoleParams struct { - // Body. Body CreateRoleBody @@ -130,7 +129,6 @@ func (o *CreateRoleParams) SetBody(body CreateRoleBody) { // WriteToRequest writes these params to a swagger request func (o *CreateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go index 0df54ce131f..b03fdb96075 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/create_role_responses.go @@ -104,7 +104,6 @@ func (o *CreateRoleOK) GetPayload() *CreateRoleOKBody { } func (o *CreateRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateRoleOKBody) // response payload @@ -178,7 +177,6 @@ func (o *CreateRoleDefault) GetPayload() *CreateRoleDefaultBody { } func (o *CreateRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateRoleDefaultBody) // response payload @@ -194,7 +192,6 @@ CreateRoleBody create role body swagger:model CreateRoleBody */ type CreateRoleBody struct { - // title Title string `json:"title,omitempty"` @@ -238,7 +235,6 @@ CreateRoleDefaultBody create role default body swagger:model CreateRoleDefaultBody */ type CreateRoleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -308,9 +304,7 @@ func (o *CreateRoleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *CreateRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -330,7 +324,6 @@ func (o *CreateRoleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -359,7 +352,6 @@ CreateRoleDefaultBodyDetailsItems0 create role default body details items0 swagger:model CreateRoleDefaultBodyDetailsItems0 */ type CreateRoleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -371,7 +363,6 @@ type CreateRoleDefaultBodyDetailsItems0 struct { func (o *CreateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -409,7 +400,6 @@ func (o *CreateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o CreateRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -473,7 +463,6 @@ CreateRoleOKBody create role OK body swagger:model CreateRoleOKBody */ type CreateRoleOKBody struct { - // role id RoleID int64 `json:"role_id,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go index 0b1b7b1af71..7e502e8dcd7 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_parameters.go @@ -61,7 +61,6 @@ DeleteRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteRoleParams struct { - /* ReplacementRoleID. Role ID to be used as a replacement for the role. Additional logic applies. @@ -152,7 +151,6 @@ func (o *DeleteRoleParams) SetRoleID(roleID int64) { // WriteToRequest writes these params to a swagger request func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -168,7 +166,6 @@ func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qReplacementRoleID := swag.FormatInt64(qrReplacementRoleID) if qReplacementRoleID != "" { - if err := r.SetQueryParam("replacement_role_id", qReplacementRoleID); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go index 86015ab4298..84cb3699513 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/delete_role_responses.go @@ -104,7 +104,6 @@ func (o *DeleteRoleOK) GetPayload() any { } func (o *DeleteRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *DeleteRoleDefault) GetPayload() *DeleteRoleDefaultBody { } func (o *DeleteRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteRoleDefaultBody) // response payload @@ -192,7 +190,6 @@ DeleteRoleDefaultBody delete role default body swagger:model DeleteRoleDefaultBody */ type DeleteRoleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,7 @@ func (o *DeleteRoleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *DeleteRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *DeleteRoleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -313,7 +307,6 @@ DeleteRoleDefaultBodyDetailsItems0 delete role default body details items0 swagger:model DeleteRoleDefaultBodyDetailsItems0 */ type DeleteRoleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type DeleteRoleDefaultBodyDetailsItems0 struct { func (o *DeleteRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *DeleteRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go index 609e5c621ee..31a018c004a 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_parameters.go @@ -61,7 +61,6 @@ GetRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetRoleParams struct { - // RoleID. // // Format: int64 @@ -133,7 +132,6 @@ func (o *GetRoleParams) SetRoleID(roleID int64) { // WriteToRequest writes these params to a swagger request func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go index 3b6e7faabf5..f731e38c4d1 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/get_role_responses.go @@ -104,7 +104,6 @@ func (o *GetRoleOK) GetPayload() *GetRoleOKBody { } func (o *GetRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetRoleOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetRoleDefault) GetPayload() *GetRoleDefaultBody { } func (o *GetRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetRoleDefaultBody) // response payload @@ -194,7 +192,6 @@ GetRoleDefaultBody get role default body swagger:model GetRoleDefaultBody */ type GetRoleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *GetRoleDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *GetRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetRoleDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -315,7 +309,6 @@ GetRoleDefaultBodyDetailsItems0 get role default body details items0 swagger:model GetRoleDefaultBodyDetailsItems0 */ type GetRoleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetRoleDefaultBodyDetailsItems0 struct { func (o *GetRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetRoleOKBody get role OK body swagger:model GetRoleOKBody */ type GetRoleOKBody struct { - // role id RoleID int64 `json:"role_id,omitempty"` diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go index 2d886057c5e..0fb513e0af3 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_parameters.go @@ -115,7 +115,6 @@ func (o *ListRolesParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go index 1834c8ed751..62d47cc68b2 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/list_roles_responses.go @@ -104,7 +104,6 @@ func (o *ListRolesOK) GetPayload() *ListRolesOKBody { } func (o *ListRolesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListRolesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListRolesDefault) GetPayload() *ListRolesDefaultBody { } func (o *ListRolesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListRolesDefaultBody) // response payload @@ -194,7 +192,6 @@ ListRolesDefaultBody list roles default body swagger:model ListRolesDefaultBody */ type ListRolesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *ListRolesDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListRolesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListRolesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -315,7 +309,6 @@ ListRolesDefaultBodyDetailsItems0 list roles default body details items0 swagger:model ListRolesDefaultBodyDetailsItems0 */ type ListRolesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListRolesDefaultBodyDetailsItems0 struct { func (o *ListRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListRolesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListRolesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListRolesOKBody list roles OK body swagger:model ListRolesOKBody */ type ListRolesOKBody struct { - // roles Roles []*ListRolesOKBodyRolesItems0 `json:"roles"` } @@ -493,9 +483,7 @@ func (o *ListRolesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListRolesOKBody) contextValidateRoles(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Roles); i++ { - if o.Roles[i] != nil { if swag.IsZero(o.Roles[i]) { // not required @@ -515,7 +503,6 @@ func (o *ListRolesOKBody) contextValidateRoles(ctx context.Context, formats strf return err } } - } return nil @@ -544,7 +531,6 @@ ListRolesOKBodyRolesItems0 list roles OK body roles items0 swagger:model ListRolesOKBodyRolesItems0 */ type ListRolesOKBodyRolesItems0 struct { - // role id RoleID int64 `json:"role_id,omitempty"` diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go index 858d855c7eb..516a1543b14 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_parameters.go @@ -60,7 +60,6 @@ SetDefaultRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type SetDefaultRoleParams struct { - // Body. Body SetDefaultRoleBody @@ -130,7 +129,6 @@ func (o *SetDefaultRoleParams) SetBody(body SetDefaultRoleBody) { // WriteToRequest writes these params to a swagger request func (o *SetDefaultRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go index e6288362405..101b2683e30 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/set_default_role_responses.go @@ -104,7 +104,6 @@ func (o *SetDefaultRoleOK) GetPayload() any { } func (o *SetDefaultRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *SetDefaultRoleDefault) GetPayload() *SetDefaultRoleDefaultBody { } func (o *SetDefaultRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SetDefaultRoleDefaultBody) // response payload @@ -192,7 +190,6 @@ SetDefaultRoleBody set default role body swagger:model SetDefaultRoleBody */ type SetDefaultRoleBody struct { - // role id RoleID int64 `json:"role_id,omitempty"` } @@ -230,7 +227,6 @@ SetDefaultRoleDefaultBody set default role default body swagger:model SetDefaultRoleDefaultBody */ type SetDefaultRoleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,7 @@ func (o *SetDefaultRoleDefaultBody) ContextValidate(ctx context.Context, formats } func (o *SetDefaultRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *SetDefaultRoleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -351,7 +344,6 @@ SetDefaultRoleDefaultBodyDetailsItems0 set default role default body details ite swagger:model SetDefaultRoleDefaultBodyDetailsItems0 */ type SetDefaultRoleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type SetDefaultRoleDefaultBodyDetailsItems0 struct { func (o *SetDefaultRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *SetDefaultRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o SetDefaultRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go index 234a65456d7..c5724145e12 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_parameters.go @@ -61,7 +61,6 @@ UpdateRoleParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UpdateRoleParams struct { - // Body. Body UpdateRoleBody @@ -147,7 +146,6 @@ func (o *UpdateRoleParams) SetRoleID(roleID int64) { // WriteToRequest writes these params to a swagger request func (o *UpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go index f280b94732a..0fd4a4964f6 100644 --- a/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go +++ b/api/accesscontrol/v1beta1/json/client/access_control_service/update_role_responses.go @@ -104,7 +104,6 @@ func (o *UpdateRoleOK) GetPayload() any { } func (o *UpdateRoleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *UpdateRoleDefault) GetPayload() *UpdateRoleDefaultBody { } func (o *UpdateRoleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateRoleDefaultBody) // response payload @@ -192,7 +190,6 @@ UpdateRoleBody update role body swagger:model UpdateRoleBody */ type UpdateRoleBody struct { - // title Title *string `json:"title,omitempty"` @@ -236,7 +233,6 @@ UpdateRoleDefaultBody update role default body swagger:model UpdateRoleDefaultBody */ type UpdateRoleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -306,9 +302,7 @@ func (o *UpdateRoleDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UpdateRoleDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -328,7 +322,6 @@ func (o *UpdateRoleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -357,7 +350,6 @@ UpdateRoleDefaultBodyDetailsItems0 update role default body details items0 swagger:model UpdateRoleDefaultBodyDetailsItems0 */ type UpdateRoleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -369,7 +361,6 @@ type UpdateRoleDefaultBodyDetailsItems0 struct { func (o *UpdateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -407,7 +398,6 @@ func (o *UpdateRoleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateRoleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/actions/v1/actions.pb.go b/api/actions/v1/actions.pb.go index c22f9dab1a2..8cc8bdac9e8 100644 --- a/api/actions/v1/actions.pb.go +++ b/api/actions/v1/actions.pb.go @@ -7,14 +7,15 @@ package actionsv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" - unsafe "unsafe" ) const ( @@ -2609,43 +2610,46 @@ func file_actions_v1_actions_proto_rawDescGZIP() []byte { return file_actions_v1_actions_proto_rawDescData } -var file_actions_v1_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_actions_v1_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 32) -var file_actions_v1_actions_proto_goTypes = []any{ - (ActionType)(0), // 0: actions.v1.ActionType - (*GetActionRequest)(nil), // 1: actions.v1.GetActionRequest - (*GetActionResponse)(nil), // 2: actions.v1.GetActionResponse - (*StartMySQLExplainActionParams)(nil), // 3: actions.v1.StartMySQLExplainActionParams - (*StartMySQLExplainActionResult)(nil), // 4: actions.v1.StartMySQLExplainActionResult - (*StartMySQLExplainJSONActionParams)(nil), // 5: actions.v1.StartMySQLExplainJSONActionParams - (*StartMySQLExplainJSONActionResult)(nil), // 6: actions.v1.StartMySQLExplainJSONActionResult - (*StartMySQLExplainTraditionalJSONActionParams)(nil), // 7: actions.v1.StartMySQLExplainTraditionalJSONActionParams - (*StartMySQLExplainTraditionalJSONActionResult)(nil), // 8: actions.v1.StartMySQLExplainTraditionalJSONActionResult - (*StartMySQLShowCreateTableActionParams)(nil), // 9: actions.v1.StartMySQLShowCreateTableActionParams - (*StartMySQLShowCreateTableActionResult)(nil), // 10: actions.v1.StartMySQLShowCreateTableActionResult - (*StartMySQLShowTableStatusActionParams)(nil), // 11: actions.v1.StartMySQLShowTableStatusActionParams - (*StartMySQLShowTableStatusActionResult)(nil), // 12: actions.v1.StartMySQLShowTableStatusActionResult - (*StartMySQLShowIndexActionParams)(nil), // 13: actions.v1.StartMySQLShowIndexActionParams - (*StartMySQLShowIndexActionResult)(nil), // 14: actions.v1.StartMySQLShowIndexActionResult - (*StartPostgreSQLShowCreateTableActionParams)(nil), // 15: actions.v1.StartPostgreSQLShowCreateTableActionParams - (*StartPostgreSQLShowCreateTableActionResult)(nil), // 16: actions.v1.StartPostgreSQLShowCreateTableActionResult - (*StartPostgreSQLShowIndexActionParams)(nil), // 17: actions.v1.StartPostgreSQLShowIndexActionParams - (*StartPostgreSQLShowIndexActionResult)(nil), // 18: actions.v1.StartPostgreSQLShowIndexActionResult - (*StartMongoDBExplainActionParams)(nil), // 19: actions.v1.StartMongoDBExplainActionParams - (*StartMongoDBExplainActionResult)(nil), // 20: actions.v1.StartMongoDBExplainActionResult - (*StartPTPgSummaryActionParams)(nil), // 21: actions.v1.StartPTPgSummaryActionParams - (*StartPTPgSummaryActionResult)(nil), // 22: actions.v1.StartPTPgSummaryActionResult - (*StartPTMongoDBSummaryActionParams)(nil), // 23: actions.v1.StartPTMongoDBSummaryActionParams - (*StartPTMongoDBSummaryActionResult)(nil), // 24: actions.v1.StartPTMongoDBSummaryActionResult - (*StartPTMySQLSummaryActionParams)(nil), // 25: actions.v1.StartPTMySQLSummaryActionParams - (*StartPTMySQLSummaryActionResult)(nil), // 26: actions.v1.StartPTMySQLSummaryActionResult - (*StartPTSummaryActionRequest)(nil), // 27: actions.v1.StartPTSummaryActionRequest - (*StartPTSummaryActionResponse)(nil), // 28: actions.v1.StartPTSummaryActionResponse - (*CancelActionRequest)(nil), // 29: actions.v1.CancelActionRequest - (*CancelActionResponse)(nil), // 30: actions.v1.CancelActionResponse - (*StartServiceActionRequest)(nil), // 31: actions.v1.StartServiceActionRequest - (*StartServiceActionResponse)(nil), // 32: actions.v1.StartServiceActionResponse -} +var ( + file_actions_v1_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_actions_v1_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 32) + file_actions_v1_actions_proto_goTypes = []any{ + (ActionType)(0), // 0: actions.v1.ActionType + (*GetActionRequest)(nil), // 1: actions.v1.GetActionRequest + (*GetActionResponse)(nil), // 2: actions.v1.GetActionResponse + (*StartMySQLExplainActionParams)(nil), // 3: actions.v1.StartMySQLExplainActionParams + (*StartMySQLExplainActionResult)(nil), // 4: actions.v1.StartMySQLExplainActionResult + (*StartMySQLExplainJSONActionParams)(nil), // 5: actions.v1.StartMySQLExplainJSONActionParams + (*StartMySQLExplainJSONActionResult)(nil), // 6: actions.v1.StartMySQLExplainJSONActionResult + (*StartMySQLExplainTraditionalJSONActionParams)(nil), // 7: actions.v1.StartMySQLExplainTraditionalJSONActionParams + (*StartMySQLExplainTraditionalJSONActionResult)(nil), // 8: actions.v1.StartMySQLExplainTraditionalJSONActionResult + (*StartMySQLShowCreateTableActionParams)(nil), // 9: actions.v1.StartMySQLShowCreateTableActionParams + (*StartMySQLShowCreateTableActionResult)(nil), // 10: actions.v1.StartMySQLShowCreateTableActionResult + (*StartMySQLShowTableStatusActionParams)(nil), // 11: actions.v1.StartMySQLShowTableStatusActionParams + (*StartMySQLShowTableStatusActionResult)(nil), // 12: actions.v1.StartMySQLShowTableStatusActionResult + (*StartMySQLShowIndexActionParams)(nil), // 13: actions.v1.StartMySQLShowIndexActionParams + (*StartMySQLShowIndexActionResult)(nil), // 14: actions.v1.StartMySQLShowIndexActionResult + (*StartPostgreSQLShowCreateTableActionParams)(nil), // 15: actions.v1.StartPostgreSQLShowCreateTableActionParams + (*StartPostgreSQLShowCreateTableActionResult)(nil), // 16: actions.v1.StartPostgreSQLShowCreateTableActionResult + (*StartPostgreSQLShowIndexActionParams)(nil), // 17: actions.v1.StartPostgreSQLShowIndexActionParams + (*StartPostgreSQLShowIndexActionResult)(nil), // 18: actions.v1.StartPostgreSQLShowIndexActionResult + (*StartMongoDBExplainActionParams)(nil), // 19: actions.v1.StartMongoDBExplainActionParams + (*StartMongoDBExplainActionResult)(nil), // 20: actions.v1.StartMongoDBExplainActionResult + (*StartPTPgSummaryActionParams)(nil), // 21: actions.v1.StartPTPgSummaryActionParams + (*StartPTPgSummaryActionResult)(nil), // 22: actions.v1.StartPTPgSummaryActionResult + (*StartPTMongoDBSummaryActionParams)(nil), // 23: actions.v1.StartPTMongoDBSummaryActionParams + (*StartPTMongoDBSummaryActionResult)(nil), // 24: actions.v1.StartPTMongoDBSummaryActionResult + (*StartPTMySQLSummaryActionParams)(nil), // 25: actions.v1.StartPTMySQLSummaryActionParams + (*StartPTMySQLSummaryActionResult)(nil), // 26: actions.v1.StartPTMySQLSummaryActionResult + (*StartPTSummaryActionRequest)(nil), // 27: actions.v1.StartPTSummaryActionRequest + (*StartPTSummaryActionResponse)(nil), // 28: actions.v1.StartPTSummaryActionResponse + (*CancelActionRequest)(nil), // 29: actions.v1.CancelActionRequest + (*CancelActionResponse)(nil), // 30: actions.v1.CancelActionResponse + (*StartServiceActionRequest)(nil), // 31: actions.v1.StartServiceActionRequest + (*StartServiceActionResponse)(nil), // 32: actions.v1.StartServiceActionResponse + } +) + var file_actions_v1_actions_proto_depIdxs = []int32{ 3, // 0: actions.v1.StartServiceActionRequest.mysql_explain:type_name -> actions.v1.StartMySQLExplainActionParams 5, // 1: actions.v1.StartServiceActionRequest.mysql_explain_json:type_name -> actions.v1.StartMySQLExplainJSONActionParams diff --git a/api/actions/v1/actions_grpc.pb.go b/api/actions/v1/actions_grpc.pb.go index f9fb5ad5c81..cfe06386498 100644 --- a/api/actions/v1/actions_grpc.pb.go +++ b/api/actions/v1/actions_grpc.pb.go @@ -8,6 +8,7 @@ package actionsv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -116,12 +117,15 @@ type UnimplementedActionsServiceServer struct{} func (UnimplementedActionsServiceServer) GetAction(context.Context, *GetActionRequest) (*GetActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAction not implemented") } + func (UnimplementedActionsServiceServer) StartServiceAction(context.Context, *StartServiceActionRequest) (*StartServiceActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartServiceAction not implemented") } + func (UnimplementedActionsServiceServer) StartPTSummaryAction(context.Context, *StartPTSummaryActionRequest) (*StartPTSummaryActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartPTSummaryAction not implemented") } + func (UnimplementedActionsServiceServer) CancelAction(context.Context, *CancelActionRequest) (*CancelActionResponse, error) { return nil, status.Error(codes.Unimplemented, "method CancelAction not implemented") } diff --git a/api/actions/v1/json/client/actions_service/cancel_action_parameters.go b/api/actions/v1/json/client/actions_service/cancel_action_parameters.go index 212f1d60d20..6348e7d94eb 100644 --- a/api/actions/v1/json/client/actions_service/cancel_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/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/actions/v1/json/client/actions_service/cancel_action_responses.go b/api/actions/v1/json/client/actions_service/cancel_action_responses.go index 09883420047..0e13c7ab307 100644 --- a/api/actions/v1/json/client/actions_service/cancel_action_responses.go +++ b/api/actions/v1/json/client/actions_service/cancel_action_responses.go @@ -104,7 +104,6 @@ func (o *CancelActionOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *CancelActionDefault) GetPayload() *CancelActionDefaultBody { } func (o *CancelActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CancelActionDefaultBody) // response payload @@ -192,7 +190,6 @@ CancelActionBody cancel action body swagger:model CancelActionBody */ type CancelActionBody struct { - // Unique Action ID. Required. ActionID string `json:"action_id,omitempty"` } @@ -230,7 +227,6 @@ CancelActionDefaultBody cancel action default body swagger:model CancelActionDefaultBody */ type CancelActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,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 swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *CancelActionDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -351,7 +344,6 @@ CancelActionDefaultBodyDetailsItems0 cancel action default body details items0 swagger:model CancelActionDefaultBodyDetailsItems0 */ type CancelActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type CancelActionDefaultBodyDetailsItems0 struct { func (o *CancelActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *CancelActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o CancelActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/actions/v1/json/client/actions_service/get_action_parameters.go b/api/actions/v1/json/client/actions_service/get_action_parameters.go index 6b0d82f9eea..260fc6822b1 100644 --- a/api/actions/v1/json/client/actions_service/get_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/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 { - /* ActionID. Unique Action ID. @@ -133,7 +132,6 @@ func (o *GetActionParams) SetActionID(actionID string) { // 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/actions/v1/json/client/actions_service/get_action_responses.go b/api/actions/v1/json/client/actions_service/get_action_responses.go index d45f0432bae..9b33b0d5d9e 100644 --- a/api/actions/v1/json/client/actions_service/get_action_responses.go +++ b/api/actions/v1/json/client/actions_service/get_action_responses.go @@ -104,7 +104,6 @@ func (o *GetActionOK) GetPayload() *GetActionOKBody { } func (o *GetActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetActionOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetActionDefault) GetPayload() *GetActionDefaultBody { } func (o *GetActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetActionDefaultBody) // response payload @@ -194,7 +192,6 @@ GetActionDefaultBody get action default body swagger:model GetActionDefaultBody */ type GetActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetActionDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -315,7 +309,6 @@ GetActionDefaultBodyDetailsItems0 get action default body details items0 swagger:model GetActionDefaultBodyDetailsItems0 */ type GetActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetActionDefaultBodyDetailsItems0 struct { func (o *GetActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,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/actions/v1/json/client/actions_service/start_pt_summary_action_parameters.go b/api/actions/v1/json/client/actions_service/start_pt_summary_action_parameters.go index 5b8ccd3118d..968ef894f1e 100644 --- a/api/actions/v1/json/client/actions_service/start_pt_summary_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/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/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go b/api/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go index 78ab76df792..8cafc764bc5 100644 --- a/api/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go +++ b/api/actions/v1/json/client/actions_service/start_pt_summary_action_responses.go @@ -104,7 +104,6 @@ func (o *StartPTSummaryActionOK) GetPayload() *StartPTSummaryActionOKBody { } func (o *StartPTSummaryActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTSummaryActionOKBody) // response payload @@ -178,7 +177,6 @@ func (o *StartPTSummaryActionDefault) GetPayload() *StartPTSummaryActionDefaultB } func (o *StartPTSummaryActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartPTSummaryActionDefaultBody) // response payload @@ -194,7 +192,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"` @@ -235,7 +232,6 @@ StartPTSummaryActionDefaultBody start PT summary action default body swagger:model StartPTSummaryActionDefaultBody */ type StartPTSummaryActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -305,9 +301,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 swag.IsZero(o.Details[i]) { // not required @@ -327,7 +321,6 @@ func (o *StartPTSummaryActionDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -356,7 +349,6 @@ StartPTSummaryActionDefaultBodyDetailsItems0 start PT summary action default bod swagger:model StartPTSummaryActionDefaultBodyDetailsItems0 */ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -368,7 +360,6 @@ type StartPTSummaryActionDefaultBodyDetailsItems0 struct { func (o *StartPTSummaryActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -406,7 +397,6 @@ func (o *StartPTSummaryActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte // MarshalJSON marshals this object with additional properties into a JSON object func (o StartPTSummaryActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -470,7 +460,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/actions/v1/json/client/actions_service/start_service_action_parameters.go b/api/actions/v1/json/client/actions_service/start_service_action_parameters.go index 9aa53446c00..efc1acb5ebf 100644 --- a/api/actions/v1/json/client/actions_service/start_service_action_parameters.go +++ b/api/actions/v1/json/client/actions_service/start_service_action_parameters.go @@ -60,7 +60,6 @@ StartServiceActionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartServiceActionParams struct { - // Body. Body StartServiceActionBody @@ -130,7 +129,6 @@ func (o *StartServiceActionParams) SetBody(body StartServiceActionBody) { // WriteToRequest writes these params to a swagger request func (o *StartServiceActionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/actions/v1/json/client/actions_service/start_service_action_responses.go b/api/actions/v1/json/client/actions_service/start_service_action_responses.go index 3184f68f740..ffe544f60ab 100644 --- a/api/actions/v1/json/client/actions_service/start_service_action_responses.go +++ b/api/actions/v1/json/client/actions_service/start_service_action_responses.go @@ -104,7 +104,6 @@ func (o *StartServiceActionOK) GetPayload() *StartServiceActionOKBody { } func (o *StartServiceActionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartServiceActionOKBody) // response payload @@ -178,7 +177,6 @@ func (o *StartServiceActionDefault) GetPayload() *StartServiceActionDefaultBody } func (o *StartServiceActionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartServiceActionDefaultBody) // response payload @@ -194,7 +192,6 @@ StartServiceActionBody start service action body swagger:model StartServiceActionBody */ type StartServiceActionBody struct { - // mongodb explain MongodbExplain *StartServiceActionParamsBodyMongodbExplain `json:"mongodb_explain,omitempty"` @@ -625,7 +622,6 @@ func (o *StartServiceActionBody) ContextValidate(ctx context.Context, formats st } func (o *StartServiceActionBody) contextValidateMongodbExplain(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExplain != nil { if swag.IsZero(o.MongodbExplain) { // not required @@ -650,7 +646,6 @@ func (o *StartServiceActionBody) contextValidateMongodbExplain(ctx context.Conte } func (o *StartServiceActionBody) contextValidateMysqlExplain(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlExplain != nil { if swag.IsZero(o.MysqlExplain) { // not required @@ -675,7 +670,6 @@ func (o *StartServiceActionBody) contextValidateMysqlExplain(ctx context.Context } func (o *StartServiceActionBody) contextValidateMysqlExplainJSON(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlExplainJSON != nil { if swag.IsZero(o.MysqlExplainJSON) { // not required @@ -700,7 +694,6 @@ func (o *StartServiceActionBody) contextValidateMysqlExplainJSON(ctx context.Con } func (o *StartServiceActionBody) contextValidateMysqlExplainTraditionalJSON(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlExplainTraditionalJSON != nil { if swag.IsZero(o.MysqlExplainTraditionalJSON) { // not required @@ -725,7 +718,6 @@ func (o *StartServiceActionBody) contextValidateMysqlExplainTraditionalJSON(ctx } func (o *StartServiceActionBody) contextValidateMysqlShowCreateTable(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlShowCreateTable != nil { if swag.IsZero(o.MysqlShowCreateTable) { // not required @@ -750,7 +742,6 @@ func (o *StartServiceActionBody) contextValidateMysqlShowCreateTable(ctx context } func (o *StartServiceActionBody) contextValidateMysqlShowIndex(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlShowIndex != nil { if swag.IsZero(o.MysqlShowIndex) { // not required @@ -775,7 +766,6 @@ func (o *StartServiceActionBody) contextValidateMysqlShowIndex(ctx context.Conte } func (o *StartServiceActionBody) contextValidateMysqlShowTableStatus(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlShowTableStatus != nil { if swag.IsZero(o.MysqlShowTableStatus) { // not required @@ -800,7 +790,6 @@ func (o *StartServiceActionBody) contextValidateMysqlShowTableStatus(ctx context } func (o *StartServiceActionBody) contextValidatePostgresShowCreateTable(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresShowCreateTable != nil { if swag.IsZero(o.PostgresShowCreateTable) { // not required @@ -825,7 +814,6 @@ func (o *StartServiceActionBody) contextValidatePostgresShowCreateTable(ctx cont } func (o *StartServiceActionBody) contextValidatePostgresShowIndex(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresShowIndex != nil { if swag.IsZero(o.PostgresShowIndex) { // not required @@ -850,7 +838,6 @@ func (o *StartServiceActionBody) contextValidatePostgresShowIndex(ctx context.Co } func (o *StartServiceActionBody) contextValidatePTMongodbSummary(ctx context.Context, formats strfmt.Registry) error { - if o.PTMongodbSummary != nil { if swag.IsZero(o.PTMongodbSummary) { // not required @@ -875,7 +862,6 @@ func (o *StartServiceActionBody) contextValidatePTMongodbSummary(ctx context.Con } func (o *StartServiceActionBody) contextValidatePTMysqlSummary(ctx context.Context, formats strfmt.Registry) error { - if o.PTMysqlSummary != nil { if swag.IsZero(o.PTMysqlSummary) { // not required @@ -900,7 +886,6 @@ func (o *StartServiceActionBody) contextValidatePTMysqlSummary(ctx context.Conte } func (o *StartServiceActionBody) contextValidatePTPostgresSummary(ctx context.Context, formats strfmt.Registry) error { - if o.PTPostgresSummary != nil { if swag.IsZero(o.PTPostgresSummary) { // not required @@ -947,7 +932,6 @@ StartServiceActionDefaultBody start service action default body swagger:model StartServiceActionDefaultBody */ type StartServiceActionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -1017,9 +1001,7 @@ func (o *StartServiceActionDefaultBody) ContextValidate(ctx context.Context, for } func (o *StartServiceActionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -1039,7 +1021,6 @@ func (o *StartServiceActionDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -1068,7 +1049,6 @@ StartServiceActionDefaultBodyDetailsItems0 start service action default body det swagger:model StartServiceActionDefaultBodyDetailsItems0 */ type StartServiceActionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -1080,7 +1060,6 @@ type StartServiceActionDefaultBodyDetailsItems0 struct { func (o *StartServiceActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1118,7 +1097,6 @@ func (o *StartServiceActionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o StartServiceActionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1182,7 +1160,6 @@ StartServiceActionOKBody start service action OK body swagger:model StartServiceActionOKBody */ type StartServiceActionOKBody struct { - // mongodb explain MongodbExplain *StartServiceActionOKBodyMongodbExplain `json:"mongodb_explain,omitempty"` @@ -1613,7 +1590,6 @@ func (o *StartServiceActionOKBody) ContextValidate(ctx context.Context, formats } func (o *StartServiceActionOKBody) contextValidateMongodbExplain(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExplain != nil { if swag.IsZero(o.MongodbExplain) { // not required @@ -1638,7 +1614,6 @@ func (o *StartServiceActionOKBody) contextValidateMongodbExplain(ctx context.Con } func (o *StartServiceActionOKBody) contextValidateMysqlExplain(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlExplain != nil { if swag.IsZero(o.MysqlExplain) { // not required @@ -1663,7 +1638,6 @@ func (o *StartServiceActionOKBody) contextValidateMysqlExplain(ctx context.Conte } func (o *StartServiceActionOKBody) contextValidateMysqlExplainJSON(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlExplainJSON != nil { if swag.IsZero(o.MysqlExplainJSON) { // not required @@ -1688,7 +1662,6 @@ func (o *StartServiceActionOKBody) contextValidateMysqlExplainJSON(ctx context.C } func (o *StartServiceActionOKBody) contextValidateMysqlExplainTraditionalJSON(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlExplainTraditionalJSON != nil { if swag.IsZero(o.MysqlExplainTraditionalJSON) { // not required @@ -1713,7 +1686,6 @@ func (o *StartServiceActionOKBody) contextValidateMysqlExplainTraditionalJSON(ct } func (o *StartServiceActionOKBody) contextValidateMysqlShowCreateTable(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlShowCreateTable != nil { if swag.IsZero(o.MysqlShowCreateTable) { // not required @@ -1738,7 +1710,6 @@ func (o *StartServiceActionOKBody) contextValidateMysqlShowCreateTable(ctx conte } func (o *StartServiceActionOKBody) contextValidateMysqlShowIndex(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlShowIndex != nil { if swag.IsZero(o.MysqlShowIndex) { // not required @@ -1763,7 +1734,6 @@ func (o *StartServiceActionOKBody) contextValidateMysqlShowIndex(ctx context.Con } func (o *StartServiceActionOKBody) contextValidateMysqlShowTableStatus(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlShowTableStatus != nil { if swag.IsZero(o.MysqlShowTableStatus) { // not required @@ -1788,7 +1758,6 @@ func (o *StartServiceActionOKBody) contextValidateMysqlShowTableStatus(ctx conte } func (o *StartServiceActionOKBody) contextValidatePostgresqlShowCreateTable(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresqlShowCreateTable != nil { if swag.IsZero(o.PostgresqlShowCreateTable) { // not required @@ -1813,7 +1782,6 @@ func (o *StartServiceActionOKBody) contextValidatePostgresqlShowCreateTable(ctx } func (o *StartServiceActionOKBody) contextValidatePostgresqlShowIndex(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresqlShowIndex != nil { if swag.IsZero(o.PostgresqlShowIndex) { // not required @@ -1838,7 +1806,6 @@ func (o *StartServiceActionOKBody) contextValidatePostgresqlShowIndex(ctx contex } func (o *StartServiceActionOKBody) contextValidatePTMongodbSummary(ctx context.Context, formats strfmt.Registry) error { - if o.PTMongodbSummary != nil { if swag.IsZero(o.PTMongodbSummary) { // not required @@ -1863,7 +1830,6 @@ func (o *StartServiceActionOKBody) contextValidatePTMongodbSummary(ctx context.C } func (o *StartServiceActionOKBody) contextValidatePTMysqlSummary(ctx context.Context, formats strfmt.Registry) error { - if o.PTMysqlSummary != nil { if swag.IsZero(o.PTMysqlSummary) { // not required @@ -1888,7 +1854,6 @@ func (o *StartServiceActionOKBody) contextValidatePTMysqlSummary(ctx context.Con } func (o *StartServiceActionOKBody) contextValidatePTPostgresSummary(ctx context.Context, formats strfmt.Registry) error { - if o.PTPostgresSummary != nil { if swag.IsZero(o.PTPostgresSummary) { // not required @@ -1935,7 +1900,6 @@ StartServiceActionOKBodyMongodbExplain start service action OK body mongodb expl swagger:model StartServiceActionOKBodyMongodbExplain */ type StartServiceActionOKBodyMongodbExplain struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -1976,7 +1940,6 @@ StartServiceActionOKBodyMysqlExplain start service action OK body mysql explain swagger:model StartServiceActionOKBodyMysqlExplain */ type StartServiceActionOKBodyMysqlExplain struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2017,7 +1980,6 @@ StartServiceActionOKBodyMysqlExplainJSON start service action OK body mysql expl swagger:model StartServiceActionOKBodyMysqlExplainJSON */ type StartServiceActionOKBodyMysqlExplainJSON struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2058,7 +2020,6 @@ StartServiceActionOKBodyMysqlExplainTraditionalJSON start service action OK body swagger:model StartServiceActionOKBodyMysqlExplainTraditionalJSON */ type StartServiceActionOKBodyMysqlExplainTraditionalJSON struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2099,7 +2060,6 @@ StartServiceActionOKBodyMysqlShowCreateTable start service action OK body mysql swagger:model StartServiceActionOKBodyMysqlShowCreateTable */ type StartServiceActionOKBodyMysqlShowCreateTable struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2140,7 +2100,6 @@ StartServiceActionOKBodyMysqlShowIndex start service action OK body mysql show i swagger:model StartServiceActionOKBodyMysqlShowIndex */ type StartServiceActionOKBodyMysqlShowIndex struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2181,7 +2140,6 @@ StartServiceActionOKBodyMysqlShowTableStatus start service action OK body mysql swagger:model StartServiceActionOKBodyMysqlShowTableStatus */ type StartServiceActionOKBodyMysqlShowTableStatus struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2222,7 +2180,6 @@ StartServiceActionOKBodyPTMongodbSummary Message to retrieve the prepared pt-mon swagger:model StartServiceActionOKBodyPTMongodbSummary */ type StartServiceActionOKBodyPTMongodbSummary struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2263,7 +2220,6 @@ StartServiceActionOKBodyPTMysqlSummary Message to retrieve the prepared pt-mysql swagger:model StartServiceActionOKBodyPTMysqlSummary */ type StartServiceActionOKBodyPTMysqlSummary struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2304,7 +2260,6 @@ StartServiceActionOKBodyPTPostgresSummary Message to retrieve the prepared pt-pg swagger:model StartServiceActionOKBodyPTPostgresSummary */ type StartServiceActionOKBodyPTPostgresSummary struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2345,7 +2300,6 @@ StartServiceActionOKBodyPostgresqlShowCreateTable start service action OK body p swagger:model StartServiceActionOKBodyPostgresqlShowCreateTable */ type StartServiceActionOKBodyPostgresqlShowCreateTable struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2386,7 +2340,6 @@ StartServiceActionOKBodyPostgresqlShowIndex start service action OK body postgre swagger:model StartServiceActionOKBodyPostgresqlShowIndex */ type StartServiceActionOKBodyPostgresqlShowIndex struct { - // Unique Action ID. ActionID string `json:"action_id,omitempty"` @@ -2427,7 +2380,6 @@ StartServiceActionParamsBodyMongodbExplain start service action params body mong swagger:model StartServiceActionParamsBodyMongodbExplain */ type StartServiceActionParamsBodyMongodbExplain struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2471,7 +2423,6 @@ StartServiceActionParamsBodyMysqlExplain start service action params body mysql swagger:model StartServiceActionParamsBodyMysqlExplain */ type StartServiceActionParamsBodyMysqlExplain struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2521,7 +2472,6 @@ StartServiceActionParamsBodyMysqlExplainJSON start service action params body my swagger:model StartServiceActionParamsBodyMysqlExplainJSON */ type StartServiceActionParamsBodyMysqlExplainJSON struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2571,7 +2521,6 @@ StartServiceActionParamsBodyMysqlExplainTraditionalJSON start service action par swagger:model StartServiceActionParamsBodyMysqlExplainTraditionalJSON */ type StartServiceActionParamsBodyMysqlExplainTraditionalJSON struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2621,7 +2570,6 @@ StartServiceActionParamsBodyMysqlShowCreateTable start service action params bod swagger:model StartServiceActionParamsBodyMysqlShowCreateTable */ type StartServiceActionParamsBodyMysqlShowCreateTable struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2668,7 +2616,6 @@ StartServiceActionParamsBodyMysqlShowIndex start service action params body mysq swagger:model StartServiceActionParamsBodyMysqlShowIndex */ type StartServiceActionParamsBodyMysqlShowIndex struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2715,7 +2662,6 @@ StartServiceActionParamsBodyMysqlShowTableStatus start service action params bod swagger:model StartServiceActionParamsBodyMysqlShowTableStatus */ type StartServiceActionParamsBodyMysqlShowTableStatus struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2762,7 +2708,6 @@ StartServiceActionParamsBodyPTMongodbSummary Message to prepare pt-mongodb-summa swagger:model StartServiceActionParamsBodyPTMongodbSummary */ type StartServiceActionParamsBodyPTMongodbSummary struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2803,7 +2748,6 @@ StartServiceActionParamsBodyPTMysqlSummary Message to prepare pt-mysql-summary d swagger:model StartServiceActionParamsBodyPTMysqlSummary */ type StartServiceActionParamsBodyPTMysqlSummary struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2844,7 +2788,6 @@ StartServiceActionParamsBodyPTPostgresSummary Message to prepare pt-pg-summary d swagger:model StartServiceActionParamsBodyPTPostgresSummary */ type StartServiceActionParamsBodyPTPostgresSummary struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2885,7 +2828,6 @@ StartServiceActionParamsBodyPostgresShowCreateTable start service action params swagger:model StartServiceActionParamsBodyPostgresShowCreateTable */ type StartServiceActionParamsBodyPostgresShowCreateTable struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -2932,7 +2874,6 @@ StartServiceActionParamsBodyPostgresShowIndex start service action params body p swagger:model StartServiceActionParamsBodyPostgresShowIndex */ type StartServiceActionParamsBodyPostgresShowIndex struct { - // pmm-agent ID where to run this Action. PMMAgentID string `json:"pmm_agent_id,omitempty"` diff --git a/api/advisors/v1/advisors.pb.go b/api/advisors/v1/advisors.pb.go index e86ccdfcea8..1961afd6e44 100644 --- a/api/advisors/v1/advisors.pb.go +++ b/api/advisors/v1/advisors.pb.go @@ -7,15 +7,17 @@ package advisorsv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - v1 "github.com/percona/pmm/api/management/v1" _ "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" - unsafe "unsafe" + + v1 "github.com/percona/pmm/api/management/v1" ) const ( @@ -1356,33 +1358,36 @@ func file_advisors_v1_advisors_proto_rawDescGZIP() []byte { return file_advisors_v1_advisors_proto_rawDescData } -var file_advisors_v1_advisors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_advisors_v1_advisors_proto_msgTypes = make([]protoimpl.MessageInfo, 20) -var file_advisors_v1_advisors_proto_goTypes = []any{ - (AdvisorCheckInterval)(0), // 0: advisors.v1.AdvisorCheckInterval - (AdvisorCheckFamily)(0), // 1: advisors.v1.AdvisorCheckFamily - (*AdvisorCheckResult)(nil), // 2: advisors.v1.AdvisorCheckResult - (*CheckResultSummary)(nil), // 3: advisors.v1.CheckResultSummary - (*CheckResult)(nil), // 4: advisors.v1.CheckResult - (*AdvisorCheck)(nil), // 5: advisors.v1.AdvisorCheck - (*Advisor)(nil), // 6: advisors.v1.Advisor - (*ChangeAdvisorCheckParams)(nil), // 7: advisors.v1.ChangeAdvisorCheckParams - (*StartAdvisorChecksRequest)(nil), // 8: advisors.v1.StartAdvisorChecksRequest - (*StartAdvisorChecksResponse)(nil), // 9: advisors.v1.StartAdvisorChecksResponse - (*ListAdvisorChecksRequest)(nil), // 10: advisors.v1.ListAdvisorChecksRequest - (*ListAdvisorChecksResponse)(nil), // 11: advisors.v1.ListAdvisorChecksResponse - (*ListAdvisorsRequest)(nil), // 12: advisors.v1.ListAdvisorsRequest - (*ListAdvisorsResponse)(nil), // 13: advisors.v1.ListAdvisorsResponse - (*ChangeAdvisorChecksRequest)(nil), // 14: advisors.v1.ChangeAdvisorChecksRequest - (*ChangeAdvisorChecksResponse)(nil), // 15: advisors.v1.ChangeAdvisorChecksResponse - (*ListFailedServicesRequest)(nil), // 16: advisors.v1.ListFailedServicesRequest - (*ListFailedServicesResponse)(nil), // 17: advisors.v1.ListFailedServicesResponse - (*GetFailedChecksRequest)(nil), // 18: advisors.v1.GetFailedChecksRequest - (*GetFailedChecksResponse)(nil), // 19: advisors.v1.GetFailedChecksResponse - nil, // 20: advisors.v1.AdvisorCheckResult.LabelsEntry - nil, // 21: advisors.v1.CheckResult.LabelsEntry - (v1.Severity)(0), // 22: management.v1.Severity -} +var ( + file_advisors_v1_advisors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_advisors_v1_advisors_proto_msgTypes = make([]protoimpl.MessageInfo, 20) + file_advisors_v1_advisors_proto_goTypes = []any{ + (AdvisorCheckInterval)(0), // 0: advisors.v1.AdvisorCheckInterval + (AdvisorCheckFamily)(0), // 1: advisors.v1.AdvisorCheckFamily + (*AdvisorCheckResult)(nil), // 2: advisors.v1.AdvisorCheckResult + (*CheckResultSummary)(nil), // 3: advisors.v1.CheckResultSummary + (*CheckResult)(nil), // 4: advisors.v1.CheckResult + (*AdvisorCheck)(nil), // 5: advisors.v1.AdvisorCheck + (*Advisor)(nil), // 6: advisors.v1.Advisor + (*ChangeAdvisorCheckParams)(nil), // 7: advisors.v1.ChangeAdvisorCheckParams + (*StartAdvisorChecksRequest)(nil), // 8: advisors.v1.StartAdvisorChecksRequest + (*StartAdvisorChecksResponse)(nil), // 9: advisors.v1.StartAdvisorChecksResponse + (*ListAdvisorChecksRequest)(nil), // 10: advisors.v1.ListAdvisorChecksRequest + (*ListAdvisorChecksResponse)(nil), // 11: advisors.v1.ListAdvisorChecksResponse + (*ListAdvisorsRequest)(nil), // 12: advisors.v1.ListAdvisorsRequest + (*ListAdvisorsResponse)(nil), // 13: advisors.v1.ListAdvisorsResponse + (*ChangeAdvisorChecksRequest)(nil), // 14: advisors.v1.ChangeAdvisorChecksRequest + (*ChangeAdvisorChecksResponse)(nil), // 15: advisors.v1.ChangeAdvisorChecksResponse + (*ListFailedServicesRequest)(nil), // 16: advisors.v1.ListFailedServicesRequest + (*ListFailedServicesResponse)(nil), // 17: advisors.v1.ListFailedServicesResponse + (*GetFailedChecksRequest)(nil), // 18: advisors.v1.GetFailedChecksRequest + (*GetFailedChecksResponse)(nil), // 19: advisors.v1.GetFailedChecksResponse + nil, // 20: advisors.v1.AdvisorCheckResult.LabelsEntry + nil, // 21: advisors.v1.CheckResult.LabelsEntry + (v1.Severity)(0), // 22: management.v1.Severity + } +) + var file_advisors_v1_advisors_proto_depIdxs = []int32{ 22, // 0: advisors.v1.AdvisorCheckResult.severity:type_name -> management.v1.Severity 20, // 1: advisors.v1.AdvisorCheckResult.labels:type_name -> advisors.v1.AdvisorCheckResult.LabelsEntry diff --git a/api/advisors/v1/advisors.pb.validate.go b/api/advisors/v1/advisors.pb.validate.go index 2c9a192edc4..ef8f8500241 100644 --- a/api/advisors/v1/advisors.pb.validate.go +++ b/api/advisors/v1/advisors.pb.validate.go @@ -1937,7 +1937,6 @@ func (m *GetFailedChecksRequest) validate(all bool) error { // no validation rules for ServiceId if m.PageSize != nil { - if m.GetPageSize() < 1 { err := GetFailedChecksRequestValidationError{ field: "PageSize", @@ -1948,11 +1947,9 @@ func (m *GetFailedChecksRequest) validate(all bool) error { } errors = append(errors, err) } - } if m.PageIndex != nil { - if m.GetPageIndex() < 0 { err := GetFailedChecksRequestValidationError{ field: "PageIndex", @@ -1963,7 +1960,6 @@ func (m *GetFailedChecksRequest) validate(all bool) error { } errors = append(errors, err) } - } if len(errors) > 0 { diff --git a/api/advisors/v1/advisors_grpc.pb.go b/api/advisors/v1/advisors_grpc.pb.go index b5a99aa9d13..968dd072fc8 100644 --- a/api/advisors/v1/advisors_grpc.pb.go +++ b/api/advisors/v1/advisors_grpc.pb.go @@ -8,6 +8,7 @@ package advisorsv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -146,18 +147,23 @@ type UnimplementedAdvisorServiceServer struct{} func (UnimplementedAdvisorServiceServer) ListFailedServices(context.Context, *ListFailedServicesRequest) (*ListFailedServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListFailedServices not implemented") } + func (UnimplementedAdvisorServiceServer) GetFailedChecks(context.Context, *GetFailedChecksRequest) (*GetFailedChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetFailedChecks not implemented") } + func (UnimplementedAdvisorServiceServer) StartAdvisorChecks(context.Context, *StartAdvisorChecksRequest) (*StartAdvisorChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartAdvisorChecks not implemented") } + func (UnimplementedAdvisorServiceServer) ListAdvisorChecks(context.Context, *ListAdvisorChecksRequest) (*ListAdvisorChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAdvisorChecks not implemented") } + func (UnimplementedAdvisorServiceServer) ListAdvisors(context.Context, *ListAdvisorsRequest) (*ListAdvisorsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAdvisors not implemented") } + func (UnimplementedAdvisorServiceServer) ChangeAdvisorChecks(context.Context, *ChangeAdvisorChecksRequest) (*ChangeAdvisorChecksResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeAdvisorChecks not implemented") } diff --git a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go index a6f9670f4d3..9f9ee299089 100644 --- a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_parameters.go @@ -60,7 +60,6 @@ ChangeAdvisorChecksParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type ChangeAdvisorChecksParams struct { - // Body. Body ChangeAdvisorChecksBody @@ -130,7 +129,6 @@ func (o *ChangeAdvisorChecksParams) SetBody(body ChangeAdvisorChecksBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeAdvisorChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go index bd687235181..5206e6f500b 100644 --- a/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/change_advisor_checks_responses.go @@ -105,7 +105,6 @@ func (o *ChangeAdvisorChecksOK) GetPayload() any { } func (o *ChangeAdvisorChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -177,7 +176,6 @@ func (o *ChangeAdvisorChecksDefault) GetPayload() *ChangeAdvisorChecksDefaultBod } func (o *ChangeAdvisorChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeAdvisorChecksDefaultBody) // response payload @@ -193,7 +191,6 @@ ChangeAdvisorChecksBody change advisor checks body swagger:model ChangeAdvisorChecksBody */ type ChangeAdvisorChecksBody struct { - // params Params []*ChangeAdvisorChecksParamsBodyParamsItems0 `json:"params"` } @@ -257,9 +254,7 @@ func (o *ChangeAdvisorChecksBody) ContextValidate(ctx context.Context, formats s } func (o *ChangeAdvisorChecksBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Params); i++ { - if o.Params[i] != nil { if swag.IsZero(o.Params[i]) { // not required @@ -279,7 +274,6 @@ func (o *ChangeAdvisorChecksBody) contextValidateParams(ctx context.Context, for return err } } - } return nil @@ -308,7 +302,6 @@ ChangeAdvisorChecksDefaultBody change advisor checks default body swagger:model ChangeAdvisorChecksDefaultBody */ type ChangeAdvisorChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -378,9 +371,7 @@ func (o *ChangeAdvisorChecksDefaultBody) ContextValidate(ctx context.Context, fo } func (o *ChangeAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -400,7 +391,6 @@ func (o *ChangeAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -429,7 +419,6 @@ ChangeAdvisorChecksDefaultBodyDetailsItems0 change advisor checks default body d swagger:model ChangeAdvisorChecksDefaultBodyDetailsItems0 */ type ChangeAdvisorChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -441,7 +430,6 @@ type ChangeAdvisorChecksDefaultBodyDetailsItems0 struct { func (o *ChangeAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -479,7 +467,6 @@ func (o *ChangeAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeAdvisorChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -543,7 +530,6 @@ ChangeAdvisorChecksParamsBodyParamsItems0 ChangeAdvisorCheckParams specifies a s swagger:model ChangeAdvisorChecksParamsBodyParamsItems0 */ type ChangeAdvisorChecksParamsBodyParamsItems0 struct { - // The name of the check to change. Name string `json:"name,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go index 87eedd930ea..0248b1355a4 100644 --- a/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/get_failed_checks_parameters.go @@ -61,7 +61,6 @@ GetFailedChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetFailedChecksParams struct { - /* PageIndex. Index of the requested page, starts from 0. @@ -172,7 +171,6 @@ func (o *GetFailedChecksParams) SetServiceID(serviceID *string) { // 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 } @@ -188,7 +186,6 @@ func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strf } qPageIndex := swag.FormatInt32(qrPageIndex) if qPageIndex != "" { - if err := r.SetQueryParam("page_index", qPageIndex); err != nil { return err } @@ -205,7 +202,6 @@ func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strf } qPageSize := swag.FormatInt32(qrPageSize) if qPageSize != "" { - if err := r.SetQueryParam("page_size", qPageSize); err != nil { return err } @@ -222,7 +218,6 @@ func (o *GetFailedChecksParams) WriteToRequest(r runtime.ClientRequest, reg strf } qServiceID := qrServiceID if qServiceID != "" { - if err := r.SetQueryParam("service_id", qServiceID); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go b/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go index 80ff7506eb0..a74c7943f5a 100644 --- a/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/get_failed_checks_responses.go @@ -105,7 +105,6 @@ func (o *GetFailedChecksOK) GetPayload() *GetFailedChecksOKBody { } func (o *GetFailedChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetFailedChecksOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetFailedChecksDefault) GetPayload() *GetFailedChecksDefaultBody { } func (o *GetFailedChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetFailedChecksDefaultBody) // response payload @@ -195,7 +193,6 @@ GetFailedChecksDefaultBody get failed checks default body swagger:model GetFailedChecksDefaultBody */ type GetFailedChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *GetFailedChecksDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -316,7 +310,6 @@ GetFailedChecksDefaultBodyDetailsItems0 get failed checks default body details i swagger:model GetFailedChecksDefaultBodyDetailsItems0 */ type GetFailedChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type GetFailedChecksDefaultBodyDetailsItems0 struct { func (o *GetFailedChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *GetFailedChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o GetFailedChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ GetFailedChecksOKBody get failed checks OK body swagger:model GetFailedChecksOKBody */ type GetFailedChecksOKBody struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -500,9 +490,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 swag.IsZero(o.Results[i]) { // not required @@ -522,7 +510,6 @@ func (o *GetFailedChecksOKBody) contextValidateResults(ctx context.Context, form return err } } - } return nil @@ -551,7 +538,6 @@ GetFailedChecksOKBodyResultsItems0 CheckResult represents the check results for swagger:model GetFailedChecksOKBodyResultsItems0 */ type GetFailedChecksOKBodyResultsItems0 struct { - // summary Summary string `json:"summary,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go index 4718c378e1a..23e2a16e65b 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_parameters.go @@ -115,7 +115,6 @@ func (o *ListAdvisorChecksParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListAdvisorChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go index 9b715e5fb64..1696a05ac3d 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisor_checks_responses.go @@ -105,7 +105,6 @@ func (o *ListAdvisorChecksOK) GetPayload() *ListAdvisorChecksOKBody { } func (o *ListAdvisorChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAdvisorChecksOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListAdvisorChecksDefault) GetPayload() *ListAdvisorChecksDefaultBody { } func (o *ListAdvisorChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAdvisorChecksDefaultBody) // response payload @@ -195,7 +193,6 @@ ListAdvisorChecksDefaultBody list advisor checks default body swagger:model ListAdvisorChecksDefaultBody */ type ListAdvisorChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListAdvisorChecksDefaultBody) ContextValidate(ctx context.Context, form } func (o *ListAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -316,7 +310,6 @@ ListAdvisorChecksDefaultBodyDetailsItems0 list advisor checks default body detai swagger:model ListAdvisorChecksDefaultBodyDetailsItems0 */ type ListAdvisorChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListAdvisorChecksDefaultBodyDetailsItems0 struct { func (o *ListAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) e // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAdvisorChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListAdvisorChecksOKBody list advisor checks OK body swagger:model ListAdvisorChecksOKBody */ type ListAdvisorChecksOKBody struct { - // checks Checks []*ListAdvisorChecksOKBodyChecksItems0 `json:"checks"` } @@ -494,9 +484,7 @@ func (o *ListAdvisorChecksOKBody) ContextValidate(ctx context.Context, formats s } func (o *ListAdvisorChecksOKBody) contextValidateChecks(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Checks); i++ { - if o.Checks[i] != nil { if swag.IsZero(o.Checks[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListAdvisorChecksOKBody) contextValidateChecks(ctx context.Context, for return err } } - } return nil @@ -545,7 +532,6 @@ ListAdvisorChecksOKBodyChecksItems0 AdvisorCheck contains check name and status. swagger:model ListAdvisorChecksOKBodyChecksItems0 */ type ListAdvisorChecksOKBodyChecksItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go b/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go index 375bb68b896..214b86b0951 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisors_parameters.go @@ -115,7 +115,6 @@ func (o *ListAdvisorsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListAdvisorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go b/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go index 6f3228b661a..4631a560e62 100644 --- a/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go +++ b/api/advisors/v1/json/client/advisor_service/list_advisors_responses.go @@ -105,7 +105,6 @@ func (o *ListAdvisorsOK) GetPayload() *ListAdvisorsOKBody { } func (o *ListAdvisorsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAdvisorsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListAdvisorsDefault) GetPayload() *ListAdvisorsDefaultBody { } func (o *ListAdvisorsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAdvisorsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListAdvisorsDefaultBody list advisors default body swagger:model ListAdvisorsDefaultBody */ type ListAdvisorsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListAdvisorsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListAdvisorsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListAdvisorsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -316,7 +310,6 @@ ListAdvisorsDefaultBodyDetailsItems0 list advisors default body details items0 swagger:model ListAdvisorsDefaultBodyDetailsItems0 */ type ListAdvisorsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListAdvisorsDefaultBodyDetailsItems0 struct { func (o *ListAdvisorsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListAdvisorsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAdvisorsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListAdvisorsOKBody list advisors OK body swagger:model ListAdvisorsOKBody */ type ListAdvisorsOKBody struct { - // advisors Advisors []*ListAdvisorsOKBodyAdvisorsItems0 `json:"advisors"` } @@ -494,9 +484,7 @@ func (o *ListAdvisorsOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListAdvisorsOKBody) contextValidateAdvisors(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Advisors); i++ { - if o.Advisors[i] != nil { if swag.IsZero(o.Advisors[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListAdvisorsOKBody) contextValidateAdvisors(ctx context.Context, format return err } } - } return nil @@ -545,7 +532,6 @@ ListAdvisorsOKBodyAdvisorsItems0 list advisors OK body advisors items0 swagger:model ListAdvisorsOKBodyAdvisorsItems0 */ type ListAdvisorsOKBodyAdvisorsItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` @@ -624,9 +610,7 @@ func (o *ListAdvisorsOKBodyAdvisorsItems0) ContextValidate(ctx context.Context, } func (o *ListAdvisorsOKBodyAdvisorsItems0) contextValidateChecks(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Checks); i++ { - if o.Checks[i] != nil { if swag.IsZero(o.Checks[i]) { // not required @@ -646,7 +630,6 @@ func (o *ListAdvisorsOKBodyAdvisorsItems0) contextValidateChecks(ctx context.Con return err } } - } return nil @@ -675,7 +658,6 @@ ListAdvisorsOKBodyAdvisorsItems0ChecksItems0 AdvisorCheck contains check name an swagger:model ListAdvisorsOKBodyAdvisorsItems0ChecksItems0 */ type ListAdvisorsOKBodyAdvisorsItems0ChecksItems0 struct { - // Machine-readable name (ID) that is used in expression. Name string `json:"name,omitempty"` diff --git a/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go b/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go index 579c66ebdae..7b386ac01a3 100644 --- a/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/list_failed_services_parameters.go @@ -115,7 +115,6 @@ func (o *ListFailedServicesParams) SetHTTPClient(client *http.Client) { // 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/advisors/v1/json/client/advisor_service/list_failed_services_responses.go b/api/advisors/v1/json/client/advisor_service/list_failed_services_responses.go index 8cc3888c528..f8a8531e45e 100644 --- a/api/advisors/v1/json/client/advisor_service/list_failed_services_responses.go +++ b/api/advisors/v1/json/client/advisor_service/list_failed_services_responses.go @@ -104,7 +104,6 @@ func (o *ListFailedServicesOK) GetPayload() *ListFailedServicesOKBody { } func (o *ListFailedServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListFailedServicesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListFailedServicesDefault) GetPayload() *ListFailedServicesDefaultBody } func (o *ListFailedServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListFailedServicesDefaultBody) // response payload @@ -194,7 +192,6 @@ ListFailedServicesDefaultBody list failed services default body swagger:model ListFailedServicesDefaultBody */ type ListFailedServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListFailedServicesDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -315,7 +309,6 @@ ListFailedServicesDefaultBodyDetailsItems0 list failed services default body det swagger:model ListFailedServicesDefaultBodyDetailsItems0 */ type ListFailedServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListFailedServicesDefaultBodyDetailsItems0 struct { func (o *ListFailedServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListFailedServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o ListFailedServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListFailedServicesOKBody list failed services OK body swagger:model ListFailedServicesOKBody */ type ListFailedServicesOKBody struct { - // result Result []*ListFailedServicesOKBodyResultItems0 `json:"result"` } @@ -493,9 +483,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 swag.IsZero(o.Result[i]) { // not required @@ -515,7 +503,6 @@ func (o *ListFailedServicesOKBody) contextValidateResult(ctx context.Context, fo return err } } - } return nil @@ -544,7 +531,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/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go index 9a9d66c843a..879f8418f64 100644 --- a/api/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go +++ b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_parameters.go @@ -60,7 +60,6 @@ StartAdvisorChecksParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartAdvisorChecksParams struct { - // Body. Body StartAdvisorChecksBody @@ -130,7 +129,6 @@ func (o *StartAdvisorChecksParams) SetBody(body StartAdvisorChecksBody) { // WriteToRequest writes these params to a swagger request func (o *StartAdvisorChecksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go index c1c2b9eea3f..4fd31464244 100644 --- a/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go +++ b/api/advisors/v1/json/client/advisor_service/start_advisor_checks_responses.go @@ -104,7 +104,6 @@ func (o *StartAdvisorChecksOK) GetPayload() any { } func (o *StartAdvisorChecksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *StartAdvisorChecksDefault) GetPayload() *StartAdvisorChecksDefaultBody } func (o *StartAdvisorChecksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartAdvisorChecksDefaultBody) // response payload @@ -192,7 +190,6 @@ StartAdvisorChecksBody start advisor checks body swagger:model StartAdvisorChecksBody */ type StartAdvisorChecksBody struct { - // Names of the checks that should be started. Names []string `json:"names"` } @@ -230,7 +227,6 @@ StartAdvisorChecksDefaultBody start advisor checks default body swagger:model StartAdvisorChecksDefaultBody */ type StartAdvisorChecksDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,7 @@ func (o *StartAdvisorChecksDefaultBody) ContextValidate(ctx context.Context, for } func (o *StartAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *StartAdvisorChecksDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -351,7 +344,6 @@ StartAdvisorChecksDefaultBodyDetailsItems0 start advisor checks default body det swagger:model StartAdvisorChecksDefaultBodyDetailsItems0 */ type StartAdvisorChecksDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type StartAdvisorChecksDefaultBodyDetailsItems0 struct { func (o *StartAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *StartAdvisorChecksDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o StartAdvisorChecksDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/agent/pb/agent.pb.go b/api/agent/pb/agent.pb.go index 3e266018313..cfe97cee491 100644 --- a/api/agent/pb/agent.pb.go +++ b/api/agent/pb/agent.pb.go @@ -7,11 +7,13 @@ package pb import ( - v1 "github.com/percona/pmm/api/agent/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + v1 "github.com/percona/pmm/api/agent/v1" ) const ( @@ -35,6 +37,7 @@ var file_agent_pb_agent_proto_goTypes = []any{ (*v1.AgentMessage)(nil), // 0: agent.v1.AgentMessage (*v1.ServerMessage)(nil), // 1: agent.v1.ServerMessage } + var file_agent_pb_agent_proto_depIdxs = []int32{ 0, // 0: agent.Agent.Connect:input_type -> agent.v1.AgentMessage 1, // 1: agent.Agent.Connect:output_type -> agent.v1.ServerMessage diff --git a/api/agent/pb/agent_grpc.pb.go b/api/agent/pb/agent_grpc.pb.go index 591479ea96f..6755a51892e 100644 --- a/api/agent/pb/agent_grpc.pb.go +++ b/api/agent/pb/agent_grpc.pb.go @@ -8,10 +8,12 @@ package pb import ( context "context" - v1 "github.com/percona/pmm/api/agent/v1" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + + v1 "github.com/percona/pmm/api/agent/v1" ) // This is a compile-time assertion to ensure that this generated file diff --git a/api/agent/v1/agent.pb.go b/api/agent/v1/agent.pb.go index 4a4fb10c071..1813b70c0ca 100644 --- a/api/agent/v1/agent.pb.go +++ b/api/agent/v1/agent.pb.go @@ -7,17 +7,19 @@ package agentv1 import ( - v11 "github.com/percona/pmm/api/backup/v1" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" + 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" - unsafe "unsafe" + + v11 "github.com/percona/pmm/api/backup/v1" + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -7108,115 +7110,118 @@ func file_agent_v1_agent_proto_rawDescGZIP() []byte { return file_agent_v1_agent_proto_rawDescData } -var file_agent_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_agent_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 92) -var file_agent_v1_agent_proto_goTypes = []any{ - (MysqlExplainOutputFormat)(0), // 0: agent.v1.MysqlExplainOutputFormat - (StartActionRequest_RestartSystemServiceParams_SystemService)(0), // 1: agent.v1.StartActionRequest.RestartSystemServiceParams.SystemService - (*TextFiles)(nil), // 2: agent.v1.TextFiles - (*Ping)(nil), // 3: agent.v1.Ping - (*Pong)(nil), // 4: agent.v1.Pong - (*QANCollectRequest)(nil), // 5: agent.v1.QANCollectRequest - (*QANCollectResponse)(nil), // 6: agent.v1.QANCollectResponse - (*StateChangedRequest)(nil), // 7: agent.v1.StateChangedRequest - (*StateChangedResponse)(nil), // 8: agent.v1.StateChangedResponse - (*SetStateRequest)(nil), // 9: agent.v1.SetStateRequest - (*SetStateResponse)(nil), // 10: agent.v1.SetStateResponse - (*QueryActionValue)(nil), // 11: agent.v1.QueryActionValue - (*QueryActionSlice)(nil), // 12: agent.v1.QueryActionSlice - (*QueryActionMap)(nil), // 13: agent.v1.QueryActionMap - (*QueryActionBinary)(nil), // 14: agent.v1.QueryActionBinary - (*QueryActionResult)(nil), // 15: agent.v1.QueryActionResult - (*StartActionRequest)(nil), // 16: agent.v1.StartActionRequest - (*StartActionResponse)(nil), // 17: agent.v1.StartActionResponse - (*StopActionRequest)(nil), // 18: agent.v1.StopActionRequest - (*StopActionResponse)(nil), // 19: agent.v1.StopActionResponse - (*ActionResultRequest)(nil), // 20: agent.v1.ActionResultRequest - (*ActionResultResponse)(nil), // 21: agent.v1.ActionResultResponse - (*PBMSwitchPITRRequest)(nil), // 22: agent.v1.PBMSwitchPITRRequest - (*PBMSwitchPITRResponse)(nil), // 23: agent.v1.PBMSwitchPITRResponse - (*AgentLogsRequest)(nil), // 24: agent.v1.AgentLogsRequest - (*AgentLogsResponse)(nil), // 25: agent.v1.AgentLogsResponse - (*CheckConnectionRequest)(nil), // 26: agent.v1.CheckConnectionRequest - (*CheckConnectionResponse)(nil), // 27: agent.v1.CheckConnectionResponse - (*ServiceInfoRequest)(nil), // 28: agent.v1.ServiceInfoRequest - (*ServiceInfoResponse)(nil), // 29: agent.v1.ServiceInfoResponse - (*JobStatusRequest)(nil), // 30: agent.v1.JobStatusRequest - (*JobStatusResponse)(nil), // 31: agent.v1.JobStatusResponse - (*S3LocationConfig)(nil), // 32: agent.v1.S3LocationConfig - (*FilesystemLocationConfig)(nil), // 33: agent.v1.FilesystemLocationConfig - (*StartJobRequest)(nil), // 34: agent.v1.StartJobRequest - (*StartJobResponse)(nil), // 35: agent.v1.StartJobResponse - (*StopJobRequest)(nil), // 36: agent.v1.StopJobRequest - (*StopJobResponse)(nil), // 37: agent.v1.StopJobResponse - (*JobResult)(nil), // 38: agent.v1.JobResult - (*JobProgress)(nil), // 39: agent.v1.JobProgress - (*GetVersionsRequest)(nil), // 40: agent.v1.GetVersionsRequest - (*GetVersionsResponse)(nil), // 41: agent.v1.GetVersionsResponse - (*AgentMessage)(nil), // 42: agent.v1.AgentMessage - (*ServerMessage)(nil), // 43: agent.v1.ServerMessage - nil, // 44: agent.v1.TextFiles.FilesEntry - (*SetStateRequest_AgentProcess)(nil), // 45: agent.v1.SetStateRequest.AgentProcess - (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.v1.SetStateRequest.BuiltinAgent - nil, // 47: agent.v1.SetStateRequest.AgentProcessesEntry - nil, // 48: agent.v1.SetStateRequest.BuiltinAgentsEntry - nil, // 49: agent.v1.SetStateRequest.AgentProcess.TextFilesEntry - nil, // 50: agent.v1.SetStateRequest.BuiltinAgent.EnvEntry - nil, // 51: agent.v1.QueryActionMap.MapEntry - (*StartActionRequest_MySQLExplainParams)(nil), // 52: agent.v1.StartActionRequest.MySQLExplainParams - (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 53: agent.v1.StartActionRequest.MySQLShowCreateTableParams - (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 54: agent.v1.StartActionRequest.MySQLShowTableStatusParams - (*StartActionRequest_MySQLShowIndexParams)(nil), // 55: agent.v1.StartActionRequest.MySQLShowIndexParams - (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 56: agent.v1.StartActionRequest.PostgreSQLShowCreateTableParams - (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 57: agent.v1.StartActionRequest.PostgreSQLShowIndexParams - (*StartActionRequest_MongoDBExplainParams)(nil), // 58: agent.v1.StartActionRequest.MongoDBExplainParams - (*StartActionRequest_PTSummaryParams)(nil), // 59: agent.v1.StartActionRequest.PTSummaryParams - (*StartActionRequest_PTPgSummaryParams)(nil), // 60: agent.v1.StartActionRequest.PTPgSummaryParams - (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 61: agent.v1.StartActionRequest.PTMongoDBSummaryParams - (*StartActionRequest_PTMySQLSummaryParams)(nil), // 62: agent.v1.StartActionRequest.PTMySQLSummaryParams - (*StartActionRequest_MySQLQueryShowParams)(nil), // 63: agent.v1.StartActionRequest.MySQLQueryShowParams - (*StartActionRequest_MySQLQuerySelectParams)(nil), // 64: agent.v1.StartActionRequest.MySQLQuerySelectParams - (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 65: agent.v1.StartActionRequest.PostgreSQLQueryShowParams - (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 66: agent.v1.StartActionRequest.PostgreSQLQuerySelectParams - (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 67: agent.v1.StartActionRequest.MongoDBQueryGetParameterParams - (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 68: agent.v1.StartActionRequest.MongoDBQueryBuildInfoParams - (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 69: agent.v1.StartActionRequest.MongoDBQueryGetCmdLineOptsParams - (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 70: agent.v1.StartActionRequest.MongoDBQueryReplSetGetStatusParams - (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 71: agent.v1.StartActionRequest.MongoDBQueryGetDiagnosticDataParams - (*StartActionRequest_RestartSystemServiceParams)(nil), // 72: agent.v1.StartActionRequest.RestartSystemServiceParams - (*CheckConnectionResponse_Stats)(nil), // 73: agent.v1.CheckConnectionResponse.Stats - (*StartJobRequest_MySQLBackup)(nil), // 74: agent.v1.StartJobRequest.MySQLBackup - (*StartJobRequest_MySQLRestoreBackup)(nil), // 75: agent.v1.StartJobRequest.MySQLRestoreBackup - (*StartJobRequest_MongoDBBackup)(nil), // 76: agent.v1.StartJobRequest.MongoDBBackup - (*StartJobRequest_MongoDBRestoreBackup)(nil), // 77: agent.v1.StartJobRequest.MongoDBRestoreBackup - (*JobResult_Error)(nil), // 78: agent.v1.JobResult.Error - (*JobResult_MongoDBBackup)(nil), // 79: agent.v1.JobResult.MongoDBBackup - (*JobResult_MySQLBackup)(nil), // 80: agent.v1.JobResult.MySQLBackup - (*JobResult_MySQLRestoreBackup)(nil), // 81: agent.v1.JobResult.MySQLRestoreBackup - (*JobResult_MongoDBRestoreBackup)(nil), // 82: agent.v1.JobResult.MongoDBRestoreBackup - (*JobProgress_MySQLBackup)(nil), // 83: agent.v1.JobProgress.MySQLBackup - (*JobProgress_MySQLRestoreBackup)(nil), // 84: agent.v1.JobProgress.MySQLRestoreBackup - (*JobProgress_Logs)(nil), // 85: agent.v1.JobProgress.Logs - (*GetVersionsRequest_MySQLd)(nil), // 86: agent.v1.GetVersionsRequest.MySQLd - (*GetVersionsRequest_Xtrabackup)(nil), // 87: agent.v1.GetVersionsRequest.Xtrabackup - (*GetVersionsRequest_Xbcloud)(nil), // 88: agent.v1.GetVersionsRequest.Xbcloud - (*GetVersionsRequest_Qpress)(nil), // 89: agent.v1.GetVersionsRequest.Qpress - (*GetVersionsRequest_MongoDB)(nil), // 90: agent.v1.GetVersionsRequest.MongoDB - (*GetVersionsRequest_PBM)(nil), // 91: agent.v1.GetVersionsRequest.PBM - (*GetVersionsRequest_Software)(nil), // 92: agent.v1.GetVersionsRequest.Software - (*GetVersionsResponse_Version)(nil), // 93: agent.v1.GetVersionsResponse.Version - (*timestamppb.Timestamp)(nil), // 94: google.protobuf.Timestamp - (*MetricsBucket)(nil), // 95: agent.v1.MetricsBucket - (v1.AgentStatus)(0), // 96: inventory.v1.AgentStatus - (*durationpb.Duration)(nil), // 97: google.protobuf.Duration - (v1.ServiceType)(0), // 98: inventory.v1.ServiceType - (*status.Status)(nil), // 99: google.rpc.Status - (v1.AgentType)(0), // 100: inventory.v1.AgentType - (*v1.RTAOptions)(nil), // 101: inventory.v1.RTAOptions - (v11.DataModel)(0), // 102: backup.v1.DataModel - (*v11.PbmMetadata)(nil), // 103: backup.v1.PbmMetadata - (*v11.Metadata)(nil), // 104: backup.v1.Metadata -} +var ( + file_agent_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_agent_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 92) + file_agent_v1_agent_proto_goTypes = []any{ + (MysqlExplainOutputFormat)(0), // 0: agent.v1.MysqlExplainOutputFormat + (StartActionRequest_RestartSystemServiceParams_SystemService)(0), // 1: agent.v1.StartActionRequest.RestartSystemServiceParams.SystemService + (*TextFiles)(nil), // 2: agent.v1.TextFiles + (*Ping)(nil), // 3: agent.v1.Ping + (*Pong)(nil), // 4: agent.v1.Pong + (*QANCollectRequest)(nil), // 5: agent.v1.QANCollectRequest + (*QANCollectResponse)(nil), // 6: agent.v1.QANCollectResponse + (*StateChangedRequest)(nil), // 7: agent.v1.StateChangedRequest + (*StateChangedResponse)(nil), // 8: agent.v1.StateChangedResponse + (*SetStateRequest)(nil), // 9: agent.v1.SetStateRequest + (*SetStateResponse)(nil), // 10: agent.v1.SetStateResponse + (*QueryActionValue)(nil), // 11: agent.v1.QueryActionValue + (*QueryActionSlice)(nil), // 12: agent.v1.QueryActionSlice + (*QueryActionMap)(nil), // 13: agent.v1.QueryActionMap + (*QueryActionBinary)(nil), // 14: agent.v1.QueryActionBinary + (*QueryActionResult)(nil), // 15: agent.v1.QueryActionResult + (*StartActionRequest)(nil), // 16: agent.v1.StartActionRequest + (*StartActionResponse)(nil), // 17: agent.v1.StartActionResponse + (*StopActionRequest)(nil), // 18: agent.v1.StopActionRequest + (*StopActionResponse)(nil), // 19: agent.v1.StopActionResponse + (*ActionResultRequest)(nil), // 20: agent.v1.ActionResultRequest + (*ActionResultResponse)(nil), // 21: agent.v1.ActionResultResponse + (*PBMSwitchPITRRequest)(nil), // 22: agent.v1.PBMSwitchPITRRequest + (*PBMSwitchPITRResponse)(nil), // 23: agent.v1.PBMSwitchPITRResponse + (*AgentLogsRequest)(nil), // 24: agent.v1.AgentLogsRequest + (*AgentLogsResponse)(nil), // 25: agent.v1.AgentLogsResponse + (*CheckConnectionRequest)(nil), // 26: agent.v1.CheckConnectionRequest + (*CheckConnectionResponse)(nil), // 27: agent.v1.CheckConnectionResponse + (*ServiceInfoRequest)(nil), // 28: agent.v1.ServiceInfoRequest + (*ServiceInfoResponse)(nil), // 29: agent.v1.ServiceInfoResponse + (*JobStatusRequest)(nil), // 30: agent.v1.JobStatusRequest + (*JobStatusResponse)(nil), // 31: agent.v1.JobStatusResponse + (*S3LocationConfig)(nil), // 32: agent.v1.S3LocationConfig + (*FilesystemLocationConfig)(nil), // 33: agent.v1.FilesystemLocationConfig + (*StartJobRequest)(nil), // 34: agent.v1.StartJobRequest + (*StartJobResponse)(nil), // 35: agent.v1.StartJobResponse + (*StopJobRequest)(nil), // 36: agent.v1.StopJobRequest + (*StopJobResponse)(nil), // 37: agent.v1.StopJobResponse + (*JobResult)(nil), // 38: agent.v1.JobResult + (*JobProgress)(nil), // 39: agent.v1.JobProgress + (*GetVersionsRequest)(nil), // 40: agent.v1.GetVersionsRequest + (*GetVersionsResponse)(nil), // 41: agent.v1.GetVersionsResponse + (*AgentMessage)(nil), // 42: agent.v1.AgentMessage + (*ServerMessage)(nil), // 43: agent.v1.ServerMessage + nil, // 44: agent.v1.TextFiles.FilesEntry + (*SetStateRequest_AgentProcess)(nil), // 45: agent.v1.SetStateRequest.AgentProcess + (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.v1.SetStateRequest.BuiltinAgent + nil, // 47: agent.v1.SetStateRequest.AgentProcessesEntry + nil, // 48: agent.v1.SetStateRequest.BuiltinAgentsEntry + nil, // 49: agent.v1.SetStateRequest.AgentProcess.TextFilesEntry + nil, // 50: agent.v1.SetStateRequest.BuiltinAgent.EnvEntry + nil, // 51: agent.v1.QueryActionMap.MapEntry + (*StartActionRequest_MySQLExplainParams)(nil), // 52: agent.v1.StartActionRequest.MySQLExplainParams + (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 53: agent.v1.StartActionRequest.MySQLShowCreateTableParams + (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 54: agent.v1.StartActionRequest.MySQLShowTableStatusParams + (*StartActionRequest_MySQLShowIndexParams)(nil), // 55: agent.v1.StartActionRequest.MySQLShowIndexParams + (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 56: agent.v1.StartActionRequest.PostgreSQLShowCreateTableParams + (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 57: agent.v1.StartActionRequest.PostgreSQLShowIndexParams + (*StartActionRequest_MongoDBExplainParams)(nil), // 58: agent.v1.StartActionRequest.MongoDBExplainParams + (*StartActionRequest_PTSummaryParams)(nil), // 59: agent.v1.StartActionRequest.PTSummaryParams + (*StartActionRequest_PTPgSummaryParams)(nil), // 60: agent.v1.StartActionRequest.PTPgSummaryParams + (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 61: agent.v1.StartActionRequest.PTMongoDBSummaryParams + (*StartActionRequest_PTMySQLSummaryParams)(nil), // 62: agent.v1.StartActionRequest.PTMySQLSummaryParams + (*StartActionRequest_MySQLQueryShowParams)(nil), // 63: agent.v1.StartActionRequest.MySQLQueryShowParams + (*StartActionRequest_MySQLQuerySelectParams)(nil), // 64: agent.v1.StartActionRequest.MySQLQuerySelectParams + (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 65: agent.v1.StartActionRequest.PostgreSQLQueryShowParams + (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 66: agent.v1.StartActionRequest.PostgreSQLQuerySelectParams + (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 67: agent.v1.StartActionRequest.MongoDBQueryGetParameterParams + (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 68: agent.v1.StartActionRequest.MongoDBQueryBuildInfoParams + (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 69: agent.v1.StartActionRequest.MongoDBQueryGetCmdLineOptsParams + (*StartActionRequest_MongoDBQueryReplSetGetStatusParams)(nil), // 70: agent.v1.StartActionRequest.MongoDBQueryReplSetGetStatusParams + (*StartActionRequest_MongoDBQueryGetDiagnosticDataParams)(nil), // 71: agent.v1.StartActionRequest.MongoDBQueryGetDiagnosticDataParams + (*StartActionRequest_RestartSystemServiceParams)(nil), // 72: agent.v1.StartActionRequest.RestartSystemServiceParams + (*CheckConnectionResponse_Stats)(nil), // 73: agent.v1.CheckConnectionResponse.Stats + (*StartJobRequest_MySQLBackup)(nil), // 74: agent.v1.StartJobRequest.MySQLBackup + (*StartJobRequest_MySQLRestoreBackup)(nil), // 75: agent.v1.StartJobRequest.MySQLRestoreBackup + (*StartJobRequest_MongoDBBackup)(nil), // 76: agent.v1.StartJobRequest.MongoDBBackup + (*StartJobRequest_MongoDBRestoreBackup)(nil), // 77: agent.v1.StartJobRequest.MongoDBRestoreBackup + (*JobResult_Error)(nil), // 78: agent.v1.JobResult.Error + (*JobResult_MongoDBBackup)(nil), // 79: agent.v1.JobResult.MongoDBBackup + (*JobResult_MySQLBackup)(nil), // 80: agent.v1.JobResult.MySQLBackup + (*JobResult_MySQLRestoreBackup)(nil), // 81: agent.v1.JobResult.MySQLRestoreBackup + (*JobResult_MongoDBRestoreBackup)(nil), // 82: agent.v1.JobResult.MongoDBRestoreBackup + (*JobProgress_MySQLBackup)(nil), // 83: agent.v1.JobProgress.MySQLBackup + (*JobProgress_MySQLRestoreBackup)(nil), // 84: agent.v1.JobProgress.MySQLRestoreBackup + (*JobProgress_Logs)(nil), // 85: agent.v1.JobProgress.Logs + (*GetVersionsRequest_MySQLd)(nil), // 86: agent.v1.GetVersionsRequest.MySQLd + (*GetVersionsRequest_Xtrabackup)(nil), // 87: agent.v1.GetVersionsRequest.Xtrabackup + (*GetVersionsRequest_Xbcloud)(nil), // 88: agent.v1.GetVersionsRequest.Xbcloud + (*GetVersionsRequest_Qpress)(nil), // 89: agent.v1.GetVersionsRequest.Qpress + (*GetVersionsRequest_MongoDB)(nil), // 90: agent.v1.GetVersionsRequest.MongoDB + (*GetVersionsRequest_PBM)(nil), // 91: agent.v1.GetVersionsRequest.PBM + (*GetVersionsRequest_Software)(nil), // 92: agent.v1.GetVersionsRequest.Software + (*GetVersionsResponse_Version)(nil), // 93: agent.v1.GetVersionsResponse.Version + (*timestamppb.Timestamp)(nil), // 94: google.protobuf.Timestamp + (*MetricsBucket)(nil), // 95: agent.v1.MetricsBucket + (v1.AgentStatus)(0), // 96: inventory.v1.AgentStatus + (*durationpb.Duration)(nil), // 97: google.protobuf.Duration + (v1.ServiceType)(0), // 98: inventory.v1.ServiceType + (*status.Status)(nil), // 99: google.rpc.Status + (v1.AgentType)(0), // 100: inventory.v1.AgentType + (*v1.RTAOptions)(nil), // 101: inventory.v1.RTAOptions + (v11.DataModel)(0), // 102: backup.v1.DataModel + (*v11.PbmMetadata)(nil), // 103: backup.v1.PbmMetadata + (*v11.Metadata)(nil), // 104: backup.v1.Metadata + } +) + var file_agent_v1_agent_proto_depIdxs = []int32{ 44, // 0: agent.v1.TextFiles.files:type_name -> agent.v1.TextFiles.FilesEntry 94, // 1: agent.v1.Pong.current_time:type_name -> google.protobuf.Timestamp diff --git a/api/agent/v1/agent.pb.validate.go b/api/agent/v1/agent.pb.validate.go index cfc2a1682b7..3cac3cc4faf 100644 --- a/api/agent/v1/agent.pb.validate.go +++ b/api/agent/v1/agent.pb.validate.go @@ -19,7 +19,6 @@ import ( "google.golang.org/protobuf/types/known/anypb" backupv1 "github.com/percona/pmm/api/backup/v1" - inventoryv1 "github.com/percona/pmm/api/inventory/v1" ) diff --git a/api/agent/v1/agent_grpc.pb.go b/api/agent/v1/agent_grpc.pb.go index d307ddcad19..93727efa84c 100644 --- a/api/agent/v1/agent_grpc.pb.go +++ b/api/agent/v1/agent_grpc.pb.go @@ -8,6 +8,7 @@ package agentv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/agent/v1/collector.pb.go b/api/agent/v1/collector.pb.go index f1c9b64e7a9..4eaa7eb54a1 100644 --- a/api/agent/v1/collector.pb.go +++ b/api/agent/v1/collector.pb.go @@ -7,12 +7,14 @@ package agentv1 import ( - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -2808,20 +2810,23 @@ func file_agent_v1_collector_proto_rawDescGZIP() []byte { return file_agent_v1_collector_proto_rawDescData } -var file_agent_v1_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_agent_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_agent_v1_collector_proto_goTypes = []any{ - (ExampleType)(0), // 0: agent.v1.ExampleType - (*MetricsBucket)(nil), // 1: agent.v1.MetricsBucket - (*HistogramItem)(nil), // 2: agent.v1.HistogramItem - (*MetricsBucket_Common)(nil), // 3: agent.v1.MetricsBucket.Common - (*MetricsBucket_MySQL)(nil), // 4: agent.v1.MetricsBucket.MySQL - (*MetricsBucket_MongoDB)(nil), // 5: agent.v1.MetricsBucket.MongoDB - (*MetricsBucket_PostgreSQL)(nil), // 6: agent.v1.MetricsBucket.PostgreSQL - nil, // 7: agent.v1.MetricsBucket.Common.CommentsEntry - nil, // 8: agent.v1.MetricsBucket.Common.ErrorsEntry - (v1.AgentType)(0), // 9: inventory.v1.AgentType -} +var ( + file_agent_v1_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_agent_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 8) + file_agent_v1_collector_proto_goTypes = []any{ + (ExampleType)(0), // 0: agent.v1.ExampleType + (*MetricsBucket)(nil), // 1: agent.v1.MetricsBucket + (*HistogramItem)(nil), // 2: agent.v1.HistogramItem + (*MetricsBucket_Common)(nil), // 3: agent.v1.MetricsBucket.Common + (*MetricsBucket_MySQL)(nil), // 4: agent.v1.MetricsBucket.MySQL + (*MetricsBucket_MongoDB)(nil), // 5: agent.v1.MetricsBucket.MongoDB + (*MetricsBucket_PostgreSQL)(nil), // 6: agent.v1.MetricsBucket.PostgreSQL + nil, // 7: agent.v1.MetricsBucket.Common.CommentsEntry + nil, // 8: agent.v1.MetricsBucket.Common.ErrorsEntry + (v1.AgentType)(0), // 9: inventory.v1.AgentType + } +) + var file_agent_v1_collector_proto_depIdxs = []int32{ 3, // 0: agent.v1.MetricsBucket.common:type_name -> agent.v1.MetricsBucket.Common 4, // 1: agent.v1.MetricsBucket.mysql:type_name -> agent.v1.MetricsBucket.MySQL diff --git a/api/agentlocal/v1/agentlocal.pb.go b/api/agentlocal/v1/agentlocal.pb.go index 374821c2931..a2836f3cd3c 100644 --- a/api/agentlocal/v1/agentlocal.pb.go +++ b/api/agentlocal/v1/agentlocal.pb.go @@ -7,14 +7,16 @@ package agentlocalv1 import ( - v1 "github.com/percona/pmm/api/inventory/v1" + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "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" - unsafe "unsafe" + + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -242,7 +244,7 @@ func (x *StatusRequest) GetGetNetworkInfo() bool { type StatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - RunsOnNodeId string `protobuf:"bytes,2,opt,name=runs_on_node_id,json=runsOnNodeId,proto3" json:"runs_on_node_id,omitempty"` //TODO: rename to node_id + RunsOnNodeId string `protobuf:"bytes,2,opt,name=runs_on_node_id,json=runsOnNodeId,proto3" json:"runs_on_node_id,omitempty"` // TODO: rename to node_id NodeName string `protobuf:"bytes,3,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` ServerInfo *ServerInfo `protobuf:"bytes,4,opt,name=server_info,json=serverInfo,proto3" json:"server_info,omitempty"` AgentsInfo []*AgentInfo `protobuf:"bytes,5,rep,name=agents_info,json=agentsInfo,proto3" json:"agents_info,omitempty"` @@ -469,18 +471,21 @@ func file_agentlocal_v1_agentlocal_proto_rawDescGZIP() []byte { return file_agentlocal_v1_agentlocal_proto_rawDescData } -var file_agentlocal_v1_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_agentlocal_v1_agentlocal_proto_goTypes = []any{ - (*ServerInfo)(nil), // 0: agentlocal.v1.ServerInfo - (*AgentInfo)(nil), // 1: agentlocal.v1.AgentInfo - (*StatusRequest)(nil), // 2: agentlocal.v1.StatusRequest - (*StatusResponse)(nil), // 3: agentlocal.v1.StatusResponse - (*ReloadRequest)(nil), // 4: agentlocal.v1.ReloadRequest - (*ReloadResponse)(nil), // 5: agentlocal.v1.ReloadResponse - (*durationpb.Duration)(nil), // 6: google.protobuf.Duration - (v1.AgentType)(0), // 7: inventory.v1.AgentType - (v1.AgentStatus)(0), // 8: inventory.v1.AgentStatus -} +var ( + file_agentlocal_v1_agentlocal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_agentlocal_v1_agentlocal_proto_goTypes = []any{ + (*ServerInfo)(nil), // 0: agentlocal.v1.ServerInfo + (*AgentInfo)(nil), // 1: agentlocal.v1.AgentInfo + (*StatusRequest)(nil), // 2: agentlocal.v1.StatusRequest + (*StatusResponse)(nil), // 3: agentlocal.v1.StatusResponse + (*ReloadRequest)(nil), // 4: agentlocal.v1.ReloadRequest + (*ReloadResponse)(nil), // 5: agentlocal.v1.ReloadResponse + (*durationpb.Duration)(nil), // 6: google.protobuf.Duration + (v1.AgentType)(0), // 7: inventory.v1.AgentType + (v1.AgentStatus)(0), // 8: inventory.v1.AgentStatus + } +) + var file_agentlocal_v1_agentlocal_proto_depIdxs = []int32{ 6, // 0: agentlocal.v1.ServerInfo.latency:type_name -> google.protobuf.Duration 6, // 1: agentlocal.v1.ServerInfo.clock_drift:type_name -> google.protobuf.Duration diff --git a/api/agentlocal/v1/agentlocal_grpc.pb.go b/api/agentlocal/v1/agentlocal_grpc.pb.go index 1b4e4c73073..14d47f7c727 100644 --- a/api/agentlocal/v1/agentlocal_grpc.pb.go +++ b/api/agentlocal/v1/agentlocal_grpc.pb.go @@ -8,6 +8,7 @@ package agentlocalv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -86,6 +87,7 @@ type UnimplementedAgentLocalServiceServer struct{} func (UnimplementedAgentLocalServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method Status not implemented") } + func (UnimplementedAgentLocalServiceServer) Reload(context.Context, *ReloadRequest) (*ReloadResponse, error) { return nil, status.Error(codes.Unimplemented, "method Reload not implemented") } diff --git a/api/agentlocal/v1/json/client/agent_local_service/reload_parameters.go b/api/agentlocal/v1/json/client/agent_local_service/reload_parameters.go index 2e504d1316f..7a559d37dc8 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/reload_parameters.go +++ b/api/agentlocal/v1/json/client/agent_local_service/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 any @@ -130,7 +129,6 @@ func (o *ReloadParams) SetBody(body any) { // 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/agentlocal/v1/json/client/agent_local_service/reload_responses.go b/api/agentlocal/v1/json/client/agent_local_service/reload_responses.go index b2c7d41e7fd..1595292df0d 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/reload_responses.go +++ b/api/agentlocal/v1/json/client/agent_local_service/reload_responses.go @@ -104,7 +104,6 @@ func (o *ReloadOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *ReloadDefault) GetPayload() *ReloadDefaultBody { } func (o *ReloadDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ReloadDefaultBody) // response payload @@ -192,7 +190,6 @@ ReloadDefaultBody reload default body swagger:model ReloadDefaultBody */ type ReloadDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *ReloadDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -313,7 +307,6 @@ ReloadDefaultBodyDetailsItems0 reload default body details items0 swagger:model ReloadDefaultBodyDetailsItems0 */ type ReloadDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type ReloadDefaultBodyDetailsItems0 struct { func (o *ReloadDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *ReloadDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ReloadDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/agentlocal/v1/json/client/agent_local_service/status2_parameters.go b/api/agentlocal/v1/json/client/agent_local_service/status2_parameters.go index e1a0f18fb76..220d4c5bbac 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status2_parameters.go +++ b/api/agentlocal/v1/json/client/agent_local_service/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/agentlocal/v1/json/client/agent_local_service/status2_responses.go b/api/agentlocal/v1/json/client/agent_local_service/status2_responses.go index 6b1873e8997..39bee162725 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status2_responses.go +++ b/api/agentlocal/v1/json/client/agent_local_service/status2_responses.go @@ -105,7 +105,6 @@ func (o *Status2OK) GetPayload() *Status2OKBody { } func (o *Status2OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(Status2OKBody) // response payload @@ -179,7 +178,6 @@ func (o *Status2Default) GetPayload() *Status2DefaultBody { } func (o *Status2Default) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(Status2DefaultBody) // response payload @@ -195,7 +193,6 @@ Status2DefaultBody status2 default body swagger:model Status2DefaultBody */ type Status2DefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *Status2DefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -316,7 +310,6 @@ Status2DefaultBodyDetailsItems0 status2 default body details items0 swagger:model Status2DefaultBodyDetailsItems0 */ type Status2DefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type Status2DefaultBodyDetailsItems0 struct { func (o *Status2DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *Status2DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o Status2DefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ Status2OKBody status2 OK body swagger:model Status2OKBody */ type Status2OKBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -546,9 +536,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 swag.IsZero(o.AgentsInfo[i]) { // not required @@ -568,14 +556,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 swag.IsZero(o.ServerInfo) { // not required @@ -622,7 +608,6 @@ Status2OKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model Status2OKBodyAgentsInfoItems0 */ type Status2OKBodyAgentsInfoItems0 struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -852,7 +837,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/agentlocal/v1/json/client/agent_local_service/status_parameters.go b/api/agentlocal/v1/json/client/agent_local_service/status_parameters.go index 56301866ccc..f522c468298 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status_parameters.go +++ b/api/agentlocal/v1/json/client/agent_local_service/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/agentlocal/v1/json/client/agent_local_service/status_responses.go b/api/agentlocal/v1/json/client/agent_local_service/status_responses.go index 66b7d2d110d..f7e4f3fa0c8 100644 --- a/api/agentlocal/v1/json/client/agent_local_service/status_responses.go +++ b/api/agentlocal/v1/json/client/agent_local_service/status_responses.go @@ -105,7 +105,6 @@ func (o *StatusOK) GetPayload() *StatusOKBody { } func (o *StatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StatusOKBody) // response payload @@ -179,7 +178,6 @@ func (o *StatusDefault) GetPayload() *StatusDefaultBody { } func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StatusDefaultBody) // response payload @@ -195,7 +193,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"` } @@ -233,7 +230,6 @@ StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -303,9 +299,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 swag.IsZero(o.Details[i]) { // not required @@ -325,7 +319,6 @@ func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -354,7 +347,6 @@ StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -366,7 +358,6 @@ type StatusDefaultBodyDetailsItems0 struct { func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -404,7 +395,6 @@ func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StatusDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -468,7 +458,6 @@ StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -584,9 +573,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 swag.IsZero(o.AgentsInfo[i]) { // not required @@ -606,14 +593,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 swag.IsZero(o.ServerInfo) { // not required @@ -660,7 +645,6 @@ StatusOKBodyAgentsInfoItems0 AgentInfo contains information about Agent managed swagger:model StatusOKBodyAgentsInfoItems0 */ type StatusOKBodyAgentsInfoItems0 struct { - // agent id AgentID string `json:"agent_id,omitempty"` @@ -890,7 +874,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/alerting/v1/alerting.pb.go b/api/alerting/v1/alerting.pb.go index 44c388389a1..acd727a9865 100644 --- a/api/alerting/v1/alerting.pb.go +++ b/api/alerting/v1/alerting.pb.go @@ -7,16 +7,18 @@ package alertingv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" - v1 "github.com/percona/pmm/api/management/v1" _ "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" - unsafe "unsafe" + + v1 "github.com/percona/pmm/api/management/v1" ) const ( @@ -1424,37 +1426,40 @@ func file_alerting_v1_alerting_proto_rawDescGZIP() []byte { return file_alerting_v1_alerting_proto_rawDescData } -var file_alerting_v1_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_alerting_v1_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) -var file_alerting_v1_alerting_proto_goTypes = []any{ - (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 - (ParamUnit)(0), // 22: alerting.v1.ParamUnit - (ParamType)(0), // 23: alerting.v1.ParamType - (*durationpb.Duration)(nil), // 24: google.protobuf.Duration - (v1.Severity)(0), // 25: management.v1.Severity - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp -} +var ( + file_alerting_v1_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_alerting_v1_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) + file_alerting_v1_alerting_proto_goTypes = []any{ + (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 + (ParamUnit)(0), // 22: alerting.v1.ParamUnit + (ParamType)(0), // 23: alerting.v1.ParamType + (*durationpb.Duration)(nil), // 24: google.protobuf.Duration + (v1.Severity)(0), // 25: management.v1.Severity + (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + } +) + var file_alerting_v1_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit 23, // 1: alerting.v1.ParamDefinition.type:type_name -> alerting.v1.ParamType diff --git a/api/alerting/v1/alerting.pb.validate.go b/api/alerting/v1/alerting.pb.validate.go index bc3dfba5dfa..f6a7dbcf1fa 100644 --- a/api/alerting/v1/alerting.pb.validate.go +++ b/api/alerting/v1/alerting.pb.validate.go @@ -851,7 +851,6 @@ func (m *ListTemplatesRequest) validate(all bool) error { // no validation rules for Reload if m.PageSize != nil { - if m.GetPageSize() < 1 { err := ListTemplatesRequestValidationError{ field: "PageSize", @@ -862,11 +861,9 @@ func (m *ListTemplatesRequest) validate(all bool) error { } errors = append(errors, err) } - } if m.PageIndex != nil { - if m.GetPageIndex() < 0 { err := ListTemplatesRequestValidationError{ field: "PageIndex", @@ -877,7 +874,6 @@ func (m *ListTemplatesRequest) validate(all bool) error { } errors = append(errors, err) } - } if len(errors) > 0 { diff --git a/api/alerting/v1/alerting_grpc.pb.go b/api/alerting/v1/alerting_grpc.pb.go index 1db7fdf68b9..d559dc19bfe 100644 --- a/api/alerting/v1/alerting_grpc.pb.go +++ b/api/alerting/v1/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" @@ -131,15 +132,19 @@ type UnimplementedAlertingServiceServer struct{} func (UnimplementedAlertingServiceServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListTemplates not implemented") } + func (UnimplementedAlertingServiceServer) CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateTemplate not implemented") } + func (UnimplementedAlertingServiceServer) UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateTemplate not implemented") } + func (UnimplementedAlertingServiceServer) DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteTemplate not implemented") } + func (UnimplementedAlertingServiceServer) CreateRule(context.Context, *CreateRuleRequest) (*CreateRuleResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateRule not implemented") } diff --git a/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go b/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go index dc970ceafc0..d99404fc945 100644 --- a/api/alerting/v1/json/client/alerting_service/create_rule_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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/alerting/v1/json/client/alerting_service/create_rule_responses.go b/api/alerting/v1/json/client/alerting_service/create_rule_responses.go index e18e8cb060d..51443beb017 100644 --- a/api/alerting/v1/json/client/alerting_service/create_rule_responses.go +++ b/api/alerting/v1/json/client/alerting_service/create_rule_responses.go @@ -105,7 +105,6 @@ func (o *CreateRuleOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -177,7 +176,6 @@ func (o *CreateRuleDefault) GetPayload() *CreateRuleDefaultBody { } func (o *CreateRuleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateRuleDefaultBody) // response payload @@ -193,7 +191,6 @@ CreateRuleBody create rule body swagger:model CreateRuleBody */ type CreateRuleBody struct { - // Template name. TemplateName string `json:"template_name,omitempty"` @@ -390,9 +387,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 swag.IsZero(o.Params[i]) { // not required @@ -412,16 +407,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 swag.IsZero(o.Filters[i]) { // not required @@ -441,7 +433,6 @@ func (o *CreateRuleBody) contextValidateFilters(ctx context.Context, formats str return err } } - } return nil @@ -470,7 +461,6 @@ CreateRuleDefaultBody create rule default body swagger:model CreateRuleDefaultBody */ type CreateRuleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -540,9 +530,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 swag.IsZero(o.Details[i]) { // not required @@ -562,7 +550,6 @@ func (o *CreateRuleDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -591,7 +578,6 @@ CreateRuleDefaultBodyDetailsItems0 create rule default body details items0 swagger:model CreateRuleDefaultBodyDetailsItems0 */ type CreateRuleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -603,7 +589,6 @@ type CreateRuleDefaultBodyDetailsItems0 struct { func (o *CreateRuleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -641,7 +626,6 @@ func (o *CreateRuleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o CreateRuleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -705,7 +689,6 @@ CreateRuleParamsBodyFiltersItems0 Filter represents a single filter condition. swagger:model CreateRuleParamsBodyFiltersItems0 */ type CreateRuleParamsBodyFiltersItems0 struct { - // FilterType represents filter matching type. // Enum: ["FILTER_TYPE_UNSPECIFIED","FILTER_TYPE_MATCH","FILTER_TYPE_MISMATCH"] Type *string `json:"type,omitempty"` @@ -804,7 +787,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/alerting/v1/json/client/alerting_service/create_template_parameters.go b/api/alerting/v1/json/client/alerting_service/create_template_parameters.go index 266ab9b7c49..7af56c35841 100644 --- a/api/alerting/v1/json/client/alerting_service/create_template_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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/alerting/v1/json/client/alerting_service/create_template_responses.go b/api/alerting/v1/json/client/alerting_service/create_template_responses.go index 183c84fb46a..d521ef29139 100644 --- a/api/alerting/v1/json/client/alerting_service/create_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/create_template_responses.go @@ -104,7 +104,6 @@ func (o *CreateTemplateOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *CreateTemplateDefault) GetPayload() *CreateTemplateDefaultBody { } func (o *CreateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CreateTemplateDefaultBody) // response payload @@ -192,7 +190,6 @@ CreateTemplateBody create template body swagger:model CreateTemplateBody */ type CreateTemplateBody struct { - // YAML template file content. Yaml string `json:"yaml,omitempty"` } @@ -230,7 +227,6 @@ CreateTemplateDefaultBody create template default body swagger:model CreateTemplateDefaultBody */ type CreateTemplateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,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 swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *CreateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -351,7 +344,6 @@ CreateTemplateDefaultBodyDetailsItems0 create template default body details item swagger:model CreateTemplateDefaultBodyDetailsItems0 */ type CreateTemplateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type CreateTemplateDefaultBodyDetailsItems0 struct { func (o *CreateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *CreateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o CreateTemplateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go b/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go index 08d19304dc6..12c5e9f70f9 100644 --- a/api/alerting/v1/json/client/alerting_service/delete_template_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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 { - // Name. Name string @@ -130,7 +129,6 @@ func (o *DeleteTemplateParams) SetName(name string) { // 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/alerting/v1/json/client/alerting_service/delete_template_responses.go b/api/alerting/v1/json/client/alerting_service/delete_template_responses.go index e0387716d22..2f12e61369a 100644 --- a/api/alerting/v1/json/client/alerting_service/delete_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/delete_template_responses.go @@ -104,7 +104,6 @@ func (o *DeleteTemplateOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *DeleteTemplateDefault) GetPayload() *DeleteTemplateDefaultBody { } func (o *DeleteTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteTemplateDefaultBody) // response payload @@ -192,7 +190,6 @@ DeleteTemplateDefaultBody delete template default body swagger:model DeleteTemplateDefaultBody */ type DeleteTemplateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *DeleteTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -313,7 +307,6 @@ DeleteTemplateDefaultBodyDetailsItems0 delete template default body details item swagger:model DeleteTemplateDefaultBodyDetailsItems0 */ type DeleteTemplateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type DeleteTemplateDefaultBodyDetailsItems0 struct { func (o *DeleteTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *DeleteTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteTemplateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go b/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go index a13fd2e40a5..54f826721d0 100644 --- a/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/list_templates_parameters.go @@ -61,7 +61,6 @@ ListTemplatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListTemplatesParams struct { - /* PageIndex. Index of the requested page, starts from 0. @@ -172,7 +171,6 @@ func (o *ListTemplatesParams) SetReload(reload *bool) { // 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 } @@ -188,7 +186,6 @@ func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qPageIndex := swag.FormatInt32(qrPageIndex) if qPageIndex != "" { - if err := r.SetQueryParam("page_index", qPageIndex); err != nil { return err } @@ -205,7 +202,6 @@ func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qPageSize := swag.FormatInt32(qrPageSize) if qPageSize != "" { - if err := r.SetQueryParam("page_size", qPageSize); err != nil { return err } @@ -222,7 +218,6 @@ func (o *ListTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qReload := swag.FormatBool(qrReload) if qReload != "" { - if err := r.SetQueryParam("reload", qReload); err != nil { return err } diff --git a/api/alerting/v1/json/client/alerting_service/list_templates_responses.go b/api/alerting/v1/json/client/alerting_service/list_templates_responses.go index dd3c76a03a2..e3ef0e66c65 100644 --- a/api/alerting/v1/json/client/alerting_service/list_templates_responses.go +++ b/api/alerting/v1/json/client/alerting_service/list_templates_responses.go @@ -105,7 +105,6 @@ func (o *ListTemplatesOK) GetPayload() *ListTemplatesOKBody { } func (o *ListTemplatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListTemplatesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListTemplatesDefault) GetPayload() *ListTemplatesDefaultBody { } func (o *ListTemplatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListTemplatesDefaultBody) // response payload @@ -195,7 +193,6 @@ ListTemplatesDefaultBody list templates default body swagger:model ListTemplatesDefaultBody */ type ListTemplatesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListTemplatesDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -316,7 +310,6 @@ ListTemplatesDefaultBodyDetailsItems0 list templates default body details items0 swagger:model ListTemplatesDefaultBodyDetailsItems0 */ type ListTemplatesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListTemplatesDefaultBodyDetailsItems0 struct { func (o *ListTemplatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListTemplatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListTemplatesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListTemplatesOKBody list templates OK body swagger:model ListTemplatesOKBody */ type ListTemplatesOKBody struct { - // Total number of results. TotalItems int32 `json:"total_items,omitempty"` @@ -500,9 +490,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 swag.IsZero(o.Templates[i]) { // not required @@ -522,7 +510,6 @@ func (o *ListTemplatesOKBody) contextValidateTemplates(ctx context.Context, form return err } } - } return nil @@ -551,7 +538,6 @@ ListTemplatesOKBodyTemplatesItems0 Template represents Alert Template that is us swagger:model ListTemplatesOKBodyTemplatesItems0 */ type ListTemplatesOKBodyTemplatesItems0 struct { - // Machine-readable name (ID). Name string `json:"name,omitempty"` @@ -791,9 +777,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 swag.IsZero(o.Params[i]) { // not required @@ -813,7 +797,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0) contextValidateParams(ctx context.C return err } } - } return nil @@ -842,7 +825,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"` @@ -1086,7 +1068,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) ContextValidate(ctx con } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx context.Context, formats strfmt.Registry) error { - if o.Bool != nil { if swag.IsZero(o.Bool) { // not required @@ -1111,7 +1092,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateBool(ctx } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ctx context.Context, formats strfmt.Registry) error { - if o.Float != nil { if swag.IsZero(o.Float) { // not required @@ -1136,7 +1116,6 @@ func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateFloat(ct } func (o *ListTemplatesOKBodyTemplatesItems0ParamsItems0) contextValidateString(ctx context.Context, formats strfmt.Registry) error { - if o.String != nil { if swag.IsZero(o.String) { // not required @@ -1183,7 +1162,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool BoolParamDefinition represent swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Bool struct { - // default Default *bool `json:"default,omitempty"` } @@ -1221,7 +1199,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0Float FloatParamDefinition represe swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0Float */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0Float struct { - // Default value. Default *float64 `json:"default,omitempty"` @@ -1265,7 +1242,6 @@ ListTemplatesOKBodyTemplatesItems0ParamsItems0String StringParamDefinition repre swagger:model ListTemplatesOKBodyTemplatesItems0ParamsItems0String */ type ListTemplatesOKBodyTemplatesItems0ParamsItems0String struct { - // Default value. Default *string `json:"default,omitempty"` } diff --git a/api/alerting/v1/json/client/alerting_service/update_template_parameters.go b/api/alerting/v1/json/client/alerting_service/update_template_parameters.go index 8d019495cab..531cd4e36b3 100644 --- a/api/alerting/v1/json/client/alerting_service/update_template_parameters.go +++ b/api/alerting/v1/json/client/alerting_service/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 @@ -147,7 +146,6 @@ func (o *UpdateTemplateParams) SetName(name string) { // 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/alerting/v1/json/client/alerting_service/update_template_responses.go b/api/alerting/v1/json/client/alerting_service/update_template_responses.go index c180a25fe82..51a789ea3e5 100644 --- a/api/alerting/v1/json/client/alerting_service/update_template_responses.go +++ b/api/alerting/v1/json/client/alerting_service/update_template_responses.go @@ -104,7 +104,6 @@ func (o *UpdateTemplateOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *UpdateTemplateDefault) GetPayload() *UpdateTemplateDefaultBody { } func (o *UpdateTemplateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateTemplateDefaultBody) // response payload @@ -192,7 +190,6 @@ UpdateTemplateBody update template body swagger:model UpdateTemplateBody */ type UpdateTemplateBody struct { - // YAML template file content. Yaml string `json:"yaml,omitempty"` } @@ -230,7 +227,6 @@ UpdateTemplateDefaultBody update template default body swagger:model UpdateTemplateDefaultBody */ type UpdateTemplateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,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 swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *UpdateTemplateDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -351,7 +344,6 @@ UpdateTemplateDefaultBodyDetailsItems0 update template default body details item swagger:model UpdateTemplateDefaultBodyDetailsItems0 */ type UpdateTemplateDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type UpdateTemplateDefaultBodyDetailsItems0 struct { func (o *UpdateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *UpdateTemplateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateTemplateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/alerting/v1/params.pb.go b/api/alerting/v1/params.pb.go index 4f9034616f4..5df5a859b29 100644 --- a/api/alerting/v1/params.pb.go +++ b/api/alerting/v1/params.pb.go @@ -7,11 +7,12 @@ package alertingv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -155,11 +156,14 @@ func file_alerting_v1_params_proto_rawDescGZIP() []byte { return file_alerting_v1_params_proto_rawDescData } -var file_alerting_v1_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_alerting_v1_params_proto_goTypes = []any{ - (ParamUnit)(0), // 0: alerting.v1.ParamUnit - (ParamType)(0), // 1: alerting.v1.ParamType -} +var ( + file_alerting_v1_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_alerting_v1_params_proto_goTypes = []any{ + (ParamUnit)(0), // 0: alerting.v1.ParamUnit + (ParamType)(0), // 1: alerting.v1.ParamType + } +) + var file_alerting_v1_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/backup/v1/artifacts.pb.go b/api/backup/v1/artifacts.pb.go index a921d234e96..5302152bd21 100644 --- a/api/backup/v1/artifacts.pb.go +++ b/api/backup/v1/artifacts.pb.go @@ -7,13 +7,14 @@ package backupv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" 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" - unsafe "unsafe" ) const ( @@ -636,23 +637,26 @@ func file_backup_v1_artifacts_proto_rawDescGZIP() []byte { return file_backup_v1_artifacts_proto_rawDescData } -var file_backup_v1_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_backup_v1_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_backup_v1_artifacts_proto_goTypes = []any{ - (BackupStatus)(0), // 0: backup.v1.BackupStatus - (*Artifact)(nil), // 1: backup.v1.Artifact - (*ListArtifactsRequest)(nil), // 2: backup.v1.ListArtifactsRequest - (*ListArtifactsResponse)(nil), // 3: backup.v1.ListArtifactsResponse - (*DeleteArtifactRequest)(nil), // 4: backup.v1.DeleteArtifactRequest - (*DeleteArtifactResponse)(nil), // 5: backup.v1.DeleteArtifactResponse - (*PitrTimerange)(nil), // 6: backup.v1.PitrTimerange - (*ListPitrTimerangesRequest)(nil), // 7: backup.v1.ListPitrTimerangesRequest - (*ListPitrTimerangesResponse)(nil), // 8: backup.v1.ListPitrTimerangesResponse - (DataModel)(0), // 9: backup.v1.DataModel - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (BackupMode)(0), // 11: backup.v1.BackupMode - (*Metadata)(nil), // 12: backup.v1.Metadata -} +var ( + file_backup_v1_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_backup_v1_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 8) + file_backup_v1_artifacts_proto_goTypes = []any{ + (BackupStatus)(0), // 0: backup.v1.BackupStatus + (*Artifact)(nil), // 1: backup.v1.Artifact + (*ListArtifactsRequest)(nil), // 2: backup.v1.ListArtifactsRequest + (*ListArtifactsResponse)(nil), // 3: backup.v1.ListArtifactsResponse + (*DeleteArtifactRequest)(nil), // 4: backup.v1.DeleteArtifactRequest + (*DeleteArtifactResponse)(nil), // 5: backup.v1.DeleteArtifactResponse + (*PitrTimerange)(nil), // 6: backup.v1.PitrTimerange + (*ListPitrTimerangesRequest)(nil), // 7: backup.v1.ListPitrTimerangesRequest + (*ListPitrTimerangesResponse)(nil), // 8: backup.v1.ListPitrTimerangesResponse + (DataModel)(0), // 9: backup.v1.DataModel + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (BackupMode)(0), // 11: backup.v1.BackupMode + (*Metadata)(nil), // 12: backup.v1.Metadata + } +) + var file_backup_v1_artifacts_proto_depIdxs = []int32{ 9, // 0: backup.v1.Artifact.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.Artifact.status:type_name -> backup.v1.BackupStatus diff --git a/api/backup/v1/backup.pb.go b/api/backup/v1/backup.pb.go index f358db0246e..36a2ec0efb4 100644 --- a/api/backup/v1/backup.pb.go +++ b/api/backup/v1/backup.pb.go @@ -7,17 +7,19 @@ package backupv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - unsafe "unsafe" + + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -1241,37 +1243,40 @@ func file_backup_v1_backup_proto_rawDescGZIP() []byte { return file_backup_v1_backup_proto_rawDescData } -var file_backup_v1_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_backup_v1_backup_proto_goTypes = []any{ - (*StartBackupRequest)(nil), // 0: backup.v1.StartBackupRequest - (*StartBackupResponse)(nil), // 1: backup.v1.StartBackupResponse - (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1.ListArtifactCompatibleServicesRequest - (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1.ListArtifactCompatibleServicesResponse - (*ScheduledBackup)(nil), // 4: backup.v1.ScheduledBackup - (*ScheduleBackupRequest)(nil), // 5: backup.v1.ScheduleBackupRequest - (*ScheduleBackupResponse)(nil), // 6: backup.v1.ScheduleBackupResponse - (*ListScheduledBackupsRequest)(nil), // 7: backup.v1.ListScheduledBackupsRequest - (*ListScheduledBackupsResponse)(nil), // 8: backup.v1.ListScheduledBackupsResponse - (*ChangeScheduledBackupRequest)(nil), // 9: backup.v1.ChangeScheduledBackupRequest - (*ChangeScheduledBackupResponse)(nil), // 10: backup.v1.ChangeScheduledBackupResponse - (*RemoveScheduledBackupRequest)(nil), // 11: backup.v1.RemoveScheduledBackupRequest - (*RemoveScheduledBackupResponse)(nil), // 12: backup.v1.RemoveScheduledBackupResponse - (*GetLogsRequest)(nil), // 13: backup.v1.GetLogsRequest - (*GetLogsResponse)(nil), // 14: backup.v1.GetLogsResponse - (*durationpb.Duration)(nil), // 15: google.protobuf.Duration - (DataModel)(0), // 16: backup.v1.DataModel - (*v1.MySQLService)(nil), // 17: inventory.v1.MySQLService - (*v1.MongoDBService)(nil), // 18: inventory.v1.MongoDBService - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - (BackupMode)(0), // 20: backup.v1.BackupMode - (*LogChunk)(nil), // 21: backup.v1.LogChunk - (*ListArtifactsRequest)(nil), // 22: backup.v1.ListArtifactsRequest - (*DeleteArtifactRequest)(nil), // 23: backup.v1.DeleteArtifactRequest - (*ListPitrTimerangesRequest)(nil), // 24: backup.v1.ListPitrTimerangesRequest - (*ListArtifactsResponse)(nil), // 25: backup.v1.ListArtifactsResponse - (*DeleteArtifactResponse)(nil), // 26: backup.v1.DeleteArtifactResponse - (*ListPitrTimerangesResponse)(nil), // 27: backup.v1.ListPitrTimerangesResponse -} +var ( + file_backup_v1_backup_proto_msgTypes = make([]protoimpl.MessageInfo, 15) + file_backup_v1_backup_proto_goTypes = []any{ + (*StartBackupRequest)(nil), // 0: backup.v1.StartBackupRequest + (*StartBackupResponse)(nil), // 1: backup.v1.StartBackupResponse + (*ListArtifactCompatibleServicesRequest)(nil), // 2: backup.v1.ListArtifactCompatibleServicesRequest + (*ListArtifactCompatibleServicesResponse)(nil), // 3: backup.v1.ListArtifactCompatibleServicesResponse + (*ScheduledBackup)(nil), // 4: backup.v1.ScheduledBackup + (*ScheduleBackupRequest)(nil), // 5: backup.v1.ScheduleBackupRequest + (*ScheduleBackupResponse)(nil), // 6: backup.v1.ScheduleBackupResponse + (*ListScheduledBackupsRequest)(nil), // 7: backup.v1.ListScheduledBackupsRequest + (*ListScheduledBackupsResponse)(nil), // 8: backup.v1.ListScheduledBackupsResponse + (*ChangeScheduledBackupRequest)(nil), // 9: backup.v1.ChangeScheduledBackupRequest + (*ChangeScheduledBackupResponse)(nil), // 10: backup.v1.ChangeScheduledBackupResponse + (*RemoveScheduledBackupRequest)(nil), // 11: backup.v1.RemoveScheduledBackupRequest + (*RemoveScheduledBackupResponse)(nil), // 12: backup.v1.RemoveScheduledBackupResponse + (*GetLogsRequest)(nil), // 13: backup.v1.GetLogsRequest + (*GetLogsResponse)(nil), // 14: backup.v1.GetLogsResponse + (*durationpb.Duration)(nil), // 15: google.protobuf.Duration + (DataModel)(0), // 16: backup.v1.DataModel + (*v1.MySQLService)(nil), // 17: inventory.v1.MySQLService + (*v1.MongoDBService)(nil), // 18: inventory.v1.MongoDBService + (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp + (BackupMode)(0), // 20: backup.v1.BackupMode + (*LogChunk)(nil), // 21: backup.v1.LogChunk + (*ListArtifactsRequest)(nil), // 22: backup.v1.ListArtifactsRequest + (*DeleteArtifactRequest)(nil), // 23: backup.v1.DeleteArtifactRequest + (*ListPitrTimerangesRequest)(nil), // 24: backup.v1.ListPitrTimerangesRequest + (*ListArtifactsResponse)(nil), // 25: backup.v1.ListArtifactsResponse + (*DeleteArtifactResponse)(nil), // 26: backup.v1.DeleteArtifactResponse + (*ListPitrTimerangesResponse)(nil), // 27: backup.v1.ListPitrTimerangesResponse + } +) + var file_backup_v1_backup_proto_depIdxs = []int32{ 15, // 0: backup.v1.StartBackupRequest.retry_interval:type_name -> google.protobuf.Duration 16, // 1: backup.v1.StartBackupRequest.data_model:type_name -> backup.v1.DataModel diff --git a/api/backup/v1/backup_grpc.pb.go b/api/backup/v1/backup_grpc.pb.go index 6d16ad2b7de..2f28a3ab987 100644 --- a/api/backup/v1/backup_grpc.pb.go +++ b/api/backup/v1/backup_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -206,30 +207,39 @@ type UnimplementedBackupServiceServer struct{} func (UnimplementedBackupServiceServer) StartBackup(context.Context, *StartBackupRequest) (*StartBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartBackup not implemented") } + func (UnimplementedBackupServiceServer) ListArtifactCompatibleServices(context.Context, *ListArtifactCompatibleServicesRequest) (*ListArtifactCompatibleServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListArtifactCompatibleServices not implemented") } + func (UnimplementedBackupServiceServer) ScheduleBackup(context.Context, *ScheduleBackupRequest) (*ScheduleBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method ScheduleBackup not implemented") } + func (UnimplementedBackupServiceServer) ListScheduledBackups(context.Context, *ListScheduledBackupsRequest) (*ListScheduledBackupsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListScheduledBackups not implemented") } + func (UnimplementedBackupServiceServer) ChangeScheduledBackup(context.Context, *ChangeScheduledBackupRequest) (*ChangeScheduledBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeScheduledBackup not implemented") } + func (UnimplementedBackupServiceServer) RemoveScheduledBackup(context.Context, *RemoveScheduledBackupRequest) (*RemoveScheduledBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveScheduledBackup not implemented") } + func (UnimplementedBackupServiceServer) GetLogs(context.Context, *GetLogsRequest) (*GetLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetLogs not implemented") } + func (UnimplementedBackupServiceServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListArtifacts not implemented") } + func (UnimplementedBackupServiceServer) DeleteArtifact(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteArtifact not implemented") } + func (UnimplementedBackupServiceServer) ListPitrTimeranges(context.Context, *ListPitrTimerangesRequest) (*ListPitrTimerangesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListPitrTimeranges not implemented") } diff --git a/api/backup/v1/common.pb.go b/api/backup/v1/common.pb.go index da7f4a0678c..ca4ba8be172 100644 --- a/api/backup/v1/common.pb.go +++ b/api/backup/v1/common.pb.go @@ -7,13 +7,14 @@ package backupv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" 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" - unsafe "unsafe" ) const ( @@ -409,17 +410,20 @@ func file_backup_v1_common_proto_rawDescGZIP() []byte { return file_backup_v1_common_proto_rawDescData } -var file_backup_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_backup_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_backup_v1_common_proto_goTypes = []any{ - (DataModel)(0), // 0: backup.v1.DataModel - (BackupMode)(0), // 1: backup.v1.BackupMode - (*File)(nil), // 2: backup.v1.File - (*PbmMetadata)(nil), // 3: backup.v1.PbmMetadata - (*Metadata)(nil), // 4: backup.v1.Metadata - (*LogChunk)(nil), // 5: backup.v1.LogChunk - (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp -} +var ( + file_backup_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) + file_backup_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4) + file_backup_v1_common_proto_goTypes = []any{ + (DataModel)(0), // 0: backup.v1.DataModel + (BackupMode)(0), // 1: backup.v1.BackupMode + (*File)(nil), // 2: backup.v1.File + (*PbmMetadata)(nil), // 3: backup.v1.PbmMetadata + (*Metadata)(nil), // 4: backup.v1.Metadata + (*LogChunk)(nil), // 5: backup.v1.LogChunk + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + } +) + var file_backup_v1_common_proto_depIdxs = []int32{ 2, // 0: backup.v1.Metadata.file_list:type_name -> backup.v1.File 6, // 1: backup.v1.Metadata.restore_to:type_name -> google.protobuf.Timestamp diff --git a/api/backup/v1/errors.pb.go b/api/backup/v1/errors.pb.go index a9645403e6b..d67aecce84c 100644 --- a/api/backup/v1/errors.pb.go +++ b/api/backup/v1/errors.pb.go @@ -7,11 +7,12 @@ package backupv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -160,12 +161,15 @@ func file_backup_v1_errors_proto_rawDescGZIP() []byte { return file_backup_v1_errors_proto_rawDescData } -var file_backup_v1_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_backup_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_backup_v1_errors_proto_goTypes = []any{ - (ErrorCode)(0), // 0: backup.v1.ErrorCode - (*Error)(nil), // 1: backup.v1.Error -} +var ( + file_backup_v1_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_backup_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) + file_backup_v1_errors_proto_goTypes = []any{ + (ErrorCode)(0), // 0: backup.v1.ErrorCode + (*Error)(nil), // 1: backup.v1.Error + } +) + var file_backup_v1_errors_proto_depIdxs = []int32{ 0, // 0: backup.v1.Error.code:type_name -> backup.v1.ErrorCode 1, // [1:1] is the sub-list for method output_type diff --git a/api/backup/v1/json/client/backup_service/change_scheduled_backup_parameters.go b/api/backup/v1/json/client/backup_service/change_scheduled_backup_parameters.go index e1e4cbea656..484dc341fb1 100644 --- a/api/backup/v1/json/client/backup_service/change_scheduled_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go b/api/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go index 927e6a3c0a4..1c742c07f14 100644 --- a/api/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/change_scheduled_backup_responses.go @@ -105,7 +105,6 @@ func (o *ChangeScheduledBackupOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -177,7 +176,6 @@ func (o *ChangeScheduledBackupDefault) GetPayload() *ChangeScheduledBackupDefaul } func (o *ChangeScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeScheduledBackupDefaultBody) // response payload @@ -193,7 +191,6 @@ ChangeScheduledBackupBody change scheduled backup body swagger:model ChangeScheduledBackupBody */ type ChangeScheduledBackupBody struct { - // scheduled backup id ScheduledBackupID string `json:"scheduled_backup_id,omitempty"` @@ -277,7 +274,6 @@ ChangeScheduledBackupDefaultBody change scheduled backup default body swagger:model ChangeScheduledBackupDefaultBody */ type ChangeScheduledBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -347,9 +343,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 swag.IsZero(o.Details[i]) { // not required @@ -369,7 +363,6 @@ func (o *ChangeScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -398,7 +391,6 @@ ChangeScheduledBackupDefaultBodyDetailsItems0 change scheduled backup default bo swagger:model ChangeScheduledBackupDefaultBodyDetailsItems0 */ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -410,7 +402,6 @@ type ChangeScheduledBackupDefaultBodyDetailsItems0 struct { func (o *ChangeScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -448,7 +439,6 @@ func (o *ChangeScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byt // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeScheduledBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go b/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go index 0ab18abe2eb..865c2d19370 100644 --- a/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go +++ b/api/backup/v1/json/client/backup_service/delete_artifact_parameters.go @@ -61,7 +61,6 @@ DeleteArtifactParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteArtifactParams struct { - /* ArtifactID. Machine-readable artifact ID. @@ -151,7 +150,6 @@ func (o *DeleteArtifactParams) SetRemoveFiles(removeFiles *bool) { // 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 } @@ -172,7 +170,6 @@ func (o *DeleteArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfm } qRemoveFiles := swag.FormatBool(qrRemoveFiles) if qRemoveFiles != "" { - if err := r.SetQueryParam("remove_files", qRemoveFiles); err != nil { return err } diff --git a/api/backup/v1/json/client/backup_service/delete_artifact_responses.go b/api/backup/v1/json/client/backup_service/delete_artifact_responses.go index 221036497de..2d1ede4bc15 100644 --- a/api/backup/v1/json/client/backup_service/delete_artifact_responses.go +++ b/api/backup/v1/json/client/backup_service/delete_artifact_responses.go @@ -104,7 +104,6 @@ func (o *DeleteArtifactOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *DeleteArtifactDefault) GetPayload() *DeleteArtifactDefaultBody { } func (o *DeleteArtifactDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteArtifactDefaultBody) // response payload @@ -192,7 +190,6 @@ DeleteArtifactDefaultBody delete artifact default body swagger:model DeleteArtifactDefaultBody */ type DeleteArtifactDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *DeleteArtifactDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -313,7 +307,6 @@ DeleteArtifactDefaultBodyDetailsItems0 delete artifact default body details item swagger:model DeleteArtifactDefaultBodyDetailsItems0 */ type DeleteArtifactDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type DeleteArtifactDefaultBodyDetailsItems0 struct { func (o *DeleteArtifactDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *DeleteArtifactDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteArtifactDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/get_logs_parameters.go b/api/backup/v1/json/client/backup_service/get_logs_parameters.go index bf377166c3a..d65124e93df 100644 --- a/api/backup/v1/json/client/backup_service/get_logs_parameters.go +++ b/api/backup/v1/json/client/backup_service/get_logs_parameters.go @@ -61,7 +61,6 @@ GetLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsParams struct { - // ArtifactID. ArtifactID string @@ -163,7 +162,6 @@ func (o *GetLogsParams) SetOffset(offset *int64) { // 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 } @@ -184,7 +182,6 @@ func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { return err } @@ -201,7 +198,6 @@ func (o *GetLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } qOffset := swag.FormatInt64(qrOffset) if qOffset != "" { - if err := r.SetQueryParam("offset", qOffset); err != nil { return err } diff --git a/api/backup/v1/json/client/backup_service/get_logs_responses.go b/api/backup/v1/json/client/backup_service/get_logs_responses.go index 8182a0c2d4a..a3a59102f58 100644 --- a/api/backup/v1/json/client/backup_service/get_logs_responses.go +++ b/api/backup/v1/json/client/backup_service/get_logs_responses.go @@ -104,7 +104,6 @@ func (o *GetLogsOK) GetPayload() *GetLogsOKBody { } func (o *GetLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetLogsDefault) GetPayload() *GetLogsDefaultBody { } func (o *GetLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsDefaultBody) // response payload @@ -194,7 +192,6 @@ GetLogsDefaultBody get logs default body swagger:model GetLogsDefaultBody */ type GetLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetLogsDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -315,7 +309,6 @@ GetLogsDefaultBodyDetailsItems0 get logs default body details items0 swagger:model GetLogsDefaultBodyDetailsItems0 */ type GetLogsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetLogsDefaultBodyDetailsItems0 struct { func (o *GetLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetLogsOKBody get logs OK body swagger:model GetLogsOKBody */ type GetLogsOKBody struct { - // logs Logs []*GetLogsOKBodyLogsItems0 `json:"logs"` @@ -496,9 +486,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 swag.IsZero(o.Logs[i]) { // not required @@ -518,7 +506,6 @@ func (o *GetLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt. return err } } - } return nil @@ -547,7 +534,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/backup/v1/json/client/backup_service/list_artifact_compatible_services_parameters.go b/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_parameters.go index aa2fb065491..77f127caee5 100644 --- a/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_parameters.go +++ b/api/backup/v1/json/client/backup_service/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 { - /* ArtifactID. Artifact id used to determine restore compatibility. @@ -133,7 +132,6 @@ func (o *ListArtifactCompatibleServicesParams) SetArtifactID(artifactID string) // 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/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go b/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go index 41e1f96b663..cb6169a7f4b 100644 --- a/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go +++ b/api/backup/v1/json/client/backup_service/list_artifact_compatible_services_responses.go @@ -104,7 +104,6 @@ func (o *ListArtifactCompatibleServicesOK) GetPayload() *ListArtifactCompatibleS } func (o *ListArtifactCompatibleServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactCompatibleServicesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListArtifactCompatibleServicesDefault) GetPayload() *ListArtifactCompat } func (o *ListArtifactCompatibleServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactCompatibleServicesDefaultBody) // response payload @@ -194,7 +192,6 @@ ListArtifactCompatibleServicesDefaultBody list artifact compatible services defa swagger:model ListArtifactCompatibleServicesDefaultBody */ type ListArtifactCompatibleServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListArtifactCompatibleServicesDefaultBody) contextValidateDetails(ctx c return err } } - } return nil @@ -315,7 +309,6 @@ ListArtifactCompatibleServicesDefaultBodyDetailsItems0 list artifact compatible swagger:model ListArtifactCompatibleServicesDefaultBodyDetailsItems0 */ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListArtifactCompatibleServicesDefaultBodyDetailsItems0 struct { func (o *ListArtifactCompatibleServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListArtifactCompatibleServicesDefaultBodyDetailsItems0) UnmarshalJSON(d // MarshalJSON marshals this object with additional properties into a JSON object func (o ListArtifactCompatibleServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListArtifactCompatibleServicesOKBody list artifact compatible services OK body swagger:model ListArtifactCompatibleServicesOKBody */ type ListArtifactCompatibleServicesOKBody struct { - // mysql Mysql []*ListArtifactCompatibleServicesOKBodyMysqlItems0 `json:"mysql"` @@ -534,9 +524,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 swag.IsZero(o.Mysql[i]) { // not required @@ -556,16 +544,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 swag.IsZero(o.Mongodb[i]) { // not required @@ -585,7 +570,6 @@ func (o *ListArtifactCompatibleServicesOKBody) contextValidateMongodb(ctx contex return err } } - } return nil @@ -614,7 +598,6 @@ ListArtifactCompatibleServicesOKBodyMongodbItems0 MongoDBService represents a ge swagger:model ListArtifactCompatibleServicesOKBodyMongodbItems0 */ type ListArtifactCompatibleServicesOKBodyMongodbItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -685,7 +668,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/backup/v1/json/client/backup_service/list_artifacts_parameters.go b/api/backup/v1/json/client/backup_service/list_artifacts_parameters.go index 158ab869be0..c22d1264781 100644 --- a/api/backup/v1/json/client/backup_service/list_artifacts_parameters.go +++ b/api/backup/v1/json/client/backup_service/list_artifacts_parameters.go @@ -115,7 +115,6 @@ func (o *ListArtifactsParams) SetHTTPClient(client *http.Client) { // 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/backup/v1/json/client/backup_service/list_artifacts_responses.go b/api/backup/v1/json/client/backup_service/list_artifacts_responses.go index 9fe3b844284..36316157438 100644 --- a/api/backup/v1/json/client/backup_service/list_artifacts_responses.go +++ b/api/backup/v1/json/client/backup_service/list_artifacts_responses.go @@ -105,7 +105,6 @@ func (o *ListArtifactsOK) GetPayload() *ListArtifactsOKBody { } func (o *ListArtifactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListArtifactsDefault) GetPayload() *ListArtifactsDefaultBody { } func (o *ListArtifactsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListArtifactsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListArtifactsDefaultBody list artifacts default body swagger:model ListArtifactsDefaultBody */ type ListArtifactsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListArtifactsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -316,7 +310,6 @@ ListArtifactsDefaultBodyDetailsItems0 list artifacts default body details items0 swagger:model ListArtifactsDefaultBodyDetailsItems0 */ type ListArtifactsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListArtifactsDefaultBodyDetailsItems0 struct { func (o *ListArtifactsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListArtifactsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListArtifactsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListArtifactsOKBody list artifacts OK body swagger:model ListArtifactsOKBody */ type ListArtifactsOKBody struct { - // artifacts Artifacts []*ListArtifactsOKBodyArtifactsItems0 `json:"artifacts"` } @@ -494,9 +484,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 swag.IsZero(o.Artifacts[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListArtifactsOKBody) contextValidateArtifacts(ctx context.Context, form return err } } - } return nil @@ -545,7 +532,6 @@ ListArtifactsOKBodyArtifactsItems0 Artifact represents single backup artifact. swagger:model ListArtifactsOKBodyArtifactsItems0 */ type ListArtifactsOKBodyArtifactsItems0 struct { - // Machine-readable artifact ID. ArtifactID string `json:"artifact_id,omitempty"` @@ -836,9 +822,7 @@ func (o *ListArtifactsOKBodyArtifactsItems0) ContextValidate(ctx context.Context } func (o *ListArtifactsOKBodyArtifactsItems0) contextValidateMetadataList(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.MetadataList); i++ { - if o.MetadataList[i] != nil { if swag.IsZero(o.MetadataList[i]) { // not required @@ -858,7 +842,6 @@ func (o *ListArtifactsOKBodyArtifactsItems0) contextValidateMetadataList(ctx con return err } } - } return nil @@ -887,7 +870,6 @@ ListArtifactsOKBodyArtifactsItems0MetadataListItems0 Metadata contains extra art swagger:model ListArtifactsOKBodyArtifactsItems0MetadataListItems0 */ type ListArtifactsOKBodyArtifactsItems0MetadataListItems0 struct { - // List of files backup consists of. FileList []*ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 `json:"file_list"` @@ -1005,9 +987,7 @@ func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) ContextValidate(c } func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) contextValidateFileList(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.FileList); i++ { - if o.FileList[i] != nil { if swag.IsZero(o.FileList[i]) { // not required @@ -1027,14 +1007,12 @@ func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) contextValidateFi return err } } - } return nil } func (o *ListArtifactsOKBodyArtifactsItems0MetadataListItems0) contextValidatePbmMetadata(ctx context.Context, formats strfmt.Registry) error { - if o.PbmMetadata != nil { if swag.IsZero(o.PbmMetadata) { // not required @@ -1081,7 +1059,6 @@ ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 File represen swagger:model ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 */ type ListArtifactsOKBodyArtifactsItems0MetadataListItems0FileListItems0 struct { - // name Name string `json:"name,omitempty"` @@ -1122,7 +1099,6 @@ ListArtifactsOKBodyArtifactsItems0MetadataListItems0PbmMetadata PbmMetadata cont swagger:model ListArtifactsOKBodyArtifactsItems0MetadataListItems0PbmMetadata */ type ListArtifactsOKBodyArtifactsItems0MetadataListItems0PbmMetadata struct { - // Name of backup in backup tool representation. Name string `json:"name,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go index 9e5c9057658..069308b4635 100644 --- a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go +++ b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_parameters.go @@ -60,7 +60,6 @@ ListPitrTimerangesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListPitrTimerangesParams struct { - /* ArtifactID. Artifact ID represents artifact whose location has PITR timeranges to be retrieved. @@ -133,7 +132,6 @@ func (o *ListPitrTimerangesParams) SetArtifactID(artifactID string) { // WriteToRequest writes these params to a swagger request func (o *ListPitrTimerangesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go index d6ad2cb6e78..f67370539e5 100644 --- a/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go +++ b/api/backup/v1/json/client/backup_service/list_pitr_timeranges_responses.go @@ -105,7 +105,6 @@ func (o *ListPitrTimerangesOK) GetPayload() *ListPitrTimerangesOKBody { } func (o *ListPitrTimerangesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListPitrTimerangesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListPitrTimerangesDefault) GetPayload() *ListPitrTimerangesDefaultBody } func (o *ListPitrTimerangesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListPitrTimerangesDefaultBody) // response payload @@ -195,7 +193,6 @@ ListPitrTimerangesDefaultBody list pitr timeranges default body swagger:model ListPitrTimerangesDefaultBody */ type ListPitrTimerangesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListPitrTimerangesDefaultBody) ContextValidate(ctx context.Context, for } func (o *ListPitrTimerangesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListPitrTimerangesDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -316,7 +310,6 @@ ListPitrTimerangesDefaultBodyDetailsItems0 list pitr timeranges default body det swagger:model ListPitrTimerangesDefaultBodyDetailsItems0 */ type ListPitrTimerangesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListPitrTimerangesDefaultBodyDetailsItems0 struct { func (o *ListPitrTimerangesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListPitrTimerangesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o ListPitrTimerangesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListPitrTimerangesOKBody list pitr timeranges OK body swagger:model ListPitrTimerangesOKBody */ type ListPitrTimerangesOKBody struct { - // timeranges Timeranges []*ListPitrTimerangesOKBodyTimerangesItems0 `json:"timeranges"` } @@ -494,9 +484,7 @@ func (o *ListPitrTimerangesOKBody) ContextValidate(ctx context.Context, formats } func (o *ListPitrTimerangesOKBody) contextValidateTimeranges(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Timeranges); i++ { - if o.Timeranges[i] != nil { if swag.IsZero(o.Timeranges[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListPitrTimerangesOKBody) contextValidateTimeranges(ctx context.Context return err } } - } return nil @@ -545,7 +532,6 @@ ListPitrTimerangesOKBodyTimerangesItems0 list pitr timeranges OK body timeranges swagger:model ListPitrTimerangesOKBodyTimerangesItems0 */ type ListPitrTimerangesOKBodyTimerangesItems0 struct { - // start_timestamp is the time of the first event in the PITR chunk. // Format: date-time StartTimestamp strfmt.DateTime `json:"start_timestamp,omitempty"` diff --git a/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go b/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go index 43c3c9b0fc6..e87207a6d84 100644 --- a/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go +++ b/api/backup/v1/json/client/backup_service/list_scheduled_backups_parameters.go @@ -115,7 +115,6 @@ func (o *ListScheduledBackupsParams) SetHTTPClient(client *http.Client) { // 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/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go b/api/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go index ae84e5111a9..838aafb1637 100644 --- a/api/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go +++ b/api/backup/v1/json/client/backup_service/list_scheduled_backups_responses.go @@ -105,7 +105,6 @@ func (o *ListScheduledBackupsOK) GetPayload() *ListScheduledBackupsOKBody { } func (o *ListScheduledBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListScheduledBackupsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListScheduledBackupsDefault) GetPayload() *ListScheduledBackupsDefaultB } func (o *ListScheduledBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListScheduledBackupsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListScheduledBackupsDefaultBody list scheduled backups default body swagger:model ListScheduledBackupsDefaultBody */ type ListScheduledBackupsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListScheduledBackupsDefaultBody) contextValidateDetails(ctx context.Con return err } } - } return nil @@ -316,7 +310,6 @@ ListScheduledBackupsDefaultBodyDetailsItems0 list scheduled backups default body swagger:model ListScheduledBackupsDefaultBodyDetailsItems0 */ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListScheduledBackupsDefaultBodyDetailsItems0 struct { func (o *ListScheduledBackupsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListScheduledBackupsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte // MarshalJSON marshals this object with additional properties into a JSON object func (o ListScheduledBackupsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListScheduledBackupsOKBody list scheduled backups OK body swagger:model ListScheduledBackupsOKBody */ type ListScheduledBackupsOKBody struct { - // scheduled backups ScheduledBackups []*ListScheduledBackupsOKBodyScheduledBackupsItems0 `json:"scheduled_backups"` } @@ -494,9 +484,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 swag.IsZero(o.ScheduledBackups[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListScheduledBackupsOKBody) contextValidateScheduledBackups(ctx context return err } } - } return nil @@ -545,7 +532,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/backup/v1/json/client/backup_service/remove_scheduled_backup_parameters.go b/api/backup/v1/json/client/backup_service/remove_scheduled_backup_parameters.go index 5e16fc7570a..d1848495013 100644 --- a/api/backup/v1/json/client/backup_service/remove_scheduled_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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 { - // ScheduledBackupID. ScheduledBackupID string @@ -130,7 +129,6 @@ func (o *RemoveScheduledBackupParams) SetScheduledBackupID(scheduledBackupID str // 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/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go b/api/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go index 09788a97680..0a157b49f34 100644 --- a/api/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/remove_scheduled_backup_responses.go @@ -104,7 +104,6 @@ func (o *RemoveScheduledBackupOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *RemoveScheduledBackupDefault) GetPayload() *RemoveScheduledBackupDefaul } func (o *RemoveScheduledBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveScheduledBackupDefaultBody) // response payload @@ -192,7 +190,6 @@ RemoveScheduledBackupDefaultBody remove scheduled backup default body swagger:model RemoveScheduledBackupDefaultBody */ type RemoveScheduledBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *RemoveScheduledBackupDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -313,7 +307,6 @@ RemoveScheduledBackupDefaultBodyDetailsItems0 remove scheduled backup default bo swagger:model RemoveScheduledBackupDefaultBodyDetailsItems0 */ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type RemoveScheduledBackupDefaultBodyDetailsItems0 struct { func (o *RemoveScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *RemoveScheduledBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byt // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveScheduledBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/backup_service/schedule_backup_parameters.go b/api/backup/v1/json/client/backup_service/schedule_backup_parameters.go index 3a9140d3469..843f97f8cdb 100644 --- a/api/backup/v1/json/client/backup_service/schedule_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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/backup/v1/json/client/backup_service/schedule_backup_responses.go b/api/backup/v1/json/client/backup_service/schedule_backup_responses.go index 1c650b7bde2..84b170cf30d 100644 --- a/api/backup/v1/json/client/backup_service/schedule_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/schedule_backup_responses.go @@ -105,7 +105,6 @@ func (o *ScheduleBackupOK) GetPayload() *ScheduleBackupOKBody { } func (o *ScheduleBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ScheduleBackupOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ScheduleBackupDefault) GetPayload() *ScheduleBackupDefaultBody { } func (o *ScheduleBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ScheduleBackupDefaultBody) // response payload @@ -195,7 +193,6 @@ ScheduleBackupBody schedule backup body swagger:model ScheduleBackupBody */ type ScheduleBackupBody struct { - // Service identifier where backup should be performed. ServiceID string `json:"service_id,omitempty"` @@ -395,7 +392,6 @@ ScheduleBackupDefaultBody schedule backup default body swagger:model ScheduleBackupDefaultBody */ type ScheduleBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -465,9 +461,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 swag.IsZero(o.Details[i]) { // not required @@ -487,7 +481,6 @@ func (o *ScheduleBackupDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -516,7 +509,6 @@ ScheduleBackupDefaultBodyDetailsItems0 schedule backup default body details item swagger:model ScheduleBackupDefaultBodyDetailsItems0 */ type ScheduleBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -528,7 +520,6 @@ type ScheduleBackupDefaultBodyDetailsItems0 struct { func (o *ScheduleBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -566,7 +557,6 @@ func (o *ScheduleBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ScheduleBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -630,7 +620,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/backup/v1/json/client/backup_service/start_backup_parameters.go b/api/backup/v1/json/client/backup_service/start_backup_parameters.go index f6b1b4020ea..c886e6520d6 100644 --- a/api/backup/v1/json/client/backup_service/start_backup_parameters.go +++ b/api/backup/v1/json/client/backup_service/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/backup/v1/json/client/backup_service/start_backup_responses.go b/api/backup/v1/json/client/backup_service/start_backup_responses.go index 466948a9ce6..3137ce1bc85 100644 --- a/api/backup/v1/json/client/backup_service/start_backup_responses.go +++ b/api/backup/v1/json/client/backup_service/start_backup_responses.go @@ -105,7 +105,6 @@ func (o *StartBackupOK) GetPayload() *StartBackupOKBody { } func (o *StartBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartBackupOKBody) // response payload @@ -179,7 +178,6 @@ func (o *StartBackupDefault) GetPayload() *StartBackupDefaultBody { } func (o *StartBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartBackupDefaultBody) // response payload @@ -195,7 +193,6 @@ StartBackupBody start backup body swagger:model StartBackupBody */ type StartBackupBody struct { - // Service identifier. ServiceID string `json:"service_id,omitempty"` @@ -309,7 +306,6 @@ StartBackupDefaultBody start backup default body swagger:model StartBackupDefaultBody */ type StartBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -379,9 +375,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 swag.IsZero(o.Details[i]) { // not required @@ -401,7 +395,6 @@ func (o *StartBackupDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -430,7 +423,6 @@ StartBackupDefaultBodyDetailsItems0 start backup default body details items0 swagger:model StartBackupDefaultBodyDetailsItems0 */ type StartBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -442,7 +434,6 @@ type StartBackupDefaultBodyDetailsItems0 struct { func (o *StartBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -480,7 +471,6 @@ func (o *StartBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StartBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -544,7 +534,6 @@ StartBackupOKBody start backup OK body swagger:model StartBackupOKBody */ type StartBackupOKBody struct { - // Unique identifier. ArtifactID string `json:"artifact_id,omitempty"` } diff --git a/api/backup/v1/json/client/locations_service/add_location_parameters.go b/api/backup/v1/json/client/locations_service/add_location_parameters.go index f79768e1d20..a6fe1c12370 100644 --- a/api/backup/v1/json/client/locations_service/add_location_parameters.go +++ b/api/backup/v1/json/client/locations_service/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/backup/v1/json/client/locations_service/add_location_responses.go b/api/backup/v1/json/client/locations_service/add_location_responses.go index 7f936c3868e..fc373eed126 100644 --- a/api/backup/v1/json/client/locations_service/add_location_responses.go +++ b/api/backup/v1/json/client/locations_service/add_location_responses.go @@ -104,7 +104,6 @@ func (o *AddLocationOK) GetPayload() *AddLocationOKBody { } func (o *AddLocationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddLocationOKBody) // response payload @@ -178,7 +177,6 @@ func (o *AddLocationDefault) GetPayload() *AddLocationDefaultBody { } func (o *AddLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddLocationDefaultBody) // response payload @@ -194,7 +192,6 @@ AddLocationBody add location body swagger:model AddLocationBody */ type AddLocationBody struct { - // Location name Name string `json:"name,omitempty"` @@ -291,7 +288,6 @@ func (o *AddLocationBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *AddLocationBody) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { - if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -316,7 +312,6 @@ func (o *AddLocationBody) contextValidateFilesystemConfig(ctx context.Context, f } func (o *AddLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -363,7 +358,6 @@ AddLocationDefaultBody add location default body swagger:model AddLocationDefaultBody */ type AddLocationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -433,9 +427,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 swag.IsZero(o.Details[i]) { // not required @@ -455,7 +447,6 @@ func (o *AddLocationDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -484,7 +475,6 @@ AddLocationDefaultBodyDetailsItems0 add location default body details items0 swagger:model AddLocationDefaultBodyDetailsItems0 */ type AddLocationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -496,7 +486,6 @@ type AddLocationDefaultBodyDetailsItems0 struct { func (o *AddLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -534,7 +523,6 @@ func (o *AddLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddLocationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -598,7 +586,6 @@ AddLocationOKBody add location OK body swagger:model AddLocationOKBody */ type AddLocationOKBody struct { - // Machine-readable ID. LocationID string `json:"location_id,omitempty"` } @@ -636,7 +623,6 @@ AddLocationParamsBodyFilesystemConfig FilesystemLocationConfig represents file s swagger:model AddLocationParamsBodyFilesystemConfig */ type AddLocationParamsBodyFilesystemConfig struct { - // path Path string `json:"path,omitempty"` } @@ -674,7 +660,6 @@ AddLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configuratio swagger:model AddLocationParamsBodyS3Config */ type AddLocationParamsBodyS3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/locations_service/change_location_parameters.go b/api/backup/v1/json/client/locations_service/change_location_parameters.go index 7c817aec1b0..1b0e5bef6b0 100644 --- a/api/backup/v1/json/client/locations_service/change_location_parameters.go +++ b/api/backup/v1/json/client/locations_service/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 @@ -147,7 +146,6 @@ func (o *ChangeLocationParams) SetLocationID(locationID string) { // 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/backup/v1/json/client/locations_service/change_location_responses.go b/api/backup/v1/json/client/locations_service/change_location_responses.go index c2d4b96dcb0..54f0b55f31b 100644 --- a/api/backup/v1/json/client/locations_service/change_location_responses.go +++ b/api/backup/v1/json/client/locations_service/change_location_responses.go @@ -104,7 +104,6 @@ func (o *ChangeLocationOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *ChangeLocationDefault) GetPayload() *ChangeLocationDefaultBody { } func (o *ChangeLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeLocationDefaultBody) // response payload @@ -192,7 +190,6 @@ ChangeLocationBody change location body swagger:model ChangeLocationBody */ type ChangeLocationBody struct { - // Location name Name string `json:"name,omitempty"` @@ -289,7 +286,6 @@ func (o *ChangeLocationBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeLocationBody) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { - if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -314,7 +310,6 @@ func (o *ChangeLocationBody) contextValidateFilesystemConfig(ctx context.Context } func (o *ChangeLocationBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -361,7 +356,6 @@ ChangeLocationDefaultBody change location default body swagger:model ChangeLocationDefaultBody */ type ChangeLocationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -431,9 +425,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 swag.IsZero(o.Details[i]) { // not required @@ -453,7 +445,6 @@ func (o *ChangeLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -482,7 +473,6 @@ ChangeLocationDefaultBodyDetailsItems0 change location default body details item swagger:model ChangeLocationDefaultBodyDetailsItems0 */ type ChangeLocationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -494,7 +484,6 @@ type ChangeLocationDefaultBodyDetailsItems0 struct { func (o *ChangeLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -532,7 +521,6 @@ func (o *ChangeLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeLocationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -596,7 +584,6 @@ ChangeLocationParamsBodyFilesystemConfig FilesystemLocationConfig represents fil swagger:model ChangeLocationParamsBodyFilesystemConfig */ type ChangeLocationParamsBodyFilesystemConfig struct { - // path Path string `json:"path,omitempty"` } @@ -634,7 +621,6 @@ ChangeLocationParamsBodyS3Config S3LocationConfig represents S3 bucket configura swagger:model ChangeLocationParamsBodyS3Config */ type ChangeLocationParamsBodyS3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/locations_service/list_locations_parameters.go b/api/backup/v1/json/client/locations_service/list_locations_parameters.go index eb22d06cbc9..263117d982d 100644 --- a/api/backup/v1/json/client/locations_service/list_locations_parameters.go +++ b/api/backup/v1/json/client/locations_service/list_locations_parameters.go @@ -115,7 +115,6 @@ func (o *ListLocationsParams) SetHTTPClient(client *http.Client) { // 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/backup/v1/json/client/locations_service/list_locations_responses.go b/api/backup/v1/json/client/locations_service/list_locations_responses.go index 34c2600a41e..8d799fec0df 100644 --- a/api/backup/v1/json/client/locations_service/list_locations_responses.go +++ b/api/backup/v1/json/client/locations_service/list_locations_responses.go @@ -104,7 +104,6 @@ func (o *ListLocationsOK) GetPayload() *ListLocationsOKBody { } func (o *ListLocationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListLocationsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListLocationsDefault) GetPayload() *ListLocationsDefaultBody { } func (o *ListLocationsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListLocationsDefaultBody) // response payload @@ -194,7 +192,6 @@ ListLocationsDefaultBody list locations default body swagger:model ListLocationsDefaultBody */ type ListLocationsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListLocationsDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -315,7 +309,6 @@ ListLocationsDefaultBodyDetailsItems0 list locations default body details items0 swagger:model ListLocationsDefaultBodyDetailsItems0 */ type ListLocationsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListLocationsDefaultBodyDetailsItems0 struct { func (o *ListLocationsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListLocationsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListLocationsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListLocationsOKBody list locations OK body swagger:model ListLocationsOKBody */ type ListLocationsOKBody struct { - // locations Locations []*ListLocationsOKBodyLocationsItems0 `json:"locations"` } @@ -493,9 +483,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 swag.IsZero(o.Locations[i]) { // not required @@ -515,7 +503,6 @@ func (o *ListLocationsOKBody) contextValidateLocations(ctx context.Context, form return err } } - } return nil @@ -544,7 +531,6 @@ ListLocationsOKBodyLocationsItems0 Location represents single Backup Location. swagger:model ListLocationsOKBodyLocationsItems0 */ type ListLocationsOKBodyLocationsItems0 struct { - // Machine-readable ID. LocationID string `json:"location_id,omitempty"` @@ -644,7 +630,6 @@ func (o *ListLocationsOKBodyLocationsItems0) ContextValidate(ctx context.Context } func (o *ListLocationsOKBodyLocationsItems0) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { - if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -669,7 +654,6 @@ func (o *ListLocationsOKBodyLocationsItems0) contextValidateFilesystemConfig(ctx } func (o *ListLocationsOKBodyLocationsItems0) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -716,7 +700,6 @@ ListLocationsOKBodyLocationsItems0FilesystemConfig FilesystemLocationConfig repr swagger:model ListLocationsOKBodyLocationsItems0FilesystemConfig */ type ListLocationsOKBodyLocationsItems0FilesystemConfig struct { - // path Path string `json:"path,omitempty"` } @@ -754,7 +737,6 @@ ListLocationsOKBodyLocationsItems0S3Config S3LocationConfig represents S3 bucket swagger:model ListLocationsOKBodyLocationsItems0S3Config */ type ListLocationsOKBodyLocationsItems0S3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/locations_service/remove_location_parameters.go b/api/backup/v1/json/client/locations_service/remove_location_parameters.go index f806c18bdc1..3a4a644edd2 100644 --- a/api/backup/v1/json/client/locations_service/remove_location_parameters.go +++ b/api/backup/v1/json/client/locations_service/remove_location_parameters.go @@ -61,7 +61,6 @@ RemoveLocationParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveLocationParams struct { - /* Force. Force mode @@ -151,7 +150,6 @@ func (o *RemoveLocationParams) SetLocationID(locationID string) { // 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 } @@ -167,7 +165,6 @@ func (o *RemoveLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfm } qForce := swag.FormatBool(qrForce) if qForce != "" { - if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/backup/v1/json/client/locations_service/remove_location_responses.go b/api/backup/v1/json/client/locations_service/remove_location_responses.go index c1506cb9753..7ae1a7821fc 100644 --- a/api/backup/v1/json/client/locations_service/remove_location_responses.go +++ b/api/backup/v1/json/client/locations_service/remove_location_responses.go @@ -104,7 +104,6 @@ func (o *RemoveLocationOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *RemoveLocationDefault) GetPayload() *RemoveLocationDefaultBody { } func (o *RemoveLocationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveLocationDefaultBody) // response payload @@ -192,7 +190,6 @@ RemoveLocationDefaultBody remove location default body swagger:model RemoveLocationDefaultBody */ type RemoveLocationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *RemoveLocationDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -313,7 +307,6 @@ RemoveLocationDefaultBodyDetailsItems0 remove location default body details item swagger:model RemoveLocationDefaultBodyDetailsItems0 */ type RemoveLocationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type RemoveLocationDefaultBodyDetailsItems0 struct { func (o *RemoveLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *RemoveLocationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveLocationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/backup/v1/json/client/locations_service/test_location_config_parameters.go b/api/backup/v1/json/client/locations_service/test_location_config_parameters.go index c930393f8cc..1856fe0f364 100644 --- a/api/backup/v1/json/client/locations_service/test_location_config_parameters.go +++ b/api/backup/v1/json/client/locations_service/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/backup/v1/json/client/locations_service/test_location_config_responses.go b/api/backup/v1/json/client/locations_service/test_location_config_responses.go index d7daaa0f33a..70d3fc4eca0 100644 --- a/api/backup/v1/json/client/locations_service/test_location_config_responses.go +++ b/api/backup/v1/json/client/locations_service/test_location_config_responses.go @@ -104,7 +104,6 @@ func (o *TestLocationConfigOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *TestLocationConfigDefault) GetPayload() *TestLocationConfigDefaultBody } func (o *TestLocationConfigDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(TestLocationConfigDefaultBody) // response payload @@ -192,7 +190,6 @@ TestLocationConfigBody test location config body swagger:model TestLocationConfigBody */ type TestLocationConfigBody struct { - // filesystem config FilesystemConfig *TestLocationConfigParamsBodyFilesystemConfig `json:"filesystem_config,omitempty"` @@ -283,7 +280,6 @@ func (o *TestLocationConfigBody) ContextValidate(ctx context.Context, formats st } func (o *TestLocationConfigBody) contextValidateFilesystemConfig(ctx context.Context, formats strfmt.Registry) error { - if o.FilesystemConfig != nil { if swag.IsZero(o.FilesystemConfig) { // not required @@ -308,7 +304,6 @@ func (o *TestLocationConfigBody) contextValidateFilesystemConfig(ctx context.Con } func (o *TestLocationConfigBody) contextValidateS3Config(ctx context.Context, formats strfmt.Registry) error { - if o.S3Config != nil { if swag.IsZero(o.S3Config) { // not required @@ -355,7 +350,6 @@ TestLocationConfigDefaultBody test location config default body swagger:model TestLocationConfigDefaultBody */ type TestLocationConfigDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -425,9 +419,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 swag.IsZero(o.Details[i]) { // not required @@ -447,7 +439,6 @@ func (o *TestLocationConfigDefaultBody) contextValidateDetails(ctx context.Conte return err } } - } return nil @@ -476,7 +467,6 @@ TestLocationConfigDefaultBodyDetailsItems0 test location config default body det swagger:model TestLocationConfigDefaultBodyDetailsItems0 */ type TestLocationConfigDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -488,7 +478,6 @@ type TestLocationConfigDefaultBodyDetailsItems0 struct { func (o *TestLocationConfigDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -526,7 +515,6 @@ func (o *TestLocationConfigDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o TestLocationConfigDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -590,7 +578,6 @@ TestLocationConfigParamsBodyFilesystemConfig FilesystemLocationConfig represents swagger:model TestLocationConfigParamsBodyFilesystemConfig */ type TestLocationConfigParamsBodyFilesystemConfig struct { - // path Path string `json:"path,omitempty"` } @@ -628,7 +615,6 @@ TestLocationConfigParamsBodyS3Config S3LocationConfig represents S3 bucket confi swagger:model TestLocationConfigParamsBodyS3Config */ type TestLocationConfigParamsBodyS3Config struct { - // endpoint Endpoint string `json:"endpoint,omitempty"` diff --git a/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go b/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go index 0e417604cc6..b621fbb6800 100644 --- a/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go +++ b/api/backup/v1/json/client/restore_service/get_logs_mixin5_parameters.go @@ -61,7 +61,6 @@ GetLogsMixin5Params contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetLogsMixin5Params struct { - // Limit. // // Format: int64 @@ -163,7 +162,6 @@ func (o *GetLogsMixin5Params) SetRestoreID(restoreID string) { // WriteToRequest writes these params to a swagger request func (o *GetLogsMixin5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -179,7 +177,6 @@ func (o *GetLogsMixin5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { return err } @@ -196,7 +193,6 @@ func (o *GetLogsMixin5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt } qOffset := swag.FormatInt64(qrOffset) if qOffset != "" { - if err := r.SetQueryParam("offset", qOffset); err != nil { return err } diff --git a/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go b/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go index 52f8f8982a4..8adf159cd53 100644 --- a/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go +++ b/api/backup/v1/json/client/restore_service/get_logs_mixin5_responses.go @@ -104,7 +104,6 @@ func (o *GetLogsMixin5OK) GetPayload() *GetLogsMixin5OKBody { } func (o *GetLogsMixin5OK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsMixin5OKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetLogsMixin5Default) GetPayload() *GetLogsMixin5DefaultBody { } func (o *GetLogsMixin5Default) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLogsMixin5DefaultBody) // response payload @@ -194,7 +192,6 @@ GetLogsMixin5DefaultBody get logs mixin5 default body swagger:model GetLogsMixin5DefaultBody */ type GetLogsMixin5DefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *GetLogsMixin5DefaultBody) ContextValidate(ctx context.Context, formats } func (o *GetLogsMixin5DefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetLogsMixin5DefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -315,7 +309,6 @@ GetLogsMixin5DefaultBodyDetailsItems0 get logs mixin5 default body details items swagger:model GetLogsMixin5DefaultBodyDetailsItems0 */ type GetLogsMixin5DefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetLogsMixin5DefaultBodyDetailsItems0 struct { func (o *GetLogsMixin5DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetLogsMixin5DefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetLogsMixin5DefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetLogsMixin5OKBody get logs mixin5 OK body swagger:model GetLogsMixin5OKBody */ type GetLogsMixin5OKBody struct { - // logs Logs []*GetLogsMixin5OKBodyLogsItems0 `json:"logs"` @@ -496,9 +486,7 @@ func (o *GetLogsMixin5OKBody) ContextValidate(ctx context.Context, formats strfm } func (o *GetLogsMixin5OKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Logs); i++ { - if o.Logs[i] != nil { if swag.IsZero(o.Logs[i]) { // not required @@ -518,7 +506,6 @@ func (o *GetLogsMixin5OKBody) contextValidateLogs(ctx context.Context, formats s return err } } - } return nil @@ -547,7 +534,6 @@ GetLogsMixin5OKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetLogsMixin5OKBodyLogsItems0 */ type GetLogsMixin5OKBodyLogsItems0 struct { - // chunk id ChunkID int64 `json:"chunk_id,omitempty"` diff --git a/api/backup/v1/json/client/restore_service/list_restores_parameters.go b/api/backup/v1/json/client/restore_service/list_restores_parameters.go index fd958787b8b..d46fd70f9e4 100644 --- a/api/backup/v1/json/client/restore_service/list_restores_parameters.go +++ b/api/backup/v1/json/client/restore_service/list_restores_parameters.go @@ -115,7 +115,6 @@ func (o *ListRestoresParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListRestoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/backup/v1/json/client/restore_service/list_restores_responses.go b/api/backup/v1/json/client/restore_service/list_restores_responses.go index 472aa2e11aa..d3b45468b2f 100644 --- a/api/backup/v1/json/client/restore_service/list_restores_responses.go +++ b/api/backup/v1/json/client/restore_service/list_restores_responses.go @@ -105,7 +105,6 @@ func (o *ListRestoresOK) GetPayload() *ListRestoresOKBody { } func (o *ListRestoresOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListRestoresOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListRestoresDefault) GetPayload() *ListRestoresDefaultBody { } func (o *ListRestoresDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListRestoresDefaultBody) // response payload @@ -195,7 +193,6 @@ ListRestoresDefaultBody list restores default body swagger:model ListRestoresDefaultBody */ type ListRestoresDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListRestoresDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListRestoresDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListRestoresDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -316,7 +310,6 @@ ListRestoresDefaultBodyDetailsItems0 list restores default body details items0 swagger:model ListRestoresDefaultBodyDetailsItems0 */ type ListRestoresDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListRestoresDefaultBodyDetailsItems0 struct { func (o *ListRestoresDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListRestoresDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListRestoresDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListRestoresOKBody list restores OK body swagger:model ListRestoresOKBody */ type ListRestoresOKBody struct { - // items Items []*ListRestoresOKBodyItemsItems0 `json:"items"` } @@ -494,9 +484,7 @@ func (o *ListRestoresOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListRestoresOKBody) contextValidateItems(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Items); i++ { - if o.Items[i] != nil { if swag.IsZero(o.Items[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListRestoresOKBody) contextValidateItems(ctx context.Context, formats s return err } } - } return nil @@ -545,7 +532,6 @@ ListRestoresOKBodyItemsItems0 RestoreHistoryItem represents single backup restor swagger:model ListRestoresOKBodyItemsItems0 */ type ListRestoresOKBodyItemsItems0 struct { - // Machine-readable restore id. RestoreID string `json:"restore_id,omitempty"` diff --git a/api/backup/v1/json/client/restore_service/restore_backup_parameters.go b/api/backup/v1/json/client/restore_service/restore_backup_parameters.go index 343407b6017..4d6b7d7f955 100644 --- a/api/backup/v1/json/client/restore_service/restore_backup_parameters.go +++ b/api/backup/v1/json/client/restore_service/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/backup/v1/json/client/restore_service/restore_backup_responses.go b/api/backup/v1/json/client/restore_service/restore_backup_responses.go index 7392970ae81..1aa57a61322 100644 --- a/api/backup/v1/json/client/restore_service/restore_backup_responses.go +++ b/api/backup/v1/json/client/restore_service/restore_backup_responses.go @@ -105,7 +105,6 @@ func (o *RestoreBackupOK) GetPayload() *RestoreBackupOKBody { } func (o *RestoreBackupOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RestoreBackupOKBody) // response payload @@ -179,7 +178,6 @@ func (o *RestoreBackupDefault) GetPayload() *RestoreBackupDefaultBody { } func (o *RestoreBackupDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RestoreBackupDefaultBody) // response payload @@ -195,7 +193,6 @@ RestoreBackupBody restore backup body swagger:model RestoreBackupBody */ type RestoreBackupBody struct { - // Service identifier where backup should be restored. ServiceID string `json:"service_id,omitempty"` @@ -261,7 +258,6 @@ RestoreBackupDefaultBody restore backup default body swagger:model RestoreBackupDefaultBody */ type RestoreBackupDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -331,9 +327,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 swag.IsZero(o.Details[i]) { // not required @@ -353,7 +347,6 @@ func (o *RestoreBackupDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -382,7 +375,6 @@ RestoreBackupDefaultBodyDetailsItems0 restore backup default body details items0 swagger:model RestoreBackupDefaultBodyDetailsItems0 */ type RestoreBackupDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -394,7 +386,6 @@ type RestoreBackupDefaultBodyDetailsItems0 struct { func (o *RestoreBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -432,7 +423,6 @@ func (o *RestoreBackupDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RestoreBackupDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -496,7 +486,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/backup/v1/locations.pb.go b/api/backup/v1/locations.pb.go index 050f150f8ad..396b552ee80 100644 --- a/api/backup/v1/locations.pb.go +++ b/api/backup/v1/locations.pb.go @@ -7,15 +7,17 @@ package backupv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "github.com/percona/pmm/api/extensions/v1" _ "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" - unsafe "unsafe" + + _ "github.com/percona/pmm/api/extensions/v1" ) const ( @@ -813,22 +815,25 @@ func file_backup_v1_locations_proto_rawDescGZIP() []byte { return file_backup_v1_locations_proto_rawDescData } -var file_backup_v1_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_backup_v1_locations_proto_goTypes = []any{ - (*FilesystemLocationConfig)(nil), // 0: backup.v1.FilesystemLocationConfig - (*S3LocationConfig)(nil), // 1: backup.v1.S3LocationConfig - (*Location)(nil), // 2: backup.v1.Location - (*ListLocationsRequest)(nil), // 3: backup.v1.ListLocationsRequest - (*ListLocationsResponse)(nil), // 4: backup.v1.ListLocationsResponse - (*AddLocationRequest)(nil), // 5: backup.v1.AddLocationRequest - (*AddLocationResponse)(nil), // 6: backup.v1.AddLocationResponse - (*ChangeLocationRequest)(nil), // 7: backup.v1.ChangeLocationRequest - (*ChangeLocationResponse)(nil), // 8: backup.v1.ChangeLocationResponse - (*RemoveLocationRequest)(nil), // 9: backup.v1.RemoveLocationRequest - (*RemoveLocationResponse)(nil), // 10: backup.v1.RemoveLocationResponse - (*TestLocationConfigRequest)(nil), // 11: backup.v1.TestLocationConfigRequest - (*TestLocationConfigResponse)(nil), // 12: backup.v1.TestLocationConfigResponse -} +var ( + file_backup_v1_locations_proto_msgTypes = make([]protoimpl.MessageInfo, 13) + file_backup_v1_locations_proto_goTypes = []any{ + (*FilesystemLocationConfig)(nil), // 0: backup.v1.FilesystemLocationConfig + (*S3LocationConfig)(nil), // 1: backup.v1.S3LocationConfig + (*Location)(nil), // 2: backup.v1.Location + (*ListLocationsRequest)(nil), // 3: backup.v1.ListLocationsRequest + (*ListLocationsResponse)(nil), // 4: backup.v1.ListLocationsResponse + (*AddLocationRequest)(nil), // 5: backup.v1.AddLocationRequest + (*AddLocationResponse)(nil), // 6: backup.v1.AddLocationResponse + (*ChangeLocationRequest)(nil), // 7: backup.v1.ChangeLocationRequest + (*ChangeLocationResponse)(nil), // 8: backup.v1.ChangeLocationResponse + (*RemoveLocationRequest)(nil), // 9: backup.v1.RemoveLocationRequest + (*RemoveLocationResponse)(nil), // 10: backup.v1.RemoveLocationResponse + (*TestLocationConfigRequest)(nil), // 11: backup.v1.TestLocationConfigRequest + (*TestLocationConfigResponse)(nil), // 12: backup.v1.TestLocationConfigResponse + } +) + var file_backup_v1_locations_proto_depIdxs = []int32{ 0, // 0: backup.v1.Location.filesystem_config:type_name -> backup.v1.FilesystemLocationConfig 1, // 1: backup.v1.Location.s3_config:type_name -> backup.v1.S3LocationConfig diff --git a/api/backup/v1/locations_grpc.pb.go b/api/backup/v1/locations_grpc.pb.go index 628344a5a7c..15b1c781046 100644 --- a/api/backup/v1/locations_grpc.pb.go +++ b/api/backup/v1/locations_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -131,15 +132,19 @@ type UnimplementedLocationsServiceServer struct{} func (UnimplementedLocationsServiceServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListLocations not implemented") } + func (UnimplementedLocationsServiceServer) AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddLocation not implemented") } + func (UnimplementedLocationsServiceServer) ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeLocation not implemented") } + func (UnimplementedLocationsServiceServer) RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveLocation not implemented") } + func (UnimplementedLocationsServiceServer) TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, error) { return nil, status.Error(codes.Unimplemented, "method TestLocationConfig not implemented") } diff --git a/api/backup/v1/restores.pb.go b/api/backup/v1/restores.pb.go index 04d7b270102..272b5255d28 100644 --- a/api/backup/v1/restores.pb.go +++ b/api/backup/v1/restores.pb.go @@ -7,15 +7,16 @@ package backupv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" - unsafe "unsafe" ) const ( @@ -607,21 +608,24 @@ func file_backup_v1_restores_proto_rawDescGZIP() []byte { return file_backup_v1_restores_proto_rawDescData } -var file_backup_v1_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_backup_v1_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_backup_v1_restores_proto_goTypes = []any{ - (RestoreStatus)(0), // 0: backup.v1.RestoreStatus - (*RestoreHistoryItem)(nil), // 1: backup.v1.RestoreHistoryItem - (*ListRestoresRequest)(nil), // 2: backup.v1.ListRestoresRequest - (*ListRestoresResponse)(nil), // 3: backup.v1.ListRestoresResponse - (*RestoreServiceGetLogsRequest)(nil), // 4: backup.v1.RestoreServiceGetLogsRequest - (*RestoreServiceGetLogsResponse)(nil), // 5: backup.v1.RestoreServiceGetLogsResponse - (*RestoreBackupRequest)(nil), // 6: backup.v1.RestoreBackupRequest - (*RestoreBackupResponse)(nil), // 7: backup.v1.RestoreBackupResponse - (DataModel)(0), // 8: backup.v1.DataModel - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*LogChunk)(nil), // 10: backup.v1.LogChunk -} +var ( + file_backup_v1_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_backup_v1_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 7) + file_backup_v1_restores_proto_goTypes = []any{ + (RestoreStatus)(0), // 0: backup.v1.RestoreStatus + (*RestoreHistoryItem)(nil), // 1: backup.v1.RestoreHistoryItem + (*ListRestoresRequest)(nil), // 2: backup.v1.ListRestoresRequest + (*ListRestoresResponse)(nil), // 3: backup.v1.ListRestoresResponse + (*RestoreServiceGetLogsRequest)(nil), // 4: backup.v1.RestoreServiceGetLogsRequest + (*RestoreServiceGetLogsResponse)(nil), // 5: backup.v1.RestoreServiceGetLogsResponse + (*RestoreBackupRequest)(nil), // 6: backup.v1.RestoreBackupRequest + (*RestoreBackupResponse)(nil), // 7: backup.v1.RestoreBackupResponse + (DataModel)(0), // 8: backup.v1.DataModel + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*LogChunk)(nil), // 10: backup.v1.LogChunk + } +) + var file_backup_v1_restores_proto_depIdxs = []int32{ 8, // 0: backup.v1.RestoreHistoryItem.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.RestoreHistoryItem.status:type_name -> backup.v1.RestoreStatus diff --git a/api/backup/v1/restores_grpc.pb.go b/api/backup/v1/restores_grpc.pb.go index a7fdce1c5f0..c27c45e9f4e 100644 --- a/api/backup/v1/restores_grpc.pb.go +++ b/api/backup/v1/restores_grpc.pb.go @@ -8,6 +8,7 @@ package backupv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -101,9 +102,11 @@ type UnimplementedRestoreServiceServer struct{} func (UnimplementedRestoreServiceServer) ListRestores(context.Context, *ListRestoresRequest) (*ListRestoresResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRestores not implemented") } + func (UnimplementedRestoreServiceServer) GetLogs(context.Context, *RestoreServiceGetLogsRequest) (*RestoreServiceGetLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetLogs not implemented") } + func (UnimplementedRestoreServiceServer) RestoreBackup(context.Context, *RestoreBackupRequest) (*RestoreBackupResponse, error) { return nil, status.Error(codes.Unimplemented, "method RestoreBackup not implemented") } diff --git a/api/common/common.pb.go b/api/common/common.pb.go index 5c809939700..0d05883daa1 100644 --- a/api/common/common.pb.go +++ b/api/common/common.pb.go @@ -7,11 +7,12 @@ package common import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -138,12 +139,15 @@ func file_common_common_proto_rawDescGZIP() []byte { return file_common_common_proto_rawDescData } -var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_common_common_proto_goTypes = []any{ - (*StringArray)(nil), // 0: common.StringArray - (*StringMap)(nil), // 1: common.StringMap - nil, // 2: common.StringMap.ValuesEntry -} +var ( + file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_common_common_proto_goTypes = []any{ + (*StringArray)(nil), // 0: common.StringArray + (*StringMap)(nil), // 1: common.StringMap + nil, // 2: common.StringMap.ValuesEntry + } +) + var file_common_common_proto_depIdxs = []int32{ 2, // 0: common.StringMap.values:type_name -> common.StringMap.ValuesEntry 1, // [1:1] is the sub-list for method output_type diff --git a/api/common/metrics_resolutions.pb.go b/api/common/metrics_resolutions.pb.go index 30e99f3894f..75e587ba9a5 100644 --- a/api/common/metrics_resolutions.pb.go +++ b/api/common/metrics_resolutions.pb.go @@ -7,12 +7,13 @@ package common import ( - 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" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" ) const ( @@ -110,11 +111,14 @@ func file_common_metrics_resolutions_proto_rawDescGZIP() []byte { return file_common_metrics_resolutions_proto_rawDescData } -var file_common_metrics_resolutions_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_common_metrics_resolutions_proto_goTypes = []any{ - (*MetricsResolutions)(nil), // 0: common.MetricsResolutions - (*durationpb.Duration)(nil), // 1: google.protobuf.Duration -} +var ( + file_common_metrics_resolutions_proto_msgTypes = make([]protoimpl.MessageInfo, 1) + file_common_metrics_resolutions_proto_goTypes = []any{ + (*MetricsResolutions)(nil), // 0: common.MetricsResolutions + (*durationpb.Duration)(nil), // 1: google.protobuf.Duration + } +) + var file_common_metrics_resolutions_proto_depIdxs = []int32{ 1, // 0: common.MetricsResolutions.hr:type_name -> google.protobuf.Duration 1, // 1: common.MetricsResolutions.mr:type_name -> google.protobuf.Duration diff --git a/api/dump/v1beta1/dump.pb.go b/api/dump/v1beta1/dump.pb.go index cace98725a2..0edf763eb8c 100644 --- a/api/dump/v1beta1/dump.pb.go +++ b/api/dump/v1beta1/dump.pb.go @@ -7,16 +7,18 @@ package dumpv1beta1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "github.com/percona/pmm/api/extensions/v1" _ "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" - unsafe "unsafe" + + _ "github.com/percona/pmm/api/extensions/v1" ) const ( @@ -844,25 +846,28 @@ func file_dump_v1beta1_dump_proto_rawDescGZIP() []byte { return file_dump_v1beta1_dump_proto_rawDescData } -var file_dump_v1beta1_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_dump_v1beta1_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_dump_v1beta1_dump_proto_goTypes = []any{ - (DumpStatus)(0), // 0: dump.v1beta1.DumpStatus - (*Dump)(nil), // 1: dump.v1beta1.Dump - (*StartDumpRequest)(nil), // 2: dump.v1beta1.StartDumpRequest - (*StartDumpResponse)(nil), // 3: dump.v1beta1.StartDumpResponse - (*ListDumpsRequest)(nil), // 4: dump.v1beta1.ListDumpsRequest - (*ListDumpsResponse)(nil), // 5: dump.v1beta1.ListDumpsResponse - (*DeleteDumpRequest)(nil), // 6: dump.v1beta1.DeleteDumpRequest - (*DeleteDumpResponse)(nil), // 7: dump.v1beta1.DeleteDumpResponse - (*GetDumpLogsRequest)(nil), // 8: dump.v1beta1.GetDumpLogsRequest - (*GetDumpLogsResponse)(nil), // 9: dump.v1beta1.GetDumpLogsResponse - (*LogChunk)(nil), // 10: dump.v1beta1.LogChunk - (*SFTPParameters)(nil), // 11: dump.v1beta1.SFTPParameters - (*UploadDumpRequest)(nil), // 12: dump.v1beta1.UploadDumpRequest - (*UploadDumpResponse)(nil), // 13: dump.v1beta1.UploadDumpResponse - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp -} +var ( + file_dump_v1beta1_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_dump_v1beta1_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 13) + file_dump_v1beta1_dump_proto_goTypes = []any{ + (DumpStatus)(0), // 0: dump.v1beta1.DumpStatus + (*Dump)(nil), // 1: dump.v1beta1.Dump + (*StartDumpRequest)(nil), // 2: dump.v1beta1.StartDumpRequest + (*StartDumpResponse)(nil), // 3: dump.v1beta1.StartDumpResponse + (*ListDumpsRequest)(nil), // 4: dump.v1beta1.ListDumpsRequest + (*ListDumpsResponse)(nil), // 5: dump.v1beta1.ListDumpsResponse + (*DeleteDumpRequest)(nil), // 6: dump.v1beta1.DeleteDumpRequest + (*DeleteDumpResponse)(nil), // 7: dump.v1beta1.DeleteDumpResponse + (*GetDumpLogsRequest)(nil), // 8: dump.v1beta1.GetDumpLogsRequest + (*GetDumpLogsResponse)(nil), // 9: dump.v1beta1.GetDumpLogsResponse + (*LogChunk)(nil), // 10: dump.v1beta1.LogChunk + (*SFTPParameters)(nil), // 11: dump.v1beta1.SFTPParameters + (*UploadDumpRequest)(nil), // 12: dump.v1beta1.UploadDumpRequest + (*UploadDumpResponse)(nil), // 13: dump.v1beta1.UploadDumpResponse + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + } +) + var file_dump_v1beta1_dump_proto_depIdxs = []int32{ 0, // 0: dump.v1beta1.Dump.status:type_name -> dump.v1beta1.DumpStatus 14, // 1: dump.v1beta1.Dump.start_time:type_name -> google.protobuf.Timestamp diff --git a/api/dump/v1beta1/dump_grpc.pb.go b/api/dump/v1beta1/dump_grpc.pb.go index bb65b07cc1b..987f75bd579 100644 --- a/api/dump/v1beta1/dump_grpc.pb.go +++ b/api/dump/v1beta1/dump_grpc.pb.go @@ -8,6 +8,7 @@ package dumpv1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -127,15 +128,19 @@ type UnimplementedDumpServiceServer struct{} func (UnimplementedDumpServiceServer) StartDump(context.Context, *StartDumpRequest) (*StartDumpResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartDump not implemented") } + func (UnimplementedDumpServiceServer) ListDumps(context.Context, *ListDumpsRequest) (*ListDumpsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListDumps not implemented") } + func (UnimplementedDumpServiceServer) DeleteDump(context.Context, *DeleteDumpRequest) (*DeleteDumpResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteDump not implemented") } + func (UnimplementedDumpServiceServer) GetDumpLogs(context.Context, *GetDumpLogsRequest) (*GetDumpLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetDumpLogs not implemented") } + func (UnimplementedDumpServiceServer) UploadDump(context.Context, *UploadDumpRequest) (*UploadDumpResponse, error) { return nil, status.Error(codes.Unimplemented, "method UploadDump not implemented") } diff --git a/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go b/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go index 733240643c1..0c83d67b573 100644 --- a/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/delete_dump_parameters.go @@ -60,7 +60,6 @@ DeleteDumpParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type DeleteDumpParams struct { - // Body. Body DeleteDumpBody @@ -130,7 +129,6 @@ func (o *DeleteDumpParams) SetBody(body DeleteDumpBody) { // WriteToRequest writes these params to a swagger request func (o *DeleteDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go b/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go index 551a20314ae..d703d60a325 100644 --- a/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/delete_dump_responses.go @@ -104,7 +104,6 @@ func (o *DeleteDumpOK) GetPayload() any { } func (o *DeleteDumpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *DeleteDumpDefault) GetPayload() *DeleteDumpDefaultBody { } func (o *DeleteDumpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DeleteDumpDefaultBody) // response payload @@ -192,7 +190,6 @@ DeleteDumpBody delete dump body swagger:model DeleteDumpBody */ type DeleteDumpBody struct { - // dump ids DumpIds []string `json:"dump_ids"` } @@ -230,7 +227,6 @@ DeleteDumpDefaultBody delete dump default body swagger:model DeleteDumpDefaultBody */ type DeleteDumpDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,7 @@ func (o *DeleteDumpDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *DeleteDumpDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *DeleteDumpDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -351,7 +344,6 @@ DeleteDumpDefaultBodyDetailsItems0 delete dump default body details items0 swagger:model DeleteDumpDefaultBodyDetailsItems0 */ type DeleteDumpDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type DeleteDumpDefaultBodyDetailsItems0 struct { func (o *DeleteDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *DeleteDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o DeleteDumpDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go index 4be2f03898b..82ed2997d2d 100644 --- a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_parameters.go @@ -61,7 +61,6 @@ GetDumpLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetDumpLogsParams struct { - // DumpID. DumpID string @@ -163,7 +162,6 @@ func (o *GetDumpLogsParams) SetOffset(offset *int64) { // WriteToRequest writes these params to a swagger request func (o *GetDumpLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -184,7 +182,6 @@ func (o *GetDumpLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { return err } @@ -201,7 +198,6 @@ func (o *GetDumpLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } qOffset := swag.FormatInt64(qrOffset) if qOffset != "" { - if err := r.SetQueryParam("offset", qOffset); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go index a8749604dc0..8a0e0c45bef 100644 --- a/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/get_dump_logs_responses.go @@ -104,7 +104,6 @@ func (o *GetDumpLogsOK) GetPayload() *GetDumpLogsOKBody { } func (o *GetDumpLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetDumpLogsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetDumpLogsDefault) GetPayload() *GetDumpLogsDefaultBody { } func (o *GetDumpLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetDumpLogsDefaultBody) // response payload @@ -194,7 +192,6 @@ GetDumpLogsDefaultBody get dump logs default body swagger:model GetDumpLogsDefaultBody */ type GetDumpLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *GetDumpLogsDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *GetDumpLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetDumpLogsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -315,7 +309,6 @@ GetDumpLogsDefaultBodyDetailsItems0 get dump logs default body details items0 swagger:model GetDumpLogsDefaultBodyDetailsItems0 */ type GetDumpLogsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetDumpLogsDefaultBodyDetailsItems0 struct { func (o *GetDumpLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetDumpLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetDumpLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetDumpLogsOKBody get dump logs OK body swagger:model GetDumpLogsOKBody */ type GetDumpLogsOKBody struct { - // logs Logs []*GetDumpLogsOKBodyLogsItems0 `json:"logs"` @@ -496,9 +486,7 @@ func (o *GetDumpLogsOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *GetDumpLogsOKBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Logs); i++ { - if o.Logs[i] != nil { if swag.IsZero(o.Logs[i]) { // not required @@ -518,7 +506,6 @@ func (o *GetDumpLogsOKBody) contextValidateLogs(ctx context.Context, formats str return err } } - } return nil @@ -547,7 +534,6 @@ GetDumpLogsOKBodyLogsItems0 LogChunk represent one chunk of logs. swagger:model GetDumpLogsOKBodyLogsItems0 */ type GetDumpLogsOKBodyLogsItems0 struct { - // chunk id ChunkID int64 `json:"chunk_id,omitempty"` diff --git a/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go b/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go index 3ca0caf159f..dc28a36ad42 100644 --- a/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/list_dumps_parameters.go @@ -115,7 +115,6 @@ func (o *ListDumpsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListDumpsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go b/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go index edf749c4f40..6e37793be89 100644 --- a/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/list_dumps_responses.go @@ -105,7 +105,6 @@ func (o *ListDumpsOK) GetPayload() *ListDumpsOKBody { } func (o *ListDumpsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListDumpsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListDumpsDefault) GetPayload() *ListDumpsDefaultBody { } func (o *ListDumpsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListDumpsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListDumpsDefaultBody list dumps default body swagger:model ListDumpsDefaultBody */ type ListDumpsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListDumpsDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListDumpsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListDumpsDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -316,7 +310,6 @@ ListDumpsDefaultBodyDetailsItems0 list dumps default body details items0 swagger:model ListDumpsDefaultBodyDetailsItems0 */ type ListDumpsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListDumpsDefaultBodyDetailsItems0 struct { func (o *ListDumpsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListDumpsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListDumpsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListDumpsOKBody list dumps OK body swagger:model ListDumpsOKBody */ type ListDumpsOKBody struct { - // dumps Dumps []*ListDumpsOKBodyDumpsItems0 `json:"dumps"` } @@ -494,9 +484,7 @@ func (o *ListDumpsOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListDumpsOKBody) contextValidateDumps(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Dumps); i++ { - if o.Dumps[i] != nil { if swag.IsZero(o.Dumps[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListDumpsOKBody) contextValidateDumps(ctx context.Context, formats strf return err } } - } return nil @@ -545,7 +532,6 @@ ListDumpsOKBodyDumpsItems0 list dumps OK body dumps items0 swagger:model ListDumpsOKBodyDumpsItems0 */ type ListDumpsOKBodyDumpsItems0 struct { - // dump id DumpID string `json:"dump_id,omitempty"` diff --git a/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go b/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go index c456e5f494f..ac9f2ba90e8 100644 --- a/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/start_dump_parameters.go @@ -60,7 +60,6 @@ StartDumpParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartDumpParams struct { - // Body. Body StartDumpBody @@ -130,7 +129,6 @@ func (o *StartDumpParams) SetBody(body StartDumpBody) { // WriteToRequest writes these params to a swagger request func (o *StartDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go b/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go index 5bf88e94483..4e34e022214 100644 --- a/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/start_dump_responses.go @@ -105,7 +105,6 @@ func (o *StartDumpOK) GetPayload() *StartDumpOKBody { } func (o *StartDumpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartDumpOKBody) // response payload @@ -179,7 +178,6 @@ func (o *StartDumpDefault) GetPayload() *StartDumpDefaultBody { } func (o *StartDumpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartDumpDefaultBody) // response payload @@ -195,7 +193,6 @@ StartDumpBody start dump body swagger:model StartDumpBody */ type StartDumpBody struct { - // service names ServiceNames []string `json:"service_names"` @@ -284,7 +281,6 @@ StartDumpDefaultBody start dump default body swagger:model StartDumpDefaultBody */ type StartDumpDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -354,9 +350,7 @@ func (o *StartDumpDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *StartDumpDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -376,7 +370,6 @@ func (o *StartDumpDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -405,7 +398,6 @@ StartDumpDefaultBodyDetailsItems0 start dump default body details items0 swagger:model StartDumpDefaultBodyDetailsItems0 */ type StartDumpDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -417,7 +409,6 @@ type StartDumpDefaultBodyDetailsItems0 struct { func (o *StartDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -455,7 +446,6 @@ func (o *StartDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StartDumpDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -519,7 +509,6 @@ StartDumpOKBody start dump OK body swagger:model StartDumpOKBody */ type StartDumpOKBody struct { - // dump id DumpID string `json:"dump_id,omitempty"` } diff --git a/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go b/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go index 0073c54dd7a..0be24f481a8 100644 --- a/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go +++ b/api/dump/v1beta1/json/client/dump_service/upload_dump_parameters.go @@ -60,7 +60,6 @@ UploadDumpParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UploadDumpParams struct { - // Body. Body UploadDumpBody @@ -130,7 +129,6 @@ func (o *UploadDumpParams) SetBody(body UploadDumpBody) { // WriteToRequest writes these params to a swagger request func (o *UploadDumpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go b/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go index 96ff7aa4145..19cdb3631ac 100644 --- a/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go +++ b/api/dump/v1beta1/json/client/dump_service/upload_dump_responses.go @@ -104,7 +104,6 @@ func (o *UploadDumpOK) GetPayload() any { } func (o *UploadDumpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *UploadDumpDefault) GetPayload() *UploadDumpDefaultBody { } func (o *UploadDumpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UploadDumpDefaultBody) // response payload @@ -192,7 +190,6 @@ UploadDumpBody upload dump body swagger:model UploadDumpBody */ type UploadDumpBody struct { - // dump ids DumpIds []string `json:"dump_ids"` @@ -252,7 +249,6 @@ func (o *UploadDumpBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *UploadDumpBody) contextValidateSftpParameters(ctx context.Context, formats strfmt.Registry) error { - if o.SftpParameters != nil { if swag.IsZero(o.SftpParameters) { // not required @@ -299,7 +295,6 @@ UploadDumpDefaultBody upload dump default body swagger:model UploadDumpDefaultBody */ type UploadDumpDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -369,9 +364,7 @@ func (o *UploadDumpDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *UploadDumpDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -391,7 +384,6 @@ func (o *UploadDumpDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -420,7 +412,6 @@ UploadDumpDefaultBodyDetailsItems0 upload dump default body details items0 swagger:model UploadDumpDefaultBodyDetailsItems0 */ type UploadDumpDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -432,7 +423,6 @@ type UploadDumpDefaultBodyDetailsItems0 struct { func (o *UploadDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -470,7 +460,6 @@ func (o *UploadDumpDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o UploadDumpDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -534,7 +523,6 @@ UploadDumpParamsBodySftpParameters upload dump params body sftp parameters swagger:model UploadDumpParamsBodySftpParameters */ type UploadDumpParamsBodySftpParameters struct { - // address Address string `json:"address,omitempty"` diff --git a/api/extensions/v1/redact.pb.go b/api/extensions/v1/redact.pb.go index 9bd0d249d3a..da2dd6e5183 100644 --- a/api/extensions/v1/redact.pb.go +++ b/api/extensions/v1/redact.pb.go @@ -7,12 +7,13 @@ package extensionsv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" ) const ( @@ -127,11 +128,14 @@ func file_extensions_v1_redact_proto_rawDescGZIP() []byte { return file_extensions_v1_redact_proto_rawDescData } -var file_extensions_v1_redact_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_extensions_v1_redact_proto_goTypes = []any{ - (RedactType)(0), // 0: extensions.v1.RedactType - (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions -} +var ( + file_extensions_v1_redact_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_extensions_v1_redact_proto_goTypes = []any{ + (RedactType)(0), // 0: extensions.v1.RedactType + (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions + } +) + var file_extensions_v1_redact_proto_depIdxs = []int32{ 1, // 0: extensions.v1.sensitive:extendee -> google.protobuf.FieldOptions 0, // 1: extensions.v1.sensitive:type_name -> extensions.v1.RedactType diff --git a/api/ha/v1beta1/ha.pb.go b/api/ha/v1beta1/ha.pb.go index c592f717052..5b2c2efaf36 100644 --- a/api/ha/v1beta1/ha.pb.go +++ b/api/ha/v1beta1/ha.pb.go @@ -7,13 +7,14 @@ package hav1beta1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "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" - unsafe "unsafe" ) const ( @@ -338,16 +339,19 @@ func file_ha_v1beta1_ha_proto_rawDescGZIP() []byte { return file_ha_v1beta1_ha_proto_rawDescData } -var file_ha_v1beta1_ha_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_ha_v1beta1_ha_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_ha_v1beta1_ha_proto_goTypes = []any{ - (NodeRole)(0), // 0: ha.v1beta1.NodeRole - (*ListNodesRequest)(nil), // 1: ha.v1beta1.ListNodesRequest - (*HANode)(nil), // 2: ha.v1beta1.HANode - (*ListNodesResponse)(nil), // 3: ha.v1beta1.ListNodesResponse - (*StatusRequest)(nil), // 4: ha.v1beta1.StatusRequest - (*StatusResponse)(nil), // 5: ha.v1beta1.StatusResponse -} +var ( + file_ha_v1beta1_ha_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_ha_v1beta1_ha_proto_msgTypes = make([]protoimpl.MessageInfo, 5) + file_ha_v1beta1_ha_proto_goTypes = []any{ + (NodeRole)(0), // 0: ha.v1beta1.NodeRole + (*ListNodesRequest)(nil), // 1: ha.v1beta1.ListNodesRequest + (*HANode)(nil), // 2: ha.v1beta1.HANode + (*ListNodesResponse)(nil), // 3: ha.v1beta1.ListNodesResponse + (*StatusRequest)(nil), // 4: ha.v1beta1.StatusRequest + (*StatusResponse)(nil), // 5: ha.v1beta1.StatusResponse + } +) + var file_ha_v1beta1_ha_proto_depIdxs = []int32{ 0, // 0: ha.v1beta1.HANode.role:type_name -> ha.v1beta1.NodeRole 2, // 1: ha.v1beta1.ListNodesResponse.nodes:type_name -> ha.v1beta1.HANode diff --git a/api/ha/v1beta1/ha_grpc.pb.go b/api/ha/v1beta1/ha_grpc.pb.go index c723d8996be..75e664a29e5 100644 --- a/api/ha/v1beta1/ha_grpc.pb.go +++ b/api/ha/v1beta1/ha_grpc.pb.go @@ -8,6 +8,7 @@ package hav1beta1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -86,6 +87,7 @@ type UnimplementedHAServiceServer struct{} func (UnimplementedHAServiceServer) Status(context.Context, *StatusRequest) (*StatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method Status not implemented") } + func (UnimplementedHAServiceServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListNodes not implemented") } diff --git a/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go b/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go index 1e3652130cf..c74ca68dd4e 100644 --- a/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go +++ b/api/ha/v1beta1/json/client/ha_service/list_nodes_parameters.go @@ -115,7 +115,6 @@ func (o *ListNodesParams) SetHTTPClient(client *http.Client) { // 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/ha/v1beta1/json/client/ha_service/list_nodes_responses.go b/api/ha/v1beta1/json/client/ha_service/list_nodes_responses.go index 0a686180710..8661938e936 100644 --- a/api/ha/v1beta1/json/client/ha_service/list_nodes_responses.go +++ b/api/ha/v1beta1/json/client/ha_service/list_nodes_responses.go @@ -105,7 +105,6 @@ func (o *ListNodesOK) GetPayload() *ListNodesOKBody { } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesDefaultBody) // response payload @@ -195,7 +193,6 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -316,7 +310,6 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListNodesDefaultBodyDetailsItems0 struct { func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListNodesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { - // List of nodes in the HA cluster. Nodes []*ListNodesOKBodyNodesItems0 `json:"nodes"` } @@ -494,9 +484,7 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Nodes); i++ { - if o.Nodes[i] != nil { if swag.IsZero(o.Nodes[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strf return err } } - } return nil @@ -545,7 +532,6 @@ ListNodesOKBodyNodesItems0 HANode represents a single node in the HA cluster. swagger:model ListNodesOKBodyNodesItems0 */ type ListNodesOKBodyNodesItems0 struct { - // Human-readable name of the node. NodeName string `json:"node_name,omitempty"` diff --git a/api/ha/v1beta1/json/client/ha_service/status_parameters.go b/api/ha/v1beta1/json/client/ha_service/status_parameters.go index 1d287a5e4c0..161ac87d1e0 100644 --- a/api/ha/v1beta1/json/client/ha_service/status_parameters.go +++ b/api/ha/v1beta1/json/client/ha_service/status_parameters.go @@ -115,7 +115,6 @@ func (o *StatusParams) SetHTTPClient(client *http.Client) { // 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/ha/v1beta1/json/client/ha_service/status_responses.go b/api/ha/v1beta1/json/client/ha_service/status_responses.go index f2384b30038..4530572e2ba 100644 --- a/api/ha/v1beta1/json/client/ha_service/status_responses.go +++ b/api/ha/v1beta1/json/client/ha_service/status_responses.go @@ -104,7 +104,6 @@ func (o *StatusOK) GetPayload() *StatusOKBody { } func (o *StatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StatusOKBody) // response payload @@ -178,7 +177,6 @@ func (o *StatusDefault) GetPayload() *StatusDefaultBody { } func (o *StatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StatusDefaultBody) // response payload @@ -194,7 +192,6 @@ StatusDefaultBody status default body swagger:model StatusDefaultBody */ type StatusDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *StatusDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -315,7 +309,6 @@ StatusDefaultBodyDetailsItems0 status default body details items0 swagger:model StatusDefaultBodyDetailsItems0 */ type StatusDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type StatusDefaultBodyDetailsItems0 struct { func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *StatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StatusDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ StatusOKBody status OK body swagger:model StatusOKBody */ type StatusOKBody struct { - // Status of HA mode: "Enabled" or "Disabled". Status string `json:"status,omitempty"` } diff --git a/api/inventory/v1/agent_status.pb.go b/api/inventory/v1/agent_status.pb.go index 025bb50c788..01af45754b1 100644 --- a/api/inventory/v1/agent_status.pb.go +++ b/api/inventory/v1/agent_status.pb.go @@ -7,11 +7,12 @@ package inventoryv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -121,10 +122,13 @@ func file_inventory_v1_agent_status_proto_rawDescGZIP() []byte { return file_inventory_v1_agent_status_proto_rawDescData } -var file_inventory_v1_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventory_v1_agent_status_proto_goTypes = []any{ - (AgentStatus)(0), // 0: inventory.v1.AgentStatus -} +var ( + file_inventory_v1_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventory_v1_agent_status_proto_goTypes = []any{ + (AgentStatus)(0), // 0: inventory.v1.AgentStatus + } +) + var file_inventory_v1_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/inventory/v1/agents.pb.go b/api/inventory/v1/agents.pb.go index 8b6e6654776..169358ec7d5 100644 --- a/api/inventory/v1/agents.pb.go +++ b/api/inventory/v1/agents.pb.go @@ -7,17 +7,19 @@ package inventoryv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - common "github.com/percona/pmm/api/common" - _ "github.com/percona/pmm/api/extensions/v1" _ "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" - unsafe "unsafe" + + common "github.com/percona/pmm/api/common" + _ "github.com/percona/pmm/api/extensions/v1" ) const ( @@ -12242,123 +12244,126 @@ func file_inventory_v1_agents_proto_rawDescGZIP() []byte { return file_inventory_v1_agents_proto_rawDescData } -var file_inventory_v1_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) -var file_inventory_v1_agents_proto_goTypes = []any{ - (AgentType)(0), // 0: inventory.v1.AgentType - (*PMMAgent)(nil), // 1: inventory.v1.PMMAgent - (*VMAgent)(nil), // 2: inventory.v1.VMAgent - (*NomadAgent)(nil), // 3: inventory.v1.NomadAgent - (*NodeExporter)(nil), // 4: inventory.v1.NodeExporter - (*MySQLdExporter)(nil), // 5: inventory.v1.MySQLdExporter - (*MongoDBExporter)(nil), // 6: inventory.v1.MongoDBExporter - (*PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter - (*ProxySQLExporter)(nil), // 8: inventory.v1.ProxySQLExporter - (*ValkeyExporter)(nil), // 9: inventory.v1.ValkeyExporter - (*QANMySQLPerfSchemaAgent)(nil), // 10: inventory.v1.QANMySQLPerfSchemaAgent - (*QANMySQLSlowlogAgent)(nil), // 11: inventory.v1.QANMySQLSlowlogAgent - (*QANMongoDBProfilerAgent)(nil), // 12: inventory.v1.QANMongoDBProfilerAgent - (*QANMongoDBMongologAgent)(nil), // 13: inventory.v1.QANMongoDBMongologAgent - (*RTAOptions)(nil), // 14: inventory.v1.RTAOptions - (*RTAMongoDBAgent)(nil), // 15: inventory.v1.RTAMongoDBAgent - (*QANPostgreSQLPgStatementsAgent)(nil), // 16: inventory.v1.QANPostgreSQLPgStatementsAgent - (*QANPostgreSQLPgStatMonitorAgent)(nil), // 17: inventory.v1.QANPostgreSQLPgStatMonitorAgent - (*RDSExporter)(nil), // 18: inventory.v1.RDSExporter - (*ExternalExporter)(nil), // 19: inventory.v1.ExternalExporter - (*AzureDatabaseExporter)(nil), // 20: inventory.v1.AzureDatabaseExporter - (*ChangeCommonAgentParams)(nil), // 21: inventory.v1.ChangeCommonAgentParams - (*ListAgentsRequest)(nil), // 22: inventory.v1.ListAgentsRequest - (*ListAgentsResponse)(nil), // 23: inventory.v1.ListAgentsResponse - (*GetAgentRequest)(nil), // 24: inventory.v1.GetAgentRequest - (*GetAgentResponse)(nil), // 25: inventory.v1.GetAgentResponse - (*GetAgentLogsRequest)(nil), // 26: inventory.v1.GetAgentLogsRequest - (*GetAgentLogsResponse)(nil), // 27: inventory.v1.GetAgentLogsResponse - (*AddAgentRequest)(nil), // 28: inventory.v1.AddAgentRequest - (*AddAgentResponse)(nil), // 29: inventory.v1.AddAgentResponse - (*ChangeAgentRequest)(nil), // 30: inventory.v1.ChangeAgentRequest - (*ChangeAgentResponse)(nil), // 31: inventory.v1.ChangeAgentResponse - (*AddPMMAgentParams)(nil), // 32: inventory.v1.AddPMMAgentParams - (*AddNodeExporterParams)(nil), // 33: inventory.v1.AddNodeExporterParams - (*ChangeNodeExporterParams)(nil), // 34: inventory.v1.ChangeNodeExporterParams - (*AddMySQLdExporterParams)(nil), // 35: inventory.v1.AddMySQLdExporterParams - (*ChangeMySQLdExporterParams)(nil), // 36: inventory.v1.ChangeMySQLdExporterParams - (*AddMongoDBExporterParams)(nil), // 37: inventory.v1.AddMongoDBExporterParams - (*ChangeMongoDBExporterParams)(nil), // 38: inventory.v1.ChangeMongoDBExporterParams - (*AddPostgresExporterParams)(nil), // 39: inventory.v1.AddPostgresExporterParams - (*ChangePostgresExporterParams)(nil), // 40: inventory.v1.ChangePostgresExporterParams - (*AddProxySQLExporterParams)(nil), // 41: inventory.v1.AddProxySQLExporterParams - (*ChangeProxySQLExporterParams)(nil), // 42: inventory.v1.ChangeProxySQLExporterParams - (*AddQANMySQLPerfSchemaAgentParams)(nil), // 43: inventory.v1.AddQANMySQLPerfSchemaAgentParams - (*ChangeQANMySQLPerfSchemaAgentParams)(nil), // 44: inventory.v1.ChangeQANMySQLPerfSchemaAgentParams - (*AddQANMySQLSlowlogAgentParams)(nil), // 45: inventory.v1.AddQANMySQLSlowlogAgentParams - (*ChangeQANMySQLSlowlogAgentParams)(nil), // 46: inventory.v1.ChangeQANMySQLSlowlogAgentParams - (*AddQANMongoDBProfilerAgentParams)(nil), // 47: inventory.v1.AddQANMongoDBProfilerAgentParams - (*ChangeQANMongoDBProfilerAgentParams)(nil), // 48: inventory.v1.ChangeQANMongoDBProfilerAgentParams - (*AddQANMongoDBMongologAgentParams)(nil), // 49: inventory.v1.AddQANMongoDBMongologAgentParams - (*ChangeQANMongoDBMongologAgentParams)(nil), // 50: inventory.v1.ChangeQANMongoDBMongologAgentParams - (*AddQANPostgreSQLPgStatementsAgentParams)(nil), // 51: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams - (*ChangeQANPostgreSQLPgStatementsAgentParams)(nil), // 52: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentParams - (*AddQANPostgreSQLPgStatMonitorAgentParams)(nil), // 53: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams - (*ChangeQANPostgreSQLPgStatMonitorAgentParams)(nil), // 54: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentParams - (*AddRDSExporterParams)(nil), // 55: inventory.v1.AddRDSExporterParams - (*ChangeRDSExporterParams)(nil), // 56: inventory.v1.ChangeRDSExporterParams - (*AddExternalExporterParams)(nil), // 57: inventory.v1.AddExternalExporterParams - (*ChangeExternalExporterParams)(nil), // 58: inventory.v1.ChangeExternalExporterParams - (*AddAzureDatabaseExporterParams)(nil), // 59: inventory.v1.AddAzureDatabaseExporterParams - (*ChangeAzureDatabaseExporterParams)(nil), // 60: inventory.v1.ChangeAzureDatabaseExporterParams - (*ChangeNomadAgentParams)(nil), // 61: inventory.v1.ChangeNomadAgentParams - (*AddValkeyExporterParams)(nil), // 62: inventory.v1.AddValkeyExporterParams - (*ChangeValkeyExporterParams)(nil), // 63: inventory.v1.ChangeValkeyExporterParams - (*AddRTAMongoDBAgentParams)(nil), // 64: inventory.v1.AddRTAMongoDBAgentParams - (*ChangeRTAMongoDBAgentParams)(nil), // 65: inventory.v1.ChangeRTAMongoDBAgentParams - (*RemoveAgentRequest)(nil), // 66: inventory.v1.RemoveAgentRequest - (*RemoveAgentResponse)(nil), // 67: inventory.v1.RemoveAgentResponse - nil, // 68: inventory.v1.PMMAgent.CustomLabelsEntry - nil, // 69: inventory.v1.NodeExporter.CustomLabelsEntry - nil, // 70: inventory.v1.MySQLdExporter.CustomLabelsEntry - nil, // 71: inventory.v1.MySQLdExporter.ExtraDsnParamsEntry - nil, // 72: inventory.v1.MongoDBExporter.CustomLabelsEntry - nil, // 73: inventory.v1.PostgresExporter.CustomLabelsEntry - nil, // 74: inventory.v1.ProxySQLExporter.CustomLabelsEntry - nil, // 75: inventory.v1.ValkeyExporter.CustomLabelsEntry - nil, // 76: inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry - nil, // 77: inventory.v1.QANMySQLPerfSchemaAgent.ExtraDsnParamsEntry - nil, // 78: inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry - nil, // 79: inventory.v1.QANMySQLSlowlogAgent.ExtraDsnParamsEntry - nil, // 80: inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry - nil, // 81: inventory.v1.QANMongoDBMongologAgent.CustomLabelsEntry - nil, // 82: inventory.v1.RTAMongoDBAgent.CustomLabelsEntry - nil, // 83: inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry - nil, // 84: inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry - nil, // 85: inventory.v1.RDSExporter.CustomLabelsEntry - nil, // 86: inventory.v1.ExternalExporter.CustomLabelsEntry - nil, // 87: inventory.v1.AzureDatabaseExporter.CustomLabelsEntry - nil, // 88: inventory.v1.AddPMMAgentParams.CustomLabelsEntry - nil, // 89: inventory.v1.AddNodeExporterParams.CustomLabelsEntry - nil, // 90: inventory.v1.AddMySQLdExporterParams.CustomLabelsEntry - nil, // 91: inventory.v1.AddMySQLdExporterParams.ExtraDsnParamsEntry - nil, // 92: inventory.v1.AddMongoDBExporterParams.CustomLabelsEntry - nil, // 93: inventory.v1.AddPostgresExporterParams.CustomLabelsEntry - nil, // 94: inventory.v1.AddProxySQLExporterParams.CustomLabelsEntry - nil, // 95: inventory.v1.AddQANMySQLPerfSchemaAgentParams.CustomLabelsEntry - nil, // 96: inventory.v1.AddQANMySQLPerfSchemaAgentParams.ExtraDsnParamsEntry - nil, // 97: inventory.v1.AddQANMySQLSlowlogAgentParams.CustomLabelsEntry - nil, // 98: inventory.v1.AddQANMySQLSlowlogAgentParams.ExtraDsnParamsEntry - nil, // 99: inventory.v1.AddQANMongoDBProfilerAgentParams.CustomLabelsEntry - nil, // 100: inventory.v1.AddQANMongoDBMongologAgentParams.CustomLabelsEntry - nil, // 101: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.CustomLabelsEntry - nil, // 102: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.CustomLabelsEntry - nil, // 103: inventory.v1.AddRDSExporterParams.CustomLabelsEntry - nil, // 104: inventory.v1.AddExternalExporterParams.CustomLabelsEntry - nil, // 105: inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry - nil, // 106: inventory.v1.AddValkeyExporterParams.CustomLabelsEntry - nil, // 107: inventory.v1.AddRTAMongoDBAgentParams.CustomLabelsEntry - (AgentStatus)(0), // 108: inventory.v1.AgentStatus - (LogLevel)(0), // 109: inventory.v1.LogLevel - (*common.MetricsResolutions)(nil), // 110: common.MetricsResolutions - (*durationpb.Duration)(nil), // 111: google.protobuf.Duration - (*common.StringMap)(nil), // 112: common.StringMap -} +var ( + file_inventory_v1_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) + file_inventory_v1_agents_proto_goTypes = []any{ + (AgentType)(0), // 0: inventory.v1.AgentType + (*PMMAgent)(nil), // 1: inventory.v1.PMMAgent + (*VMAgent)(nil), // 2: inventory.v1.VMAgent + (*NomadAgent)(nil), // 3: inventory.v1.NomadAgent + (*NodeExporter)(nil), // 4: inventory.v1.NodeExporter + (*MySQLdExporter)(nil), // 5: inventory.v1.MySQLdExporter + (*MongoDBExporter)(nil), // 6: inventory.v1.MongoDBExporter + (*PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter + (*ProxySQLExporter)(nil), // 8: inventory.v1.ProxySQLExporter + (*ValkeyExporter)(nil), // 9: inventory.v1.ValkeyExporter + (*QANMySQLPerfSchemaAgent)(nil), // 10: inventory.v1.QANMySQLPerfSchemaAgent + (*QANMySQLSlowlogAgent)(nil), // 11: inventory.v1.QANMySQLSlowlogAgent + (*QANMongoDBProfilerAgent)(nil), // 12: inventory.v1.QANMongoDBProfilerAgent + (*QANMongoDBMongologAgent)(nil), // 13: inventory.v1.QANMongoDBMongologAgent + (*RTAOptions)(nil), // 14: inventory.v1.RTAOptions + (*RTAMongoDBAgent)(nil), // 15: inventory.v1.RTAMongoDBAgent + (*QANPostgreSQLPgStatementsAgent)(nil), // 16: inventory.v1.QANPostgreSQLPgStatementsAgent + (*QANPostgreSQLPgStatMonitorAgent)(nil), // 17: inventory.v1.QANPostgreSQLPgStatMonitorAgent + (*RDSExporter)(nil), // 18: inventory.v1.RDSExporter + (*ExternalExporter)(nil), // 19: inventory.v1.ExternalExporter + (*AzureDatabaseExporter)(nil), // 20: inventory.v1.AzureDatabaseExporter + (*ChangeCommonAgentParams)(nil), // 21: inventory.v1.ChangeCommonAgentParams + (*ListAgentsRequest)(nil), // 22: inventory.v1.ListAgentsRequest + (*ListAgentsResponse)(nil), // 23: inventory.v1.ListAgentsResponse + (*GetAgentRequest)(nil), // 24: inventory.v1.GetAgentRequest + (*GetAgentResponse)(nil), // 25: inventory.v1.GetAgentResponse + (*GetAgentLogsRequest)(nil), // 26: inventory.v1.GetAgentLogsRequest + (*GetAgentLogsResponse)(nil), // 27: inventory.v1.GetAgentLogsResponse + (*AddAgentRequest)(nil), // 28: inventory.v1.AddAgentRequest + (*AddAgentResponse)(nil), // 29: inventory.v1.AddAgentResponse + (*ChangeAgentRequest)(nil), // 30: inventory.v1.ChangeAgentRequest + (*ChangeAgentResponse)(nil), // 31: inventory.v1.ChangeAgentResponse + (*AddPMMAgentParams)(nil), // 32: inventory.v1.AddPMMAgentParams + (*AddNodeExporterParams)(nil), // 33: inventory.v1.AddNodeExporterParams + (*ChangeNodeExporterParams)(nil), // 34: inventory.v1.ChangeNodeExporterParams + (*AddMySQLdExporterParams)(nil), // 35: inventory.v1.AddMySQLdExporterParams + (*ChangeMySQLdExporterParams)(nil), // 36: inventory.v1.ChangeMySQLdExporterParams + (*AddMongoDBExporterParams)(nil), // 37: inventory.v1.AddMongoDBExporterParams + (*ChangeMongoDBExporterParams)(nil), // 38: inventory.v1.ChangeMongoDBExporterParams + (*AddPostgresExporterParams)(nil), // 39: inventory.v1.AddPostgresExporterParams + (*ChangePostgresExporterParams)(nil), // 40: inventory.v1.ChangePostgresExporterParams + (*AddProxySQLExporterParams)(nil), // 41: inventory.v1.AddProxySQLExporterParams + (*ChangeProxySQLExporterParams)(nil), // 42: inventory.v1.ChangeProxySQLExporterParams + (*AddQANMySQLPerfSchemaAgentParams)(nil), // 43: inventory.v1.AddQANMySQLPerfSchemaAgentParams + (*ChangeQANMySQLPerfSchemaAgentParams)(nil), // 44: inventory.v1.ChangeQANMySQLPerfSchemaAgentParams + (*AddQANMySQLSlowlogAgentParams)(nil), // 45: inventory.v1.AddQANMySQLSlowlogAgentParams + (*ChangeQANMySQLSlowlogAgentParams)(nil), // 46: inventory.v1.ChangeQANMySQLSlowlogAgentParams + (*AddQANMongoDBProfilerAgentParams)(nil), // 47: inventory.v1.AddQANMongoDBProfilerAgentParams + (*ChangeQANMongoDBProfilerAgentParams)(nil), // 48: inventory.v1.ChangeQANMongoDBProfilerAgentParams + (*AddQANMongoDBMongologAgentParams)(nil), // 49: inventory.v1.AddQANMongoDBMongologAgentParams + (*ChangeQANMongoDBMongologAgentParams)(nil), // 50: inventory.v1.ChangeQANMongoDBMongologAgentParams + (*AddQANPostgreSQLPgStatementsAgentParams)(nil), // 51: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams + (*ChangeQANPostgreSQLPgStatementsAgentParams)(nil), // 52: inventory.v1.ChangeQANPostgreSQLPgStatementsAgentParams + (*AddQANPostgreSQLPgStatMonitorAgentParams)(nil), // 53: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams + (*ChangeQANPostgreSQLPgStatMonitorAgentParams)(nil), // 54: inventory.v1.ChangeQANPostgreSQLPgStatMonitorAgentParams + (*AddRDSExporterParams)(nil), // 55: inventory.v1.AddRDSExporterParams + (*ChangeRDSExporterParams)(nil), // 56: inventory.v1.ChangeRDSExporterParams + (*AddExternalExporterParams)(nil), // 57: inventory.v1.AddExternalExporterParams + (*ChangeExternalExporterParams)(nil), // 58: inventory.v1.ChangeExternalExporterParams + (*AddAzureDatabaseExporterParams)(nil), // 59: inventory.v1.AddAzureDatabaseExporterParams + (*ChangeAzureDatabaseExporterParams)(nil), // 60: inventory.v1.ChangeAzureDatabaseExporterParams + (*ChangeNomadAgentParams)(nil), // 61: inventory.v1.ChangeNomadAgentParams + (*AddValkeyExporterParams)(nil), // 62: inventory.v1.AddValkeyExporterParams + (*ChangeValkeyExporterParams)(nil), // 63: inventory.v1.ChangeValkeyExporterParams + (*AddRTAMongoDBAgentParams)(nil), // 64: inventory.v1.AddRTAMongoDBAgentParams + (*ChangeRTAMongoDBAgentParams)(nil), // 65: inventory.v1.ChangeRTAMongoDBAgentParams + (*RemoveAgentRequest)(nil), // 66: inventory.v1.RemoveAgentRequest + (*RemoveAgentResponse)(nil), // 67: inventory.v1.RemoveAgentResponse + nil, // 68: inventory.v1.PMMAgent.CustomLabelsEntry + nil, // 69: inventory.v1.NodeExporter.CustomLabelsEntry + nil, // 70: inventory.v1.MySQLdExporter.CustomLabelsEntry + nil, // 71: inventory.v1.MySQLdExporter.ExtraDsnParamsEntry + nil, // 72: inventory.v1.MongoDBExporter.CustomLabelsEntry + nil, // 73: inventory.v1.PostgresExporter.CustomLabelsEntry + nil, // 74: inventory.v1.ProxySQLExporter.CustomLabelsEntry + nil, // 75: inventory.v1.ValkeyExporter.CustomLabelsEntry + nil, // 76: inventory.v1.QANMySQLPerfSchemaAgent.CustomLabelsEntry + nil, // 77: inventory.v1.QANMySQLPerfSchemaAgent.ExtraDsnParamsEntry + nil, // 78: inventory.v1.QANMySQLSlowlogAgent.CustomLabelsEntry + nil, // 79: inventory.v1.QANMySQLSlowlogAgent.ExtraDsnParamsEntry + nil, // 80: inventory.v1.QANMongoDBProfilerAgent.CustomLabelsEntry + nil, // 81: inventory.v1.QANMongoDBMongologAgent.CustomLabelsEntry + nil, // 82: inventory.v1.RTAMongoDBAgent.CustomLabelsEntry + nil, // 83: inventory.v1.QANPostgreSQLPgStatementsAgent.CustomLabelsEntry + nil, // 84: inventory.v1.QANPostgreSQLPgStatMonitorAgent.CustomLabelsEntry + nil, // 85: inventory.v1.RDSExporter.CustomLabelsEntry + nil, // 86: inventory.v1.ExternalExporter.CustomLabelsEntry + nil, // 87: inventory.v1.AzureDatabaseExporter.CustomLabelsEntry + nil, // 88: inventory.v1.AddPMMAgentParams.CustomLabelsEntry + nil, // 89: inventory.v1.AddNodeExporterParams.CustomLabelsEntry + nil, // 90: inventory.v1.AddMySQLdExporterParams.CustomLabelsEntry + nil, // 91: inventory.v1.AddMySQLdExporterParams.ExtraDsnParamsEntry + nil, // 92: inventory.v1.AddMongoDBExporterParams.CustomLabelsEntry + nil, // 93: inventory.v1.AddPostgresExporterParams.CustomLabelsEntry + nil, // 94: inventory.v1.AddProxySQLExporterParams.CustomLabelsEntry + nil, // 95: inventory.v1.AddQANMySQLPerfSchemaAgentParams.CustomLabelsEntry + nil, // 96: inventory.v1.AddQANMySQLPerfSchemaAgentParams.ExtraDsnParamsEntry + nil, // 97: inventory.v1.AddQANMySQLSlowlogAgentParams.CustomLabelsEntry + nil, // 98: inventory.v1.AddQANMySQLSlowlogAgentParams.ExtraDsnParamsEntry + nil, // 99: inventory.v1.AddQANMongoDBProfilerAgentParams.CustomLabelsEntry + nil, // 100: inventory.v1.AddQANMongoDBMongologAgentParams.CustomLabelsEntry + nil, // 101: inventory.v1.AddQANPostgreSQLPgStatementsAgentParams.CustomLabelsEntry + nil, // 102: inventory.v1.AddQANPostgreSQLPgStatMonitorAgentParams.CustomLabelsEntry + nil, // 103: inventory.v1.AddRDSExporterParams.CustomLabelsEntry + nil, // 104: inventory.v1.AddExternalExporterParams.CustomLabelsEntry + nil, // 105: inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry + nil, // 106: inventory.v1.AddValkeyExporterParams.CustomLabelsEntry + nil, // 107: inventory.v1.AddRTAMongoDBAgentParams.CustomLabelsEntry + (AgentStatus)(0), // 108: inventory.v1.AgentStatus + (LogLevel)(0), // 109: inventory.v1.LogLevel + (*common.MetricsResolutions)(nil), // 110: common.MetricsResolutions + (*durationpb.Duration)(nil), // 111: google.protobuf.Duration + (*common.StringMap)(nil), // 112: common.StringMap + } +) + var file_inventory_v1_agents_proto_depIdxs = []int32{ 68, // 0: inventory.v1.PMMAgent.custom_labels:type_name -> inventory.v1.PMMAgent.CustomLabelsEntry 108, // 1: inventory.v1.VMAgent.status:type_name -> inventory.v1.AgentStatus diff --git a/api/inventory/v1/agents.pb.validate.go b/api/inventory/v1/agents.pb.validate.go index 0f2d68e9a5f..7e45f186227 100644 --- a/api/inventory/v1/agents.pb.validate.go +++ b/api/inventory/v1/agents.pb.validate.go @@ -2909,7 +2909,6 @@ func (m *ChangeCommonAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -2938,7 +2937,6 @@ func (m *ChangeCommonAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -8612,7 +8610,6 @@ func (m *ChangeNodeExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -8641,7 +8638,6 @@ func (m *ChangeNodeExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -8955,7 +8951,6 @@ func (m *ChangeMySQLdExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -8984,7 +8979,6 @@ func (m *ChangeMySQLdExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -9333,7 +9327,6 @@ func (m *ChangeMongoDBExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -9362,7 +9355,6 @@ func (m *ChangeMongoDBExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -9729,7 +9721,6 @@ func (m *ChangePostgresExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -9758,7 +9749,6 @@ func (m *ChangePostgresExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -10107,7 +10097,6 @@ func (m *ChangeProxySQLExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -10136,7 +10125,6 @@ func (m *ChangeProxySQLExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -10473,7 +10461,6 @@ func (m *ChangeQANMySQLPerfSchemaAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -10502,7 +10489,6 @@ func (m *ChangeQANMySQLPerfSchemaAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -10860,7 +10846,6 @@ func (m *ChangeQANMySQLSlowlogAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -10889,7 +10874,6 @@ func (m *ChangeQANMySQLSlowlogAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -11240,7 +11224,6 @@ func (m *ChangeQANMongoDBProfilerAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -11269,7 +11252,6 @@ func (m *ChangeQANMongoDBProfilerAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -11612,7 +11594,6 @@ func (m *ChangeQANMongoDBMongologAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -11641,7 +11622,6 @@ func (m *ChangeQANMongoDBMongologAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -11993,7 +11973,6 @@ func (m *ChangeQANPostgreSQLPgStatementsAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -12022,7 +12001,6 @@ func (m *ChangeQANPostgreSQLPgStatementsAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -12372,7 +12350,6 @@ func (m *ChangeQANPostgreSQLPgStatMonitorAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -12401,7 +12378,6 @@ func (m *ChangeQANPostgreSQLPgStatMonitorAgentParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -12730,7 +12706,6 @@ func (m *ChangeRDSExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -12759,7 +12734,6 @@ func (m *ChangeRDSExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -13062,7 +13036,6 @@ func (m *ChangeExternalExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -13091,7 +13064,6 @@ func (m *ChangeExternalExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -13406,7 +13378,6 @@ func (m *ChangeAzureDatabaseExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -13435,7 +13406,6 @@ func (m *ChangeAzureDatabaseExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -13878,7 +13848,6 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -13907,7 +13876,6 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } } } - } if m.EnablePushMetrics != nil { @@ -13915,7 +13883,6 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } if m.Username != nil { - if utf8.RuneCountInString(m.GetUsername()) < 1 { err := ChangeValkeyExporterParamsValidationError{ field: "Username", @@ -13926,7 +13893,6 @@ func (m *ChangeValkeyExporterParams) validate(all bool) error { } errors = append(errors, err) } - } if m.Password != nil { @@ -14247,7 +14213,6 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -14276,7 +14241,6 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } } } - } if m.LogLevel != nil { @@ -14316,7 +14280,6 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } if m.RtaOptions != nil { - if all { switch v := interface{}(m.GetRtaOptions()).(type) { case interface{ ValidateAll() error }: @@ -14345,7 +14308,6 @@ func (m *ChangeRTAMongoDBAgentParams) validate(all bool) error { } } } - } if len(errors) > 0 { diff --git a/api/inventory/v1/agents_grpc.pb.go b/api/inventory/v1/agents_grpc.pb.go index bfb234718bc..0b4c6fc63e1 100644 --- a/api/inventory/v1/agents_grpc.pb.go +++ b/api/inventory/v1/agents_grpc.pb.go @@ -8,6 +8,7 @@ package inventoryv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -146,18 +147,23 @@ type UnimplementedAgentsServiceServer struct{} func (UnimplementedAgentsServiceServer) ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAgents not implemented") } + func (UnimplementedAgentsServiceServer) GetAgent(context.Context, *GetAgentRequest) (*GetAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAgent not implemented") } + func (UnimplementedAgentsServiceServer) GetAgentLogs(context.Context, *GetAgentLogsRequest) (*GetAgentLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAgentLogs not implemented") } + func (UnimplementedAgentsServiceServer) AddAgent(context.Context, *AddAgentRequest) (*AddAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddAgent not implemented") } + func (UnimplementedAgentsServiceServer) ChangeAgent(context.Context, *ChangeAgentRequest) (*ChangeAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeAgent not implemented") } + func (UnimplementedAgentsServiceServer) RemoveAgent(context.Context, *RemoveAgentRequest) (*RemoveAgentResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveAgent not implemented") } diff --git a/api/inventory/v1/json/client/agents_service/add_agent_parameters.go b/api/inventory/v1/json/client/agents_service/add_agent_parameters.go index cb8c62d2ad0..eca45926526 100644 --- a/api/inventory/v1/json/client/agents_service/add_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/add_agent_parameters.go @@ -60,7 +60,6 @@ AddAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddAgentParams struct { - // Body. Body AddAgentBody @@ -130,7 +129,6 @@ func (o *AddAgentParams) SetBody(body AddAgentBody) { // WriteToRequest writes these params to a swagger request func (o *AddAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/add_agent_responses.go b/api/inventory/v1/json/client/agents_service/add_agent_responses.go index 92ad62dcef5..b11c2f86fc3 100644 --- a/api/inventory/v1/json/client/agents_service/add_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/add_agent_responses.go @@ -105,7 +105,6 @@ func (o *AddAgentOK) GetPayload() *AddAgentOKBody { } func (o *AddAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAgentOKBody) // response payload @@ -179,7 +178,6 @@ func (o *AddAgentDefault) GetPayload() *AddAgentDefaultBody { } func (o *AddAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAgentDefaultBody) // response payload @@ -195,7 +193,6 @@ AddAgentBody add agent body swagger:model AddAgentBody */ type AddAgentBody struct { - // azure database exporter AzureDatabaseExporter *AddAgentParamsBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -796,7 +793,6 @@ func (o *AddAgentBody) ContextValidate(ctx context.Context, formats strfmt.Regis } func (o *AddAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -821,7 +817,6 @@ func (o *AddAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, } func (o *AddAgentBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -846,7 +841,6 @@ func (o *AddAgentBody) contextValidateExternalExporter(ctx context.Context, form } func (o *AddAgentBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -871,7 +865,6 @@ func (o *AddAgentBody) contextValidateMongodbExporter(ctx context.Context, forma } func (o *AddAgentBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -896,7 +889,6 @@ func (o *AddAgentBody) contextValidateMysqldExporter(ctx context.Context, format } func (o *AddAgentBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -921,7 +913,6 @@ func (o *AddAgentBody) contextValidateNodeExporter(ctx context.Context, formats } func (o *AddAgentBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { if swag.IsZero(o.PMMAgent) { // not required @@ -946,7 +937,6 @@ func (o *AddAgentBody) contextValidatePMMAgent(ctx context.Context, formats strf } func (o *AddAgentBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -971,7 +961,6 @@ func (o *AddAgentBody) contextValidatePostgresExporter(ctx context.Context, form } func (o *AddAgentBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -996,7 +985,6 @@ func (o *AddAgentBody) contextValidateProxysqlExporter(ctx context.Context, form } func (o *AddAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -1021,7 +1009,6 @@ func (o *AddAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Contex } func (o *AddAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -1046,7 +1033,6 @@ func (o *AddAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Contex } func (o *AddAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -1071,7 +1057,6 @@ func (o *AddAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Contex } func (o *AddAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -1096,7 +1081,6 @@ func (o *AddAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, } func (o *AddAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -1121,7 +1105,6 @@ func (o *AddAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context } func (o *AddAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -1146,7 +1129,6 @@ func (o *AddAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx contex } func (o *AddAgentBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -1171,7 +1153,6 @@ func (o *AddAgentBody) contextValidateRDSExporter(ctx context.Context, formats s } func (o *AddAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -1196,7 +1177,6 @@ func (o *AddAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, forma } func (o *AddAgentBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1243,7 +1223,6 @@ AddAgentDefaultBody add agent default body swagger:model AddAgentDefaultBody */ type AddAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -1313,9 +1292,7 @@ func (o *AddAgentDefaultBody) ContextValidate(ctx context.Context, formats strfm } func (o *AddAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -1335,7 +1312,6 @@ func (o *AddAgentDefaultBody) contextValidateDetails(ctx context.Context, format return err } } - } return nil @@ -1364,7 +1340,6 @@ AddAgentDefaultBodyDetailsItems0 add agent default body details items0 swagger:model AddAgentDefaultBodyDetailsItems0 */ type AddAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -1376,7 +1351,6 @@ type AddAgentDefaultBodyDetailsItems0 struct { func (o *AddAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1414,7 +1388,6 @@ func (o *AddAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1478,7 +1451,6 @@ AddAgentOKBody add agent OK body swagger:model AddAgentOKBody */ type AddAgentOKBody struct { - // azure database exporter AzureDatabaseExporter *AddAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -2079,7 +2051,6 @@ func (o *AddAgentOKBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -2104,7 +2075,6 @@ func (o *AddAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Contex } func (o *AddAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2129,7 +2099,6 @@ func (o *AddAgentOKBody) contextValidateExternalExporter(ctx context.Context, fo } func (o *AddAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -2154,7 +2123,6 @@ func (o *AddAgentOKBody) contextValidateMongodbExporter(ctx context.Context, for } func (o *AddAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -2179,7 +2147,6 @@ func (o *AddAgentOKBody) contextValidateMysqldExporter(ctx context.Context, form } func (o *AddAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -2204,7 +2171,6 @@ func (o *AddAgentOKBody) contextValidateNodeExporter(ctx context.Context, format } func (o *AddAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { if swag.IsZero(o.PMMAgent) { // not required @@ -2229,7 +2195,6 @@ func (o *AddAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats st } func (o *AddAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -2254,7 +2219,6 @@ func (o *AddAgentOKBody) contextValidatePostgresExporter(ctx context.Context, fo } func (o *AddAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -2279,7 +2243,6 @@ func (o *AddAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, fo } func (o *AddAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -2304,7 +2267,6 @@ func (o *AddAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Cont } func (o *AddAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -2329,7 +2291,6 @@ func (o *AddAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Cont } func (o *AddAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -2354,7 +2315,6 @@ func (o *AddAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Cont } func (o *AddAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -2379,7 +2339,6 @@ func (o *AddAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context } func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -2404,7 +2363,6 @@ func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx conte } func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -2429,7 +2387,6 @@ func (o *AddAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx cont } func (o *AddAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -2454,7 +2411,6 @@ func (o *AddAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats } func (o *AddAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -2479,7 +2435,6 @@ func (o *AddAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, for } func (o *AddAgentOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -2526,7 +2481,6 @@ AddAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or Con swagger:model AddAgentOKBodyAzureDatabaseExporter */ type AddAgentOKBodyAzureDatabaseExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2753,7 +2707,6 @@ func (o *AddAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Contex } func (o *AddAgentOKBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2800,7 +2753,6 @@ AddAgentOKBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions represe swagger:model AddAgentOKBodyAzureDatabaseExporterMetricsResolutions */ type AddAgentOKBodyAzureDatabaseExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2844,7 +2796,6 @@ AddAgentOKBodyExternalExporter ExternalExporter runs on any Node type, including swagger:model AddAgentOKBodyExternalExporter */ type AddAgentOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3013,7 +2964,6 @@ func (o *AddAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, fo } func (o *AddAgentOKBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3060,7 +3010,6 @@ AddAgentOKBodyExternalExporterMetricsResolutions MetricsResolutions represents P swagger:model AddAgentOKBodyExternalExporterMetricsResolutions */ type AddAgentOKBodyExternalExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3104,7 +3053,6 @@ AddAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container Node swagger:model AddAgentOKBodyMongodbExporter */ type AddAgentOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3353,7 +3301,6 @@ func (o *AddAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, for } func (o *AddAgentOKBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3400,7 +3347,6 @@ AddAgentOKBodyMongodbExporterMetricsResolutions MetricsResolutions represents Pr swagger:model AddAgentOKBodyMongodbExporterMetricsResolutions */ type AddAgentOKBodyMongodbExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3444,7 +3390,6 @@ AddAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node an swagger:model AddAgentOKBodyMysqldExporter */ type AddAgentOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3703,7 +3648,6 @@ func (o *AddAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, form } func (o *AddAgentOKBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3750,7 +3694,6 @@ AddAgentOKBodyMysqldExporterMetricsResolutions MetricsResolutions represents Pro swagger:model AddAgentOKBodyMysqldExporterMetricsResolutions */ type AddAgentOKBodyMysqldExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3794,7 +3737,6 @@ AddAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and ex swagger:model AddAgentOKBodyNodeExporter */ type AddAgentOKBodyNodeExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4018,7 +3960,6 @@ func (o *AddAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, format } func (o *AddAgentOKBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4065,7 +4006,6 @@ AddAgentOKBodyNodeExporterMetricsResolutions MetricsResolutions represents Prome swagger:model AddAgentOKBodyNodeExporterMetricsResolutions */ type AddAgentOKBodyNodeExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4109,7 +4049,6 @@ AddAgentOKBodyPMMAgent PMMAgent runs on Generic or Container Node. swagger:model AddAgentOKBodyPMMAgent */ type AddAgentOKBodyPMMAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4159,7 +4098,6 @@ AddAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container Nod swagger:model AddAgentOKBodyPostgresExporter */ type AddAgentOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4401,7 +4339,6 @@ func (o *AddAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, fo } func (o *AddAgentOKBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4448,7 +4385,6 @@ AddAgentOKBodyPostgresExporterMetricsResolutions MetricsResolutions represents P swagger:model AddAgentOKBodyPostgresExporterMetricsResolutions */ type AddAgentOKBodyPostgresExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4492,7 +4428,6 @@ AddAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container Nod swagger:model AddAgentOKBodyProxysqlExporter */ type AddAgentOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4728,7 +4663,6 @@ func (o *AddAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, fo } func (o *AddAgentOKBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4775,7 +4709,6 @@ AddAgentOKBodyProxysqlExporterMetricsResolutions MetricsResolutions represents P swagger:model AddAgentOKBodyProxysqlExporterMetricsResolutions */ type AddAgentOKBodyProxysqlExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4819,7 +4752,6 @@ AddAgentOKBodyQANMongodbMongologAgent QANMongoDBMongologAgent runs within pmm-ag swagger:model AddAgentOKBodyQANMongodbMongologAgent */ type AddAgentOKBodyQANMongodbMongologAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5029,7 +4961,6 @@ AddAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-ag swagger:model AddAgentOKBodyQANMongodbProfilerAgent */ type AddAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5239,7 +5170,6 @@ AddAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model AddAgentOKBodyQANMysqlPerfschemaAgent */ type AddAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5467,7 +5397,6 @@ AddAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent an swagger:model AddAgentOKBodyQANMysqlSlowlogAgent */ type AddAgentOKBodyQANMysqlSlowlogAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5698,7 +5627,6 @@ AddAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs swagger:model AddAgentOKBodyQANPostgresqlPgstatementsAgent */ type AddAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5911,7 +5839,6 @@ AddAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent ru swagger:model AddAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type AddAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6127,7 +6054,6 @@ AddAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and expo swagger:model AddAgentOKBodyRDSExporter */ type AddAgentOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6360,7 +6286,6 @@ func (o *AddAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, formats } func (o *AddAgentOKBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6407,7 +6332,6 @@ AddAgentOKBodyRDSExporterMetricsResolutions MetricsResolutions represents Promet swagger:model AddAgentOKBodyRDSExporterMetricsResolutions */ type AddAgentOKBodyRDSExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6451,7 +6375,6 @@ AddAgentOKBodyRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and sends Mo swagger:model AddAgentOKBodyRtaMongodbAgent */ type AddAgentOKBodyRtaMongodbAgent struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -6672,7 +6595,6 @@ func (o *AddAgentOKBodyRtaMongodbAgent) ContextValidate(ctx context.Context, for } func (o *AddAgentOKBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -6719,7 +6641,6 @@ AddAgentOKBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Analyti swagger:model AddAgentOKBodyRtaMongodbAgentRtaOptions */ type AddAgentOKBodyRtaMongodbAgentRtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -6757,7 +6678,6 @@ AddAgentOKBodyValkeyExporter ValkeyExporter runs on Generic or Container Node an swagger:model AddAgentOKBodyValkeyExporter */ type AddAgentOKBodyValkeyExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6929,7 +6849,6 @@ func (o *AddAgentOKBodyValkeyExporter) ContextValidate(ctx context.Context, form } func (o *AddAgentOKBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6976,7 +6895,6 @@ AddAgentOKBodyValkeyExporterMetricsResolutions MetricsResolutions represents Pro swagger:model AddAgentOKBodyValkeyExporterMetricsResolutions */ type AddAgentOKBodyValkeyExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7020,7 +6938,6 @@ AddAgentParamsBodyAzureDatabaseExporter add agent params body azure database exp swagger:model AddAgentParamsBodyAzureDatabaseExporter */ type AddAgentParamsBodyAzureDatabaseExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7157,7 +7074,6 @@ AddAgentParamsBodyExternalExporter add agent params body external exporter swagger:model AddAgentParamsBodyExternalExporter */ type AddAgentParamsBodyExternalExporter struct { - // The node identifier where this instance is run. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -7222,7 +7138,6 @@ AddAgentParamsBodyMongodbExporter add agent params body mongodb exporter swagger:model AddAgentParamsBodyMongodbExporter */ type AddAgentParamsBodyMongodbExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7393,7 +7308,6 @@ AddAgentParamsBodyMysqldExporter add agent params body mysqld exporter swagger:model AddAgentParamsBodyMysqldExporter */ type AddAgentParamsBodyMysqldExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7550,7 +7464,6 @@ AddAgentParamsBodyNodeExporter add agent params body node exporter swagger:model AddAgentParamsBodyNodeExporter */ type AddAgentParamsBodyNodeExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7669,7 +7582,6 @@ AddAgentParamsBodyPMMAgent add agent params body PMM agent swagger:model AddAgentParamsBodyPMMAgent */ type AddAgentParamsBodyPMMAgent struct { - // Node identifier where this instance runs. RunsOnNodeID string `json:"runs_on_node_id,omitempty"` @@ -7710,7 +7622,6 @@ AddAgentParamsBodyPostgresExporter add agent params body postgres exporter swagger:model AddAgentParamsBodyPostgresExporter */ type AddAgentParamsBodyPostgresExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -7865,7 +7776,6 @@ AddAgentParamsBodyProxysqlExporter add agent params body proxysql exporter swagger:model AddAgentParamsBodyProxysqlExporter */ type AddAgentParamsBodyProxysqlExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8005,7 +7915,6 @@ AddAgentParamsBodyQANMongodbMongologAgent add agent params body QAN mongodb mong swagger:model AddAgentParamsBodyQANMongodbMongologAgent */ type AddAgentParamsBodyQANMongodbMongologAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8153,7 +8062,6 @@ AddAgentParamsBodyQANMongodbProfilerAgent add agent params body QAN mongodb prof swagger:model AddAgentParamsBodyQANMongodbProfilerAgent */ type AddAgentParamsBodyQANMongodbProfilerAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8301,7 +8209,6 @@ AddAgentParamsBodyQANMysqlPerfschemaAgent add agent params body QAN mysql perfsc swagger:model AddAgentParamsBodyQANMysqlPerfschemaAgent */ type AddAgentParamsBodyQANMysqlPerfschemaAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8450,7 +8357,6 @@ AddAgentParamsBodyQANMysqlSlowlogAgent add agent params body QAN mysql slowlog a swagger:model AddAgentParamsBodyQANMysqlSlowlogAgent */ type AddAgentParamsBodyQANMysqlSlowlogAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8603,7 +8509,6 @@ AddAgentParamsBodyQANPostgresqlPgstatementsAgent add agent params body QAN postg swagger:model AddAgentParamsBodyQANPostgresqlPgstatementsAgent */ type AddAgentParamsBodyQANPostgresqlPgstatementsAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8746,7 +8651,6 @@ AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent add agent params body QAN post swagger:model AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent */ type AddAgentParamsBodyQANPostgresqlPgstatmonitorAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -8892,7 +8796,6 @@ AddAgentParamsBodyRDSExporter add agent params body RDS exporter swagger:model AddAgentParamsBodyRDSExporter */ type AddAgentParamsBodyRDSExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -9023,7 +8926,6 @@ AddAgentParamsBodyRtaMongodbAgent add agent params body rta mongodb agent swagger:model AddAgentParamsBodyRtaMongodbAgent */ type AddAgentParamsBodyRtaMongodbAgent struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` @@ -9183,7 +9085,6 @@ func (o *AddAgentParamsBodyRtaMongodbAgent) ContextValidate(ctx context.Context, } func (o *AddAgentParamsBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -9230,7 +9131,6 @@ AddAgentParamsBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Ana swagger:model AddAgentParamsBodyRtaMongodbAgentRtaOptions */ type AddAgentParamsBodyRtaMongodbAgentRtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -9268,7 +9168,6 @@ AddAgentParamsBodyValkeyExporter add agent params body valkey exporter swagger:model AddAgentParamsBodyValkeyExporter */ type AddAgentParamsBodyValkeyExporter struct { - // The pmm-agent identifier which runs this instance. PMMAgentID string `json:"pmm_agent_id,omitempty"` diff --git a/api/inventory/v1/json/client/agents_service/change_agent_parameters.go b/api/inventory/v1/json/client/agents_service/change_agent_parameters.go index 142e0f54487..c683f8aeb08 100644 --- a/api/inventory/v1/json/client/agents_service/change_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/change_agent_parameters.go @@ -60,7 +60,6 @@ ChangeAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeAgentParams struct { - // AgentID. AgentID string @@ -144,7 +143,6 @@ func (o *ChangeAgentParams) SetBody(body ChangeAgentBody) { // WriteToRequest writes these params to a swagger request func (o *ChangeAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/change_agent_responses.go b/api/inventory/v1/json/client/agents_service/change_agent_responses.go index 1f8243bc800..efd1d7e7a74 100644 --- a/api/inventory/v1/json/client/agents_service/change_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/change_agent_responses.go @@ -105,7 +105,6 @@ func (o *ChangeAgentOK) GetPayload() *ChangeAgentOKBody { } func (o *ChangeAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeAgentOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ChangeAgentDefault) GetPayload() *ChangeAgentDefaultBody { } func (o *ChangeAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeAgentDefaultBody) // response payload @@ -195,7 +193,6 @@ ChangeAgentBody change agent body swagger:model ChangeAgentBody */ type ChangeAgentBody struct { - // azure database exporter AzureDatabaseExporter *ChangeAgentParamsBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -796,7 +793,6 @@ func (o *ChangeAgentBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ChangeAgentBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -821,7 +817,6 @@ func (o *ChangeAgentBody) contextValidateAzureDatabaseExporter(ctx context.Conte } func (o *ChangeAgentBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -846,7 +841,6 @@ func (o *ChangeAgentBody) contextValidateExternalExporter(ctx context.Context, f } func (o *ChangeAgentBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -871,7 +865,6 @@ func (o *ChangeAgentBody) contextValidateMongodbExporter(ctx context.Context, fo } func (o *ChangeAgentBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -896,7 +889,6 @@ func (o *ChangeAgentBody) contextValidateMysqldExporter(ctx context.Context, for } func (o *ChangeAgentBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -921,7 +913,6 @@ func (o *ChangeAgentBody) contextValidateNodeExporter(ctx context.Context, forma } func (o *ChangeAgentBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { - if o.NomadAgent != nil { if swag.IsZero(o.NomadAgent) { // not required @@ -946,7 +937,6 @@ func (o *ChangeAgentBody) contextValidateNomadAgent(ctx context.Context, formats } func (o *ChangeAgentBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -971,7 +961,6 @@ func (o *ChangeAgentBody) contextValidatePostgresExporter(ctx context.Context, f } func (o *ChangeAgentBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -996,7 +985,6 @@ func (o *ChangeAgentBody) contextValidateProxysqlExporter(ctx context.Context, f } func (o *ChangeAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -1021,7 +1009,6 @@ func (o *ChangeAgentBody) contextValidateQANMongodbMongologAgent(ctx context.Con } func (o *ChangeAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -1046,7 +1033,6 @@ func (o *ChangeAgentBody) contextValidateQANMongodbProfilerAgent(ctx context.Con } func (o *ChangeAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -1071,7 +1057,6 @@ func (o *ChangeAgentBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Con } func (o *ChangeAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -1096,7 +1081,6 @@ func (o *ChangeAgentBody) contextValidateQANMysqlSlowlogAgent(ctx context.Contex } func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -1121,7 +1105,6 @@ func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatementsAgent(ctx cont } func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -1146,7 +1129,6 @@ func (o *ChangeAgentBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx con } func (o *ChangeAgentBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -1171,7 +1153,6 @@ func (o *ChangeAgentBody) contextValidateRDSExporter(ctx context.Context, format } func (o *ChangeAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -1196,7 +1177,6 @@ func (o *ChangeAgentBody) contextValidateRtaMongodbAgent(ctx context.Context, fo } func (o *ChangeAgentBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1243,7 +1223,6 @@ ChangeAgentDefaultBody change agent default body swagger:model ChangeAgentDefaultBody */ type ChangeAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -1313,9 +1292,7 @@ func (o *ChangeAgentDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *ChangeAgentDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -1335,7 +1312,6 @@ func (o *ChangeAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -1364,7 +1340,6 @@ ChangeAgentDefaultBodyDetailsItems0 change agent default body details items0 swagger:model ChangeAgentDefaultBodyDetailsItems0 */ type ChangeAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -1376,7 +1351,6 @@ type ChangeAgentDefaultBodyDetailsItems0 struct { func (o *ChangeAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1414,7 +1388,6 @@ func (o *ChangeAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1478,7 +1451,6 @@ ChangeAgentOKBody change agent OK body swagger:model ChangeAgentOKBody */ type ChangeAgentOKBody struct { - // azure database exporter AzureDatabaseExporter *ChangeAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -2079,7 +2051,6 @@ func (o *ChangeAgentOKBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ChangeAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Context, formats strfmt.Registry) error { - if o.AzureDatabaseExporter != nil { if swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -2104,7 +2075,6 @@ func (o *ChangeAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Con } func (o *ChangeAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2129,7 +2099,6 @@ func (o *ChangeAgentOKBody) contextValidateExternalExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -2154,7 +2123,6 @@ func (o *ChangeAgentOKBody) contextValidateMongodbExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -2179,7 +2147,6 @@ func (o *ChangeAgentOKBody) contextValidateMysqldExporter(ctx context.Context, f } func (o *ChangeAgentOKBody) contextValidateNodeExporter(ctx context.Context, formats strfmt.Registry) error { - if o.NodeExporter != nil { if swag.IsZero(o.NodeExporter) { // not required @@ -2204,7 +2171,6 @@ func (o *ChangeAgentOKBody) contextValidateNodeExporter(ctx context.Context, for } func (o *ChangeAgentOKBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { - if o.NomadAgent != nil { if swag.IsZero(o.NomadAgent) { // not required @@ -2229,7 +2195,6 @@ func (o *ChangeAgentOKBody) contextValidateNomadAgent(ctx context.Context, forma } func (o *ChangeAgentOKBody) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -2254,7 +2219,6 @@ func (o *ChangeAgentOKBody) contextValidatePostgresExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -2279,7 +2243,6 @@ func (o *ChangeAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -2304,7 +2267,6 @@ func (o *ChangeAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.C } func (o *ChangeAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -2329,7 +2291,6 @@ func (o *ChangeAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.C } func (o *ChangeAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -2354,7 +2315,6 @@ func (o *ChangeAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.C } func (o *ChangeAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -2379,7 +2339,6 @@ func (o *ChangeAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Cont } func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -2404,7 +2363,6 @@ func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx co } func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -2429,7 +2387,6 @@ func (o *ChangeAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx c } func (o *ChangeAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -2454,7 +2411,6 @@ func (o *ChangeAgentOKBody) contextValidateRDSExporter(ctx context.Context, form } func (o *ChangeAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -2479,7 +2435,6 @@ func (o *ChangeAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, } func (o *ChangeAgentOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -2526,7 +2481,6 @@ ChangeAgentOKBodyAzureDatabaseExporter AzureDatabaseExporter runs on Generic or swagger:model ChangeAgentOKBodyAzureDatabaseExporter */ type ChangeAgentOKBodyAzureDatabaseExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2753,7 +2707,6 @@ func (o *ChangeAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Con } func (o *ChangeAgentOKBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2800,7 +2753,6 @@ ChangeAgentOKBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions repr swagger:model ChangeAgentOKBodyAzureDatabaseExporterMetricsResolutions */ type ChangeAgentOKBodyAzureDatabaseExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2844,7 +2796,6 @@ ChangeAgentOKBodyExternalExporter ExternalExporter runs on any Node type, includ swagger:model ChangeAgentOKBodyExternalExporter */ type ChangeAgentOKBodyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3013,7 +2964,6 @@ func (o *ChangeAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3060,7 +3010,6 @@ ChangeAgentOKBodyExternalExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentOKBodyExternalExporterMetricsResolutions */ type ChangeAgentOKBodyExternalExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3104,7 +3053,6 @@ ChangeAgentOKBodyMongodbExporter MongoDBExporter runs on Generic or Container No swagger:model ChangeAgentOKBodyMongodbExporter */ type ChangeAgentOKBodyMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3353,7 +3301,6 @@ func (o *ChangeAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3400,7 +3347,6 @@ ChangeAgentOKBodyMongodbExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentOKBodyMongodbExporterMetricsResolutions */ type ChangeAgentOKBodyMongodbExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3444,7 +3390,6 @@ ChangeAgentOKBodyMysqldExporter MySQLdExporter runs on Generic or Container Node swagger:model ChangeAgentOKBodyMysqldExporter */ type ChangeAgentOKBodyMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3703,7 +3648,6 @@ func (o *ChangeAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, f } func (o *ChangeAgentOKBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3750,7 +3694,6 @@ ChangeAgentOKBodyMysqldExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentOKBodyMysqldExporterMetricsResolutions */ type ChangeAgentOKBodyMysqldExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3794,7 +3737,6 @@ ChangeAgentOKBodyNodeExporter NodeExporter runs on Generic or Container Node and swagger:model ChangeAgentOKBodyNodeExporter */ type ChangeAgentOKBodyNodeExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4018,7 +3960,6 @@ func (o *ChangeAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, for } func (o *ChangeAgentOKBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4065,7 +4006,6 @@ ChangeAgentOKBodyNodeExporterMetricsResolutions MetricsResolutions represents Pr swagger:model ChangeAgentOKBodyNodeExporterMetricsResolutions */ type ChangeAgentOKBodyNodeExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4109,7 +4049,6 @@ ChangeAgentOKBodyNomadAgent change agent OK body nomad agent swagger:model ChangeAgentOKBodyNomadAgent */ type ChangeAgentOKBodyNomadAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4240,7 +4179,6 @@ ChangeAgentOKBodyPostgresExporter PostgresExporter runs on Generic or Container swagger:model ChangeAgentOKBodyPostgresExporter */ type ChangeAgentOKBodyPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4482,7 +4420,6 @@ func (o *ChangeAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4529,7 +4466,6 @@ ChangeAgentOKBodyPostgresExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentOKBodyPostgresExporterMetricsResolutions */ type ChangeAgentOKBodyPostgresExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4573,7 +4509,6 @@ ChangeAgentOKBodyProxysqlExporter ProxySQLExporter runs on Generic or Container swagger:model ChangeAgentOKBodyProxysqlExporter */ type ChangeAgentOKBodyProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4809,7 +4744,6 @@ func (o *ChangeAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4856,7 +4790,6 @@ ChangeAgentOKBodyProxysqlExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentOKBodyProxysqlExporterMetricsResolutions */ type ChangeAgentOKBodyProxysqlExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4900,7 +4833,6 @@ ChangeAgentOKBodyQANMongodbMongologAgent QANMongoDBMongologAgent runs within pmm swagger:model ChangeAgentOKBodyQANMongodbMongologAgent */ type ChangeAgentOKBodyQANMongodbMongologAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5110,7 +5042,6 @@ ChangeAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm swagger:model ChangeAgentOKBodyQANMongodbProfilerAgent */ type ChangeAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5320,7 +5251,6 @@ ChangeAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm swagger:model ChangeAgentOKBodyQANMysqlPerfschemaAgent */ type ChangeAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5548,7 +5478,6 @@ ChangeAgentOKBodyQANMysqlSlowlogAgent QANMySQLSlowlogAgent runs within pmm-agent swagger:model ChangeAgentOKBodyQANMysqlSlowlogAgent */ type ChangeAgentOKBodyQANMysqlSlowlogAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5779,7 +5708,6 @@ ChangeAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent r swagger:model ChangeAgentOKBodyQANPostgresqlPgstatementsAgent */ type ChangeAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5992,7 +5920,6 @@ ChangeAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent swagger:model ChangeAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type ChangeAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6208,7 +6135,6 @@ ChangeAgentOKBodyRDSExporter RDSExporter runs on Generic or Container Node and e swagger:model ChangeAgentOKBodyRDSExporter */ type ChangeAgentOKBodyRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6441,7 +6367,6 @@ func (o *ChangeAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, form } func (o *ChangeAgentOKBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6488,7 +6413,6 @@ ChangeAgentOKBodyRDSExporterMetricsResolutions MetricsResolutions represents Pro swagger:model ChangeAgentOKBodyRDSExporterMetricsResolutions */ type ChangeAgentOKBodyRDSExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6532,7 +6456,6 @@ ChangeAgentOKBodyRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and sends swagger:model ChangeAgentOKBodyRtaMongodbAgent */ type ChangeAgentOKBodyRtaMongodbAgent struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -6753,7 +6676,6 @@ func (o *ChangeAgentOKBodyRtaMongodbAgent) ContextValidate(ctx context.Context, } func (o *ChangeAgentOKBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -6800,7 +6722,6 @@ ChangeAgentOKBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Anal swagger:model ChangeAgentOKBodyRtaMongodbAgentRtaOptions */ type ChangeAgentOKBodyRtaMongodbAgentRtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -6838,7 +6759,6 @@ ChangeAgentOKBodyValkeyExporter ValkeyExporter runs on Generic or Container Node swagger:model ChangeAgentOKBodyValkeyExporter */ type ChangeAgentOKBodyValkeyExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -7010,7 +6930,6 @@ func (o *ChangeAgentOKBodyValkeyExporter) ContextValidate(ctx context.Context, f } func (o *ChangeAgentOKBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7057,7 +6976,6 @@ ChangeAgentOKBodyValkeyExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentOKBodyValkeyExporterMetricsResolutions */ type ChangeAgentOKBodyValkeyExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7101,7 +7019,6 @@ ChangeAgentParamsBodyAzureDatabaseExporter change agent params body azure databa swagger:model ChangeAgentParamsBodyAzureDatabaseExporter */ type ChangeAgentParamsBodyAzureDatabaseExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -7277,7 +7194,6 @@ func (o *ChangeAgentParamsBodyAzureDatabaseExporter) ContextValidate(ctx context } func (o *ChangeAgentParamsBodyAzureDatabaseExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -7302,7 +7218,6 @@ func (o *ChangeAgentParamsBodyAzureDatabaseExporter) contextValidateCustomLabels } func (o *ChangeAgentParamsBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7349,7 +7264,6 @@ ChangeAgentParamsBodyAzureDatabaseExporterCustomLabels A wrapper for map[string] swagger:model ChangeAgentParamsBodyAzureDatabaseExporterCustomLabels */ type ChangeAgentParamsBodyAzureDatabaseExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -7387,7 +7301,6 @@ ChangeAgentParamsBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions swagger:model ChangeAgentParamsBodyAzureDatabaseExporterMetricsResolutions */ type ChangeAgentParamsBodyAzureDatabaseExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7431,7 +7344,6 @@ ChangeAgentParamsBodyExternalExporter change agent params body external exporter swagger:model ChangeAgentParamsBodyExternalExporter */ type ChangeAgentParamsBodyExternalExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -7540,7 +7452,6 @@ func (o *ChangeAgentParamsBodyExternalExporter) ContextValidate(ctx context.Cont } func (o *ChangeAgentParamsBodyExternalExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -7565,7 +7476,6 @@ func (o *ChangeAgentParamsBodyExternalExporter) contextValidateCustomLabels(ctx } func (o *ChangeAgentParamsBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7612,7 +7522,6 @@ ChangeAgentParamsBodyExternalExporterCustomLabels A wrapper for map[string]strin swagger:model ChangeAgentParamsBodyExternalExporterCustomLabels */ type ChangeAgentParamsBodyExternalExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -7650,7 +7559,6 @@ ChangeAgentParamsBodyExternalExporterMetricsResolutions MetricsResolutions repre swagger:model ChangeAgentParamsBodyExternalExporterMetricsResolutions */ type ChangeAgentParamsBodyExternalExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7694,7 +7602,6 @@ ChangeAgentParamsBodyMongodbExporter change agent params body mongodb exporter swagger:model ChangeAgentParamsBodyMongodbExporter */ type ChangeAgentParamsBodyMongodbExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -7903,7 +7810,6 @@ func (o *ChangeAgentParamsBodyMongodbExporter) ContextValidate(ctx context.Conte } func (o *ChangeAgentParamsBodyMongodbExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -7928,7 +7834,6 @@ func (o *ChangeAgentParamsBodyMongodbExporter) contextValidateCustomLabels(ctx c } func (o *ChangeAgentParamsBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7975,7 +7880,6 @@ ChangeAgentParamsBodyMongodbExporterCustomLabels A wrapper for map[string]string swagger:model ChangeAgentParamsBodyMongodbExporterCustomLabels */ type ChangeAgentParamsBodyMongodbExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -8013,7 +7917,6 @@ ChangeAgentParamsBodyMongodbExporterMetricsResolutions MetricsResolutions repres swagger:model ChangeAgentParamsBodyMongodbExporterMetricsResolutions */ type ChangeAgentParamsBodyMongodbExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8057,7 +7960,6 @@ ChangeAgentParamsBodyMysqldExporter change agent params body mysqld exporter swagger:model ChangeAgentParamsBodyMysqldExporter */ type ChangeAgentParamsBodyMysqldExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -8254,7 +8156,6 @@ func (o *ChangeAgentParamsBodyMysqldExporter) ContextValidate(ctx context.Contex } func (o *ChangeAgentParamsBodyMysqldExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -8279,7 +8180,6 @@ func (o *ChangeAgentParamsBodyMysqldExporter) contextValidateCustomLabels(ctx co } func (o *ChangeAgentParamsBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8326,7 +8226,6 @@ ChangeAgentParamsBodyMysqldExporterCustomLabels A wrapper for map[string]string. swagger:model ChangeAgentParamsBodyMysqldExporterCustomLabels */ type ChangeAgentParamsBodyMysqldExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -8364,7 +8263,6 @@ ChangeAgentParamsBodyMysqldExporterMetricsResolutions MetricsResolutions represe swagger:model ChangeAgentParamsBodyMysqldExporterMetricsResolutions */ type ChangeAgentParamsBodyMysqldExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8408,7 +8306,6 @@ ChangeAgentParamsBodyNodeExporter change agent params body node exporter swagger:model ChangeAgentParamsBodyNodeExporter */ type ChangeAgentParamsBodyNodeExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -8575,7 +8472,6 @@ func (o *ChangeAgentParamsBodyNodeExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentParamsBodyNodeExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -8600,7 +8496,6 @@ func (o *ChangeAgentParamsBodyNodeExporter) contextValidateCustomLabels(ctx cont } func (o *ChangeAgentParamsBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8647,7 +8542,6 @@ ChangeAgentParamsBodyNodeExporterCustomLabels A wrapper for map[string]string. T swagger:model ChangeAgentParamsBodyNodeExporterCustomLabels */ type ChangeAgentParamsBodyNodeExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -8685,7 +8579,6 @@ ChangeAgentParamsBodyNodeExporterMetricsResolutions MetricsResolutions represent swagger:model ChangeAgentParamsBodyNodeExporterMetricsResolutions */ type ChangeAgentParamsBodyNodeExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8729,7 +8622,6 @@ ChangeAgentParamsBodyNomadAgent change agent params body nomad agent swagger:model ChangeAgentParamsBodyNomadAgent */ type ChangeAgentParamsBodyNomadAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` } @@ -8767,7 +8659,6 @@ ChangeAgentParamsBodyPostgresExporter change agent params body postgres exporter swagger:model ChangeAgentParamsBodyPostgresExporter */ type ChangeAgentParamsBodyPostgresExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -8967,7 +8858,6 @@ func (o *ChangeAgentParamsBodyPostgresExporter) ContextValidate(ctx context.Cont } func (o *ChangeAgentParamsBodyPostgresExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -8992,7 +8882,6 @@ func (o *ChangeAgentParamsBodyPostgresExporter) contextValidateCustomLabels(ctx } func (o *ChangeAgentParamsBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9039,7 +8928,6 @@ ChangeAgentParamsBodyPostgresExporterCustomLabels A wrapper for map[string]strin swagger:model ChangeAgentParamsBodyPostgresExporterCustomLabels */ type ChangeAgentParamsBodyPostgresExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -9077,7 +8965,6 @@ ChangeAgentParamsBodyPostgresExporterMetricsResolutions MetricsResolutions repre swagger:model ChangeAgentParamsBodyPostgresExporterMetricsResolutions */ type ChangeAgentParamsBodyPostgresExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9121,7 +9008,6 @@ ChangeAgentParamsBodyProxysqlExporter change agent params body proxysql exporter swagger:model ChangeAgentParamsBodyProxysqlExporter */ type ChangeAgentParamsBodyProxysqlExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -9303,7 +9189,6 @@ func (o *ChangeAgentParamsBodyProxysqlExporter) ContextValidate(ctx context.Cont } func (o *ChangeAgentParamsBodyProxysqlExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -9328,7 +9213,6 @@ func (o *ChangeAgentParamsBodyProxysqlExporter) contextValidateCustomLabels(ctx } func (o *ChangeAgentParamsBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9375,7 +9259,6 @@ ChangeAgentParamsBodyProxysqlExporterCustomLabels A wrapper for map[string]strin swagger:model ChangeAgentParamsBodyProxysqlExporterCustomLabels */ type ChangeAgentParamsBodyProxysqlExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -9413,7 +9296,6 @@ ChangeAgentParamsBodyProxysqlExporterMetricsResolutions MetricsResolutions repre swagger:model ChangeAgentParamsBodyProxysqlExporterMetricsResolutions */ type ChangeAgentParamsBodyProxysqlExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9457,7 +9339,6 @@ ChangeAgentParamsBodyQANMongodbMongologAgent change agent params body QAN mongod swagger:model ChangeAgentParamsBodyQANMongodbMongologAgent */ type ChangeAgentParamsBodyQANMongodbMongologAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -9648,7 +9529,6 @@ func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) ContextValidate(ctx conte } func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -9673,7 +9553,6 @@ func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) contextValidateCustomLabe } func (o *ChangeAgentParamsBodyQANMongodbMongologAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9720,7 +9599,6 @@ ChangeAgentParamsBodyQANMongodbMongologAgentCustomLabels A wrapper for map[strin swagger:model ChangeAgentParamsBodyQANMongodbMongologAgentCustomLabels */ type ChangeAgentParamsBodyQANMongodbMongologAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -9758,7 +9636,6 @@ ChangeAgentParamsBodyQANMongodbMongologAgentMetricsResolutions MetricsResolution swagger:model ChangeAgentParamsBodyQANMongodbMongologAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMongodbMongologAgentMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9802,7 +9679,6 @@ ChangeAgentParamsBodyQANMongodbProfilerAgent change agent params body QAN mongod swagger:model ChangeAgentParamsBodyQANMongodbProfilerAgent */ type ChangeAgentParamsBodyQANMongodbProfilerAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -9993,7 +9869,6 @@ func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) ContextValidate(ctx conte } func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -10018,7 +9893,6 @@ func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) contextValidateCustomLabe } func (o *ChangeAgentParamsBodyQANMongodbProfilerAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10065,7 +9939,6 @@ ChangeAgentParamsBodyQANMongodbProfilerAgentCustomLabels A wrapper for map[strin swagger:model ChangeAgentParamsBodyQANMongodbProfilerAgentCustomLabels */ type ChangeAgentParamsBodyQANMongodbProfilerAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -10103,7 +9976,6 @@ ChangeAgentParamsBodyQANMongodbProfilerAgentMetricsResolutions MetricsResolution swagger:model ChangeAgentParamsBodyQANMongodbProfilerAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMongodbProfilerAgentMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10147,7 +10019,6 @@ ChangeAgentParamsBodyQANMysqlPerfschemaAgent change agent params body QAN mysql swagger:model ChangeAgentParamsBodyQANMysqlPerfschemaAgent */ type ChangeAgentParamsBodyQANMysqlPerfschemaAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -10341,7 +10212,6 @@ func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) ContextValidate(ctx conte } func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -10366,7 +10236,6 @@ func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) contextValidateCustomLabe } func (o *ChangeAgentParamsBodyQANMysqlPerfschemaAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10413,7 +10282,6 @@ ChangeAgentParamsBodyQANMysqlPerfschemaAgentCustomLabels A wrapper for map[strin swagger:model ChangeAgentParamsBodyQANMysqlPerfschemaAgentCustomLabels */ type ChangeAgentParamsBodyQANMysqlPerfschemaAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -10451,7 +10319,6 @@ ChangeAgentParamsBodyQANMysqlPerfschemaAgentMetricsResolutions MetricsResolution swagger:model ChangeAgentParamsBodyQANMysqlPerfschemaAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMysqlPerfschemaAgentMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10495,7 +10362,6 @@ ChangeAgentParamsBodyQANMysqlSlowlogAgent change agent params body QAN mysql slo swagger:model ChangeAgentParamsBodyQANMysqlSlowlogAgent */ type ChangeAgentParamsBodyQANMysqlSlowlogAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -10692,7 +10558,6 @@ func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) ContextValidate(ctx context. } func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -10717,7 +10582,6 @@ func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) contextValidateCustomLabels( } func (o *ChangeAgentParamsBodyQANMysqlSlowlogAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10764,7 +10628,6 @@ ChangeAgentParamsBodyQANMysqlSlowlogAgentCustomLabels A wrapper for map[string]s swagger:model ChangeAgentParamsBodyQANMysqlSlowlogAgentCustomLabels */ type ChangeAgentParamsBodyQANMysqlSlowlogAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -10802,7 +10665,6 @@ ChangeAgentParamsBodyQANMysqlSlowlogAgentMetricsResolutions MetricsResolutions r swagger:model ChangeAgentParamsBodyQANMysqlSlowlogAgentMetricsResolutions */ type ChangeAgentParamsBodyQANMysqlSlowlogAgentMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10846,7 +10708,6 @@ ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent change agent params body QAN swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent */ type ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -11034,7 +10895,6 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) ContextValidate(ct } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -11059,7 +10919,6 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) contextValidateCus } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatementsAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -11106,7 +10965,6 @@ ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentCustomLabels A wrapper for ma swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentCustomLabels */ type ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -11144,7 +11002,6 @@ ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentMetricsResolutions MetricsRes swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentMetricsResolutions */ type ChangeAgentParamsBodyQANPostgresqlPgstatementsAgentMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -11188,7 +11045,6 @@ ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent change agent params body QA swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent */ type ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -11379,7 +11235,6 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) ContextValidate(c } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -11404,7 +11259,6 @@ func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) contextValidateCu } func (o *ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgent) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -11451,7 +11305,6 @@ ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentCustomLabels A wrapper for m swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentCustomLabels */ type ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -11489,7 +11342,6 @@ ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentMetricsResolutions MetricsRe swagger:model ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentMetricsResolutions */ type ChangeAgentParamsBodyQANPostgresqlPgstatmonitorAgentMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -11533,7 +11385,6 @@ ChangeAgentParamsBodyRDSExporter change agent params body RDS exporter swagger:model ChangeAgentParamsBodyRDSExporter */ type ChangeAgentParamsBodyRDSExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -11706,7 +11557,6 @@ func (o *ChangeAgentParamsBodyRDSExporter) ContextValidate(ctx context.Context, } func (o *ChangeAgentParamsBodyRDSExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -11731,7 +11581,6 @@ func (o *ChangeAgentParamsBodyRDSExporter) contextValidateCustomLabels(ctx conte } func (o *ChangeAgentParamsBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -11778,7 +11627,6 @@ ChangeAgentParamsBodyRDSExporterCustomLabels A wrapper for map[string]string. Th swagger:model ChangeAgentParamsBodyRDSExporterCustomLabels */ type ChangeAgentParamsBodyRDSExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -11816,7 +11664,6 @@ ChangeAgentParamsBodyRDSExporterMetricsResolutions MetricsResolutions represents swagger:model ChangeAgentParamsBodyRDSExporterMetricsResolutions */ type ChangeAgentParamsBodyRDSExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -11860,7 +11707,6 @@ ChangeAgentParamsBodyRtaMongodbAgent change agent params body rta mongodb agent swagger:model ChangeAgentParamsBodyRtaMongodbAgent */ type ChangeAgentParamsBodyRtaMongodbAgent struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -12042,7 +11888,6 @@ func (o *ChangeAgentParamsBodyRtaMongodbAgent) ContextValidate(ctx context.Conte } func (o *ChangeAgentParamsBodyRtaMongodbAgent) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -12067,7 +11912,6 @@ func (o *ChangeAgentParamsBodyRtaMongodbAgent) contextValidateCustomLabels(ctx c } func (o *ChangeAgentParamsBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -12114,7 +11958,6 @@ ChangeAgentParamsBodyRtaMongodbAgentCustomLabels A wrapper for map[string]string swagger:model ChangeAgentParamsBodyRtaMongodbAgentCustomLabels */ type ChangeAgentParamsBodyRtaMongodbAgentCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -12152,7 +11995,6 @@ ChangeAgentParamsBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query swagger:model ChangeAgentParamsBodyRtaMongodbAgentRtaOptions */ type ChangeAgentParamsBodyRtaMongodbAgentRtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -12190,7 +12032,6 @@ ChangeAgentParamsBodyValkeyExporter change agent params body valkey exporter swagger:model ChangeAgentParamsBodyValkeyExporter */ type ChangeAgentParamsBodyValkeyExporter struct { - // Enable this Agent. Agents are enabled by default when they get added. Enable *bool `json:"enable,omitempty"` @@ -12381,7 +12222,6 @@ func (o *ChangeAgentParamsBodyValkeyExporter) ContextValidate(ctx context.Contex } func (o *ChangeAgentParamsBodyValkeyExporter) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -12406,7 +12246,6 @@ func (o *ChangeAgentParamsBodyValkeyExporter) contextValidateCustomLabels(ctx co } func (o *ChangeAgentParamsBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -12453,7 +12292,6 @@ ChangeAgentParamsBodyValkeyExporterCustomLabels A wrapper for map[string]string. swagger:model ChangeAgentParamsBodyValkeyExporterCustomLabels */ type ChangeAgentParamsBodyValkeyExporterCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } @@ -12491,7 +12329,6 @@ ChangeAgentParamsBodyValkeyExporterMetricsResolutions MetricsResolutions represe swagger:model ChangeAgentParamsBodyValkeyExporterMetricsResolutions */ type ChangeAgentParamsBodyValkeyExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` diff --git a/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go b/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go index f62c8c34010..97651a5eab8 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go +++ b/api/inventory/v1/json/client/agents_service/get_agent_logs_parameters.go @@ -61,7 +61,6 @@ GetAgentLogsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type GetAgentLogsParams struct { - /* AgentID. Unique randomly generated instance identifier. @@ -153,7 +152,6 @@ func (o *GetAgentLogsParams) SetLimit(limit *int64) { // 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 } @@ -174,7 +172,6 @@ func (o *GetAgentLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qLimit := swag.FormatInt64(qrLimit) if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go b/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go index 13fac0ab0c1..4925d51c520 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go +++ b/api/inventory/v1/json/client/agents_service/get_agent_logs_responses.go @@ -104,7 +104,6 @@ func (o *GetAgentLogsOK) GetPayload() *GetAgentLogsOKBody { } func (o *GetAgentLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentLogsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetAgentLogsDefault) GetPayload() *GetAgentLogsDefaultBody { } func (o *GetAgentLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentLogsDefaultBody) // response payload @@ -194,7 +192,6 @@ GetAgentLogsDefaultBody get agent logs default body swagger:model GetAgentLogsDefaultBody */ type GetAgentLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetAgentLogsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -315,7 +309,6 @@ GetAgentLogsDefaultBodyDetailsItems0 get agent logs default body details items0 swagger:model GetAgentLogsDefaultBodyDetailsItems0 */ type GetAgentLogsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetAgentLogsDefaultBodyDetailsItems0 struct { func (o *GetAgentLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetAgentLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetAgentLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetAgentLogsOKBody get agent logs OK body swagger:model GetAgentLogsOKBody */ type GetAgentLogsOKBody struct { - // logs Logs []string `json:"logs"` diff --git a/api/inventory/v1/json/client/agents_service/get_agent_parameters.go b/api/inventory/v1/json/client/agents_service/get_agent_parameters.go index 8242239f60a..05cb31a609f 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/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 { - /* AgentID. Unique randomly generated instance identifier. @@ -133,7 +132,6 @@ func (o *GetAgentParams) SetAgentID(agentID string) { // 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/inventory/v1/json/client/agents_service/get_agent_responses.go b/api/inventory/v1/json/client/agents_service/get_agent_responses.go index 6dee04d0f0b..f0befcd1b48 100644 --- a/api/inventory/v1/json/client/agents_service/get_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/get_agent_responses.go @@ -105,7 +105,6 @@ func (o *GetAgentOK) GetPayload() *GetAgentOKBody { } func (o *GetAgentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetAgentDefault) GetPayload() *GetAgentDefaultBody { } func (o *GetAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetAgentDefaultBody) // response payload @@ -195,7 +193,6 @@ GetAgentDefaultBody get agent default body swagger:model GetAgentDefaultBody */ type GetAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *GetAgentDefaultBody) contextValidateDetails(ctx context.Context, format return err } } - } return nil @@ -316,7 +310,6 @@ GetAgentDefaultBodyDetailsItems0 get agent default body details items0 swagger:model GetAgentDefaultBodyDetailsItems0 */ type GetAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type GetAgentDefaultBodyDetailsItems0 struct { func (o *GetAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *GetAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ GetAgentOKBody get agent OK body swagger:model GetAgentOKBody */ type GetAgentOKBody struct { - // azure database exporter AzureDatabaseExporter *GetAgentOKBodyAzureDatabaseExporter `json:"azure_database_exporter,omitempty"` @@ -1099,7 +1089,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 swag.IsZero(o.AzureDatabaseExporter) { // not required @@ -1124,7 +1113,6 @@ func (o *GetAgentOKBody) contextValidateAzureDatabaseExporter(ctx context.Contex } func (o *GetAgentOKBody) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -1149,7 +1137,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 swag.IsZero(o.MongodbExporter) { // not required @@ -1174,7 +1161,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 swag.IsZero(o.MysqldExporter) { // not required @@ -1199,7 +1185,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 swag.IsZero(o.NodeExporter) { // not required @@ -1224,7 +1209,6 @@ func (o *GetAgentOKBody) contextValidateNodeExporter(ctx context.Context, format } func (o *GetAgentOKBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { - if o.NomadAgent != nil { if swag.IsZero(o.NomadAgent) { // not required @@ -1249,7 +1233,6 @@ func (o *GetAgentOKBody) contextValidateNomadAgent(ctx context.Context, formats } func (o *GetAgentOKBody) contextValidatePMMAgent(ctx context.Context, formats strfmt.Registry) error { - if o.PMMAgent != nil { if swag.IsZero(o.PMMAgent) { // not required @@ -1274,7 +1257,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 swag.IsZero(o.PostgresExporter) { // not required @@ -1299,7 +1281,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 swag.IsZero(o.ProxysqlExporter) { // not required @@ -1324,7 +1305,6 @@ func (o *GetAgentOKBody) contextValidateProxysqlExporter(ctx context.Context, fo } func (o *GetAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbMongologAgent != nil { if swag.IsZero(o.QANMongodbMongologAgent) { // not required @@ -1349,7 +1329,6 @@ func (o *GetAgentOKBody) contextValidateQANMongodbMongologAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfilerAgent != nil { if swag.IsZero(o.QANMongodbProfilerAgent) { // not required @@ -1374,7 +1353,6 @@ func (o *GetAgentOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschemaAgent != nil { if swag.IsZero(o.QANMysqlPerfschemaAgent) { // not required @@ -1399,7 +1377,6 @@ func (o *GetAgentOKBody) contextValidateQANMysqlPerfschemaAgent(ctx context.Cont } func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlogAgent != nil { if swag.IsZero(o.QANMysqlSlowlogAgent) { // not required @@ -1424,7 +1401,6 @@ func (o *GetAgentOKBody) contextValidateQANMysqlSlowlogAgent(ctx context.Context } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -1449,7 +1425,6 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatementsAgent(ctx conte } func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -1474,7 +1449,6 @@ func (o *GetAgentOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx cont } func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -1499,7 +1473,6 @@ func (o *GetAgentOKBody) contextValidateRDSExporter(ctx context.Context, formats } func (o *GetAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -1524,7 +1497,6 @@ func (o *GetAgentOKBody) contextValidateRtaMongodbAgent(ctx context.Context, for } func (o *GetAgentOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1549,7 +1521,6 @@ func (o *GetAgentOKBody) contextValidateValkeyExporter(ctx context.Context, form } func (o *GetAgentOKBody) contextValidateVmagent(ctx context.Context, formats strfmt.Registry) error { - if o.Vmagent != nil { if swag.IsZero(o.Vmagent) { // not required @@ -1596,7 +1567,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"` @@ -1823,7 +1793,6 @@ func (o *GetAgentOKBodyAzureDatabaseExporter) ContextValidate(ctx context.Contex } func (o *GetAgentOKBodyAzureDatabaseExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -1870,7 +1839,6 @@ GetAgentOKBodyAzureDatabaseExporterMetricsResolutions MetricsResolutions represe swagger:model GetAgentOKBodyAzureDatabaseExporterMetricsResolutions */ type GetAgentOKBodyAzureDatabaseExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -1914,7 +1882,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"` @@ -2083,7 +2050,6 @@ func (o *GetAgentOKBodyExternalExporter) ContextValidate(ctx context.Context, fo } func (o *GetAgentOKBodyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2130,7 +2096,6 @@ GetAgentOKBodyExternalExporterMetricsResolutions MetricsResolutions represents P swagger:model GetAgentOKBodyExternalExporterMetricsResolutions */ type GetAgentOKBodyExternalExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2174,7 +2139,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"` @@ -2423,7 +2387,6 @@ func (o *GetAgentOKBodyMongodbExporter) ContextValidate(ctx context.Context, for } func (o *GetAgentOKBodyMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2470,7 +2433,6 @@ GetAgentOKBodyMongodbExporterMetricsResolutions MetricsResolutions represents Pr swagger:model GetAgentOKBodyMongodbExporterMetricsResolutions */ type GetAgentOKBodyMongodbExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2514,7 +2476,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"` @@ -2773,7 +2734,6 @@ func (o *GetAgentOKBodyMysqldExporter) ContextValidate(ctx context.Context, form } func (o *GetAgentOKBodyMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2820,7 +2780,6 @@ GetAgentOKBodyMysqldExporterMetricsResolutions MetricsResolutions represents Pro swagger:model GetAgentOKBodyMysqldExporterMetricsResolutions */ type GetAgentOKBodyMysqldExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2864,7 +2823,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"` @@ -3088,7 +3046,6 @@ func (o *GetAgentOKBodyNodeExporter) ContextValidate(ctx context.Context, format } func (o *GetAgentOKBodyNodeExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3135,7 +3092,6 @@ GetAgentOKBodyNodeExporterMetricsResolutions MetricsResolutions represents Prome swagger:model GetAgentOKBodyNodeExporterMetricsResolutions */ type GetAgentOKBodyNodeExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3179,7 +3135,6 @@ GetAgentOKBodyNomadAgent get agent OK body nomad agent swagger:model GetAgentOKBodyNomadAgent */ type GetAgentOKBodyNomadAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3310,7 +3265,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"` @@ -3360,7 +3314,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"` @@ -3602,7 +3555,6 @@ func (o *GetAgentOKBodyPostgresExporter) ContextValidate(ctx context.Context, fo } func (o *GetAgentOKBodyPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3649,7 +3601,6 @@ GetAgentOKBodyPostgresExporterMetricsResolutions MetricsResolutions represents P swagger:model GetAgentOKBodyPostgresExporterMetricsResolutions */ type GetAgentOKBodyPostgresExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3693,7 +3644,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"` @@ -3929,7 +3879,6 @@ func (o *GetAgentOKBodyProxysqlExporter) ContextValidate(ctx context.Context, fo } func (o *GetAgentOKBodyProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3976,7 +3925,6 @@ GetAgentOKBodyProxysqlExporterMetricsResolutions MetricsResolutions represents P swagger:model GetAgentOKBodyProxysqlExporterMetricsResolutions */ type GetAgentOKBodyProxysqlExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4020,7 +3968,6 @@ GetAgentOKBodyQANMongodbMongologAgent QANMongoDBMongologAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMongodbMongologAgent */ type GetAgentOKBodyQANMongodbMongologAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4230,7 +4177,6 @@ GetAgentOKBodyQANMongodbProfilerAgent QANMongoDBProfilerAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMongodbProfilerAgent */ type GetAgentOKBodyQANMongodbProfilerAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4440,7 +4386,6 @@ GetAgentOKBodyQANMysqlPerfschemaAgent QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model GetAgentOKBodyQANMysqlPerfschemaAgent */ type GetAgentOKBodyQANMysqlPerfschemaAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4668,7 +4613,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"` @@ -4899,7 +4843,6 @@ GetAgentOKBodyQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatementsAgent runs swagger:model GetAgentOKBodyQANPostgresqlPgstatementsAgent */ type GetAgentOKBodyQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5112,7 +5055,6 @@ GetAgentOKBodyQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMonitorAgent ru swagger:model GetAgentOKBodyQANPostgresqlPgstatmonitorAgent */ type GetAgentOKBodyQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5328,7 +5270,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"` @@ -5561,7 +5502,6 @@ func (o *GetAgentOKBodyRDSExporter) ContextValidate(ctx context.Context, formats } func (o *GetAgentOKBodyRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -5608,7 +5548,6 @@ GetAgentOKBodyRDSExporterMetricsResolutions MetricsResolutions represents Promet swagger:model GetAgentOKBodyRDSExporterMetricsResolutions */ type GetAgentOKBodyRDSExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -5652,7 +5591,6 @@ GetAgentOKBodyRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and sends Mo swagger:model GetAgentOKBodyRtaMongodbAgent */ type GetAgentOKBodyRtaMongodbAgent struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -5873,7 +5811,6 @@ func (o *GetAgentOKBodyRtaMongodbAgent) ContextValidate(ctx context.Context, for } func (o *GetAgentOKBodyRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -5920,7 +5857,6 @@ GetAgentOKBodyRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Query Analyti swagger:model GetAgentOKBodyRtaMongodbAgentRtaOptions */ type GetAgentOKBodyRtaMongodbAgentRtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -5958,7 +5894,6 @@ GetAgentOKBodyValkeyExporter ValkeyExporter runs on Generic or Container Node an swagger:model GetAgentOKBodyValkeyExporter */ type GetAgentOKBodyValkeyExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6130,7 +6065,6 @@ func (o *GetAgentOKBodyValkeyExporter) ContextValidate(ctx context.Context, form } func (o *GetAgentOKBodyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6177,7 +6111,6 @@ GetAgentOKBodyValkeyExporterMetricsResolutions MetricsResolutions represents Pro swagger:model GetAgentOKBodyValkeyExporterMetricsResolutions */ type GetAgentOKBodyValkeyExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6223,7 +6156,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/inventory/v1/json/client/agents_service/list_agents_parameters.go b/api/inventory/v1/json/client/agents_service/list_agents_parameters.go index 1836e25a8c4..371c8f77c34 100644 --- a/api/inventory/v1/json/client/agents_service/list_agents_parameters.go +++ b/api/inventory/v1/json/client/agents_service/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 { - /* AgentType. Return only agents of a particular type. @@ -107,9 +106,7 @@ func (o *ListAgentsParams) WithDefaults() *ListAgentsParams { // // All values with no default are reset to their zero value. func (o *ListAgentsParams) SetDefaults() { - var ( - agentTypeDefault = string("AGENT_TYPE_UNSPECIFIED") - ) + agentTypeDefault := string("AGENT_TYPE_UNSPECIFIED") val := ListAgentsParams{ AgentType: &agentTypeDefault, @@ -200,7 +197,6 @@ func (o *ListAgentsParams) SetServiceID(serviceID *string) { // 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 } @@ -216,7 +212,6 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qAgentType := qrAgentType if qAgentType != "" { - if err := r.SetQueryParam("agent_type", qAgentType); err != nil { return err } @@ -233,7 +228,6 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qNodeID := qrNodeID if qNodeID != "" { - if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -250,7 +244,6 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qPMMAgentID := qrPMMAgentID if qPMMAgentID != "" { - if err := r.SetQueryParam("pmm_agent_id", qPMMAgentID); err != nil { return err } @@ -267,7 +260,6 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qServiceID := qrServiceID if qServiceID != "" { - if err := r.SetQueryParam("service_id", qServiceID); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/list_agents_responses.go b/api/inventory/v1/json/client/agents_service/list_agents_responses.go index db7a7796bd5..33502ed0d27 100644 --- a/api/inventory/v1/json/client/agents_service/list_agents_responses.go +++ b/api/inventory/v1/json/client/agents_service/list_agents_responses.go @@ -105,7 +105,6 @@ func (o *ListAgentsOK) GetPayload() *ListAgentsOKBody { } func (o *ListAgentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListAgentsDefault) GetPayload() *ListAgentsDefaultBody { } func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -316,7 +310,6 @@ ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListAgentsDefaultBodyDetailsItems0 struct { func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAgentsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { - // pmm agent PMMAgent []*ListAgentsOKBodyPMMAgentItems0 `json:"pmm_agent"` @@ -1232,9 +1222,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 swag.IsZero(o.PMMAgent[i]) { // not required @@ -1254,16 +1242,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 swag.IsZero(o.VMAgent[i]) { // not required @@ -1283,16 +1268,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 swag.IsZero(o.NodeExporter[i]) { // not required @@ -1312,16 +1294,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 swag.IsZero(o.MysqldExporter[i]) { // not required @@ -1341,16 +1320,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 swag.IsZero(o.MongodbExporter[i]) { // not required @@ -1370,16 +1346,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 swag.IsZero(o.PostgresExporter[i]) { // not required @@ -1399,16 +1372,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 swag.IsZero(o.ProxysqlExporter[i]) { // not required @@ -1428,16 +1398,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 swag.IsZero(o.QANMysqlPerfschemaAgent[i]) { // not required @@ -1457,16 +1424,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 swag.IsZero(o.QANMysqlSlowlogAgent[i]) { // not required @@ -1486,16 +1450,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 swag.IsZero(o.QANMongodbProfilerAgent[i]) { // not required @@ -1515,16 +1476,13 @@ func (o *ListAgentsOKBody) contextValidateQANMongodbProfilerAgent(ctx context.Co return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateQANMongodbMongologAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.QANMongodbMongologAgent); i++ { - if o.QANMongodbMongologAgent[i] != nil { if swag.IsZero(o.QANMongodbMongologAgent[i]) { // not required @@ -1544,16 +1502,13 @@ func (o *ListAgentsOKBody) contextValidateQANMongodbMongologAgent(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 swag.IsZero(o.QANPostgresqlPgstatementsAgent[i]) { // not required @@ -1573,16 +1528,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 swag.IsZero(o.QANPostgresqlPgstatmonitorAgent[i]) { // not required @@ -1602,16 +1554,13 @@ func (o *ListAgentsOKBody) contextValidateQANPostgresqlPgstatmonitorAgent(ctx co 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 swag.IsZero(o.ExternalExporter[i]) { // not required @@ -1631,16 +1580,13 @@ func (o *ListAgentsOKBody) contextValidateExternalExporter(ctx context.Context, 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 swag.IsZero(o.RDSExporter[i]) { // not required @@ -1660,16 +1606,13 @@ func (o *ListAgentsOKBody) contextValidateRDSExporter(ctx context.Context, forma 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 swag.IsZero(o.AzureDatabaseExporter[i]) { // not required @@ -1689,16 +1632,13 @@ func (o *ListAgentsOKBody) contextValidateAzureDatabaseExporter(ctx context.Cont return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateNomadAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.NomadAgent); i++ { - if o.NomadAgent[i] != nil { if swag.IsZero(o.NomadAgent[i]) { // not required @@ -1718,16 +1658,13 @@ func (o *ListAgentsOKBody) contextValidateNomadAgent(ctx context.Context, format return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ValkeyExporter); i++ { - if o.ValkeyExporter[i] != nil { if swag.IsZero(o.ValkeyExporter[i]) { // not required @@ -1747,16 +1684,13 @@ func (o *ListAgentsOKBody) contextValidateValkeyExporter(ctx context.Context, fo return err } } - } return nil } func (o *ListAgentsOKBody) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.RtaMongodbAgent); i++ { - if o.RtaMongodbAgent[i] != nil { if swag.IsZero(o.RtaMongodbAgent[i]) { // not required @@ -1776,7 +1710,6 @@ func (o *ListAgentsOKBody) contextValidateRtaMongodbAgent(ctx context.Context, f return err } } - } return nil @@ -1805,7 +1738,6 @@ ListAgentsOKBodyAzureDatabaseExporterItems0 AzureDatabaseExporter runs on Generi swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0 */ type ListAgentsOKBodyAzureDatabaseExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2032,7 +1964,6 @@ func (o *ListAgentsOKBodyAzureDatabaseExporterItems0) ContextValidate(ctx contex } func (o *ListAgentsOKBodyAzureDatabaseExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2079,7 +2010,6 @@ ListAgentsOKBodyAzureDatabaseExporterItems0MetricsResolutions MetricsResolutions swagger:model ListAgentsOKBodyAzureDatabaseExporterItems0MetricsResolutions */ type ListAgentsOKBodyAzureDatabaseExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2123,7 +2053,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"` @@ -2292,7 +2221,6 @@ func (o *ListAgentsOKBodyExternalExporterItems0) ContextValidate(ctx context.Con } func (o *ListAgentsOKBodyExternalExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2339,7 +2267,6 @@ ListAgentsOKBodyExternalExporterItems0MetricsResolutions MetricsResolutions repr swagger:model ListAgentsOKBodyExternalExporterItems0MetricsResolutions */ type ListAgentsOKBodyExternalExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2383,7 +2310,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"` @@ -2632,7 +2558,6 @@ func (o *ListAgentsOKBodyMongodbExporterItems0) ContextValidate(ctx context.Cont } func (o *ListAgentsOKBodyMongodbExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2679,7 +2604,6 @@ ListAgentsOKBodyMongodbExporterItems0MetricsResolutions MetricsResolutions repre swagger:model ListAgentsOKBodyMongodbExporterItems0MetricsResolutions */ type ListAgentsOKBodyMongodbExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2723,7 +2647,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"` @@ -2982,7 +2905,6 @@ func (o *ListAgentsOKBodyMysqldExporterItems0) ContextValidate(ctx context.Conte } func (o *ListAgentsOKBodyMysqldExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3029,7 +2951,6 @@ ListAgentsOKBodyMysqldExporterItems0MetricsResolutions MetricsResolutions repres swagger:model ListAgentsOKBodyMysqldExporterItems0MetricsResolutions */ type ListAgentsOKBodyMysqldExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3073,7 +2994,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"` @@ -3297,7 +3217,6 @@ func (o *ListAgentsOKBodyNodeExporterItems0) ContextValidate(ctx context.Context } func (o *ListAgentsOKBodyNodeExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3344,7 +3263,6 @@ ListAgentsOKBodyNodeExporterItems0MetricsResolutions MetricsResolutions represen swagger:model ListAgentsOKBodyNodeExporterItems0MetricsResolutions */ type ListAgentsOKBodyNodeExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3388,7 +3306,6 @@ ListAgentsOKBodyNomadAgentItems0 list agents OK body nomad agent items0 swagger:model ListAgentsOKBodyNomadAgentItems0 */ type ListAgentsOKBodyNomadAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3519,7 +3436,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"` @@ -3569,7 +3485,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"` @@ -3811,7 +3726,6 @@ func (o *ListAgentsOKBodyPostgresExporterItems0) ContextValidate(ctx context.Con } func (o *ListAgentsOKBodyPostgresExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3858,7 +3772,6 @@ ListAgentsOKBodyPostgresExporterItems0MetricsResolutions MetricsResolutions repr swagger:model ListAgentsOKBodyPostgresExporterItems0MetricsResolutions */ type ListAgentsOKBodyPostgresExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3902,7 +3815,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"` @@ -4138,7 +4050,6 @@ func (o *ListAgentsOKBodyProxysqlExporterItems0) ContextValidate(ctx context.Con } func (o *ListAgentsOKBodyProxysqlExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -4185,7 +4096,6 @@ ListAgentsOKBodyProxysqlExporterItems0MetricsResolutions MetricsResolutions repr swagger:model ListAgentsOKBodyProxysqlExporterItems0MetricsResolutions */ type ListAgentsOKBodyProxysqlExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -4229,7 +4139,6 @@ ListAgentsOKBodyQANMongodbMongologAgentItems0 QANMongoDBMongologAgent runs withi swagger:model ListAgentsOKBodyQANMongodbMongologAgentItems0 */ type ListAgentsOKBodyQANMongodbMongologAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4439,7 +4348,6 @@ ListAgentsOKBodyQANMongodbProfilerAgentItems0 QANMongoDBProfilerAgent runs withi swagger:model ListAgentsOKBodyQANMongodbProfilerAgentItems0 */ type ListAgentsOKBodyQANMongodbProfilerAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4649,7 +4557,6 @@ ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 QANMySQLPerfSchemaAgent runs withi swagger:model ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 */ type ListAgentsOKBodyQANMysqlPerfschemaAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4877,7 +4784,6 @@ ListAgentsOKBodyQANMysqlSlowlogAgentItems0 QANMySQLSlowlogAgent runs within pmm- swagger:model ListAgentsOKBodyQANMysqlSlowlogAgentItems0 */ type ListAgentsOKBodyQANMysqlSlowlogAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5108,7 +5014,6 @@ ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 QANPostgreSQLPgStatementsAg swagger:model ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatementsAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5321,7 +5226,6 @@ ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 QANPostgreSQLPgStatMonitor swagger:model ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 */ type ListAgentsOKBodyQANPostgresqlPgstatmonitorAgentItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5537,7 +5441,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"` @@ -5770,7 +5673,6 @@ func (o *ListAgentsOKBodyRDSExporterItems0) ContextValidate(ctx context.Context, } func (o *ListAgentsOKBodyRDSExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -5817,7 +5719,6 @@ ListAgentsOKBodyRDSExporterItems0MetricsResolutions MetricsResolutions represent swagger:model ListAgentsOKBodyRDSExporterItems0MetricsResolutions */ type ListAgentsOKBodyRDSExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -5861,7 +5762,6 @@ ListAgentsOKBodyRtaMongodbAgentItems0 RTAMongoDBAgent runs within pmm-agent and swagger:model ListAgentsOKBodyRtaMongodbAgentItems0 */ type ListAgentsOKBodyRtaMongodbAgentItems0 struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -6082,7 +5982,6 @@ func (o *ListAgentsOKBodyRtaMongodbAgentItems0) ContextValidate(ctx context.Cont } func (o *ListAgentsOKBodyRtaMongodbAgentItems0) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -6129,7 +6028,6 @@ ListAgentsOKBodyRtaMongodbAgentItems0RtaOptions RTAOptions holds Real-Time Query swagger:model ListAgentsOKBodyRtaMongodbAgentItems0RtaOptions */ type ListAgentsOKBodyRtaMongodbAgentItems0RtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -6169,7 +6067,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"` @@ -6297,7 +6194,6 @@ ListAgentsOKBodyValkeyExporterItems0 ValkeyExporter runs on Generic or Container swagger:model ListAgentsOKBodyValkeyExporterItems0 */ type ListAgentsOKBodyValkeyExporterItems0 struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6469,7 +6365,6 @@ func (o *ListAgentsOKBodyValkeyExporterItems0) ContextValidate(ctx context.Conte } func (o *ListAgentsOKBodyValkeyExporterItems0) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6516,7 +6411,6 @@ ListAgentsOKBodyValkeyExporterItems0MetricsResolutions MetricsResolutions repres swagger:model ListAgentsOKBodyValkeyExporterItems0MetricsResolutions */ type ListAgentsOKBodyValkeyExporterItems0MetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` diff --git a/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go b/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go index 946dbbe4ca8..fd762f29720 100644 --- a/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go +++ b/api/inventory/v1/json/client/agents_service/remove_agent_parameters.go @@ -61,7 +61,6 @@ RemoveAgentParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveAgentParams struct { - // AgentID. AgentID string @@ -148,7 +147,6 @@ func (o *RemoveAgentParams) SetForce(force *bool) { // 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 } @@ -169,7 +167,6 @@ func (o *RemoveAgentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } qForce := swag.FormatBool(qrForce) if qForce != "" { - if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/inventory/v1/json/client/agents_service/remove_agent_responses.go b/api/inventory/v1/json/client/agents_service/remove_agent_responses.go index 2cf7048bdb4..15ce395fa19 100644 --- a/api/inventory/v1/json/client/agents_service/remove_agent_responses.go +++ b/api/inventory/v1/json/client/agents_service/remove_agent_responses.go @@ -104,7 +104,6 @@ func (o *RemoveAgentOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *RemoveAgentDefault) GetPayload() *RemoveAgentDefaultBody { } func (o *RemoveAgentDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveAgentDefaultBody) // response payload @@ -192,7 +190,6 @@ RemoveAgentDefaultBody remove agent default body swagger:model RemoveAgentDefaultBody */ type RemoveAgentDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *RemoveAgentDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -313,7 +307,6 @@ RemoveAgentDefaultBodyDetailsItems0 remove agent default body details items0 swagger:model RemoveAgentDefaultBodyDetailsItems0 */ type RemoveAgentDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type RemoveAgentDefaultBodyDetailsItems0 struct { func (o *RemoveAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *RemoveAgentDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveAgentDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventory/v1/json/client/nodes_service/add_node_parameters.go b/api/inventory/v1/json/client/nodes_service/add_node_parameters.go index a1f49d176f4..67702dfa372 100644 --- a/api/inventory/v1/json/client/nodes_service/add_node_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/add_node_parameters.go @@ -60,7 +60,6 @@ AddNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddNodeParams struct { - // Body. Body AddNodeBody @@ -130,7 +129,6 @@ func (o *AddNodeParams) SetBody(body AddNodeBody) { // WriteToRequest writes these params to a swagger request func (o *AddNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/nodes_service/add_node_responses.go b/api/inventory/v1/json/client/nodes_service/add_node_responses.go index 106a55c442a..40d9d972f0f 100644 --- a/api/inventory/v1/json/client/nodes_service/add_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/add_node_responses.go @@ -104,7 +104,6 @@ func (o *AddNodeOK) GetPayload() *AddNodeOKBody { } func (o *AddNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddNodeOKBody) // response payload @@ -178,7 +177,6 @@ func (o *AddNodeDefault) GetPayload() *AddNodeDefaultBody { } func (o *AddNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddNodeDefaultBody) // response payload @@ -194,7 +192,6 @@ AddNodeBody add node body swagger:model AddNodeBody */ type AddNodeBody struct { - // container Container *AddNodeParamsBodyContainer `json:"container,omitempty"` @@ -421,7 +418,6 @@ func (o *AddNodeBody) ContextValidate(ctx context.Context, formats strfmt.Regist } func (o *AddNodeBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { - if o.Container != nil { if swag.IsZero(o.Container) { // not required @@ -446,7 +442,6 @@ func (o *AddNodeBody) contextValidateContainer(ctx context.Context, formats strf } func (o *AddNodeBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { - if o.Generic != nil { if swag.IsZero(o.Generic) { // not required @@ -471,7 +466,6 @@ func (o *AddNodeBody) contextValidateGeneric(ctx context.Context, formats strfmt } func (o *AddNodeBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { - if o.Remote != nil { if swag.IsZero(o.Remote) { // not required @@ -496,7 +490,6 @@ func (o *AddNodeBody) contextValidateRemote(ctx context.Context, formats strfmt. } func (o *AddNodeBody) contextValidateRemoteAzure(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteAzure != nil { if swag.IsZero(o.RemoteAzure) { // not required @@ -521,7 +514,6 @@ func (o *AddNodeBody) contextValidateRemoteAzure(ctx context.Context, formats st } func (o *AddNodeBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteElasticache != nil { if swag.IsZero(o.RemoteElasticache) { // not required @@ -546,7 +538,6 @@ func (o *AddNodeBody) contextValidateRemoteElasticache(ctx context.Context, form } func (o *AddNodeBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteRDS != nil { if swag.IsZero(o.RemoteRDS) { // not required @@ -593,7 +584,6 @@ AddNodeDefaultBody add node default body swagger:model AddNodeDefaultBody */ type AddNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -663,9 +653,7 @@ func (o *AddNodeDefaultBody) ContextValidate(ctx context.Context, formats strfmt } func (o *AddNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -685,7 +673,6 @@ func (o *AddNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -714,7 +701,6 @@ AddNodeDefaultBodyDetailsItems0 add node default body details items0 swagger:model AddNodeDefaultBodyDetailsItems0 */ type AddNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -726,7 +712,6 @@ type AddNodeDefaultBodyDetailsItems0 struct { func (o *AddNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -764,7 +749,6 @@ func (o *AddNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -828,7 +812,6 @@ AddNodeOKBody add node OK body swagger:model AddNodeOKBody */ type AddNodeOKBody struct { - // container Container *AddNodeOKBodyContainer `json:"container,omitempty"` @@ -1055,7 +1038,6 @@ func (o *AddNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *AddNodeOKBody) contextValidateContainer(ctx context.Context, formats strfmt.Registry) error { - if o.Container != nil { if swag.IsZero(o.Container) { // not required @@ -1080,7 +1062,6 @@ func (o *AddNodeOKBody) contextValidateContainer(ctx context.Context, formats st } func (o *AddNodeOKBody) contextValidateGeneric(ctx context.Context, formats strfmt.Registry) error { - if o.Generic != nil { if swag.IsZero(o.Generic) { // not required @@ -1105,7 +1086,6 @@ func (o *AddNodeOKBody) contextValidateGeneric(ctx context.Context, formats strf } func (o *AddNodeOKBody) contextValidateRemote(ctx context.Context, formats strfmt.Registry) error { - if o.Remote != nil { if swag.IsZero(o.Remote) { // not required @@ -1130,7 +1110,6 @@ func (o *AddNodeOKBody) contextValidateRemote(ctx context.Context, formats strfm } func (o *AddNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteAzureDatabase != nil { if swag.IsZero(o.RemoteAzureDatabase) { // not required @@ -1155,7 +1134,6 @@ func (o *AddNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, } func (o *AddNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteElasticache != nil { if swag.IsZero(o.RemoteElasticache) { // not required @@ -1180,7 +1158,6 @@ func (o *AddNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, fo } func (o *AddNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteRDS != nil { if swag.IsZero(o.RemoteRDS) { // not required @@ -1227,7 +1204,6 @@ AddNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model AddNodeOKBodyContainer */ type AddNodeOKBodyContainer struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1295,7 +1271,6 @@ AddNodeOKBodyGeneric GenericNode represents a bare metal server or virtual machi swagger:model AddNodeOKBodyGeneric */ type AddNodeOKBodyGeneric struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1360,7 +1335,6 @@ AddNodeOKBodyRemote RemoteNode represents generic remote Node. It's a node where swagger:model AddNodeOKBodyRemote */ type AddNodeOKBodyRemote struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1416,7 +1390,6 @@ AddNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote Azure swagger:model AddNodeOKBodyRemoteAzureDatabase */ type AddNodeOKBodyRemoteAzureDatabase struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1472,7 +1445,6 @@ AddNodeOKBodyRemoteElasticache RemoteElastiCacheNode represents remote ElastiCac swagger:model AddNodeOKBodyRemoteElasticache */ type AddNodeOKBodyRemoteElasticache struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1531,7 +1503,6 @@ AddNodeOKBodyRemoteRDS RemoteRDSNode represents remote RDS Node. Agents can't ru swagger:model AddNodeOKBodyRemoteRDS */ type AddNodeOKBodyRemoteRDS struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1590,7 +1561,6 @@ AddNodeParamsBodyContainer add node params body container swagger:model AddNodeParamsBodyContainer */ type AddNodeParamsBodyContainer struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1652,7 +1622,6 @@ AddNodeParamsBodyGeneric add node params body generic swagger:model AddNodeParamsBodyGeneric */ type AddNodeParamsBodyGeneric struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1711,7 +1680,6 @@ AddNodeParamsBodyRemote add node params body remote swagger:model AddNodeParamsBodyRemote */ type AddNodeParamsBodyRemote struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1764,7 +1732,6 @@ AddNodeParamsBodyRemoteAzure add node params body remote azure swagger:model AddNodeParamsBodyRemoteAzure */ type AddNodeParamsBodyRemoteAzure struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1817,7 +1784,6 @@ AddNodeParamsBodyRemoteElasticache add node params body remote elasticache swagger:model AddNodeParamsBodyRemoteElasticache */ type AddNodeParamsBodyRemoteElasticache struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` @@ -1873,7 +1839,6 @@ AddNodeParamsBodyRemoteRDS add node params body remote RDS swagger:model AddNodeParamsBodyRemoteRDS */ type AddNodeParamsBodyRemoteRDS struct { - // Unique across all Nodes user-defined name. NodeName string `json:"node_name,omitempty"` diff --git a/api/inventory/v1/json/client/nodes_service/get_node_parameters.go b/api/inventory/v1/json/client/nodes_service/get_node_parameters.go index 25b4a671bc0..3498346e1f1 100644 --- a/api/inventory/v1/json/client/nodes_service/get_node_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/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 { - /* NodeID. Unique randomly generated instance identifier. @@ -133,7 +132,6 @@ func (o *GetNodeParams) SetNodeID(nodeID string) { // 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/inventory/v1/json/client/nodes_service/get_node_responses.go b/api/inventory/v1/json/client/nodes_service/get_node_responses.go index 4246e1762d4..7f5342b5ad8 100644 --- a/api/inventory/v1/json/client/nodes_service/get_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/get_node_responses.go @@ -104,7 +104,6 @@ func (o *GetNodeOK) GetPayload() *GetNodeOKBody { } func (o *GetNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetNodeOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetNodeDefault) GetPayload() *GetNodeDefaultBody { } func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetNodeDefaultBody) // response payload @@ -194,7 +192,6 @@ GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -315,7 +309,6 @@ GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetNodeDefaultBodyDetailsItems0 struct { func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { - // container Container *GetNodeOKBodyContainer `json:"container,omitempty"` @@ -656,7 +646,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 swag.IsZero(o.Container) { // not required @@ -681,7 +670,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 swag.IsZero(o.Generic) { // not required @@ -706,7 +694,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 swag.IsZero(o.Remote) { // not required @@ -731,7 +718,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 swag.IsZero(o.RemoteAzureDatabase) { // not required @@ -756,7 +742,6 @@ func (o *GetNodeOKBody) contextValidateRemoteAzureDatabase(ctx context.Context, } func (o *GetNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteElasticache != nil { if swag.IsZero(o.RemoteElasticache) { // not required @@ -781,7 +766,6 @@ func (o *GetNodeOKBody) contextValidateRemoteElasticache(ctx context.Context, fo } func (o *GetNodeOKBody) contextValidateRemoteRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RemoteRDS != nil { if swag.IsZero(o.RemoteRDS) { // not required @@ -828,7 +812,6 @@ GetNodeOKBodyContainer ContainerNode represents a Docker container. swagger:model GetNodeOKBodyContainer */ type GetNodeOKBodyContainer struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -896,7 +879,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"` @@ -961,7 +943,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"` @@ -1017,7 +998,6 @@ GetNodeOKBodyRemoteAzureDatabase RemoteAzureDatabaseNode represents remote Azure swagger:model GetNodeOKBodyRemoteAzureDatabase */ type GetNodeOKBodyRemoteAzureDatabase struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1073,7 +1053,6 @@ GetNodeOKBodyRemoteElasticache RemoteElastiCacheNode represents remote ElastiCac swagger:model GetNodeOKBodyRemoteElasticache */ type GetNodeOKBodyRemoteElasticache struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1132,7 +1111,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/inventory/v1/json/client/nodes_service/list_nodes_parameters.go b/api/inventory/v1/json/client/nodes_service/list_nodes_parameters.go index 828de4c8f11..63128821ce8 100644 --- a/api/inventory/v1/json/client/nodes_service/list_nodes_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/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 { - /* NodeType. Return only Nodes with matching Node type. @@ -86,9 +85,7 @@ func (o *ListNodesParams) WithDefaults() *ListNodesParams { // // All values with no default are reset to their zero value. func (o *ListNodesParams) SetDefaults() { - var ( - nodeTypeDefault = string("NODE_TYPE_UNSPECIFIED") - ) + nodeTypeDefault := string("NODE_TYPE_UNSPECIFIED") val := ListNodesParams{ NodeType: &nodeTypeDefault, @@ -146,7 +143,6 @@ func (o *ListNodesParams) SetNodeType(nodeType *string) { // 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 } @@ -162,7 +158,6 @@ func (o *ListNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg } qNodeType := qrNodeType if qNodeType != "" { - if err := r.SetQueryParam("node_type", qNodeType); err != nil { return err } diff --git a/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go b/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go index f80d13ebb35..61197977382 100644 --- a/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go +++ b/api/inventory/v1/json/client/nodes_service/list_nodes_responses.go @@ -104,7 +104,6 @@ func (o *ListNodesOK) GetPayload() *ListNodesOKBody { } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesDefaultBody) // response payload @@ -194,7 +192,6 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -315,7 +309,6 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListNodesDefaultBodyDetailsItems0 struct { func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListNodesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { - // generic Generic []*ListNodesOKBodyGenericItems0 `json:"generic"` @@ -698,9 +688,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 swag.IsZero(o.Generic[i]) { // not required @@ -720,16 +708,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 swag.IsZero(o.Container[i]) { // not required @@ -749,16 +734,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 swag.IsZero(o.Remote[i]) { // not required @@ -778,16 +760,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 swag.IsZero(o.RemoteRDS[i]) { // not required @@ -807,16 +786,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 swag.IsZero(o.RemoteAzureDatabase[i]) { // not required @@ -836,16 +812,13 @@ func (o *ListNodesOKBody) contextValidateRemoteAzureDatabase(ctx context.Context return err } } - } return nil } func (o *ListNodesOKBody) contextValidateRemoteElasticache(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.RemoteElasticache); i++ { - if o.RemoteElasticache[i] != nil { if swag.IsZero(o.RemoteElasticache[i]) { // not required @@ -865,7 +838,6 @@ func (o *ListNodesOKBody) contextValidateRemoteElasticache(ctx context.Context, return err } } - } return nil @@ -894,7 +866,6 @@ ListNodesOKBodyContainerItems0 ContainerNode represents a Docker container. swagger:model ListNodesOKBodyContainerItems0 */ type ListNodesOKBodyContainerItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -962,7 +933,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"` @@ -1027,7 +997,6 @@ ListNodesOKBodyRemoteAzureDatabaseItems0 RemoteAzureDatabaseNode represents remo swagger:model ListNodesOKBodyRemoteAzureDatabaseItems0 */ type ListNodesOKBodyRemoteAzureDatabaseItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1083,7 +1052,6 @@ ListNodesOKBodyRemoteElasticacheItems0 RemoteElastiCacheNode represents remote E swagger:model ListNodesOKBodyRemoteElasticacheItems0 */ type ListNodesOKBodyRemoteElasticacheItems0 struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1142,7 +1110,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"` @@ -1198,7 +1165,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/inventory/v1/json/client/nodes_service/remove_node_parameters.go b/api/inventory/v1/json/client/nodes_service/remove_node_parameters.go index c2bfa764dad..62194bd1a8e 100644 --- a/api/inventory/v1/json/client/nodes_service/remove_node_parameters.go +++ b/api/inventory/v1/json/client/nodes_service/remove_node_parameters.go @@ -61,7 +61,6 @@ RemoveNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveNodeParams struct { - /* Force. Remove node with all dependencies. @@ -151,7 +150,6 @@ func (o *RemoveNodeParams) SetNodeID(nodeID string) { // 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 } @@ -167,7 +165,6 @@ func (o *RemoveNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qForce := swag.FormatBool(qrForce) if qForce != "" { - if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/inventory/v1/json/client/nodes_service/remove_node_responses.go b/api/inventory/v1/json/client/nodes_service/remove_node_responses.go index e16f0f64905..4fc5f3a61c4 100644 --- a/api/inventory/v1/json/client/nodes_service/remove_node_responses.go +++ b/api/inventory/v1/json/client/nodes_service/remove_node_responses.go @@ -104,7 +104,6 @@ func (o *RemoveNodeOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *RemoveNodeDefault) GetPayload() *RemoveNodeDefaultBody { } func (o *RemoveNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveNodeDefaultBody) // response payload @@ -192,7 +190,6 @@ RemoveNodeDefaultBody remove node default body swagger:model RemoveNodeDefaultBody */ type RemoveNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *RemoveNodeDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -313,7 +307,6 @@ RemoveNodeDefaultBodyDetailsItems0 remove node default body details items0 swagger:model RemoveNodeDefaultBodyDetailsItems0 */ type RemoveNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type RemoveNodeDefaultBodyDetailsItems0 struct { func (o *RemoveNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *RemoveNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventory/v1/json/client/services_service/add_service_parameters.go b/api/inventory/v1/json/client/services_service/add_service_parameters.go index db289d481c3..ed2a7830ee1 100644 --- a/api/inventory/v1/json/client/services_service/add_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/add_service_parameters.go @@ -60,7 +60,6 @@ AddServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddServiceParams struct { - // Body. Body AddServiceBody @@ -130,7 +129,6 @@ func (o *AddServiceParams) SetBody(body AddServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/add_service_responses.go b/api/inventory/v1/json/client/services_service/add_service_responses.go index 8dbbb3552eb..04f7212eda1 100644 --- a/api/inventory/v1/json/client/services_service/add_service_responses.go +++ b/api/inventory/v1/json/client/services_service/add_service_responses.go @@ -104,7 +104,6 @@ func (o *AddServiceOK) GetPayload() *AddServiceOKBody { } func (o *AddServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddServiceOKBody) // response payload @@ -178,7 +177,6 @@ func (o *AddServiceDefault) GetPayload() *AddServiceDefaultBody { } func (o *AddServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddServiceDefaultBody) // response payload @@ -194,7 +192,6 @@ AddServiceBody add service body swagger:model AddServiceBody */ type AddServiceBody struct { - // external External *AddServiceParamsBodyExternal `json:"external,omitempty"` @@ -455,7 +452,6 @@ func (o *AddServiceBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if swag.IsZero(o.External) { // not required @@ -480,7 +476,6 @@ func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -505,7 +500,6 @@ func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -530,7 +524,6 @@ func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -555,7 +548,6 @@ func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfm } func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -580,7 +572,6 @@ func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats } func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -605,7 +596,6 @@ func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -652,7 +642,6 @@ AddServiceDefaultBody add service default body swagger:model AddServiceDefaultBody */ type AddServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -722,9 +711,7 @@ func (o *AddServiceDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -744,7 +731,6 @@ func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -773,7 +759,6 @@ AddServiceDefaultBodyDetailsItems0 add service default body details items0 swagger:model AddServiceDefaultBodyDetailsItems0 */ type AddServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -785,7 +770,6 @@ type AddServiceDefaultBodyDetailsItems0 struct { func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -823,7 +807,6 @@ func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -887,7 +870,6 @@ AddServiceOKBody add service OK body swagger:model AddServiceOKBody */ type AddServiceOKBody struct { - // external External *AddServiceOKBodyExternal `json:"external,omitempty"` @@ -1148,7 +1130,6 @@ func (o *AddServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if swag.IsZero(o.External) { // not required @@ -1173,7 +1154,6 @@ func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -1198,7 +1178,6 @@ func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -1223,7 +1202,6 @@ func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -1248,7 +1226,6 @@ func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats str } func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -1273,7 +1250,6 @@ func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, format } func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -1298,7 +1274,6 @@ func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -1345,7 +1320,6 @@ AddServiceOKBodyExternal ExternalService represents a generic External service i swagger:model AddServiceOKBodyExternal */ type AddServiceOKBodyExternal struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1410,7 +1384,6 @@ AddServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service inst swagger:model AddServiceOKBodyHaproxy */ type AddServiceOKBodyHaproxy struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1466,7 +1439,6 @@ AddServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model AddServiceOKBodyMongodb */ type AddServiceOKBodyMongodb struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1537,7 +1509,6 @@ AddServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model AddServiceOKBodyMysql */ type AddServiceOKBodyMysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1611,7 +1582,6 @@ AddServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL ins swagger:model AddServiceOKBodyPostgresql */ type AddServiceOKBodyPostgresql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1688,7 +1658,6 @@ AddServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instance. swagger:model AddServiceOKBodyProxysql */ type AddServiceOKBodyProxysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1759,7 +1728,6 @@ AddServiceOKBodyValkey ValkeyService represents a generic Valkey instance. swagger:model AddServiceOKBodyValkey */ type AddServiceOKBodyValkey struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1830,7 +1798,6 @@ AddServiceParamsBodyExternal add service params body external swagger:model AddServiceParamsBodyExternal */ type AddServiceParamsBodyExternal struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -1886,7 +1853,6 @@ AddServiceParamsBodyHaproxy add service params body haproxy swagger:model AddServiceParamsBodyHaproxy */ type AddServiceParamsBodyHaproxy struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -1939,7 +1905,6 @@ AddServiceParamsBodyMongodb add service params body mongodb swagger:model AddServiceParamsBodyMongodb */ type AddServiceParamsBodyMongodb struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2004,7 +1969,6 @@ AddServiceParamsBodyMysql add service params body mysql swagger:model AddServiceParamsBodyMysql */ type AddServiceParamsBodyMysql struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2072,7 +2036,6 @@ AddServiceParamsBodyPostgresql add service params body postgresql swagger:model AddServiceParamsBodyPostgresql */ type AddServiceParamsBodyPostgresql struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2140,7 +2103,6 @@ AddServiceParamsBodyProxysql add service params body proxysql swagger:model AddServiceParamsBodyProxysql */ type AddServiceParamsBodyProxysql struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` @@ -2205,7 +2167,6 @@ AddServiceParamsBodyValkey add service params body valkey swagger:model AddServiceParamsBodyValkey */ type AddServiceParamsBodyValkey struct { - // Unique across all Services user-defined name. Required. ServiceName string `json:"service_name,omitempty"` diff --git a/api/inventory/v1/json/client/services_service/change_service_parameters.go b/api/inventory/v1/json/client/services_service/change_service_parameters.go index d2ffc87b968..d718cb7f5b9 100644 --- a/api/inventory/v1/json/client/services_service/change_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/change_service_parameters.go @@ -60,7 +60,6 @@ ChangeServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ChangeServiceParams struct { - // Body. Body ChangeServiceBody @@ -144,7 +143,6 @@ func (o *ChangeServiceParams) SetServiceID(serviceID string) { // WriteToRequest writes these params to a swagger request func (o *ChangeServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/change_service_responses.go b/api/inventory/v1/json/client/services_service/change_service_responses.go index 2e693a4093c..3b515455437 100644 --- a/api/inventory/v1/json/client/services_service/change_service_responses.go +++ b/api/inventory/v1/json/client/services_service/change_service_responses.go @@ -104,7 +104,6 @@ func (o *ChangeServiceOK) GetPayload() *ChangeServiceOKBody { } func (o *ChangeServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeServiceOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ChangeServiceDefault) GetPayload() *ChangeServiceDefaultBody { } func (o *ChangeServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeServiceDefaultBody) // response payload @@ -194,7 +192,6 @@ ChangeServiceBody change service body swagger:model ChangeServiceBody */ type ChangeServiceBody struct { - // environment Environment *string `json:"environment,omitempty"` @@ -263,7 +260,6 @@ func (o *ChangeServiceBody) ContextValidate(ctx context.Context, formats strfmt. } func (o *ChangeServiceBody) contextValidateCustomLabels(ctx context.Context, formats strfmt.Registry) error { - if o.CustomLabels != nil { if swag.IsZero(o.CustomLabels) { // not required @@ -310,7 +306,6 @@ ChangeServiceDefaultBody change service default body swagger:model ChangeServiceDefaultBody */ type ChangeServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -380,9 +375,7 @@ func (o *ChangeServiceDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ChangeServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -402,7 +395,6 @@ func (o *ChangeServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -431,7 +423,6 @@ ChangeServiceDefaultBodyDetailsItems0 change service default body details items0 swagger:model ChangeServiceDefaultBodyDetailsItems0 */ type ChangeServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -443,7 +434,6 @@ type ChangeServiceDefaultBodyDetailsItems0 struct { func (o *ChangeServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -481,7 +471,6 @@ func (o *ChangeServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -545,7 +534,6 @@ ChangeServiceOKBody change service OK body swagger:model ChangeServiceOKBody */ type ChangeServiceOKBody struct { - // external External *ChangeServiceOKBodyExternal `json:"external,omitempty"` @@ -806,7 +794,6 @@ func (o *ChangeServiceOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *ChangeServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if swag.IsZero(o.External) { // not required @@ -831,7 +818,6 @@ func (o *ChangeServiceOKBody) contextValidateExternal(ctx context.Context, forma } func (o *ChangeServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -856,7 +842,6 @@ func (o *ChangeServiceOKBody) contextValidateHaproxy(ctx context.Context, format } func (o *ChangeServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -881,7 +866,6 @@ func (o *ChangeServiceOKBody) contextValidateMongodb(ctx context.Context, format } func (o *ChangeServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -906,7 +890,6 @@ func (o *ChangeServiceOKBody) contextValidateMysql(ctx context.Context, formats } func (o *ChangeServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -931,7 +914,6 @@ func (o *ChangeServiceOKBody) contextValidatePostgresql(ctx context.Context, for } func (o *ChangeServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -956,7 +938,6 @@ func (o *ChangeServiceOKBody) contextValidateProxysql(ctx context.Context, forma } func (o *ChangeServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -1003,7 +984,6 @@ ChangeServiceOKBodyExternal ExternalService represents a generic External servic swagger:model ChangeServiceOKBodyExternal */ type ChangeServiceOKBodyExternal struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1068,7 +1048,6 @@ ChangeServiceOKBodyHaproxy HAProxyService represents a generic HAProxy service i swagger:model ChangeServiceOKBodyHaproxy */ type ChangeServiceOKBodyHaproxy struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1124,7 +1103,6 @@ ChangeServiceOKBodyMongodb MongoDBService represents a generic MongoDB instance. swagger:model ChangeServiceOKBodyMongodb */ type ChangeServiceOKBodyMongodb struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1195,7 +1173,6 @@ ChangeServiceOKBodyMysql MySQLService represents a generic MySQL instance. swagger:model ChangeServiceOKBodyMysql */ type ChangeServiceOKBodyMysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1269,7 +1246,6 @@ ChangeServiceOKBodyPostgresql PostgreSQLService represents a generic PostgreSQL swagger:model ChangeServiceOKBodyPostgresql */ type ChangeServiceOKBodyPostgresql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1346,7 +1322,6 @@ ChangeServiceOKBodyProxysql ProxySQLService represents a generic ProxySQL instan swagger:model ChangeServiceOKBodyProxysql */ type ChangeServiceOKBodyProxysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1417,7 +1392,6 @@ ChangeServiceOKBodyValkey ValkeyService represents a generic Valkey instance. swagger:model ChangeServiceOKBodyValkey */ type ChangeServiceOKBodyValkey struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1488,7 +1462,6 @@ ChangeServiceParamsBodyCustomLabels A wrapper for map[string]string. This type a swagger:model ChangeServiceParamsBodyCustomLabels */ type ChangeServiceParamsBodyCustomLabels struct { - // values Values map[string]string `json:"values,omitempty"` } diff --git a/api/inventory/v1/json/client/services_service/get_service_parameters.go b/api/inventory/v1/json/client/services_service/get_service_parameters.go index 12989ecf6ae..8569bce763c 100644 --- a/api/inventory/v1/json/client/services_service/get_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/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 { - /* ServiceID. Unique randomly generated instance identifier. @@ -133,7 +132,6 @@ func (o *GetServiceParams) SetServiceID(serviceID string) { // 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/inventory/v1/json/client/services_service/get_service_responses.go b/api/inventory/v1/json/client/services_service/get_service_responses.go index 0c2a396fa28..798b441b811 100644 --- a/api/inventory/v1/json/client/services_service/get_service_responses.go +++ b/api/inventory/v1/json/client/services_service/get_service_responses.go @@ -104,7 +104,6 @@ func (o *GetServiceOK) GetPayload() *GetServiceOKBody { } func (o *GetServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetServiceOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetServiceDefault) GetPayload() *GetServiceDefaultBody { } func (o *GetServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetServiceDefaultBody) // response payload @@ -194,7 +192,6 @@ GetServiceDefaultBody get service default body swagger:model GetServiceDefaultBody */ type GetServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -315,7 +309,6 @@ GetServiceDefaultBodyDetailsItems0 get service default body details items0 swagger:model GetServiceDefaultBodyDetailsItems0 */ type GetServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetServiceDefaultBodyDetailsItems0 struct { func (o *GetServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetServiceOKBody get service OK body swagger:model GetServiceOKBody */ type GetServiceOKBody struct { - // external External *GetServiceOKBodyExternal `json:"external,omitempty"` @@ -690,7 +680,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 swag.IsZero(o.External) { // not required @@ -715,7 +704,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 swag.IsZero(o.Haproxy) { // not required @@ -740,7 +728,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 swag.IsZero(o.Mongodb) { // not required @@ -765,7 +752,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 swag.IsZero(o.Mysql) { // not required @@ -790,7 +776,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 swag.IsZero(o.Postgresql) { // not required @@ -815,7 +800,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 swag.IsZero(o.Proxysql) { // not required @@ -840,7 +824,6 @@ func (o *GetServiceOKBody) contextValidateProxysql(ctx context.Context, formats } func (o *GetServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -887,7 +870,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"` @@ -952,7 +934,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"` @@ -1008,7 +989,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"` @@ -1079,7 +1059,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"` @@ -1153,7 +1132,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"` @@ -1230,7 +1208,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"` @@ -1301,7 +1278,6 @@ GetServiceOKBodyValkey ValkeyService represents a generic Valkey instance. swagger:model GetServiceOKBodyValkey */ type GetServiceOKBodyValkey struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go b/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go index e51b41675fb..9415db910a0 100644 --- a/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go +++ b/api/inventory/v1/json/client/services_service/list_active_service_types_parameters.go @@ -60,7 +60,6 @@ ListActiveServiceTypesParams contains all the parameters to send to the API endp Typically these are written to a http.Request. */ type ListActiveServiceTypesParams struct { - // Body. Body any @@ -130,7 +129,6 @@ func (o *ListActiveServiceTypesParams) SetBody(body any) { // WriteToRequest writes these params to a swagger request func (o *ListActiveServiceTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go b/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go index 55e66e2850e..d973352a1e6 100644 --- a/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go +++ b/api/inventory/v1/json/client/services_service/list_active_service_types_responses.go @@ -105,7 +105,6 @@ func (o *ListActiveServiceTypesOK) GetPayload() *ListActiveServiceTypesOKBody { } func (o *ListActiveServiceTypesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListActiveServiceTypesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListActiveServiceTypesDefault) GetPayload() *ListActiveServiceTypesDefa } func (o *ListActiveServiceTypesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListActiveServiceTypesDefaultBody) // response payload @@ -195,7 +193,6 @@ ListActiveServiceTypesDefaultBody list active service types default body swagger:model ListActiveServiceTypesDefaultBody */ type ListActiveServiceTypesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListActiveServiceTypesDefaultBody) ContextValidate(ctx context.Context, } func (o *ListActiveServiceTypesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListActiveServiceTypesDefaultBody) contextValidateDetails(ctx context.C return err } } - } return nil @@ -316,7 +310,6 @@ ListActiveServiceTypesDefaultBodyDetailsItems0 list active service types default swagger:model ListActiveServiceTypesDefaultBodyDetailsItems0 */ type ListActiveServiceTypesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListActiveServiceTypesDefaultBodyDetailsItems0 struct { func (o *ListActiveServiceTypesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListActiveServiceTypesDefaultBodyDetailsItems0) UnmarshalJSON(data []by // MarshalJSON marshals this object with additional properties into a JSON object func (o ListActiveServiceTypesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListActiveServiceTypesOKBody list active service types OK body swagger:model ListActiveServiceTypesOKBody */ type ListActiveServiceTypesOKBody struct { - // service types ServiceTypes []*string `json:"service_types"` } diff --git a/api/inventory/v1/json/client/services_service/list_services_parameters.go b/api/inventory/v1/json/client/services_service/list_services_parameters.go index 9c038187829..2173e7e1824 100644 --- a/api/inventory/v1/json/client/services_service/list_services_parameters.go +++ b/api/inventory/v1/json/client/services_service/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 { - /* ExternalGroup. Return only services in this external group. @@ -98,9 +97,7 @@ func (o *ListServicesParams) WithDefaults() *ListServicesParams { // // All values with no default are reset to their zero value. func (o *ListServicesParams) SetDefaults() { - var ( - serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") - ) + serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") val := ListServicesParams{ ServiceType: &serviceTypeDefault, @@ -180,7 +177,6 @@ func (o *ListServicesParams) SetServiceType(serviceType *string) { // 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 } @@ -196,7 +192,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qExternalGroup := qrExternalGroup if qExternalGroup != "" { - if err := r.SetQueryParam("external_group", qExternalGroup); err != nil { return err } @@ -213,7 +208,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qNodeID := qrNodeID if qNodeID != "" { - if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -230,7 +224,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qServiceType := qrServiceType if qServiceType != "" { - if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/list_services_responses.go b/api/inventory/v1/json/client/services_service/list_services_responses.go index 3207db63e40..68f7aa12d99 100644 --- a/api/inventory/v1/json/client/services_service/list_services_responses.go +++ b/api/inventory/v1/json/client/services_service/list_services_responses.go @@ -104,7 +104,6 @@ func (o *ListServicesOK) GetPayload() *ListServicesOKBody { } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesDefaultBody) // response payload @@ -194,7 +192,6 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -315,7 +309,6 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListServicesDefaultBodyDetailsItems0 struct { func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { - // mysql Mysql []*ListServicesOKBodyMysqlItems0 `json:"mysql"` @@ -739,9 +729,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 swag.IsZero(o.Mysql[i]) { // not required @@ -761,16 +749,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 swag.IsZero(o.Mongodb[i]) { // not required @@ -790,16 +775,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 swag.IsZero(o.Postgresql[i]) { // not required @@ -819,16 +801,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 swag.IsZero(o.Proxysql[i]) { // not required @@ -848,16 +827,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 swag.IsZero(o.Haproxy[i]) { // not required @@ -877,16 +853,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 swag.IsZero(o.External[i]) { // not required @@ -906,16 +879,13 @@ func (o *ListServicesOKBody) contextValidateExternal(ctx context.Context, format return err } } - } return nil } func (o *ListServicesOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Valkey); i++ { - if o.Valkey[i] != nil { if swag.IsZero(o.Valkey[i]) { // not required @@ -935,7 +905,6 @@ func (o *ListServicesOKBody) contextValidateValkey(ctx context.Context, formats return err } } - } return nil @@ -964,7 +933,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"` @@ -1029,7 +997,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"` @@ -1085,7 +1052,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"` @@ -1156,7 +1122,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"` @@ -1230,7 +1195,6 @@ ListServicesOKBodyPostgresqlItems0 PostgreSQLService represents a generic Postgr swagger:model ListServicesOKBodyPostgresqlItems0 */ type ListServicesOKBodyPostgresqlItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -1307,7 +1271,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"` @@ -1378,7 +1341,6 @@ ListServicesOKBodyValkeyItems0 ValkeyService represents a generic Valkey instanc swagger:model ListServicesOKBodyValkeyItems0 */ type ListServicesOKBodyValkeyItems0 struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/inventory/v1/json/client/services_service/remove_service_parameters.go b/api/inventory/v1/json/client/services_service/remove_service_parameters.go index 09c33e6bcd7..876f2945e99 100644 --- a/api/inventory/v1/json/client/services_service/remove_service_parameters.go +++ b/api/inventory/v1/json/client/services_service/remove_service_parameters.go @@ -61,7 +61,6 @@ RemoveServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type RemoveServiceParams struct { - /* Force. Remove service with all dependencies. @@ -151,7 +150,6 @@ func (o *RemoveServiceParams) SetServiceID(serviceID string) { // 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 } @@ -167,7 +165,6 @@ func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qForce := swag.FormatBool(qrForce) if qForce != "" { - if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/inventory/v1/json/client/services_service/remove_service_responses.go b/api/inventory/v1/json/client/services_service/remove_service_responses.go index 404174da350..399b18b8cf9 100644 --- a/api/inventory/v1/json/client/services_service/remove_service_responses.go +++ b/api/inventory/v1/json/client/services_service/remove_service_responses.go @@ -104,7 +104,6 @@ func (o *RemoveServiceOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -192,7 +190,6 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -313,7 +307,6 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type RemoveServiceDefaultBodyDetailsItems0 struct { func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/inventory/v1/log_level.pb.go b/api/inventory/v1/log_level.pb.go index 16defbb9016..cd798d6fb86 100644 --- a/api/inventory/v1/log_level.pb.go +++ b/api/inventory/v1/log_level.pb.go @@ -7,11 +7,12 @@ package inventoryv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -107,10 +108,13 @@ func file_inventory_v1_log_level_proto_rawDescGZIP() []byte { return file_inventory_v1_log_level_proto_rawDescData } -var file_inventory_v1_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventory_v1_log_level_proto_goTypes = []any{ - (LogLevel)(0), // 0: inventory.v1.LogLevel -} +var ( + file_inventory_v1_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventory_v1_log_level_proto_goTypes = []any{ + (LogLevel)(0), // 0: inventory.v1.LogLevel + } +) + var file_inventory_v1_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/inventory/v1/nodes.pb.go b/api/inventory/v1/nodes.pb.go index 1d6c05d14fe..677e5bbd038 100644 --- a/api/inventory/v1/nodes.pb.go +++ b/api/inventory/v1/nodes.pb.go @@ -7,14 +7,15 @@ package inventoryv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "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" - unsafe "unsafe" ) const ( @@ -2306,43 +2307,46 @@ func file_inventory_v1_nodes_proto_rawDescGZIP() []byte { return file_inventory_v1_nodes_proto_rawDescData } -var file_inventory_v1_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 32) -var file_inventory_v1_nodes_proto_goTypes = []any{ - (NodeType)(0), // 0: inventory.v1.NodeType - (*GenericNode)(nil), // 1: inventory.v1.GenericNode - (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode - (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode - (*RemoteRDSNode)(nil), // 4: inventory.v1.RemoteRDSNode - (*RemoteAzureDatabaseNode)(nil), // 5: inventory.v1.RemoteAzureDatabaseNode - (*RemoteElastiCacheNode)(nil), // 6: inventory.v1.RemoteElastiCacheNode - (*ListNodesRequest)(nil), // 7: inventory.v1.ListNodesRequest - (*ListNodesResponse)(nil), // 8: inventory.v1.ListNodesResponse - (*GetNodeRequest)(nil), // 9: inventory.v1.GetNodeRequest - (*GetNodeResponse)(nil), // 10: inventory.v1.GetNodeResponse - (*AddNodeRequest)(nil), // 11: inventory.v1.AddNodeRequest - (*AddNodeResponse)(nil), // 12: inventory.v1.AddNodeResponse - (*AddGenericNodeParams)(nil), // 13: inventory.v1.AddGenericNodeParams - (*AddContainerNodeParams)(nil), // 14: inventory.v1.AddContainerNodeParams - (*AddRemoteNodeParams)(nil), // 15: inventory.v1.AddRemoteNodeParams - (*AddRemoteRDSNodeParams)(nil), // 16: inventory.v1.AddRemoteRDSNodeParams - (*AddRemoteAzureNodeParams)(nil), // 17: inventory.v1.AddRemoteAzureNodeParams - (*AddRemoteElastiCacheNodeParams)(nil), // 18: inventory.v1.AddRemoteElastiCacheNodeParams - (*RemoveNodeRequest)(nil), // 19: inventory.v1.RemoveNodeRequest - (*RemoveNodeResponse)(nil), // 20: inventory.v1.RemoveNodeResponse - nil, // 21: inventory.v1.GenericNode.CustomLabelsEntry - nil, // 22: inventory.v1.ContainerNode.CustomLabelsEntry - nil, // 23: inventory.v1.RemoteNode.CustomLabelsEntry - nil, // 24: inventory.v1.RemoteRDSNode.CustomLabelsEntry - nil, // 25: inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry - nil, // 26: inventory.v1.RemoteElastiCacheNode.CustomLabelsEntry - nil, // 27: inventory.v1.AddGenericNodeParams.CustomLabelsEntry - nil, // 28: inventory.v1.AddContainerNodeParams.CustomLabelsEntry - nil, // 29: inventory.v1.AddRemoteNodeParams.CustomLabelsEntry - nil, // 30: inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry - nil, // 31: inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry - nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry -} +var ( + file_inventory_v1_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 32) + file_inventory_v1_nodes_proto_goTypes = []any{ + (NodeType)(0), // 0: inventory.v1.NodeType + (*GenericNode)(nil), // 1: inventory.v1.GenericNode + (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode + (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode + (*RemoteRDSNode)(nil), // 4: inventory.v1.RemoteRDSNode + (*RemoteAzureDatabaseNode)(nil), // 5: inventory.v1.RemoteAzureDatabaseNode + (*RemoteElastiCacheNode)(nil), // 6: inventory.v1.RemoteElastiCacheNode + (*ListNodesRequest)(nil), // 7: inventory.v1.ListNodesRequest + (*ListNodesResponse)(nil), // 8: inventory.v1.ListNodesResponse + (*GetNodeRequest)(nil), // 9: inventory.v1.GetNodeRequest + (*GetNodeResponse)(nil), // 10: inventory.v1.GetNodeResponse + (*AddNodeRequest)(nil), // 11: inventory.v1.AddNodeRequest + (*AddNodeResponse)(nil), // 12: inventory.v1.AddNodeResponse + (*AddGenericNodeParams)(nil), // 13: inventory.v1.AddGenericNodeParams + (*AddContainerNodeParams)(nil), // 14: inventory.v1.AddContainerNodeParams + (*AddRemoteNodeParams)(nil), // 15: inventory.v1.AddRemoteNodeParams + (*AddRemoteRDSNodeParams)(nil), // 16: inventory.v1.AddRemoteRDSNodeParams + (*AddRemoteAzureNodeParams)(nil), // 17: inventory.v1.AddRemoteAzureNodeParams + (*AddRemoteElastiCacheNodeParams)(nil), // 18: inventory.v1.AddRemoteElastiCacheNodeParams + (*RemoveNodeRequest)(nil), // 19: inventory.v1.RemoveNodeRequest + (*RemoveNodeResponse)(nil), // 20: inventory.v1.RemoveNodeResponse + nil, // 21: inventory.v1.GenericNode.CustomLabelsEntry + nil, // 22: inventory.v1.ContainerNode.CustomLabelsEntry + nil, // 23: inventory.v1.RemoteNode.CustomLabelsEntry + nil, // 24: inventory.v1.RemoteRDSNode.CustomLabelsEntry + nil, // 25: inventory.v1.RemoteAzureDatabaseNode.CustomLabelsEntry + nil, // 26: inventory.v1.RemoteElastiCacheNode.CustomLabelsEntry + nil, // 27: inventory.v1.AddGenericNodeParams.CustomLabelsEntry + nil, // 28: inventory.v1.AddContainerNodeParams.CustomLabelsEntry + nil, // 29: inventory.v1.AddRemoteNodeParams.CustomLabelsEntry + nil, // 30: inventory.v1.AddRemoteRDSNodeParams.CustomLabelsEntry + nil, // 31: inventory.v1.AddRemoteAzureNodeParams.CustomLabelsEntry + nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry + } +) + var file_inventory_v1_nodes_proto_depIdxs = []int32{ 21, // 0: inventory.v1.GenericNode.custom_labels:type_name -> inventory.v1.GenericNode.CustomLabelsEntry 22, // 1: inventory.v1.ContainerNode.custom_labels:type_name -> inventory.v1.ContainerNode.CustomLabelsEntry diff --git a/api/inventory/v1/nodes_grpc.pb.go b/api/inventory/v1/nodes_grpc.pb.go index 14c8f370438..7142c1b4a15 100644 --- a/api/inventory/v1/nodes_grpc.pb.go +++ b/api/inventory/v1/nodes_grpc.pb.go @@ -8,6 +8,7 @@ package inventoryv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -116,12 +117,15 @@ type UnimplementedNodesServiceServer struct{} func (UnimplementedNodesServiceServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListNodes not implemented") } + func (UnimplementedNodesServiceServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetNode not implemented") } + func (UnimplementedNodesServiceServer) AddNode(context.Context, *AddNodeRequest) (*AddNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddNode not implemented") } + func (UnimplementedNodesServiceServer) RemoveNode(context.Context, *RemoveNodeRequest) (*RemoveNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveNode not implemented") } diff --git a/api/inventory/v1/services.pb.go b/api/inventory/v1/services.pb.go index d1a54903862..0ca7d8acb26 100644 --- a/api/inventory/v1/services.pb.go +++ b/api/inventory/v1/services.pb.go @@ -7,15 +7,17 @@ package inventoryv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - common "github.com/percona/pmm/api/common" _ "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" - unsafe "unsafe" + + common "github.com/percona/pmm/api/common" ) const ( @@ -3282,54 +3284,57 @@ func file_inventory_v1_services_proto_rawDescGZIP() []byte { return file_inventory_v1_services_proto_rawDescData } -var file_inventory_v1_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_inventory_v1_services_proto_msgTypes = make([]protoimpl.MessageInfo, 42) -var file_inventory_v1_services_proto_goTypes = []any{ - (ServiceType)(0), // 0: inventory.v1.ServiceType - (*MySQLService)(nil), // 1: inventory.v1.MySQLService - (*MongoDBService)(nil), // 2: inventory.v1.MongoDBService - (*PostgreSQLService)(nil), // 3: inventory.v1.PostgreSQLService - (*ValkeyService)(nil), // 4: inventory.v1.ValkeyService - (*ProxySQLService)(nil), // 5: inventory.v1.ProxySQLService - (*HAProxyService)(nil), // 6: inventory.v1.HAProxyService - (*ExternalService)(nil), // 7: inventory.v1.ExternalService - (*ListServicesRequest)(nil), // 8: inventory.v1.ListServicesRequest - (*ListServicesResponse)(nil), // 9: inventory.v1.ListServicesResponse - (*ListActiveServiceTypesRequest)(nil), // 10: inventory.v1.ListActiveServiceTypesRequest - (*ListActiveServiceTypesResponse)(nil), // 11: inventory.v1.ListActiveServiceTypesResponse - (*GetServiceRequest)(nil), // 12: inventory.v1.GetServiceRequest - (*GetServiceResponse)(nil), // 13: inventory.v1.GetServiceResponse - (*AddServiceRequest)(nil), // 14: inventory.v1.AddServiceRequest - (*AddServiceResponse)(nil), // 15: inventory.v1.AddServiceResponse - (*AddMySQLServiceParams)(nil), // 16: inventory.v1.AddMySQLServiceParams - (*AddMongoDBServiceParams)(nil), // 17: inventory.v1.AddMongoDBServiceParams - (*AddPostgreSQLServiceParams)(nil), // 18: inventory.v1.AddPostgreSQLServiceParams - (*AddValkeyServiceParams)(nil), // 19: inventory.v1.AddValkeyServiceParams - (*AddProxySQLServiceParams)(nil), // 20: inventory.v1.AddProxySQLServiceParams - (*AddHAProxyServiceParams)(nil), // 21: inventory.v1.AddHAProxyServiceParams - (*AddExternalServiceParams)(nil), // 22: inventory.v1.AddExternalServiceParams - (*RemoveServiceRequest)(nil), // 23: inventory.v1.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 24: inventory.v1.RemoveServiceResponse - (*ChangeServiceRequest)(nil), // 25: inventory.v1.ChangeServiceRequest - (*ChangeServiceResponse)(nil), // 26: inventory.v1.ChangeServiceResponse - nil, // 27: inventory.v1.MySQLService.CustomLabelsEntry - nil, // 28: inventory.v1.MySQLService.ExtraDsnParamsEntry - nil, // 29: inventory.v1.MongoDBService.CustomLabelsEntry - nil, // 30: inventory.v1.PostgreSQLService.CustomLabelsEntry - nil, // 31: inventory.v1.ValkeyService.CustomLabelsEntry - nil, // 32: inventory.v1.ProxySQLService.CustomLabelsEntry - nil, // 33: inventory.v1.HAProxyService.CustomLabelsEntry - nil, // 34: inventory.v1.ExternalService.CustomLabelsEntry - nil, // 35: inventory.v1.AddMySQLServiceParams.CustomLabelsEntry - nil, // 36: inventory.v1.AddMySQLServiceParams.ExtraDsnParamsEntry - nil, // 37: inventory.v1.AddMongoDBServiceParams.CustomLabelsEntry - nil, // 38: inventory.v1.AddPostgreSQLServiceParams.CustomLabelsEntry - nil, // 39: inventory.v1.AddValkeyServiceParams.CustomLabelsEntry - nil, // 40: inventory.v1.AddProxySQLServiceParams.CustomLabelsEntry - nil, // 41: inventory.v1.AddHAProxyServiceParams.CustomLabelsEntry - nil, // 42: inventory.v1.AddExternalServiceParams.CustomLabelsEntry - (*common.StringMap)(nil), // 43: common.StringMap -} +var ( + file_inventory_v1_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_inventory_v1_services_proto_msgTypes = make([]protoimpl.MessageInfo, 42) + file_inventory_v1_services_proto_goTypes = []any{ + (ServiceType)(0), // 0: inventory.v1.ServiceType + (*MySQLService)(nil), // 1: inventory.v1.MySQLService + (*MongoDBService)(nil), // 2: inventory.v1.MongoDBService + (*PostgreSQLService)(nil), // 3: inventory.v1.PostgreSQLService + (*ValkeyService)(nil), // 4: inventory.v1.ValkeyService + (*ProxySQLService)(nil), // 5: inventory.v1.ProxySQLService + (*HAProxyService)(nil), // 6: inventory.v1.HAProxyService + (*ExternalService)(nil), // 7: inventory.v1.ExternalService + (*ListServicesRequest)(nil), // 8: inventory.v1.ListServicesRequest + (*ListServicesResponse)(nil), // 9: inventory.v1.ListServicesResponse + (*ListActiveServiceTypesRequest)(nil), // 10: inventory.v1.ListActiveServiceTypesRequest + (*ListActiveServiceTypesResponse)(nil), // 11: inventory.v1.ListActiveServiceTypesResponse + (*GetServiceRequest)(nil), // 12: inventory.v1.GetServiceRequest + (*GetServiceResponse)(nil), // 13: inventory.v1.GetServiceResponse + (*AddServiceRequest)(nil), // 14: inventory.v1.AddServiceRequest + (*AddServiceResponse)(nil), // 15: inventory.v1.AddServiceResponse + (*AddMySQLServiceParams)(nil), // 16: inventory.v1.AddMySQLServiceParams + (*AddMongoDBServiceParams)(nil), // 17: inventory.v1.AddMongoDBServiceParams + (*AddPostgreSQLServiceParams)(nil), // 18: inventory.v1.AddPostgreSQLServiceParams + (*AddValkeyServiceParams)(nil), // 19: inventory.v1.AddValkeyServiceParams + (*AddProxySQLServiceParams)(nil), // 20: inventory.v1.AddProxySQLServiceParams + (*AddHAProxyServiceParams)(nil), // 21: inventory.v1.AddHAProxyServiceParams + (*AddExternalServiceParams)(nil), // 22: inventory.v1.AddExternalServiceParams + (*RemoveServiceRequest)(nil), // 23: inventory.v1.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 24: inventory.v1.RemoveServiceResponse + (*ChangeServiceRequest)(nil), // 25: inventory.v1.ChangeServiceRequest + (*ChangeServiceResponse)(nil), // 26: inventory.v1.ChangeServiceResponse + nil, // 27: inventory.v1.MySQLService.CustomLabelsEntry + nil, // 28: inventory.v1.MySQLService.ExtraDsnParamsEntry + nil, // 29: inventory.v1.MongoDBService.CustomLabelsEntry + nil, // 30: inventory.v1.PostgreSQLService.CustomLabelsEntry + nil, // 31: inventory.v1.ValkeyService.CustomLabelsEntry + nil, // 32: inventory.v1.ProxySQLService.CustomLabelsEntry + nil, // 33: inventory.v1.HAProxyService.CustomLabelsEntry + nil, // 34: inventory.v1.ExternalService.CustomLabelsEntry + nil, // 35: inventory.v1.AddMySQLServiceParams.CustomLabelsEntry + nil, // 36: inventory.v1.AddMySQLServiceParams.ExtraDsnParamsEntry + nil, // 37: inventory.v1.AddMongoDBServiceParams.CustomLabelsEntry + nil, // 38: inventory.v1.AddPostgreSQLServiceParams.CustomLabelsEntry + nil, // 39: inventory.v1.AddValkeyServiceParams.CustomLabelsEntry + nil, // 40: inventory.v1.AddProxySQLServiceParams.CustomLabelsEntry + nil, // 41: inventory.v1.AddHAProxyServiceParams.CustomLabelsEntry + nil, // 42: inventory.v1.AddExternalServiceParams.CustomLabelsEntry + (*common.StringMap)(nil), // 43: common.StringMap + } +) + var file_inventory_v1_services_proto_depIdxs = []int32{ 27, // 0: inventory.v1.MySQLService.custom_labels:type_name -> inventory.v1.MySQLService.CustomLabelsEntry 28, // 1: inventory.v1.MySQLService.extra_dsn_params:type_name -> inventory.v1.MySQLService.ExtraDsnParamsEntry diff --git a/api/inventory/v1/services.pb.validate.go b/api/inventory/v1/services.pb.validate.go index 6f939fb5f8f..79783d70e5d 100644 --- a/api/inventory/v1/services.pb.validate.go +++ b/api/inventory/v1/services.pb.validate.go @@ -4062,7 +4062,6 @@ func (m *ChangeServiceRequest) validate(all bool) error { } if m.CustomLabels != nil { - if all { switch v := interface{}(m.GetCustomLabels()).(type) { case interface{ ValidateAll() error }: @@ -4091,7 +4090,6 @@ func (m *ChangeServiceRequest) validate(all bool) error { } } } - } if len(errors) > 0 { diff --git a/api/inventory/v1/services_grpc.pb.go b/api/inventory/v1/services_grpc.pb.go index 27f42369172..1de232e4cc5 100644 --- a/api/inventory/v1/services_grpc.pb.go +++ b/api/inventory/v1/services_grpc.pb.go @@ -8,6 +8,7 @@ package inventoryv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -146,18 +147,23 @@ type UnimplementedServicesServiceServer struct{} func (UnimplementedServicesServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListServices not implemented") } + func (UnimplementedServicesServiceServer) ListActiveServiceTypes(context.Context, *ListActiveServiceTypesRequest) (*ListActiveServiceTypesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListActiveServiceTypes not implemented") } + func (UnimplementedServicesServiceServer) GetService(context.Context, *GetServiceRequest) (*GetServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetService not implemented") } + func (UnimplementedServicesServiceServer) AddService(context.Context, *AddServiceRequest) (*AddServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddService not implemented") } + func (UnimplementedServicesServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveService not implemented") } + func (UnimplementedServicesServiceServer) ChangeService(context.Context, *ChangeServiceRequest) (*ChangeServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeService not implemented") } diff --git a/api/management/v1/agent.pb.go b/api/management/v1/agent.pb.go index 2feb29c665d..e63ced85bd1 100644 --- a/api/management/v1/agent.pb.go +++ b/api/management/v1/agent.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - 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" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -1204,27 +1206,30 @@ func file_management_v1_agent_proto_rawDescGZIP() []byte { return file_management_v1_agent_proto_rawDescData } -var file_management_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_management_v1_agent_proto_goTypes = []any{ - (UpdateSeverity)(0), // 0: management.v1.UpdateSeverity - (*UniversalAgent)(nil), // 1: management.v1.UniversalAgent - (*ListAgentsRequest)(nil), // 2: management.v1.ListAgentsRequest - (*ListAgentsResponse)(nil), // 3: management.v1.ListAgentsResponse - (*AgentVersions)(nil), // 4: management.v1.AgentVersions - (*ListAgentVersionsRequest)(nil), // 5: management.v1.ListAgentVersionsRequest - (*ListAgentVersionsResponse)(nil), // 6: management.v1.ListAgentVersionsResponse - (*UniversalAgent_MySQLOptions)(nil), // 7: management.v1.UniversalAgent.MySQLOptions - (*UniversalAgent_AzureOptions)(nil), // 8: management.v1.UniversalAgent.AzureOptions - (*UniversalAgent_MongoDBOptions)(nil), // 9: management.v1.UniversalAgent.MongoDBOptions - (*UniversalAgent_PostgreSQLOptions)(nil), // 10: management.v1.UniversalAgent.PostgreSQLOptions - (*UniversalAgent_ValkeyOptions)(nil), // 11: management.v1.UniversalAgent.ValkeyOptions - nil, // 12: management.v1.UniversalAgent.CustomLabelsEntry - nil, // 13: management.v1.UniversalAgent.MySQLOptions.ExtraDsnParamsEntry - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (v1.LogLevel)(0), // 15: inventory.v1.LogLevel - (*v1.RTAOptions)(nil), // 16: inventory.v1.RTAOptions -} +var ( + file_management_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 13) + file_management_v1_agent_proto_goTypes = []any{ + (UpdateSeverity)(0), // 0: management.v1.UpdateSeverity + (*UniversalAgent)(nil), // 1: management.v1.UniversalAgent + (*ListAgentsRequest)(nil), // 2: management.v1.ListAgentsRequest + (*ListAgentsResponse)(nil), // 3: management.v1.ListAgentsResponse + (*AgentVersions)(nil), // 4: management.v1.AgentVersions + (*ListAgentVersionsRequest)(nil), // 5: management.v1.ListAgentVersionsRequest + (*ListAgentVersionsResponse)(nil), // 6: management.v1.ListAgentVersionsResponse + (*UniversalAgent_MySQLOptions)(nil), // 7: management.v1.UniversalAgent.MySQLOptions + (*UniversalAgent_AzureOptions)(nil), // 8: management.v1.UniversalAgent.AzureOptions + (*UniversalAgent_MongoDBOptions)(nil), // 9: management.v1.UniversalAgent.MongoDBOptions + (*UniversalAgent_PostgreSQLOptions)(nil), // 10: management.v1.UniversalAgent.PostgreSQLOptions + (*UniversalAgent_ValkeyOptions)(nil), // 11: management.v1.UniversalAgent.ValkeyOptions + nil, // 12: management.v1.UniversalAgent.CustomLabelsEntry + nil, // 13: management.v1.UniversalAgent.MySQLOptions.ExtraDsnParamsEntry + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (v1.LogLevel)(0), // 15: inventory.v1.LogLevel + (*v1.RTAOptions)(nil), // 16: inventory.v1.RTAOptions + } +) + var file_management_v1_agent_proto_depIdxs = []int32{ 8, // 0: management.v1.UniversalAgent.azure_options:type_name -> management.v1.UniversalAgent.AzureOptions 14, // 1: management.v1.UniversalAgent.created_at:type_name -> google.protobuf.Timestamp diff --git a/api/management/v1/annotation.pb.go b/api/management/v1/annotation.pb.go index d014773c308..ec781561e4c 100644 --- a/api/management/v1/annotation.pb.go +++ b/api/management/v1/annotation.pb.go @@ -7,12 +7,13 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -156,11 +157,14 @@ func file_management_v1_annotation_proto_rawDescGZIP() []byte { return file_management_v1_annotation_proto_rawDescData } -var file_management_v1_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_management_v1_annotation_proto_goTypes = []any{ - (*AddAnnotationRequest)(nil), // 0: management.v1.AddAnnotationRequest - (*AddAnnotationResponse)(nil), // 1: management.v1.AddAnnotationResponse -} +var ( + file_management_v1_annotation_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_management_v1_annotation_proto_goTypes = []any{ + (*AddAnnotationRequest)(nil), // 0: management.v1.AddAnnotationRequest + (*AddAnnotationResponse)(nil), // 1: management.v1.AddAnnotationResponse + } +) + var file_management_v1_annotation_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/management/v1/azure.pb.go b/api/management/v1/azure.pb.go index 92325eca4a3..e3e37aca4ce 100644 --- a/api/management/v1/azure.pb.go +++ b/api/management/v1/azure.pb.go @@ -7,13 +7,15 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" ) const ( @@ -699,17 +701,20 @@ func file_management_v1_azure_proto_rawDescGZIP() []byte { return file_management_v1_azure_proto_rawDescData } -var file_management_v1_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_management_v1_azure_proto_goTypes = []any{ - (DiscoverAzureDatabaseType)(0), // 0: management.v1.DiscoverAzureDatabaseType - (*DiscoverAzureDatabaseRequest)(nil), // 1: management.v1.DiscoverAzureDatabaseRequest - (*DiscoverAzureDatabaseInstance)(nil), // 2: management.v1.DiscoverAzureDatabaseInstance - (*DiscoverAzureDatabaseResponse)(nil), // 3: management.v1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseRequest)(nil), // 4: management.v1.AddAzureDatabaseRequest - (*AddAzureDatabaseResponse)(nil), // 5: management.v1.AddAzureDatabaseResponse - nil, // 6: management.v1.AddAzureDatabaseRequest.CustomLabelsEntry -} +var ( + file_management_v1_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_management_v1_azure_proto_goTypes = []any{ + (DiscoverAzureDatabaseType)(0), // 0: management.v1.DiscoverAzureDatabaseType + (*DiscoverAzureDatabaseRequest)(nil), // 1: management.v1.DiscoverAzureDatabaseRequest + (*DiscoverAzureDatabaseInstance)(nil), // 2: management.v1.DiscoverAzureDatabaseInstance + (*DiscoverAzureDatabaseResponse)(nil), // 3: management.v1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseRequest)(nil), // 4: management.v1.AddAzureDatabaseRequest + (*AddAzureDatabaseResponse)(nil), // 5: management.v1.AddAzureDatabaseResponse + nil, // 6: management.v1.AddAzureDatabaseRequest.CustomLabelsEntry + } +) + var file_management_v1_azure_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverAzureDatabaseInstance.type:type_name -> management.v1.DiscoverAzureDatabaseType 2, // 1: management.v1.DiscoverAzureDatabaseResponse.azure_database_instance:type_name -> management.v1.DiscoverAzureDatabaseInstance diff --git a/api/management/v1/elasticache.pb.go b/api/management/v1/elasticache.pb.go index 975eecac7c8..50692a3f9c2 100644 --- a/api/management/v1/elasticache.pb.go +++ b/api/management/v1/elasticache.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -659,21 +661,24 @@ func file_management_v1_elasticache_proto_rawDescGZIP() []byte { return file_management_v1_elasticache_proto_rawDescData } -var file_management_v1_elasticache_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_elasticache_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_management_v1_elasticache_proto_goTypes = []any{ - (DiscoverElastiCacheEngine)(0), // 0: management.v1.DiscoverElastiCacheEngine - (*DiscoverElastiCacheInstance)(nil), // 1: management.v1.DiscoverElastiCacheInstance - (*DiscoverElastiCacheRequest)(nil), // 2: management.v1.DiscoverElastiCacheRequest - (*DiscoverElastiCacheResponse)(nil), // 3: management.v1.DiscoverElastiCacheResponse - (*AddElastiCacheServiceParams)(nil), // 4: management.v1.AddElastiCacheServiceParams - (*ElastiCacheServiceResult)(nil), // 5: management.v1.ElastiCacheServiceResult - nil, // 6: management.v1.AddElastiCacheServiceParams.CustomLabelsEntry - (MetricsMode)(0), // 7: management.v1.MetricsMode - (*v1.RemoteElastiCacheNode)(nil), // 8: inventory.v1.RemoteElastiCacheNode - (*v1.ValkeyService)(nil), // 9: inventory.v1.ValkeyService - (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter -} +var ( + file_management_v1_elasticache_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_elasticache_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_management_v1_elasticache_proto_goTypes = []any{ + (DiscoverElastiCacheEngine)(0), // 0: management.v1.DiscoverElastiCacheEngine + (*DiscoverElastiCacheInstance)(nil), // 1: management.v1.DiscoverElastiCacheInstance + (*DiscoverElastiCacheRequest)(nil), // 2: management.v1.DiscoverElastiCacheRequest + (*DiscoverElastiCacheResponse)(nil), // 3: management.v1.DiscoverElastiCacheResponse + (*AddElastiCacheServiceParams)(nil), // 4: management.v1.AddElastiCacheServiceParams + (*ElastiCacheServiceResult)(nil), // 5: management.v1.ElastiCacheServiceResult + nil, // 6: management.v1.AddElastiCacheServiceParams.CustomLabelsEntry + (MetricsMode)(0), // 7: management.v1.MetricsMode + (*v1.RemoteElastiCacheNode)(nil), // 8: inventory.v1.RemoteElastiCacheNode + (*v1.ValkeyService)(nil), // 9: inventory.v1.ValkeyService + (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter + } +) + var file_management_v1_elasticache_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverElastiCacheInstance.engine:type_name -> management.v1.DiscoverElastiCacheEngine 1, // 1: management.v1.DiscoverElastiCacheResponse.elasticache_instances:type_name -> management.v1.DiscoverElastiCacheInstance diff --git a/api/management/v1/external.pb.go b/api/management/v1/external.pb.go index 12fb403ca50..8e1824f0345 100644 --- a/api/management/v1/external.pb.go +++ b/api/management/v1/external.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -341,16 +343,19 @@ func file_management_v1_external_proto_rawDescGZIP() []byte { return file_management_v1_external_proto_rawDescData } -var file_management_v1_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_management_v1_external_proto_goTypes = []any{ - (*AddExternalServiceParams)(nil), // 0: management.v1.AddExternalServiceParams - (*ExternalServiceResult)(nil), // 1: management.v1.ExternalServiceResult - nil, // 2: management.v1.AddExternalServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode - (*v1.ExternalService)(nil), // 5: inventory.v1.ExternalService - (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter -} +var ( + file_management_v1_external_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_management_v1_external_proto_goTypes = []any{ + (*AddExternalServiceParams)(nil), // 0: management.v1.AddExternalServiceParams + (*ExternalServiceResult)(nil), // 1: management.v1.ExternalServiceResult + nil, // 2: management.v1.AddExternalServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (*v1.ExternalService)(nil), // 5: inventory.v1.ExternalService + (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter + } +) + var file_management_v1_external_proto_depIdxs = []int32{ 3, // 0: management.v1.AddExternalServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddExternalServiceParams.custom_labels:type_name -> management.v1.AddExternalServiceParams.CustomLabelsEntry diff --git a/api/management/v1/haproxy.pb.go b/api/management/v1/haproxy.pb.go index a42c3d57161..1af609a4f88 100644 --- a/api/management/v1/haproxy.pb.go +++ b/api/management/v1/haproxy.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -319,16 +321,19 @@ func file_management_v1_haproxy_proto_rawDescGZIP() []byte { return file_management_v1_haproxy_proto_rawDescData } -var file_management_v1_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_management_v1_haproxy_proto_goTypes = []any{ - (*AddHAProxyServiceParams)(nil), // 0: management.v1.AddHAProxyServiceParams - (*HAProxyServiceResult)(nil), // 1: management.v1.HAProxyServiceResult - nil, // 2: management.v1.AddHAProxyServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode - (*v1.HAProxyService)(nil), // 5: inventory.v1.HAProxyService - (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter -} +var ( + file_management_v1_haproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_management_v1_haproxy_proto_goTypes = []any{ + (*AddHAProxyServiceParams)(nil), // 0: management.v1.AddHAProxyServiceParams + (*HAProxyServiceResult)(nil), // 1: management.v1.HAProxyServiceResult + nil, // 2: management.v1.AddHAProxyServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (*v1.HAProxyService)(nil), // 5: inventory.v1.HAProxyService + (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter + } +) + var file_management_v1_haproxy_proto_depIdxs = []int32{ 3, // 0: management.v1.AddHAProxyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddHAProxyServiceParams.custom_labels:type_name -> management.v1.AddHAProxyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/json/client/management_service/add_annotation_parameters.go b/api/management/v1/json/client/management_service/add_annotation_parameters.go index 68d4bd76539..0a6148e59af 100644 --- a/api/management/v1/json/client/management_service/add_annotation_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/add_annotation_responses.go b/api/management/v1/json/client/management_service/add_annotation_responses.go index 27296879191..e0707e893c8 100644 --- a/api/management/v1/json/client/management_service/add_annotation_responses.go +++ b/api/management/v1/json/client/management_service/add_annotation_responses.go @@ -104,7 +104,6 @@ func (o *AddAnnotationOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *AddAnnotationDefault) GetPayload() *AddAnnotationDefaultBody { } func (o *AddAnnotationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAnnotationDefaultBody) // response payload @@ -192,7 +190,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"` @@ -239,7 +236,6 @@ AddAnnotationDefaultBody add annotation default body swagger:model AddAnnotationDefaultBody */ type AddAnnotationDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -309,9 +305,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 swag.IsZero(o.Details[i]) { // not required @@ -331,7 +325,6 @@ func (o *AddAnnotationDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -360,7 +353,6 @@ AddAnnotationDefaultBodyDetailsItems0 add annotation default body details items0 swagger:model AddAnnotationDefaultBodyDetailsItems0 */ type AddAnnotationDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -372,7 +364,6 @@ type AddAnnotationDefaultBodyDetailsItems0 struct { func (o *AddAnnotationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -410,7 +401,6 @@ func (o *AddAnnotationDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o AddAnnotationDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/management/v1/json/client/management_service/add_azure_database_parameters.go b/api/management/v1/json/client/management_service/add_azure_database_parameters.go index 1fd8c87b5db..b9e1d96ff02 100644 --- a/api/management/v1/json/client/management_service/add_azure_database_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/add_azure_database_responses.go b/api/management/v1/json/client/management_service/add_azure_database_responses.go index 5d5bd67446a..947f66d7e84 100644 --- a/api/management/v1/json/client/management_service/add_azure_database_responses.go +++ b/api/management/v1/json/client/management_service/add_azure_database_responses.go @@ -105,7 +105,6 @@ func (o *AddAzureDatabaseOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -177,7 +176,6 @@ func (o *AddAzureDatabaseDefault) GetPayload() *AddAzureDatabaseDefaultBody { } func (o *AddAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddAzureDatabaseDefaultBody) // response payload @@ -193,7 +191,6 @@ AddAzureDatabaseBody add azure database body swagger:model AddAzureDatabaseBody */ type AddAzureDatabaseBody struct { - // Azure database location. Region string `json:"region,omitempty"` @@ -364,7 +361,6 @@ AddAzureDatabaseDefaultBody add azure database default body swagger:model AddAzureDatabaseDefaultBody */ type AddAzureDatabaseDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -434,9 +430,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 swag.IsZero(o.Details[i]) { // not required @@ -456,7 +450,6 @@ func (o *AddAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Context return err } } - } return nil @@ -485,7 +478,6 @@ AddAzureDatabaseDefaultBodyDetailsItems0 add azure database default body details swagger:model AddAzureDatabaseDefaultBodyDetailsItems0 */ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -497,7 +489,6 @@ type AddAzureDatabaseDefaultBodyDetailsItems0 struct { func (o *AddAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -535,7 +526,6 @@ func (o *AddAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) er // MarshalJSON marshals this object with additional properties into a JSON object func (o AddAzureDatabaseDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/management/v1/json/client/management_service/add_service_parameters.go b/api/management/v1/json/client/management_service/add_service_parameters.go index 8e80c2a6085..64e2dd78b6b 100644 --- a/api/management/v1/json/client/management_service/add_service_parameters.go +++ b/api/management/v1/json/client/management_service/add_service_parameters.go @@ -60,7 +60,6 @@ AddServiceParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type AddServiceParams struct { - // Body. Body AddServiceBody @@ -130,7 +129,6 @@ func (o *AddServiceParams) SetBody(body AddServiceBody) { // WriteToRequest writes these params to a swagger request func (o *AddServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/add_service_responses.go b/api/management/v1/json/client/management_service/add_service_responses.go index 93ca8511a43..03c8d00fbbb 100644 --- a/api/management/v1/json/client/management_service/add_service_responses.go +++ b/api/management/v1/json/client/management_service/add_service_responses.go @@ -105,7 +105,6 @@ func (o *AddServiceOK) GetPayload() *AddServiceOKBody { } func (o *AddServiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddServiceOKBody) // response payload @@ -179,7 +178,6 @@ func (o *AddServiceDefault) GetPayload() *AddServiceDefaultBody { } func (o *AddServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(AddServiceDefaultBody) // response payload @@ -195,7 +193,6 @@ AddServiceBody add service body swagger:model AddServiceBody */ type AddServiceBody struct { - // elasticache Elasticache *AddServiceParamsBodyElasticache `json:"elasticache,omitempty"` @@ -524,7 +521,6 @@ func (o *AddServiceBody) ContextValidate(ctx context.Context, formats strfmt.Reg } func (o *AddServiceBody) contextValidateElasticache(ctx context.Context, formats strfmt.Registry) error { - if o.Elasticache != nil { if swag.IsZero(o.Elasticache) { // not required @@ -549,7 +545,6 @@ func (o *AddServiceBody) contextValidateElasticache(ctx context.Context, formats } func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if swag.IsZero(o.External) { // not required @@ -574,7 +569,6 @@ func (o *AddServiceBody) contextValidateExternal(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -599,7 +593,6 @@ func (o *AddServiceBody) contextValidateHaproxy(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -624,7 +617,6 @@ func (o *AddServiceBody) contextValidateMongodb(ctx context.Context, formats str } func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -649,7 +641,6 @@ func (o *AddServiceBody) contextValidateMysql(ctx context.Context, formats strfm } func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -674,7 +665,6 @@ func (o *AddServiceBody) contextValidatePostgresql(ctx context.Context, formats } func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -699,7 +689,6 @@ func (o *AddServiceBody) contextValidateProxysql(ctx context.Context, formats st } func (o *AddServiceBody) contextValidateRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RDS != nil { if swag.IsZero(o.RDS) { // not required @@ -724,7 +713,6 @@ func (o *AddServiceBody) contextValidateRDS(ctx context.Context, formats strfmt. } func (o *AddServiceBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -771,7 +759,6 @@ AddServiceDefaultBody add service default body swagger:model AddServiceDefaultBody */ type AddServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -841,9 +828,7 @@ func (o *AddServiceDefaultBody) ContextValidate(ctx context.Context, formats str } func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -863,7 +848,6 @@ func (o *AddServiceDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -892,7 +876,6 @@ AddServiceDefaultBodyDetailsItems0 add service default body details items0 swagger:model AddServiceDefaultBodyDetailsItems0 */ type AddServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -904,7 +887,6 @@ type AddServiceDefaultBodyDetailsItems0 struct { func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -942,7 +924,6 @@ func (o *AddServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o AddServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -1006,7 +987,6 @@ AddServiceOKBody add service OK body swagger:model AddServiceOKBody */ type AddServiceOKBody struct { - // elasticache Elasticache *AddServiceOKBodyElasticache `json:"elasticache,omitempty"` @@ -1335,7 +1315,6 @@ func (o *AddServiceOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *AddServiceOKBody) contextValidateElasticache(ctx context.Context, formats strfmt.Registry) error { - if o.Elasticache != nil { if swag.IsZero(o.Elasticache) { // not required @@ -1360,7 +1339,6 @@ func (o *AddServiceOKBody) contextValidateElasticache(ctx context.Context, forma } func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats strfmt.Registry) error { - if o.External != nil { if swag.IsZero(o.External) { // not required @@ -1385,7 +1363,6 @@ func (o *AddServiceOKBody) contextValidateExternal(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats strfmt.Registry) error { - if o.Haproxy != nil { if swag.IsZero(o.Haproxy) { // not required @@ -1410,7 +1387,6 @@ func (o *AddServiceOKBody) contextValidateHaproxy(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats strfmt.Registry) error { - if o.Mongodb != nil { if swag.IsZero(o.Mongodb) { // not required @@ -1435,7 +1411,6 @@ func (o *AddServiceOKBody) contextValidateMongodb(ctx context.Context, formats s } func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -1460,7 +1435,6 @@ func (o *AddServiceOKBody) contextValidateMysql(ctx context.Context, formats str } func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -1485,7 +1459,6 @@ func (o *AddServiceOKBody) contextValidatePostgresql(ctx context.Context, format } func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats strfmt.Registry) error { - if o.Proxysql != nil { if swag.IsZero(o.Proxysql) { // not required @@ -1510,7 +1483,6 @@ func (o *AddServiceOKBody) contextValidateProxysql(ctx context.Context, formats } func (o *AddServiceOKBody) contextValidateRDS(ctx context.Context, formats strfmt.Registry) error { - if o.RDS != nil { if swag.IsZero(o.RDS) { // not required @@ -1535,7 +1507,6 @@ func (o *AddServiceOKBody) contextValidateRDS(ctx context.Context, formats strfm } func (o *AddServiceOKBody) contextValidateValkey(ctx context.Context, formats strfmt.Registry) error { - if o.Valkey != nil { if swag.IsZero(o.Valkey) { // not required @@ -1582,7 +1553,6 @@ AddServiceOKBodyElasticache add service OK body elasticache swagger:model AddServiceOKBodyElasticache */ type AddServiceOKBodyElasticache struct { - // node Node *AddServiceOKBodyElasticacheNode `json:"node,omitempty"` @@ -1707,7 +1677,6 @@ func (o *AddServiceOKBodyElasticache) ContextValidate(ctx context.Context, forma } func (o *AddServiceOKBodyElasticache) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { - if o.Node != nil { if swag.IsZero(o.Node) { // not required @@ -1732,7 +1701,6 @@ func (o *AddServiceOKBodyElasticache) contextValidateNode(ctx context.Context, f } func (o *AddServiceOKBodyElasticache) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -1757,7 +1725,6 @@ func (o *AddServiceOKBodyElasticache) contextValidateValkeyExporter(ctx context. } func (o *AddServiceOKBodyElasticache) contextValidateValkeyService(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyService != nil { if swag.IsZero(o.ValkeyService) { // not required @@ -1804,7 +1771,6 @@ AddServiceOKBodyElasticacheNode RemoteElastiCacheNode represents remote ElastiCa swagger:model AddServiceOKBodyElasticacheNode */ type AddServiceOKBodyElasticacheNode struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -1863,7 +1829,6 @@ AddServiceOKBodyElasticacheValkeyExporter ValkeyExporter runs on Generic or Cont swagger:model AddServiceOKBodyElasticacheValkeyExporter */ type AddServiceOKBodyElasticacheValkeyExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2035,7 +2000,6 @@ func (o *AddServiceOKBodyElasticacheValkeyExporter) ContextValidate(ctx context. } func (o *AddServiceOKBodyElasticacheValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2082,7 +2046,6 @@ AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions MetricsResolutions r swagger:model AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions */ type AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2126,7 +2089,6 @@ AddServiceOKBodyElasticacheValkeyService ValkeyService represents a generic Valk swagger:model AddServiceOKBodyElasticacheValkeyService */ type AddServiceOKBodyElasticacheValkeyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -2197,7 +2159,6 @@ AddServiceOKBodyExternal add service OK body external swagger:model AddServiceOKBodyExternal */ type AddServiceOKBodyExternal struct { - // external exporter ExternalExporter *AddServiceOKBodyExternalExternalExporter `json:"external_exporter,omitempty"` @@ -2288,7 +2249,6 @@ func (o *AddServiceOKBodyExternal) ContextValidate(ctx context.Context, formats } func (o *AddServiceOKBodyExternal) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2313,7 +2273,6 @@ func (o *AddServiceOKBodyExternal) contextValidateExternalExporter(ctx context.C } func (o *AddServiceOKBodyExternal) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -2360,7 +2319,6 @@ AddServiceOKBodyExternalExternalExporter ExternalExporter runs on any Node type, swagger:model AddServiceOKBodyExternalExternalExporter */ type AddServiceOKBodyExternalExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -2529,7 +2487,6 @@ func (o *AddServiceOKBodyExternalExternalExporter) ContextValidate(ctx context.C } func (o *AddServiceOKBodyExternalExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -2576,7 +2533,6 @@ AddServiceOKBodyExternalExternalExporterMetricsResolutions MetricsResolutions re swagger:model AddServiceOKBodyExternalExternalExporterMetricsResolutions */ type AddServiceOKBodyExternalExternalExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -2620,7 +2576,6 @@ AddServiceOKBodyExternalService ExternalService represents a generic External se swagger:model AddServiceOKBodyExternalService */ type AddServiceOKBodyExternalService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -2685,7 +2640,6 @@ AddServiceOKBodyHaproxy add service OK body haproxy swagger:model AddServiceOKBodyHaproxy */ type AddServiceOKBodyHaproxy struct { - // external exporter ExternalExporter *AddServiceOKBodyHaproxyExternalExporter `json:"external_exporter,omitempty"` @@ -2776,7 +2730,6 @@ func (o *AddServiceOKBodyHaproxy) ContextValidate(ctx context.Context, formats s } func (o *AddServiceOKBodyHaproxy) contextValidateExternalExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ExternalExporter != nil { if swag.IsZero(o.ExternalExporter) { // not required @@ -2801,7 +2754,6 @@ func (o *AddServiceOKBodyHaproxy) contextValidateExternalExporter(ctx context.Co } func (o *AddServiceOKBodyHaproxy) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -2848,7 +2800,6 @@ AddServiceOKBodyHaproxyExternalExporter ExternalExporter runs on any Node type, swagger:model AddServiceOKBodyHaproxyExternalExporter */ type AddServiceOKBodyHaproxyExternalExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3017,7 +2968,6 @@ func (o *AddServiceOKBodyHaproxyExternalExporter) ContextValidate(ctx context.Co } func (o *AddServiceOKBodyHaproxyExternalExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3064,7 +3014,6 @@ AddServiceOKBodyHaproxyExternalExporterMetricsResolutions MetricsResolutions rep swagger:model AddServiceOKBodyHaproxyExternalExporterMetricsResolutions */ type AddServiceOKBodyHaproxyExternalExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3108,7 +3057,6 @@ AddServiceOKBodyHaproxyService HAProxyService represents a generic HAProxy servi swagger:model AddServiceOKBodyHaproxyService */ type AddServiceOKBodyHaproxyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -3164,7 +3112,6 @@ AddServiceOKBodyMongodb add service OK body mongodb swagger:model AddServiceOKBodyMongodb */ type AddServiceOKBodyMongodb struct { - // mongodb exporter MongodbExporter *AddServiceOKBodyMongodbMongodbExporter `json:"mongodb_exporter,omitempty"` @@ -3357,7 +3304,6 @@ func (o *AddServiceOKBodyMongodb) ContextValidate(ctx context.Context, formats s } func (o *AddServiceOKBodyMongodb) contextValidateMongodbExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MongodbExporter != nil { if swag.IsZero(o.MongodbExporter) { // not required @@ -3382,7 +3328,6 @@ func (o *AddServiceOKBodyMongodb) contextValidateMongodbExporter(ctx context.Con } func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbMongolog(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbMongolog != nil { if swag.IsZero(o.QANMongodbMongolog) { // not required @@ -3407,7 +3352,6 @@ func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbMongolog(ctx context. } func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbProfiler(ctx context.Context, formats strfmt.Registry) error { - if o.QANMongodbProfiler != nil { if swag.IsZero(o.QANMongodbProfiler) { // not required @@ -3432,7 +3376,6 @@ func (o *AddServiceOKBodyMongodb) contextValidateQANMongodbProfiler(ctx context. } func (o *AddServiceOKBodyMongodb) contextValidateRtaMongodbAgent(ctx context.Context, formats strfmt.Registry) error { - if o.RtaMongodbAgent != nil { if swag.IsZero(o.RtaMongodbAgent) { // not required @@ -3457,7 +3400,6 @@ func (o *AddServiceOKBodyMongodb) contextValidateRtaMongodbAgent(ctx context.Con } func (o *AddServiceOKBodyMongodb) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -3504,7 +3446,6 @@ AddServiceOKBodyMongodbMongodbExporter MongoDBExporter runs on Generic or Contai swagger:model AddServiceOKBodyMongodbMongodbExporter */ type AddServiceOKBodyMongodbMongodbExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -3753,7 +3694,6 @@ func (o *AddServiceOKBodyMongodbMongodbExporter) ContextValidate(ctx context.Con } func (o *AddServiceOKBodyMongodbMongodbExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -3800,7 +3740,6 @@ AddServiceOKBodyMongodbMongodbExporterMetricsResolutions MetricsResolutions repr swagger:model AddServiceOKBodyMongodbMongodbExporterMetricsResolutions */ type AddServiceOKBodyMongodbMongodbExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -3844,7 +3783,6 @@ AddServiceOKBodyMongodbQANMongodbMongolog QANMongoDBMongologAgent runs within pm swagger:model AddServiceOKBodyMongodbQANMongodbMongolog */ type AddServiceOKBodyMongodbQANMongodbMongolog struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4054,7 +3992,6 @@ AddServiceOKBodyMongodbQANMongodbProfiler QANMongoDBProfilerAgent runs within pm swagger:model AddServiceOKBodyMongodbQANMongodbProfiler */ type AddServiceOKBodyMongodbQANMongodbProfiler struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -4264,7 +4201,6 @@ AddServiceOKBodyMongodbRtaMongodbAgent RTAMongoDBAgent runs within pmm-agent and swagger:model AddServiceOKBodyMongodbRtaMongodbAgent */ type AddServiceOKBodyMongodbRtaMongodbAgent struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -4485,7 +4421,6 @@ func (o *AddServiceOKBodyMongodbRtaMongodbAgent) ContextValidate(ctx context.Con } func (o *AddServiceOKBodyMongodbRtaMongodbAgent) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -4532,7 +4467,6 @@ AddServiceOKBodyMongodbRtaMongodbAgentRtaOptions RTAOptions holds Real-Time Quer swagger:model AddServiceOKBodyMongodbRtaMongodbAgentRtaOptions */ type AddServiceOKBodyMongodbRtaMongodbAgentRtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } @@ -4570,7 +4504,6 @@ AddServiceOKBodyMongodbService MongoDBService represents a generic MongoDB insta swagger:model AddServiceOKBodyMongodbService */ type AddServiceOKBodyMongodbService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -4641,7 +4574,6 @@ AddServiceOKBodyMysql add service OK body mysql swagger:model AddServiceOKBodyMysql */ type AddServiceOKBodyMysql struct { - // Actual table count at the moment of adding. TableCount int32 `json:"table_count,omitempty"` @@ -4803,7 +4735,6 @@ func (o *AddServiceOKBodyMysql) ContextValidate(ctx context.Context, formats str } func (o *AddServiceOKBodyMysql) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -4828,7 +4759,6 @@ func (o *AddServiceOKBodyMysql) contextValidateMysqldExporter(ctx context.Contex } func (o *AddServiceOKBodyMysql) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschema != nil { if swag.IsZero(o.QANMysqlPerfschema) { // not required @@ -4853,7 +4783,6 @@ func (o *AddServiceOKBodyMysql) contextValidateQANMysqlPerfschema(ctx context.Co } func (o *AddServiceOKBodyMysql) contextValidateQANMysqlSlowlog(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlSlowlog != nil { if swag.IsZero(o.QANMysqlSlowlog) { // not required @@ -4878,7 +4807,6 @@ func (o *AddServiceOKBodyMysql) contextValidateQANMysqlSlowlog(ctx context.Conte } func (o *AddServiceOKBodyMysql) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -4925,7 +4853,6 @@ AddServiceOKBodyMysqlMysqldExporter MySQLdExporter runs on Generic or Container swagger:model AddServiceOKBodyMysqlMysqldExporter */ type AddServiceOKBodyMysqlMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5184,7 +5111,6 @@ func (o *AddServiceOKBodyMysqlMysqldExporter) ContextValidate(ctx context.Contex } func (o *AddServiceOKBodyMysqlMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -5231,7 +5157,6 @@ AddServiceOKBodyMysqlMysqldExporterMetricsResolutions MetricsResolutions represe swagger:model AddServiceOKBodyMysqlMysqldExporterMetricsResolutions */ type AddServiceOKBodyMysqlMysqldExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -5275,7 +5200,6 @@ AddServiceOKBodyMysqlQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm- swagger:model AddServiceOKBodyMysqlQANMysqlPerfschema */ type AddServiceOKBodyMysqlQANMysqlPerfschema struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5503,7 +5427,6 @@ AddServiceOKBodyMysqlQANMysqlSlowlog QANMySQLSlowlogAgent runs within pmm-agent swagger:model AddServiceOKBodyMysqlQANMysqlSlowlog */ type AddServiceOKBodyMysqlQANMysqlSlowlog struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -5734,7 +5657,6 @@ AddServiceOKBodyMysqlService MySQLService represents a generic MySQL instance. swagger:model AddServiceOKBodyMysqlService */ type AddServiceOKBodyMysqlService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -5808,7 +5730,6 @@ AddServiceOKBodyPostgresql add service OK body postgresql swagger:model AddServiceOKBodyPostgresql */ type AddServiceOKBodyPostgresql struct { - // Warning message. Warning string `json:"warning,omitempty"` @@ -5970,7 +5891,6 @@ func (o *AddServiceOKBodyPostgresql) ContextValidate(ctx context.Context, format } func (o *AddServiceOKBodyPostgresql) contextValidatePostgresExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresExporter != nil { if swag.IsZero(o.PostgresExporter) { // not required @@ -5995,7 +5915,6 @@ func (o *AddServiceOKBodyPostgresql) contextValidatePostgresExporter(ctx context } func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatementsAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatementsAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatementsAgent) { // not required @@ -6020,7 +5939,6 @@ func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatementsAge } func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatmonitorAgent(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatmonitorAgent != nil { if swag.IsZero(o.QANPostgresqlPgstatmonitorAgent) { // not required @@ -6045,7 +5963,6 @@ func (o *AddServiceOKBodyPostgresql) contextValidateQANPostgresqlPgstatmonitorAg } func (o *AddServiceOKBodyPostgresql) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -6092,7 +6009,6 @@ AddServiceOKBodyPostgresqlPostgresExporter PostgresExporter runs on Generic or C swagger:model AddServiceOKBodyPostgresqlPostgresExporter */ type AddServiceOKBodyPostgresqlPostgresExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6334,7 +6250,6 @@ func (o *AddServiceOKBodyPostgresqlPostgresExporter) ContextValidate(ctx context } func (o *AddServiceOKBodyPostgresqlPostgresExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -6381,7 +6296,6 @@ AddServiceOKBodyPostgresqlPostgresExporterMetricsResolutions MetricsResolutions swagger:model AddServiceOKBodyPostgresqlPostgresExporterMetricsResolutions */ type AddServiceOKBodyPostgresqlPostgresExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -6425,7 +6339,6 @@ AddServiceOKBodyPostgresqlQANPostgresqlPgstatementsAgent QANPostgreSQLPgStatemen swagger:model AddServiceOKBodyPostgresqlQANPostgresqlPgstatementsAgent */ type AddServiceOKBodyPostgresqlQANPostgresqlPgstatementsAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6638,7 +6551,6 @@ AddServiceOKBodyPostgresqlQANPostgresqlPgstatmonitorAgent QANPostgreSQLPgStatMon swagger:model AddServiceOKBodyPostgresqlQANPostgresqlPgstatmonitorAgent */ type AddServiceOKBodyPostgresqlQANPostgresqlPgstatmonitorAgent struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -6854,7 +6766,6 @@ AddServiceOKBodyPostgresqlService PostgreSQLService represents a generic Postgre swagger:model AddServiceOKBodyPostgresqlService */ type AddServiceOKBodyPostgresqlService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -6931,7 +6842,6 @@ AddServiceOKBodyProxysql add service OK body proxysql swagger:model AddServiceOKBodyProxysql */ type AddServiceOKBodyProxysql struct { - // proxysql exporter ProxysqlExporter *AddServiceOKBodyProxysqlProxysqlExporter `json:"proxysql_exporter,omitempty"` @@ -7022,7 +6932,6 @@ func (o *AddServiceOKBodyProxysql) ContextValidate(ctx context.Context, formats } func (o *AddServiceOKBodyProxysql) contextValidateProxysqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ProxysqlExporter != nil { if swag.IsZero(o.ProxysqlExporter) { // not required @@ -7047,7 +6956,6 @@ func (o *AddServiceOKBodyProxysql) contextValidateProxysqlExporter(ctx context.C } func (o *AddServiceOKBodyProxysql) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -7094,7 +7002,6 @@ AddServiceOKBodyProxysqlProxysqlExporter ProxySQLExporter runs on Generic or Con swagger:model AddServiceOKBodyProxysqlProxysqlExporter */ type AddServiceOKBodyProxysqlProxysqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -7330,7 +7237,6 @@ func (o *AddServiceOKBodyProxysqlProxysqlExporter) ContextValidate(ctx context.C } func (o *AddServiceOKBodyProxysqlProxysqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -7377,7 +7283,6 @@ AddServiceOKBodyProxysqlProxysqlExporterMetricsResolutions MetricsResolutions re swagger:model AddServiceOKBodyProxysqlProxysqlExporterMetricsResolutions */ type AddServiceOKBodyProxysqlProxysqlExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -7421,7 +7326,6 @@ AddServiceOKBodyProxysqlService ProxySQLService represents a generic ProxySQL in swagger:model AddServiceOKBodyProxysqlService */ type AddServiceOKBodyProxysqlService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -7492,7 +7396,6 @@ AddServiceOKBodyRDS add service OK body RDS swagger:model AddServiceOKBodyRDS */ type AddServiceOKBodyRDS struct { - // mysql Mysql *AddServiceOKBodyRDSMysql `json:"mysql,omitempty"` @@ -7787,7 +7690,6 @@ func (o *AddServiceOKBodyRDS) ContextValidate(ctx context.Context, formats strfm } func (o *AddServiceOKBodyRDS) contextValidateMysql(ctx context.Context, formats strfmt.Registry) error { - if o.Mysql != nil { if swag.IsZero(o.Mysql) { // not required @@ -7812,7 +7714,6 @@ func (o *AddServiceOKBodyRDS) contextValidateMysql(ctx context.Context, formats } func (o *AddServiceOKBodyRDS) contextValidateMysqldExporter(ctx context.Context, formats strfmt.Registry) error { - if o.MysqldExporter != nil { if swag.IsZero(o.MysqldExporter) { // not required @@ -7837,7 +7738,6 @@ func (o *AddServiceOKBodyRDS) contextValidateMysqldExporter(ctx context.Context, } func (o *AddServiceOKBodyRDS) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { - if o.Node != nil { if swag.IsZero(o.Node) { // not required @@ -7862,7 +7762,6 @@ func (o *AddServiceOKBodyRDS) contextValidateNode(ctx context.Context, formats s } func (o *AddServiceOKBodyRDS) contextValidatePostgresql(ctx context.Context, formats strfmt.Registry) error { - if o.Postgresql != nil { if swag.IsZero(o.Postgresql) { // not required @@ -7887,7 +7786,6 @@ func (o *AddServiceOKBodyRDS) contextValidatePostgresql(ctx context.Context, for } func (o *AddServiceOKBodyRDS) contextValidatePostgresqlExporter(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresqlExporter != nil { if swag.IsZero(o.PostgresqlExporter) { // not required @@ -7912,7 +7810,6 @@ func (o *AddServiceOKBodyRDS) contextValidatePostgresqlExporter(ctx context.Cont } func (o *AddServiceOKBodyRDS) contextValidateQANMysqlPerfschema(ctx context.Context, formats strfmt.Registry) error { - if o.QANMysqlPerfschema != nil { if swag.IsZero(o.QANMysqlPerfschema) { // not required @@ -7937,7 +7834,6 @@ func (o *AddServiceOKBodyRDS) contextValidateQANMysqlPerfschema(ctx context.Cont } func (o *AddServiceOKBodyRDS) contextValidateQANPostgresqlPgstatements(ctx context.Context, formats strfmt.Registry) error { - if o.QANPostgresqlPgstatements != nil { if swag.IsZero(o.QANPostgresqlPgstatements) { // not required @@ -7962,7 +7858,6 @@ func (o *AddServiceOKBodyRDS) contextValidateQANPostgresqlPgstatements(ctx conte } func (o *AddServiceOKBodyRDS) contextValidateRDSExporter(ctx context.Context, formats strfmt.Registry) error { - if o.RDSExporter != nil { if swag.IsZero(o.RDSExporter) { // not required @@ -8009,7 +7904,6 @@ AddServiceOKBodyRDSMysql MySQLService represents a generic MySQL instance. swagger:model AddServiceOKBodyRDSMysql */ type AddServiceOKBodyRDSMysql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -8083,7 +7977,6 @@ AddServiceOKBodyRDSMysqldExporter MySQLdExporter runs on Generic or Container No swagger:model AddServiceOKBodyRDSMysqldExporter */ type AddServiceOKBodyRDSMysqldExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -8342,7 +8235,6 @@ func (o *AddServiceOKBodyRDSMysqldExporter) ContextValidate(ctx context.Context, } func (o *AddServiceOKBodyRDSMysqldExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8389,7 +8281,6 @@ AddServiceOKBodyRDSMysqldExporterMetricsResolutions MetricsResolutions represent swagger:model AddServiceOKBodyRDSMysqldExporterMetricsResolutions */ type AddServiceOKBodyRDSMysqldExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8433,7 +8324,6 @@ AddServiceOKBodyRDSNode RemoteRDSNode represents remote RDS Node. Agents can't r swagger:model AddServiceOKBodyRDSNode */ type AddServiceOKBodyRDSNode struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -8492,7 +8382,6 @@ AddServiceOKBodyRDSPostgresql PostgreSQLService represents a generic PostgreSQL swagger:model AddServiceOKBodyRDSPostgresql */ type AddServiceOKBodyRDSPostgresql struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -8569,7 +8458,6 @@ AddServiceOKBodyRDSPostgresqlExporter PostgresExporter runs on Generic or Contai swagger:model AddServiceOKBodyRDSPostgresqlExporter */ type AddServiceOKBodyRDSPostgresqlExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -8811,7 +8699,6 @@ func (o *AddServiceOKBodyRDSPostgresqlExporter) ContextValidate(ctx context.Cont } func (o *AddServiceOKBodyRDSPostgresqlExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -8858,7 +8745,6 @@ AddServiceOKBodyRDSPostgresqlExporterMetricsResolutions MetricsResolutions repre swagger:model AddServiceOKBodyRDSPostgresqlExporterMetricsResolutions */ type AddServiceOKBodyRDSPostgresqlExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -8902,7 +8788,6 @@ AddServiceOKBodyRDSQANMysqlPerfschema QANMySQLPerfSchemaAgent runs within pmm-ag swagger:model AddServiceOKBodyRDSQANMysqlPerfschema */ type AddServiceOKBodyRDSQANMysqlPerfschema struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9130,7 +9015,6 @@ AddServiceOKBodyRDSQANPostgresqlPgstatements QANPostgreSQLPgStatementsAgent runs swagger:model AddServiceOKBodyRDSQANPostgresqlPgstatements */ type AddServiceOKBodyRDSQANPostgresqlPgstatements struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9343,7 +9227,6 @@ AddServiceOKBodyRDSRDSExporter RDSExporter runs on Generic or Container Node and swagger:model AddServiceOKBodyRDSRDSExporter */ type AddServiceOKBodyRDSRDSExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -9576,7 +9459,6 @@ func (o *AddServiceOKBodyRDSRDSExporter) ContextValidate(ctx context.Context, fo } func (o *AddServiceOKBodyRDSRDSExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -9623,7 +9505,6 @@ AddServiceOKBodyRDSRDSExporterMetricsResolutions MetricsResolutions represents P swagger:model AddServiceOKBodyRDSRDSExporterMetricsResolutions */ type AddServiceOKBodyRDSRDSExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -9667,7 +9548,6 @@ AddServiceOKBodyValkey add service OK body valkey swagger:model AddServiceOKBodyValkey */ type AddServiceOKBodyValkey struct { - // service Service *AddServiceOKBodyValkeyService `json:"service,omitempty"` @@ -9758,7 +9638,6 @@ func (o *AddServiceOKBodyValkey) ContextValidate(ctx context.Context, formats st } func (o *AddServiceOKBodyValkey) contextValidateService(ctx context.Context, formats strfmt.Registry) error { - if o.Service != nil { if swag.IsZero(o.Service) { // not required @@ -9783,7 +9662,6 @@ func (o *AddServiceOKBodyValkey) contextValidateService(ctx context.Context, for } func (o *AddServiceOKBodyValkey) contextValidateValkeyExporter(ctx context.Context, formats strfmt.Registry) error { - if o.ValkeyExporter != nil { if swag.IsZero(o.ValkeyExporter) { // not required @@ -9830,7 +9708,6 @@ AddServiceOKBodyValkeyService ValkeyService represents a generic Valkey instance swagger:model AddServiceOKBodyValkeyService */ type AddServiceOKBodyValkeyService struct { - // Unique randomly generated instance identifier. ServiceID string `json:"service_id,omitempty"` @@ -9901,7 +9778,6 @@ AddServiceOKBodyValkeyValkeyExporter ValkeyExporter runs on Generic or Container swagger:model AddServiceOKBodyValkeyValkeyExporter */ type AddServiceOKBodyValkeyValkeyExporter struct { - // Unique randomly generated instance identifier. AgentID string `json:"agent_id,omitempty"` @@ -10073,7 +9949,6 @@ func (o *AddServiceOKBodyValkeyValkeyExporter) ContextValidate(ctx context.Conte } func (o *AddServiceOKBodyValkeyValkeyExporter) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -10120,7 +9995,6 @@ AddServiceOKBodyValkeyValkeyExporterMetricsResolutions MetricsResolutions repres swagger:model AddServiceOKBodyValkeyValkeyExporterMetricsResolutions */ type AddServiceOKBodyValkeyValkeyExporterMetricsResolutions struct { - // High resolution. In JSON should be represented as a string with number of seconds with `s` suffix. Hr string `json:"hr,omitempty"` @@ -10164,7 +10038,6 @@ AddServiceParamsBodyElasticache add service params body elasticache swagger:model AddServiceParamsBodyElasticache */ type AddServiceParamsBodyElasticache struct { - // AWS region. Region string `json:"region,omitempty"` @@ -10370,7 +10243,6 @@ AddServiceParamsBodyExternal add service params body external swagger:model AddServiceParamsBodyExternal */ type AddServiceParamsBodyExternal struct { - // Node identifier on which an external exporter is been running. // runs_on_node_id should always be passed with node_id. // Exactly one of these parameters should be present: node_id, node_name, add_node. @@ -10539,7 +10411,6 @@ func (o *AddServiceParamsBodyExternal) ContextValidate(ctx context.Context, form } func (o *AddServiceParamsBodyExternal) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -10586,7 +10457,6 @@ AddServiceParamsBodyExternalAddNode AddNodeParams holds node params and is used swagger:model AddServiceParamsBodyExternalAddNode */ type AddServiceParamsBodyExternalAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -10718,7 +10588,6 @@ AddServiceParamsBodyHaproxy add service params body haproxy swagger:model AddServiceParamsBodyHaproxy */ type AddServiceParamsBodyHaproxy 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"` @@ -10879,7 +10748,6 @@ func (o *AddServiceParamsBodyHaproxy) ContextValidate(ctx context.Context, forma } func (o *AddServiceParamsBodyHaproxy) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -10926,7 +10794,6 @@ AddServiceParamsBodyHaproxyAddNode AddNodeParams holds node params and is used t swagger:model AddServiceParamsBodyHaproxyAddNode */ type AddServiceParamsBodyHaproxyAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -11058,7 +10925,6 @@ AddServiceParamsBodyMongodb add service params body mongodb swagger:model AddServiceParamsBodyMongodb */ type AddServiceParamsBodyMongodb 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"` @@ -11340,7 +11206,6 @@ func (o *AddServiceParamsBodyMongodb) ContextValidate(ctx context.Context, forma } func (o *AddServiceParamsBodyMongodb) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -11387,7 +11252,6 @@ AddServiceParamsBodyMongodbAddNode AddNodeParams holds node params and is used t swagger:model AddServiceParamsBodyMongodbAddNode */ type AddServiceParamsBodyMongodbAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -11519,7 +11383,6 @@ AddServiceParamsBodyMysql add service params body mysql swagger:model AddServiceParamsBodyMysql */ type AddServiceParamsBodyMysql 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"` @@ -11795,7 +11658,6 @@ func (o *AddServiceParamsBodyMysql) ContextValidate(ctx context.Context, formats } func (o *AddServiceParamsBodyMysql) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -11842,7 +11704,6 @@ AddServiceParamsBodyMysqlAddNode AddNodeParams holds node params and is used to swagger:model AddServiceParamsBodyMysqlAddNode */ type AddServiceParamsBodyMysqlAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -11974,7 +11835,6 @@ AddServiceParamsBodyPostgresql add service params body postgresql swagger:model AddServiceParamsBodyPostgresql */ type AddServiceParamsBodyPostgresql 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"` @@ -12246,7 +12106,6 @@ func (o *AddServiceParamsBodyPostgresql) ContextValidate(ctx context.Context, fo } func (o *AddServiceParamsBodyPostgresql) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -12293,7 +12152,6 @@ AddServiceParamsBodyPostgresqlAddNode AddNodeParams holds node params and is use swagger:model AddServiceParamsBodyPostgresqlAddNode */ type AddServiceParamsBodyPostgresqlAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -12425,7 +12283,6 @@ AddServiceParamsBodyProxysql add service params body proxysql swagger:model AddServiceParamsBodyProxysql */ type AddServiceParamsBodyProxysql 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"` @@ -12664,7 +12521,6 @@ func (o *AddServiceParamsBodyProxysql) ContextValidate(ctx context.Context, form } func (o *AddServiceParamsBodyProxysql) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -12711,7 +12567,6 @@ AddServiceParamsBodyProxysqlAddNode AddNodeParams holds node params and is used swagger:model AddServiceParamsBodyProxysqlAddNode */ type AddServiceParamsBodyProxysqlAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -12843,7 +12698,6 @@ AddServiceParamsBodyRDS add service params body RDS swagger:model AddServiceParamsBodyRDS */ type AddServiceParamsBodyRDS struct { - // AWS region. Region string `json:"region,omitempty"` @@ -13090,7 +12944,6 @@ AddServiceParamsBodyValkey add service params body valkey swagger:model AddServiceParamsBodyValkey */ type AddServiceParamsBodyValkey struct { - // Node identifier on which the service is running. // Only one of these parameters should be present: node_id, node_name, add_node. NodeID string `json:"node_id,omitempty"` @@ -13335,7 +13188,6 @@ func (o *AddServiceParamsBodyValkey) ContextValidate(ctx context.Context, format } func (o *AddServiceParamsBodyValkey) contextValidateAddNode(ctx context.Context, formats strfmt.Registry) error { - if o.AddNode != nil { if swag.IsZero(o.AddNode) { // not required @@ -13382,7 +13234,6 @@ AddServiceParamsBodyValkeyAddNode AddNodeParams holds node params and is used to swagger:model AddServiceParamsBodyValkeyAddNode */ type AddServiceParamsBodyValkeyAddNode struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` diff --git a/api/management/v1/json/client/management_service/discover_azure_database_parameters.go b/api/management/v1/json/client/management_service/discover_azure_database_parameters.go index 75b1e24acba..f5f9f75a926 100644 --- a/api/management/v1/json/client/management_service/discover_azure_database_parameters.go +++ b/api/management/v1/json/client/management_service/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. DiscoverAzureDatabaseRequest discover azure databases request. @@ -133,7 +132,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/management/v1/json/client/management_service/discover_azure_database_responses.go b/api/management/v1/json/client/management_service/discover_azure_database_responses.go index edc2c16bb58..ee99deb5004 100644 --- a/api/management/v1/json/client/management_service/discover_azure_database_responses.go +++ b/api/management/v1/json/client/management_service/discover_azure_database_responses.go @@ -105,7 +105,6 @@ func (o *DiscoverAzureDatabaseOK) GetPayload() *DiscoverAzureDatabaseOKBody { } func (o *DiscoverAzureDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverAzureDatabaseOKBody) // response payload @@ -179,7 +178,6 @@ func (o *DiscoverAzureDatabaseDefault) GetPayload() *DiscoverAzureDatabaseDefaul } func (o *DiscoverAzureDatabaseDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverAzureDatabaseDefaultBody) // response payload @@ -195,7 +193,6 @@ DiscoverAzureDatabaseBody DiscoverAzureDatabaseRequest discover azure databases swagger:model DiscoverAzureDatabaseBody */ type DiscoverAzureDatabaseBody struct { - // Azure client ID. AzureClientID string `json:"azure_client_id,omitempty"` @@ -242,7 +239,6 @@ DiscoverAzureDatabaseDefaultBody discover azure database default body swagger:model DiscoverAzureDatabaseDefaultBody */ type DiscoverAzureDatabaseDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -312,9 +308,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 swag.IsZero(o.Details[i]) { // not required @@ -334,7 +328,6 @@ func (o *DiscoverAzureDatabaseDefaultBody) contextValidateDetails(ctx context.Co return err } } - } return nil @@ -363,7 +356,6 @@ DiscoverAzureDatabaseDefaultBodyDetailsItems0 discover azure database default bo swagger:model DiscoverAzureDatabaseDefaultBodyDetailsItems0 */ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -375,7 +367,6 @@ type DiscoverAzureDatabaseDefaultBodyDetailsItems0 struct { func (o *DiscoverAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -413,7 +404,6 @@ func (o *DiscoverAzureDatabaseDefaultBodyDetailsItems0) UnmarshalJSON(data []byt // MarshalJSON marshals this object with additional properties into a JSON object func (o DiscoverAzureDatabaseDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -477,7 +467,6 @@ DiscoverAzureDatabaseOKBody DiscoverAzureDatabaseResponse discover azure databas swagger:model DiscoverAzureDatabaseOKBody */ type DiscoverAzureDatabaseOKBody struct { - // azure database instance AzureDatabaseInstance []*DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 `json:"azure_database_instance"` } @@ -541,9 +530,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 swag.IsZero(o.AzureDatabaseInstance[i]) { // not required @@ -563,7 +550,6 @@ func (o *DiscoverAzureDatabaseOKBody) contextValidateAzureDatabaseInstance(ctx c return err } } - } return nil @@ -592,7 +578,6 @@ DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 DiscoverAzureDatabaseInst swagger:model DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 */ type DiscoverAzureDatabaseOKBodyAzureDatabaseInstanceItems0 struct { - // Azure database instance ID. InstanceID string `json:"instance_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go index 02bdca91296..25025685e10 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go @@ -60,7 +60,6 @@ DiscoverElastiCacheParams contains all the parameters to send to the API endpoin Typically these are written to a http.Request. */ type DiscoverElastiCacheParams struct { - // Body. Body DiscoverElastiCacheBody @@ -130,7 +129,6 @@ func (o *DiscoverElastiCacheParams) SetBody(body DiscoverElastiCacheBody) { // WriteToRequest writes these params to a swagger request func (o *DiscoverElastiCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go index c7fd5643742..a39781aee91 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go @@ -105,7 +105,6 @@ func (o *DiscoverElastiCacheOK) GetPayload() *DiscoverElastiCacheOKBody { } func (o *DiscoverElastiCacheOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverElastiCacheOKBody) // response payload @@ -179,7 +178,6 @@ func (o *DiscoverElastiCacheDefault) GetPayload() *DiscoverElastiCacheDefaultBod } func (o *DiscoverElastiCacheDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverElastiCacheDefaultBody) // response payload @@ -195,7 +193,6 @@ DiscoverElastiCacheBody discover elasti cache body swagger:model DiscoverElastiCacheBody */ type DiscoverElastiCacheBody struct { - // AWS Access key. Optional — if empty, the default credential chain is used. AWSAccessKey string `json:"aws_access_key,omitempty"` @@ -236,7 +233,6 @@ DiscoverElastiCacheDefaultBody discover elasti cache default body swagger:model DiscoverElastiCacheDefaultBody */ type DiscoverElastiCacheDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -306,9 +302,7 @@ func (o *DiscoverElastiCacheDefaultBody) ContextValidate(ctx context.Context, fo } func (o *DiscoverElastiCacheDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -328,7 +322,6 @@ func (o *DiscoverElastiCacheDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -357,7 +350,6 @@ DiscoverElastiCacheDefaultBodyDetailsItems0 discover elasti cache default body d swagger:model DiscoverElastiCacheDefaultBodyDetailsItems0 */ type DiscoverElastiCacheDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -369,7 +361,6 @@ type DiscoverElastiCacheDefaultBodyDetailsItems0 struct { func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -407,7 +398,6 @@ func (o *DiscoverElastiCacheDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o DiscoverElastiCacheDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -471,7 +461,6 @@ DiscoverElastiCacheOKBody discover elasti cache OK body swagger:model DiscoverElastiCacheOKBody */ type DiscoverElastiCacheOKBody struct { - // elasticache instances ElasticacheInstances []*DiscoverElastiCacheOKBodyElasticacheInstancesItems0 `json:"elasticache_instances"` } @@ -535,9 +524,7 @@ func (o *DiscoverElastiCacheOKBody) ContextValidate(ctx context.Context, formats } func (o *DiscoverElastiCacheOKBody) contextValidateElasticacheInstances(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.ElasticacheInstances); i++ { - if o.ElasticacheInstances[i] != nil { if swag.IsZero(o.ElasticacheInstances[i]) { // not required @@ -557,7 +544,6 @@ func (o *DiscoverElastiCacheOKBody) contextValidateElasticacheInstances(ctx cont return err } } - } return nil @@ -586,7 +572,6 @@ DiscoverElastiCacheOKBodyElasticacheInstancesItems0 DiscoverElastiCacheInstance swagger:model DiscoverElastiCacheOKBodyElasticacheInstancesItems0 */ type DiscoverElastiCacheOKBodyElasticacheInstancesItems0 struct { - // AWS region. Region string `json:"region,omitempty"` diff --git a/api/management/v1/json/client/management_service/discover_rds_parameters.go b/api/management/v1/json/client/management_service/discover_rds_parameters.go index 93e9487d969..ef5c0058c50 100644 --- a/api/management/v1/json/client/management_service/discover_rds_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/discover_rds_responses.go b/api/management/v1/json/client/management_service/discover_rds_responses.go index d0a66ec60d0..b8743c96b40 100644 --- a/api/management/v1/json/client/management_service/discover_rds_responses.go +++ b/api/management/v1/json/client/management_service/discover_rds_responses.go @@ -105,7 +105,6 @@ func (o *DiscoverRDSOK) GetPayload() *DiscoverRDSOKBody { } func (o *DiscoverRDSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverRDSOKBody) // response payload @@ -179,7 +178,6 @@ func (o *DiscoverRDSDefault) GetPayload() *DiscoverRDSDefaultBody { } func (o *DiscoverRDSDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(DiscoverRDSDefaultBody) // response payload @@ -195,7 +193,6 @@ DiscoverRDSBody discover RDS body swagger:model DiscoverRDSBody */ type DiscoverRDSBody struct { - // AWS Access key. Optional. AWSAccessKey string `json:"aws_access_key,omitempty"` @@ -236,7 +233,6 @@ DiscoverRDSDefaultBody discover RDS default body swagger:model DiscoverRDSDefaultBody */ type DiscoverRDSDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -306,9 +302,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 swag.IsZero(o.Details[i]) { // not required @@ -328,7 +322,6 @@ func (o *DiscoverRDSDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -357,7 +350,6 @@ DiscoverRDSDefaultBodyDetailsItems0 discover RDS default body details items0 swagger:model DiscoverRDSDefaultBodyDetailsItems0 */ type DiscoverRDSDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -369,7 +361,6 @@ type DiscoverRDSDefaultBodyDetailsItems0 struct { func (o *DiscoverRDSDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -407,7 +398,6 @@ func (o *DiscoverRDSDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o DiscoverRDSDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -471,7 +461,6 @@ DiscoverRDSOKBody discover RDS OK body swagger:model DiscoverRDSOKBody */ type DiscoverRDSOKBody struct { - // rds instances RDSInstances []*DiscoverRDSOKBodyRDSInstancesItems0 `json:"rds_instances"` } @@ -535,9 +524,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 swag.IsZero(o.RDSInstances[i]) { // not required @@ -557,7 +544,6 @@ func (o *DiscoverRDSOKBody) contextValidateRDSInstances(ctx context.Context, for return err } } - } return nil @@ -586,7 +572,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/management/v1/json/client/management_service/get_node_parameters.go b/api/management/v1/json/client/management_service/get_node_parameters.go index 73629cc22da..63aa4bdf7c6 100644 --- a/api/management/v1/json/client/management_service/get_node_parameters.go +++ b/api/management/v1/json/client/management_service/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 { - /* NodeID. Unique Node identifier. @@ -133,7 +132,6 @@ func (o *GetNodeParams) SetNodeID(nodeID string) { // 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/management/v1/json/client/management_service/get_node_responses.go b/api/management/v1/json/client/management_service/get_node_responses.go index 7d10fda71b9..241eb92bed5 100644 --- a/api/management/v1/json/client/management_service/get_node_responses.go +++ b/api/management/v1/json/client/management_service/get_node_responses.go @@ -105,7 +105,6 @@ func (o *GetNodeOK) GetPayload() *GetNodeOKBody { } func (o *GetNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetNodeOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetNodeDefault) GetPayload() *GetNodeDefaultBody { } func (o *GetNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetNodeDefaultBody) // response payload @@ -195,7 +193,6 @@ GetNodeDefaultBody get node default body swagger:model GetNodeDefaultBody */ type GetNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *GetNodeDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -316,7 +310,6 @@ GetNodeDefaultBodyDetailsItems0 get node default body details items0 swagger:model GetNodeDefaultBodyDetailsItems0 */ type GetNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type GetNodeDefaultBodyDetailsItems0 struct { func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *GetNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ GetNodeOKBody get node OK body swagger:model GetNodeOKBody */ type GetNodeOKBody struct { - // node Node *GetNodeOKBodyNode `json:"node,omitempty"` } @@ -487,7 +477,6 @@ func (o *GetNodeOKBody) ContextValidate(ctx context.Context, formats strfmt.Regi } func (o *GetNodeOKBody) contextValidateNode(ctx context.Context, formats strfmt.Registry) error { - if o.Node != nil { if swag.IsZero(o.Node) { // not required @@ -534,7 +523,6 @@ GetNodeOKBodyNode get node OK body node swagger:model GetNodeOKBodyNode */ type GetNodeOKBodyNode struct { - // Unique Node identifier. NodeID string `json:"node_id,omitempty"` @@ -782,9 +770,7 @@ func (o *GetNodeOKBodyNode) ContextValidate(ctx context.Context, formats strfmt. } func (o *GetNodeOKBodyNode) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Agents); i++ { - if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -804,16 +790,13 @@ func (o *GetNodeOKBodyNode) contextValidateAgents(ctx context.Context, formats s return err } } - } return nil } func (o *GetNodeOKBodyNode) contextValidateServices(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Services); i++ { - if o.Services[i] != nil { if swag.IsZero(o.Services[i]) { // not required @@ -833,7 +816,6 @@ func (o *GetNodeOKBodyNode) contextValidateServices(ctx context.Context, formats return err } } - } return nil @@ -862,7 +844,6 @@ GetNodeOKBodyNodeAgentsItems0 get node OK body node agents items0 swagger:model GetNodeOKBodyNodeAgentsItems0 */ type GetNodeOKBodyNodeAgentsItems0 struct { - // Unique Agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -909,7 +890,6 @@ GetNodeOKBodyNodeServicesItems0 Service represents a service running on a node. swagger:model GetNodeOKBodyNodeServicesItems0 */ type GetNodeOKBodyNodeServicesItems0 struct { - // Unique Service identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/list_agent_versions_parameters.go b/api/management/v1/json/client/management_service/list_agent_versions_parameters.go index 97d2ce24b71..d7f16fa9b2d 100644 --- a/api/management/v1/json/client/management_service/list_agent_versions_parameters.go +++ b/api/management/v1/json/client/management_service/list_agent_versions_parameters.go @@ -115,7 +115,6 @@ func (o *ListAgentVersionsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListAgentVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_agent_versions_responses.go b/api/management/v1/json/client/management_service/list_agent_versions_responses.go index dc5b538faef..a0a8858d962 100644 --- a/api/management/v1/json/client/management_service/list_agent_versions_responses.go +++ b/api/management/v1/json/client/management_service/list_agent_versions_responses.go @@ -105,7 +105,6 @@ func (o *ListAgentVersionsOK) GetPayload() *ListAgentVersionsOKBody { } func (o *ListAgentVersionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentVersionsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListAgentVersionsDefault) GetPayload() *ListAgentVersionsDefaultBody { } func (o *ListAgentVersionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentVersionsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListAgentVersionsDefaultBody list agent versions default body swagger:model ListAgentVersionsDefaultBody */ type ListAgentVersionsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListAgentVersionsDefaultBody) ContextValidate(ctx context.Context, form } func (o *ListAgentVersionsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListAgentVersionsDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -316,7 +310,6 @@ ListAgentVersionsDefaultBodyDetailsItems0 list agent versions default body detai swagger:model ListAgentVersionsDefaultBodyDetailsItems0 */ type ListAgentVersionsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListAgentVersionsDefaultBodyDetailsItems0 struct { func (o *ListAgentVersionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListAgentVersionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) e // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAgentVersionsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListAgentVersionsOKBody list agent versions OK body swagger:model ListAgentVersionsOKBody */ type ListAgentVersionsOKBody struct { - // List of Agent versions. AgentVersions []*ListAgentVersionsOKBodyAgentVersionsItems0 `json:"agent_versions"` } @@ -494,9 +484,7 @@ func (o *ListAgentVersionsOKBody) ContextValidate(ctx context.Context, formats s } func (o *ListAgentVersionsOKBody) contextValidateAgentVersions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.AgentVersions); i++ { - if o.AgentVersions[i] != nil { if swag.IsZero(o.AgentVersions[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListAgentVersionsOKBody) contextValidateAgentVersions(ctx context.Conte return err } } - } return nil @@ -545,7 +532,6 @@ ListAgentVersionsOKBodyAgentVersionsItems0 list agent versions OK body agent ver swagger:model ListAgentVersionsOKBodyAgentVersionsItems0 */ type ListAgentVersionsOKBodyAgentVersionsItems0 struct { - // Agent ID. AgentID string `json:"agent_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/list_agents_parameters.go b/api/management/v1/json/client/management_service/list_agents_parameters.go index 7c16816c10a..5dd7b7b6a4f 100644 --- a/api/management/v1/json/client/management_service/list_agents_parameters.go +++ b/api/management/v1/json/client/management_service/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 { - /* NodeID. Return only Agents that relate to a specific NodeID. @@ -150,7 +149,6 @@ func (o *ListAgentsParams) SetServiceID(serviceID *string) { // 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 } @@ -166,7 +164,6 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qNodeID := qrNodeID if qNodeID != "" { - if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -183,7 +180,6 @@ func (o *ListAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } qServiceID := qrServiceID if qServiceID != "" { - if err := r.SetQueryParam("service_id", qServiceID); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_agents_responses.go b/api/management/v1/json/client/management_service/list_agents_responses.go index b808212608c..2da78ec1324 100644 --- a/api/management/v1/json/client/management_service/list_agents_responses.go +++ b/api/management/v1/json/client/management_service/list_agents_responses.go @@ -105,7 +105,6 @@ func (o *ListAgentsOK) GetPayload() *ListAgentsOKBody { } func (o *ListAgentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListAgentsDefault) GetPayload() *ListAgentsDefaultBody { } func (o *ListAgentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListAgentsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListAgentsDefaultBody list agents default body swagger:model ListAgentsDefaultBody */ type ListAgentsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListAgentsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -316,7 +310,6 @@ ListAgentsDefaultBodyDetailsItems0 list agents default body details items0 swagger:model ListAgentsDefaultBodyDetailsItems0 */ type ListAgentsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListAgentsDefaultBodyDetailsItems0 struct { func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListAgentsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListAgentsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListAgentsOKBody list agents OK body swagger:model ListAgentsOKBody */ type ListAgentsOKBody struct { - // List of Agents. Agents []*ListAgentsOKBodyAgentsItems0 `json:"agents"` } @@ -494,9 +484,7 @@ func (o *ListAgentsOKBody) ContextValidate(ctx context.Context, formats strfmt.R } func (o *ListAgentsOKBody) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Agents); i++ { - if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListAgentsOKBody) contextValidateAgents(ctx context.Context, formats st return err } } - } return nil @@ -545,7 +532,6 @@ ListAgentsOKBodyAgentsItems0 list agents OK body agents items0 swagger:model ListAgentsOKBodyAgentsItems0 */ type ListAgentsOKBodyAgentsItems0 struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -946,7 +932,6 @@ func (o *ListAgentsOKBodyAgentsItems0) ContextValidate(ctx context.Context, form } func (o *ListAgentsOKBodyAgentsItems0) contextValidateAzureOptions(ctx context.Context, formats strfmt.Registry) error { - if o.AzureOptions != nil { if swag.IsZero(o.AzureOptions) { // not required @@ -971,7 +956,6 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidateAzureOptions(ctx context.C } func (o *ListAgentsOKBodyAgentsItems0) contextValidateMongoDBOptions(ctx context.Context, formats strfmt.Registry) error { - if o.MongoDBOptions != nil { if swag.IsZero(o.MongoDBOptions) { // not required @@ -996,7 +980,6 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidateMongoDBOptions(ctx context } func (o *ListAgentsOKBodyAgentsItems0) contextValidateMysqlOptions(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlOptions != nil { if swag.IsZero(o.MysqlOptions) { // not required @@ -1021,7 +1004,6 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidateMysqlOptions(ctx context.C } func (o *ListAgentsOKBodyAgentsItems0) contextValidatePostgresqlOptions(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresqlOptions != nil { if swag.IsZero(o.PostgresqlOptions) { // not required @@ -1046,7 +1028,6 @@ func (o *ListAgentsOKBodyAgentsItems0) contextValidatePostgresqlOptions(ctx cont } func (o *ListAgentsOKBodyAgentsItems0) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -1093,7 +1074,6 @@ ListAgentsOKBodyAgentsItems0AzureOptions list agents OK body agents items0 azure swagger:model ListAgentsOKBodyAgentsItems0AzureOptions */ type ListAgentsOKBodyAgentsItems0AzureOptions struct { - // Azure client ID. ClientID string `json:"client_id,omitempty"` @@ -1143,7 +1123,6 @@ ListAgentsOKBodyAgentsItems0MongoDBOptions list agents OK body agents items0 mon swagger:model ListAgentsOKBodyAgentsItems0MongoDBOptions */ type ListAgentsOKBodyAgentsItems0MongoDBOptions struct { - // True if TLS certificate is set. IsTLSCertificateKeySet bool `json:"is_tls_certificate_key_set,omitempty"` @@ -1199,7 +1178,6 @@ ListAgentsOKBodyAgentsItems0MysqlOptions list agents OK body agents items0 mysql swagger:model ListAgentsOKBodyAgentsItems0MysqlOptions */ type ListAgentsOKBodyAgentsItems0MysqlOptions struct { - // True if TLS key is set. IsTLSKeySet bool `json:"is_tls_key_set,omitempty"` @@ -1240,7 +1218,6 @@ ListAgentsOKBodyAgentsItems0PostgresqlOptions list agents OK body agents items0 swagger:model ListAgentsOKBodyAgentsItems0PostgresqlOptions */ type ListAgentsOKBodyAgentsItems0PostgresqlOptions struct { - // True if TLS key is set. IsSslKeySet bool `json:"is_ssl_key_set,omitempty"` @@ -1284,7 +1261,6 @@ ListAgentsOKBodyAgentsItems0RtaOptions RTAOptions holds Real-Time Query Analytic swagger:model ListAgentsOKBodyAgentsItems0RtaOptions */ type ListAgentsOKBodyAgentsItems0RtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } diff --git a/api/management/v1/json/client/management_service/list_nodes_parameters.go b/api/management/v1/json/client/management_service/list_nodes_parameters.go index eeca2a1f5f7..441e42660e2 100644 --- a/api/management/v1/json/client/management_service/list_nodes_parameters.go +++ b/api/management/v1/json/client/management_service/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 { - /* NodeType. Node type to be filtered out. @@ -86,9 +85,7 @@ func (o *ListNodesParams) WithDefaults() *ListNodesParams { // // All values with no default are reset to their zero value. func (o *ListNodesParams) SetDefaults() { - var ( - nodeTypeDefault = string("NODE_TYPE_UNSPECIFIED") - ) + nodeTypeDefault := string("NODE_TYPE_UNSPECIFIED") val := ListNodesParams{ NodeType: &nodeTypeDefault, @@ -146,7 +143,6 @@ func (o *ListNodesParams) SetNodeType(nodeType *string) { // 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 } @@ -162,7 +158,6 @@ func (o *ListNodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg } qNodeType := qrNodeType if qNodeType != "" { - if err := r.SetQueryParam("node_type", qNodeType); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_nodes_responses.go b/api/management/v1/json/client/management_service/list_nodes_responses.go index e47d09aad07..d9f378b0034 100644 --- a/api/management/v1/json/client/management_service/list_nodes_responses.go +++ b/api/management/v1/json/client/management_service/list_nodes_responses.go @@ -105,7 +105,6 @@ func (o *ListNodesOK) GetPayload() *ListNodesOKBody { } func (o *ListNodesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListNodesDefault) GetPayload() *ListNodesDefaultBody { } func (o *ListNodesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListNodesDefaultBody) // response payload @@ -195,7 +193,6 @@ ListNodesDefaultBody list nodes default body swagger:model ListNodesDefaultBody */ type ListNodesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListNodesDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -316,7 +310,6 @@ ListNodesDefaultBodyDetailsItems0 list nodes default body details items0 swagger:model ListNodesDefaultBodyDetailsItems0 */ type ListNodesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListNodesDefaultBodyDetailsItems0 struct { func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListNodesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListNodesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListNodesOKBody list nodes OK body swagger:model ListNodesOKBody */ type ListNodesOKBody struct { - // nodes Nodes []*ListNodesOKBodyNodesItems0 `json:"nodes"` } @@ -494,9 +484,7 @@ func (o *ListNodesOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Nodes); i++ { - if o.Nodes[i] != nil { if swag.IsZero(o.Nodes[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListNodesOKBody) contextValidateNodes(ctx context.Context, formats strf return err } } - } return nil @@ -545,7 +532,6 @@ ListNodesOKBodyNodesItems0 list nodes OK body nodes items0 swagger:model ListNodesOKBodyNodesItems0 */ type ListNodesOKBodyNodesItems0 struct { - // Unique Node identifier. NodeID string `json:"node_id,omitempty"` @@ -793,9 +779,7 @@ func (o *ListNodesOKBodyNodesItems0) ContextValidate(ctx context.Context, format } func (o *ListNodesOKBodyNodesItems0) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Agents); i++ { - if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -815,16 +799,13 @@ func (o *ListNodesOKBodyNodesItems0) contextValidateAgents(ctx context.Context, return err } } - } return nil } func (o *ListNodesOKBodyNodesItems0) contextValidateServices(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Services); i++ { - if o.Services[i] != nil { if swag.IsZero(o.Services[i]) { // not required @@ -844,7 +825,6 @@ func (o *ListNodesOKBodyNodesItems0) contextValidateServices(ctx context.Context return err } } - } return nil @@ -873,7 +853,6 @@ ListNodesOKBodyNodesItems0AgentsItems0 list nodes OK body nodes items0 agents it swagger:model ListNodesOKBodyNodesItems0AgentsItems0 */ type ListNodesOKBodyNodesItems0AgentsItems0 struct { - // Unique Agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -920,7 +899,6 @@ ListNodesOKBodyNodesItems0ServicesItems0 Service represents a service running on swagger:model ListNodesOKBodyNodesItems0ServicesItems0 */ type ListNodesOKBodyNodesItems0ServicesItems0 struct { - // Unique Service identifier. ServiceID string `json:"service_id,omitempty"` diff --git a/api/management/v1/json/client/management_service/list_services_parameters.go b/api/management/v1/json/client/management_service/list_services_parameters.go index d9a1cba1032..80363638efa 100644 --- a/api/management/v1/json/client/management_service/list_services_parameters.go +++ b/api/management/v1/json/client/management_service/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 { - /* ExternalGroup. Return only services in this external group. @@ -98,9 +97,7 @@ func (o *ListServicesParams) WithDefaults() *ListServicesParams { // // All values with no default are reset to their zero value. func (o *ListServicesParams) SetDefaults() { - var ( - serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") - ) + serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") val := ListServicesParams{ ServiceType: &serviceTypeDefault, @@ -180,7 +177,6 @@ func (o *ListServicesParams) SetServiceType(serviceType *string) { // 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 } @@ -196,7 +192,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qExternalGroup := qrExternalGroup if qExternalGroup != "" { - if err := r.SetQueryParam("external_group", qExternalGroup); err != nil { return err } @@ -213,7 +208,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qNodeID := qrNodeID if qNodeID != "" { - if err := r.SetQueryParam("node_id", qNodeID); err != nil { return err } @@ -230,7 +224,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qServiceType := qrServiceType if qServiceType != "" { - if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/list_services_responses.go b/api/management/v1/json/client/management_service/list_services_responses.go index 4570a26e435..d9fcccd96b2 100644 --- a/api/management/v1/json/client/management_service/list_services_responses.go +++ b/api/management/v1/json/client/management_service/list_services_responses.go @@ -105,7 +105,6 @@ func (o *ListServicesOK) GetPayload() *ListServicesOKBody { } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesDefaultBody) // response payload @@ -195,7 +193,6 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -316,7 +310,6 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListServicesDefaultBodyDetailsItems0 struct { func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { - // List of Services. Services []*ListServicesOKBodyServicesItems0 `json:"services"` } @@ -494,9 +484,7 @@ func (o *ListServicesOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListServicesOKBody) contextValidateServices(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Services); i++ { - if o.Services[i] != nil { if swag.IsZero(o.Services[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListServicesOKBody) contextValidateServices(ctx context.Context, format return err } } - } return nil @@ -545,7 +532,6 @@ ListServicesOKBodyServicesItems0 list services OK body services items0 swagger:model ListServicesOKBodyServicesItems0 */ type ListServicesOKBodyServicesItems0 struct { - // Unique service identifier. ServiceID string `json:"service_id,omitempty"` @@ -758,9 +744,7 @@ func (o *ListServicesOKBodyServicesItems0) ContextValidate(ctx context.Context, } func (o *ListServicesOKBodyServicesItems0) contextValidateAgents(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Agents); i++ { - if o.Agents[i] != nil { if swag.IsZero(o.Agents[i]) { // not required @@ -780,7 +764,6 @@ func (o *ListServicesOKBodyServicesItems0) contextValidateAgents(ctx context.Con return err } } - } return nil @@ -809,7 +792,6 @@ ListServicesOKBodyServicesItems0AgentsItems0 list services OK body services item swagger:model ListServicesOKBodyServicesItems0AgentsItems0 */ type ListServicesOKBodyServicesItems0AgentsItems0 struct { - // Unique agent identifier. AgentID string `json:"agent_id,omitempty"` @@ -1210,7 +1192,6 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) ContextValidate(ctx conte } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateAzureOptions(ctx context.Context, formats strfmt.Registry) error { - if o.AzureOptions != nil { if swag.IsZero(o.AzureOptions) { // not required @@ -1235,7 +1216,6 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateAzureOptio } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMongoDBOptions(ctx context.Context, formats strfmt.Registry) error { - if o.MongoDBOptions != nil { if swag.IsZero(o.MongoDBOptions) { // not required @@ -1260,7 +1240,6 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMongoDBOpt } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMysqlOptions(ctx context.Context, formats strfmt.Registry) error { - if o.MysqlOptions != nil { if swag.IsZero(o.MysqlOptions) { // not required @@ -1285,7 +1264,6 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateMysqlOptio } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidatePostgresqlOptions(ctx context.Context, formats strfmt.Registry) error { - if o.PostgresqlOptions != nil { if swag.IsZero(o.PostgresqlOptions) { // not required @@ -1310,7 +1288,6 @@ func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidatePostgresql } func (o *ListServicesOKBodyServicesItems0AgentsItems0) contextValidateRtaOptions(ctx context.Context, formats strfmt.Registry) error { - if o.RtaOptions != nil { if swag.IsZero(o.RtaOptions) { // not required @@ -1357,7 +1334,6 @@ ListServicesOKBodyServicesItems0AgentsItems0AzureOptions list services OK body s swagger:model ListServicesOKBodyServicesItems0AgentsItems0AzureOptions */ type ListServicesOKBodyServicesItems0AgentsItems0AzureOptions struct { - // Azure client ID. ClientID string `json:"client_id,omitempty"` @@ -1407,7 +1383,6 @@ ListServicesOKBodyServicesItems0AgentsItems0MongoDBOptions list services OK body swagger:model ListServicesOKBodyServicesItems0AgentsItems0MongoDBOptions */ type ListServicesOKBodyServicesItems0AgentsItems0MongoDBOptions struct { - // True if TLS certificate is set. IsTLSCertificateKeySet bool `json:"is_tls_certificate_key_set,omitempty"` @@ -1463,7 +1438,6 @@ ListServicesOKBodyServicesItems0AgentsItems0MysqlOptions list services OK body s swagger:model ListServicesOKBodyServicesItems0AgentsItems0MysqlOptions */ type ListServicesOKBodyServicesItems0AgentsItems0MysqlOptions struct { - // True if TLS key is set. IsTLSKeySet bool `json:"is_tls_key_set,omitempty"` @@ -1504,7 +1478,6 @@ ListServicesOKBodyServicesItems0AgentsItems0PostgresqlOptions list services OK b swagger:model ListServicesOKBodyServicesItems0AgentsItems0PostgresqlOptions */ type ListServicesOKBodyServicesItems0AgentsItems0PostgresqlOptions struct { - // True if TLS key is set. IsSslKeySet bool `json:"is_ssl_key_set,omitempty"` @@ -1548,7 +1521,6 @@ ListServicesOKBodyServicesItems0AgentsItems0RtaOptions RTAOptions holds Real-Tim swagger:model ListServicesOKBodyServicesItems0AgentsItems0RtaOptions */ type ListServicesOKBodyServicesItems0AgentsItems0RtaOptions struct { - // Query collect interval (default 2s is set by server). CollectInterval string `json:"collect_interval,omitempty"` } diff --git a/api/management/v1/json/client/management_service/register_node_parameters.go b/api/management/v1/json/client/management_service/register_node_parameters.go index 5de06b5b324..a614118a70b 100644 --- a/api/management/v1/json/client/management_service/register_node_parameters.go +++ b/api/management/v1/json/client/management_service/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/management/v1/json/client/management_service/register_node_responses.go b/api/management/v1/json/client/management_service/register_node_responses.go index 17a6b86d6f1..eb4ec67a210 100644 --- a/api/management/v1/json/client/management_service/register_node_responses.go +++ b/api/management/v1/json/client/management_service/register_node_responses.go @@ -105,7 +105,6 @@ func (o *RegisterNodeOK) GetPayload() *RegisterNodeOKBody { } func (o *RegisterNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RegisterNodeOKBody) // response payload @@ -179,7 +178,6 @@ func (o *RegisterNodeDefault) GetPayload() *RegisterNodeDefaultBody { } func (o *RegisterNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RegisterNodeDefaultBody) // response payload @@ -195,7 +193,6 @@ RegisterNodeBody register node body swagger:model RegisterNodeBody */ type RegisterNodeBody struct { - // NodeType describes supported Node types. // Enum: ["NODE_TYPE_UNSPECIFIED","NODE_TYPE_GENERIC_NODE","NODE_TYPE_CONTAINER_NODE","NODE_TYPE_REMOTE_NODE","NODE_TYPE_REMOTE_RDS_NODE","NODE_TYPE_REMOTE_AZURE_DATABASE_NODE","NODE_TYPE_REMOTE_ELASTICACHE_NODE"] NodeType *string `json:"node_type,omitempty"` @@ -401,7 +398,6 @@ RegisterNodeDefaultBody register node default body swagger:model RegisterNodeDefaultBody */ type RegisterNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -471,9 +467,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 swag.IsZero(o.Details[i]) { // not required @@ -493,7 +487,6 @@ func (o *RegisterNodeDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -522,7 +515,6 @@ RegisterNodeDefaultBodyDetailsItems0 register node default body details items0 swagger:model RegisterNodeDefaultBodyDetailsItems0 */ type RegisterNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -534,7 +526,6 @@ type RegisterNodeDefaultBodyDetailsItems0 struct { func (o *RegisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -572,7 +563,6 @@ func (o *RegisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RegisterNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -636,7 +626,6 @@ RegisterNodeOKBody register node OK body swagger:model RegisterNodeOKBody */ type RegisterNodeOKBody struct { - // Token represents token for vmagent auth config. Token string `json:"token,omitempty"` @@ -767,7 +756,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 swag.IsZero(o.ContainerNode) { // not required @@ -792,7 +780,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 swag.IsZero(o.GenericNode) { // not required @@ -817,7 +804,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 swag.IsZero(o.PMMAgent) { // not required @@ -864,7 +850,6 @@ RegisterNodeOKBodyContainerNode ContainerNode represents a Docker container. swagger:model RegisterNodeOKBodyContainerNode */ type RegisterNodeOKBodyContainerNode struct { - // Unique randomly generated instance identifier. NodeID string `json:"node_id,omitempty"` @@ -932,7 +917,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"` @@ -997,7 +981,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/management/v1/json/client/management_service/remove_service_parameters.go b/api/management/v1/json/client/management_service/remove_service_parameters.go index 7700f224248..16511c1b2e4 100644 --- a/api/management/v1/json/client/management_service/remove_service_parameters.go +++ b/api/management/v1/json/client/management_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 { - /* ServiceID. Either a Service ID or a Service Name. @@ -92,9 +91,7 @@ func (o *RemoveServiceParams) WithDefaults() *RemoveServiceParams { // // All values with no default are reset to their zero value. func (o *RemoveServiceParams) SetDefaults() { - var ( - serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") - ) + serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") val := RemoveServiceParams{ ServiceType: &serviceTypeDefault, @@ -163,7 +160,6 @@ func (o *RemoveServiceParams) SetServiceType(serviceType *string) { // 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 } @@ -184,7 +180,6 @@ func (o *RemoveServiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } qServiceType := qrServiceType if qServiceType != "" { - if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/remove_service_responses.go b/api/management/v1/json/client/management_service/remove_service_responses.go index 04adf4f9132..b9b54fc46ba 100644 --- a/api/management/v1/json/client/management_service/remove_service_responses.go +++ b/api/management/v1/json/client/management_service/remove_service_responses.go @@ -104,7 +104,6 @@ func (o *RemoveServiceOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *RemoveServiceDefault) GetPayload() *RemoveServiceDefaultBody { } func (o *RemoveServiceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(RemoveServiceDefaultBody) // response payload @@ -192,7 +190,6 @@ RemoveServiceDefaultBody remove service default body swagger:model RemoveServiceDefaultBody */ type RemoveServiceDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *RemoveServiceDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -313,7 +307,6 @@ RemoveServiceDefaultBodyDetailsItems0 remove service default body details items0 swagger:model RemoveServiceDefaultBodyDetailsItems0 */ type RemoveServiceDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type RemoveServiceDefaultBodyDetailsItems0 struct { func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *RemoveServiceDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o RemoveServiceDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/management/v1/json/client/management_service/unregister_node_parameters.go b/api/management/v1/json/client/management_service/unregister_node_parameters.go index 21d279574a5..069530e44b2 100644 --- a/api/management/v1/json/client/management_service/unregister_node_parameters.go +++ b/api/management/v1/json/client/management_service/unregister_node_parameters.go @@ -61,7 +61,6 @@ UnregisterNodeParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type UnregisterNodeParams struct { - /* Force. Force delete node, related service account, even if it has more service tokens attached. @@ -151,7 +150,6 @@ func (o *UnregisterNodeParams) SetNodeID(nodeID string) { // WriteToRequest writes these params to a swagger request func (o *UnregisterNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -167,7 +165,6 @@ func (o *UnregisterNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfm } qForce := swag.FormatBool(qrForce) if qForce != "" { - if err := r.SetQueryParam("force", qForce); err != nil { return err } diff --git a/api/management/v1/json/client/management_service/unregister_node_responses.go b/api/management/v1/json/client/management_service/unregister_node_responses.go index baa8ef3d866..a935e26136f 100644 --- a/api/management/v1/json/client/management_service/unregister_node_responses.go +++ b/api/management/v1/json/client/management_service/unregister_node_responses.go @@ -104,7 +104,6 @@ func (o *UnregisterNodeOK) GetPayload() *UnregisterNodeOKBody { } func (o *UnregisterNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UnregisterNodeOKBody) // response payload @@ -178,7 +177,6 @@ func (o *UnregisterNodeDefault) GetPayload() *UnregisterNodeDefaultBody { } func (o *UnregisterNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UnregisterNodeDefaultBody) // response payload @@ -194,7 +192,6 @@ UnregisterNodeDefaultBody unregister node default body swagger:model UnregisterNodeDefaultBody */ type UnregisterNodeDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *UnregisterNodeDefaultBody) ContextValidate(ctx context.Context, formats } func (o *UnregisterNodeDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *UnregisterNodeDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -315,7 +309,6 @@ UnregisterNodeDefaultBodyDetailsItems0 unregister node default body details item swagger:model UnregisterNodeDefaultBodyDetailsItems0 */ type UnregisterNodeDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type UnregisterNodeDefaultBodyDetailsItems0 struct { func (o *UnregisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *UnregisterNodeDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o UnregisterNodeDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ UnregisterNodeOKBody unregister node OK body swagger:model UnregisterNodeOKBody */ type UnregisterNodeOKBody struct { - // Warning message if there are more service tokens attached to service account. Warning string `json:"warning,omitempty"` } diff --git a/api/management/v1/metrics.pb.go b/api/management/v1/metrics.pb.go index 4e15adc6171..af41e8e2ebb 100644 --- a/api/management/v1/metrics.pb.go +++ b/api/management/v1/metrics.pb.go @@ -7,11 +7,12 @@ package managementv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -96,10 +97,13 @@ func file_management_v1_metrics_proto_rawDescGZIP() []byte { return file_management_v1_metrics_proto_rawDescData } -var file_management_v1_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_metrics_proto_goTypes = []any{ - (MetricsMode)(0), // 0: management.v1.MetricsMode -} +var ( + file_management_v1_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_metrics_proto_goTypes = []any{ + (MetricsMode)(0), // 0: management.v1.MetricsMode + } +) + var file_management_v1_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/management/v1/mongodb.pb.go b/api/management/v1/mongodb.pb.go index 3181c2fd833..c3fa68b39f4 100644 --- a/api/management/v1/mongodb.pb.go +++ b/api/management/v1/mongodb.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -529,20 +531,23 @@ func file_management_v1_mongodb_proto_rawDescGZIP() []byte { return file_management_v1_mongodb_proto_rawDescData } -var file_management_v1_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_management_v1_mongodb_proto_goTypes = []any{ - (*AddMongoDBServiceParams)(nil), // 0: management.v1.AddMongoDBServiceParams - (*MongoDBServiceResult)(nil), // 1: management.v1.MongoDBServiceResult - nil, // 2: management.v1.AddMongoDBServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode - (v1.LogLevel)(0), // 5: inventory.v1.LogLevel - (*v1.MongoDBService)(nil), // 6: inventory.v1.MongoDBService - (*v1.MongoDBExporter)(nil), // 7: inventory.v1.MongoDBExporter - (*v1.QANMongoDBProfilerAgent)(nil), // 8: inventory.v1.QANMongoDBProfilerAgent - (*v1.QANMongoDBMongologAgent)(nil), // 9: inventory.v1.QANMongoDBMongologAgent - (*v1.RTAMongoDBAgent)(nil), // 10: inventory.v1.RTAMongoDBAgent -} +var ( + file_management_v1_mongodb_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_management_v1_mongodb_proto_goTypes = []any{ + (*AddMongoDBServiceParams)(nil), // 0: management.v1.AddMongoDBServiceParams + (*MongoDBServiceResult)(nil), // 1: management.v1.MongoDBServiceResult + nil, // 2: management.v1.AddMongoDBServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.MongoDBService)(nil), // 6: inventory.v1.MongoDBService + (*v1.MongoDBExporter)(nil), // 7: inventory.v1.MongoDBExporter + (*v1.QANMongoDBProfilerAgent)(nil), // 8: inventory.v1.QANMongoDBProfilerAgent + (*v1.QANMongoDBMongologAgent)(nil), // 9: inventory.v1.QANMongoDBMongologAgent + (*v1.RTAMongoDBAgent)(nil), // 10: inventory.v1.RTAMongoDBAgent + } +) + var file_management_v1_mongodb_proto_depIdxs = []int32{ 3, // 0: management.v1.AddMongoDBServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMongoDBServiceParams.custom_labels:type_name -> management.v1.AddMongoDBServiceParams.CustomLabelsEntry diff --git a/api/management/v1/mysql.pb.go b/api/management/v1/mysql.pb.go index a68a2abac59..21ef04e2f23 100644 --- a/api/management/v1/mysql.pb.go +++ b/api/management/v1/mysql.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -515,20 +517,23 @@ func file_management_v1_mysql_proto_rawDescGZIP() []byte { return file_management_v1_mysql_proto_rawDescData } -var file_management_v1_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_management_v1_mysql_proto_goTypes = []any{ - (*AddMySQLServiceParams)(nil), // 0: management.v1.AddMySQLServiceParams - (*MySQLServiceResult)(nil), // 1: management.v1.MySQLServiceResult - nil, // 2: management.v1.AddMySQLServiceParams.CustomLabelsEntry - nil, // 3: management.v1.AddMySQLServiceParams.ExtraDsnParamsEntry - (*AddNodeParams)(nil), // 4: management.v1.AddNodeParams - (MetricsMode)(0), // 5: management.v1.MetricsMode - (v1.LogLevel)(0), // 6: inventory.v1.LogLevel - (*v1.MySQLService)(nil), // 7: inventory.v1.MySQLService - (*v1.MySQLdExporter)(nil), // 8: inventory.v1.MySQLdExporter - (*v1.QANMySQLPerfSchemaAgent)(nil), // 9: inventory.v1.QANMySQLPerfSchemaAgent - (*v1.QANMySQLSlowlogAgent)(nil), // 10: inventory.v1.QANMySQLSlowlogAgent -} +var ( + file_management_v1_mysql_proto_msgTypes = make([]protoimpl.MessageInfo, 4) + file_management_v1_mysql_proto_goTypes = []any{ + (*AddMySQLServiceParams)(nil), // 0: management.v1.AddMySQLServiceParams + (*MySQLServiceResult)(nil), // 1: management.v1.MySQLServiceResult + nil, // 2: management.v1.AddMySQLServiceParams.CustomLabelsEntry + nil, // 3: management.v1.AddMySQLServiceParams.ExtraDsnParamsEntry + (*AddNodeParams)(nil), // 4: management.v1.AddNodeParams + (MetricsMode)(0), // 5: management.v1.MetricsMode + (v1.LogLevel)(0), // 6: inventory.v1.LogLevel + (*v1.MySQLService)(nil), // 7: inventory.v1.MySQLService + (*v1.MySQLdExporter)(nil), // 8: inventory.v1.MySQLdExporter + (*v1.QANMySQLPerfSchemaAgent)(nil), // 9: inventory.v1.QANMySQLPerfSchemaAgent + (*v1.QANMySQLSlowlogAgent)(nil), // 10: inventory.v1.QANMySQLSlowlogAgent + } +) + var file_management_v1_mysql_proto_depIdxs = []int32{ 4, // 0: management.v1.AddMySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMySQLServiceParams.custom_labels:type_name -> management.v1.AddMySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/node.pb.go b/api/management/v1/node.pb.go index b1382860ae2..d3f494cdc58 100644 --- a/api/management/v1/node.pb.go +++ b/api/management/v1/node.pb.go @@ -7,15 +7,17 @@ package managementv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" 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" - unsafe "unsafe" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -1225,32 +1227,35 @@ func file_management_v1_node_proto_rawDescGZIP() []byte { return file_management_v1_node_proto_rawDescData } -var file_management_v1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_management_v1_node_proto_goTypes = []any{ - (UniversalNode_Status)(0), // 0: management.v1.UniversalNode.Status - (*AddNodeParams)(nil), // 1: management.v1.AddNodeParams - (*RegisterNodeRequest)(nil), // 2: management.v1.RegisterNodeRequest - (*RegisterNodeResponse)(nil), // 3: management.v1.RegisterNodeResponse - (*UnregisterNodeRequest)(nil), // 4: management.v1.UnregisterNodeRequest - (*UnregisterNodeResponse)(nil), // 5: management.v1.UnregisterNodeResponse - (*UniversalNode)(nil), // 6: management.v1.UniversalNode - (*ListNodesRequest)(nil), // 7: management.v1.ListNodesRequest - (*ListNodesResponse)(nil), // 8: management.v1.ListNodesResponse - (*GetNodeRequest)(nil), // 9: management.v1.GetNodeRequest - (*GetNodeResponse)(nil), // 10: management.v1.GetNodeResponse - nil, // 11: management.v1.AddNodeParams.CustomLabelsEntry - nil, // 12: management.v1.RegisterNodeRequest.CustomLabelsEntry - (*UniversalNode_Service)(nil), // 13: management.v1.UniversalNode.Service - (*UniversalNode_Agent)(nil), // 14: management.v1.UniversalNode.Agent - nil, // 15: management.v1.UniversalNode.CustomLabelsEntry - (v1.NodeType)(0), // 16: inventory.v1.NodeType - (MetricsMode)(0), // 17: management.v1.MetricsMode - (*v1.GenericNode)(nil), // 18: inventory.v1.GenericNode - (*v1.ContainerNode)(nil), // 19: inventory.v1.ContainerNode - (*v1.PMMAgent)(nil), // 20: inventory.v1.PMMAgent - (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp -} +var ( + file_management_v1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 15) + file_management_v1_node_proto_goTypes = []any{ + (UniversalNode_Status)(0), // 0: management.v1.UniversalNode.Status + (*AddNodeParams)(nil), // 1: management.v1.AddNodeParams + (*RegisterNodeRequest)(nil), // 2: management.v1.RegisterNodeRequest + (*RegisterNodeResponse)(nil), // 3: management.v1.RegisterNodeResponse + (*UnregisterNodeRequest)(nil), // 4: management.v1.UnregisterNodeRequest + (*UnregisterNodeResponse)(nil), // 5: management.v1.UnregisterNodeResponse + (*UniversalNode)(nil), // 6: management.v1.UniversalNode + (*ListNodesRequest)(nil), // 7: management.v1.ListNodesRequest + (*ListNodesResponse)(nil), // 8: management.v1.ListNodesResponse + (*GetNodeRequest)(nil), // 9: management.v1.GetNodeRequest + (*GetNodeResponse)(nil), // 10: management.v1.GetNodeResponse + nil, // 11: management.v1.AddNodeParams.CustomLabelsEntry + nil, // 12: management.v1.RegisterNodeRequest.CustomLabelsEntry + (*UniversalNode_Service)(nil), // 13: management.v1.UniversalNode.Service + (*UniversalNode_Agent)(nil), // 14: management.v1.UniversalNode.Agent + nil, // 15: management.v1.UniversalNode.CustomLabelsEntry + (v1.NodeType)(0), // 16: inventory.v1.NodeType + (MetricsMode)(0), // 17: management.v1.MetricsMode + (*v1.GenericNode)(nil), // 18: inventory.v1.GenericNode + (*v1.ContainerNode)(nil), // 19: inventory.v1.ContainerNode + (*v1.PMMAgent)(nil), // 20: inventory.v1.PMMAgent + (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp + } +) + var file_management_v1_node_proto_depIdxs = []int32{ 16, // 0: management.v1.AddNodeParams.node_type:type_name -> inventory.v1.NodeType 11, // 1: management.v1.AddNodeParams.custom_labels:type_name -> management.v1.AddNodeParams.CustomLabelsEntry diff --git a/api/management/v1/postgresql.pb.go b/api/management/v1/postgresql.pb.go index ce4a880bdee..e1d675bd070 100644 --- a/api/management/v1/postgresql.pb.go +++ b/api/management/v1/postgresql.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -506,19 +508,22 @@ func file_management_v1_postgresql_proto_rawDescGZIP() []byte { return file_management_v1_postgresql_proto_rawDescData } -var file_management_v1_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_management_v1_postgresql_proto_goTypes = []any{ - (*AddPostgreSQLServiceParams)(nil), // 0: management.v1.AddPostgreSQLServiceParams - (*PostgreSQLServiceResult)(nil), // 1: management.v1.PostgreSQLServiceResult - nil, // 2: management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode - (v1.LogLevel)(0), // 5: inventory.v1.LogLevel - (*v1.PostgreSQLService)(nil), // 6: inventory.v1.PostgreSQLService - (*v1.PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter - (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.v1.QANPostgreSQLPgStatementsAgent - (*v1.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.v1.QANPostgreSQLPgStatMonitorAgent -} +var ( + file_management_v1_postgresql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_management_v1_postgresql_proto_goTypes = []any{ + (*AddPostgreSQLServiceParams)(nil), // 0: management.v1.AddPostgreSQLServiceParams + (*PostgreSQLServiceResult)(nil), // 1: management.v1.PostgreSQLServiceResult + nil, // 2: management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.PostgreSQLService)(nil), // 6: inventory.v1.PostgreSQLService + (*v1.PostgresExporter)(nil), // 7: inventory.v1.PostgresExporter + (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 8: inventory.v1.QANPostgreSQLPgStatementsAgent + (*v1.QANPostgreSQLPgStatMonitorAgent)(nil), // 9: inventory.v1.QANPostgreSQLPgStatMonitorAgent + } +) + var file_management_v1_postgresql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddPostgreSQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddPostgreSQLServiceParams.custom_labels:type_name -> management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/proxysql.pb.go b/api/management/v1/proxysql.pb.go index b7812ea753b..4fb7c555edd 100644 --- a/api/management/v1/proxysql.pb.go +++ b/api/management/v1/proxysql.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -368,17 +370,20 @@ func file_management_v1_proxysql_proto_rawDescGZIP() []byte { return file_management_v1_proxysql_proto_rawDescData } -var file_management_v1_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_management_v1_proxysql_proto_goTypes = []any{ - (*AddProxySQLServiceParams)(nil), // 0: management.v1.AddProxySQLServiceParams - (*ProxySQLServiceResult)(nil), // 1: management.v1.ProxySQLServiceResult - nil, // 2: management.v1.AddProxySQLServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode - (v1.LogLevel)(0), // 5: inventory.v1.LogLevel - (*v1.ProxySQLService)(nil), // 6: inventory.v1.ProxySQLService - (*v1.ProxySQLExporter)(nil), // 7: inventory.v1.ProxySQLExporter -} +var ( + file_management_v1_proxysql_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_management_v1_proxysql_proto_goTypes = []any{ + (*AddProxySQLServiceParams)(nil), // 0: management.v1.AddProxySQLServiceParams + (*ProxySQLServiceResult)(nil), // 1: management.v1.ProxySQLServiceResult + nil, // 2: management.v1.AddProxySQLServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.ProxySQLService)(nil), // 6: inventory.v1.ProxySQLService + (*v1.ProxySQLExporter)(nil), // 7: inventory.v1.ProxySQLExporter + } +) + var file_management_v1_proxysql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddProxySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddProxySQLServiceParams.custom_labels:type_name -> management.v1.AddProxySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/rds.pb.go b/api/management/v1/rds.pb.go index a630ff2c94d..a1b60d935a5 100644 --- a/api/management/v1/rds.pb.go +++ b/api/management/v1/rds.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -818,26 +820,29 @@ func file_management_v1_rds_proto_rawDescGZIP() []byte { return file_management_v1_rds_proto_rawDescData } -var file_management_v1_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_management_v1_rds_proto_goTypes = []any{ - (DiscoverRDSEngine)(0), // 0: management.v1.DiscoverRDSEngine - (*DiscoverRDSInstance)(nil), // 1: management.v1.DiscoverRDSInstance - (*DiscoverRDSRequest)(nil), // 2: management.v1.DiscoverRDSRequest - (*DiscoverRDSResponse)(nil), // 3: management.v1.DiscoverRDSResponse - (*AddRDSServiceParams)(nil), // 4: management.v1.AddRDSServiceParams - (*RDSServiceResult)(nil), // 5: management.v1.RDSServiceResult - nil, // 6: management.v1.AddRDSServiceParams.CustomLabelsEntry - (MetricsMode)(0), // 7: management.v1.MetricsMode - (*v1.RemoteRDSNode)(nil), // 8: inventory.v1.RemoteRDSNode - (*v1.RDSExporter)(nil), // 9: inventory.v1.RDSExporter - (*v1.MySQLService)(nil), // 10: inventory.v1.MySQLService - (*v1.MySQLdExporter)(nil), // 11: inventory.v1.MySQLdExporter - (*v1.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.v1.QANMySQLPerfSchemaAgent - (*v1.PostgreSQLService)(nil), // 13: inventory.v1.PostgreSQLService - (*v1.PostgresExporter)(nil), // 14: inventory.v1.PostgresExporter - (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.v1.QANPostgreSQLPgStatementsAgent -} +var ( + file_management_v1_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_management_v1_rds_proto_goTypes = []any{ + (DiscoverRDSEngine)(0), // 0: management.v1.DiscoverRDSEngine + (*DiscoverRDSInstance)(nil), // 1: management.v1.DiscoverRDSInstance + (*DiscoverRDSRequest)(nil), // 2: management.v1.DiscoverRDSRequest + (*DiscoverRDSResponse)(nil), // 3: management.v1.DiscoverRDSResponse + (*AddRDSServiceParams)(nil), // 4: management.v1.AddRDSServiceParams + (*RDSServiceResult)(nil), // 5: management.v1.RDSServiceResult + nil, // 6: management.v1.AddRDSServiceParams.CustomLabelsEntry + (MetricsMode)(0), // 7: management.v1.MetricsMode + (*v1.RemoteRDSNode)(nil), // 8: inventory.v1.RemoteRDSNode + (*v1.RDSExporter)(nil), // 9: inventory.v1.RDSExporter + (*v1.MySQLService)(nil), // 10: inventory.v1.MySQLService + (*v1.MySQLdExporter)(nil), // 11: inventory.v1.MySQLdExporter + (*v1.QANMySQLPerfSchemaAgent)(nil), // 12: inventory.v1.QANMySQLPerfSchemaAgent + (*v1.PostgreSQLService)(nil), // 13: inventory.v1.PostgreSQLService + (*v1.PostgresExporter)(nil), // 14: inventory.v1.PostgresExporter + (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 15: inventory.v1.QANPostgreSQLPgStatementsAgent + } +) + var file_management_v1_rds_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverRDSInstance.engine:type_name -> management.v1.DiscoverRDSEngine 1, // 1: management.v1.DiscoverRDSResponse.rds_instances:type_name -> management.v1.DiscoverRDSInstance diff --git a/api/management/v1/service.pb.go b/api/management/v1/service.pb.go index 9bb541ec239..bcd139244d9 100644 --- a/api/management/v1/service.pb.go +++ b/api/management/v1/service.pb.go @@ -7,15 +7,17 @@ package managementv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - unsafe "unsafe" + + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -984,62 +986,65 @@ func file_management_v1_service_proto_rawDescGZIP() []byte { return file_management_v1_service_proto_rawDescData } -var file_management_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_management_v1_service_proto_goTypes = []any{ - (UniversalService_Status)(0), // 0: management.v1.UniversalService.Status - (*AddServiceRequest)(nil), // 1: management.v1.AddServiceRequest - (*AddServiceResponse)(nil), // 2: management.v1.AddServiceResponse - (*RemoveServiceRequest)(nil), // 3: management.v1.RemoveServiceRequest - (*RemoveServiceResponse)(nil), // 4: management.v1.RemoveServiceResponse - (*UniversalService)(nil), // 5: management.v1.UniversalService - (*ListServicesRequest)(nil), // 6: management.v1.ListServicesRequest - (*ListServicesResponse)(nil), // 7: management.v1.ListServicesResponse - nil, // 8: management.v1.UniversalService.CustomLabelsEntry - (*AddMySQLServiceParams)(nil), // 9: management.v1.AddMySQLServiceParams - (*AddMongoDBServiceParams)(nil), // 10: management.v1.AddMongoDBServiceParams - (*AddPostgreSQLServiceParams)(nil), // 11: management.v1.AddPostgreSQLServiceParams - (*AddProxySQLServiceParams)(nil), // 12: management.v1.AddProxySQLServiceParams - (*AddHAProxyServiceParams)(nil), // 13: management.v1.AddHAProxyServiceParams - (*AddExternalServiceParams)(nil), // 14: management.v1.AddExternalServiceParams - (*AddRDSServiceParams)(nil), // 15: management.v1.AddRDSServiceParams - (*AddValkeyServiceParams)(nil), // 16: management.v1.AddValkeyServiceParams - (*AddElastiCacheServiceParams)(nil), // 17: management.v1.AddElastiCacheServiceParams - (*MySQLServiceResult)(nil), // 18: management.v1.MySQLServiceResult - (*MongoDBServiceResult)(nil), // 19: management.v1.MongoDBServiceResult - (*PostgreSQLServiceResult)(nil), // 20: management.v1.PostgreSQLServiceResult - (*ProxySQLServiceResult)(nil), // 21: management.v1.ProxySQLServiceResult - (*HAProxyServiceResult)(nil), // 22: management.v1.HAProxyServiceResult - (*ExternalServiceResult)(nil), // 23: management.v1.ExternalServiceResult - (*RDSServiceResult)(nil), // 24: management.v1.RDSServiceResult - (*ValkeyServiceResult)(nil), // 25: management.v1.ValkeyServiceResult - (*ElastiCacheServiceResult)(nil), // 26: management.v1.ElastiCacheServiceResult - (v1.ServiceType)(0), // 27: inventory.v1.ServiceType - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp - (*UniversalAgent)(nil), // 29: management.v1.UniversalAgent - (*AddAnnotationRequest)(nil), // 30: management.v1.AddAnnotationRequest - (*ListAgentsRequest)(nil), // 31: management.v1.ListAgentsRequest - (*ListAgentVersionsRequest)(nil), // 32: management.v1.ListAgentVersionsRequest - (*RegisterNodeRequest)(nil), // 33: management.v1.RegisterNodeRequest - (*UnregisterNodeRequest)(nil), // 34: management.v1.UnregisterNodeRequest - (*ListNodesRequest)(nil), // 35: management.v1.ListNodesRequest - (*GetNodeRequest)(nil), // 36: management.v1.GetNodeRequest - (*DiscoverRDSRequest)(nil), // 37: management.v1.DiscoverRDSRequest - (*DiscoverAzureDatabaseRequest)(nil), // 38: management.v1.DiscoverAzureDatabaseRequest - (*AddAzureDatabaseRequest)(nil), // 39: management.v1.AddAzureDatabaseRequest - (*DiscoverElastiCacheRequest)(nil), // 40: management.v1.DiscoverElastiCacheRequest - (*AddAnnotationResponse)(nil), // 41: management.v1.AddAnnotationResponse - (*ListAgentsResponse)(nil), // 42: management.v1.ListAgentsResponse - (*ListAgentVersionsResponse)(nil), // 43: management.v1.ListAgentVersionsResponse - (*RegisterNodeResponse)(nil), // 44: management.v1.RegisterNodeResponse - (*UnregisterNodeResponse)(nil), // 45: management.v1.UnregisterNodeResponse - (*ListNodesResponse)(nil), // 46: management.v1.ListNodesResponse - (*GetNodeResponse)(nil), // 47: management.v1.GetNodeResponse - (*DiscoverRDSResponse)(nil), // 48: management.v1.DiscoverRDSResponse - (*DiscoverAzureDatabaseResponse)(nil), // 49: management.v1.DiscoverAzureDatabaseResponse - (*AddAzureDatabaseResponse)(nil), // 50: management.v1.AddAzureDatabaseResponse - (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse -} +var ( + file_management_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) + file_management_v1_service_proto_goTypes = []any{ + (UniversalService_Status)(0), // 0: management.v1.UniversalService.Status + (*AddServiceRequest)(nil), // 1: management.v1.AddServiceRequest + (*AddServiceResponse)(nil), // 2: management.v1.AddServiceResponse + (*RemoveServiceRequest)(nil), // 3: management.v1.RemoveServiceRequest + (*RemoveServiceResponse)(nil), // 4: management.v1.RemoveServiceResponse + (*UniversalService)(nil), // 5: management.v1.UniversalService + (*ListServicesRequest)(nil), // 6: management.v1.ListServicesRequest + (*ListServicesResponse)(nil), // 7: management.v1.ListServicesResponse + nil, // 8: management.v1.UniversalService.CustomLabelsEntry + (*AddMySQLServiceParams)(nil), // 9: management.v1.AddMySQLServiceParams + (*AddMongoDBServiceParams)(nil), // 10: management.v1.AddMongoDBServiceParams + (*AddPostgreSQLServiceParams)(nil), // 11: management.v1.AddPostgreSQLServiceParams + (*AddProxySQLServiceParams)(nil), // 12: management.v1.AddProxySQLServiceParams + (*AddHAProxyServiceParams)(nil), // 13: management.v1.AddHAProxyServiceParams + (*AddExternalServiceParams)(nil), // 14: management.v1.AddExternalServiceParams + (*AddRDSServiceParams)(nil), // 15: management.v1.AddRDSServiceParams + (*AddValkeyServiceParams)(nil), // 16: management.v1.AddValkeyServiceParams + (*AddElastiCacheServiceParams)(nil), // 17: management.v1.AddElastiCacheServiceParams + (*MySQLServiceResult)(nil), // 18: management.v1.MySQLServiceResult + (*MongoDBServiceResult)(nil), // 19: management.v1.MongoDBServiceResult + (*PostgreSQLServiceResult)(nil), // 20: management.v1.PostgreSQLServiceResult + (*ProxySQLServiceResult)(nil), // 21: management.v1.ProxySQLServiceResult + (*HAProxyServiceResult)(nil), // 22: management.v1.HAProxyServiceResult + (*ExternalServiceResult)(nil), // 23: management.v1.ExternalServiceResult + (*RDSServiceResult)(nil), // 24: management.v1.RDSServiceResult + (*ValkeyServiceResult)(nil), // 25: management.v1.ValkeyServiceResult + (*ElastiCacheServiceResult)(nil), // 26: management.v1.ElastiCacheServiceResult + (v1.ServiceType)(0), // 27: inventory.v1.ServiceType + (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp + (*UniversalAgent)(nil), // 29: management.v1.UniversalAgent + (*AddAnnotationRequest)(nil), // 30: management.v1.AddAnnotationRequest + (*ListAgentsRequest)(nil), // 31: management.v1.ListAgentsRequest + (*ListAgentVersionsRequest)(nil), // 32: management.v1.ListAgentVersionsRequest + (*RegisterNodeRequest)(nil), // 33: management.v1.RegisterNodeRequest + (*UnregisterNodeRequest)(nil), // 34: management.v1.UnregisterNodeRequest + (*ListNodesRequest)(nil), // 35: management.v1.ListNodesRequest + (*GetNodeRequest)(nil), // 36: management.v1.GetNodeRequest + (*DiscoverRDSRequest)(nil), // 37: management.v1.DiscoverRDSRequest + (*DiscoverAzureDatabaseRequest)(nil), // 38: management.v1.DiscoverAzureDatabaseRequest + (*AddAzureDatabaseRequest)(nil), // 39: management.v1.AddAzureDatabaseRequest + (*DiscoverElastiCacheRequest)(nil), // 40: management.v1.DiscoverElastiCacheRequest + (*AddAnnotationResponse)(nil), // 41: management.v1.AddAnnotationResponse + (*ListAgentsResponse)(nil), // 42: management.v1.ListAgentsResponse + (*ListAgentVersionsResponse)(nil), // 43: management.v1.ListAgentVersionsResponse + (*RegisterNodeResponse)(nil), // 44: management.v1.RegisterNodeResponse + (*UnregisterNodeResponse)(nil), // 45: management.v1.UnregisterNodeResponse + (*ListNodesResponse)(nil), // 46: management.v1.ListNodesResponse + (*GetNodeResponse)(nil), // 47: management.v1.GetNodeResponse + (*DiscoverRDSResponse)(nil), // 48: management.v1.DiscoverRDSResponse + (*DiscoverAzureDatabaseResponse)(nil), // 49: management.v1.DiscoverAzureDatabaseResponse + (*AddAzureDatabaseResponse)(nil), // 50: management.v1.AddAzureDatabaseResponse + (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse + } +) + var file_management_v1_service_proto_depIdxs = []int32{ 9, // 0: management.v1.AddServiceRequest.mysql:type_name -> management.v1.AddMySQLServiceParams 10, // 1: management.v1.AddServiceRequest.mongodb:type_name -> management.v1.AddMongoDBServiceParams diff --git a/api/management/v1/service_grpc.pb.go b/api/management/v1/service_grpc.pb.go index a9cfd7ed61a..21b6c95f4df 100644 --- a/api/management/v1/service_grpc.pb.go +++ b/api/management/v1/service_grpc.pb.go @@ -8,6 +8,7 @@ package managementv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -266,42 +267,55 @@ type UnimplementedManagementServiceServer struct{} func (UnimplementedManagementServiceServer) AddAnnotation(context.Context, *AddAnnotationRequest) (*AddAnnotationResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddAnnotation not implemented") } + func (UnimplementedManagementServiceServer) ListAgents(context.Context, *ListAgentsRequest) (*ListAgentsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAgents not implemented") } + func (UnimplementedManagementServiceServer) ListAgentVersions(context.Context, *ListAgentVersionsRequest) (*ListAgentVersionsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAgentVersions not implemented") } + func (UnimplementedManagementServiceServer) RegisterNode(context.Context, *RegisterNodeRequest) (*RegisterNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method RegisterNode not implemented") } + func (UnimplementedManagementServiceServer) UnregisterNode(context.Context, *UnregisterNodeRequest) (*UnregisterNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method UnregisterNode not implemented") } + func (UnimplementedManagementServiceServer) ListNodes(context.Context, *ListNodesRequest) (*ListNodesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListNodes not implemented") } + func (UnimplementedManagementServiceServer) GetNode(context.Context, *GetNodeRequest) (*GetNodeResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetNode not implemented") } + func (UnimplementedManagementServiceServer) AddService(context.Context, *AddServiceRequest) (*AddServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddService not implemented") } + func (UnimplementedManagementServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListServices not implemented") } + func (UnimplementedManagementServiceServer) DiscoverRDS(context.Context, *DiscoverRDSRequest) (*DiscoverRDSResponse, error) { return nil, status.Error(codes.Unimplemented, "method DiscoverRDS not implemented") } + func (UnimplementedManagementServiceServer) DiscoverAzureDatabase(context.Context, *DiscoverAzureDatabaseRequest) (*DiscoverAzureDatabaseResponse, error) { return nil, status.Error(codes.Unimplemented, "method DiscoverAzureDatabase not implemented") } + func (UnimplementedManagementServiceServer) AddAzureDatabase(context.Context, *AddAzureDatabaseRequest) (*AddAzureDatabaseResponse, error) { return nil, status.Error(codes.Unimplemented, "method AddAzureDatabase not implemented") } + func (UnimplementedManagementServiceServer) DiscoverElastiCache(context.Context, *DiscoverElastiCacheRequest) (*DiscoverElastiCacheResponse, error) { return nil, status.Error(codes.Unimplemented, "method DiscoverElastiCache not implemented") } + func (UnimplementedManagementServiceServer) RemoveService(context.Context, *RemoveServiceRequest) (*RemoveServiceResponse, error) { return nil, status.Error(codes.Unimplemented, "method RemoveService not implemented") } diff --git a/api/management/v1/severity.pb.go b/api/management/v1/severity.pb.go index dccdc65ddca..93408b544e2 100644 --- a/api/management/v1/severity.pb.go +++ b/api/management/v1/severity.pb.go @@ -7,11 +7,12 @@ package managementv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -118,10 +119,13 @@ func file_management_v1_severity_proto_rawDescGZIP() []byte { return file_management_v1_severity_proto_rawDescData } -var file_management_v1_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_management_v1_severity_proto_goTypes = []any{ - (Severity)(0), // 0: management.v1.Severity -} +var ( + file_management_v1_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_management_v1_severity_proto_goTypes = []any{ + (Severity)(0), // 0: management.v1.Severity + } +) + var file_management_v1_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/management/v1/valkey.pb.go b/api/management/v1/valkey.pb.go index 73a667aa8fe..c958071fa68 100644 --- a/api/management/v1/valkey.pb.go +++ b/api/management/v1/valkey.pb.go @@ -7,14 +7,16 @@ package managementv1 import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - _ "github.com/percona/pmm/api/extensions/v1" - v1 "github.com/percona/pmm/api/inventory/v1" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + _ "github.com/percona/pmm/api/extensions/v1" + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -390,17 +392,20 @@ func file_management_v1_valkey_proto_rawDescGZIP() []byte { return file_management_v1_valkey_proto_rawDescData } -var file_management_v1_valkey_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_management_v1_valkey_proto_goTypes = []any{ - (*AddValkeyServiceParams)(nil), // 0: management.v1.AddValkeyServiceParams - (*ValkeyServiceResult)(nil), // 1: management.v1.ValkeyServiceResult - nil, // 2: management.v1.AddValkeyServiceParams.CustomLabelsEntry - (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode - (v1.LogLevel)(0), // 5: inventory.v1.LogLevel - (*v1.ValkeyService)(nil), // 6: inventory.v1.ValkeyService - (*v1.ValkeyExporter)(nil), // 7: inventory.v1.ValkeyExporter -} +var ( + file_management_v1_valkey_proto_msgTypes = make([]protoimpl.MessageInfo, 3) + file_management_v1_valkey_proto_goTypes = []any{ + (*AddValkeyServiceParams)(nil), // 0: management.v1.AddValkeyServiceParams + (*ValkeyServiceResult)(nil), // 1: management.v1.ValkeyServiceResult + nil, // 2: management.v1.AddValkeyServiceParams.CustomLabelsEntry + (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams + (MetricsMode)(0), // 4: management.v1.MetricsMode + (v1.LogLevel)(0), // 5: inventory.v1.LogLevel + (*v1.ValkeyService)(nil), // 6: inventory.v1.ValkeyService + (*v1.ValkeyExporter)(nil), // 7: inventory.v1.ValkeyExporter + } +) + var file_management_v1_valkey_proto_depIdxs = []int32{ 3, // 0: management.v1.AddValkeyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddValkeyServiceParams.custom_labels:type_name -> management.v1.AddValkeyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/valkey.pb.validate.go b/api/management/v1/valkey.pb.validate.go index a2260070a98..55268da8d34 100644 --- a/api/management/v1/valkey.pb.validate.go +++ b/api/management/v1/valkey.pb.validate.go @@ -62,7 +62,6 @@ func (m *AddValkeyServiceParams) validate(all bool) error { var errors []error if m.GetNodeId() != "" { - if utf8.RuneCountInString(m.GetNodeId()) < 1 { err := AddValkeyServiceParamsValidationError{ field: "NodeId", @@ -73,11 +72,9 @@ func (m *AddValkeyServiceParams) validate(all bool) error { } errors = append(errors, err) } - } if m.GetNodeName() != "" { - if utf8.RuneCountInString(m.GetNodeName()) < 1 { err := AddValkeyServiceParamsValidationError{ field: "NodeName", @@ -88,7 +85,6 @@ func (m *AddValkeyServiceParams) validate(all bool) error { } errors = append(errors, err) } - } if all { diff --git a/api/qan/v1/collector.pb.go b/api/qan/v1/collector.pb.go index b53102e8a73..34b292da2f9 100644 --- a/api/qan/v1/collector.pb.go +++ b/api/qan/v1/collector.pb.go @@ -7,13 +7,15 @@ package qanv1 import ( - v1 "github.com/percona/pmm/api/inventory/v1" - _ "google.golang.org/genproto/googleapis/api/visibility" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "google.golang.org/genproto/googleapis/api/visibility" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -2741,17 +2743,20 @@ func file_qan_v1_collector_proto_rawDescGZIP() []byte { return file_qan_v1_collector_proto_rawDescData } -var file_qan_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_qan_v1_collector_proto_goTypes = []any{ - (*CollectRequest)(nil), // 0: qan.v1.CollectRequest - (*MetricsBucket)(nil), // 1: qan.v1.MetricsBucket - (*CollectResponse)(nil), // 2: qan.v1.CollectResponse - nil, // 3: qan.v1.MetricsBucket.LabelsEntry - nil, // 4: qan.v1.MetricsBucket.WarningsEntry - nil, // 5: qan.v1.MetricsBucket.ErrorsEntry - (v1.AgentType)(0), // 6: inventory.v1.AgentType - (ExampleType)(0), // 7: qan.v1.ExampleType -} +var ( + file_qan_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 6) + file_qan_v1_collector_proto_goTypes = []any{ + (*CollectRequest)(nil), // 0: qan.v1.CollectRequest + (*MetricsBucket)(nil), // 1: qan.v1.MetricsBucket + (*CollectResponse)(nil), // 2: qan.v1.CollectResponse + nil, // 3: qan.v1.MetricsBucket.LabelsEntry + nil, // 4: qan.v1.MetricsBucket.WarningsEntry + nil, // 5: qan.v1.MetricsBucket.ErrorsEntry + (v1.AgentType)(0), // 6: inventory.v1.AgentType + (ExampleType)(0), // 7: qan.v1.ExampleType + } +) + var file_qan_v1_collector_proto_depIdxs = []int32{ 1, // 0: qan.v1.CollectRequest.metrics_bucket:type_name -> qan.v1.MetricsBucket 6, // 1: qan.v1.MetricsBucket.agent_type:type_name -> inventory.v1.AgentType diff --git a/api/qan/v1/collector_grpc.pb.go b/api/qan/v1/collector_grpc.pb.go index 99faa76e1ce..e13e55d5599 100644 --- a/api/qan/v1/collector_grpc.pb.go +++ b/api/qan/v1/collector_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/qan/v1/filters.pb.go b/api/qan/v1/filters.pb.go index cffe93c4255..fcbf5e7aead 100644 --- a/api/qan/v1/filters.pb.go +++ b/api/qan/v1/filters.pb.go @@ -7,12 +7,13 @@ package qanv1 import ( - 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" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -280,16 +281,19 @@ func file_qan_v1_filters_proto_rawDescGZIP() []byte { return file_qan_v1_filters_proto_rawDescData } -var file_qan_v1_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_qan_v1_filters_proto_goTypes = []any{ - (*GetFilteredMetricsNamesRequest)(nil), // 0: qan.v1.GetFilteredMetricsNamesRequest - (*GetFilteredMetricsNamesResponse)(nil), // 1: qan.v1.GetFilteredMetricsNamesResponse - (*ListLabels)(nil), // 2: qan.v1.ListLabels - (*Values)(nil), // 3: qan.v1.Values - nil, // 4: qan.v1.GetFilteredMetricsNamesResponse.LabelsEntry - (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 6: qan.v1.MapFieldEntry -} +var ( + file_qan_v1_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 5) + file_qan_v1_filters_proto_goTypes = []any{ + (*GetFilteredMetricsNamesRequest)(nil), // 0: qan.v1.GetFilteredMetricsNamesRequest + (*GetFilteredMetricsNamesResponse)(nil), // 1: qan.v1.GetFilteredMetricsNamesResponse + (*ListLabels)(nil), // 2: qan.v1.ListLabels + (*Values)(nil), // 3: qan.v1.Values + nil, // 4: qan.v1.GetFilteredMetricsNamesResponse.LabelsEntry + (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 6: qan.v1.MapFieldEntry + } +) + var file_qan_v1_filters_proto_depIdxs = []int32{ 5, // 0: qan.v1.GetFilteredMetricsNamesRequest.period_start_from:type_name -> google.protobuf.Timestamp 5, // 1: qan.v1.GetFilteredMetricsNamesRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go index 0b477d3a710..5b2c7bf438c 100644 --- a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go +++ b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_parameters.go @@ -60,7 +60,6 @@ ExplainFingerprintByQueryIDParams contains all the parameters to send to the API Typically these are written to a http.Request. */ type ExplainFingerprintByQueryIDParams struct { - /* Body. ExplainFingerprintByQueryIDRequest get explain fingerprint for given query ID. @@ -133,7 +132,6 @@ func (o *ExplainFingerprintByQueryIDParams) SetBody(body ExplainFingerprintByQue // WriteToRequest writes these params to a swagger request func (o *ExplainFingerprintByQueryIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go index 274ea6b2639..55cf6802df7 100644 --- a/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go +++ b/api/qan/v1/json/client/qan_service/explain_fingerprint_by_query_id_responses.go @@ -104,7 +104,6 @@ func (o *ExplainFingerprintByQueryIDOK) GetPayload() *ExplainFingerprintByQueryI } func (o *ExplainFingerprintByQueryIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ExplainFingerprintByQueryIDOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ExplainFingerprintByQueryIDDefault) GetPayload() *ExplainFingerprintByQ } func (o *ExplainFingerprintByQueryIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ExplainFingerprintByQueryIDDefaultBody) // response payload @@ -194,7 +192,6 @@ ExplainFingerprintByQueryIDBody ExplainFingerprintByQueryIDRequest get explain f swagger:model ExplainFingerprintByQueryIDBody */ type ExplainFingerprintByQueryIDBody struct { - // serviceid Serviceid string `json:"serviceid,omitempty"` @@ -235,7 +232,6 @@ ExplainFingerprintByQueryIDDefaultBody explain fingerprint by query ID default b swagger:model ExplainFingerprintByQueryIDDefaultBody */ type ExplainFingerprintByQueryIDDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -305,9 +301,7 @@ func (o *ExplainFingerprintByQueryIDDefaultBody) ContextValidate(ctx context.Con } func (o *ExplainFingerprintByQueryIDDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -327,7 +321,6 @@ func (o *ExplainFingerprintByQueryIDDefaultBody) contextValidateDetails(ctx cont return err } } - } return nil @@ -356,7 +349,6 @@ ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 explain fingerprint by query swagger:model ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 */ type ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -368,7 +360,6 @@ type ExplainFingerprintByQueryIDDefaultBodyDetailsItems0 struct { func (o *ExplainFingerprintByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -406,7 +397,6 @@ func (o *ExplainFingerprintByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data // MarshalJSON marshals this object with additional properties into a JSON object func (o ExplainFingerprintByQueryIDDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -470,7 +460,6 @@ ExplainFingerprintByQueryIDOKBody ExplainFingerprintByQueryIDResponse is explain swagger:model ExplainFingerprintByQueryIDOKBody */ type ExplainFingerprintByQueryIDOKBody struct { - // explain fingerprint ExplainFingerprint string `json:"explain_fingerprint,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go index 14be6f6c2d3..7b377ad61a2 100644 --- a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go +++ b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_parameters.go @@ -60,7 +60,6 @@ GetFilteredMetricsNamesParams contains all the parameters to send to the API end Typically these are written to a http.Request. */ type GetFilteredMetricsNamesParams struct { - /* Body. GetFilteredMetricsNamesRequest contains period for which we need filters. @@ -133,7 +132,6 @@ func (o *GetFilteredMetricsNamesParams) SetBody(body GetFilteredMetricsNamesBody // WriteToRequest writes these params to a swagger request func (o *GetFilteredMetricsNamesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go index 04715b23a5b..2d3c57609d7 100644 --- a/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go +++ b/api/qan/v1/json/client/qan_service/get_filtered_metrics_names_responses.go @@ -105,7 +105,6 @@ func (o *GetFilteredMetricsNamesOK) GetPayload() *GetFilteredMetricsNamesOKBody } func (o *GetFilteredMetricsNamesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetFilteredMetricsNamesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetFilteredMetricsNamesDefault) GetPayload() *GetFilteredMetricsNamesDe } func (o *GetFilteredMetricsNamesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetFilteredMetricsNamesDefaultBody) // response payload @@ -195,7 +193,6 @@ GetFilteredMetricsNamesBody GetFilteredMetricsNamesRequest contains period for w swagger:model GetFilteredMetricsNamesBody */ type GetFilteredMetricsNamesBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -302,9 +299,7 @@ func (o *GetFilteredMetricsNamesBody) ContextValidate(ctx context.Context, forma } func (o *GetFilteredMetricsNamesBody) contextValidateLabels(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Labels); i++ { - if o.Labels[i] != nil { if swag.IsZero(o.Labels[i]) { // not required @@ -324,7 +319,6 @@ func (o *GetFilteredMetricsNamesBody) contextValidateLabels(ctx context.Context, return err } } - } return nil @@ -353,7 +347,6 @@ GetFilteredMetricsNamesDefaultBody get filtered metrics names default body swagger:model GetFilteredMetricsNamesDefaultBody */ type GetFilteredMetricsNamesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -423,9 +416,7 @@ func (o *GetFilteredMetricsNamesDefaultBody) ContextValidate(ctx context.Context } func (o *GetFilteredMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -445,7 +436,6 @@ func (o *GetFilteredMetricsNamesDefaultBody) contextValidateDetails(ctx context. return err } } - } return nil @@ -474,7 +464,6 @@ GetFilteredMetricsNamesDefaultBodyDetailsItems0 get filtered metrics names defau swagger:model GetFilteredMetricsNamesDefaultBodyDetailsItems0 */ type GetFilteredMetricsNamesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -486,7 +475,6 @@ type GetFilteredMetricsNamesDefaultBodyDetailsItems0 struct { func (o *GetFilteredMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -524,7 +512,6 @@ func (o *GetFilteredMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []b // MarshalJSON marshals this object with additional properties into a JSON object func (o GetFilteredMetricsNamesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -589,7 +576,6 @@ GetFilteredMetricsNamesOKBody GetFilteredMetricsNamesResponse is map of labels f swagger:model GetFilteredMetricsNamesOKBody */ type GetFilteredMetricsNamesOKBody struct { - // labels Labels map[string]GetFilteredMetricsNamesOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -653,15 +639,12 @@ func (o *GetFilteredMetricsNamesOKBody) ContextValidate(ctx context.Context, for } func (o *GetFilteredMetricsNamesOKBody) 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 @@ -690,7 +673,6 @@ GetFilteredMetricsNamesOKBodyLabelsAnon ListLabels is list of label's values: du swagger:model GetFilteredMetricsNamesOKBodyLabelsAnon */ type GetFilteredMetricsNamesOKBodyLabelsAnon struct { - // name Name []*GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 `json:"name"` } @@ -754,9 +736,7 @@ func (o *GetFilteredMetricsNamesOKBodyLabelsAnon) ContextValidate(ctx context.Co } func (o *GetFilteredMetricsNamesOKBodyLabelsAnon) contextValidateName(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Name); i++ { - if o.Name[i] != nil { if swag.IsZero(o.Name[i]) { // not required @@ -776,7 +756,6 @@ func (o *GetFilteredMetricsNamesOKBodyLabelsAnon) contextValidateName(ctx contex return err } } - } return nil @@ -805,7 +784,6 @@ GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 Values is label values and mai swagger:model GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 */ type GetFilteredMetricsNamesOKBodyLabelsAnonNameItems0 struct { - // value Value string `json:"value,omitempty"` @@ -849,7 +827,6 @@ GetFilteredMetricsNamesParamsBodyLabelsItems0 MapFieldEntry allows to pass label swagger:model GetFilteredMetricsNamesParamsBodyLabelsItems0 */ type GetFilteredMetricsNamesParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_histogram_parameters.go b/api/qan/v1/json/client/qan_service/get_histogram_parameters.go index a86298f9918..273d1c7ba35 100644 --- a/api/qan/v1/json/client/qan_service/get_histogram_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetHistogramRequest 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/qan/v1/json/client/qan_service/get_histogram_responses.go b/api/qan/v1/json/client/qan_service/get_histogram_responses.go index 877b05e32d6..6bb68146f35 100644 --- a/api/qan/v1/json/client/qan_service/get_histogram_responses.go +++ b/api/qan/v1/json/client/qan_service/get_histogram_responses.go @@ -105,7 +105,6 @@ func (o *GetHistogramOK) GetPayload() *GetHistogramOKBody { } func (o *GetHistogramOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetHistogramOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetHistogramDefault) GetPayload() *GetHistogramDefaultBody { } func (o *GetHistogramDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetHistogramDefaultBody) // response payload @@ -195,7 +193,6 @@ GetHistogramBody GetHistogramRequest defines filtering by time range, labels and swagger:model GetHistogramBody */ type GetHistogramBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -302,9 +299,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 swag.IsZero(o.Labels[i]) { // not required @@ -324,7 +319,6 @@ func (o *GetHistogramBody) contextValidateLabels(ctx context.Context, formats st return err } } - } return nil @@ -353,7 +347,6 @@ GetHistogramDefaultBody get histogram default body swagger:model GetHistogramDefaultBody */ type GetHistogramDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -423,9 +416,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 swag.IsZero(o.Details[i]) { // not required @@ -445,7 +436,6 @@ func (o *GetHistogramDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -474,7 +464,6 @@ GetHistogramDefaultBodyDetailsItems0 get histogram default body details items0 swagger:model GetHistogramDefaultBodyDetailsItems0 */ type GetHistogramDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -486,7 +475,6 @@ type GetHistogramDefaultBodyDetailsItems0 struct { func (o *GetHistogramDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -524,7 +512,6 @@ func (o *GetHistogramDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetHistogramDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -588,7 +575,6 @@ GetHistogramOKBody GetHistogramResponse is histogram items as a list. swagger:model GetHistogramOKBody */ type GetHistogramOKBody struct { - // histogram items HistogramItems []*GetHistogramOKBodyHistogramItemsItems0 `json:"histogram_items"` } @@ -652,9 +638,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 swag.IsZero(o.HistogramItems[i]) { // not required @@ -674,7 +658,6 @@ func (o *GetHistogramOKBody) contextValidateHistogramItems(ctx context.Context, return err } } - } return nil @@ -703,7 +686,6 @@ GetHistogramOKBodyHistogramItemsItems0 HistogramItem represents one item in hist swagger:model GetHistogramOKBodyHistogramItemsItems0 */ type GetHistogramOKBodyHistogramItemsItems0 struct { - // range Range string `json:"range,omitempty"` @@ -744,7 +726,6 @@ GetHistogramParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimension swagger:model GetHistogramParamsBodyLabelsItems0 */ type GetHistogramParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_labels_parameters.go b/api/qan/v1/json/client/qan_service/get_labels_parameters.go index 946aabc1dc4..ebf388c1281 100644 --- a/api/qan/v1/json/client/qan_service/get_labels_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetLabelsRequest 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/qan/v1/json/client/qan_service/get_labels_responses.go b/api/qan/v1/json/client/qan_service/get_labels_responses.go index c193d4132bf..7425ccfc09c 100644 --- a/api/qan/v1/json/client/qan_service/get_labels_responses.go +++ b/api/qan/v1/json/client/qan_service/get_labels_responses.go @@ -105,7 +105,6 @@ func (o *GetLabelsOK) GetPayload() *GetLabelsOKBody { } func (o *GetLabelsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLabelsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetLabelsDefault) GetPayload() *GetLabelsDefaultBody { } func (o *GetLabelsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetLabelsDefaultBody) // response payload @@ -196,7 +194,6 @@ GetLabelsBody GetLabelsRequest defines filtering of object detail's labels for s swagger:model GetLabelsBody */ type GetLabelsBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -282,7 +279,6 @@ GetLabelsDefaultBody get labels default body swagger:model GetLabelsDefaultBody */ type GetLabelsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -352,9 +348,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 swag.IsZero(o.Details[i]) { // not required @@ -374,7 +368,6 @@ func (o *GetLabelsDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -403,7 +396,6 @@ GetLabelsDefaultBodyDetailsItems0 get labels default body details items0 swagger:model GetLabelsDefaultBodyDetailsItems0 */ type GetLabelsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -415,7 +407,6 @@ type GetLabelsDefaultBodyDetailsItems0 struct { func (o *GetLabelsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -453,7 +444,6 @@ func (o *GetLabelsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetLabelsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -517,7 +507,6 @@ GetLabelsOKBody GetLabelsResponse is a map of labels names as keys and labels va swagger:model GetLabelsOKBody */ type GetLabelsOKBody struct { - // labels Labels map[string]GetLabelsOKBodyLabelsAnon `json:"labels,omitempty"` } @@ -581,15 +570,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 @@ -618,7 +604,6 @@ GetLabelsOKBodyLabelsAnon ListLabelValues is list of label's values. swagger:model GetLabelsOKBodyLabelsAnon */ type GetLabelsOKBodyLabelsAnon struct { - // values Values []string `json:"values"` } diff --git a/api/qan/v1/json/client/qan_service/get_metrics_names_parameters.go b/api/qan/v1/json/client/qan_service/get_metrics_names_parameters.go index 2872b797b52..eda3e3369e0 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_names_parameters.go +++ b/api/qan/v1/json/client/qan_service/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 empty. @@ -133,7 +132,6 @@ func (o *GetMetricsNamesParams) SetBody(body any) { // 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/qan/v1/json/client/qan_service/get_metrics_names_responses.go b/api/qan/v1/json/client/qan_service/get_metrics_names_responses.go index d345b84a2b6..e59b8c2e83c 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_names_responses.go +++ b/api/qan/v1/json/client/qan_service/get_metrics_names_responses.go @@ -104,7 +104,6 @@ func (o *GetMetricsNamesOK) GetPayload() *GetMetricsNamesOKBody { } func (o *GetMetricsNamesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsNamesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetMetricsNamesDefault) GetPayload() *GetMetricsNamesDefaultBody { } func (o *GetMetricsNamesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsNamesDefaultBody) // response payload @@ -194,7 +192,6 @@ GetMetricsNamesDefaultBody get metrics names default body swagger:model GetMetricsNamesDefaultBody */ type GetMetricsNamesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetMetricsNamesDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -315,7 +309,6 @@ GetMetricsNamesDefaultBodyDetailsItems0 get metrics names default body details i swagger:model GetMetricsNamesDefaultBodyDetailsItems0 */ type GetMetricsNamesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetMetricsNamesDefaultBodyDetailsItems0 struct { func (o *GetMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetMetricsNamesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o GetMetricsNamesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -431,7 +422,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/qan/v1/json/client/qan_service/get_metrics_parameters.go b/api/qan/v1/json/client/qan_service/get_metrics_parameters.go index 66539066340..65e95eae003 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetMetricsRequest 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/qan/v1/json/client/qan_service/get_metrics_responses.go b/api/qan/v1/json/client/qan_service/get_metrics_responses.go index ed797c55ae3..0577b0b8431 100644 --- a/api/qan/v1/json/client/qan_service/get_metrics_responses.go +++ b/api/qan/v1/json/client/qan_service/get_metrics_responses.go @@ -105,7 +105,6 @@ func (o *GetMetricsOK) GetPayload() *GetMetricsOKBody { } func (o *GetMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetMetricsDefault) GetPayload() *GetMetricsDefaultBody { } func (o *GetMetricsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetMetricsDefaultBody) // response payload @@ -195,7 +193,6 @@ GetMetricsBody GetMetricsRequest defines filtering of metrics for specific value swagger:model GetMetricsBody */ type GetMetricsBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -311,9 +308,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 swag.IsZero(o.Labels[i]) { // not required @@ -333,7 +328,6 @@ func (o *GetMetricsBody) contextValidateLabels(ctx context.Context, formats strf return err } } - } return nil @@ -362,7 +356,6 @@ GetMetricsDefaultBody get metrics default body swagger:model GetMetricsDefaultBody */ type GetMetricsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -432,9 +425,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 swag.IsZero(o.Details[i]) { // not required @@ -454,7 +445,6 @@ func (o *GetMetricsDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -483,7 +473,6 @@ GetMetricsDefaultBodyDetailsItems0 get metrics default body details items0 swagger:model GetMetricsDefaultBodyDetailsItems0 */ type GetMetricsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -495,7 +484,6 @@ type GetMetricsDefaultBodyDetailsItems0 struct { func (o *GetMetricsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -533,7 +521,6 @@ func (o *GetMetricsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetMetricsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -597,7 +584,6 @@ GetMetricsOKBody GetMetricsResponse defines metrics for specific value of dimens swagger:model GetMetricsOKBody */ type GetMetricsOKBody struct { - // metrics Metrics map[string]GetMetricsOKBodyMetricsAnon `json:"metrics,omitempty"` @@ -783,24 +769,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 swag.IsZero(o.Sparkline[i]) { // not required @@ -820,29 +801,24 @@ 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 } func (o *GetMetricsOKBody) contextValidateMetadata(ctx context.Context, formats strfmt.Registry) error { - if o.Metadata != nil { if swag.IsZero(o.Metadata) { // not required @@ -889,7 +865,6 @@ GetMetricsOKBodyMetadata GetSlecetedQueryMetadataResponse consists selected quer swagger:model GetMetricsOKBodyMetadata */ type GetMetricsOKBodyMetadata struct { - // service name ServiceName string `json:"service_name,omitempty"` @@ -960,7 +935,6 @@ GetMetricsOKBodyMetricsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyMetricsAnon */ type GetMetricsOKBodyMetricsAnon struct { - // rate Rate float32 `json:"rate,omitempty"` @@ -1020,7 +994,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"` @@ -1292,7 +1265,6 @@ GetMetricsOKBodyTotalsAnon MetricValues is statistics of specific metric. swagger:model GetMetricsOKBodyTotalsAnon */ type GetMetricsOKBodyTotalsAnon struct { - // rate Rate float32 `json:"rate,omitempty"` @@ -1351,7 +1323,6 @@ GetMetricsParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimensions swagger:model GetMetricsParamsBodyLabelsItems0 */ type GetMetricsParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_query_example_parameters.go b/api/qan/v1/json/client/qan_service/get_query_example_parameters.go index 2d400fd9bb5..7757bae1c9c 100644 --- a/api/qan/v1/json/client/qan_service/get_query_example_parameters.go +++ b/api/qan/v1/json/client/qan_service/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. GetQueryExampleRequest 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/qan/v1/json/client/qan_service/get_query_example_responses.go b/api/qan/v1/json/client/qan_service/get_query_example_responses.go index 28dedc56567..a9ffcad7993 100644 --- a/api/qan/v1/json/client/qan_service/get_query_example_responses.go +++ b/api/qan/v1/json/client/qan_service/get_query_example_responses.go @@ -105,7 +105,6 @@ func (o *GetQueryExampleOK) GetPayload() *GetQueryExampleOKBody { } func (o *GetQueryExampleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryExampleOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetQueryExampleDefault) GetPayload() *GetQueryExampleDefaultBody { } func (o *GetQueryExampleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryExampleDefaultBody) // response payload @@ -196,7 +194,6 @@ GetQueryExampleBody GetQueryExampleRequest defines filtering of query examples f swagger:model GetQueryExampleBody */ type GetQueryExampleBody struct { - // period start from // Format: date-time PeriodStartFrom strfmt.DateTime `json:"period_start_from,omitempty"` @@ -309,9 +306,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 swag.IsZero(o.Labels[i]) { // not required @@ -331,7 +326,6 @@ func (o *GetQueryExampleBody) contextValidateLabels(ctx context.Context, formats return err } } - } return nil @@ -360,7 +354,6 @@ GetQueryExampleDefaultBody get query example default body swagger:model GetQueryExampleDefaultBody */ type GetQueryExampleDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -430,9 +423,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 swag.IsZero(o.Details[i]) { // not required @@ -452,7 +443,6 @@ func (o *GetQueryExampleDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -481,7 +471,6 @@ GetQueryExampleDefaultBodyDetailsItems0 get query example default body details i swagger:model GetQueryExampleDefaultBodyDetailsItems0 */ type GetQueryExampleDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -493,7 +482,6 @@ type GetQueryExampleDefaultBodyDetailsItems0 struct { func (o *GetQueryExampleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -531,7 +519,6 @@ func (o *GetQueryExampleDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o GetQueryExampleDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -595,7 +582,6 @@ GetQueryExampleOKBody GetQueryExampleResponse list of query examples. swagger:model GetQueryExampleOKBody */ type GetQueryExampleOKBody struct { - // query examples QueryExamples []*GetQueryExampleOKBodyQueryExamplesItems0 `json:"query_examples"` } @@ -659,9 +645,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 swag.IsZero(o.QueryExamples[i]) { // not required @@ -681,7 +665,6 @@ func (o *GetQueryExampleOKBody) contextValidateQueryExamples(ctx context.Context return err } } - } return nil @@ -710,7 +693,6 @@ GetQueryExampleOKBodyQueryExamplesItems0 QueryExample shows query examples and t swagger:model GetQueryExampleOKBodyQueryExamplesItems0 */ type GetQueryExampleOKBodyQueryExamplesItems0 struct { - // example Example string `json:"example,omitempty"` @@ -839,7 +821,6 @@ GetQueryExampleParamsBodyLabelsItems0 MapFieldEntry allows to pass labels/dimens swagger:model GetQueryExampleParamsBodyLabelsItems0 */ type GetQueryExampleParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_query_plan_parameters.go b/api/qan/v1/json/client/qan_service/get_query_plan_parameters.go index 367e78a912c..3d949920218 100644 --- a/api/qan/v1/json/client/qan_service/get_query_plan_parameters.go +++ b/api/qan/v1/json/client/qan_service/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 { - // Queryid. Queryid string @@ -130,7 +129,6 @@ func (o *GetQueryPlanParams) SetQueryid(queryid string) { // 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/qan/v1/json/client/qan_service/get_query_plan_responses.go b/api/qan/v1/json/client/qan_service/get_query_plan_responses.go index cb82ef45379..a5d3157a37a 100644 --- a/api/qan/v1/json/client/qan_service/get_query_plan_responses.go +++ b/api/qan/v1/json/client/qan_service/get_query_plan_responses.go @@ -104,7 +104,6 @@ func (o *GetQueryPlanOK) GetPayload() *GetQueryPlanOKBody { } func (o *GetQueryPlanOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryPlanOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetQueryPlanDefault) GetPayload() *GetQueryPlanDefaultBody { } func (o *GetQueryPlanDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetQueryPlanDefaultBody) // response payload @@ -194,7 +192,6 @@ GetQueryPlanDefaultBody get query plan default body swagger:model GetQueryPlanDefaultBody */ type GetQueryPlanDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetQueryPlanDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -315,7 +309,6 @@ GetQueryPlanDefaultBodyDetailsItems0 get query plan default body details items0 swagger:model GetQueryPlanDefaultBodyDetailsItems0 */ type GetQueryPlanDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type GetQueryPlanDefaultBodyDetailsItems0 struct { func (o *GetQueryPlanDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *GetQueryPlanDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o GetQueryPlanDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ GetQueryPlanOKBody GetQueryPlanResponse contains planid and query_plan. swagger:model GetQueryPlanOKBody */ type GetQueryPlanOKBody struct { - // planid Planid string `json:"planid,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/get_report_parameters.go b/api/qan/v1/json/client/qan_service/get_report_parameters.go index 69d495bc6b9..41494719a45 100644 --- a/api/qan/v1/json/client/qan_service/get_report_parameters.go +++ b/api/qan/v1/json/client/qan_service/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/qan/v1/json/client/qan_service/get_report_responses.go b/api/qan/v1/json/client/qan_service/get_report_responses.go index 8e3fb8d7272..f6661b19771 100644 --- a/api/qan/v1/json/client/qan_service/get_report_responses.go +++ b/api/qan/v1/json/client/qan_service/get_report_responses.go @@ -105,7 +105,6 @@ func (o *GetReportOK) GetPayload() *GetReportOKBody { } func (o *GetReportOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetReportOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetReportDefault) GetPayload() *GetReportDefaultBody { } func (o *GetReportDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetReportDefaultBody) // response payload @@ -195,7 +193,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"` @@ -320,9 +317,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 swag.IsZero(o.Labels[i]) { // not required @@ -342,7 +337,6 @@ func (o *GetReportBody) contextValidateLabels(ctx context.Context, formats strfm return err } } - } return nil @@ -371,7 +365,6 @@ GetReportDefaultBody get report default body swagger:model GetReportDefaultBody */ type GetReportDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -441,9 +434,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 swag.IsZero(o.Details[i]) { // not required @@ -463,7 +454,6 @@ func (o *GetReportDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -492,7 +482,6 @@ GetReportDefaultBodyDetailsItems0 get report default body details items0 swagger:model GetReportDefaultBodyDetailsItems0 */ type GetReportDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -504,7 +493,6 @@ type GetReportDefaultBodyDetailsItems0 struct { func (o *GetReportDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -542,7 +530,6 @@ func (o *GetReportDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetReportDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -606,7 +593,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"` @@ -679,9 +665,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 swag.IsZero(o.Rows[i]) { // not required @@ -701,7 +685,6 @@ func (o *GetReportOKBody) contextValidateRows(ctx context.Context, formats strfm return err } } - } return nil @@ -730,7 +713,6 @@ GetReportOKBodyRowsItems0 Row define metrics for selected dimention. swagger:model GetReportOKBodyRowsItems0 */ type GetReportOKBodyRowsItems0 struct { - // rank Rank int64 `json:"rank,omitempty"` @@ -856,24 +838,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 swag.IsZero(o.Sparkline[i]) { // not required @@ -893,7 +870,6 @@ func (o *GetReportOKBodyRowsItems0) contextValidateSparkline(ctx context.Context return err } } - } return nil @@ -922,7 +898,6 @@ GetReportOKBodyRowsItems0MetricsAnon Metric cell. swagger:model GetReportOKBodyRowsItems0MetricsAnon */ type GetReportOKBodyRowsItems0MetricsAnon struct { - // stats Stats *GetReportOKBodyRowsItems0MetricsAnonStats `json:"stats,omitempty"` } @@ -979,7 +954,6 @@ func (o *GetReportOKBodyRowsItems0MetricsAnon) ContextValidate(ctx context.Conte } func (o *GetReportOKBodyRowsItems0MetricsAnon) contextValidateStats(ctx context.Context, formats strfmt.Registry) error { - if o.Stats != nil { if swag.IsZero(o.Stats) { // not required @@ -1026,7 +1000,6 @@ GetReportOKBodyRowsItems0MetricsAnonStats Stat is statistics of specific metric. swagger:model GetReportOKBodyRowsItems0MetricsAnonStats */ type GetReportOKBodyRowsItems0MetricsAnonStats struct { - // rate Rate float32 `json:"rate,omitempty"` @@ -1086,7 +1059,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"` @@ -1358,7 +1330,6 @@ GetReportParamsBodyLabelsItems0 ReportMapFieldEntry allows to pass labels/diment swagger:model GetReportParamsBodyLabelsItems0 */ type GetReportParamsBodyLabelsItems0 struct { - // key Key string `json:"key,omitempty"` diff --git a/api/qan/v1/json/client/qan_service/health_check_parameters.go b/api/qan/v1/json/client/qan_service/health_check_parameters.go index 5aa3423e42e..d7e15d2d7bb 100644 --- a/api/qan/v1/json/client/qan_service/health_check_parameters.go +++ b/api/qan/v1/json/client/qan_service/health_check_parameters.go @@ -115,7 +115,6 @@ func (o *HealthCheckParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *HealthCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/health_check_responses.go b/api/qan/v1/json/client/qan_service/health_check_responses.go index deed50d8786..7ba2cf47eb3 100644 --- a/api/qan/v1/json/client/qan_service/health_check_responses.go +++ b/api/qan/v1/json/client/qan_service/health_check_responses.go @@ -104,7 +104,6 @@ func (o *HealthCheckOK) GetPayload() any { } func (o *HealthCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *HealthCheckDefault) GetPayload() *HealthCheckDefaultBody { } func (o *HealthCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(HealthCheckDefaultBody) // response payload @@ -192,7 +190,6 @@ HealthCheckDefaultBody health check default body swagger:model HealthCheckDefaultBody */ type HealthCheckDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,7 @@ func (o *HealthCheckDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *HealthCheckDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *HealthCheckDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -313,7 +307,6 @@ HealthCheckDefaultBodyDetailsItems0 health check default body details items0 swagger:model HealthCheckDefaultBodyDetailsItems0 */ type HealthCheckDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -325,7 +318,6 @@ type HealthCheckDefaultBodyDetailsItems0 struct { func (o *HealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -363,7 +355,6 @@ func (o *HealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o HealthCheckDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/qan/v1/json/client/qan_service/query_exists_parameters.go b/api/qan/v1/json/client/qan_service/query_exists_parameters.go index 21422ff17cc..7650af6a9df 100644 --- a/api/qan/v1/json/client/qan_service/query_exists_parameters.go +++ b/api/qan/v1/json/client/qan_service/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/qan/v1/json/client/qan_service/query_exists_responses.go b/api/qan/v1/json/client/qan_service/query_exists_responses.go index 589881f3c9f..a6e036b1d42 100644 --- a/api/qan/v1/json/client/qan_service/query_exists_responses.go +++ b/api/qan/v1/json/client/qan_service/query_exists_responses.go @@ -104,7 +104,6 @@ func (o *QueryExistsOK) GetPayload() *QueryExistsOKBody { } func (o *QueryExistsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(QueryExistsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *QueryExistsDefault) GetPayload() *QueryExistsDefaultBody { } func (o *QueryExistsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(QueryExistsDefaultBody) // response payload @@ -194,7 +192,6 @@ QueryExistsBody QueryExistsRequest check if provided query exists or not. swagger:model QueryExistsBody */ type QueryExistsBody struct { - // serviceid Serviceid string `json:"serviceid,omitempty"` @@ -235,7 +232,6 @@ QueryExistsDefaultBody query exists default body swagger:model QueryExistsDefaultBody */ type QueryExistsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -305,9 +301,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 swag.IsZero(o.Details[i]) { // not required @@ -327,7 +321,6 @@ func (o *QueryExistsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -356,7 +349,6 @@ QueryExistsDefaultBodyDetailsItems0 query exists default body details items0 swagger:model QueryExistsDefaultBodyDetailsItems0 */ type QueryExistsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -368,7 +360,6 @@ type QueryExistsDefaultBodyDetailsItems0 struct { func (o *QueryExistsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -406,7 +397,6 @@ func (o *QueryExistsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o QueryExistsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -470,7 +460,6 @@ QueryExistsOKBody QueryExistsResponse returns true if query exists. swagger:model QueryExistsOKBody */ type QueryExistsOKBody struct { - // exists Exists bool `json:"exists,omitempty"` } diff --git a/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go b/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go index 45d51b4b648..f0be4d869ce 100644 --- a/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go +++ b/api/qan/v1/json/client/qan_service/schema_by_query_id_parameters.go @@ -60,7 +60,6 @@ SchemaByQueryIDParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type SchemaByQueryIDParams struct { - /* Body. SchemaByQueryIDRequest returns schema for given query ID and service ID. @@ -133,7 +132,6 @@ func (o *SchemaByQueryIDParams) SetBody(body SchemaByQueryIDBody) { // WriteToRequest writes these params to a swagger request func (o *SchemaByQueryIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go b/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go index 51dd57a9326..894c1d12cc9 100644 --- a/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go +++ b/api/qan/v1/json/client/qan_service/schema_by_query_id_responses.go @@ -104,7 +104,6 @@ func (o *SchemaByQueryIDOK) GetPayload() *SchemaByQueryIDOKBody { } func (o *SchemaByQueryIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SchemaByQueryIDOKBody) // response payload @@ -178,7 +177,6 @@ func (o *SchemaByQueryIDDefault) GetPayload() *SchemaByQueryIDDefaultBody { } func (o *SchemaByQueryIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SchemaByQueryIDDefaultBody) // response payload @@ -194,7 +192,6 @@ SchemaByQueryIDBody SchemaByQueryIDRequest returns schema for given query ID and swagger:model SchemaByQueryIDBody */ type SchemaByQueryIDBody struct { - // service id ServiceID string `json:"service_id,omitempty"` @@ -235,7 +232,6 @@ SchemaByQueryIDDefaultBody schema by query ID default body swagger:model SchemaByQueryIDDefaultBody */ type SchemaByQueryIDDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -305,9 +301,7 @@ func (o *SchemaByQueryIDDefaultBody) ContextValidate(ctx context.Context, format } func (o *SchemaByQueryIDDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -327,7 +321,6 @@ func (o *SchemaByQueryIDDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -356,7 +349,6 @@ SchemaByQueryIDDefaultBodyDetailsItems0 schema by query ID default body details swagger:model SchemaByQueryIDDefaultBodyDetailsItems0 */ type SchemaByQueryIDDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -368,7 +360,6 @@ type SchemaByQueryIDDefaultBodyDetailsItems0 struct { func (o *SchemaByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -406,7 +397,6 @@ func (o *SchemaByQueryIDDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) err // MarshalJSON marshals this object with additional properties into a JSON object func (o SchemaByQueryIDDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -470,7 +460,6 @@ SchemaByQueryIDOKBody SchemaByQueryIDResponse is schema for given query ID and s swagger:model SchemaByQueryIDOKBody */ type SchemaByQueryIDOKBody struct { - // schema Schema string `json:"schema,omitempty"` } diff --git a/api/qan/v1/object_details.pb.go b/api/qan/v1/object_details.pb.go index 9a68f9f39d4..25c9db523a5 100644 --- a/api/qan/v1/object_details.pb.go +++ b/api/qan/v1/object_details.pb.go @@ -7,12 +7,13 @@ package qanv1 import ( - 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" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -1607,39 +1608,42 @@ func file_qan_v1_object_details_proto_rawDescGZIP() []byte { return file_qan_v1_object_details_proto_rawDescData } -var file_qan_v1_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_qan_v1_object_details_proto_goTypes = []any{ - (*GetMetricsRequest)(nil), // 0: qan.v1.GetMetricsRequest - (*GetMetricsResponse)(nil), // 1: qan.v1.GetMetricsResponse - (*MetricValues)(nil), // 2: qan.v1.MetricValues - (*Labels)(nil), // 3: qan.v1.Labels - (*GetQueryExampleRequest)(nil), // 4: qan.v1.GetQueryExampleRequest - (*GetQueryExampleResponse)(nil), // 5: qan.v1.GetQueryExampleResponse - (*QueryExample)(nil), // 6: qan.v1.QueryExample - (*GetLabelsRequest)(nil), // 7: qan.v1.GetLabelsRequest - (*GetLabelsResponse)(nil), // 8: qan.v1.GetLabelsResponse - (*ListLabelValues)(nil), // 9: qan.v1.ListLabelValues - (*GetQueryPlanRequest)(nil), // 10: qan.v1.GetQueryPlanRequest - (*GetQueryPlanResponse)(nil), // 11: qan.v1.GetQueryPlanResponse - (*GetHistogramRequest)(nil), // 12: qan.v1.GetHistogramRequest - (*GetHistogramResponse)(nil), // 13: qan.v1.GetHistogramResponse - (*HistogramItem)(nil), // 14: qan.v1.HistogramItem - (*QueryExistsRequest)(nil), // 15: qan.v1.QueryExistsRequest - (*QueryExistsResponse)(nil), // 16: qan.v1.QueryExistsResponse - (*SchemaByQueryIDRequest)(nil), // 17: qan.v1.SchemaByQueryIDRequest - (*SchemaByQueryIDResponse)(nil), // 18: qan.v1.SchemaByQueryIDResponse - (*ExplainFingerprintByQueryIDRequest)(nil), // 19: qan.v1.ExplainFingerprintByQueryIDRequest - (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse - (*GetSelectedQueryMetadataResponse)(nil), // 21: qan.v1.GetSelectedQueryMetadataResponse - nil, // 22: qan.v1.GetMetricsResponse.MetricsEntry - nil, // 23: qan.v1.GetMetricsResponse.TextMetricsEntry - nil, // 24: qan.v1.GetMetricsResponse.TotalsEntry - nil, // 25: qan.v1.GetLabelsResponse.LabelsEntry - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - (*MapFieldEntry)(nil), // 27: qan.v1.MapFieldEntry - (*Point)(nil), // 28: qan.v1.Point - (ExampleType)(0), // 29: qan.v1.ExampleType -} +var ( + file_qan_v1_object_details_proto_msgTypes = make([]protoimpl.MessageInfo, 26) + file_qan_v1_object_details_proto_goTypes = []any{ + (*GetMetricsRequest)(nil), // 0: qan.v1.GetMetricsRequest + (*GetMetricsResponse)(nil), // 1: qan.v1.GetMetricsResponse + (*MetricValues)(nil), // 2: qan.v1.MetricValues + (*Labels)(nil), // 3: qan.v1.Labels + (*GetQueryExampleRequest)(nil), // 4: qan.v1.GetQueryExampleRequest + (*GetQueryExampleResponse)(nil), // 5: qan.v1.GetQueryExampleResponse + (*QueryExample)(nil), // 6: qan.v1.QueryExample + (*GetLabelsRequest)(nil), // 7: qan.v1.GetLabelsRequest + (*GetLabelsResponse)(nil), // 8: qan.v1.GetLabelsResponse + (*ListLabelValues)(nil), // 9: qan.v1.ListLabelValues + (*GetQueryPlanRequest)(nil), // 10: qan.v1.GetQueryPlanRequest + (*GetQueryPlanResponse)(nil), // 11: qan.v1.GetQueryPlanResponse + (*GetHistogramRequest)(nil), // 12: qan.v1.GetHistogramRequest + (*GetHistogramResponse)(nil), // 13: qan.v1.GetHistogramResponse + (*HistogramItem)(nil), // 14: qan.v1.HistogramItem + (*QueryExistsRequest)(nil), // 15: qan.v1.QueryExistsRequest + (*QueryExistsResponse)(nil), // 16: qan.v1.QueryExistsResponse + (*SchemaByQueryIDRequest)(nil), // 17: qan.v1.SchemaByQueryIDRequest + (*SchemaByQueryIDResponse)(nil), // 18: qan.v1.SchemaByQueryIDResponse + (*ExplainFingerprintByQueryIDRequest)(nil), // 19: qan.v1.ExplainFingerprintByQueryIDRequest + (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse + (*GetSelectedQueryMetadataResponse)(nil), // 21: qan.v1.GetSelectedQueryMetadataResponse + nil, // 22: qan.v1.GetMetricsResponse.MetricsEntry + nil, // 23: qan.v1.GetMetricsResponse.TextMetricsEntry + nil, // 24: qan.v1.GetMetricsResponse.TotalsEntry + nil, // 25: qan.v1.GetLabelsResponse.LabelsEntry + (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*MapFieldEntry)(nil), // 27: qan.v1.MapFieldEntry + (*Point)(nil), // 28: qan.v1.Point + (ExampleType)(0), // 29: qan.v1.ExampleType + } +) + var file_qan_v1_object_details_proto_depIdxs = []int32{ 26, // 0: qan.v1.GetMetricsRequest.period_start_from:type_name -> google.protobuf.Timestamp 26, // 1: qan.v1.GetMetricsRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/profile.pb.go b/api/qan/v1/profile.pb.go index 2dce8283404..03ab97e871a 100644 --- a/api/qan/v1/profile.pb.go +++ b/api/qan/v1/profile.pb.go @@ -7,12 +7,13 @@ package qanv1 import ( - 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" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) const ( @@ -583,18 +584,21 @@ func file_qan_v1_profile_proto_rawDescGZIP() []byte { return file_qan_v1_profile_proto_rawDescData } -var file_qan_v1_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_qan_v1_profile_proto_goTypes = []any{ - (*GetReportRequest)(nil), // 0: qan.v1.GetReportRequest - (*ReportMapFieldEntry)(nil), // 1: qan.v1.ReportMapFieldEntry - (*GetReportResponse)(nil), // 2: qan.v1.GetReportResponse - (*Row)(nil), // 3: qan.v1.Row - (*Metric)(nil), // 4: qan.v1.Metric - (*Stat)(nil), // 5: qan.v1.Stat - nil, // 6: qan.v1.Row.MetricsEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp - (*Point)(nil), // 8: qan.v1.Point -} +var ( + file_qan_v1_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 7) + file_qan_v1_profile_proto_goTypes = []any{ + (*GetReportRequest)(nil), // 0: qan.v1.GetReportRequest + (*ReportMapFieldEntry)(nil), // 1: qan.v1.ReportMapFieldEntry + (*GetReportResponse)(nil), // 2: qan.v1.GetReportResponse + (*Row)(nil), // 3: qan.v1.Row + (*Metric)(nil), // 4: qan.v1.Metric + (*Stat)(nil), // 5: qan.v1.Stat + nil, // 6: qan.v1.Row.MetricsEntry + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*Point)(nil), // 8: qan.v1.Point + } +) + var file_qan_v1_profile_proto_depIdxs = []int32{ 7, // 0: qan.v1.GetReportRequest.period_start_from:type_name -> google.protobuf.Timestamp 7, // 1: qan.v1.GetReportRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/qan.pb.go b/api/qan/v1/qan.pb.go index 8151058b8ea..629cc7d94b5 100644 --- a/api/qan/v1/qan.pb.go +++ b/api/qan/v1/qan.pb.go @@ -7,11 +7,12 @@ package qanv1 import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -990,13 +991,16 @@ func file_qan_v1_qan_proto_rawDescGZIP() []byte { return file_qan_v1_qan_proto_rawDescData } -var file_qan_v1_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_qan_v1_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_qan_v1_qan_proto_goTypes = []any{ - (ExampleType)(0), // 0: qan.v1.ExampleType - (*Point)(nil), // 1: qan.v1.Point - (*MapFieldEntry)(nil), // 2: qan.v1.MapFieldEntry -} +var ( + file_qan_v1_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_qan_v1_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_qan_v1_qan_proto_goTypes = []any{ + (ExampleType)(0), // 0: qan.v1.ExampleType + (*Point)(nil), // 1: qan.v1.Point + (*MapFieldEntry)(nil), // 2: qan.v1.MapFieldEntry + } +) + var file_qan_v1_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/qan/v1/service.pb.go b/api/qan/v1/service.pb.go index 05c3c795339..0e52423aa51 100644 --- a/api/qan/v1/service.pb.go +++ b/api/qan/v1/service.pb.go @@ -7,13 +7,14 @@ package qanv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "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" - unsafe "unsafe" ) const ( @@ -227,34 +228,37 @@ func file_qan_v1_service_proto_rawDescGZIP() []byte { return file_qan_v1_service_proto_rawDescData } -var file_qan_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_qan_v1_service_proto_goTypes = []any{ - (*GetMetricsNamesRequest)(nil), // 0: qan.v1.GetMetricsNamesRequest - (*GetMetricsNamesResponse)(nil), // 1: qan.v1.GetMetricsNamesResponse - (*HealthCheckRequest)(nil), // 2: qan.v1.HealthCheckRequest - (*HealthCheckResponse)(nil), // 3: qan.v1.HealthCheckResponse - nil, // 4: qan.v1.GetMetricsNamesResponse.DataEntry - (*GetReportRequest)(nil), // 5: qan.v1.GetReportRequest - (*GetFilteredMetricsNamesRequest)(nil), // 6: qan.v1.GetFilteredMetricsNamesRequest - (*GetMetricsRequest)(nil), // 7: qan.v1.GetMetricsRequest - (*GetLabelsRequest)(nil), // 8: qan.v1.GetLabelsRequest - (*GetHistogramRequest)(nil), // 9: qan.v1.GetHistogramRequest - (*ExplainFingerprintByQueryIDRequest)(nil), // 10: qan.v1.ExplainFingerprintByQueryIDRequest - (*GetQueryPlanRequest)(nil), // 11: qan.v1.GetQueryPlanRequest - (*QueryExistsRequest)(nil), // 12: qan.v1.QueryExistsRequest - (*SchemaByQueryIDRequest)(nil), // 13: qan.v1.SchemaByQueryIDRequest - (*GetQueryExampleRequest)(nil), // 14: qan.v1.GetQueryExampleRequest - (*GetReportResponse)(nil), // 15: qan.v1.GetReportResponse - (*GetFilteredMetricsNamesResponse)(nil), // 16: qan.v1.GetFilteredMetricsNamesResponse - (*GetMetricsResponse)(nil), // 17: qan.v1.GetMetricsResponse - (*GetLabelsResponse)(nil), // 18: qan.v1.GetLabelsResponse - (*GetHistogramResponse)(nil), // 19: qan.v1.GetHistogramResponse - (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse - (*GetQueryPlanResponse)(nil), // 21: qan.v1.GetQueryPlanResponse - (*QueryExistsResponse)(nil), // 22: qan.v1.QueryExistsResponse - (*SchemaByQueryIDResponse)(nil), // 23: qan.v1.SchemaByQueryIDResponse - (*GetQueryExampleResponse)(nil), // 24: qan.v1.GetQueryExampleResponse -} +var ( + file_qan_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5) + file_qan_v1_service_proto_goTypes = []any{ + (*GetMetricsNamesRequest)(nil), // 0: qan.v1.GetMetricsNamesRequest + (*GetMetricsNamesResponse)(nil), // 1: qan.v1.GetMetricsNamesResponse + (*HealthCheckRequest)(nil), // 2: qan.v1.HealthCheckRequest + (*HealthCheckResponse)(nil), // 3: qan.v1.HealthCheckResponse + nil, // 4: qan.v1.GetMetricsNamesResponse.DataEntry + (*GetReportRequest)(nil), // 5: qan.v1.GetReportRequest + (*GetFilteredMetricsNamesRequest)(nil), // 6: qan.v1.GetFilteredMetricsNamesRequest + (*GetMetricsRequest)(nil), // 7: qan.v1.GetMetricsRequest + (*GetLabelsRequest)(nil), // 8: qan.v1.GetLabelsRequest + (*GetHistogramRequest)(nil), // 9: qan.v1.GetHistogramRequest + (*ExplainFingerprintByQueryIDRequest)(nil), // 10: qan.v1.ExplainFingerprintByQueryIDRequest + (*GetQueryPlanRequest)(nil), // 11: qan.v1.GetQueryPlanRequest + (*QueryExistsRequest)(nil), // 12: qan.v1.QueryExistsRequest + (*SchemaByQueryIDRequest)(nil), // 13: qan.v1.SchemaByQueryIDRequest + (*GetQueryExampleRequest)(nil), // 14: qan.v1.GetQueryExampleRequest + (*GetReportResponse)(nil), // 15: qan.v1.GetReportResponse + (*GetFilteredMetricsNamesResponse)(nil), // 16: qan.v1.GetFilteredMetricsNamesResponse + (*GetMetricsResponse)(nil), // 17: qan.v1.GetMetricsResponse + (*GetLabelsResponse)(nil), // 18: qan.v1.GetLabelsResponse + (*GetHistogramResponse)(nil), // 19: qan.v1.GetHistogramResponse + (*ExplainFingerprintByQueryIDResponse)(nil), // 20: qan.v1.ExplainFingerprintByQueryIDResponse + (*GetQueryPlanResponse)(nil), // 21: qan.v1.GetQueryPlanResponse + (*QueryExistsResponse)(nil), // 22: qan.v1.QueryExistsResponse + (*SchemaByQueryIDResponse)(nil), // 23: qan.v1.SchemaByQueryIDResponse + (*GetQueryExampleResponse)(nil), // 24: qan.v1.GetQueryExampleResponse + } +) + var file_qan_v1_service_proto_depIdxs = []int32{ 4, // 0: qan.v1.GetMetricsNamesResponse.data:type_name -> qan.v1.GetMetricsNamesResponse.DataEntry 5, // 1: qan.v1.QANService.GetReport:input_type -> qan.v1.GetReportRequest diff --git a/api/qan/v1/service_grpc.pb.go b/api/qan/v1/service_grpc.pb.go index 752a91653a0..d96a6d9d45c 100644 --- a/api/qan/v1/service_grpc.pb.go +++ b/api/qan/v1/service_grpc.pb.go @@ -8,6 +8,7 @@ package qanv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -236,36 +237,47 @@ type UnimplementedQANServiceServer struct{} func (UnimplementedQANServiceServer) GetReport(context.Context, *GetReportRequest) (*GetReportResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetReport not implemented") } + func (UnimplementedQANServiceServer) GetFilteredMetricsNames(context.Context, *GetFilteredMetricsNamesRequest) (*GetFilteredMetricsNamesResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetFilteredMetricsNames not implemented") } + func (UnimplementedQANServiceServer) GetMetricsNames(context.Context, *GetMetricsNamesRequest) (*GetMetricsNamesResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetMetricsNames not implemented") } + func (UnimplementedQANServiceServer) GetMetrics(context.Context, *GetMetricsRequest) (*GetMetricsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetMetrics not implemented") } + func (UnimplementedQANServiceServer) GetLabels(context.Context, *GetLabelsRequest) (*GetLabelsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetLabels not implemented") } + func (UnimplementedQANServiceServer) GetHistogram(context.Context, *GetHistogramRequest) (*GetHistogramResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetHistogram not implemented") } + func (UnimplementedQANServiceServer) ExplainFingerprintByQueryID(context.Context, *ExplainFingerprintByQueryIDRequest) (*ExplainFingerprintByQueryIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method ExplainFingerprintByQueryID not implemented") } + func (UnimplementedQANServiceServer) GetQueryPlan(context.Context, *GetQueryPlanRequest) (*GetQueryPlanResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetQueryPlan not implemented") } + func (UnimplementedQANServiceServer) QueryExists(context.Context, *QueryExistsRequest) (*QueryExistsResponse, error) { return nil, status.Error(codes.Unimplemented, "method QueryExists not implemented") } + func (UnimplementedQANServiceServer) SchemaByQueryID(context.Context, *SchemaByQueryIDRequest) (*SchemaByQueryIDResponse, error) { return nil, status.Error(codes.Unimplemented, "method SchemaByQueryID not implemented") } + func (UnimplementedQANServiceServer) GetQueryExample(context.Context, *GetQueryExampleRequest) (*GetQueryExampleResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetQueryExample not implemented") } + func (UnimplementedQANServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) { return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented") } diff --git a/api/realtimeanalytics/v1/collector.pb.go b/api/realtimeanalytics/v1/collector.pb.go index 8bb47bf7612..f149de0a6cf 100644 --- a/api/realtimeanalytics/v1/collector.pb.go +++ b/api/realtimeanalytics/v1/collector.pb.go @@ -7,12 +7,13 @@ package realtimeanalyticsv1 import ( - _ "google.golang.org/genproto/googleapis/api/visibility" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" + + _ "google.golang.org/genproto/googleapis/api/visibility" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( @@ -131,12 +132,15 @@ func file_realtimeanalytics_v1_collector_proto_rawDescGZIP() []byte { return file_realtimeanalytics_v1_collector_proto_rawDescData } -var file_realtimeanalytics_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_realtimeanalytics_v1_collector_proto_goTypes = []any{ - (*CollectRequest)(nil), // 0: realtimeanalytics.v1.CollectRequest - (*CollectResponse)(nil), // 1: realtimeanalytics.v1.CollectResponse - (*QueryData)(nil), // 2: realtimeanalytics.v1.QueryData -} +var ( + file_realtimeanalytics_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_realtimeanalytics_v1_collector_proto_goTypes = []any{ + (*CollectRequest)(nil), // 0: realtimeanalytics.v1.CollectRequest + (*CollectResponse)(nil), // 1: realtimeanalytics.v1.CollectResponse + (*QueryData)(nil), // 2: realtimeanalytics.v1.QueryData + } +) + var file_realtimeanalytics_v1_collector_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.CollectRequest.queries:type_name -> realtimeanalytics.v1.QueryData 0, // 1: realtimeanalytics.v1.CollectorService.Collect:input_type -> realtimeanalytics.v1.CollectRequest diff --git a/api/realtimeanalytics/v1/collector_grpc.pb.go b/api/realtimeanalytics/v1/collector_grpc.pb.go index 7bd50b8144c..738bc9985e9 100644 --- a/api/realtimeanalytics/v1/collector_grpc.pb.go +++ b/api/realtimeanalytics/v1/collector_grpc.pb.go @@ -8,6 +8,7 @@ package realtimeanalyticsv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_parameters.go index 9fd15528e3f..96fb471c460 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/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 { - /* ServiceType. Return only services filtered by service type. @@ -86,9 +85,7 @@ func (o *ListServicesParams) WithDefaults() *ListServicesParams { // // All values with no default are reset to their zero value. func (o *ListServicesParams) SetDefaults() { - var ( - serviceTypeDefault = string("SERVICE_TYPE_UNSPECIFIED") - ) + serviceTypeDefault := string("SERVICE_TYPE_UNSPECIFIED") val := ListServicesParams{ ServiceType: &serviceTypeDefault, @@ -146,7 +143,6 @@ func (o *ListServicesParams) SetServiceType(serviceType *string) { // 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 } @@ -162,7 +158,6 @@ func (o *ListServicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qServiceType := qrServiceType if qServiceType != "" { - if err := r.SetQueryParam("service_type", qServiceType); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go index 373d9475d69..bcac3d589dc 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_services_responses.go @@ -104,7 +104,6 @@ func (o *ListServicesOK) GetPayload() *ListServicesOKBody { } func (o *ListServicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListServicesDefault) GetPayload() *ListServicesDefaultBody { } func (o *ListServicesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListServicesDefaultBody) // response payload @@ -194,7 +192,6 @@ ListServicesDefaultBody list services default body swagger:model ListServicesDefaultBody */ type ListServicesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListServicesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -315,7 +309,6 @@ ListServicesDefaultBodyDetailsItems0 list services default body details items0 swagger:model ListServicesDefaultBodyDetailsItems0 */ type ListServicesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListServicesDefaultBodyDetailsItems0 struct { func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListServicesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListServicesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListServicesOKBody list services OK body swagger:model ListServicesOKBody */ type ListServicesOKBody struct { - // mongodb Mongodb []*ListServicesOKBodyMongodbItems0 `json:"mongodb"` } @@ -493,9 +483,7 @@ func (o *ListServicesOKBody) ContextValidate(ctx context.Context, formats strfmt } 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 swag.IsZero(o.Mongodb[i]) { // not required @@ -515,7 +503,6 @@ func (o *ListServicesOKBody) contextValidateMongodb(ctx context.Context, formats return err } } - } return nil @@ -544,7 +531,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"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go index 5a86ae81b0c..d2d9bb171b0 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_parameters.go @@ -60,7 +60,6 @@ ListSessionsParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type ListSessionsParams struct { - /* ClusterName. Optional filter by cluster name. @@ -133,7 +132,6 @@ func (o *ListSessionsParams) SetClusterName(clusterName *string) { // WriteToRequest writes these params to a swagger request func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } @@ -149,7 +147,6 @@ func (o *ListSessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qClusterName := qrClusterName if qClusterName != "" { - if err := r.SetQueryParam("cluster_name", qClusterName); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go index e54f361204c..1fc6503d603 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/list_sessions_responses.go @@ -105,7 +105,6 @@ func (o *ListSessionsOK) GetPayload() *ListSessionsOKBody { } func (o *ListSessionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListSessionsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListSessionsDefault) GetPayload() *ListSessionsDefaultBody { } func (o *ListSessionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListSessionsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListSessionsDefaultBody list sessions default body swagger:model ListSessionsDefaultBody */ type ListSessionsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListSessionsDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *ListSessionsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListSessionsDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -316,7 +310,6 @@ ListSessionsDefaultBodyDetailsItems0 list sessions default body details items0 swagger:model ListSessionsDefaultBodyDetailsItems0 */ type ListSessionsDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type ListSessionsDefaultBodyDetailsItems0 struct { func (o *ListSessionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *ListSessionsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o ListSessionsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ ListSessionsOKBody ListSessionsResponse returns the list of currently active Rea swagger:model ListSessionsOKBody */ type ListSessionsOKBody struct { - // List of active Real-Time Analytics Sessions. Sessions []*ListSessionsOKBodySessionsItems0 `json:"sessions"` } @@ -494,9 +484,7 @@ func (o *ListSessionsOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ListSessionsOKBody) contextValidateSessions(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Sessions); i++ { - if o.Sessions[i] != nil { if swag.IsZero(o.Sessions[i]) { // not required @@ -516,7 +504,6 @@ func (o *ListSessionsOKBody) contextValidateSessions(ctx context.Context, format return err } } - } return nil @@ -545,7 +532,6 @@ ListSessionsOKBodySessionsItems0 Session represents an active Real-Time Analytic swagger:model ListSessionsOKBodySessionsItems0 */ type ListSessionsOKBodySessionsItems0 struct { - // Service identifier that has enabled Real-Time Analytics session. ServiceID string `json:"service_id,omitempty"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go index d2ec16d2f6d..0960212209a 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_parameters.go @@ -60,7 +60,6 @@ SearchQueriesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type SearchQueriesParams struct { - /* Body. SearchQueriesRequest contains optional filters for listing active Real-Time Analytics session Queries. @@ -133,7 +132,6 @@ func (o *SearchQueriesParams) SetBody(body SearchQueriesBody) { // WriteToRequest writes these params to a swagger request func (o *SearchQueriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go index 189f74dfd04..c99d83d5853 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/search_queries_responses.go @@ -105,7 +105,6 @@ func (o *SearchQueriesOK) GetPayload() *SearchQueriesOKBody { } func (o *SearchQueriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SearchQueriesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *SearchQueriesDefault) GetPayload() *SearchQueriesDefaultBody { } func (o *SearchQueriesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(SearchQueriesDefaultBody) // response payload @@ -195,7 +193,6 @@ SearchQueriesBody SearchQueriesRequest contains optional filters for listing act swagger:model SearchQueriesBody */ type SearchQueriesBody struct { - // Optional filter by Service identifiers. ServiceIds []string `json:"service_ids"` @@ -236,7 +233,6 @@ SearchQueriesDefaultBody search queries default body swagger:model SearchQueriesDefaultBody */ type SearchQueriesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -306,9 +302,7 @@ func (o *SearchQueriesDefaultBody) ContextValidate(ctx context.Context, formats } func (o *SearchQueriesDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -328,7 +322,6 @@ func (o *SearchQueriesDefaultBody) contextValidateDetails(ctx context.Context, f return err } } - } return nil @@ -357,7 +350,6 @@ SearchQueriesDefaultBodyDetailsItems0 search queries default body details items0 swagger:model SearchQueriesDefaultBodyDetailsItems0 */ type SearchQueriesDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -369,7 +361,6 @@ type SearchQueriesDefaultBodyDetailsItems0 struct { func (o *SearchQueriesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -407,7 +398,6 @@ func (o *SearchQueriesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o SearchQueriesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -471,7 +461,6 @@ SearchQueriesOKBody SearchQueriesResponse returns the list of currently active R swagger:model SearchQueriesOKBody */ type SearchQueriesOKBody struct { - // List of active Real-Time Analytics session Queries. Queries []*SearchQueriesOKBodyQueriesItems0 `json:"queries"` } @@ -535,9 +524,7 @@ func (o *SearchQueriesOKBody) ContextValidate(ctx context.Context, formats strfm } func (o *SearchQueriesOKBody) contextValidateQueries(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Queries); i++ { - if o.Queries[i] != nil { if swag.IsZero(o.Queries[i]) { // not required @@ -557,7 +544,6 @@ func (o *SearchQueriesOKBody) contextValidateQueries(ctx context.Context, format return err } } - } return nil @@ -587,7 +573,6 @@ SearchQueriesOKBodyQueriesItems0 QueryData represents a single Real-Time Analyti swagger:model SearchQueriesOKBodyQueriesItems0 */ type SearchQueriesOKBodyQueriesItems0 struct { - // PMM Service identifier that reported the query. ServiceID string `json:"service_id,omitempty"` @@ -685,7 +670,6 @@ func (o *SearchQueriesOKBodyQueriesItems0) ContextValidate(ctx context.Context, } func (o *SearchQueriesOKBodyQueriesItems0) contextValidateMongoDBPayload(ctx context.Context, formats strfmt.Registry) error { - if o.MongoDBPayload != nil { if swag.IsZero(o.MongoDBPayload) { // not required @@ -732,7 +716,6 @@ SearchQueriesOKBodyQueriesItems0MongoDBPayload QueryMongoDBData holds MongoDB-sp swagger:model SearchQueriesOKBodyQueriesItems0MongoDBPayload */ type SearchQueriesOKBodyQueriesItems0MongoDBPayload struct { - // MongoDB instance address(host:port) that processing the query. DBInstanceAddress string `json:"db_instance_address,omitempty"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go index 24d3dc531e9..9a02b81b572 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_parameters.go @@ -60,7 +60,6 @@ StartSessionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StartSessionParams struct { - /* Body. StartSessionRequest contains parameters for starting Real-Time Analytics session. @@ -133,7 +132,6 @@ func (o *StartSessionParams) SetBody(body StartSessionBody) { // WriteToRequest writes these params to a swagger request func (o *StartSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go index 579db2aef04..8cfa9fd7612 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/start_session_responses.go @@ -105,7 +105,6 @@ func (o *StartSessionOK) GetPayload() *StartSessionOKBody { } func (o *StartSessionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartSessionOKBody) // response payload @@ -179,7 +178,6 @@ func (o *StartSessionDefault) GetPayload() *StartSessionDefaultBody { } func (o *StartSessionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartSessionDefaultBody) // response payload @@ -195,7 +193,6 @@ StartSessionBody StartSessionRequest contains parameters for starting Real-Time swagger:model StartSessionBody */ type StartSessionBody struct { - // Required service identifier the Real-Time Analytics session shall be started for. ServiceID string `json:"service_id,omitempty"` } @@ -233,7 +230,6 @@ StartSessionDefaultBody start session default body swagger:model StartSessionDefaultBody */ type StartSessionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -303,9 +299,7 @@ func (o *StartSessionDefaultBody) ContextValidate(ctx context.Context, formats s } func (o *StartSessionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -325,7 +319,6 @@ func (o *StartSessionDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -354,7 +347,6 @@ StartSessionDefaultBodyDetailsItems0 start session default body details items0 swagger:model StartSessionDefaultBodyDetailsItems0 */ type StartSessionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -366,7 +358,6 @@ type StartSessionDefaultBodyDetailsItems0 struct { func (o *StartSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -404,7 +395,6 @@ func (o *StartSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o StartSessionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -468,7 +458,6 @@ StartSessionOKBody StartSessionResponse is the response for starting Real-Time A swagger:model StartSessionOKBody */ type StartSessionOKBody struct { - // session Session *StartSessionOKBodySession `json:"session,omitempty"` } @@ -525,7 +514,6 @@ func (o *StartSessionOKBody) ContextValidate(ctx context.Context, formats strfmt } func (o *StartSessionOKBody) contextValidateSession(ctx context.Context, formats strfmt.Registry) error { - if o.Session != nil { if swag.IsZero(o.Session) { // not required @@ -572,7 +560,6 @@ StartSessionOKBodySession Session represents an active Real-Time Analytics sessi swagger:model StartSessionOKBodySession */ type StartSessionOKBodySession struct { - // Service identifier that has enabled Real-Time Analytics session. ServiceID string `json:"service_id,omitempty"` diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go index 89661b9e6dc..13fe4370d0e 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_parameters.go @@ -60,7 +60,6 @@ StopSessionParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type StopSessionParams struct { - /* Body. StopSessionRequest contains parameters for stopping Real-Time Analytics session. @@ -133,7 +132,6 @@ func (o *StopSessionParams) SetBody(body StopSessionBody) { // WriteToRequest writes these params to a swagger request func (o *StopSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go index 38a1c14f612..020899894ca 100644 --- a/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go +++ b/api/realtimeanalytics/v1/json/client/realtime_analytics_service/stop_session_responses.go @@ -104,7 +104,6 @@ func (o *StopSessionOK) GetPayload() any { } func (o *StopSessionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *StopSessionDefault) GetPayload() *StopSessionDefaultBody { } func (o *StopSessionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StopSessionDefaultBody) // response payload @@ -192,7 +190,6 @@ StopSessionBody StopSessionRequest contains parameters for stopping Real-Time An swagger:model StopSessionBody */ type StopSessionBody struct { - // Required service identifier the Real-Time Analytics session shall be stopped for. ServiceID string `json:"service_id,omitempty"` } @@ -230,7 +227,6 @@ StopSessionDefaultBody stop session default body swagger:model StopSessionDefaultBody */ type StopSessionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -300,9 +296,7 @@ func (o *StopSessionDefaultBody) ContextValidate(ctx context.Context, formats st } func (o *StopSessionDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -322,7 +316,6 @@ func (o *StopSessionDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -351,7 +344,6 @@ StopSessionDefaultBodyDetailsItems0 stop session default body details items0 swagger:model StopSessionDefaultBodyDetailsItems0 */ type StopSessionDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -363,7 +355,6 @@ type StopSessionDefaultBodyDetailsItems0 struct { func (o *StopSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -401,7 +392,6 @@ func (o *StopSessionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StopSessionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } diff --git a/api/realtimeanalytics/v1/query.pb.go b/api/realtimeanalytics/v1/query.pb.go index d2c537c1744..6d3f2df71da 100644 --- a/api/realtimeanalytics/v1/query.pb.go +++ b/api/realtimeanalytics/v1/query.pb.go @@ -7,13 +7,14 @@ package realtimeanalyticsv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + 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" - unsafe "unsafe" ) const ( @@ -319,13 +320,16 @@ func file_realtimeanalytics_v1_query_proto_rawDescGZIP() []byte { return file_realtimeanalytics_v1_query_proto_rawDescData } -var file_realtimeanalytics_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_realtimeanalytics_v1_query_proto_goTypes = []any{ - (*QueryMongoDBData)(nil), // 0: realtimeanalytics.v1.QueryMongoDBData - (*QueryData)(nil), // 1: realtimeanalytics.v1.QueryData - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 3: google.protobuf.Duration -} +var ( + file_realtimeanalytics_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) + file_realtimeanalytics_v1_query_proto_goTypes = []any{ + (*QueryMongoDBData)(nil), // 0: realtimeanalytics.v1.QueryMongoDBData + (*QueryData)(nil), // 1: realtimeanalytics.v1.QueryData + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 3: google.protobuf.Duration + } +) + var file_realtimeanalytics_v1_query_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.QueryMongoDBData.operation_start_time:type_name -> google.protobuf.Timestamp 3, // 1: realtimeanalytics.v1.QueryData.query_execution_duration:type_name -> google.protobuf.Duration diff --git a/api/realtimeanalytics/v1/realtimeanalytics.pb.go b/api/realtimeanalytics/v1/realtimeanalytics.pb.go index 1d1b609979f..9aaf7797747 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics.pb.go +++ b/api/realtimeanalytics/v1/realtimeanalytics.pb.go @@ -7,17 +7,19 @@ package realtimeanalyticsv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - v1 "github.com/percona/pmm/api/inventory/v1" _ "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" - unsafe "unsafe" + + v1 "github.com/percona/pmm/api/inventory/v1" ) const ( @@ -693,27 +695,30 @@ func file_realtimeanalytics_v1_realtimeanalytics_proto_rawDescGZIP() []byte { return file_realtimeanalytics_v1_realtimeanalytics_proto_rawDescData } -var file_realtimeanalytics_v1_realtimeanalytics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_realtimeanalytics_v1_realtimeanalytics_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_realtimeanalytics_v1_realtimeanalytics_proto_goTypes = []any{ - (SessionStatus)(0), // 0: realtimeanalytics.v1.SessionStatus - (*ListServicesRequest)(nil), // 1: realtimeanalytics.v1.ListServicesRequest - (*ListServicesResponse)(nil), // 2: realtimeanalytics.v1.ListServicesResponse - (*Session)(nil), // 3: realtimeanalytics.v1.Session - (*ListSessionsRequest)(nil), // 4: realtimeanalytics.v1.ListSessionsRequest - (*ListSessionsResponse)(nil), // 5: realtimeanalytics.v1.ListSessionsResponse - (*StartSessionRequest)(nil), // 6: realtimeanalytics.v1.StartSessionRequest - (*StartSessionResponse)(nil), // 7: realtimeanalytics.v1.StartSessionResponse - (*StopSessionRequest)(nil), // 8: realtimeanalytics.v1.StopSessionRequest - (*StopSessionResponse)(nil), // 9: realtimeanalytics.v1.StopSessionResponse - (*SearchQueriesRequest)(nil), // 10: realtimeanalytics.v1.SearchQueriesRequest - (*SearchQueriesResponse)(nil), // 11: realtimeanalytics.v1.SearchQueriesResponse - (v1.ServiceType)(0), // 12: inventory.v1.ServiceType - (*v1.MongoDBService)(nil), // 13: inventory.v1.MongoDBService - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 15: google.protobuf.Duration - (*QueryData)(nil), // 16: realtimeanalytics.v1.QueryData -} +var ( + file_realtimeanalytics_v1_realtimeanalytics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_realtimeanalytics_v1_realtimeanalytics_proto_msgTypes = make([]protoimpl.MessageInfo, 11) + file_realtimeanalytics_v1_realtimeanalytics_proto_goTypes = []any{ + (SessionStatus)(0), // 0: realtimeanalytics.v1.SessionStatus + (*ListServicesRequest)(nil), // 1: realtimeanalytics.v1.ListServicesRequest + (*ListServicesResponse)(nil), // 2: realtimeanalytics.v1.ListServicesResponse + (*Session)(nil), // 3: realtimeanalytics.v1.Session + (*ListSessionsRequest)(nil), // 4: realtimeanalytics.v1.ListSessionsRequest + (*ListSessionsResponse)(nil), // 5: realtimeanalytics.v1.ListSessionsResponse + (*StartSessionRequest)(nil), // 6: realtimeanalytics.v1.StartSessionRequest + (*StartSessionResponse)(nil), // 7: realtimeanalytics.v1.StartSessionResponse + (*StopSessionRequest)(nil), // 8: realtimeanalytics.v1.StopSessionRequest + (*StopSessionResponse)(nil), // 9: realtimeanalytics.v1.StopSessionResponse + (*SearchQueriesRequest)(nil), // 10: realtimeanalytics.v1.SearchQueriesRequest + (*SearchQueriesResponse)(nil), // 11: realtimeanalytics.v1.SearchQueriesResponse + (v1.ServiceType)(0), // 12: inventory.v1.ServiceType + (*v1.MongoDBService)(nil), // 13: inventory.v1.MongoDBService + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 15: google.protobuf.Duration + (*QueryData)(nil), // 16: realtimeanalytics.v1.QueryData + } +) + var file_realtimeanalytics_v1_realtimeanalytics_proto_depIdxs = []int32{ 12, // 0: realtimeanalytics.v1.ListServicesRequest.service_type:type_name -> inventory.v1.ServiceType 13, // 1: realtimeanalytics.v1.ListServicesResponse.mongodb:type_name -> inventory.v1.MongoDBService diff --git a/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go b/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go index 730891f4d8d..0d389f33d03 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go +++ b/api/realtimeanalytics/v1/realtimeanalytics_grpc.pb.go @@ -8,6 +8,7 @@ package realtimeanalyticsv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -131,18 +132,23 @@ type UnimplementedRealtimeAnalyticsServiceServer struct{} func (UnimplementedRealtimeAnalyticsServiceServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListServices not implemented") } + func (UnimplementedRealtimeAnalyticsServiceServer) ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListSessions not implemented") } + func (UnimplementedRealtimeAnalyticsServiceServer) StartSession(context.Context, *StartSessionRequest) (*StartSessionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartSession not implemented") } + func (UnimplementedRealtimeAnalyticsServiceServer) StopSession(context.Context, *StopSessionRequest) (*StopSessionResponse, error) { return nil, status.Error(codes.Unimplemented, "method StopSession not implemented") } + func (UnimplementedRealtimeAnalyticsServiceServer) SearchQueries(context.Context, *SearchQueriesRequest) (*SearchQueriesResponse, error) { return nil, status.Error(codes.Unimplemented, "method SearchQueries not implemented") } + func (UnimplementedRealtimeAnalyticsServiceServer) mustEmbedUnimplementedRealtimeAnalyticsServiceServer() { } func (UnimplementedRealtimeAnalyticsServiceServer) testEmbeddedByValue() {} diff --git a/api/server/v1/httperror.pb.go b/api/server/v1/httperror.pb.go index a71c3b4f133..8778ad26272 100644 --- a/api/server/v1/httperror.pb.go +++ b/api/server/v1/httperror.pb.go @@ -7,12 +7,13 @@ package serverv1 import ( - 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" unsafe "unsafe" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" ) const ( @@ -119,11 +120,14 @@ func file_server_v1_httperror_proto_rawDescGZIP() []byte { return file_server_v1_httperror_proto_rawDescData } -var file_server_v1_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_server_v1_httperror_proto_goTypes = []any{ - (*HttpError)(nil), // 0: server.v1.HttpError - (*anypb.Any)(nil), // 1: google.protobuf.Any -} +var ( + file_server_v1_httperror_proto_msgTypes = make([]protoimpl.MessageInfo, 1) + file_server_v1_httperror_proto_goTypes = []any{ + (*HttpError)(nil), // 0: server.v1.HttpError + (*anypb.Any)(nil), // 1: google.protobuf.Any + } +) + var file_server_v1_httperror_proto_depIdxs = []int32{ 1, // 0: server.v1.HttpError.details:type_name -> google.protobuf.Any 1, // [1:1] is the sub-list for method output_type diff --git a/api/server/v1/json/client/server_service/change_settings_parameters.go b/api/server/v1/json/client/server_service/change_settings_parameters.go index 8fd09d8309e..12afd77da38 100644 --- a/api/server/v1/json/client/server_service/change_settings_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/change_settings_responses.go b/api/server/v1/json/client/server_service/change_settings_responses.go index 072d37b9672..b916ef04041 100644 --- a/api/server/v1/json/client/server_service/change_settings_responses.go +++ b/api/server/v1/json/client/server_service/change_settings_responses.go @@ -104,7 +104,6 @@ func (o *ChangeSettingsOK) GetPayload() *ChangeSettingsOKBody { } func (o *ChangeSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeSettingsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ChangeSettingsDefault) GetPayload() *ChangeSettingsDefaultBody { } func (o *ChangeSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ChangeSettingsDefaultBody) // response payload @@ -194,7 +192,6 @@ ChangeSettingsBody change settings body swagger:model ChangeSettingsBody */ type ChangeSettingsBody struct { - // enable updates EnableUpdates *bool `json:"enable_updates,omitempty"` @@ -355,7 +352,6 @@ func (o *ChangeSettingsBody) ContextValidate(ctx context.Context, formats strfmt } func (o *ChangeSettingsBody) contextValidateAdvisorRunIntervals(ctx context.Context, formats strfmt.Registry) error { - if o.AdvisorRunIntervals != nil { if swag.IsZero(o.AdvisorRunIntervals) { // not required @@ -380,7 +376,6 @@ func (o *ChangeSettingsBody) contextValidateAdvisorRunIntervals(ctx context.Cont } func (o *ChangeSettingsBody) contextValidateAWSPartitions(ctx context.Context, formats strfmt.Registry) error { - if o.AWSPartitions != nil { if swag.IsZero(o.AWSPartitions) { // not required @@ -405,7 +400,6 @@ func (o *ChangeSettingsBody) contextValidateAWSPartitions(ctx context.Context, f } func (o *ChangeSettingsBody) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -452,7 +446,6 @@ ChangeSettingsDefaultBody change settings default body swagger:model ChangeSettingsDefaultBody */ type ChangeSettingsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -522,9 +515,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 swag.IsZero(o.Details[i]) { // not required @@ -544,7 +535,6 @@ func (o *ChangeSettingsDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -657,7 +647,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 @@ -696,7 +685,6 @@ type ChangeSettingsDefaultBodyDetailsItems0 struct { func (o *ChangeSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -761,7 +749,6 @@ func (o *ChangeSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ChangeSettingsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -852,7 +839,6 @@ ChangeSettingsOKBody change settings OK body swagger:model ChangeSettingsOKBody */ type ChangeSettingsOKBody struct { - // settings Settings *ChangeSettingsOKBodySettings `json:"settings,omitempty"` } @@ -909,7 +895,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 swag.IsZero(o.Settings) { // not required @@ -956,7 +941,6 @@ ChangeSettingsOKBodySettings Settings represents PMM Server settings. swagger:model ChangeSettingsOKBodySettings */ type ChangeSettingsOKBodySettings struct { - // True if updates are enabled. UpdatesEnabled bool `json:"updates_enabled,omitempty"` @@ -1098,7 +1082,6 @@ func (o *ChangeSettingsOKBodySettings) ContextValidate(ctx context.Context, form } func (o *ChangeSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx context.Context, formats strfmt.Registry) error { - if o.AdvisorRunIntervals != nil { if swag.IsZero(o.AdvisorRunIntervals) { // not required @@ -1123,7 +1106,6 @@ func (o *ChangeSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx co } func (o *ChangeSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -1170,7 +1152,6 @@ ChangeSettingsOKBodySettingsAdvisorRunIntervals AdvisorRunIntervals represents i swagger:model ChangeSettingsOKBodySettingsAdvisorRunIntervals */ type ChangeSettingsOKBodySettingsAdvisorRunIntervals struct { - // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -1214,7 +1195,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"` @@ -1258,7 +1238,6 @@ ChangeSettingsParamsBodyAWSPartitions A wrapper for a string array. This type al swagger:model ChangeSettingsParamsBodyAWSPartitions */ type ChangeSettingsParamsBodyAWSPartitions struct { - // values Values []string `json:"values"` } @@ -1296,7 +1275,6 @@ ChangeSettingsParamsBodyAdvisorRunIntervals AdvisorRunIntervals represents inter swagger:model ChangeSettingsParamsBodyAdvisorRunIntervals */ type ChangeSettingsParamsBodyAdvisorRunIntervals struct { - // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -1340,7 +1318,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"` diff --git a/api/server/v1/json/client/server_service/check_updates_parameters.go b/api/server/v1/json/client/server_service/check_updates_parameters.go index 601149cc3e7..9bf5b1322dc 100644 --- a/api/server/v1/json/client/server_service/check_updates_parameters.go +++ b/api/server/v1/json/client/server_service/check_updates_parameters.go @@ -61,7 +61,6 @@ CheckUpdatesParams contains all the parameters to send to the API endpoint Typically these are written to a http.Request. */ type CheckUpdatesParams struct { - /* Force. If false, cached information may be returned. @@ -151,7 +150,6 @@ func (o *CheckUpdatesParams) SetOnlyInstalledVersion(onlyInstalledVersion *bool) // 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 } @@ -167,7 +165,6 @@ func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qForce := swag.FormatBool(qrForce) if qForce != "" { - if err := r.SetQueryParam("force", qForce); err != nil { return err } @@ -184,7 +181,6 @@ func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } qOnlyInstalledVersion := swag.FormatBool(qrOnlyInstalledVersion) if qOnlyInstalledVersion != "" { - if err := r.SetQueryParam("only_installed_version", qOnlyInstalledVersion); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/check_updates_responses.go b/api/server/v1/json/client/server_service/check_updates_responses.go index 459be6a1852..85b567a990f 100644 --- a/api/server/v1/json/client/server_service/check_updates_responses.go +++ b/api/server/v1/json/client/server_service/check_updates_responses.go @@ -105,7 +105,6 @@ func (o *CheckUpdatesOK) GetPayload() *CheckUpdatesOKBody { } func (o *CheckUpdatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CheckUpdatesOKBody) // response payload @@ -179,7 +178,6 @@ func (o *CheckUpdatesDefault) GetPayload() *CheckUpdatesDefaultBody { } func (o *CheckUpdatesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(CheckUpdatesDefaultBody) // response payload @@ -195,7 +193,6 @@ CheckUpdatesDefaultBody check updates default body swagger:model CheckUpdatesDefaultBody */ type CheckUpdatesDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *CheckUpdatesDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -400,7 +394,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 @@ -439,7 +432,6 @@ type CheckUpdatesDefaultBodyDetailsItems0 struct { func (o *CheckUpdatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -504,7 +496,6 @@ func (o *CheckUpdatesDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o CheckUpdatesDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -595,7 +586,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"` @@ -712,7 +702,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 swag.IsZero(o.Installed) { // not required @@ -737,7 +726,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 swag.IsZero(o.Latest) { // not required @@ -784,7 +772,6 @@ CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Serv swagger:model CheckUpdatesOKBodyInstalled */ type CheckUpdatesOKBodyInstalled struct { - // User-visible version. Version string `json:"version,omitempty"` @@ -850,7 +837,6 @@ CheckUpdatesOKBodyLatest check updates OK body latest swagger:model CheckUpdatesOKBodyLatest */ type CheckUpdatesOKBodyLatest struct { - // PMM Version. Version string `json:"version,omitempty"` diff --git a/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go b/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go index b4859e143a8..ce14210b120 100644 --- a/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go +++ b/api/server/v1/json/client/server_service/get_read_only_settings_parameters.go @@ -115,7 +115,6 @@ func (o *GetReadOnlySettingsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *GetReadOnlySettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/get_read_only_settings_responses.go b/api/server/v1/json/client/server_service/get_read_only_settings_responses.go index 1c819458b59..31376147ddf 100644 --- a/api/server/v1/json/client/server_service/get_read_only_settings_responses.go +++ b/api/server/v1/json/client/server_service/get_read_only_settings_responses.go @@ -104,7 +104,6 @@ func (o *GetReadOnlySettingsOK) GetPayload() *GetReadOnlySettingsOKBody { } func (o *GetReadOnlySettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetReadOnlySettingsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetReadOnlySettingsDefault) GetPayload() *GetReadOnlySettingsDefaultBod } func (o *GetReadOnlySettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetReadOnlySettingsDefaultBody) // response payload @@ -194,7 +192,6 @@ GetReadOnlySettingsDefaultBody get read only settings default body swagger:model GetReadOnlySettingsDefaultBody */ type GetReadOnlySettingsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *GetReadOnlySettingsDefaultBody) ContextValidate(ctx context.Context, fo } func (o *GetReadOnlySettingsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetReadOnlySettingsDefaultBody) contextValidateDetails(ctx context.Cont return err } } - } return nil @@ -399,7 +393,6 @@ GetReadOnlySettingsDefaultBodyDetailsItems0 `Any` contains an arbitrary serializ swagger:model GetReadOnlySettingsDefaultBodyDetailsItems0 */ type GetReadOnlySettingsDefaultBodyDetailsItems0 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 @@ -438,7 +431,6 @@ type GetReadOnlySettingsDefaultBodyDetailsItems0 struct { func (o *GetReadOnlySettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -503,7 +495,6 @@ func (o *GetReadOnlySettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) // MarshalJSON marshals this object with additional properties into a JSON object func (o GetReadOnlySettingsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -594,7 +585,6 @@ GetReadOnlySettingsOKBody get read only settings OK body swagger:model GetReadOnlySettingsOKBody */ type GetReadOnlySettingsOKBody struct { - // settings Settings *GetReadOnlySettingsOKBodySettings `json:"settings,omitempty"` } @@ -651,7 +641,6 @@ func (o *GetReadOnlySettingsOKBody) ContextValidate(ctx context.Context, formats } func (o *GetReadOnlySettingsOKBody) contextValidateSettings(ctx context.Context, formats strfmt.Registry) error { - if o.Settings != nil { if swag.IsZero(o.Settings) { // not required @@ -698,7 +687,6 @@ GetReadOnlySettingsOKBodySettings ReadOnlySettings represents a stripped-down ve swagger:model GetReadOnlySettingsOKBodySettings */ type GetReadOnlySettingsOKBodySettings struct { - // True if updates are enabled. UpdatesEnabled bool `json:"updates_enabled,omitempty"` diff --git a/api/server/v1/json/client/server_service/get_settings_parameters.go b/api/server/v1/json/client/server_service/get_settings_parameters.go index f41cc415346..a25fa8d3b24 100644 --- a/api/server/v1/json/client/server_service/get_settings_parameters.go +++ b/api/server/v1/json/client/server_service/get_settings_parameters.go @@ -115,7 +115,6 @@ func (o *GetSettingsParams) SetHTTPClient(client *http.Client) { // 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/server/v1/json/client/server_service/get_settings_responses.go b/api/server/v1/json/client/server_service/get_settings_responses.go index dd50369970f..23c0026d5c9 100644 --- a/api/server/v1/json/client/server_service/get_settings_responses.go +++ b/api/server/v1/json/client/server_service/get_settings_responses.go @@ -104,7 +104,6 @@ func (o *GetSettingsOK) GetPayload() *GetSettingsOKBody { } func (o *GetSettingsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetSettingsOKBody) // response payload @@ -178,7 +177,6 @@ func (o *GetSettingsDefault) GetPayload() *GetSettingsDefaultBody { } func (o *GetSettingsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetSettingsDefaultBody) // response payload @@ -194,7 +192,6 @@ GetSettingsDefaultBody get settings default body swagger:model GetSettingsDefaultBody */ type GetSettingsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,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 swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *GetSettingsDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -399,7 +393,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 @@ -438,7 +431,6 @@ type GetSettingsDefaultBodyDetailsItems0 struct { func (o *GetSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -503,7 +495,6 @@ func (o *GetSettingsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetSettingsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -594,7 +585,6 @@ GetSettingsOKBody get settings OK body swagger:model GetSettingsOKBody */ type GetSettingsOKBody struct { - // settings Settings *GetSettingsOKBodySettings `json:"settings,omitempty"` } @@ -651,7 +641,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 swag.IsZero(o.Settings) { // not required @@ -698,7 +687,6 @@ GetSettingsOKBodySettings Settings represents PMM Server settings. swagger:model GetSettingsOKBodySettings */ type GetSettingsOKBodySettings struct { - // True if updates are enabled. UpdatesEnabled bool `json:"updates_enabled,omitempty"` @@ -840,7 +828,6 @@ func (o *GetSettingsOKBodySettings) ContextValidate(ctx context.Context, formats } func (o *GetSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx context.Context, formats strfmt.Registry) error { - if o.AdvisorRunIntervals != nil { if swag.IsZero(o.AdvisorRunIntervals) { // not required @@ -865,7 +852,6 @@ func (o *GetSettingsOKBodySettings) contextValidateAdvisorRunIntervals(ctx conte } func (o *GetSettingsOKBodySettings) contextValidateMetricsResolutions(ctx context.Context, formats strfmt.Registry) error { - if o.MetricsResolutions != nil { if swag.IsZero(o.MetricsResolutions) { // not required @@ -912,7 +898,6 @@ GetSettingsOKBodySettingsAdvisorRunIntervals AdvisorRunIntervals represents inte swagger:model GetSettingsOKBodySettingsAdvisorRunIntervals */ type GetSettingsOKBodySettingsAdvisorRunIntervals struct { - // Standard check interval. StandardInterval string `json:"standard_interval,omitempty"` @@ -956,7 +941,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"` diff --git a/api/server/v1/json/client/server_service/leader_health_check_parameters.go b/api/server/v1/json/client/server_service/leader_health_check_parameters.go index 4cb5355dc72..86cdd9c398b 100644 --- a/api/server/v1/json/client/server_service/leader_health_check_parameters.go +++ b/api/server/v1/json/client/server_service/leader_health_check_parameters.go @@ -115,7 +115,6 @@ func (o *LeaderHealthCheckParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *LeaderHealthCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/leader_health_check_responses.go b/api/server/v1/json/client/server_service/leader_health_check_responses.go index a7506fe40ec..ab224190ccc 100644 --- a/api/server/v1/json/client/server_service/leader_health_check_responses.go +++ b/api/server/v1/json/client/server_service/leader_health_check_responses.go @@ -104,7 +104,6 @@ func (o *LeaderHealthCheckOK) GetPayload() any { } func (o *LeaderHealthCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *LeaderHealthCheckDefault) GetPayload() *LeaderHealthCheckDefaultBody { } func (o *LeaderHealthCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(LeaderHealthCheckDefaultBody) // response payload @@ -192,7 +190,6 @@ LeaderHealthCheckDefaultBody leader health check default body swagger:model LeaderHealthCheckDefaultBody */ type LeaderHealthCheckDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,7 @@ func (o *LeaderHealthCheckDefaultBody) ContextValidate(ctx context.Context, form } func (o *LeaderHealthCheckDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *LeaderHealthCheckDefaultBody) contextValidateDetails(ctx context.Contex return err } } - } return nil @@ -397,7 +391,6 @@ LeaderHealthCheckDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized swagger:model LeaderHealthCheckDefaultBodyDetailsItems0 */ type LeaderHealthCheckDefaultBodyDetailsItems0 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 @@ -436,7 +429,6 @@ type LeaderHealthCheckDefaultBodyDetailsItems0 struct { func (o *LeaderHealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -501,7 +493,6 @@ func (o *LeaderHealthCheckDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) e // MarshalJSON marshals this object with additional properties into a JSON object func (o LeaderHealthCheckDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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/server/v1/json/client/server_service/list_change_logs_parameters.go b/api/server/v1/json/client/server_service/list_change_logs_parameters.go index b801f277d16..4160eaf6faa 100644 --- a/api/server/v1/json/client/server_service/list_change_logs_parameters.go +++ b/api/server/v1/json/client/server_service/list_change_logs_parameters.go @@ -115,7 +115,6 @@ func (o *ListChangeLogsParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListChangeLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/server/v1/json/client/server_service/list_change_logs_responses.go b/api/server/v1/json/client/server_service/list_change_logs_responses.go index c8a18907ea6..f0943c1e69e 100644 --- a/api/server/v1/json/client/server_service/list_change_logs_responses.go +++ b/api/server/v1/json/client/server_service/list_change_logs_responses.go @@ -105,7 +105,6 @@ func (o *ListChangeLogsOK) GetPayload() *ListChangeLogsOKBody { } func (o *ListChangeLogsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListChangeLogsOKBody) // response payload @@ -179,7 +178,6 @@ func (o *ListChangeLogsDefault) GetPayload() *ListChangeLogsDefaultBody { } func (o *ListChangeLogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListChangeLogsDefaultBody) // response payload @@ -195,7 +193,6 @@ ListChangeLogsDefaultBody list change logs default body swagger:model ListChangeLogsDefaultBody */ type ListChangeLogsDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,7 @@ func (o *ListChangeLogsDefaultBody) ContextValidate(ctx context.Context, formats } func (o *ListChangeLogsDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *ListChangeLogsDefaultBody) contextValidateDetails(ctx context.Context, return err } } - } return nil @@ -400,7 +394,6 @@ ListChangeLogsDefaultBodyDetailsItems0 `Any` contains an arbitrary serialized pr swagger:model ListChangeLogsDefaultBodyDetailsItems0 */ type ListChangeLogsDefaultBodyDetailsItems0 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 @@ -439,7 +432,6 @@ type ListChangeLogsDefaultBodyDetailsItems0 struct { func (o *ListChangeLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -504,7 +496,6 @@ func (o *ListChangeLogsDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) erro // MarshalJSON marshals this object with additional properties into a JSON object func (o ListChangeLogsDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -595,7 +586,6 @@ ListChangeLogsOKBody list change logs OK body swagger:model ListChangeLogsOKBody */ type ListChangeLogsOKBody struct { - // List of available updates. Updates []*ListChangeLogsOKBodyUpdatesItems0 `json:"updates"` @@ -679,9 +669,7 @@ func (o *ListChangeLogsOKBody) ContextValidate(ctx context.Context, formats strf } func (o *ListChangeLogsOKBody) contextValidateUpdates(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Updates); i++ { - if o.Updates[i] != nil { if swag.IsZero(o.Updates[i]) { // not required @@ -701,7 +689,6 @@ func (o *ListChangeLogsOKBody) contextValidateUpdates(ctx context.Context, forma return err } } - } return nil @@ -730,7 +717,6 @@ ListChangeLogsOKBodyUpdatesItems0 list change logs OK body updates items0 swagger:model ListChangeLogsOKBodyUpdatesItems0 */ type ListChangeLogsOKBodyUpdatesItems0 struct { - // PMM Version. Version string `json:"version,omitempty"` diff --git a/api/server/v1/json/client/server_service/logs_parameters.go b/api/server/v1/json/client/server_service/logs_parameters.go index 31b876d12f8..eac190ca90c 100644 --- a/api/server/v1/json/client/server_service/logs_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/logs_responses.go b/api/server/v1/json/client/server_service/logs_responses.go index f49726868d9..aef555e7c81 100644 --- a/api/server/v1/json/client/server_service/logs_responses.go +++ b/api/server/v1/json/client/server_service/logs_responses.go @@ -47,7 +47,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, } } @@ -104,7 +103,6 @@ func (o *LogsOK) GetPayload() io.Writer { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +174,6 @@ func (o *LogsDefault) GetPayload() *LogsDefaultBody { } func (o *LogsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(LogsDefaultBody) // response payload @@ -192,7 +189,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/server/v1/json/client/server_service/readiness_parameters.go b/api/server/v1/json/client/server_service/readiness_parameters.go index ed27b254822..88fbc323803 100644 --- a/api/server/v1/json/client/server_service/readiness_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/readiness_responses.go b/api/server/v1/json/client/server_service/readiness_responses.go index 05b9d097c88..dd64679b8db 100644 --- a/api/server/v1/json/client/server_service/readiness_responses.go +++ b/api/server/v1/json/client/server_service/readiness_responses.go @@ -104,7 +104,6 @@ func (o *ReadinessOK) GetPayload() any { } 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 && !stderrors.Is(err, io.EOF) { return err @@ -176,7 +175,6 @@ func (o *ReadinessDefault) GetPayload() *ReadinessDefaultBody { } func (o *ReadinessDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ReadinessDefaultBody) // response payload @@ -192,7 +190,6 @@ ReadinessDefaultBody readiness default body swagger:model ReadinessDefaultBody */ type ReadinessDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -262,9 +259,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 swag.IsZero(o.Details[i]) { // not required @@ -284,7 +279,6 @@ func (o *ReadinessDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -397,7 +391,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 @@ -436,7 +429,6 @@ type ReadinessDefaultBodyDetailsItems0 struct { func (o *ReadinessDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -501,7 +493,6 @@ func (o *ReadinessDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ReadinessDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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/server/v1/json/client/server_service/start_update_parameters.go b/api/server/v1/json/client/server_service/start_update_parameters.go index 9ee4645d340..82bb6c79150 100644 --- a/api/server/v1/json/client/server_service/start_update_parameters.go +++ b/api/server/v1/json/client/server_service/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 StartUpdateBody @@ -130,7 +129,6 @@ func (o *StartUpdateParams) SetBody(body StartUpdateBody) { // 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/server/v1/json/client/server_service/start_update_responses.go b/api/server/v1/json/client/server_service/start_update_responses.go index b8a40459f28..97ef6b5f00c 100644 --- a/api/server/v1/json/client/server_service/start_update_responses.go +++ b/api/server/v1/json/client/server_service/start_update_responses.go @@ -104,7 +104,6 @@ func (o *StartUpdateOK) GetPayload() *StartUpdateOKBody { } func (o *StartUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartUpdateOKBody) // response payload @@ -178,7 +177,6 @@ func (o *StartUpdateDefault) GetPayload() *StartUpdateDefaultBody { } func (o *StartUpdateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(StartUpdateDefaultBody) // response payload @@ -194,7 +192,6 @@ StartUpdateBody start update body swagger:model StartUpdateBody */ type StartUpdateBody struct { - // new image NewImage string `json:"new_image,omitempty"` } @@ -232,7 +229,6 @@ StartUpdateDefaultBody start update default body swagger:model StartUpdateDefaultBody */ type StartUpdateDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -302,9 +298,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 swag.IsZero(o.Details[i]) { // not required @@ -324,7 +318,6 @@ func (o *StartUpdateDefaultBody) contextValidateDetails(ctx context.Context, for return err } } - } return nil @@ -437,7 +430,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 @@ -476,7 +468,6 @@ type StartUpdateDefaultBodyDetailsItems0 struct { func (o *StartUpdateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -541,7 +532,6 @@ func (o *StartUpdateDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o StartUpdateDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -632,7 +622,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/server/v1/json/client/server_service/update_status_parameters.go b/api/server/v1/json/client/server_service/update_status_parameters.go index fe3f759e402..c9ad7782841 100644 --- a/api/server/v1/json/client/server_service/update_status_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/update_status_responses.go b/api/server/v1/json/client/server_service/update_status_responses.go index a32311edaf2..b3d125d81dc 100644 --- a/api/server/v1/json/client/server_service/update_status_responses.go +++ b/api/server/v1/json/client/server_service/update_status_responses.go @@ -104,7 +104,6 @@ func (o *UpdateStatusOK) GetPayload() *UpdateStatusOKBody { } func (o *UpdateStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateStatusOKBody) // response payload @@ -178,7 +177,6 @@ func (o *UpdateStatusDefault) GetPayload() *UpdateStatusDefaultBody { } func (o *UpdateStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateStatusDefaultBody) // response payload @@ -194,7 +192,6 @@ UpdateStatusBody update status body swagger:model UpdateStatusBody */ type UpdateStatusBody struct { - // Authentication token. AuthToken string `json:"auth_token,omitempty"` @@ -235,7 +232,6 @@ UpdateStatusDefaultBody update status default body swagger:model UpdateStatusDefaultBody */ type UpdateStatusDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -305,9 +301,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 swag.IsZero(o.Details[i]) { // not required @@ -327,7 +321,6 @@ func (o *UpdateStatusDefaultBody) contextValidateDetails(ctx context.Context, fo return err } } - } return nil @@ -440,7 +433,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 @@ -479,7 +471,6 @@ type UpdateStatusDefaultBodyDetailsItems0 struct { func (o *UpdateStatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -544,7 +535,6 @@ func (o *UpdateStatusDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateStatusDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -635,7 +625,6 @@ UpdateStatusOKBody update status OK body swagger:model UpdateStatusOKBody */ type UpdateStatusOKBody struct { - // Progress log lines. LogLines []string `json:"log_lines"` diff --git a/api/server/v1/json/client/server_service/version_parameters.go b/api/server/v1/json/client/server_service/version_parameters.go index 3712817fa88..89ff6074173 100644 --- a/api/server/v1/json/client/server_service/version_parameters.go +++ b/api/server/v1/json/client/server_service/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/server/v1/json/client/server_service/version_responses.go b/api/server/v1/json/client/server_service/version_responses.go index dc9415e601c..2357cddccd3 100644 --- a/api/server/v1/json/client/server_service/version_responses.go +++ b/api/server/v1/json/client/server_service/version_responses.go @@ -105,7 +105,6 @@ func (o *VersionOK) GetPayload() *VersionOKBody { } func (o *VersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(VersionOKBody) // response payload @@ -179,7 +178,6 @@ func (o *VersionDefault) GetPayload() *VersionDefaultBody { } func (o *VersionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(VersionDefaultBody) // response payload @@ -195,7 +193,6 @@ VersionDefaultBody version default body swagger:model VersionDefaultBody */ type VersionDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *VersionDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -400,7 +394,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 @@ -439,7 +432,6 @@ type VersionDefaultBodyDetailsItems0 struct { func (o *VersionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 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 @@ -504,7 +496,6 @@ func (o *VersionDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o VersionDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 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 @@ -595,7 +586,6 @@ VersionOKBody version OK body swagger:model VersionOKBody */ type VersionOKBody struct { - // PMM Server version. Version string `json:"version,omitempty"` @@ -751,7 +741,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 swag.IsZero(o.Managed) { // not required @@ -776,7 +765,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 swag.IsZero(o.Server) { // not required @@ -823,7 +811,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"` @@ -889,7 +876,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/server/v1/server.pb.go b/api/server/v1/server.pb.go index 613b8a403a3..131d1f1cd78 100644 --- a/api/server/v1/server.pb.go +++ b/api/server/v1/server.pb.go @@ -7,17 +7,19 @@ package serverv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - common "github.com/percona/pmm/api/common" - _ "github.com/percona/pmm/api/extensions/v1" _ "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" - unsafe "unsafe" + + common "github.com/percona/pmm/api/common" + _ "github.com/percona/pmm/api/extensions/v1" ) const ( @@ -1914,40 +1916,43 @@ func file_server_v1_server_proto_rawDescGZIP() []byte { return file_server_v1_server_proto_rawDescData } -var file_server_v1_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_server_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_server_v1_server_proto_goTypes = []any{ - (DistributionMethod)(0), // 0: server.v1.DistributionMethod - (*VersionInfo)(nil), // 1: server.v1.VersionInfo - (*VersionRequest)(nil), // 2: server.v1.VersionRequest - (*VersionResponse)(nil), // 3: server.v1.VersionResponse - (*ReadinessRequest)(nil), // 4: server.v1.ReadinessRequest - (*ReadinessResponse)(nil), // 5: server.v1.ReadinessResponse - (*LeaderHealthCheckRequest)(nil), // 6: server.v1.LeaderHealthCheckRequest - (*LeaderHealthCheckResponse)(nil), // 7: server.v1.LeaderHealthCheckResponse - (*CheckUpdatesRequest)(nil), // 8: server.v1.CheckUpdatesRequest - (*DockerVersionInfo)(nil), // 9: server.v1.DockerVersionInfo - (*CheckUpdatesResponse)(nil), // 10: server.v1.CheckUpdatesResponse - (*ListChangeLogsRequest)(nil), // 11: server.v1.ListChangeLogsRequest - (*ListChangeLogsResponse)(nil), // 12: server.v1.ListChangeLogsResponse - (*StartUpdateRequest)(nil), // 13: server.v1.StartUpdateRequest - (*StartUpdateResponse)(nil), // 14: server.v1.StartUpdateResponse - (*UpdateStatusRequest)(nil), // 15: server.v1.UpdateStatusRequest - (*UpdateStatusResponse)(nil), // 16: server.v1.UpdateStatusResponse - (*MetricsResolutions)(nil), // 17: server.v1.MetricsResolutions - (*AdvisorRunIntervals)(nil), // 18: server.v1.AdvisorRunIntervals - (*Settings)(nil), // 19: server.v1.Settings - (*ReadOnlySettings)(nil), // 20: server.v1.ReadOnlySettings - (*GetSettingsRequest)(nil), // 21: server.v1.GetSettingsRequest - (*GetReadOnlySettingsRequest)(nil), // 22: server.v1.GetReadOnlySettingsRequest - (*GetSettingsResponse)(nil), // 23: server.v1.GetSettingsResponse - (*GetReadOnlySettingsResponse)(nil), // 24: server.v1.GetReadOnlySettingsResponse - (*ChangeSettingsRequest)(nil), // 25: server.v1.ChangeSettingsRequest - (*ChangeSettingsResponse)(nil), // 26: server.v1.ChangeSettingsResponse - (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 28: google.protobuf.Duration - (*common.StringArray)(nil), // 29: common.StringArray -} +var ( + file_server_v1_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) + file_server_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 26) + file_server_v1_server_proto_goTypes = []any{ + (DistributionMethod)(0), // 0: server.v1.DistributionMethod + (*VersionInfo)(nil), // 1: server.v1.VersionInfo + (*VersionRequest)(nil), // 2: server.v1.VersionRequest + (*VersionResponse)(nil), // 3: server.v1.VersionResponse + (*ReadinessRequest)(nil), // 4: server.v1.ReadinessRequest + (*ReadinessResponse)(nil), // 5: server.v1.ReadinessResponse + (*LeaderHealthCheckRequest)(nil), // 6: server.v1.LeaderHealthCheckRequest + (*LeaderHealthCheckResponse)(nil), // 7: server.v1.LeaderHealthCheckResponse + (*CheckUpdatesRequest)(nil), // 8: server.v1.CheckUpdatesRequest + (*DockerVersionInfo)(nil), // 9: server.v1.DockerVersionInfo + (*CheckUpdatesResponse)(nil), // 10: server.v1.CheckUpdatesResponse + (*ListChangeLogsRequest)(nil), // 11: server.v1.ListChangeLogsRequest + (*ListChangeLogsResponse)(nil), // 12: server.v1.ListChangeLogsResponse + (*StartUpdateRequest)(nil), // 13: server.v1.StartUpdateRequest + (*StartUpdateResponse)(nil), // 14: server.v1.StartUpdateResponse + (*UpdateStatusRequest)(nil), // 15: server.v1.UpdateStatusRequest + (*UpdateStatusResponse)(nil), // 16: server.v1.UpdateStatusResponse + (*MetricsResolutions)(nil), // 17: server.v1.MetricsResolutions + (*AdvisorRunIntervals)(nil), // 18: server.v1.AdvisorRunIntervals + (*Settings)(nil), // 19: server.v1.Settings + (*ReadOnlySettings)(nil), // 20: server.v1.ReadOnlySettings + (*GetSettingsRequest)(nil), // 21: server.v1.GetSettingsRequest + (*GetReadOnlySettingsRequest)(nil), // 22: server.v1.GetReadOnlySettingsRequest + (*GetSettingsResponse)(nil), // 23: server.v1.GetSettingsResponse + (*GetReadOnlySettingsResponse)(nil), // 24: server.v1.GetReadOnlySettingsResponse + (*ChangeSettingsRequest)(nil), // 25: server.v1.ChangeSettingsRequest + (*ChangeSettingsResponse)(nil), // 26: server.v1.ChangeSettingsResponse + (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 28: google.protobuf.Duration + (*common.StringArray)(nil), // 29: common.StringArray + } +) + var file_server_v1_server_proto_depIdxs = []int32{ 27, // 0: server.v1.VersionInfo.timestamp:type_name -> google.protobuf.Timestamp 1, // 1: server.v1.VersionResponse.server:type_name -> server.v1.VersionInfo diff --git a/api/server/v1/server.pb.validate.go b/api/server/v1/server.pb.validate.go index dd94f1823e5..f684fea246b 100644 --- a/api/server/v1/server.pb.validate.go +++ b/api/server/v1/server.pb.validate.go @@ -3317,7 +3317,6 @@ func (m *ChangeSettingsRequest) validate(all bool) error { } if m.AwsPartitions != nil { - if all { switch v := interface{}(m.GetAwsPartitions()).(type) { case interface{ ValidateAll() error }: @@ -3346,7 +3345,6 @@ func (m *ChangeSettingsRequest) validate(all bool) error { } } } - } if m.EnableAdvisor != nil { diff --git a/api/server/v1/server_grpc.pb.go b/api/server/v1/server_grpc.pb.go index 145fe2a7a18..29719f730c8 100644 --- a/api/server/v1/server_grpc.pb.go +++ b/api/server/v1/server_grpc.pb.go @@ -8,6 +8,7 @@ package serverv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -208,30 +209,39 @@ type UnimplementedServerServiceServer struct{} func (UnimplementedServerServiceServer) Version(context.Context, *VersionRequest) (*VersionResponse, error) { return nil, status.Error(codes.Unimplemented, "method Version not implemented") } + func (UnimplementedServerServiceServer) Readiness(context.Context, *ReadinessRequest) (*ReadinessResponse, error) { return nil, status.Error(codes.Unimplemented, "method Readiness not implemented") } + func (UnimplementedServerServiceServer) LeaderHealthCheck(context.Context, *LeaderHealthCheckRequest) (*LeaderHealthCheckResponse, error) { return nil, status.Error(codes.Unimplemented, "method LeaderHealthCheck not implemented") } + func (UnimplementedServerServiceServer) CheckUpdates(context.Context, *CheckUpdatesRequest) (*CheckUpdatesResponse, error) { return nil, status.Error(codes.Unimplemented, "method CheckUpdates not implemented") } + func (UnimplementedServerServiceServer) ListChangeLogs(context.Context, *ListChangeLogsRequest) (*ListChangeLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListChangeLogs not implemented") } + func (UnimplementedServerServiceServer) StartUpdate(context.Context, *StartUpdateRequest) (*StartUpdateResponse, error) { return nil, status.Error(codes.Unimplemented, "method StartUpdate not implemented") } + func (UnimplementedServerServiceServer) UpdateStatus(context.Context, *UpdateStatusRequest) (*UpdateStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateStatus not implemented") } + func (UnimplementedServerServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetSettings not implemented") } + func (UnimplementedServerServiceServer) GetReadOnlySettings(context.Context, *GetReadOnlySettingsRequest) (*GetReadOnlySettingsResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetReadOnlySettings not implemented") } + func (UnimplementedServerServiceServer) ChangeSettings(context.Context, *ChangeSettingsRequest) (*ChangeSettingsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ChangeSettings not implemented") } diff --git a/api/uievents/v1/server.pb.go b/api/uievents/v1/server.pb.go index 6f3472d1deb..41d144b9c29 100644 --- a/api/uievents/v1/server.pb.go +++ b/api/uievents/v1/server.pb.go @@ -7,13 +7,14 @@ package uieventsv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "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" - unsafe "unsafe" ) const ( @@ -467,16 +468,19 @@ func file_uievents_v1_server_proto_rawDescGZIP() []byte { return file_uievents_v1_server_proto_rawDescData } -var file_uievents_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_uievents_v1_server_proto_goTypes = []any{ - (*NotificationEvent)(nil), // 0: uievents.v1.NotificationEvent - (*FetchingEvent)(nil), // 1: uievents.v1.FetchingEvent - (*DashboardUsageEvent)(nil), // 2: uievents.v1.DashboardUsageEvent - (*UserFlowEvent)(nil), // 3: uievents.v1.UserFlowEvent - (*StoreRequest)(nil), // 4: uievents.v1.StoreRequest - (*StoreResponse)(nil), // 5: uievents.v1.StoreResponse - nil, // 6: uievents.v1.UserFlowEvent.ParamsEntry -} +var ( + file_uievents_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 7) + file_uievents_v1_server_proto_goTypes = []any{ + (*NotificationEvent)(nil), // 0: uievents.v1.NotificationEvent + (*FetchingEvent)(nil), // 1: uievents.v1.FetchingEvent + (*DashboardUsageEvent)(nil), // 2: uievents.v1.DashboardUsageEvent + (*UserFlowEvent)(nil), // 3: uievents.v1.UserFlowEvent + (*StoreRequest)(nil), // 4: uievents.v1.StoreRequest + (*StoreResponse)(nil), // 5: uievents.v1.StoreResponse + nil, // 6: uievents.v1.UserFlowEvent.ParamsEntry + } +) + var file_uievents_v1_server_proto_depIdxs = []int32{ 6, // 0: uievents.v1.UserFlowEvent.params:type_name -> uievents.v1.UserFlowEvent.ParamsEntry 0, // 1: uievents.v1.StoreRequest.notifications:type_name -> uievents.v1.NotificationEvent diff --git a/api/uievents/v1/server.pb.gw.go b/api/uievents/v1/server.pb.gw.go index e968c8546df..7a044e6b3ba 100644 --- a/api/uievents/v1/server.pb.gw.go +++ b/api/uievents/v1/server.pb.gw.go @@ -148,10 +148,6 @@ func RegisterUIEventsServiceHandlerClient(ctx context.Context, mux *runtime.Serv return nil } -var ( - pattern_UIEventsService_Store_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "ui-events", "Store"}, "")) -) +var pattern_UIEventsService_Store_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "ui-events", "Store"}, "")) -var ( - forward_UIEventsService_Store_0 = runtime.ForwardResponseMessage -) +var forward_UIEventsService_Store_0 = runtime.ForwardResponseMessage diff --git a/api/uievents/v1/server_grpc.pb.go b/api/uievents/v1/server_grpc.pb.go index 3a3848baa05..f4343f61ac3 100644 --- a/api/uievents/v1/server_grpc.pb.go +++ b/api/uievents/v1/server_grpc.pb.go @@ -8,6 +8,7 @@ package uieventsv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/api/user/v1/json/client/user_service/get_user_parameters.go b/api/user/v1/json/client/user_service/get_user_parameters.go index 8bf63bd7f8b..9d7ebe5ff7d 100644 --- a/api/user/v1/json/client/user_service/get_user_parameters.go +++ b/api/user/v1/json/client/user_service/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/user/v1/json/client/user_service/get_user_responses.go b/api/user/v1/json/client/user_service/get_user_responses.go index 15440682187..44687c0b774 100644 --- a/api/user/v1/json/client/user_service/get_user_responses.go +++ b/api/user/v1/json/client/user_service/get_user_responses.go @@ -105,7 +105,6 @@ func (o *GetUserOK) GetPayload() *GetUserOKBody { } func (o *GetUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetUserOKBody) // response payload @@ -179,7 +178,6 @@ func (o *GetUserDefault) GetPayload() *GetUserDefaultBody { } func (o *GetUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(GetUserDefaultBody) // response payload @@ -195,7 +193,6 @@ GetUserDefaultBody get user default body swagger:model GetUserDefaultBody */ type GetUserDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -265,9 +262,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 swag.IsZero(o.Details[i]) { // not required @@ -287,7 +282,6 @@ func (o *GetUserDefaultBody) contextValidateDetails(ctx context.Context, formats return err } } - } return nil @@ -316,7 +310,6 @@ GetUserDefaultBodyDetailsItems0 get user default body details items0 swagger:model GetUserDefaultBodyDetailsItems0 */ type GetUserDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -328,7 +321,6 @@ type GetUserDefaultBodyDetailsItems0 struct { func (o *GetUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -366,7 +358,6 @@ func (o *GetUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o GetUserDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -430,7 +421,6 @@ GetUserOKBody get user OK body swagger:model GetUserOKBody */ type GetUserOKBody struct { - // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/user/v1/json/client/user_service/list_users_parameters.go b/api/user/v1/json/client/user_service/list_users_parameters.go index d5b20ea07cd..1d3c35510b7 100644 --- a/api/user/v1/json/client/user_service/list_users_parameters.go +++ b/api/user/v1/json/client/user_service/list_users_parameters.go @@ -115,7 +115,6 @@ func (o *ListUsersParams) SetHTTPClient(client *http.Client) { // WriteToRequest writes these params to a swagger request func (o *ListUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - if err := r.SetTimeout(o.timeout); err != nil { return err } diff --git a/api/user/v1/json/client/user_service/list_users_responses.go b/api/user/v1/json/client/user_service/list_users_responses.go index 464f768ba29..ae9f445a45b 100644 --- a/api/user/v1/json/client/user_service/list_users_responses.go +++ b/api/user/v1/json/client/user_service/list_users_responses.go @@ -104,7 +104,6 @@ func (o *ListUsersOK) GetPayload() *ListUsersOKBody { } func (o *ListUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListUsersOKBody) // response payload @@ -178,7 +177,6 @@ func (o *ListUsersDefault) GetPayload() *ListUsersDefaultBody { } func (o *ListUsersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(ListUsersDefaultBody) // response payload @@ -194,7 +192,6 @@ ListUsersDefaultBody list users default body swagger:model ListUsersDefaultBody */ type ListUsersDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -264,9 +261,7 @@ func (o *ListUsersDefaultBody) ContextValidate(ctx context.Context, formats strf } func (o *ListUsersDefaultBody) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Details); i++ { - if o.Details[i] != nil { if swag.IsZero(o.Details[i]) { // not required @@ -286,7 +281,6 @@ func (o *ListUsersDefaultBody) contextValidateDetails(ctx context.Context, forma return err } } - } return nil @@ -315,7 +309,6 @@ ListUsersDefaultBodyDetailsItems0 list users default body details items0 swagger:model ListUsersDefaultBodyDetailsItems0 */ type ListUsersDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -327,7 +320,6 @@ type ListUsersDefaultBodyDetailsItems0 struct { func (o *ListUsersDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -365,7 +357,6 @@ func (o *ListUsersDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o ListUsersDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -429,7 +420,6 @@ ListUsersOKBody list users OK body swagger:model ListUsersOKBody */ type ListUsersOKBody struct { - // users Users []*ListUsersOKBodyUsersItems0 `json:"users"` } @@ -493,9 +483,7 @@ func (o *ListUsersOKBody) ContextValidate(ctx context.Context, formats strfmt.Re } func (o *ListUsersOKBody) contextValidateUsers(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(o.Users); i++ { - if o.Users[i] != nil { if swag.IsZero(o.Users[i]) { // not required @@ -515,7 +503,6 @@ func (o *ListUsersOKBody) contextValidateUsers(ctx context.Context, formats strf return err } } - } return nil @@ -544,7 +531,6 @@ ListUsersOKBodyUsersItems0 list users OK body users items0 swagger:model ListUsersOKBodyUsersItems0 */ type ListUsersOKBodyUsersItems0 struct { - // user id UserID int64 `json:"user_id,omitempty"` diff --git a/api/user/v1/json/client/user_service/update_user_parameters.go b/api/user/v1/json/client/user_service/update_user_parameters.go index d98c9c45bb0..c1e0a19fa5d 100644 --- a/api/user/v1/json/client/user_service/update_user_parameters.go +++ b/api/user/v1/json/client/user_service/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/user/v1/json/client/user_service/update_user_responses.go b/api/user/v1/json/client/user_service/update_user_responses.go index 73f31851bae..f169cbad858 100644 --- a/api/user/v1/json/client/user_service/update_user_responses.go +++ b/api/user/v1/json/client/user_service/update_user_responses.go @@ -105,7 +105,6 @@ func (o *UpdateUserOK) GetPayload() *UpdateUserOKBody { } func (o *UpdateUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateUserOKBody) // response payload @@ -179,7 +178,6 @@ func (o *UpdateUserDefault) GetPayload() *UpdateUserDefaultBody { } func (o *UpdateUserDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(UpdateUserDefaultBody) // response payload @@ -195,7 +193,6 @@ UpdateUserBody update user body swagger:model UpdateUserBody */ type UpdateUserBody struct { - // Product Tour ProductTourCompleted *bool `json:"product_tour_completed,omitempty"` @@ -239,7 +236,6 @@ UpdateUserDefaultBody update user default body swagger:model UpdateUserDefaultBody */ type UpdateUserDefaultBody struct { - // code Code int32 `json:"code,omitempty"` @@ -309,9 +305,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 swag.IsZero(o.Details[i]) { // not required @@ -331,7 +325,6 @@ func (o *UpdateUserDefaultBody) contextValidateDetails(ctx context.Context, form return err } } - } return nil @@ -360,7 +353,6 @@ UpdateUserDefaultBodyDetailsItems0 update user default body details items0 swagger:model UpdateUserDefaultBodyDetailsItems0 */ type UpdateUserDefaultBodyDetailsItems0 struct { - // at type AtType string `json:"@type,omitempty"` @@ -372,7 +364,6 @@ type UpdateUserDefaultBodyDetailsItems0 struct { func (o *UpdateUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // stage 1, bind the properties var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -410,7 +401,6 @@ func (o *UpdateUserDefaultBodyDetailsItems0) UnmarshalJSON(data []byte) error { // MarshalJSON marshals this object with additional properties into a JSON object func (o UpdateUserDefaultBodyDetailsItems0) MarshalJSON() ([]byte, error) { var stage1 struct { - // at type AtType string `json:"@type,omitempty"` } @@ -474,7 +464,6 @@ UpdateUserOKBody update user OK body swagger:model UpdateUserOKBody */ type UpdateUserOKBody struct { - // User ID UserID int64 `json:"user_id,omitempty"` diff --git a/api/user/v1/user.pb.go b/api/user/v1/user.pb.go index ea4c06a469e..12a954ca3f4 100644 --- a/api/user/v1/user.pb.go +++ b/api/user/v1/user.pb.go @@ -7,14 +7,15 @@ package userv1 import ( + reflect "reflect" + sync "sync" + unsafe "unsafe" + _ "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" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" - unsafe "unsafe" ) const ( @@ -493,17 +494,20 @@ func file_user_v1_user_proto_rawDescGZIP() []byte { return file_user_v1_user_proto_rawDescData } -var file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_user_v1_user_proto_goTypes = []any{ - (*GetUserRequest)(nil), // 0: user.v1.GetUserRequest - (*GetUserResponse)(nil), // 1: user.v1.GetUserResponse - (*UpdateUserRequest)(nil), // 2: user.v1.UpdateUserRequest - (*UpdateUserResponse)(nil), // 3: user.v1.UpdateUserResponse - (*ListUsersRequest)(nil), // 4: user.v1.ListUsersRequest - (*ListUsersResponse)(nil), // 5: user.v1.ListUsersResponse - (*ListUsersResponse_UserDetail)(nil), // 6: user.v1.ListUsersResponse.UserDetail - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp -} +var ( + file_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 7) + file_user_v1_user_proto_goTypes = []any{ + (*GetUserRequest)(nil), // 0: user.v1.GetUserRequest + (*GetUserResponse)(nil), // 1: user.v1.GetUserResponse + (*UpdateUserRequest)(nil), // 2: user.v1.UpdateUserRequest + (*UpdateUserResponse)(nil), // 3: user.v1.UpdateUserResponse + (*ListUsersRequest)(nil), // 4: user.v1.ListUsersRequest + (*ListUsersResponse)(nil), // 5: user.v1.ListUsersResponse + (*ListUsersResponse_UserDetail)(nil), // 6: user.v1.ListUsersResponse.UserDetail + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + } +) + var file_user_v1_user_proto_depIdxs = []int32{ 7, // 0: user.v1.GetUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp 7, // 1: user.v1.UpdateUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp diff --git a/api/user/v1/user_grpc.pb.go b/api/user/v1/user_grpc.pb.go index 5166f03fc21..4201de2b381 100644 --- a/api/user/v1/user_grpc.pb.go +++ b/api/user/v1/user_grpc.pb.go @@ -8,6 +8,7 @@ package userv1 import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -95,9 +96,11 @@ type UnimplementedUserServiceServer struct{} func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetUser not implemented") } + func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) { return nil, status.Error(codes.Unimplemented, "method UpdateUser not implemented") } + func (UnimplementedUserServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListUsers not implemented") } From 0d18cccca6edba7aa7b0fcce9a613288cfe6a78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ctvrtka?= Date: Wed, 20 May 2026 11:03:12 +0200 Subject: [PATCH 08/15] Gen and format. --- api/accesscontrol/v1beta1/accesscontrol.pb.go | 1 - .../v1beta1/accesscontrol.pb.validate.go | 45 ++- api/actions/v1/actions.pb.go | 3 +- api/actions/v1/actions.pb.validate.go | 96 ++++--- api/advisors/v1/advisors.pb.go | 7 +- api/advisors/v1/advisors.pb.validate.go | 54 ++-- api/agent/v1/agent.pb.go | 145 +++++----- api/agent/v1/agent.pb.validate.go | 258 ++++++++++++------ api/agent/v1/collector.pb.go | 5 +- api/agent/v1/collector.pb.validate.go | 18 +- api/agentlocal/v1/agentlocal.pb.go | 5 +- api/agentlocal/v1/agentlocal.pb.validate.go | 18 +- api/alerting/v1/alerting.pb.go | 11 +- api/alerting/v1/alerting.pb.validate.go | 51 ++-- api/alerting/v1/params.pb.go | 5 +- api/backup/v1/artifacts.pb.go | 7 +- api/backup/v1/artifacts.pb.validate.go | 24 +- api/backup/v1/backup.pb.go | 5 +- api/backup/v1/backup.pb.validate.go | 45 ++- api/backup/v1/common.pb.go | 5 +- api/backup/v1/common.pb.validate.go | 12 +- api/backup/v1/errors.pb.go | 5 +- api/backup/v1/errors.pb.validate.go | 3 +- api/backup/v1/locations.pb.go | 1 - api/backup/v1/locations.pb.validate.go | 39 ++- api/backup/v1/restores.pb.go | 5 +- api/backup/v1/restores.pb.validate.go | 21 +- api/common/common.pb.go | 1 - api/common/common.pb.validate.go | 6 +- api/common/metrics_resolutions.pb.go | 1 - api/common/metrics_resolutions.pb.validate.go | 3 +- api/dump/v1beta1/dump.pb.go | 3 +- api/dump/v1beta1/dump.pb.validate.go | 39 ++- api/extensions/v1/redact.pb.go | 3 +- api/ha/v1beta1/ha.pb.go | 3 +- api/ha/v1beta1/ha.pb.validate.go | 15 +- api/inventory/v1/agent_status.pb.go | 3 +- api/inventory/v1/agents.pb.go | 7 +- api/inventory/v1/agents.pb.validate.go | 201 +++++++++----- api/inventory/v1/log_level.pb.go | 3 +- api/inventory/v1/nodes.pb.go | 3 +- api/inventory/v1/nodes.pb.validate.go | 60 ++-- api/inventory/v1/services.pb.go | 3 +- api/inventory/v1/services.pb.validate.go | 78 ++++-- api/management/v1/agent.pb.go | 5 +- api/management/v1/agent.pb.validate.go | 33 ++- api/management/v1/annotation.pb.go | 1 - api/management/v1/annotation.pb.validate.go | 6 +- api/management/v1/azure.pb.go | 3 +- api/management/v1/azure.pb.validate.go | 15 +- api/management/v1/elasticache.pb.go | 5 +- api/management/v1/elasticache.pb.validate.go | 15 +- api/management/v1/external.pb.go | 3 +- api/management/v1/external.pb.validate.go | 6 +- api/management/v1/haproxy.pb.go | 3 +- api/management/v1/haproxy.pb.validate.go | 6 +- .../add_service_responses.go | 3 + .../discover_elasti_cache_parameters.go | 3 - .../discover_elasti_cache_responses.go | 3 - api/management/v1/json/v1.json | 5 + api/management/v1/metrics.pb.go | 3 +- api/management/v1/mongodb.pb.go | 1 - api/management/v1/mongodb.pb.validate.go | 6 +- api/management/v1/mysql.pb.go | 1 - api/management/v1/mysql.pb.validate.go | 6 +- api/management/v1/node.pb.go | 7 +- api/management/v1/node.pb.validate.go | 36 ++- api/management/v1/postgresql.pb.go | 1 - api/management/v1/postgresql.pb.validate.go | 6 +- api/management/v1/proxysql.pb.go | 1 - api/management/v1/proxysql.pb.validate.go | 6 +- api/management/v1/rds.pb.go | 3 +- api/management/v1/rds.pb.validate.go | 15 +- api/management/v1/service.pb.go | 5 +- api/management/v1/service.pb.validate.go | 21 +- api/management/v1/severity.pb.go | 3 +- api/management/v1/valkey.pb.go | 1 - api/management/v1/valkey.pb.validate.go | 6 +- api/qan/v1/collector.pb.go | 5 +- api/qan/v1/collector.pb.validate.go | 9 +- api/qan/v1/filters.pb.go | 1 - api/qan/v1/filters.pb.validate.go | 12 +- api/qan/v1/object_details.pb.go | 3 +- api/qan/v1/object_details.pb.validate.go | 66 +++-- api/qan/v1/profile.pb.go | 1 - api/qan/v1/profile.pb.validate.go | 18 +- api/qan/v1/qan.pb.go | 3 +- api/qan/v1/qan.pb.validate.go | 6 +- api/qan/v1/service.pb.go | 1 - api/qan/v1/service.pb.validate.go | 12 +- api/realtimeanalytics/v1/collector.pb.go | 1 - .../v1/collector.pb.validate.go | 6 +- api/realtimeanalytics/v1/query.pb.go | 1 - api/realtimeanalytics/v1/query.pb.validate.go | 6 +- .../v1/realtimeanalytics.pb.go | 5 +- .../v1/realtimeanalytics.pb.validate.go | 33 ++- api/server/v1/httperror.pb.go | 1 - api/server/v1/httperror.pb.validate.go | 3 +- api/server/v1/server.pb.go | 3 +- api/server/v1/server.pb.validate.go | 78 ++++-- api/swagger/swagger-dev.json | 5 + api/swagger/swagger.json | 5 + api/uievents/v1/server.pb.go | 1 - api/uievents/v1/server.pb.validate.go | 18 +- api/user/v1/user.pb.go | 1 - api/user/v1/user.pb.validate.go | 21 +- go.sum | 4 +- .../management/elasticache_discovery.go | 3 +- managed/services/management/service_test.go | 1 + 109 files changed, 1191 insertions(+), 711 deletions(-) diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.go b/api/accesscontrol/v1beta1/accesscontrol.pb.go index f5e8ea4b004..ebec3bf05b7 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.go @@ -844,7 +844,6 @@ var ( (*ListRolesResponse_RoleData)(nil), // 14: accesscontrol.v1beta1.ListRolesResponse.RoleData } ) - var file_accesscontrol_v1beta1_accesscontrol_proto_depIdxs = []int32{ 14, // 0: accesscontrol.v1beta1.ListRolesResponse.roles:type_name -> accesscontrol.v1beta1.ListRolesResponse.RoleData 0, // 1: accesscontrol.v1beta1.AccessControlService.CreateRole:input_type -> accesscontrol.v1beta1.CreateRoleRequest diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go b/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go index a055badfff2..631fd1a9c6c 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.validate.go @@ -139,7 +139,8 @@ func (e CreateRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CreateRoleRequestValidationError{} @@ -243,7 +244,8 @@ func (e CreateRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CreateRoleResponseValidationError{} @@ -377,7 +379,8 @@ func (e UpdateRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateRoleRequestValidationError{} @@ -479,7 +482,8 @@ func (e UpdateRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateRoleResponseValidationError{} @@ -594,7 +598,8 @@ func (e DeleteRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteRoleRequestValidationError{} @@ -696,7 +701,8 @@ func (e DeleteRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteRoleResponseValidationError{} @@ -807,7 +813,8 @@ func (e GetRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetRoleRequestValidationError{} @@ -915,7 +922,8 @@ func (e GetRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetRoleResponseValidationError{} @@ -1028,7 +1036,8 @@ func (e SetDefaultRoleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SetDefaultRoleRequestValidationError{} @@ -1130,7 +1139,8 @@ func (e SetDefaultRoleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SetDefaultRoleResponseValidationError{} @@ -1243,7 +1253,8 @@ func (e AssignRolesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AssignRolesRequestValidationError{} @@ -1345,7 +1356,8 @@ func (e AssignRolesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AssignRolesResponseValidationError{} @@ -1445,7 +1457,8 @@ func (e ListRolesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListRolesRequestValidationError{} @@ -1581,7 +1594,8 @@ func (e ListRolesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListRolesResponseValidationError{} @@ -1691,7 +1705,8 @@ func (e ListRolesResponse_RoleDataValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListRolesResponse_RoleDataValidationError{} diff --git a/api/actions/v1/actions.pb.go b/api/actions/v1/actions.pb.go index 8cc8bdac9e8..35461ae3739 100644 --- a/api/actions/v1/actions.pb.go +++ b/api/actions/v1/actions.pb.go @@ -2614,7 +2614,7 @@ var ( file_actions_v1_actions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_actions_v1_actions_proto_msgTypes = make([]protoimpl.MessageInfo, 32) file_actions_v1_actions_proto_goTypes = []any{ - (ActionType)(0), // 0: actions.v1.ActionType + ActionType(0), // 0: actions.v1.ActionType (*GetActionRequest)(nil), // 1: actions.v1.GetActionRequest (*GetActionResponse)(nil), // 2: actions.v1.GetActionResponse (*StartMySQLExplainActionParams)(nil), // 3: actions.v1.StartMySQLExplainActionParams @@ -2649,7 +2649,6 @@ var ( (*StartServiceActionResponse)(nil), // 32: actions.v1.StartServiceActionResponse } ) - var file_actions_v1_actions_proto_depIdxs = []int32{ 3, // 0: actions.v1.StartServiceActionRequest.mysql_explain:type_name -> actions.v1.StartMySQLExplainActionParams 5, // 1: actions.v1.StartServiceActionRequest.mysql_explain_json:type_name -> actions.v1.StartMySQLExplainJSONActionParams diff --git a/api/actions/v1/actions.pb.validate.go b/api/actions/v1/actions.pb.validate.go index 3c8feb7b777..fc9b2a60515 100644 --- a/api/actions/v1/actions.pb.validate.go +++ b/api/actions/v1/actions.pb.validate.go @@ -133,7 +133,8 @@ func (e GetActionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetActionRequestValidationError{} @@ -245,7 +246,8 @@ func (e GetActionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetActionResponseValidationError{} @@ -365,7 +367,8 @@ func (e StartMySQLExplainActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLExplainActionParamsValidationError{} @@ -472,7 +475,8 @@ func (e StartMySQLExplainActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLExplainActionResultValidationError{} @@ -594,7 +598,8 @@ func (e StartMySQLExplainJSONActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLExplainJSONActionParamsValidationError{} @@ -703,7 +708,8 @@ func (e StartMySQLExplainJSONActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLExplainJSONActionResultValidationError{} @@ -827,7 +833,8 @@ func (e StartMySQLExplainTraditionalJSONActionParamsValidationError) Error() str key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLExplainTraditionalJSONActionParamsValidationError{} @@ -938,7 +945,8 @@ func (e StartMySQLExplainTraditionalJSONActionResultValidationError) Error() str key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLExplainTraditionalJSONActionResultValidationError{} @@ -1069,7 +1077,8 @@ func (e StartMySQLShowCreateTableActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLShowCreateTableActionParamsValidationError{} @@ -1178,7 +1187,8 @@ func (e StartMySQLShowCreateTableActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLShowCreateTableActionResultValidationError{} @@ -1309,7 +1319,8 @@ func (e StartMySQLShowTableStatusActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLShowTableStatusActionParamsValidationError{} @@ -1418,7 +1429,8 @@ func (e StartMySQLShowTableStatusActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLShowTableStatusActionResultValidationError{} @@ -1547,7 +1559,8 @@ func (e StartMySQLShowIndexActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLShowIndexActionParamsValidationError{} @@ -1654,7 +1667,8 @@ func (e StartMySQLShowIndexActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMySQLShowIndexActionResultValidationError{} @@ -1786,7 +1800,8 @@ func (e StartPostgreSQLShowCreateTableActionParamsValidationError) Error() strin key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPostgreSQLShowCreateTableActionParamsValidationError{} @@ -1896,7 +1911,8 @@ func (e StartPostgreSQLShowCreateTableActionResultValidationError) Error() strin key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPostgreSQLShowCreateTableActionResultValidationError{} @@ -2027,7 +2043,8 @@ func (e StartPostgreSQLShowIndexActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPostgreSQLShowIndexActionParamsValidationError{} @@ -2136,7 +2153,8 @@ func (e StartPostgreSQLShowIndexActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPostgreSQLShowIndexActionResultValidationError{} @@ -2263,7 +2281,8 @@ func (e StartMongoDBExplainActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMongoDBExplainActionParamsValidationError{} @@ -2370,7 +2389,8 @@ func (e StartMongoDBExplainActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartMongoDBExplainActionResultValidationError{} @@ -2477,7 +2497,8 @@ func (e StartPTPgSummaryActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTPgSummaryActionParamsValidationError{} @@ -2584,7 +2605,8 @@ func (e StartPTPgSummaryActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTPgSummaryActionResultValidationError{} @@ -2693,7 +2715,8 @@ func (e StartPTMongoDBSummaryActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTMongoDBSummaryActionParamsValidationError{} @@ -2802,7 +2825,8 @@ func (e StartPTMongoDBSummaryActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTMongoDBSummaryActionResultValidationError{} @@ -2909,7 +2933,8 @@ func (e StartPTMySQLSummaryActionParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTMySQLSummaryActionParamsValidationError{} @@ -3016,7 +3041,8 @@ func (e StartPTMySQLSummaryActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTMySQLSummaryActionResultValidationError{} @@ -3123,7 +3149,8 @@ func (e StartPTSummaryActionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTSummaryActionRequestValidationError{} @@ -3230,7 +3257,8 @@ func (e StartPTSummaryActionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartPTSummaryActionResponseValidationError{} @@ -3343,7 +3371,8 @@ func (e CancelActionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CancelActionRequestValidationError{} @@ -3445,7 +3474,8 @@ func (e CancelActionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CancelActionResponseValidationError{} @@ -4044,7 +4074,8 @@ func (e StartServiceActionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartServiceActionRequestValidationError{} @@ -4643,7 +4674,8 @@ func (e StartServiceActionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartServiceActionResponseValidationError{} diff --git a/api/advisors/v1/advisors.pb.go b/api/advisors/v1/advisors.pb.go index 1961afd6e44..efbc083a3a9 100644 --- a/api/advisors/v1/advisors.pb.go +++ b/api/advisors/v1/advisors.pb.go @@ -1362,8 +1362,8 @@ var ( file_advisors_v1_advisors_proto_enumTypes = make([]protoimpl.EnumInfo, 2) file_advisors_v1_advisors_proto_msgTypes = make([]protoimpl.MessageInfo, 20) file_advisors_v1_advisors_proto_goTypes = []any{ - (AdvisorCheckInterval)(0), // 0: advisors.v1.AdvisorCheckInterval - (AdvisorCheckFamily)(0), // 1: advisors.v1.AdvisorCheckFamily + AdvisorCheckInterval(0), // 0: advisors.v1.AdvisorCheckInterval + AdvisorCheckFamily(0), // 1: advisors.v1.AdvisorCheckFamily (*AdvisorCheckResult)(nil), // 2: advisors.v1.AdvisorCheckResult (*CheckResultSummary)(nil), // 3: advisors.v1.CheckResultSummary (*CheckResult)(nil), // 4: advisors.v1.CheckResult @@ -1384,10 +1384,9 @@ var ( (*GetFailedChecksResponse)(nil), // 19: advisors.v1.GetFailedChecksResponse nil, // 20: advisors.v1.AdvisorCheckResult.LabelsEntry nil, // 21: advisors.v1.CheckResult.LabelsEntry - (v1.Severity)(0), // 22: management.v1.Severity + v1.Severity(0), // 22: management.v1.Severity } ) - var file_advisors_v1_advisors_proto_depIdxs = []int32{ 22, // 0: advisors.v1.AdvisorCheckResult.severity:type_name -> management.v1.Severity 20, // 1: advisors.v1.AdvisorCheckResult.labels:type_name -> advisors.v1.AdvisorCheckResult.LabelsEntry diff --git a/api/advisors/v1/advisors.pb.validate.go b/api/advisors/v1/advisors.pb.validate.go index ef8f8500241..74c3d47a85b 100644 --- a/api/advisors/v1/advisors.pb.validate.go +++ b/api/advisors/v1/advisors.pb.validate.go @@ -140,7 +140,8 @@ func (e AdvisorCheckResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AdvisorCheckResultValidationError{} @@ -262,7 +263,8 @@ func (e CheckResultSummaryValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckResultSummaryValidationError{} @@ -379,7 +381,8 @@ func (e CheckResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckResultValidationError{} @@ -490,7 +493,8 @@ func (e AdvisorCheckValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AdvisorCheckValidationError{} @@ -632,7 +636,8 @@ func (e AdvisorValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AdvisorValidationError{} @@ -742,7 +747,8 @@ func (e ChangeAdvisorCheckParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeAdvisorCheckParamsValidationError{} @@ -844,7 +850,8 @@ func (e StartAdvisorChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartAdvisorChecksRequestValidationError{} @@ -946,7 +953,8 @@ func (e StartAdvisorChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartAdvisorChecksResponseValidationError{} @@ -1048,7 +1056,8 @@ func (e ListAdvisorChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAdvisorChecksRequestValidationError{} @@ -1184,7 +1193,8 @@ func (e ListAdvisorChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAdvisorChecksResponseValidationError{} @@ -1286,7 +1296,8 @@ func (e ListAdvisorsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAdvisorsRequestValidationError{} @@ -1422,7 +1433,8 @@ func (e ListAdvisorsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAdvisorsResponseValidationError{} @@ -1558,7 +1570,8 @@ func (e ChangeAdvisorChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeAdvisorChecksRequestValidationError{} @@ -1661,7 +1674,8 @@ func (e ChangeAdvisorChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeAdvisorChecksResponseValidationError{} @@ -1763,7 +1777,8 @@ func (e ListFailedServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListFailedServicesRequestValidationError{} @@ -1899,7 +1914,8 @@ func (e ListFailedServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListFailedServicesResponseValidationError{} @@ -2029,7 +2045,8 @@ func (e GetFailedChecksRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetFailedChecksRequestValidationError{} @@ -2169,7 +2186,8 @@ func (e GetFailedChecksResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetFailedChecksResponseValidationError{} diff --git a/api/agent/v1/agent.pb.go b/api/agent/v1/agent.pb.go index f12298fd6c3..7f5d935624b 100644 --- a/api/agent/v1/agent.pb.go +++ b/api/agent/v1/agent.pb.go @@ -3795,7 +3795,7 @@ type SetStateRequest_BuiltinAgent struct { func (x *SetStateRequest_BuiltinAgent) Reset() { *x = SetStateRequest_BuiltinAgent{} - mi := &file_agent_v1_agent_proto_msgTypes[44] + mi := &file_agent_v1_agent_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3807,7 +3807,7 @@ func (x *SetStateRequest_BuiltinAgent) String() string { func (*SetStateRequest_BuiltinAgent) ProtoMessage() {} func (x *SetStateRequest_BuiltinAgent) ProtoReflect() protoreflect.Message { - mi := &file_agent_v1_agent_proto_msgTypes[44] + mi := &file_agent_v1_agent_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3820,7 +3820,7 @@ func (x *SetStateRequest_BuiltinAgent) ProtoReflect() protoreflect.Message { // Deprecated: Use SetStateRequest_BuiltinAgent.ProtoReflect.Descriptor instead. func (*SetStateRequest_BuiltinAgent) Descriptor() ([]byte, []int) { - return file_agent_v1_agent_proto_rawDescGZIP(), []int{7, 1} + return file_agent_v1_agent_proto_rawDescGZIP(), []int{7, 2} } func (x *SetStateRequest_BuiltinAgent) GetType() v1.AgentType { @@ -6671,7 +6671,10 @@ const file_agent_v1_agent_proto_rawDesc = "" + "\x12env_variable_names\x18\b \x03(\tR\x10envVariableNames\x1a<\n" + "\x0eTextFilesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x86\x05\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1ai\n" + + "\x13AgentProcessesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12<\n" + + "\x05value\x18\x02 \x01(\v2&.agent.v1.SetStateRequest.AgentProcessR\x05value:\x028\x01\x1a\x86\x05\n" + "\fBuiltinAgent\x12+\n" + "\x04type\x18\x01 \x01(\x0e2\x17.inventory.v1.AgentTypeR\x04type\x12\x16\n" + "\x03dsn\x18\x02 \x01(\tB\x04\x88\xb5\x18\x03R\x03dsn\x12(\n" + @@ -6692,10 +6695,7 @@ const file_agent_v1_agent_proto_rawDesc = "" + "\fservice_name\x18\r \x01(\tR\vserviceName\x1a6\n" + "\bEnvEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1ai\n" + - "\x13AgentProcessesEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12<\n" + - "\x05value\x18\x02 \x01(\v2&.agent.v1.SetStateRequest.AgentProcessR\x05value:\x028\x01\x1ah\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1ah\n" + "\x12BuiltinAgentsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12<\n" + "\x05value\x18\x02 \x01(\v2&.agent.v1.SetStateRequest.BuiltinAgentR\x05value:\x028\x01\"\x12\n" + @@ -7114,59 +7114,59 @@ var ( file_agent_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 2) file_agent_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 92) file_agent_v1_agent_proto_goTypes = []any{ - (MysqlExplainOutputFormat)(0), // 0: agent.v1.MysqlExplainOutputFormat - (StartActionRequest_RestartSystemServiceParams_SystemService)(0), // 1: agent.v1.StartActionRequest.RestartSystemServiceParams.SystemService - (*TextFiles)(nil), // 2: agent.v1.TextFiles - (*Ping)(nil), // 3: agent.v1.Ping - (*Pong)(nil), // 4: agent.v1.Pong - (*QANCollectRequest)(nil), // 5: agent.v1.QANCollectRequest - (*QANCollectResponse)(nil), // 6: agent.v1.QANCollectResponse - (*StateChangedRequest)(nil), // 7: agent.v1.StateChangedRequest - (*StateChangedResponse)(nil), // 8: agent.v1.StateChangedResponse - (*SetStateRequest)(nil), // 9: agent.v1.SetStateRequest - (*SetStateResponse)(nil), // 10: agent.v1.SetStateResponse - (*QueryActionValue)(nil), // 11: agent.v1.QueryActionValue - (*QueryActionSlice)(nil), // 12: agent.v1.QueryActionSlice - (*QueryActionMap)(nil), // 13: agent.v1.QueryActionMap - (*QueryActionBinary)(nil), // 14: agent.v1.QueryActionBinary - (*QueryActionResult)(nil), // 15: agent.v1.QueryActionResult - (*StartActionRequest)(nil), // 16: agent.v1.StartActionRequest - (*StartActionResponse)(nil), // 17: agent.v1.StartActionResponse - (*StopActionRequest)(nil), // 18: agent.v1.StopActionRequest - (*StopActionResponse)(nil), // 19: agent.v1.StopActionResponse - (*ActionResultRequest)(nil), // 20: agent.v1.ActionResultRequest - (*ActionResultResponse)(nil), // 21: agent.v1.ActionResultResponse - (*PBMSwitchPITRRequest)(nil), // 22: agent.v1.PBMSwitchPITRRequest - (*PBMSwitchPITRResponse)(nil), // 23: agent.v1.PBMSwitchPITRResponse - (*AgentLogsRequest)(nil), // 24: agent.v1.AgentLogsRequest - (*AgentLogsResponse)(nil), // 25: agent.v1.AgentLogsResponse - (*CheckConnectionRequest)(nil), // 26: agent.v1.CheckConnectionRequest - (*CheckConnectionResponse)(nil), // 27: agent.v1.CheckConnectionResponse - (*ServiceInfoRequest)(nil), // 28: agent.v1.ServiceInfoRequest - (*ServiceInfoResponse)(nil), // 29: agent.v1.ServiceInfoResponse - (*JobStatusRequest)(nil), // 30: agent.v1.JobStatusRequest - (*JobStatusResponse)(nil), // 31: agent.v1.JobStatusResponse - (*S3LocationConfig)(nil), // 32: agent.v1.S3LocationConfig - (*FilesystemLocationConfig)(nil), // 33: agent.v1.FilesystemLocationConfig - (*StartJobRequest)(nil), // 34: agent.v1.StartJobRequest - (*StartJobResponse)(nil), // 35: agent.v1.StartJobResponse - (*StopJobRequest)(nil), // 36: agent.v1.StopJobRequest - (*StopJobResponse)(nil), // 37: agent.v1.StopJobResponse - (*JobResult)(nil), // 38: agent.v1.JobResult - (*JobProgress)(nil), // 39: agent.v1.JobProgress - (*GetVersionsRequest)(nil), // 40: agent.v1.GetVersionsRequest - (*GetVersionsResponse)(nil), // 41: agent.v1.GetVersionsResponse - (*AgentMessage)(nil), // 42: agent.v1.AgentMessage - (*ServerMessage)(nil), // 43: agent.v1.ServerMessage - nil, // 44: agent.v1.TextFiles.FilesEntry - (*SetStateRequest_AgentProcess)(nil), // 45: agent.v1.SetStateRequest.AgentProcess - (*SetStateRequest_BuiltinAgent)(nil), // 46: agent.v1.SetStateRequest.BuiltinAgent - nil, // 47: agent.v1.SetStateRequest.AgentProcessesEntry - nil, // 48: agent.v1.SetStateRequest.BuiltinAgentsEntry - nil, // 49: agent.v1.SetStateRequest.AgentProcess.TextFilesEntry - nil, // 50: agent.v1.SetStateRequest.BuiltinAgent.EnvEntry - nil, // 51: agent.v1.QueryActionMap.MapEntry - (*StartActionRequest_MySQLExplainParams)(nil), // 52: agent.v1.StartActionRequest.MySQLExplainParams + MysqlExplainOutputFormat(0), // 0: agent.v1.MysqlExplainOutputFormat + StartActionRequest_RestartSystemServiceParams_SystemService(0), // 1: agent.v1.StartActionRequest.RestartSystemServiceParams.SystemService + (*TextFiles)(nil), // 2: agent.v1.TextFiles + (*Ping)(nil), // 3: agent.v1.Ping + (*Pong)(nil), // 4: agent.v1.Pong + (*QANCollectRequest)(nil), // 5: agent.v1.QANCollectRequest + (*QANCollectResponse)(nil), // 6: agent.v1.QANCollectResponse + (*StateChangedRequest)(nil), // 7: agent.v1.StateChangedRequest + (*StateChangedResponse)(nil), // 8: agent.v1.StateChangedResponse + (*SetStateRequest)(nil), // 9: agent.v1.SetStateRequest + (*SetStateResponse)(nil), // 10: agent.v1.SetStateResponse + (*QueryActionValue)(nil), // 11: agent.v1.QueryActionValue + (*QueryActionSlice)(nil), // 12: agent.v1.QueryActionSlice + (*QueryActionMap)(nil), // 13: agent.v1.QueryActionMap + (*QueryActionBinary)(nil), // 14: agent.v1.QueryActionBinary + (*QueryActionResult)(nil), // 15: agent.v1.QueryActionResult + (*StartActionRequest)(nil), // 16: agent.v1.StartActionRequest + (*StartActionResponse)(nil), // 17: agent.v1.StartActionResponse + (*StopActionRequest)(nil), // 18: agent.v1.StopActionRequest + (*StopActionResponse)(nil), // 19: agent.v1.StopActionResponse + (*ActionResultRequest)(nil), // 20: agent.v1.ActionResultRequest + (*ActionResultResponse)(nil), // 21: agent.v1.ActionResultResponse + (*PBMSwitchPITRRequest)(nil), // 22: agent.v1.PBMSwitchPITRRequest + (*PBMSwitchPITRResponse)(nil), // 23: agent.v1.PBMSwitchPITRResponse + (*AgentLogsRequest)(nil), // 24: agent.v1.AgentLogsRequest + (*AgentLogsResponse)(nil), // 25: agent.v1.AgentLogsResponse + (*CheckConnectionRequest)(nil), // 26: agent.v1.CheckConnectionRequest + (*CheckConnectionResponse)(nil), // 27: agent.v1.CheckConnectionResponse + (*ServiceInfoRequest)(nil), // 28: agent.v1.ServiceInfoRequest + (*ServiceInfoResponse)(nil), // 29: agent.v1.ServiceInfoResponse + (*JobStatusRequest)(nil), // 30: agent.v1.JobStatusRequest + (*JobStatusResponse)(nil), // 31: agent.v1.JobStatusResponse + (*S3LocationConfig)(nil), // 32: agent.v1.S3LocationConfig + (*FilesystemLocationConfig)(nil), // 33: agent.v1.FilesystemLocationConfig + (*StartJobRequest)(nil), // 34: agent.v1.StartJobRequest + (*StartJobResponse)(nil), // 35: agent.v1.StartJobResponse + (*StopJobRequest)(nil), // 36: agent.v1.StopJobRequest + (*StopJobResponse)(nil), // 37: agent.v1.StopJobResponse + (*JobResult)(nil), // 38: agent.v1.JobResult + (*JobProgress)(nil), // 39: agent.v1.JobProgress + (*GetVersionsRequest)(nil), // 40: agent.v1.GetVersionsRequest + (*GetVersionsResponse)(nil), // 41: agent.v1.GetVersionsResponse + (*AgentMessage)(nil), // 42: agent.v1.AgentMessage + (*ServerMessage)(nil), // 43: agent.v1.ServerMessage + nil, // 44: agent.v1.TextFiles.FilesEntry + (*SetStateRequest_AgentProcess)(nil), // 45: agent.v1.SetStateRequest.AgentProcess + nil, // 46: agent.v1.SetStateRequest.AgentProcessesEntry + (*SetStateRequest_BuiltinAgent)(nil), // 47: agent.v1.SetStateRequest.BuiltinAgent + nil, // 48: agent.v1.SetStateRequest.BuiltinAgentsEntry + nil, // 49: agent.v1.SetStateRequest.AgentProcess.TextFilesEntry + nil, // 50: agent.v1.SetStateRequest.BuiltinAgent.EnvEntry + nil, // 51: agent.v1.QueryActionMap.MapEntry + (*StartActionRequest_MySQLExplainParams)(nil), // 52: agent.v1.StartActionRequest.MySQLExplainParams (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 53: agent.v1.StartActionRequest.MySQLShowCreateTableParams (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 54: agent.v1.StartActionRequest.MySQLShowTableStatusParams (*StartActionRequest_MySQLShowIndexParams)(nil), // 55: agent.v1.StartActionRequest.MySQLShowIndexParams @@ -7210,24 +7210,23 @@ var ( (*GetVersionsResponse_Version)(nil), // 93: agent.v1.GetVersionsResponse.Version (*timestamppb.Timestamp)(nil), // 94: google.protobuf.Timestamp (*MetricsBucket)(nil), // 95: agent.v1.MetricsBucket - (v1.AgentStatus)(0), // 96: inventory.v1.AgentStatus + v1.AgentStatus(0), // 96: inventory.v1.AgentStatus (*durationpb.Duration)(nil), // 97: google.protobuf.Duration - (v1.ServiceType)(0), // 98: inventory.v1.ServiceType + v1.ServiceType(0), // 98: inventory.v1.ServiceType (*status.Status)(nil), // 99: google.rpc.Status - (v1.AgentType)(0), // 100: inventory.v1.AgentType + v1.AgentType(0), // 100: inventory.v1.AgentType (*v1.RTAOptions)(nil), // 101: inventory.v1.RTAOptions - (v11.DataModel)(0), // 102: backup.v1.DataModel + v11.DataModel(0), // 102: backup.v1.DataModel (*v11.PbmMetadata)(nil), // 103: backup.v1.PbmMetadata (*v11.Metadata)(nil), // 104: backup.v1.Metadata } ) - var file_agent_v1_agent_proto_depIdxs = []int32{ 44, // 0: agent.v1.TextFiles.files:type_name -> agent.v1.TextFiles.FilesEntry 94, // 1: agent.v1.Pong.current_time:type_name -> google.protobuf.Timestamp 95, // 2: agent.v1.QANCollectRequest.metrics_bucket:type_name -> agent.v1.MetricsBucket 96, // 3: agent.v1.StateChangedRequest.status:type_name -> inventory.v1.AgentStatus - 47, // 4: agent.v1.SetStateRequest.agent_processes:type_name -> agent.v1.SetStateRequest.AgentProcessesEntry + 46, // 4: agent.v1.SetStateRequest.agent_processes:type_name -> agent.v1.SetStateRequest.AgentProcessesEntry 48, // 5: agent.v1.SetStateRequest.builtin_agents:type_name -> agent.v1.SetStateRequest.BuiltinAgentsEntry 94, // 6: agent.v1.QueryActionValue.timestamp:type_name -> google.protobuf.Timestamp 12, // 7: agent.v1.QueryActionValue.slice:type_name -> agent.v1.QueryActionSlice @@ -7321,12 +7320,12 @@ var file_agent_v1_agent_proto_depIdxs = []int32{ 28, // 95: agent.v1.ServerMessage.service_info:type_name -> agent.v1.ServiceInfoRequest 100, // 96: agent.v1.SetStateRequest.AgentProcess.type:type_name -> inventory.v1.AgentType 49, // 97: agent.v1.SetStateRequest.AgentProcess.text_files:type_name -> agent.v1.SetStateRequest.AgentProcess.TextFilesEntry - 100, // 98: agent.v1.SetStateRequest.BuiltinAgent.type:type_name -> inventory.v1.AgentType - 2, // 99: agent.v1.SetStateRequest.BuiltinAgent.text_files:type_name -> agent.v1.TextFiles - 50, // 100: agent.v1.SetStateRequest.BuiltinAgent.env:type_name -> agent.v1.SetStateRequest.BuiltinAgent.EnvEntry - 101, // 101: agent.v1.SetStateRequest.BuiltinAgent.rta_options:type_name -> inventory.v1.RTAOptions - 45, // 102: agent.v1.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.v1.SetStateRequest.AgentProcess - 46, // 103: agent.v1.SetStateRequest.BuiltinAgentsEntry.value:type_name -> agent.v1.SetStateRequest.BuiltinAgent + 45, // 98: agent.v1.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.v1.SetStateRequest.AgentProcess + 100, // 99: agent.v1.SetStateRequest.BuiltinAgent.type:type_name -> inventory.v1.AgentType + 2, // 100: agent.v1.SetStateRequest.BuiltinAgent.text_files:type_name -> agent.v1.TextFiles + 50, // 101: agent.v1.SetStateRequest.BuiltinAgent.env:type_name -> agent.v1.SetStateRequest.BuiltinAgent.EnvEntry + 101, // 102: agent.v1.SetStateRequest.BuiltinAgent.rta_options:type_name -> inventory.v1.RTAOptions + 47, // 103: agent.v1.SetStateRequest.BuiltinAgentsEntry.value:type_name -> agent.v1.SetStateRequest.BuiltinAgent 11, // 104: agent.v1.QueryActionMap.MapEntry.value:type_name -> agent.v1.QueryActionValue 0, // 105: agent.v1.StartActionRequest.MySQLExplainParams.output_format:type_name -> agent.v1.MysqlExplainOutputFormat 2, // 106: agent.v1.StartActionRequest.MySQLExplainParams.tls_files:type_name -> agent.v1.TextFiles diff --git a/api/agent/v1/agent.pb.validate.go b/api/agent/v1/agent.pb.validate.go index 3cac3cc4faf..b5a18f68749 100644 --- a/api/agent/v1/agent.pb.validate.go +++ b/api/agent/v1/agent.pb.validate.go @@ -134,7 +134,8 @@ func (e TextFilesValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = TextFilesValidationError{} @@ -232,7 +233,8 @@ func (e PingValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PingValidationError{} @@ -359,7 +361,8 @@ func (e PongValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PongValidationError{} @@ -495,7 +498,8 @@ func (e QANCollectRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANCollectRequestValidationError{} @@ -597,7 +601,8 @@ func (e QANCollectResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANCollectResponseValidationError{} @@ -709,7 +714,8 @@ func (e StateChangedRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StateChangedRequestValidationError{} @@ -811,7 +817,8 @@ func (e StateChangedResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StateChangedResponseValidationError{} @@ -1003,7 +1010,8 @@ func (e SetStateRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SetStateRequestValidationError{} @@ -1103,7 +1111,8 @@ func (e SetStateResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SetStateResponseValidationError{} @@ -1444,7 +1453,8 @@ func (e QueryActionValueValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryActionValueValidationError{} @@ -1578,7 +1588,8 @@ func (e QueryActionSliceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryActionSliceValidationError{} @@ -1724,7 +1735,8 @@ func (e QueryActionMapValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryActionMapValidationError{} @@ -1830,7 +1842,8 @@ func (e QueryActionBinaryValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryActionBinaryValidationError{} @@ -2000,7 +2013,8 @@ func (e QueryActionResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryActionResultValidationError{} @@ -2999,7 +3013,8 @@ func (e StartActionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequestValidationError{} @@ -3101,7 +3116,8 @@ func (e StartActionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionResponseValidationError{} @@ -3205,7 +3221,8 @@ func (e StopActionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StopActionRequestValidationError{} @@ -3307,7 +3324,8 @@ func (e StopActionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StopActionResponseValidationError{} @@ -3417,7 +3435,8 @@ func (e ActionResultRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ActionResultRequestValidationError{} @@ -3519,7 +3538,8 @@ func (e ActionResultResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ActionResultResponseValidationError{} @@ -3654,7 +3674,8 @@ func (e PBMSwitchPITRRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PBMSwitchPITRRequestValidationError{} @@ -3758,7 +3779,8 @@ func (e PBMSwitchPITRResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PBMSwitchPITRResponseValidationError{} @@ -3862,7 +3884,8 @@ func (e AgentLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AgentLogsRequestValidationError{} @@ -3966,7 +3989,8 @@ func (e AgentLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AgentLogsResponseValidationError{} @@ -4134,7 +4158,8 @@ func (e CheckConnectionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckConnectionRequestValidationError{} @@ -4238,7 +4263,8 @@ func (e CheckConnectionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckConnectionResponseValidationError{} @@ -4406,7 +4432,8 @@ func (e ServiceInfoRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ServiceInfoRequestValidationError{} @@ -4518,7 +4545,8 @@ func (e ServiceInfoResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ServiceInfoResponseValidationError{} @@ -4620,7 +4648,8 @@ func (e JobStatusRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobStatusRequestValidationError{} @@ -4724,7 +4753,8 @@ func (e JobStatusResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobStatusResponseValidationError{} @@ -4834,7 +4864,8 @@ func (e S3LocationConfigValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = S3LocationConfigValidationError{} @@ -4938,7 +4969,8 @@ func (e FilesystemLocationConfigValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = FilesystemLocationConfigValidationError{} @@ -5238,7 +5270,8 @@ func (e StartJobRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartJobRequestValidationError{} @@ -5340,7 +5373,8 @@ func (e StartJobResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartJobResponseValidationError{} @@ -5442,7 +5476,8 @@ func (e StopJobRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StopJobRequestValidationError{} @@ -5542,7 +5577,8 @@ func (e StopJobResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StopJobResponseValidationError{} @@ -5882,7 +5918,8 @@ func (e JobResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobResultValidationError{} @@ -6140,7 +6177,8 @@ func (e JobProgressValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobProgressValidationError{} @@ -6276,7 +6314,8 @@ func (e GetVersionsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequestValidationError{} @@ -6412,7 +6451,8 @@ func (e GetVersionsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsResponseValidationError{} @@ -7285,7 +7325,8 @@ func (e AgentMessageValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AgentMessageValidationError{} @@ -8077,7 +8118,8 @@ func (e ServerMessageValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ServerMessageValidationError{} @@ -8188,7 +8230,8 @@ func (e SetStateRequest_AgentProcessValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SetStateRequest_AgentProcessValidationError{} @@ -8371,7 +8414,8 @@ func (e SetStateRequest_BuiltinAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SetStateRequest_BuiltinAgentValidationError{} @@ -8515,7 +8559,8 @@ func (e StartActionRequest_MySQLExplainParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MySQLExplainParamsValidationError{} @@ -8659,7 +8704,8 @@ func (e StartActionRequest_MySQLShowCreateTableParamsValidationError) Error() st key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MySQLShowCreateTableParamsValidationError{} @@ -8803,7 +8849,8 @@ func (e StartActionRequest_MySQLShowTableStatusParamsValidationError) Error() st key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MySQLShowTableStatusParamsValidationError{} @@ -8944,7 +8991,8 @@ func (e StartActionRequest_MySQLShowIndexParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MySQLShowIndexParamsValidationError{} @@ -9093,7 +9141,8 @@ func (e StartActionRequest_PostgreSQLShowCreateTableParamsValidationError) Error key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PostgreSQLShowCreateTableParamsValidationError{} @@ -9235,7 +9284,8 @@ func (e StartActionRequest_PostgreSQLShowIndexParamsValidationError) Error() str key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PostgreSQLShowIndexParamsValidationError{} @@ -9374,7 +9424,8 @@ func (e StartActionRequest_MongoDBExplainParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MongoDBExplainParamsValidationError{} @@ -9479,7 +9530,8 @@ func (e StartActionRequest_PTSummaryParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PTSummaryParamsValidationError{} @@ -9592,7 +9644,8 @@ func (e StartActionRequest_PTPgSummaryParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PTPgSummaryParamsValidationError{} @@ -9706,7 +9759,8 @@ func (e StartActionRequest_PTMongoDBSummaryParamsValidationError) Error() string key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PTMongoDBSummaryParamsValidationError{} @@ -9822,7 +9876,8 @@ func (e StartActionRequest_PTMySQLSummaryParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PTMySQLSummaryParamsValidationError{} @@ -9963,7 +10018,8 @@ func (e StartActionRequest_MySQLQueryShowParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MySQLQueryShowParamsValidationError{} @@ -10104,7 +10160,8 @@ func (e StartActionRequest_MySQLQuerySelectParamsValidationError) Error() string key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MySQLQuerySelectParamsValidationError{} @@ -10244,7 +10301,8 @@ func (e StartActionRequest_PostgreSQLQueryShowParamsValidationError) Error() str key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PostgreSQLQueryShowParamsValidationError{} @@ -10388,7 +10446,8 @@ func (e StartActionRequest_PostgreSQLQuerySelectParamsValidationError) Error() s key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_PostgreSQLQuerySelectParamsValidationError{} @@ -10532,7 +10591,8 @@ func (e StartActionRequest_MongoDBQueryGetParameterParamsValidationError) Error( key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MongoDBQueryGetParameterParamsValidationError{} @@ -10672,7 +10732,8 @@ func (e StartActionRequest_MongoDBQueryBuildInfoParamsValidationError) Error() s key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MongoDBQueryBuildInfoParamsValidationError{} @@ -10817,7 +10878,8 @@ func (e StartActionRequest_MongoDBQueryGetCmdLineOptsParamsValidationError) Erro key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MongoDBQueryGetCmdLineOptsParamsValidationError{} @@ -10966,7 +11028,8 @@ func (e StartActionRequest_MongoDBQueryReplSetGetStatusParamsValidationError) Er key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MongoDBQueryReplSetGetStatusParamsValidationError{} @@ -11115,7 +11178,8 @@ func (e StartActionRequest_MongoDBQueryGetDiagnosticDataParamsValidationError) E key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_MongoDBQueryGetDiagnosticDataParamsValidationError{} @@ -11226,7 +11290,8 @@ func (e StartActionRequest_RestartSystemServiceParamsValidationError) Error() st key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartActionRequest_RestartSystemServiceParamsValidationError{} @@ -11331,7 +11396,8 @@ func (e CheckConnectionResponse_StatsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckConnectionResponse_StatsValidationError{} @@ -11494,7 +11560,8 @@ func (e StartJobRequest_MySQLBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartJobRequest_MySQLBackupValidationError{} @@ -11651,7 +11718,8 @@ func (e StartJobRequest_MySQLRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartJobRequest_MySQLRestoreBackupValidationError{} @@ -11880,7 +11948,8 @@ func (e StartJobRequest_MongoDBBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartJobRequest_MongoDBBackupValidationError{} @@ -12165,7 +12234,8 @@ func (e StartJobRequest_MongoDBRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartJobRequest_MongoDBRestoreBackupValidationError{} @@ -12267,7 +12337,8 @@ func (e JobResult_ErrorValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobResult_ErrorValidationError{} @@ -12400,7 +12471,8 @@ func (e JobResult_MongoDBBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobResult_MongoDBBackupValidationError{} @@ -12531,7 +12603,8 @@ func (e JobResult_MySQLBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobResult_MySQLBackupValidationError{} @@ -12634,7 +12707,8 @@ func (e JobResult_MySQLRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobResult_MySQLRestoreBackupValidationError{} @@ -12737,7 +12811,8 @@ func (e JobResult_MongoDBRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobResult_MongoDBRestoreBackupValidationError{} @@ -12839,7 +12914,8 @@ func (e JobProgress_MySQLBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobProgress_MySQLBackupValidationError{} @@ -12942,7 +13018,8 @@ func (e JobProgress_MySQLRestoreBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobProgress_MySQLRestoreBackupValidationError{} @@ -13048,7 +13125,8 @@ func (e JobProgress_LogsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = JobProgress_LogsValidationError{} @@ -13150,7 +13228,8 @@ func (e GetVersionsRequest_MySQLdValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_MySQLdValidationError{} @@ -13253,7 +13332,8 @@ func (e GetVersionsRequest_XtrabackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_XtrabackupValidationError{} @@ -13355,7 +13435,8 @@ func (e GetVersionsRequest_XbcloudValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_XbcloudValidationError{} @@ -13457,7 +13538,8 @@ func (e GetVersionsRequest_QpressValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_QpressValidationError{} @@ -13559,7 +13641,8 @@ func (e GetVersionsRequest_MongoDBValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_MongoDBValidationError{} @@ -13661,7 +13744,8 @@ func (e GetVersionsRequest_PBMValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_PBMValidationError{} @@ -14015,7 +14099,8 @@ func (e GetVersionsRequest_SoftwareValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsRequest_SoftwareValidationError{} @@ -14122,7 +14207,8 @@ func (e GetVersionsResponse_VersionValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetVersionsResponse_VersionValidationError{} diff --git a/api/agent/v1/collector.pb.go b/api/agent/v1/collector.pb.go index 11cbc75b13b..da17db39c64 100644 --- a/api/agent/v1/collector.pb.go +++ b/api/agent/v1/collector.pb.go @@ -2815,7 +2815,7 @@ var ( file_agent_v1_collector_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_agent_v1_collector_proto_msgTypes = make([]protoimpl.MessageInfo, 8) file_agent_v1_collector_proto_goTypes = []any{ - (ExampleType)(0), // 0: agent.v1.ExampleType + ExampleType(0), // 0: agent.v1.ExampleType (*MetricsBucket)(nil), // 1: agent.v1.MetricsBucket (*HistogramItem)(nil), // 2: agent.v1.HistogramItem (*MetricsBucket_Common)(nil), // 3: agent.v1.MetricsBucket.Common @@ -2824,10 +2824,9 @@ var ( (*MetricsBucket_PostgreSQL)(nil), // 6: agent.v1.MetricsBucket.PostgreSQL nil, // 7: agent.v1.MetricsBucket.Common.CommentsEntry nil, // 8: agent.v1.MetricsBucket.Common.ErrorsEntry - (v1.AgentType)(0), // 9: inventory.v1.AgentType + v1.AgentType(0), // 9: inventory.v1.AgentType } ) - var file_agent_v1_collector_proto_depIdxs = []int32{ 3, // 0: agent.v1.MetricsBucket.common:type_name -> agent.v1.MetricsBucket.Common 4, // 1: agent.v1.MetricsBucket.mysql:type_name -> agent.v1.MetricsBucket.MySQL diff --git a/api/agent/v1/collector.pb.validate.go b/api/agent/v1/collector.pb.validate.go index 717ac8d0327..3fc7bc65c70 100644 --- a/api/agent/v1/collector.pb.validate.go +++ b/api/agent/v1/collector.pb.validate.go @@ -242,7 +242,8 @@ func (e MetricsBucketValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsBucketValidationError{} @@ -346,7 +347,8 @@ func (e HistogramItemValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HistogramItemValidationError{} @@ -498,7 +500,8 @@ func (e MetricsBucket_CommonValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsBucket_CommonValidationError{} @@ -830,7 +833,8 @@ func (e MetricsBucket_MySQLValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsBucket_MySQLValidationError{} @@ -1040,7 +1044,8 @@ func (e MetricsBucket_MongoDBValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsBucket_MongoDBValidationError{} @@ -1292,7 +1297,8 @@ func (e MetricsBucket_PostgreSQLValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsBucket_PostgreSQLValidationError{} diff --git a/api/agentlocal/v1/agentlocal.pb.go b/api/agentlocal/v1/agentlocal.pb.go index a2836f3cd3c..12053d57921 100644 --- a/api/agentlocal/v1/agentlocal.pb.go +++ b/api/agentlocal/v1/agentlocal.pb.go @@ -481,11 +481,10 @@ var ( (*ReloadRequest)(nil), // 4: agentlocal.v1.ReloadRequest (*ReloadResponse)(nil), // 5: agentlocal.v1.ReloadResponse (*durationpb.Duration)(nil), // 6: google.protobuf.Duration - (v1.AgentType)(0), // 7: inventory.v1.AgentType - (v1.AgentStatus)(0), // 8: inventory.v1.AgentStatus + v1.AgentType(0), // 7: inventory.v1.AgentType + v1.AgentStatus(0), // 8: inventory.v1.AgentStatus } ) - var file_agentlocal_v1_agentlocal_proto_depIdxs = []int32{ 6, // 0: agentlocal.v1.ServerInfo.latency:type_name -> google.protobuf.Duration 6, // 1: agentlocal.v1.ServerInfo.clock_drift:type_name -> google.protobuf.Duration diff --git a/api/agentlocal/v1/agentlocal.pb.validate.go b/api/agentlocal/v1/agentlocal.pb.validate.go index 118cb9f916a..019b64db736 100644 --- a/api/agentlocal/v1/agentlocal.pb.validate.go +++ b/api/agentlocal/v1/agentlocal.pb.validate.go @@ -191,7 +191,8 @@ func (e ServerInfoValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ServerInfoValidationError{} @@ -300,7 +301,8 @@ func (e AgentInfoValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AgentInfoValidationError{} @@ -402,7 +404,8 @@ func (e StatusRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StatusRequestValidationError{} @@ -577,7 +580,8 @@ func (e StatusResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StatusResponseValidationError{} @@ -677,7 +681,8 @@ func (e ReloadRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ReloadRequestValidationError{} @@ -777,7 +782,8 @@ func (e ReloadResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ReloadResponseValidationError{} diff --git a/api/alerting/v1/alerting.pb.go b/api/alerting/v1/alerting.pb.go index acd727a9865..bccb6659d24 100644 --- a/api/alerting/v1/alerting.pb.go +++ b/api/alerting/v1/alerting.pb.go @@ -1430,8 +1430,8 @@ var ( file_alerting_v1_alerting_proto_enumTypes = make([]protoimpl.EnumInfo, 2) file_alerting_v1_alerting_proto_msgTypes = make([]protoimpl.MessageInfo, 20) file_alerting_v1_alerting_proto_goTypes = []any{ - (TemplateSource)(0), // 0: alerting.v1.TemplateSource - (FilterType)(0), // 1: alerting.v1.FilterType + 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 @@ -1452,14 +1452,13 @@ var ( nil, // 19: alerting.v1.Template.LabelsEntry nil, // 20: alerting.v1.Template.AnnotationsEntry nil, // 21: alerting.v1.CreateRuleRequest.CustomLabelsEntry - (ParamUnit)(0), // 22: alerting.v1.ParamUnit - (ParamType)(0), // 23: alerting.v1.ParamType + ParamUnit(0), // 22: alerting.v1.ParamUnit + ParamType(0), // 23: alerting.v1.ParamType (*durationpb.Duration)(nil), // 24: google.protobuf.Duration - (v1.Severity)(0), // 25: management.v1.Severity + v1.Severity(0), // 25: management.v1.Severity (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp } ) - var file_alerting_v1_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit 23, // 1: alerting.v1.ParamDefinition.type:type_name -> alerting.v1.ParamType diff --git a/api/alerting/v1/alerting.pb.validate.go b/api/alerting/v1/alerting.pb.validate.go index f6a7dbcf1fa..82cbd794e6a 100644 --- a/api/alerting/v1/alerting.pb.validate.go +++ b/api/alerting/v1/alerting.pb.validate.go @@ -132,7 +132,8 @@ func (e BoolParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = BoolParamDefinitionValidationError{} @@ -246,7 +247,8 @@ func (e FloatParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = FloatParamDefinitionValidationError{} @@ -352,7 +354,8 @@ func (e StringParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StringParamDefinitionValidationError{} @@ -606,7 +609,8 @@ func (e ParamDefinitionValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ParamDefinitionValidationError{} @@ -813,7 +817,8 @@ func (e TemplateValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = TemplateValidationError{} @@ -943,7 +948,8 @@ func (e ListTemplatesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListTemplatesRequestValidationError{} @@ -1083,7 +1089,8 @@ func (e ListTemplatesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListTemplatesResponseValidationError{} @@ -1196,7 +1203,8 @@ func (e CreateTemplateRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CreateTemplateRequestValidationError{} @@ -1298,7 +1306,8 @@ func (e CreateTemplateResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CreateTemplateResponseValidationError{} @@ -1422,7 +1431,8 @@ func (e UpdateTemplateRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateTemplateRequestValidationError{} @@ -1524,7 +1534,8 @@ func (e UpdateTemplateResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateTemplateResponseValidationError{} @@ -1637,7 +1648,8 @@ func (e DeleteTemplateRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteTemplateRequestValidationError{} @@ -1739,7 +1751,8 @@ func (e DeleteTemplateResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteTemplateResponseValidationError{} @@ -1843,7 +1856,8 @@ func (e FilterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = FilterValidationError{} @@ -1996,7 +2010,8 @@ func (e ParamValueValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ParamValueValidationError{} @@ -2236,7 +2251,8 @@ func (e CreateRuleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CreateRuleRequestValidationError{} @@ -2338,7 +2354,8 @@ func (e CreateRuleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CreateRuleResponseValidationError{} diff --git a/api/alerting/v1/params.pb.go b/api/alerting/v1/params.pb.go index 5df5a859b29..eb001a606db 100644 --- a/api/alerting/v1/params.pb.go +++ b/api/alerting/v1/params.pb.go @@ -159,11 +159,10 @@ func file_alerting_v1_params_proto_rawDescGZIP() []byte { var ( file_alerting_v1_params_proto_enumTypes = make([]protoimpl.EnumInfo, 2) file_alerting_v1_params_proto_goTypes = []any{ - (ParamUnit)(0), // 0: alerting.v1.ParamUnit - (ParamType)(0), // 1: alerting.v1.ParamType + ParamUnit(0), // 0: alerting.v1.ParamUnit + ParamType(0), // 1: alerting.v1.ParamType } ) - var file_alerting_v1_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/backup/v1/artifacts.pb.go b/api/backup/v1/artifacts.pb.go index 5302152bd21..e2352f61cd1 100644 --- a/api/backup/v1/artifacts.pb.go +++ b/api/backup/v1/artifacts.pb.go @@ -641,7 +641,7 @@ var ( file_backup_v1_artifacts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_backup_v1_artifacts_proto_msgTypes = make([]protoimpl.MessageInfo, 8) file_backup_v1_artifacts_proto_goTypes = []any{ - (BackupStatus)(0), // 0: backup.v1.BackupStatus + BackupStatus(0), // 0: backup.v1.BackupStatus (*Artifact)(nil), // 1: backup.v1.Artifact (*ListArtifactsRequest)(nil), // 2: backup.v1.ListArtifactsRequest (*ListArtifactsResponse)(nil), // 3: backup.v1.ListArtifactsResponse @@ -650,13 +650,12 @@ var ( (*PitrTimerange)(nil), // 6: backup.v1.PitrTimerange (*ListPitrTimerangesRequest)(nil), // 7: backup.v1.ListPitrTimerangesRequest (*ListPitrTimerangesResponse)(nil), // 8: backup.v1.ListPitrTimerangesResponse - (DataModel)(0), // 9: backup.v1.DataModel + DataModel(0), // 9: backup.v1.DataModel (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (BackupMode)(0), // 11: backup.v1.BackupMode + BackupMode(0), // 11: backup.v1.BackupMode (*Metadata)(nil), // 12: backup.v1.Metadata } ) - var file_backup_v1_artifacts_proto_depIdxs = []int32{ 9, // 0: backup.v1.Artifact.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.Artifact.status:type_name -> backup.v1.BackupStatus diff --git a/api/backup/v1/artifacts.pb.validate.go b/api/backup/v1/artifacts.pb.validate.go index 4b5be980436..49916023a13 100644 --- a/api/backup/v1/artifacts.pb.validate.go +++ b/api/backup/v1/artifacts.pb.validate.go @@ -208,7 +208,8 @@ func (e ArtifactValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ArtifactValidationError{} @@ -310,7 +311,8 @@ func (e ListArtifactsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListArtifactsRequestValidationError{} @@ -446,7 +448,8 @@ func (e ListArtifactsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListArtifactsResponseValidationError{} @@ -561,7 +564,8 @@ func (e DeleteArtifactRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteArtifactRequestValidationError{} @@ -663,7 +667,8 @@ func (e DeleteArtifactResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteArtifactResponseValidationError{} @@ -821,7 +826,8 @@ func (e PitrTimerangeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PitrTimerangeValidationError{} @@ -934,7 +940,8 @@ func (e ListPitrTimerangesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListPitrTimerangesRequestValidationError{} @@ -1070,7 +1077,8 @@ func (e ListPitrTimerangesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListPitrTimerangesResponseValidationError{} diff --git a/api/backup/v1/backup.pb.go b/api/backup/v1/backup.pb.go index 36a2ec0efb4..19241fc6afd 100644 --- a/api/backup/v1/backup.pb.go +++ b/api/backup/v1/backup.pb.go @@ -1262,11 +1262,11 @@ var ( (*GetLogsRequest)(nil), // 13: backup.v1.GetLogsRequest (*GetLogsResponse)(nil), // 14: backup.v1.GetLogsResponse (*durationpb.Duration)(nil), // 15: google.protobuf.Duration - (DataModel)(0), // 16: backup.v1.DataModel + DataModel(0), // 16: backup.v1.DataModel (*v1.MySQLService)(nil), // 17: inventory.v1.MySQLService (*v1.MongoDBService)(nil), // 18: inventory.v1.MongoDBService (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - (BackupMode)(0), // 20: backup.v1.BackupMode + BackupMode(0), // 20: backup.v1.BackupMode (*LogChunk)(nil), // 21: backup.v1.LogChunk (*ListArtifactsRequest)(nil), // 22: backup.v1.ListArtifactsRequest (*DeleteArtifactRequest)(nil), // 23: backup.v1.DeleteArtifactRequest @@ -1276,7 +1276,6 @@ var ( (*ListPitrTimerangesResponse)(nil), // 27: backup.v1.ListPitrTimerangesResponse } ) - var file_backup_v1_backup_proto_depIdxs = []int32{ 15, // 0: backup.v1.StartBackupRequest.retry_interval:type_name -> google.protobuf.Duration 16, // 1: backup.v1.StartBackupRequest.data_model:type_name -> backup.v1.DataModel diff --git a/api/backup/v1/backup.pb.validate.go b/api/backup/v1/backup.pb.validate.go index 743bd45f688..8e691936935 100644 --- a/api/backup/v1/backup.pb.validate.go +++ b/api/backup/v1/backup.pb.validate.go @@ -185,7 +185,8 @@ func (e StartBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartBackupRequestValidationError{} @@ -289,7 +290,8 @@ func (e StartBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartBackupResponseValidationError{} @@ -405,7 +407,8 @@ func (e ListArtifactCompatibleServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListArtifactCompatibleServicesRequestValidationError{} @@ -579,7 +582,8 @@ func (e ListArtifactCompatibleServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListArtifactCompatibleServicesResponseValidationError{} @@ -825,7 +829,8 @@ func (e ScheduledBackupValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ScheduledBackupValidationError{} @@ -1034,7 +1039,8 @@ func (e ScheduleBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ScheduleBackupRequestValidationError{} @@ -1138,7 +1144,8 @@ func (e ScheduleBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ScheduleBackupResponseValidationError{} @@ -1241,7 +1248,8 @@ func (e ListScheduledBackupsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListScheduledBackupsRequestValidationError{} @@ -1378,7 +1386,8 @@ func (e ListScheduledBackupsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListScheduledBackupsResponseValidationError{} @@ -1574,7 +1583,8 @@ func (e ChangeScheduledBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeScheduledBackupRequestValidationError{} @@ -1677,7 +1687,8 @@ func (e ChangeScheduledBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeScheduledBackupResponseValidationError{} @@ -1791,7 +1802,8 @@ func (e RemoveScheduledBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveScheduledBackupRequestValidationError{} @@ -1894,7 +1906,8 @@ func (e RemoveScheduledBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveScheduledBackupResponseValidationError{} @@ -2009,7 +2022,8 @@ func (e GetLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetLogsRequestValidationError{} @@ -2145,7 +2159,8 @@ func (e GetLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetLogsResponseValidationError{} diff --git a/api/backup/v1/common.pb.go b/api/backup/v1/common.pb.go index ca4ba8be172..f84ca11de32 100644 --- a/api/backup/v1/common.pb.go +++ b/api/backup/v1/common.pb.go @@ -414,8 +414,8 @@ var ( file_backup_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) file_backup_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 4) file_backup_v1_common_proto_goTypes = []any{ - (DataModel)(0), // 0: backup.v1.DataModel - (BackupMode)(0), // 1: backup.v1.BackupMode + DataModel(0), // 0: backup.v1.DataModel + BackupMode(0), // 1: backup.v1.BackupMode (*File)(nil), // 2: backup.v1.File (*PbmMetadata)(nil), // 3: backup.v1.PbmMetadata (*Metadata)(nil), // 4: backup.v1.Metadata @@ -423,7 +423,6 @@ var ( (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp } ) - var file_backup_v1_common_proto_depIdxs = []int32{ 2, // 0: backup.v1.Metadata.file_list:type_name -> backup.v1.File 6, // 1: backup.v1.Metadata.restore_to:type_name -> google.protobuf.Timestamp diff --git a/api/backup/v1/common.pb.validate.go b/api/backup/v1/common.pb.validate.go index 20835ce8c7f..819c06422f9 100644 --- a/api/backup/v1/common.pb.validate.go +++ b/api/backup/v1/common.pb.validate.go @@ -133,7 +133,8 @@ func (e FileValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = FileValidationError{} @@ -234,7 +235,8 @@ func (e PbmMetadataValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PbmMetadataValidationError{} @@ -442,7 +444,8 @@ func (e MetadataValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetadataValidationError{} @@ -545,7 +548,8 @@ func (e LogChunkValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = LogChunkValidationError{} diff --git a/api/backup/v1/errors.pb.go b/api/backup/v1/errors.pb.go index d67aecce84c..5709e5ac243 100644 --- a/api/backup/v1/errors.pb.go +++ b/api/backup/v1/errors.pb.go @@ -165,11 +165,10 @@ var ( file_backup_v1_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_backup_v1_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 1) file_backup_v1_errors_proto_goTypes = []any{ - (ErrorCode)(0), // 0: backup.v1.ErrorCode - (*Error)(nil), // 1: backup.v1.Error + ErrorCode(0), // 0: backup.v1.ErrorCode + (*Error)(nil), // 1: backup.v1.Error } ) - var file_backup_v1_errors_proto_depIdxs = []int32{ 0, // 0: backup.v1.Error.code:type_name -> backup.v1.ErrorCode 1, // [1:1] is the sub-list for method output_type diff --git a/api/backup/v1/errors.pb.validate.go b/api/backup/v1/errors.pb.validate.go index 9aebb9d7648..aae393a3b70 100644 --- a/api/backup/v1/errors.pb.validate.go +++ b/api/backup/v1/errors.pb.validate.go @@ -122,7 +122,8 @@ func (e ErrorValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ErrorValidationError{} diff --git a/api/backup/v1/locations.pb.go b/api/backup/v1/locations.pb.go index 396b552ee80..72c13dece43 100644 --- a/api/backup/v1/locations.pb.go +++ b/api/backup/v1/locations.pb.go @@ -833,7 +833,6 @@ var ( (*TestLocationConfigResponse)(nil), // 12: backup.v1.TestLocationConfigResponse } ) - var file_backup_v1_locations_proto_depIdxs = []int32{ 0, // 0: backup.v1.Location.filesystem_config:type_name -> backup.v1.FilesystemLocationConfig 1, // 1: backup.v1.Location.s3_config:type_name -> backup.v1.S3LocationConfig diff --git a/api/backup/v1/locations.pb.validate.go b/api/backup/v1/locations.pb.validate.go index 04d465b6e6c..18cbddde6b2 100644 --- a/api/backup/v1/locations.pb.validate.go +++ b/api/backup/v1/locations.pb.validate.go @@ -135,7 +135,8 @@ func (e FilesystemLocationConfigValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = FilesystemLocationConfigValidationError{} @@ -279,7 +280,8 @@ func (e S3LocationConfigValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = S3LocationConfigValidationError{} @@ -471,7 +473,8 @@ func (e LocationValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = LocationValidationError{} @@ -573,7 +576,8 @@ func (e ListLocationsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListLocationsRequestValidationError{} @@ -709,7 +713,8 @@ func (e ListLocationsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListLocationsResponseValidationError{} @@ -882,7 +887,8 @@ func (e AddLocationRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddLocationRequestValidationError{} @@ -986,7 +992,8 @@ func (e AddLocationResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddLocationResponseValidationError{} @@ -1161,7 +1168,8 @@ func (e ChangeLocationRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeLocationRequestValidationError{} @@ -1263,7 +1271,8 @@ func (e ChangeLocationResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeLocationResponseValidationError{} @@ -1369,7 +1378,8 @@ func (e RemoveLocationRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveLocationRequestValidationError{} @@ -1471,7 +1481,8 @@ func (e RemoveLocationResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveLocationResponseValidationError{} @@ -1631,7 +1642,8 @@ func (e TestLocationConfigRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = TestLocationConfigRequestValidationError{} @@ -1733,7 +1745,8 @@ func (e TestLocationConfigResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = TestLocationConfigResponseValidationError{} diff --git a/api/backup/v1/restores.pb.go b/api/backup/v1/restores.pb.go index 272b5255d28..580c158b119 100644 --- a/api/backup/v1/restores.pb.go +++ b/api/backup/v1/restores.pb.go @@ -612,7 +612,7 @@ var ( file_backup_v1_restores_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_backup_v1_restores_proto_msgTypes = make([]protoimpl.MessageInfo, 7) file_backup_v1_restores_proto_goTypes = []any{ - (RestoreStatus)(0), // 0: backup.v1.RestoreStatus + RestoreStatus(0), // 0: backup.v1.RestoreStatus (*RestoreHistoryItem)(nil), // 1: backup.v1.RestoreHistoryItem (*ListRestoresRequest)(nil), // 2: backup.v1.ListRestoresRequest (*ListRestoresResponse)(nil), // 3: backup.v1.ListRestoresResponse @@ -620,12 +620,11 @@ var ( (*RestoreServiceGetLogsResponse)(nil), // 5: backup.v1.RestoreServiceGetLogsResponse (*RestoreBackupRequest)(nil), // 6: backup.v1.RestoreBackupRequest (*RestoreBackupResponse)(nil), // 7: backup.v1.RestoreBackupResponse - (DataModel)(0), // 8: backup.v1.DataModel + DataModel(0), // 8: backup.v1.DataModel (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp (*LogChunk)(nil), // 10: backup.v1.LogChunk } ) - var file_backup_v1_restores_proto_depIdxs = []int32{ 8, // 0: backup.v1.RestoreHistoryItem.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.RestoreHistoryItem.status:type_name -> backup.v1.RestoreStatus diff --git a/api/backup/v1/restores.pb.validate.go b/api/backup/v1/restores.pb.validate.go index 0f530c1fc99..5f7bf3b059e 100644 --- a/api/backup/v1/restores.pb.validate.go +++ b/api/backup/v1/restores.pb.validate.go @@ -231,7 +231,8 @@ func (e RestoreHistoryItemValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RestoreHistoryItemValidationError{} @@ -333,7 +334,8 @@ func (e ListRestoresRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListRestoresRequestValidationError{} @@ -469,7 +471,8 @@ func (e ListRestoresResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListRestoresResponseValidationError{} @@ -587,7 +590,8 @@ func (e RestoreServiceGetLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RestoreServiceGetLogsRequestValidationError{} @@ -726,7 +730,8 @@ func (e RestoreServiceGetLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RestoreServiceGetLogsResponseValidationError{} @@ -879,7 +884,8 @@ func (e RestoreBackupRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RestoreBackupRequestValidationError{} @@ -983,7 +989,8 @@ func (e RestoreBackupResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RestoreBackupResponseValidationError{} diff --git a/api/common/common.pb.go b/api/common/common.pb.go index 0d05883daa1..2303ccd29ab 100644 --- a/api/common/common.pb.go +++ b/api/common/common.pb.go @@ -147,7 +147,6 @@ var ( nil, // 2: common.StringMap.ValuesEntry } ) - var file_common_common_proto_depIdxs = []int32{ 2, // 0: common.StringMap.values:type_name -> common.StringMap.ValuesEntry 1, // [1:1] is the sub-list for method output_type diff --git a/api/common/common.pb.validate.go b/api/common/common.pb.validate.go index 9caff2dff61..0c967b6124f 100644 --- a/api/common/common.pb.validate.go +++ b/api/common/common.pb.validate.go @@ -121,7 +121,8 @@ func (e StringArrayValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StringArrayValidationError{} @@ -222,7 +223,8 @@ func (e StringMapValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StringMapValidationError{} diff --git a/api/common/metrics_resolutions.pb.go b/api/common/metrics_resolutions.pb.go index 75e587ba9a5..389e4572992 100644 --- a/api/common/metrics_resolutions.pb.go +++ b/api/common/metrics_resolutions.pb.go @@ -118,7 +118,6 @@ var ( (*durationpb.Duration)(nil), // 1: google.protobuf.Duration } ) - var file_common_metrics_resolutions_proto_depIdxs = []int32{ 1, // 0: common.MetricsResolutions.hr:type_name -> google.protobuf.Duration 1, // 1: common.MetricsResolutions.mr:type_name -> google.protobuf.Duration diff --git a/api/common/metrics_resolutions.pb.validate.go b/api/common/metrics_resolutions.pb.validate.go index 0668c224e6f..9cc045a33d2 100644 --- a/api/common/metrics_resolutions.pb.validate.go +++ b/api/common/metrics_resolutions.pb.validate.go @@ -211,7 +211,8 @@ func (e MetricsResolutionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsResolutionsValidationError{} diff --git a/api/dump/v1beta1/dump.pb.go b/api/dump/v1beta1/dump.pb.go index e2c33114098..76f0e473adf 100644 --- a/api/dump/v1beta1/dump.pb.go +++ b/api/dump/v1beta1/dump.pb.go @@ -880,7 +880,7 @@ var ( file_dump_v1beta1_dump_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_dump_v1beta1_dump_proto_msgTypes = make([]protoimpl.MessageInfo, 13) file_dump_v1beta1_dump_proto_goTypes = []any{ - (DumpStatus)(0), // 0: dump.v1beta1.DumpStatus + DumpStatus(0), // 0: dump.v1beta1.DumpStatus (*Dump)(nil), // 1: dump.v1beta1.Dump (*StartDumpRequest)(nil), // 2: dump.v1beta1.StartDumpRequest (*StartDumpResponse)(nil), // 3: dump.v1beta1.StartDumpResponse @@ -897,7 +897,6 @@ var ( (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp } ) - var file_dump_v1beta1_dump_proto_depIdxs = []int32{ 0, // 0: dump.v1beta1.Dump.status:type_name -> dump.v1beta1.DumpStatus 14, // 1: dump.v1beta1.Dump.start_time:type_name -> google.protobuf.Timestamp diff --git a/api/dump/v1beta1/dump.pb.validate.go b/api/dump/v1beta1/dump.pb.validate.go index 5b26407b171..fe9bbe02157 100644 --- a/api/dump/v1beta1/dump.pb.validate.go +++ b/api/dump/v1beta1/dump.pb.validate.go @@ -213,7 +213,8 @@ func (e DumpValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DumpValidationError{} @@ -379,7 +380,8 @@ func (e StartDumpRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartDumpRequestValidationError{} @@ -483,7 +485,8 @@ func (e StartDumpResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartDumpResponseValidationError{} @@ -583,7 +586,8 @@ func (e ListDumpsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListDumpsRequestValidationError{} @@ -719,7 +723,8 @@ func (e ListDumpsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListDumpsResponseValidationError{} @@ -853,7 +858,8 @@ func (e DeleteDumpRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteDumpRequestValidationError{} @@ -955,7 +961,8 @@ func (e DeleteDumpResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DeleteDumpResponseValidationError{} @@ -1072,7 +1079,8 @@ func (e GetDumpLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetDumpLogsRequestValidationError{} @@ -1210,7 +1218,8 @@ func (e GetDumpLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetDumpLogsResponseValidationError{} @@ -1313,7 +1322,8 @@ func (e LogChunkValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = LogChunkValidationError{} @@ -1448,7 +1458,8 @@ func (e SFTPParametersValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SFTPParametersValidationError{} @@ -1622,7 +1633,8 @@ func (e UploadDumpRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UploadDumpRequestValidationError{} @@ -1724,7 +1736,8 @@ func (e UploadDumpResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UploadDumpResponseValidationError{} diff --git a/api/extensions/v1/redact.pb.go b/api/extensions/v1/redact.pb.go index da2dd6e5183..c850a90df3c 100644 --- a/api/extensions/v1/redact.pb.go +++ b/api/extensions/v1/redact.pb.go @@ -131,11 +131,10 @@ func file_extensions_v1_redact_proto_rawDescGZIP() []byte { var ( file_extensions_v1_redact_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_extensions_v1_redact_proto_goTypes = []any{ - (RedactType)(0), // 0: extensions.v1.RedactType + RedactType(0), // 0: extensions.v1.RedactType (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions } ) - var file_extensions_v1_redact_proto_depIdxs = []int32{ 1, // 0: extensions.v1.sensitive:extendee -> google.protobuf.FieldOptions 0, // 1: extensions.v1.sensitive:type_name -> extensions.v1.RedactType diff --git a/api/ha/v1beta1/ha.pb.go b/api/ha/v1beta1/ha.pb.go index 5b2c2efaf36..655996ccdbc 100644 --- a/api/ha/v1beta1/ha.pb.go +++ b/api/ha/v1beta1/ha.pb.go @@ -343,7 +343,7 @@ var ( file_ha_v1beta1_ha_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_ha_v1beta1_ha_proto_msgTypes = make([]protoimpl.MessageInfo, 5) file_ha_v1beta1_ha_proto_goTypes = []any{ - (NodeRole)(0), // 0: ha.v1beta1.NodeRole + NodeRole(0), // 0: ha.v1beta1.NodeRole (*ListNodesRequest)(nil), // 1: ha.v1beta1.ListNodesRequest (*HANode)(nil), // 2: ha.v1beta1.HANode (*ListNodesResponse)(nil), // 3: ha.v1beta1.ListNodesResponse @@ -351,7 +351,6 @@ var ( (*StatusResponse)(nil), // 5: ha.v1beta1.StatusResponse } ) - var file_ha_v1beta1_ha_proto_depIdxs = []int32{ 0, // 0: ha.v1beta1.HANode.role:type_name -> ha.v1beta1.NodeRole 2, // 1: ha.v1beta1.ListNodesResponse.nodes:type_name -> ha.v1beta1.HANode diff --git a/api/ha/v1beta1/ha.pb.validate.go b/api/ha/v1beta1/ha.pb.validate.go index 5a55fe5cfe1..36ad57e423b 100644 --- a/api/ha/v1beta1/ha.pb.validate.go +++ b/api/ha/v1beta1/ha.pb.validate.go @@ -122,7 +122,8 @@ func (e ListNodesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListNodesRequestValidationError{} @@ -226,7 +227,8 @@ func (e HANodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HANodeValidationError{} @@ -362,7 +364,8 @@ func (e ListNodesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListNodesResponseValidationError{} @@ -462,7 +465,8 @@ func (e StatusRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StatusRequestValidationError{} @@ -564,7 +568,8 @@ func (e StatusResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StatusResponseValidationError{} diff --git a/api/inventory/v1/agent_status.pb.go b/api/inventory/v1/agent_status.pb.go index 01af45754b1..ace1432a5e8 100644 --- a/api/inventory/v1/agent_status.pb.go +++ b/api/inventory/v1/agent_status.pb.go @@ -125,10 +125,9 @@ func file_inventory_v1_agent_status_proto_rawDescGZIP() []byte { var ( file_inventory_v1_agent_status_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_inventory_v1_agent_status_proto_goTypes = []any{ - (AgentStatus)(0), // 0: inventory.v1.AgentStatus + AgentStatus(0), // 0: inventory.v1.AgentStatus } ) - var file_inventory_v1_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/inventory/v1/agents.pb.go b/api/inventory/v1/agents.pb.go index 4616f4ea2fe..f5d83515360 100644 --- a/api/inventory/v1/agents.pb.go +++ b/api/inventory/v1/agents.pb.go @@ -12398,7 +12398,7 @@ var ( file_inventory_v1_agents_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_inventory_v1_agents_proto_msgTypes = make([]protoimpl.MessageInfo, 107) file_inventory_v1_agents_proto_goTypes = []any{ - (AgentType)(0), // 0: inventory.v1.AgentType + AgentType(0), // 0: inventory.v1.AgentType (*PMMAgent)(nil), // 1: inventory.v1.PMMAgent (*VMAgent)(nil), // 2: inventory.v1.VMAgent (*NomadAgent)(nil), // 3: inventory.v1.NomadAgent @@ -12506,14 +12506,13 @@ var ( nil, // 105: inventory.v1.AddAzureDatabaseExporterParams.CustomLabelsEntry nil, // 106: inventory.v1.AddValkeyExporterParams.CustomLabelsEntry nil, // 107: inventory.v1.AddRTAMongoDBAgentParams.CustomLabelsEntry - (AgentStatus)(0), // 108: inventory.v1.AgentStatus - (LogLevel)(0), // 109: inventory.v1.LogLevel + AgentStatus(0), // 108: inventory.v1.AgentStatus + LogLevel(0), // 109: inventory.v1.LogLevel (*common.MetricsResolutions)(nil), // 110: common.MetricsResolutions (*durationpb.Duration)(nil), // 111: google.protobuf.Duration (*common.StringMap)(nil), // 112: common.StringMap } ) - var file_inventory_v1_agents_proto_depIdxs = []int32{ 68, // 0: inventory.v1.PMMAgent.custom_labels:type_name -> inventory.v1.PMMAgent.CustomLabelsEntry 108, // 1: inventory.v1.VMAgent.status:type_name -> inventory.v1.AgentStatus diff --git a/api/inventory/v1/agents.pb.validate.go b/api/inventory/v1/agents.pb.validate.go index 533385485fb..0c310df49e6 100644 --- a/api/inventory/v1/agents.pb.validate.go +++ b/api/inventory/v1/agents.pb.validate.go @@ -134,7 +134,8 @@ func (e PMMAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PMMAgentValidationError{} @@ -242,7 +243,8 @@ func (e VMAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = VMAgentValidationError{} @@ -353,7 +355,8 @@ func (e NomadAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = NomadAgentValidationError{} @@ -501,7 +504,8 @@ func (e NodeExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = NodeExporterValidationError{} @@ -701,7 +705,8 @@ func (e MySQLdExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MySQLdExporterValidationError{} @@ -891,7 +896,8 @@ func (e MongoDBExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MongoDBExporterValidationError{} @@ -1081,7 +1087,8 @@ func (e PostgresExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PostgresExporterValidationError{} @@ -1267,7 +1274,8 @@ func (e ProxySQLExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ProxySQLExporterValidationError{} @@ -1451,7 +1459,8 @@ func (e ValkeyExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ValkeyExporterValidationError{} @@ -1589,7 +1598,8 @@ func (e QANMySQLPerfSchemaAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANMySQLPerfSchemaAgentValidationError{} @@ -1729,7 +1739,8 @@ func (e QANMySQLSlowlogAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANMySQLSlowlogAgentValidationError{} @@ -1855,7 +1866,8 @@ func (e QANMongoDBProfilerAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANMongoDBProfilerAgentValidationError{} @@ -1981,7 +1993,8 @@ func (e QANMongoDBMongologAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANMongoDBMongologAgentValidationError{} @@ -2110,7 +2123,8 @@ func (e RTAOptionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RTAOptionsValidationError{} @@ -2259,7 +2273,8 @@ func (e RTAMongoDBAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RTAMongoDBAgentValidationError{} @@ -2388,7 +2403,8 @@ func (e QANPostgreSQLPgStatementsAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANPostgreSQLPgStatementsAgentValidationError{} @@ -2519,7 +2535,8 @@ func (e QANPostgreSQLPgStatMonitorAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QANPostgreSQLPgStatMonitorAgentValidationError{} @@ -2675,7 +2692,8 @@ func (e RDSExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RDSExporterValidationError{} @@ -2830,7 +2848,8 @@ func (e ExternalExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ExternalExporterValidationError{} @@ -2985,7 +3004,8 @@ func (e AzureDatabaseExporterValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AzureDatabaseExporterValidationError{} @@ -3155,7 +3175,8 @@ func (e ChangeCommonAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeCommonAgentParamsValidationError{} @@ -3265,7 +3286,8 @@ func (e ListAgentsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAgentsRequestValidationError{} @@ -4013,7 +4035,8 @@ func (e ListAgentsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAgentsResponseValidationError{} @@ -4124,7 +4147,8 @@ func (e GetAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetAgentRequestValidationError{} @@ -5008,7 +5032,8 @@ func (e GetAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetAgentResponseValidationError{} @@ -5123,7 +5148,8 @@ func (e GetAgentLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetAgentLogsRequestValidationError{} @@ -5227,7 +5253,8 @@ func (e GetAgentLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetAgentLogsResponseValidationError{} @@ -6029,7 +6056,8 @@ func (e AddAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAgentRequestValidationError{} @@ -6831,7 +6859,8 @@ func (e AddAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAgentResponseValidationError{} @@ -7646,7 +7675,8 @@ func (e ChangeAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeAgentRequestValidationError{} @@ -8450,7 +8480,8 @@ func (e ChangeAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeAgentResponseValidationError{} @@ -8565,7 +8596,8 @@ func (e AddPMMAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddPMMAgentParamsValidationError{} @@ -8686,7 +8718,8 @@ func (e AddNodeExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddNodeExporterParamsValidationError{} @@ -8864,7 +8897,8 @@ func (e ChangeNodeExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeNodeExporterParamsValidationError{} @@ -9057,7 +9091,8 @@ func (e AddMySQLdExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddMySQLdExporterParamsValidationError{} @@ -9305,7 +9340,8 @@ func (e ChangeMySQLdExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeMySQLdExporterParamsValidationError{} @@ -9493,7 +9529,8 @@ func (e AddMongoDBExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddMongoDBExporterParamsValidationError{} @@ -9754,7 +9791,8 @@ func (e ChangeMongoDBExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeMongoDBExporterParamsValidationError{} @@ -9947,7 +9985,8 @@ func (e AddPostgresExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddPostgresExporterParamsValidationError{} @@ -10200,7 +10239,8 @@ func (e ChangePostgresExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangePostgresExporterParamsValidationError{} @@ -10383,7 +10423,8 @@ func (e AddProxySQLExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddProxySQLExporterParamsValidationError{} @@ -10612,7 +10653,8 @@ func (e ChangeProxySQLExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeProxySQLExporterParamsValidationError{} @@ -10776,7 +10818,8 @@ func (e AddQANMySQLPerfSchemaAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddQANMySQLPerfSchemaAgentParamsValidationError{} @@ -10997,7 +11040,8 @@ func (e ChangeQANMySQLPerfSchemaAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeQANMySQLPerfSchemaAgentParamsValidationError{} @@ -11161,7 +11205,8 @@ func (e AddQANMySQLSlowlogAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddQANMySQLSlowlogAgentParamsValidationError{} @@ -11386,7 +11431,8 @@ func (e ChangeQANMySQLSlowlogAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeQANMySQLSlowlogAgentParamsValidationError{} @@ -11539,7 +11585,8 @@ func (e AddQANMongoDBProfilerAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddQANMongoDBProfilerAgentParamsValidationError{} @@ -11756,7 +11803,8 @@ func (e ChangeQANMongoDBProfilerAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeQANMongoDBProfilerAgentParamsValidationError{} @@ -11909,7 +11957,8 @@ func (e AddQANMongoDBMongologAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddQANMongoDBMongologAgentParamsValidationError{} @@ -12126,7 +12175,8 @@ func (e ChangeQANMongoDBMongologAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeQANMongoDBMongologAgentParamsValidationError{} @@ -12287,7 +12337,8 @@ func (e AddQANPostgreSQLPgStatementsAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddQANPostgreSQLPgStatementsAgentParamsValidationError{} @@ -12501,7 +12552,8 @@ func (e ChangeQANPostgreSQLPgStatementsAgentParamsValidationError) Error() strin key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeQANPostgreSQLPgStatementsAgentParamsValidationError{} @@ -12664,7 +12716,8 @@ func (e AddQANPostgreSQLPgStatMonitorAgentParamsValidationError) Error() string key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddQANPostgreSQLPgStatMonitorAgentParamsValidationError{} @@ -12882,7 +12935,8 @@ func (e ChangeQANPostgreSQLPgStatMonitorAgentParamsValidationError) Error() stri key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeQANPostgreSQLPgStatMonitorAgentParamsValidationError{} @@ -13022,7 +13076,8 @@ func (e AddRDSExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRDSExporterParamsValidationError{} @@ -13212,7 +13267,8 @@ func (e ChangeRDSExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeRDSExporterParamsValidationError{} @@ -13352,7 +13408,8 @@ func (e AddExternalExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddExternalExporterParamsValidationError{} @@ -13539,7 +13596,8 @@ func (e ChangeExternalExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeExternalExporterParamsValidationError{} @@ -13693,7 +13751,8 @@ func (e AddAzureDatabaseExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAzureDatabaseExporterParamsValidationError{} @@ -13890,7 +13949,8 @@ func (e ChangeAzureDatabaseExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeAzureDatabaseExporterParamsValidationError{} @@ -13996,7 +14056,8 @@ func (e ChangeNomadAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeNomadAgentParamsValidationError{} @@ -14194,7 +14255,8 @@ func (e AddValkeyExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddValkeyExporterParamsValidationError{} @@ -14443,7 +14505,8 @@ func (e ChangeValkeyExporterParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeValkeyExporterParamsValidationError{} @@ -14618,7 +14681,8 @@ func (e AddRTAMongoDBAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRTAMongoDBAgentParamsValidationError{} @@ -14823,7 +14887,8 @@ func (e ChangeRTAMongoDBAgentParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeRTAMongoDBAgentParamsValidationError{} @@ -14938,7 +15003,8 @@ func (e RemoveAgentRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveAgentRequestValidationError{} @@ -15040,7 +15106,8 @@ func (e RemoveAgentResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveAgentResponseValidationError{} diff --git a/api/inventory/v1/log_level.pb.go b/api/inventory/v1/log_level.pb.go index cd798d6fb86..47f0373d578 100644 --- a/api/inventory/v1/log_level.pb.go +++ b/api/inventory/v1/log_level.pb.go @@ -111,10 +111,9 @@ func file_inventory_v1_log_level_proto_rawDescGZIP() []byte { var ( file_inventory_v1_log_level_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_inventory_v1_log_level_proto_goTypes = []any{ - (LogLevel)(0), // 0: inventory.v1.LogLevel + LogLevel(0), // 0: inventory.v1.LogLevel } ) - var file_inventory_v1_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/inventory/v1/nodes.pb.go b/api/inventory/v1/nodes.pb.go index 677e5bbd038..a20fdaf969d 100644 --- a/api/inventory/v1/nodes.pb.go +++ b/api/inventory/v1/nodes.pb.go @@ -2311,7 +2311,7 @@ var ( file_inventory_v1_nodes_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_inventory_v1_nodes_proto_msgTypes = make([]protoimpl.MessageInfo, 32) file_inventory_v1_nodes_proto_goTypes = []any{ - (NodeType)(0), // 0: inventory.v1.NodeType + NodeType(0), // 0: inventory.v1.NodeType (*GenericNode)(nil), // 1: inventory.v1.GenericNode (*ContainerNode)(nil), // 2: inventory.v1.ContainerNode (*RemoteNode)(nil), // 3: inventory.v1.RemoteNode @@ -2346,7 +2346,6 @@ var ( nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry } ) - var file_inventory_v1_nodes_proto_depIdxs = []int32{ 21, // 0: inventory.v1.GenericNode.custom_labels:type_name -> inventory.v1.GenericNode.CustomLabelsEntry 22, // 1: inventory.v1.ContainerNode.custom_labels:type_name -> inventory.v1.ContainerNode.CustomLabelsEntry diff --git a/api/inventory/v1/nodes.pb.validate.go b/api/inventory/v1/nodes.pb.validate.go index a466cb0f01b..e5af4b6592c 100644 --- a/api/inventory/v1/nodes.pb.validate.go +++ b/api/inventory/v1/nodes.pb.validate.go @@ -141,7 +141,8 @@ func (e GenericNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GenericNodeValidationError{} @@ -263,7 +264,8 @@ func (e ContainerNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ContainerNodeValidationError{} @@ -376,7 +378,8 @@ func (e RemoteNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoteNodeValidationError{} @@ -492,7 +495,8 @@ func (e RemoteRDSNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoteRDSNodeValidationError{} @@ -608,7 +612,8 @@ func (e RemoteAzureDatabaseNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoteAzureDatabaseNodeValidationError{} @@ -726,7 +731,8 @@ func (e RemoteElastiCacheNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoteElastiCacheNodeValidationError{} @@ -828,7 +834,8 @@ func (e ListNodesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListNodesRequestValidationError{} @@ -1134,7 +1141,8 @@ func (e ListNodesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListNodesResponseValidationError{} @@ -1245,7 +1253,8 @@ func (e GetNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetNodeRequestValidationError{} @@ -1596,7 +1605,8 @@ func (e GetNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetNodeResponseValidationError{} @@ -1947,7 +1957,8 @@ func (e AddNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddNodeRequestValidationError{} @@ -2298,7 +2309,8 @@ func (e AddNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddNodeResponseValidationError{} @@ -2434,7 +2446,8 @@ func (e AddGenericNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddGenericNodeParamsValidationError{} @@ -2572,7 +2585,8 @@ func (e AddContainerNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddContainerNodeParamsValidationError{} @@ -2704,7 +2718,8 @@ func (e AddRemoteNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRemoteNodeParamsValidationError{} @@ -2845,7 +2860,8 @@ func (e AddRemoteRDSNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRemoteRDSNodeParamsValidationError{} @@ -2986,7 +3002,8 @@ func (e AddRemoteAzureNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRemoteAzureNodeParamsValidationError{} @@ -3130,7 +3147,8 @@ func (e AddRemoteElastiCacheNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRemoteElastiCacheNodeParamsValidationError{} @@ -3245,7 +3263,8 @@ func (e RemoveNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveNodeRequestValidationError{} @@ -3347,7 +3366,8 @@ func (e RemoveNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveNodeResponseValidationError{} diff --git a/api/inventory/v1/services.pb.go b/api/inventory/v1/services.pb.go index 0ca7d8acb26..23eeeb28b81 100644 --- a/api/inventory/v1/services.pb.go +++ b/api/inventory/v1/services.pb.go @@ -3288,7 +3288,7 @@ var ( file_inventory_v1_services_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_inventory_v1_services_proto_msgTypes = make([]protoimpl.MessageInfo, 42) file_inventory_v1_services_proto_goTypes = []any{ - (ServiceType)(0), // 0: inventory.v1.ServiceType + ServiceType(0), // 0: inventory.v1.ServiceType (*MySQLService)(nil), // 1: inventory.v1.MySQLService (*MongoDBService)(nil), // 2: inventory.v1.MongoDBService (*PostgreSQLService)(nil), // 3: inventory.v1.PostgreSQLService @@ -3334,7 +3334,6 @@ var ( (*common.StringMap)(nil), // 43: common.StringMap } ) - var file_inventory_v1_services_proto_depIdxs = []int32{ 27, // 0: inventory.v1.MySQLService.custom_labels:type_name -> inventory.v1.MySQLService.CustomLabelsEntry 28, // 1: inventory.v1.MySQLService.extra_dsn_params:type_name -> inventory.v1.MySQLService.ExtraDsnParamsEntry diff --git a/api/inventory/v1/services.pb.validate.go b/api/inventory/v1/services.pb.validate.go index 79783d70e5d..8a59926820d 100644 --- a/api/inventory/v1/services.pb.validate.go +++ b/api/inventory/v1/services.pb.validate.go @@ -145,7 +145,8 @@ func (e MySQLServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MySQLServiceValidationError{} @@ -267,7 +268,8 @@ func (e MongoDBServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MongoDBServiceValidationError{} @@ -395,7 +397,8 @@ func (e PostgreSQLServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PostgreSQLServiceValidationError{} @@ -517,7 +520,8 @@ func (e ValkeyServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ValkeyServiceValidationError{} @@ -639,7 +643,8 @@ func (e ProxySQLServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ProxySQLServiceValidationError{} @@ -753,7 +758,8 @@ func (e HAProxyServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HAProxyServiceValidationError{} @@ -873,7 +879,8 @@ func (e ExternalServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ExternalServiceValidationError{} @@ -981,7 +988,8 @@ func (e ListServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListServicesRequestValidationError{} @@ -1321,7 +1329,8 @@ func (e ListServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListServicesResponseValidationError{} @@ -1424,7 +1433,8 @@ func (e ListActiveServiceTypesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListActiveServiceTypesRequestValidationError{} @@ -1527,7 +1537,8 @@ func (e ListActiveServiceTypesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListActiveServiceTypesResponseValidationError{} @@ -1640,7 +1651,8 @@ func (e GetServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetServiceRequestValidationError{} @@ -2034,7 +2046,8 @@ func (e GetServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetServiceResponseValidationError{} @@ -2428,7 +2441,8 @@ func (e AddServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddServiceRequestValidationError{} @@ -2822,7 +2836,8 @@ func (e AddServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddServiceResponseValidationError{} @@ -2962,7 +2977,8 @@ func (e AddMySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddMySQLServiceParamsValidationError{} @@ -3100,7 +3116,8 @@ func (e AddMongoDBServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddMongoDBServiceParamsValidationError{} @@ -3240,7 +3257,8 @@ func (e AddPostgreSQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddPostgreSQLServiceParamsValidationError{} @@ -3378,7 +3396,8 @@ func (e AddValkeyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddValkeyServiceParamsValidationError{} @@ -3516,7 +3535,8 @@ func (e AddProxySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddProxySQLServiceParamsValidationError{} @@ -3648,7 +3668,8 @@ func (e AddHAProxyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddHAProxyServiceParamsValidationError{} @@ -3782,7 +3803,8 @@ func (e AddExternalServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddExternalServiceParamsValidationError{} @@ -3897,7 +3919,8 @@ func (e RemoveServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveServiceRequestValidationError{} @@ -3999,7 +4022,8 @@ func (e RemoveServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveServiceResponseValidationError{} @@ -4159,7 +4183,8 @@ func (e ChangeServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeServiceRequestValidationError{} @@ -4553,7 +4578,8 @@ func (e ChangeServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeServiceResponseValidationError{} diff --git a/api/management/v1/agent.pb.go b/api/management/v1/agent.pb.go index 57a2caae5d4..8a745a48910 100644 --- a/api/management/v1/agent.pb.go +++ b/api/management/v1/agent.pb.go @@ -1221,7 +1221,7 @@ var ( file_management_v1_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 13) file_management_v1_agent_proto_goTypes = []any{ - (UpdateSeverity)(0), // 0: management.v1.UpdateSeverity + UpdateSeverity(0), // 0: management.v1.UpdateSeverity (*UniversalAgent)(nil), // 1: management.v1.UniversalAgent (*ListAgentsRequest)(nil), // 2: management.v1.ListAgentsRequest (*ListAgentsResponse)(nil), // 3: management.v1.ListAgentsResponse @@ -1236,12 +1236,11 @@ var ( nil, // 12: management.v1.UniversalAgent.CustomLabelsEntry nil, // 13: management.v1.UniversalAgent.MySQLOptions.ExtraDsnParamsEntry (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp - (v1.LogLevel)(0), // 15: inventory.v1.LogLevel + v1.LogLevel(0), // 15: inventory.v1.LogLevel (*v1.RTAOptions)(nil), // 16: inventory.v1.RTAOptions (*durationpb.Duration)(nil), // 17: google.protobuf.Duration } ) - var file_management_v1_agent_proto_depIdxs = []int32{ 8, // 0: management.v1.UniversalAgent.azure_options:type_name -> management.v1.UniversalAgent.AzureOptions 14, // 1: management.v1.UniversalAgent.created_at:type_name -> google.protobuf.Timestamp diff --git a/api/management/v1/agent.pb.validate.go b/api/management/v1/agent.pb.validate.go index 47de65d289c..e9a79feda2a 100644 --- a/api/management/v1/agent.pb.validate.go +++ b/api/management/v1/agent.pb.validate.go @@ -453,7 +453,8 @@ func (e UniversalAgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalAgentValidationError{} @@ -559,7 +560,8 @@ func (e ListAgentsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAgentsRequestValidationError{} @@ -695,7 +697,8 @@ func (e ListAgentsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAgentsResponseValidationError{} @@ -803,7 +806,8 @@ func (e AgentVersionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AgentVersionsValidationError{} @@ -905,7 +909,8 @@ func (e ListAgentVersionsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAgentVersionsRequestValidationError{} @@ -1041,7 +1046,8 @@ func (e ListAgentVersionsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListAgentVersionsResponseValidationError{} @@ -1148,7 +1154,8 @@ func (e UniversalAgent_MySQLOptionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalAgent_MySQLOptionsValidationError{} @@ -1261,7 +1268,8 @@ func (e UniversalAgent_AzureOptionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalAgent_AzureOptionsValidationError{} @@ -1376,7 +1384,8 @@ func (e UniversalAgent_MongoDBOptionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalAgent_MongoDBOptionsValidationError{} @@ -1487,7 +1496,8 @@ func (e UniversalAgent_PostgreSQLOptionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalAgent_PostgreSQLOptionsValidationError{} @@ -1590,7 +1600,8 @@ func (e UniversalAgent_ValkeyOptionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalAgent_ValkeyOptionsValidationError{} diff --git a/api/management/v1/annotation.pb.go b/api/management/v1/annotation.pb.go index ec781561e4c..53bbe233c1b 100644 --- a/api/management/v1/annotation.pb.go +++ b/api/management/v1/annotation.pb.go @@ -164,7 +164,6 @@ var ( (*AddAnnotationResponse)(nil), // 1: management.v1.AddAnnotationResponse } ) - var file_management_v1_annotation_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/management/v1/annotation.pb.validate.go b/api/management/v1/annotation.pb.validate.go index 2a157cc3722..9ce68747925 100644 --- a/api/management/v1/annotation.pb.validate.go +++ b/api/management/v1/annotation.pb.validate.go @@ -137,7 +137,8 @@ func (e AddAnnotationRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAnnotationRequestValidationError{} @@ -239,7 +240,8 @@ func (e AddAnnotationResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAnnotationResponseValidationError{} diff --git a/api/management/v1/azure.pb.go b/api/management/v1/azure.pb.go index e2ca4b29af3..863cff6d5ab 100644 --- a/api/management/v1/azure.pb.go +++ b/api/management/v1/azure.pb.go @@ -716,7 +716,7 @@ var ( file_management_v1_azure_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_azure_proto_msgTypes = make([]protoimpl.MessageInfo, 6) file_management_v1_azure_proto_goTypes = []any{ - (DiscoverAzureDatabaseType)(0), // 0: management.v1.DiscoverAzureDatabaseType + DiscoverAzureDatabaseType(0), // 0: management.v1.DiscoverAzureDatabaseType (*DiscoverAzureDatabaseRequest)(nil), // 1: management.v1.DiscoverAzureDatabaseRequest (*DiscoverAzureDatabaseInstance)(nil), // 2: management.v1.DiscoverAzureDatabaseInstance (*DiscoverAzureDatabaseResponse)(nil), // 3: management.v1.DiscoverAzureDatabaseResponse @@ -726,7 +726,6 @@ var ( (*durationpb.Duration)(nil), // 7: google.protobuf.Duration } ) - var file_management_v1_azure_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverAzureDatabaseInstance.type:type_name -> management.v1.DiscoverAzureDatabaseType 2, // 1: management.v1.DiscoverAzureDatabaseResponse.azure_database_instance:type_name -> management.v1.DiscoverAzureDatabaseInstance diff --git a/api/management/v1/azure.pb.validate.go b/api/management/v1/azure.pb.validate.go index 77c7d042509..be225936500 100644 --- a/api/management/v1/azure.pb.validate.go +++ b/api/management/v1/azure.pb.validate.go @@ -169,7 +169,8 @@ func (e DiscoverAzureDatabaseRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverAzureDatabaseRequestValidationError{} @@ -292,7 +293,8 @@ func (e DiscoverAzureDatabaseInstanceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverAzureDatabaseInstanceValidationError{} @@ -429,7 +431,8 @@ func (e DiscoverAzureDatabaseResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverAzureDatabaseResponseValidationError{} @@ -701,7 +704,8 @@ func (e AddAzureDatabaseRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAzureDatabaseRequestValidationError{} @@ -803,7 +807,8 @@ func (e AddAzureDatabaseResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddAzureDatabaseResponseValidationError{} diff --git a/api/management/v1/elasticache.pb.go b/api/management/v1/elasticache.pb.go index 50692a3f9c2..5ccc4f5d93b 100644 --- a/api/management/v1/elasticache.pb.go +++ b/api/management/v1/elasticache.pb.go @@ -665,20 +665,19 @@ var ( file_management_v1_elasticache_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_elasticache_proto_msgTypes = make([]protoimpl.MessageInfo, 6) file_management_v1_elasticache_proto_goTypes = []any{ - (DiscoverElastiCacheEngine)(0), // 0: management.v1.DiscoverElastiCacheEngine + DiscoverElastiCacheEngine(0), // 0: management.v1.DiscoverElastiCacheEngine (*DiscoverElastiCacheInstance)(nil), // 1: management.v1.DiscoverElastiCacheInstance (*DiscoverElastiCacheRequest)(nil), // 2: management.v1.DiscoverElastiCacheRequest (*DiscoverElastiCacheResponse)(nil), // 3: management.v1.DiscoverElastiCacheResponse (*AddElastiCacheServiceParams)(nil), // 4: management.v1.AddElastiCacheServiceParams (*ElastiCacheServiceResult)(nil), // 5: management.v1.ElastiCacheServiceResult nil, // 6: management.v1.AddElastiCacheServiceParams.CustomLabelsEntry - (MetricsMode)(0), // 7: management.v1.MetricsMode + MetricsMode(0), // 7: management.v1.MetricsMode (*v1.RemoteElastiCacheNode)(nil), // 8: inventory.v1.RemoteElastiCacheNode (*v1.ValkeyService)(nil), // 9: inventory.v1.ValkeyService (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter } ) - var file_management_v1_elasticache_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverElastiCacheInstance.engine:type_name -> management.v1.DiscoverElastiCacheEngine 1, // 1: management.v1.DiscoverElastiCacheResponse.elasticache_instances:type_name -> management.v1.DiscoverElastiCacheInstance diff --git a/api/management/v1/elasticache.pb.validate.go b/api/management/v1/elasticache.pb.validate.go index b4b506e4ca9..a6500392297 100644 --- a/api/management/v1/elasticache.pb.validate.go +++ b/api/management/v1/elasticache.pb.validate.go @@ -145,7 +145,8 @@ func (e DiscoverElastiCacheInstanceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverElastiCacheInstanceValidationError{} @@ -251,7 +252,8 @@ func (e DiscoverElastiCacheRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverElastiCacheRequestValidationError{} @@ -388,7 +390,8 @@ func (e DiscoverElastiCacheResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverElastiCacheResponseValidationError{} @@ -569,7 +572,8 @@ func (e AddElastiCacheServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddElastiCacheServiceParamsValidationError{} @@ -758,7 +762,8 @@ func (e ElastiCacheServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ElastiCacheServiceResultValidationError{} diff --git a/api/management/v1/external.pb.go b/api/management/v1/external.pb.go index 8e1824f0345..d990cb53abe 100644 --- a/api/management/v1/external.pb.go +++ b/api/management/v1/external.pb.go @@ -350,12 +350,11 @@ var ( (*ExternalServiceResult)(nil), // 1: management.v1.ExternalServiceResult nil, // 2: management.v1.AddExternalServiceParams.CustomLabelsEntry (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode + MetricsMode(0), // 4: management.v1.MetricsMode (*v1.ExternalService)(nil), // 5: inventory.v1.ExternalService (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter } ) - var file_management_v1_external_proto_depIdxs = []int32{ 3, // 0: management.v1.AddExternalServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddExternalServiceParams.custom_labels:type_name -> management.v1.AddExternalServiceParams.CustomLabelsEntry diff --git a/api/management/v1/external.pb.validate.go b/api/management/v1/external.pb.validate.go index 232949e1810..a59468c08ae 100644 --- a/api/management/v1/external.pb.validate.go +++ b/api/management/v1/external.pb.validate.go @@ -207,7 +207,8 @@ func (e AddExternalServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddExternalServiceParamsValidationError{} @@ -367,7 +368,8 @@ func (e ExternalServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ExternalServiceResultValidationError{} diff --git a/api/management/v1/haproxy.pb.go b/api/management/v1/haproxy.pb.go index 1af609a4f88..95cad534323 100644 --- a/api/management/v1/haproxy.pb.go +++ b/api/management/v1/haproxy.pb.go @@ -328,12 +328,11 @@ var ( (*HAProxyServiceResult)(nil), // 1: management.v1.HAProxyServiceResult nil, // 2: management.v1.AddHAProxyServiceParams.CustomLabelsEntry (*AddNodeParams)(nil), // 3: management.v1.AddNodeParams - (MetricsMode)(0), // 4: management.v1.MetricsMode + MetricsMode(0), // 4: management.v1.MetricsMode (*v1.HAProxyService)(nil), // 5: inventory.v1.HAProxyService (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter } ) - var file_management_v1_haproxy_proto_depIdxs = []int32{ 3, // 0: management.v1.AddHAProxyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddHAProxyServiceParams.custom_labels:type_name -> management.v1.AddHAProxyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/haproxy.pb.validate.go b/api/management/v1/haproxy.pb.validate.go index bf825aa36e8..c11d58e6e5c 100644 --- a/api/management/v1/haproxy.pb.validate.go +++ b/api/management/v1/haproxy.pb.validate.go @@ -203,7 +203,8 @@ func (e AddHAProxyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddHAProxyServiceParamsValidationError{} @@ -363,7 +364,8 @@ func (e HAProxyServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HAProxyServiceResultValidationError{} diff --git a/api/management/v1/json/client/management_service/add_service_responses.go b/api/management/v1/json/client/management_service/add_service_responses.go index c10e818edc1..c5d8f2c8bf8 100644 --- a/api/management/v1/json/client/management_service/add_service_responses.go +++ b/api/management/v1/json/client/management_service/add_service_responses.go @@ -1877,6 +1877,9 @@ type AddServiceOKBodyElasticacheValkeyExporter struct { // Optionally expose the exporter process on all public interfaces ExposeExporter bool `json:"expose_exporter,omitempty"` + // Connection timeout for exporter (if set). + ConnectionTimeout string `json:"connection_timeout,omitempty"` + // metrics resolutions MetricsResolutions *AddServiceOKBodyElasticacheValkeyExporterMetricsResolutions `json:"metrics_resolutions,omitempty"` } diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go index 25025685e10..d367e0c3c88 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_parameters.go @@ -2,9 +2,6 @@ package management_service -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "context" "net/http" diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go index a39781aee91..de027b5be33 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go @@ -2,9 +2,6 @@ package management_service -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "context" "encoding/json" diff --git a/api/management/v1/json/v1.json b/api/management/v1/json/v1.json index ca3c8122ba9..700bf987f2e 100644 --- a/api/management/v1/json/v1.json +++ b/api/management/v1/json/v1.json @@ -7270,6 +7270,11 @@ } }, "x-order": 14 + }, + "connection_timeout": { + "description": "Connection timeout for exporter (if set).", + "type": "string", + "x-order": 15 } }, "x-order": 2 diff --git a/api/management/v1/metrics.pb.go b/api/management/v1/metrics.pb.go index af41e8e2ebb..b552c7955fb 100644 --- a/api/management/v1/metrics.pb.go +++ b/api/management/v1/metrics.pb.go @@ -100,10 +100,9 @@ func file_management_v1_metrics_proto_rawDescGZIP() []byte { var ( file_management_v1_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_metrics_proto_goTypes = []any{ - (MetricsMode)(0), // 0: management.v1.MetricsMode + MetricsMode(0), // 0: management.v1.MetricsMode } ) - var file_management_v1_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/management/v1/mongodb.pb.go b/api/management/v1/mongodb.pb.go index c25cc4f8282..aad151306df 100644 --- a/api/management/v1/mongodb.pb.go +++ b/api/management/v1/mongodb.pb.go @@ -559,7 +559,6 @@ var ( (*v1.RTAMongoDBAgent)(nil), // 11: inventory.v1.RTAMongoDBAgent } ) - var file_management_v1_mongodb_proto_depIdxs = []int32{ 3, // 0: management.v1.AddMongoDBServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMongoDBServiceParams.custom_labels:type_name -> management.v1.AddMongoDBServiceParams.CustomLabelsEntry diff --git a/api/management/v1/mongodb.pb.validate.go b/api/management/v1/mongodb.pb.validate.go index 7059a5d79b4..24e14d8675c 100644 --- a/api/management/v1/mongodb.pb.validate.go +++ b/api/management/v1/mongodb.pb.validate.go @@ -267,7 +267,8 @@ func (e AddMongoDBServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddMongoDBServiceParamsValidationError{} @@ -514,7 +515,8 @@ func (e MongoDBServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MongoDBServiceResultValidationError{} diff --git a/api/management/v1/mysql.pb.go b/api/management/v1/mysql.pb.go index 18f64740d99..70660a14379 100644 --- a/api/management/v1/mysql.pb.go +++ b/api/management/v1/mysql.pb.go @@ -545,7 +545,6 @@ var ( (*v1.QANMySQLSlowlogAgent)(nil), // 11: inventory.v1.QANMySQLSlowlogAgent } ) - var file_management_v1_mysql_proto_depIdxs = []int32{ 4, // 0: management.v1.AddMySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMySQLServiceParams.custom_labels:type_name -> management.v1.AddMySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/mysql.pb.validate.go b/api/management/v1/mysql.pb.validate.go index 76aa04485db..e0113114c7d 100644 --- a/api/management/v1/mysql.pb.validate.go +++ b/api/management/v1/mysql.pb.validate.go @@ -276,7 +276,8 @@ func (e AddMySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddMySQLServiceParamsValidationError{} @@ -496,7 +497,8 @@ func (e MySQLServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MySQLServiceResultValidationError{} diff --git a/api/management/v1/node.pb.go b/api/management/v1/node.pb.go index d3f494cdc58..53bb2be68db 100644 --- a/api/management/v1/node.pb.go +++ b/api/management/v1/node.pb.go @@ -1231,7 +1231,7 @@ var ( file_management_v1_node_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_node_proto_msgTypes = make([]protoimpl.MessageInfo, 15) file_management_v1_node_proto_goTypes = []any{ - (UniversalNode_Status)(0), // 0: management.v1.UniversalNode.Status + UniversalNode_Status(0), // 0: management.v1.UniversalNode.Status (*AddNodeParams)(nil), // 1: management.v1.AddNodeParams (*RegisterNodeRequest)(nil), // 2: management.v1.RegisterNodeRequest (*RegisterNodeResponse)(nil), // 3: management.v1.RegisterNodeResponse @@ -1247,15 +1247,14 @@ var ( (*UniversalNode_Service)(nil), // 13: management.v1.UniversalNode.Service (*UniversalNode_Agent)(nil), // 14: management.v1.UniversalNode.Agent nil, // 15: management.v1.UniversalNode.CustomLabelsEntry - (v1.NodeType)(0), // 16: inventory.v1.NodeType - (MetricsMode)(0), // 17: management.v1.MetricsMode + v1.NodeType(0), // 16: inventory.v1.NodeType + MetricsMode(0), // 17: management.v1.MetricsMode (*v1.GenericNode)(nil), // 18: inventory.v1.GenericNode (*v1.ContainerNode)(nil), // 19: inventory.v1.ContainerNode (*v1.PMMAgent)(nil), // 20: inventory.v1.PMMAgent (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp } ) - var file_management_v1_node_proto_depIdxs = []int32{ 16, // 0: management.v1.AddNodeParams.node_type:type_name -> inventory.v1.NodeType 11, // 1: management.v1.AddNodeParams.custom_labels:type_name -> management.v1.AddNodeParams.CustomLabelsEntry diff --git a/api/management/v1/node.pb.validate.go b/api/management/v1/node.pb.validate.go index 62a389ade8a..34411b3f938 100644 --- a/api/management/v1/node.pb.validate.go +++ b/api/management/v1/node.pb.validate.go @@ -155,7 +155,8 @@ func (e AddNodeParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddNodeParamsValidationError{} @@ -298,7 +299,8 @@ func (e RegisterNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RegisterNodeRequestValidationError{} @@ -491,7 +493,8 @@ func (e RegisterNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RegisterNodeResponseValidationError{} @@ -606,7 +609,8 @@ func (e UnregisterNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UnregisterNodeRequestValidationError{} @@ -710,7 +714,8 @@ func (e UnregisterNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UnregisterNodeResponseValidationError{} @@ -966,7 +971,8 @@ func (e UniversalNodeValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalNodeValidationError{} @@ -1068,7 +1074,8 @@ func (e ListNodesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListNodesRequestValidationError{} @@ -1204,7 +1211,8 @@ func (e ListNodesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListNodesResponseValidationError{} @@ -1315,7 +1323,8 @@ func (e GetNodeRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetNodeRequestValidationError{} @@ -1444,7 +1453,8 @@ func (e GetNodeResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetNodeResponseValidationError{} @@ -1552,7 +1562,8 @@ func (e UniversalNode_ServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalNode_ServiceValidationError{} @@ -1662,7 +1673,8 @@ func (e UniversalNode_AgentValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalNode_AgentValidationError{} diff --git a/api/management/v1/postgresql.pb.go b/api/management/v1/postgresql.pb.go index 0271ba48788..0e6f54ad033 100644 --- a/api/management/v1/postgresql.pb.go +++ b/api/management/v1/postgresql.pb.go @@ -535,7 +535,6 @@ var ( (*v1.QANPostgreSQLPgStatMonitorAgent)(nil), // 10: inventory.v1.QANPostgreSQLPgStatMonitorAgent } ) - var file_management_v1_postgresql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddPostgreSQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddPostgreSQLServiceParams.custom_labels:type_name -> management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/postgresql.pb.validate.go b/api/management/v1/postgresql.pb.validate.go index 45a90559cab..cd942edb5f7 100644 --- a/api/management/v1/postgresql.pb.validate.go +++ b/api/management/v1/postgresql.pb.validate.go @@ -276,7 +276,8 @@ func (e AddPostgreSQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddPostgreSQLServiceParamsValidationError{} @@ -496,7 +497,8 @@ func (e PostgreSQLServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PostgreSQLServiceResultValidationError{} diff --git a/api/management/v1/proxysql.pb.go b/api/management/v1/proxysql.pb.go index e3142ed85df..7d9dbbcfc07 100644 --- a/api/management/v1/proxysql.pb.go +++ b/api/management/v1/proxysql.pb.go @@ -395,7 +395,6 @@ var ( (*v1.ProxySQLExporter)(nil), // 8: inventory.v1.ProxySQLExporter } ) - var file_management_v1_proxysql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddProxySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddProxySQLServiceParams.custom_labels:type_name -> management.v1.AddProxySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/proxysql.pb.validate.go b/api/management/v1/proxysql.pb.validate.go index 431520f5b56..9ef0ae89abf 100644 --- a/api/management/v1/proxysql.pb.validate.go +++ b/api/management/v1/proxysql.pb.validate.go @@ -254,7 +254,8 @@ func (e AddProxySQLServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddProxySQLServiceParamsValidationError{} @@ -414,7 +415,8 @@ func (e ProxySQLServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ProxySQLServiceResultValidationError{} diff --git a/api/management/v1/rds.pb.go b/api/management/v1/rds.pb.go index 6b52957a9e7..fb882ea8de5 100644 --- a/api/management/v1/rds.pb.go +++ b/api/management/v1/rds.pb.go @@ -835,7 +835,7 @@ var ( file_management_v1_rds_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_rds_proto_msgTypes = make([]protoimpl.MessageInfo, 6) file_management_v1_rds_proto_goTypes = []any{ - (DiscoverRDSEngine)(0), // 0: management.v1.DiscoverRDSEngine + DiscoverRDSEngine(0), // 0: management.v1.DiscoverRDSEngine (*DiscoverRDSInstance)(nil), // 1: management.v1.DiscoverRDSInstance (*DiscoverRDSRequest)(nil), // 2: management.v1.DiscoverRDSRequest (*DiscoverRDSResponse)(nil), // 3: management.v1.DiscoverRDSResponse @@ -854,7 +854,6 @@ var ( (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 16: inventory.v1.QANPostgreSQLPgStatementsAgent } ) - var file_management_v1_rds_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverRDSInstance.engine:type_name -> management.v1.DiscoverRDSEngine 1, // 1: management.v1.DiscoverRDSResponse.rds_instances:type_name -> management.v1.DiscoverRDSInstance diff --git a/api/management/v1/rds.pb.validate.go b/api/management/v1/rds.pb.validate.go index 08d58fbca96..1b4ec4c79b0 100644 --- a/api/management/v1/rds.pb.validate.go +++ b/api/management/v1/rds.pb.validate.go @@ -140,7 +140,8 @@ func (e DiscoverRDSInstanceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverRDSInstanceValidationError{} @@ -246,7 +247,8 @@ func (e DiscoverRDSRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverRDSRequestValidationError{} @@ -382,7 +384,8 @@ func (e DiscoverRDSResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DiscoverRDSResponseValidationError{} @@ -627,7 +630,8 @@ func (e AddRDSServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddRDSServiceParamsValidationError{} @@ -959,7 +963,8 @@ func (e RDSServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RDSServiceResultValidationError{} diff --git a/api/management/v1/service.pb.go b/api/management/v1/service.pb.go index bcd139244d9..ca36a332e74 100644 --- a/api/management/v1/service.pb.go +++ b/api/management/v1/service.pb.go @@ -990,7 +990,7 @@ var ( file_management_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) file_management_v1_service_proto_goTypes = []any{ - (UniversalService_Status)(0), // 0: management.v1.UniversalService.Status + UniversalService_Status(0), // 0: management.v1.UniversalService.Status (*AddServiceRequest)(nil), // 1: management.v1.AddServiceRequest (*AddServiceResponse)(nil), // 2: management.v1.AddServiceResponse (*RemoveServiceRequest)(nil), // 3: management.v1.RemoveServiceRequest @@ -1017,7 +1017,7 @@ var ( (*RDSServiceResult)(nil), // 24: management.v1.RDSServiceResult (*ValkeyServiceResult)(nil), // 25: management.v1.ValkeyServiceResult (*ElastiCacheServiceResult)(nil), // 26: management.v1.ElastiCacheServiceResult - (v1.ServiceType)(0), // 27: inventory.v1.ServiceType + v1.ServiceType(0), // 27: inventory.v1.ServiceType (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp (*UniversalAgent)(nil), // 29: management.v1.UniversalAgent (*AddAnnotationRequest)(nil), // 30: management.v1.AddAnnotationRequest @@ -1044,7 +1044,6 @@ var ( (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse } ) - var file_management_v1_service_proto_depIdxs = []int32{ 9, // 0: management.v1.AddServiceRequest.mysql:type_name -> management.v1.AddMySQLServiceParams 10, // 1: management.v1.AddServiceRequest.mongodb:type_name -> management.v1.AddMongoDBServiceParams diff --git a/api/management/v1/service.pb.validate.go b/api/management/v1/service.pb.validate.go index f1bdd20de74..97eb98b0e73 100644 --- a/api/management/v1/service.pb.validate.go +++ b/api/management/v1/service.pb.validate.go @@ -502,7 +502,8 @@ func (e AddServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddServiceRequestValidationError{} @@ -978,7 +979,8 @@ func (e AddServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddServiceResponseValidationError{} @@ -1084,7 +1086,8 @@ func (e RemoveServiceRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveServiceRequestValidationError{} @@ -1186,7 +1189,8 @@ func (e RemoveServiceResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RemoveServiceResponseValidationError{} @@ -1410,7 +1414,8 @@ func (e UniversalServiceValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UniversalServiceValidationError{} @@ -1518,7 +1523,8 @@ func (e ListServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListServicesRequestValidationError{} @@ -1654,7 +1660,8 @@ func (e ListServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListServicesResponseValidationError{} diff --git a/api/management/v1/severity.pb.go b/api/management/v1/severity.pb.go index 93408b544e2..51c04a93a0e 100644 --- a/api/management/v1/severity.pb.go +++ b/api/management/v1/severity.pb.go @@ -122,10 +122,9 @@ func file_management_v1_severity_proto_rawDescGZIP() []byte { var ( file_management_v1_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_management_v1_severity_proto_goTypes = []any{ - (Severity)(0), // 0: management.v1.Severity + Severity(0), // 0: management.v1.Severity } ) - var file_management_v1_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/management/v1/valkey.pb.go b/api/management/v1/valkey.pb.go index a0fc2f73fe2..26cc4db7f99 100644 --- a/api/management/v1/valkey.pb.go +++ b/api/management/v1/valkey.pb.go @@ -417,7 +417,6 @@ var ( (*v1.ValkeyExporter)(nil), // 8: inventory.v1.ValkeyExporter } ) - var file_management_v1_valkey_proto_depIdxs = []int32{ 3, // 0: management.v1.AddValkeyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddValkeyServiceParams.custom_labels:type_name -> management.v1.AddValkeyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/valkey.pb.validate.go b/api/management/v1/valkey.pb.validate.go index ba03132cd36..cc39a662be3 100644 --- a/api/management/v1/valkey.pb.validate.go +++ b/api/management/v1/valkey.pb.validate.go @@ -273,7 +273,8 @@ func (e AddValkeyServiceParamsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AddValkeyServiceParamsValidationError{} @@ -433,7 +434,8 @@ func (e ValkeyServiceResultValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ValkeyServiceResultValidationError{} diff --git a/api/qan/v1/collector.pb.go b/api/qan/v1/collector.pb.go index 253d9232af1..3716a3a24d1 100644 --- a/api/qan/v1/collector.pb.go +++ b/api/qan/v1/collector.pb.go @@ -2753,11 +2753,10 @@ var ( nil, // 3: qan.v1.MetricsBucket.LabelsEntry nil, // 4: qan.v1.MetricsBucket.WarningsEntry nil, // 5: qan.v1.MetricsBucket.ErrorsEntry - (v1.AgentType)(0), // 6: inventory.v1.AgentType - (ExampleType)(0), // 7: qan.v1.ExampleType + v1.AgentType(0), // 6: inventory.v1.AgentType + ExampleType(0), // 7: qan.v1.ExampleType } ) - var file_qan_v1_collector_proto_depIdxs = []int32{ 1, // 0: qan.v1.CollectRequest.metrics_bucket:type_name -> qan.v1.MetricsBucket 6, // 1: qan.v1.MetricsBucket.agent_type:type_name -> inventory.v1.AgentType diff --git a/api/qan/v1/collector.pb.validate.go b/api/qan/v1/collector.pb.validate.go index a88b4517dd9..aba12fa90ed 100644 --- a/api/qan/v1/collector.pb.validate.go +++ b/api/qan/v1/collector.pb.validate.go @@ -160,7 +160,8 @@ func (e CollectRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CollectRequestValidationError{} @@ -796,7 +797,8 @@ func (e MetricsBucketValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsBucketValidationError{} @@ -896,7 +898,8 @@ func (e CollectResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CollectResponseValidationError{} diff --git a/api/qan/v1/filters.pb.go b/api/qan/v1/filters.pb.go index fcbf5e7aead..390a687dbc4 100644 --- a/api/qan/v1/filters.pb.go +++ b/api/qan/v1/filters.pb.go @@ -293,7 +293,6 @@ var ( (*MapFieldEntry)(nil), // 6: qan.v1.MapFieldEntry } ) - var file_qan_v1_filters_proto_depIdxs = []int32{ 5, // 0: qan.v1.GetFilteredMetricsNamesRequest.period_start_from:type_name -> google.protobuf.Timestamp 5, // 1: qan.v1.GetFilteredMetricsNamesRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/filters.pb.validate.go b/api/qan/v1/filters.pb.validate.go index bdd9c5d42dd..2db21e6f863 100644 --- a/api/qan/v1/filters.pb.validate.go +++ b/api/qan/v1/filters.pb.validate.go @@ -219,7 +219,8 @@ func (e GetFilteredMetricsNamesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetFilteredMetricsNamesRequestValidationError{} @@ -368,7 +369,8 @@ func (e GetFilteredMetricsNamesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetFilteredMetricsNamesResponseValidationError{} @@ -501,7 +503,8 @@ func (e ListLabelsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListLabelsValidationError{} @@ -605,7 +608,8 @@ func (e ValuesValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ValuesValidationError{} diff --git a/api/qan/v1/object_details.pb.go b/api/qan/v1/object_details.pb.go index 0012c34ff93..53e6c06150b 100644 --- a/api/qan/v1/object_details.pb.go +++ b/api/qan/v1/object_details.pb.go @@ -1642,10 +1642,9 @@ var ( (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp (*MapFieldEntry)(nil), // 27: qan.v1.MapFieldEntry (*Point)(nil), // 28: qan.v1.Point - (ExampleType)(0), // 29: qan.v1.ExampleType + ExampleType(0), // 29: qan.v1.ExampleType } ) - var file_qan_v1_object_details_proto_depIdxs = []int32{ 26, // 0: qan.v1.GetMetricsRequest.period_start_from:type_name -> google.protobuf.Timestamp 26, // 1: qan.v1.GetMetricsRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/object_details.pb.validate.go b/api/qan/v1/object_details.pb.validate.go index 59861ff0fde..45a7fb602ea 100644 --- a/api/qan/v1/object_details.pb.validate.go +++ b/api/qan/v1/object_details.pb.validate.go @@ -222,7 +222,8 @@ func (e GetMetricsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetMetricsRequestValidationError{} @@ -483,7 +484,8 @@ func (e GetMetricsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetMetricsResponseValidationError{} @@ -598,7 +600,8 @@ func (e MetricValuesValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricValuesValidationError{} @@ -696,7 +699,8 @@ func (e LabelsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = LabelsValidationError{} @@ -896,7 +900,8 @@ func (e GetQueryExampleRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetQueryExampleRequestValidationError{} @@ -1032,7 +1037,8 @@ func (e GetQueryExampleResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetQueryExampleResponseValidationError{} @@ -1151,7 +1157,8 @@ func (e QueryExampleValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryExampleValidationError{} @@ -1313,7 +1320,8 @@ func (e GetLabelsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetLabelsRequestValidationError{} @@ -1461,7 +1469,8 @@ func (e GetLabelsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetLabelsResponseValidationError{} @@ -1561,7 +1570,8 @@ func (e ListLabelValuesValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListLabelValuesValidationError{} @@ -1665,7 +1675,8 @@ func (e GetQueryPlanRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetQueryPlanRequestValidationError{} @@ -1771,7 +1782,8 @@ func (e GetQueryPlanResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetQueryPlanResponseValidationError{} @@ -1967,7 +1979,8 @@ func (e GetHistogramRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetHistogramRequestValidationError{} @@ -2103,7 +2116,8 @@ func (e GetHistogramResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetHistogramResponseValidationError{} @@ -2207,7 +2221,8 @@ func (e HistogramItemValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HistogramItemValidationError{} @@ -2313,7 +2328,8 @@ func (e QueryExistsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryExistsRequestValidationError{} @@ -2417,7 +2433,8 @@ func (e QueryExistsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryExistsResponseValidationError{} @@ -2523,7 +2540,8 @@ func (e SchemaByQueryIDRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SchemaByQueryIDRequestValidationError{} @@ -2627,7 +2645,8 @@ func (e SchemaByQueryIDResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SchemaByQueryIDResponseValidationError{} @@ -2736,7 +2755,8 @@ func (e ExplainFingerprintByQueryIDRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ExplainFingerprintByQueryIDRequestValidationError{} @@ -2845,7 +2865,8 @@ func (e ExplainFingerprintByQueryIDResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ExplainFingerprintByQueryIDResponseValidationError{} @@ -2974,7 +2995,8 @@ func (e GetSelectedQueryMetadataResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetSelectedQueryMetadataResponseValidationError{} diff --git a/api/qan/v1/profile.pb.go b/api/qan/v1/profile.pb.go index 03ab97e871a..7700b76dcd3 100644 --- a/api/qan/v1/profile.pb.go +++ b/api/qan/v1/profile.pb.go @@ -598,7 +598,6 @@ var ( (*Point)(nil), // 8: qan.v1.Point } ) - var file_qan_v1_profile_proto_depIdxs = []int32{ 7, // 0: qan.v1.GetReportRequest.period_start_from:type_name -> google.protobuf.Timestamp 7, // 1: qan.v1.GetReportRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/profile.pb.validate.go b/api/qan/v1/profile.pb.validate.go index fe2eb0e7026..2357e48b4c6 100644 --- a/api/qan/v1/profile.pb.validate.go +++ b/api/qan/v1/profile.pb.validate.go @@ -226,7 +226,8 @@ func (e GetReportRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetReportRequestValidationError{} @@ -330,7 +331,8 @@ func (e ReportMapFieldEntryValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ReportMapFieldEntryValidationError{} @@ -472,7 +474,8 @@ func (e GetReportResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetReportResponseValidationError{} @@ -664,7 +667,8 @@ func (e RowValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = RowValidationError{} @@ -791,7 +795,8 @@ func (e MetricValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricValidationError{} @@ -905,7 +910,8 @@ func (e StatValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StatValidationError{} diff --git a/api/qan/v1/qan.pb.go b/api/qan/v1/qan.pb.go index 629cc7d94b5..2d37431a7c0 100644 --- a/api/qan/v1/qan.pb.go +++ b/api/qan/v1/qan.pb.go @@ -995,12 +995,11 @@ var ( file_qan_v1_qan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_qan_v1_qan_proto_msgTypes = make([]protoimpl.MessageInfo, 2) file_qan_v1_qan_proto_goTypes = []any{ - (ExampleType)(0), // 0: qan.v1.ExampleType + ExampleType(0), // 0: qan.v1.ExampleType (*Point)(nil), // 1: qan.v1.Point (*MapFieldEntry)(nil), // 2: qan.v1.MapFieldEntry } ) - var file_qan_v1_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/qan/v1/qan.pb.validate.go b/api/qan/v1/qan.pb.validate.go index 340a52bf0f7..ab31e2e4810 100644 --- a/api/qan/v1/qan.pb.validate.go +++ b/api/qan/v1/qan.pb.validate.go @@ -278,7 +278,8 @@ func (e PointValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = PointValidationError{} @@ -380,7 +381,8 @@ func (e MapFieldEntryValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MapFieldEntryValidationError{} diff --git a/api/qan/v1/service.pb.go b/api/qan/v1/service.pb.go index 0e52423aa51..c5c688d9000 100644 --- a/api/qan/v1/service.pb.go +++ b/api/qan/v1/service.pb.go @@ -258,7 +258,6 @@ var ( (*GetQueryExampleResponse)(nil), // 24: qan.v1.GetQueryExampleResponse } ) - var file_qan_v1_service_proto_depIdxs = []int32{ 4, // 0: qan.v1.GetMetricsNamesResponse.data:type_name -> qan.v1.GetMetricsNamesResponse.DataEntry 5, // 1: qan.v1.QANService.GetReport:input_type -> qan.v1.GetReportRequest diff --git a/api/qan/v1/service.pb.validate.go b/api/qan/v1/service.pb.validate.go index 611ba4ecddd..685ef583493 100644 --- a/api/qan/v1/service.pb.validate.go +++ b/api/qan/v1/service.pb.validate.go @@ -124,7 +124,8 @@ func (e GetMetricsNamesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetMetricsNamesRequestValidationError{} @@ -228,7 +229,8 @@ func (e GetMetricsNamesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetMetricsNamesResponseValidationError{} @@ -330,7 +332,8 @@ func (e HealthCheckRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HealthCheckRequestValidationError{} @@ -432,7 +435,8 @@ func (e HealthCheckResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HealthCheckResponseValidationError{} diff --git a/api/realtimeanalytics/v1/collector.pb.go b/api/realtimeanalytics/v1/collector.pb.go index f149de0a6cf..b9b81466e7c 100644 --- a/api/realtimeanalytics/v1/collector.pb.go +++ b/api/realtimeanalytics/v1/collector.pb.go @@ -140,7 +140,6 @@ var ( (*QueryData)(nil), // 2: realtimeanalytics.v1.QueryData } ) - var file_realtimeanalytics_v1_collector_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.CollectRequest.queries:type_name -> realtimeanalytics.v1.QueryData 0, // 1: realtimeanalytics.v1.CollectorService.Collect:input_type -> realtimeanalytics.v1.CollectRequest diff --git a/api/realtimeanalytics/v1/collector.pb.validate.go b/api/realtimeanalytics/v1/collector.pb.validate.go index 5bfa454f5e1..591ccae1897 100644 --- a/api/realtimeanalytics/v1/collector.pb.validate.go +++ b/api/realtimeanalytics/v1/collector.pb.validate.go @@ -156,7 +156,8 @@ func (e CollectRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CollectRequestValidationError{} @@ -256,7 +257,8 @@ func (e CollectResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CollectResponseValidationError{} diff --git a/api/realtimeanalytics/v1/query.pb.go b/api/realtimeanalytics/v1/query.pb.go index 43c4a1bdd5c..b9ab1809d9a 100644 --- a/api/realtimeanalytics/v1/query.pb.go +++ b/api/realtimeanalytics/v1/query.pb.go @@ -331,7 +331,6 @@ var ( (*durationpb.Duration)(nil), // 3: google.protobuf.Duration } ) - var file_realtimeanalytics_v1_query_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.QueryMongoDBData.operation_start_time:type_name -> google.protobuf.Timestamp 3, // 1: realtimeanalytics.v1.QueryData.query_execution_duration:type_name -> google.protobuf.Duration diff --git a/api/realtimeanalytics/v1/query.pb.validate.go b/api/realtimeanalytics/v1/query.pb.validate.go index fbb91f40039..af551461acf 100644 --- a/api/realtimeanalytics/v1/query.pb.validate.go +++ b/api/realtimeanalytics/v1/query.pb.validate.go @@ -165,7 +165,8 @@ func (e QueryMongoDBDataValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryMongoDBDataValidationError{} @@ -380,7 +381,8 @@ func (e QueryDataValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = QueryDataValidationError{} diff --git a/api/realtimeanalytics/v1/realtimeanalytics.pb.go b/api/realtimeanalytics/v1/realtimeanalytics.pb.go index 9aaf7797747..bd339f4bad9 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics.pb.go +++ b/api/realtimeanalytics/v1/realtimeanalytics.pb.go @@ -699,7 +699,7 @@ var ( file_realtimeanalytics_v1_realtimeanalytics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_realtimeanalytics_v1_realtimeanalytics_proto_msgTypes = make([]protoimpl.MessageInfo, 11) file_realtimeanalytics_v1_realtimeanalytics_proto_goTypes = []any{ - (SessionStatus)(0), // 0: realtimeanalytics.v1.SessionStatus + SessionStatus(0), // 0: realtimeanalytics.v1.SessionStatus (*ListServicesRequest)(nil), // 1: realtimeanalytics.v1.ListServicesRequest (*ListServicesResponse)(nil), // 2: realtimeanalytics.v1.ListServicesResponse (*Session)(nil), // 3: realtimeanalytics.v1.Session @@ -711,14 +711,13 @@ var ( (*StopSessionResponse)(nil), // 9: realtimeanalytics.v1.StopSessionResponse (*SearchQueriesRequest)(nil), // 10: realtimeanalytics.v1.SearchQueriesRequest (*SearchQueriesResponse)(nil), // 11: realtimeanalytics.v1.SearchQueriesResponse - (v1.ServiceType)(0), // 12: inventory.v1.ServiceType + v1.ServiceType(0), // 12: inventory.v1.ServiceType (*v1.MongoDBService)(nil), // 13: inventory.v1.MongoDBService (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp (*durationpb.Duration)(nil), // 15: google.protobuf.Duration (*QueryData)(nil), // 16: realtimeanalytics.v1.QueryData } ) - var file_realtimeanalytics_v1_realtimeanalytics_proto_depIdxs = []int32{ 12, // 0: realtimeanalytics.v1.ListServicesRequest.service_type:type_name -> inventory.v1.ServiceType 13, // 1: realtimeanalytics.v1.ListServicesResponse.mongodb:type_name -> inventory.v1.MongoDBService diff --git a/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go b/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go index fb661d0e176..f392e0a0102 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go +++ b/api/realtimeanalytics/v1/realtimeanalytics.pb.validate.go @@ -130,7 +130,8 @@ func (e ListServicesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListServicesRequestValidationError{} @@ -266,7 +267,8 @@ func (e ListServicesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListServicesResponseValidationError{} @@ -430,7 +432,8 @@ func (e SessionValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SessionValidationError{} @@ -534,7 +537,8 @@ func (e ListSessionsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListSessionsRequestValidationError{} @@ -670,7 +674,8 @@ func (e ListSessionsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListSessionsResponseValidationError{} @@ -783,7 +788,8 @@ func (e StartSessionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartSessionRequestValidationError{} @@ -914,7 +920,8 @@ func (e StartSessionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartSessionResponseValidationError{} @@ -1027,7 +1034,8 @@ func (e StopSessionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StopSessionRequestValidationError{} @@ -1129,7 +1137,8 @@ func (e StopSessionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StopSessionResponseValidationError{} @@ -1265,7 +1274,8 @@ func (e SearchQueriesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SearchQueriesRequestValidationError{} @@ -1401,7 +1411,8 @@ func (e SearchQueriesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SearchQueriesResponseValidationError{} diff --git a/api/server/v1/httperror.pb.go b/api/server/v1/httperror.pb.go index 8778ad26272..ef269ba2292 100644 --- a/api/server/v1/httperror.pb.go +++ b/api/server/v1/httperror.pb.go @@ -127,7 +127,6 @@ var ( (*anypb.Any)(nil), // 1: google.protobuf.Any } ) - var file_server_v1_httperror_proto_depIdxs = []int32{ 1, // 0: server.v1.HttpError.details:type_name -> google.protobuf.Any 1, // [1:1] is the sub-list for method output_type diff --git a/api/server/v1/httperror.pb.validate.go b/api/server/v1/httperror.pb.validate.go index 81217e496fb..382bb964ae1 100644 --- a/api/server/v1/httperror.pb.validate.go +++ b/api/server/v1/httperror.pb.validate.go @@ -161,7 +161,8 @@ func (e HttpErrorValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = HttpErrorValidationError{} diff --git a/api/server/v1/server.pb.go b/api/server/v1/server.pb.go index 131d1f1cd78..0af6b91d79f 100644 --- a/api/server/v1/server.pb.go +++ b/api/server/v1/server.pb.go @@ -1920,7 +1920,7 @@ var ( file_server_v1_server_proto_enumTypes = make([]protoimpl.EnumInfo, 1) file_server_v1_server_proto_msgTypes = make([]protoimpl.MessageInfo, 26) file_server_v1_server_proto_goTypes = []any{ - (DistributionMethod)(0), // 0: server.v1.DistributionMethod + DistributionMethod(0), // 0: server.v1.DistributionMethod (*VersionInfo)(nil), // 1: server.v1.VersionInfo (*VersionRequest)(nil), // 2: server.v1.VersionRequest (*VersionResponse)(nil), // 3: server.v1.VersionResponse @@ -1952,7 +1952,6 @@ var ( (*common.StringArray)(nil), // 29: common.StringArray } ) - var file_server_v1_server_proto_depIdxs = []int32{ 27, // 0: server.v1.VersionInfo.timestamp:type_name -> google.protobuf.Timestamp 1, // 1: server.v1.VersionResponse.server:type_name -> server.v1.VersionInfo diff --git a/api/server/v1/server.pb.validate.go b/api/server/v1/server.pb.validate.go index f684fea246b..e2643c4aa5b 100644 --- a/api/server/v1/server.pb.validate.go +++ b/api/server/v1/server.pb.validate.go @@ -154,7 +154,8 @@ func (e VersionInfoValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = VersionInfoValidationError{} @@ -256,7 +257,8 @@ func (e VersionRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = VersionRequestValidationError{} @@ -418,7 +420,8 @@ func (e VersionResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = VersionResponseValidationError{} @@ -518,7 +521,8 @@ func (e ReadinessRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ReadinessRequestValidationError{} @@ -620,7 +624,8 @@ func (e ReadinessResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ReadinessResponseValidationError{} @@ -722,7 +727,8 @@ func (e LeaderHealthCheckRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = LeaderHealthCheckRequestValidationError{} @@ -824,7 +830,8 @@ func (e LeaderHealthCheckResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = LeaderHealthCheckResponseValidationError{} @@ -930,7 +937,8 @@ func (e CheckUpdatesRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckUpdatesRequestValidationError{} @@ -1069,7 +1077,8 @@ func (e DockerVersionInfoValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DockerVersionInfoValidationError{} @@ -1262,7 +1271,8 @@ func (e CheckUpdatesResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = CheckUpdatesResponseValidationError{} @@ -1364,7 +1374,8 @@ func (e ListChangeLogsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListChangeLogsRequestValidationError{} @@ -1529,7 +1540,8 @@ func (e ListChangeLogsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListChangeLogsResponseValidationError{} @@ -1633,7 +1645,8 @@ func (e StartUpdateRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartUpdateRequestValidationError{} @@ -1739,7 +1752,8 @@ func (e StartUpdateResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StartUpdateResponseValidationError{} @@ -1845,7 +1859,8 @@ func (e UpdateStatusRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateStatusRequestValidationError{} @@ -1951,7 +1966,8 @@ func (e UpdateStatusResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateStatusResponseValidationError{} @@ -2140,7 +2156,8 @@ func (e MetricsResolutionsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = MetricsResolutionsValidationError{} @@ -2329,7 +2346,8 @@ func (e AdvisorRunIntervalsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = AdvisorRunIntervalsValidationError{} @@ -2570,7 +2588,8 @@ func (e SettingsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = SettingsValidationError{} @@ -2686,7 +2705,8 @@ func (e ReadOnlySettingsValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ReadOnlySettingsValidationError{} @@ -2788,7 +2808,8 @@ func (e GetSettingsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetSettingsRequestValidationError{} @@ -2890,7 +2911,8 @@ func (e GetReadOnlySettingsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetReadOnlySettingsRequestValidationError{} @@ -3021,7 +3043,8 @@ func (e GetSettingsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetSettingsResponseValidationError{} @@ -3153,7 +3176,8 @@ func (e GetReadOnlySettingsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetReadOnlySettingsResponseValidationError{} @@ -3442,7 +3466,8 @@ func (e ChangeSettingsRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeSettingsRequestValidationError{} @@ -3573,7 +3598,8 @@ func (e ChangeSettingsResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ChangeSettingsResponseValidationError{} diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index e0b0aa278d4..eeaf0995058 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -28854,6 +28854,11 @@ } }, "x-order": 14 + }, + "connection_timeout": { + "description": "Connection timeout for exporter (if set).", + "type": "string", + "x-order": 15 } }, "x-order": 2 diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 0fcdc178551..8b11ddcd986 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -27881,6 +27881,11 @@ } }, "x-order": 14 + }, + "connection_timeout": { + "description": "Connection timeout for exporter (if set).", + "type": "string", + "x-order": 15 } }, "x-order": 2 diff --git a/api/uievents/v1/server.pb.go b/api/uievents/v1/server.pb.go index 41d144b9c29..dc995a6e8e5 100644 --- a/api/uievents/v1/server.pb.go +++ b/api/uievents/v1/server.pb.go @@ -480,7 +480,6 @@ var ( nil, // 6: uievents.v1.UserFlowEvent.ParamsEntry } ) - var file_uievents_v1_server_proto_depIdxs = []int32{ 6, // 0: uievents.v1.UserFlowEvent.params:type_name -> uievents.v1.UserFlowEvent.ParamsEntry 0, // 1: uievents.v1.StoreRequest.notifications:type_name -> uievents.v1.NotificationEvent diff --git a/api/uievents/v1/server.pb.validate.go b/api/uievents/v1/server.pb.validate.go index 5996e04b712..3b8e16d64a0 100644 --- a/api/uievents/v1/server.pb.validate.go +++ b/api/uievents/v1/server.pb.validate.go @@ -132,7 +132,8 @@ func (e NotificationEventValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = NotificationEventValidationError{} @@ -240,7 +241,8 @@ func (e FetchingEventValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = FetchingEventValidationError{} @@ -352,7 +354,8 @@ func (e DashboardUsageEventValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = DashboardUsageEventValidationError{} @@ -460,7 +463,8 @@ func (e UserFlowEventValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UserFlowEventValidationError{} @@ -695,7 +699,8 @@ func (e StoreRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StoreRequestValidationError{} @@ -795,7 +800,8 @@ func (e StoreResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = StoreResponseValidationError{} diff --git a/api/user/v1/user.pb.go b/api/user/v1/user.pb.go index 12a954ca3f4..200364a0741 100644 --- a/api/user/v1/user.pb.go +++ b/api/user/v1/user.pb.go @@ -507,7 +507,6 @@ var ( (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp } ) - var file_user_v1_user_proto_depIdxs = []int32{ 7, // 0: user.v1.GetUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp 7, // 1: user.v1.UpdateUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp diff --git a/api/user/v1/user.pb.validate.go b/api/user/v1/user.pb.validate.go index a6c5de6f159..4686bc06f40 100644 --- a/api/user/v1/user.pb.validate.go +++ b/api/user/v1/user.pb.validate.go @@ -122,7 +122,8 @@ func (e GetUserRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetUserRequestValidationError{} @@ -261,7 +262,8 @@ func (e GetUserResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = GetUserResponseValidationError{} @@ -375,7 +377,8 @@ func (e UpdateUserRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateUserRequestValidationError{} @@ -516,7 +519,8 @@ func (e UpdateUserResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = UpdateUserResponseValidationError{} @@ -616,7 +620,8 @@ func (e ListUsersRequestValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListUsersRequestValidationError{} @@ -752,7 +757,8 @@ func (e ListUsersResponseValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListUsersResponseValidationError{} @@ -857,7 +863,8 @@ func (e ListUsersResponse_UserDetailValidationError) Error() string { key, e.field, e.reason, - cause) + cause, + ) } var _ error = ListUsersResponse_UserDetailValidationError{} diff --git a/go.sum b/go.sum index 278871d60e9..da2cfde14da 100644 --- a/go.sum +++ b/go.sum @@ -129,8 +129,8 @@ github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJ github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/aws/aws-sdk-go-v2 v1.41.5 h1:dj5kopbwUsVUVFgO4Fi5BIT3t4WyqIDjGKCangnV/yY= -github.com/aws/aws-sdk-go-v2 v1.41.5/go.mod h1:mwsPRE8ceUUpiTgF7QmQIJ7lgsKUPQOUl3o72QBrE1o= +github.com/aws/aws-sdk-go-v2 v1.41.6 h1:1AX0AthnBQzMx1vbmir3Y4WsnJgiydmnJjiLu+LvXOg= +github.com/aws/aws-sdk-go-v2 v1.41.6/go.mod h1:dy0UzBIfwSeot4grGvY1AqFWN5zgziMmWGzysDnHFcQ= github.com/aws/aws-sdk-go-v2/config v1.32.12 h1:O3csC7HUGn2895eNrLytOJQdoL2xyJy0iYXhoZ1OmP0= github.com/aws/aws-sdk-go-v2/config v1.32.12/go.mod h1:96zTvoOFR4FURjI+/5wY1vc1ABceROO4lWgWJuxgy0g= github.com/aws/aws-sdk-go-v2/credentials v1.19.12 h1:oqtA6v+y5fZg//tcTWahyN9PEn5eDU/Wpvc2+kJ4aY8= diff --git a/managed/services/management/elasticache_discovery.go b/managed/services/management/elasticache_discovery.go index da36affb2d8..4c219f59519 100644 --- a/managed/services/management/elasticache_discovery.go +++ b/managed/services/management/elasticache_discovery.go @@ -183,7 +183,8 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { // discoverTaggedInstances discovers ElastiCache replication groups across regions // and filters to those tagged with pmm_enable=true. func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regions []string) ([]discoveredInstance, error) { - cfg, err := config.LoadDefaultConfig(ctx, + cfg, err := config.LoadDefaultConfig( + ctx, config.WithHTTPClient(&http.Client{}), ) if err != nil { diff --git a/managed/services/management/service_test.go b/managed/services/management/service_test.go index d82eacde6aa..3138a5df3b9 100644 --- a/managed/services/management/service_test.go +++ b/managed/services/management/service_test.go @@ -20,6 +20,7 @@ import ( "fmt" "testing" + "github.com/AlekSi/pointer" "github.com/google/uuid" "github.com/prometheus/common/model" "github.com/stretchr/testify/assert" From b5cdbbfc42b834459a053037c7a7887d8a8bca57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ctvrtka?= Date: Wed, 20 May 2026 11:04:50 +0200 Subject: [PATCH 09/15] Format. --- api/accesscontrol/v1beta1/accesscontrol.pb.go | 1 + api/actions/v1/actions.pb.go | 1 + api/advisors/v1/advisors.pb.go | 1 + api/agent/v1/agent.pb.go | 1 + api/agent/v1/collector.pb.go | 1 + api/agentlocal/v1/agentlocal.pb.go | 1 + api/alerting/v1/alerting.pb.go | 1 + api/alerting/v1/params.pb.go | 1 + api/backup/v1/artifacts.pb.go | 1 + api/backup/v1/backup.pb.go | 1 + api/backup/v1/common.pb.go | 1 + api/backup/v1/errors.pb.go | 1 + api/backup/v1/locations.pb.go | 1 + api/backup/v1/restores.pb.go | 1 + api/common/common.pb.go | 1 + api/common/metrics_resolutions.pb.go | 1 + api/dump/v1beta1/dump.pb.go | 1 + api/extensions/v1/redact.pb.go | 1 + api/ha/v1beta1/ha.pb.go | 1 + api/inventory/v1/agent_status.pb.go | 1 + api/inventory/v1/agents.pb.go | 1 + api/inventory/v1/log_level.pb.go | 1 + api/inventory/v1/nodes.pb.go | 1 + api/inventory/v1/services.pb.go | 1 + api/management/v1/agent.pb.go | 1 + api/management/v1/annotation.pb.go | 1 + api/management/v1/azure.pb.go | 1 + api/management/v1/elasticache.pb.go | 1 + api/management/v1/external.pb.go | 1 + api/management/v1/haproxy.pb.go | 1 + api/management/v1/metrics.pb.go | 1 + api/management/v1/mongodb.pb.go | 1 + api/management/v1/mysql.pb.go | 1 + api/management/v1/node.pb.go | 1 + api/management/v1/postgresql.pb.go | 1 + api/management/v1/proxysql.pb.go | 1 + api/management/v1/rds.pb.go | 1 + api/management/v1/service.pb.go | 1 + api/management/v1/severity.pb.go | 1 + api/management/v1/valkey.pb.go | 1 + api/qan/v1/collector.pb.go | 1 + api/qan/v1/filters.pb.go | 1 + api/qan/v1/object_details.pb.go | 1 + api/qan/v1/profile.pb.go | 1 + api/qan/v1/qan.pb.go | 1 + api/qan/v1/service.pb.go | 1 + api/realtimeanalytics/v1/collector.pb.go | 1 + api/realtimeanalytics/v1/query.pb.go | 1 + api/realtimeanalytics/v1/realtimeanalytics.pb.go | 1 + api/server/v1/httperror.pb.go | 1 + api/server/v1/server.pb.go | 1 + api/uievents/v1/server.pb.go | 1 + api/user/v1/user.pb.go | 1 + 53 files changed, 53 insertions(+) diff --git a/api/accesscontrol/v1beta1/accesscontrol.pb.go b/api/accesscontrol/v1beta1/accesscontrol.pb.go index ebec3bf05b7..f5e8ea4b004 100644 --- a/api/accesscontrol/v1beta1/accesscontrol.pb.go +++ b/api/accesscontrol/v1beta1/accesscontrol.pb.go @@ -844,6 +844,7 @@ var ( (*ListRolesResponse_RoleData)(nil), // 14: accesscontrol.v1beta1.ListRolesResponse.RoleData } ) + var file_accesscontrol_v1beta1_accesscontrol_proto_depIdxs = []int32{ 14, // 0: accesscontrol.v1beta1.ListRolesResponse.roles:type_name -> accesscontrol.v1beta1.ListRolesResponse.RoleData 0, // 1: accesscontrol.v1beta1.AccessControlService.CreateRole:input_type -> accesscontrol.v1beta1.CreateRoleRequest diff --git a/api/actions/v1/actions.pb.go b/api/actions/v1/actions.pb.go index 35461ae3739..f1cfdec8cfa 100644 --- a/api/actions/v1/actions.pb.go +++ b/api/actions/v1/actions.pb.go @@ -2649,6 +2649,7 @@ var ( (*StartServiceActionResponse)(nil), // 32: actions.v1.StartServiceActionResponse } ) + var file_actions_v1_actions_proto_depIdxs = []int32{ 3, // 0: actions.v1.StartServiceActionRequest.mysql_explain:type_name -> actions.v1.StartMySQLExplainActionParams 5, // 1: actions.v1.StartServiceActionRequest.mysql_explain_json:type_name -> actions.v1.StartMySQLExplainJSONActionParams diff --git a/api/advisors/v1/advisors.pb.go b/api/advisors/v1/advisors.pb.go index efbc083a3a9..3e4995415ad 100644 --- a/api/advisors/v1/advisors.pb.go +++ b/api/advisors/v1/advisors.pb.go @@ -1387,6 +1387,7 @@ var ( v1.Severity(0), // 22: management.v1.Severity } ) + var file_advisors_v1_advisors_proto_depIdxs = []int32{ 22, // 0: advisors.v1.AdvisorCheckResult.severity:type_name -> management.v1.Severity 20, // 1: advisors.v1.AdvisorCheckResult.labels:type_name -> advisors.v1.AdvisorCheckResult.LabelsEntry diff --git a/api/agent/v1/agent.pb.go b/api/agent/v1/agent.pb.go index 7f5d935624b..c2f2a8b6a9e 100644 --- a/api/agent/v1/agent.pb.go +++ b/api/agent/v1/agent.pb.go @@ -7221,6 +7221,7 @@ var ( (*v11.Metadata)(nil), // 104: backup.v1.Metadata } ) + var file_agent_v1_agent_proto_depIdxs = []int32{ 44, // 0: agent.v1.TextFiles.files:type_name -> agent.v1.TextFiles.FilesEntry 94, // 1: agent.v1.Pong.current_time:type_name -> google.protobuf.Timestamp diff --git a/api/agent/v1/collector.pb.go b/api/agent/v1/collector.pb.go index da17db39c64..65633c05d17 100644 --- a/api/agent/v1/collector.pb.go +++ b/api/agent/v1/collector.pb.go @@ -2827,6 +2827,7 @@ var ( v1.AgentType(0), // 9: inventory.v1.AgentType } ) + var file_agent_v1_collector_proto_depIdxs = []int32{ 3, // 0: agent.v1.MetricsBucket.common:type_name -> agent.v1.MetricsBucket.Common 4, // 1: agent.v1.MetricsBucket.mysql:type_name -> agent.v1.MetricsBucket.MySQL diff --git a/api/agentlocal/v1/agentlocal.pb.go b/api/agentlocal/v1/agentlocal.pb.go index 12053d57921..7bb13a7cb58 100644 --- a/api/agentlocal/v1/agentlocal.pb.go +++ b/api/agentlocal/v1/agentlocal.pb.go @@ -485,6 +485,7 @@ var ( v1.AgentStatus(0), // 8: inventory.v1.AgentStatus } ) + var file_agentlocal_v1_agentlocal_proto_depIdxs = []int32{ 6, // 0: agentlocal.v1.ServerInfo.latency:type_name -> google.protobuf.Duration 6, // 1: agentlocal.v1.ServerInfo.clock_drift:type_name -> google.protobuf.Duration diff --git a/api/alerting/v1/alerting.pb.go b/api/alerting/v1/alerting.pb.go index bccb6659d24..3b2c47d73ec 100644 --- a/api/alerting/v1/alerting.pb.go +++ b/api/alerting/v1/alerting.pb.go @@ -1459,6 +1459,7 @@ var ( (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp } ) + var file_alerting_v1_alerting_proto_depIdxs = []int32{ 22, // 0: alerting.v1.ParamDefinition.unit:type_name -> alerting.v1.ParamUnit 23, // 1: alerting.v1.ParamDefinition.type:type_name -> alerting.v1.ParamType diff --git a/api/alerting/v1/params.pb.go b/api/alerting/v1/params.pb.go index eb001a606db..69d88497102 100644 --- a/api/alerting/v1/params.pb.go +++ b/api/alerting/v1/params.pb.go @@ -163,6 +163,7 @@ var ( ParamType(0), // 1: alerting.v1.ParamType } ) + var file_alerting_v1_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/backup/v1/artifacts.pb.go b/api/backup/v1/artifacts.pb.go index e2352f61cd1..dde03ceefef 100644 --- a/api/backup/v1/artifacts.pb.go +++ b/api/backup/v1/artifacts.pb.go @@ -656,6 +656,7 @@ var ( (*Metadata)(nil), // 12: backup.v1.Metadata } ) + var file_backup_v1_artifacts_proto_depIdxs = []int32{ 9, // 0: backup.v1.Artifact.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.Artifact.status:type_name -> backup.v1.BackupStatus diff --git a/api/backup/v1/backup.pb.go b/api/backup/v1/backup.pb.go index 19241fc6afd..4d587217600 100644 --- a/api/backup/v1/backup.pb.go +++ b/api/backup/v1/backup.pb.go @@ -1276,6 +1276,7 @@ var ( (*ListPitrTimerangesResponse)(nil), // 27: backup.v1.ListPitrTimerangesResponse } ) + var file_backup_v1_backup_proto_depIdxs = []int32{ 15, // 0: backup.v1.StartBackupRequest.retry_interval:type_name -> google.protobuf.Duration 16, // 1: backup.v1.StartBackupRequest.data_model:type_name -> backup.v1.DataModel diff --git a/api/backup/v1/common.pb.go b/api/backup/v1/common.pb.go index f84ca11de32..c8274024e38 100644 --- a/api/backup/v1/common.pb.go +++ b/api/backup/v1/common.pb.go @@ -423,6 +423,7 @@ var ( (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp } ) + var file_backup_v1_common_proto_depIdxs = []int32{ 2, // 0: backup.v1.Metadata.file_list:type_name -> backup.v1.File 6, // 1: backup.v1.Metadata.restore_to:type_name -> google.protobuf.Timestamp diff --git a/api/backup/v1/errors.pb.go b/api/backup/v1/errors.pb.go index 5709e5ac243..902adc277c1 100644 --- a/api/backup/v1/errors.pb.go +++ b/api/backup/v1/errors.pb.go @@ -169,6 +169,7 @@ var ( (*Error)(nil), // 1: backup.v1.Error } ) + var file_backup_v1_errors_proto_depIdxs = []int32{ 0, // 0: backup.v1.Error.code:type_name -> backup.v1.ErrorCode 1, // [1:1] is the sub-list for method output_type diff --git a/api/backup/v1/locations.pb.go b/api/backup/v1/locations.pb.go index 72c13dece43..396b552ee80 100644 --- a/api/backup/v1/locations.pb.go +++ b/api/backup/v1/locations.pb.go @@ -833,6 +833,7 @@ var ( (*TestLocationConfigResponse)(nil), // 12: backup.v1.TestLocationConfigResponse } ) + var file_backup_v1_locations_proto_depIdxs = []int32{ 0, // 0: backup.v1.Location.filesystem_config:type_name -> backup.v1.FilesystemLocationConfig 1, // 1: backup.v1.Location.s3_config:type_name -> backup.v1.S3LocationConfig diff --git a/api/backup/v1/restores.pb.go b/api/backup/v1/restores.pb.go index 580c158b119..ee12d6b9285 100644 --- a/api/backup/v1/restores.pb.go +++ b/api/backup/v1/restores.pb.go @@ -625,6 +625,7 @@ var ( (*LogChunk)(nil), // 10: backup.v1.LogChunk } ) + var file_backup_v1_restores_proto_depIdxs = []int32{ 8, // 0: backup.v1.RestoreHistoryItem.data_model:type_name -> backup.v1.DataModel 0, // 1: backup.v1.RestoreHistoryItem.status:type_name -> backup.v1.RestoreStatus diff --git a/api/common/common.pb.go b/api/common/common.pb.go index 2303ccd29ab..0d05883daa1 100644 --- a/api/common/common.pb.go +++ b/api/common/common.pb.go @@ -147,6 +147,7 @@ var ( nil, // 2: common.StringMap.ValuesEntry } ) + var file_common_common_proto_depIdxs = []int32{ 2, // 0: common.StringMap.values:type_name -> common.StringMap.ValuesEntry 1, // [1:1] is the sub-list for method output_type diff --git a/api/common/metrics_resolutions.pb.go b/api/common/metrics_resolutions.pb.go index 389e4572992..75e587ba9a5 100644 --- a/api/common/metrics_resolutions.pb.go +++ b/api/common/metrics_resolutions.pb.go @@ -118,6 +118,7 @@ var ( (*durationpb.Duration)(nil), // 1: google.protobuf.Duration } ) + var file_common_metrics_resolutions_proto_depIdxs = []int32{ 1, // 0: common.MetricsResolutions.hr:type_name -> google.protobuf.Duration 1, // 1: common.MetricsResolutions.mr:type_name -> google.protobuf.Duration diff --git a/api/dump/v1beta1/dump.pb.go b/api/dump/v1beta1/dump.pb.go index 76f0e473adf..d031bce6b8f 100644 --- a/api/dump/v1beta1/dump.pb.go +++ b/api/dump/v1beta1/dump.pb.go @@ -897,6 +897,7 @@ var ( (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp } ) + var file_dump_v1beta1_dump_proto_depIdxs = []int32{ 0, // 0: dump.v1beta1.Dump.status:type_name -> dump.v1beta1.DumpStatus 14, // 1: dump.v1beta1.Dump.start_time:type_name -> google.protobuf.Timestamp diff --git a/api/extensions/v1/redact.pb.go b/api/extensions/v1/redact.pb.go index c850a90df3c..738ce213118 100644 --- a/api/extensions/v1/redact.pb.go +++ b/api/extensions/v1/redact.pb.go @@ -135,6 +135,7 @@ var ( (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions } ) + var file_extensions_v1_redact_proto_depIdxs = []int32{ 1, // 0: extensions.v1.sensitive:extendee -> google.protobuf.FieldOptions 0, // 1: extensions.v1.sensitive:type_name -> extensions.v1.RedactType diff --git a/api/ha/v1beta1/ha.pb.go b/api/ha/v1beta1/ha.pb.go index 655996ccdbc..f798cccbcc0 100644 --- a/api/ha/v1beta1/ha.pb.go +++ b/api/ha/v1beta1/ha.pb.go @@ -351,6 +351,7 @@ var ( (*StatusResponse)(nil), // 5: ha.v1beta1.StatusResponse } ) + var file_ha_v1beta1_ha_proto_depIdxs = []int32{ 0, // 0: ha.v1beta1.HANode.role:type_name -> ha.v1beta1.NodeRole 2, // 1: ha.v1beta1.ListNodesResponse.nodes:type_name -> ha.v1beta1.HANode diff --git a/api/inventory/v1/agent_status.pb.go b/api/inventory/v1/agent_status.pb.go index ace1432a5e8..1e23074d2fc 100644 --- a/api/inventory/v1/agent_status.pb.go +++ b/api/inventory/v1/agent_status.pb.go @@ -128,6 +128,7 @@ var ( AgentStatus(0), // 0: inventory.v1.AgentStatus } ) + var file_inventory_v1_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/inventory/v1/agents.pb.go b/api/inventory/v1/agents.pb.go index f5d83515360..3784fc8b7fc 100644 --- a/api/inventory/v1/agents.pb.go +++ b/api/inventory/v1/agents.pb.go @@ -12513,6 +12513,7 @@ var ( (*common.StringMap)(nil), // 112: common.StringMap } ) + var file_inventory_v1_agents_proto_depIdxs = []int32{ 68, // 0: inventory.v1.PMMAgent.custom_labels:type_name -> inventory.v1.PMMAgent.CustomLabelsEntry 108, // 1: inventory.v1.VMAgent.status:type_name -> inventory.v1.AgentStatus diff --git a/api/inventory/v1/log_level.pb.go b/api/inventory/v1/log_level.pb.go index 47f0373d578..ff4d79ca3f2 100644 --- a/api/inventory/v1/log_level.pb.go +++ b/api/inventory/v1/log_level.pb.go @@ -114,6 +114,7 @@ var ( LogLevel(0), // 0: inventory.v1.LogLevel } ) + var file_inventory_v1_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/inventory/v1/nodes.pb.go b/api/inventory/v1/nodes.pb.go index a20fdaf969d..db105d49b48 100644 --- a/api/inventory/v1/nodes.pb.go +++ b/api/inventory/v1/nodes.pb.go @@ -2346,6 +2346,7 @@ var ( nil, // 32: inventory.v1.AddRemoteElastiCacheNodeParams.CustomLabelsEntry } ) + var file_inventory_v1_nodes_proto_depIdxs = []int32{ 21, // 0: inventory.v1.GenericNode.custom_labels:type_name -> inventory.v1.GenericNode.CustomLabelsEntry 22, // 1: inventory.v1.ContainerNode.custom_labels:type_name -> inventory.v1.ContainerNode.CustomLabelsEntry diff --git a/api/inventory/v1/services.pb.go b/api/inventory/v1/services.pb.go index 23eeeb28b81..a8d1519b61f 100644 --- a/api/inventory/v1/services.pb.go +++ b/api/inventory/v1/services.pb.go @@ -3334,6 +3334,7 @@ var ( (*common.StringMap)(nil), // 43: common.StringMap } ) + var file_inventory_v1_services_proto_depIdxs = []int32{ 27, // 0: inventory.v1.MySQLService.custom_labels:type_name -> inventory.v1.MySQLService.CustomLabelsEntry 28, // 1: inventory.v1.MySQLService.extra_dsn_params:type_name -> inventory.v1.MySQLService.ExtraDsnParamsEntry diff --git a/api/management/v1/agent.pb.go b/api/management/v1/agent.pb.go index 8a745a48910..c76c750f869 100644 --- a/api/management/v1/agent.pb.go +++ b/api/management/v1/agent.pb.go @@ -1241,6 +1241,7 @@ var ( (*durationpb.Duration)(nil), // 17: google.protobuf.Duration } ) + var file_management_v1_agent_proto_depIdxs = []int32{ 8, // 0: management.v1.UniversalAgent.azure_options:type_name -> management.v1.UniversalAgent.AzureOptions 14, // 1: management.v1.UniversalAgent.created_at:type_name -> google.protobuf.Timestamp diff --git a/api/management/v1/annotation.pb.go b/api/management/v1/annotation.pb.go index 53bbe233c1b..ec781561e4c 100644 --- a/api/management/v1/annotation.pb.go +++ b/api/management/v1/annotation.pb.go @@ -164,6 +164,7 @@ var ( (*AddAnnotationResponse)(nil), // 1: management.v1.AddAnnotationResponse } ) + var file_management_v1_annotation_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/management/v1/azure.pb.go b/api/management/v1/azure.pb.go index 863cff6d5ab..04a05c47ec1 100644 --- a/api/management/v1/azure.pb.go +++ b/api/management/v1/azure.pb.go @@ -726,6 +726,7 @@ var ( (*durationpb.Duration)(nil), // 7: google.protobuf.Duration } ) + var file_management_v1_azure_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverAzureDatabaseInstance.type:type_name -> management.v1.DiscoverAzureDatabaseType 2, // 1: management.v1.DiscoverAzureDatabaseResponse.azure_database_instance:type_name -> management.v1.DiscoverAzureDatabaseInstance diff --git a/api/management/v1/elasticache.pb.go b/api/management/v1/elasticache.pb.go index 5ccc4f5d93b..d4a9aeb39fe 100644 --- a/api/management/v1/elasticache.pb.go +++ b/api/management/v1/elasticache.pb.go @@ -678,6 +678,7 @@ var ( (*v1.ValkeyExporter)(nil), // 10: inventory.v1.ValkeyExporter } ) + var file_management_v1_elasticache_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverElastiCacheInstance.engine:type_name -> management.v1.DiscoverElastiCacheEngine 1, // 1: management.v1.DiscoverElastiCacheResponse.elasticache_instances:type_name -> management.v1.DiscoverElastiCacheInstance diff --git a/api/management/v1/external.pb.go b/api/management/v1/external.pb.go index d990cb53abe..3632121e1c2 100644 --- a/api/management/v1/external.pb.go +++ b/api/management/v1/external.pb.go @@ -355,6 +355,7 @@ var ( (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter } ) + var file_management_v1_external_proto_depIdxs = []int32{ 3, // 0: management.v1.AddExternalServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddExternalServiceParams.custom_labels:type_name -> management.v1.AddExternalServiceParams.CustomLabelsEntry diff --git a/api/management/v1/haproxy.pb.go b/api/management/v1/haproxy.pb.go index 95cad534323..f3de5158762 100644 --- a/api/management/v1/haproxy.pb.go +++ b/api/management/v1/haproxy.pb.go @@ -333,6 +333,7 @@ var ( (*v1.ExternalExporter)(nil), // 6: inventory.v1.ExternalExporter } ) + var file_management_v1_haproxy_proto_depIdxs = []int32{ 3, // 0: management.v1.AddHAProxyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddHAProxyServiceParams.custom_labels:type_name -> management.v1.AddHAProxyServiceParams.CustomLabelsEntry diff --git a/api/management/v1/metrics.pb.go b/api/management/v1/metrics.pb.go index b552c7955fb..748642db7cb 100644 --- a/api/management/v1/metrics.pb.go +++ b/api/management/v1/metrics.pb.go @@ -103,6 +103,7 @@ var ( MetricsMode(0), // 0: management.v1.MetricsMode } ) + var file_management_v1_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/management/v1/mongodb.pb.go b/api/management/v1/mongodb.pb.go index aad151306df..c25cc4f8282 100644 --- a/api/management/v1/mongodb.pb.go +++ b/api/management/v1/mongodb.pb.go @@ -559,6 +559,7 @@ var ( (*v1.RTAMongoDBAgent)(nil), // 11: inventory.v1.RTAMongoDBAgent } ) + var file_management_v1_mongodb_proto_depIdxs = []int32{ 3, // 0: management.v1.AddMongoDBServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMongoDBServiceParams.custom_labels:type_name -> management.v1.AddMongoDBServiceParams.CustomLabelsEntry diff --git a/api/management/v1/mysql.pb.go b/api/management/v1/mysql.pb.go index 70660a14379..18f64740d99 100644 --- a/api/management/v1/mysql.pb.go +++ b/api/management/v1/mysql.pb.go @@ -545,6 +545,7 @@ var ( (*v1.QANMySQLSlowlogAgent)(nil), // 11: inventory.v1.QANMySQLSlowlogAgent } ) + var file_management_v1_mysql_proto_depIdxs = []int32{ 4, // 0: management.v1.AddMySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddMySQLServiceParams.custom_labels:type_name -> management.v1.AddMySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/node.pb.go b/api/management/v1/node.pb.go index 53bb2be68db..149fb30ad94 100644 --- a/api/management/v1/node.pb.go +++ b/api/management/v1/node.pb.go @@ -1255,6 +1255,7 @@ var ( (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp } ) + var file_management_v1_node_proto_depIdxs = []int32{ 16, // 0: management.v1.AddNodeParams.node_type:type_name -> inventory.v1.NodeType 11, // 1: management.v1.AddNodeParams.custom_labels:type_name -> management.v1.AddNodeParams.CustomLabelsEntry diff --git a/api/management/v1/postgresql.pb.go b/api/management/v1/postgresql.pb.go index 0e6f54ad033..0271ba48788 100644 --- a/api/management/v1/postgresql.pb.go +++ b/api/management/v1/postgresql.pb.go @@ -535,6 +535,7 @@ var ( (*v1.QANPostgreSQLPgStatMonitorAgent)(nil), // 10: inventory.v1.QANPostgreSQLPgStatMonitorAgent } ) + var file_management_v1_postgresql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddPostgreSQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddPostgreSQLServiceParams.custom_labels:type_name -> management.v1.AddPostgreSQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/proxysql.pb.go b/api/management/v1/proxysql.pb.go index 7d9dbbcfc07..e3142ed85df 100644 --- a/api/management/v1/proxysql.pb.go +++ b/api/management/v1/proxysql.pb.go @@ -395,6 +395,7 @@ var ( (*v1.ProxySQLExporter)(nil), // 8: inventory.v1.ProxySQLExporter } ) + var file_management_v1_proxysql_proto_depIdxs = []int32{ 3, // 0: management.v1.AddProxySQLServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddProxySQLServiceParams.custom_labels:type_name -> management.v1.AddProxySQLServiceParams.CustomLabelsEntry diff --git a/api/management/v1/rds.pb.go b/api/management/v1/rds.pb.go index fb882ea8de5..d338efd3738 100644 --- a/api/management/v1/rds.pb.go +++ b/api/management/v1/rds.pb.go @@ -854,6 +854,7 @@ var ( (*v1.QANPostgreSQLPgStatementsAgent)(nil), // 16: inventory.v1.QANPostgreSQLPgStatementsAgent } ) + var file_management_v1_rds_proto_depIdxs = []int32{ 0, // 0: management.v1.DiscoverRDSInstance.engine:type_name -> management.v1.DiscoverRDSEngine 1, // 1: management.v1.DiscoverRDSResponse.rds_instances:type_name -> management.v1.DiscoverRDSInstance diff --git a/api/management/v1/service.pb.go b/api/management/v1/service.pb.go index ca36a332e74..62116e57152 100644 --- a/api/management/v1/service.pb.go +++ b/api/management/v1/service.pb.go @@ -1044,6 +1044,7 @@ var ( (*DiscoverElastiCacheResponse)(nil), // 51: management.v1.DiscoverElastiCacheResponse } ) + var file_management_v1_service_proto_depIdxs = []int32{ 9, // 0: management.v1.AddServiceRequest.mysql:type_name -> management.v1.AddMySQLServiceParams 10, // 1: management.v1.AddServiceRequest.mongodb:type_name -> management.v1.AddMongoDBServiceParams diff --git a/api/management/v1/severity.pb.go b/api/management/v1/severity.pb.go index 51c04a93a0e..6a14d366aa6 100644 --- a/api/management/v1/severity.pb.go +++ b/api/management/v1/severity.pb.go @@ -125,6 +125,7 @@ var ( Severity(0), // 0: management.v1.Severity } ) + var file_management_v1_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/management/v1/valkey.pb.go b/api/management/v1/valkey.pb.go index 26cc4db7f99..a0fc2f73fe2 100644 --- a/api/management/v1/valkey.pb.go +++ b/api/management/v1/valkey.pb.go @@ -417,6 +417,7 @@ var ( (*v1.ValkeyExporter)(nil), // 8: inventory.v1.ValkeyExporter } ) + var file_management_v1_valkey_proto_depIdxs = []int32{ 3, // 0: management.v1.AddValkeyServiceParams.add_node:type_name -> management.v1.AddNodeParams 2, // 1: management.v1.AddValkeyServiceParams.custom_labels:type_name -> management.v1.AddValkeyServiceParams.CustomLabelsEntry diff --git a/api/qan/v1/collector.pb.go b/api/qan/v1/collector.pb.go index 3716a3a24d1..b680bbd8f77 100644 --- a/api/qan/v1/collector.pb.go +++ b/api/qan/v1/collector.pb.go @@ -2757,6 +2757,7 @@ var ( ExampleType(0), // 7: qan.v1.ExampleType } ) + var file_qan_v1_collector_proto_depIdxs = []int32{ 1, // 0: qan.v1.CollectRequest.metrics_bucket:type_name -> qan.v1.MetricsBucket 6, // 1: qan.v1.MetricsBucket.agent_type:type_name -> inventory.v1.AgentType diff --git a/api/qan/v1/filters.pb.go b/api/qan/v1/filters.pb.go index 390a687dbc4..fcbf5e7aead 100644 --- a/api/qan/v1/filters.pb.go +++ b/api/qan/v1/filters.pb.go @@ -293,6 +293,7 @@ var ( (*MapFieldEntry)(nil), // 6: qan.v1.MapFieldEntry } ) + var file_qan_v1_filters_proto_depIdxs = []int32{ 5, // 0: qan.v1.GetFilteredMetricsNamesRequest.period_start_from:type_name -> google.protobuf.Timestamp 5, // 1: qan.v1.GetFilteredMetricsNamesRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/object_details.pb.go b/api/qan/v1/object_details.pb.go index 53e6c06150b..f004bc0ec60 100644 --- a/api/qan/v1/object_details.pb.go +++ b/api/qan/v1/object_details.pb.go @@ -1645,6 +1645,7 @@ var ( ExampleType(0), // 29: qan.v1.ExampleType } ) + var file_qan_v1_object_details_proto_depIdxs = []int32{ 26, // 0: qan.v1.GetMetricsRequest.period_start_from:type_name -> google.protobuf.Timestamp 26, // 1: qan.v1.GetMetricsRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/profile.pb.go b/api/qan/v1/profile.pb.go index 7700b76dcd3..03ab97e871a 100644 --- a/api/qan/v1/profile.pb.go +++ b/api/qan/v1/profile.pb.go @@ -598,6 +598,7 @@ var ( (*Point)(nil), // 8: qan.v1.Point } ) + var file_qan_v1_profile_proto_depIdxs = []int32{ 7, // 0: qan.v1.GetReportRequest.period_start_from:type_name -> google.protobuf.Timestamp 7, // 1: qan.v1.GetReportRequest.period_start_to:type_name -> google.protobuf.Timestamp diff --git a/api/qan/v1/qan.pb.go b/api/qan/v1/qan.pb.go index 2d37431a7c0..c1d3bc6bb2e 100644 --- a/api/qan/v1/qan.pb.go +++ b/api/qan/v1/qan.pb.go @@ -1000,6 +1000,7 @@ var ( (*MapFieldEntry)(nil), // 2: qan.v1.MapFieldEntry } ) + var file_qan_v1_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/qan/v1/service.pb.go b/api/qan/v1/service.pb.go index c5c688d9000..0e52423aa51 100644 --- a/api/qan/v1/service.pb.go +++ b/api/qan/v1/service.pb.go @@ -258,6 +258,7 @@ var ( (*GetQueryExampleResponse)(nil), // 24: qan.v1.GetQueryExampleResponse } ) + var file_qan_v1_service_proto_depIdxs = []int32{ 4, // 0: qan.v1.GetMetricsNamesResponse.data:type_name -> qan.v1.GetMetricsNamesResponse.DataEntry 5, // 1: qan.v1.QANService.GetReport:input_type -> qan.v1.GetReportRequest diff --git a/api/realtimeanalytics/v1/collector.pb.go b/api/realtimeanalytics/v1/collector.pb.go index b9b81466e7c..f149de0a6cf 100644 --- a/api/realtimeanalytics/v1/collector.pb.go +++ b/api/realtimeanalytics/v1/collector.pb.go @@ -140,6 +140,7 @@ var ( (*QueryData)(nil), // 2: realtimeanalytics.v1.QueryData } ) + var file_realtimeanalytics_v1_collector_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.CollectRequest.queries:type_name -> realtimeanalytics.v1.QueryData 0, // 1: realtimeanalytics.v1.CollectorService.Collect:input_type -> realtimeanalytics.v1.CollectRequest diff --git a/api/realtimeanalytics/v1/query.pb.go b/api/realtimeanalytics/v1/query.pb.go index b9ab1809d9a..43c4a1bdd5c 100644 --- a/api/realtimeanalytics/v1/query.pb.go +++ b/api/realtimeanalytics/v1/query.pb.go @@ -331,6 +331,7 @@ var ( (*durationpb.Duration)(nil), // 3: google.protobuf.Duration } ) + var file_realtimeanalytics_v1_query_proto_depIdxs = []int32{ 2, // 0: realtimeanalytics.v1.QueryMongoDBData.operation_start_time:type_name -> google.protobuf.Timestamp 3, // 1: realtimeanalytics.v1.QueryData.query_execution_duration:type_name -> google.protobuf.Duration diff --git a/api/realtimeanalytics/v1/realtimeanalytics.pb.go b/api/realtimeanalytics/v1/realtimeanalytics.pb.go index bd339f4bad9..8dbdbf8ccff 100644 --- a/api/realtimeanalytics/v1/realtimeanalytics.pb.go +++ b/api/realtimeanalytics/v1/realtimeanalytics.pb.go @@ -718,6 +718,7 @@ var ( (*QueryData)(nil), // 16: realtimeanalytics.v1.QueryData } ) + var file_realtimeanalytics_v1_realtimeanalytics_proto_depIdxs = []int32{ 12, // 0: realtimeanalytics.v1.ListServicesRequest.service_type:type_name -> inventory.v1.ServiceType 13, // 1: realtimeanalytics.v1.ListServicesResponse.mongodb:type_name -> inventory.v1.MongoDBService diff --git a/api/server/v1/httperror.pb.go b/api/server/v1/httperror.pb.go index ef269ba2292..8778ad26272 100644 --- a/api/server/v1/httperror.pb.go +++ b/api/server/v1/httperror.pb.go @@ -127,6 +127,7 @@ var ( (*anypb.Any)(nil), // 1: google.protobuf.Any } ) + var file_server_v1_httperror_proto_depIdxs = []int32{ 1, // 0: server.v1.HttpError.details:type_name -> google.protobuf.Any 1, // [1:1] is the sub-list for method output_type diff --git a/api/server/v1/server.pb.go b/api/server/v1/server.pb.go index 0af6b91d79f..b5772139c0a 100644 --- a/api/server/v1/server.pb.go +++ b/api/server/v1/server.pb.go @@ -1952,6 +1952,7 @@ var ( (*common.StringArray)(nil), // 29: common.StringArray } ) + var file_server_v1_server_proto_depIdxs = []int32{ 27, // 0: server.v1.VersionInfo.timestamp:type_name -> google.protobuf.Timestamp 1, // 1: server.v1.VersionResponse.server:type_name -> server.v1.VersionInfo diff --git a/api/uievents/v1/server.pb.go b/api/uievents/v1/server.pb.go index dc995a6e8e5..41d144b9c29 100644 --- a/api/uievents/v1/server.pb.go +++ b/api/uievents/v1/server.pb.go @@ -480,6 +480,7 @@ var ( nil, // 6: uievents.v1.UserFlowEvent.ParamsEntry } ) + var file_uievents_v1_server_proto_depIdxs = []int32{ 6, // 0: uievents.v1.UserFlowEvent.params:type_name -> uievents.v1.UserFlowEvent.ParamsEntry 0, // 1: uievents.v1.StoreRequest.notifications:type_name -> uievents.v1.NotificationEvent diff --git a/api/user/v1/user.pb.go b/api/user/v1/user.pb.go index 200364a0741..12a954ca3f4 100644 --- a/api/user/v1/user.pb.go +++ b/api/user/v1/user.pb.go @@ -507,6 +507,7 @@ var ( (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp } ) + var file_user_v1_user_proto_depIdxs = []int32{ 7, // 0: user.v1.GetUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp 7, // 1: user.v1.UpdateUserResponse.snoozed_at:type_name -> google.protobuf.Timestamp From 1142d52de7aad4d086dadc8b80ea96b8cfde753a Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Wed, 20 May 2026 12:30:26 +0200 Subject: [PATCH 10/15] fix: skip ElastiCache stale-removal on partial AWS scan Region and tag-lookup failures were treated as successful empty results, so reconcile could remove managed services whose AWS calls had only failed transiently. Now propagate a scanComplete flag from checkTags through discoverRegionTagged to discoverTaggedInstances, and gate the stale-removal loop on it. Adds still proceed on partial scans since they only act on clusters we did successfully observe as tagged. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../management/elasticache_discovery.go | 88 +++++++++++++------ 1 file changed, 60 insertions(+), 28 deletions(-) diff --git a/managed/services/management/elasticache_discovery.go b/managed/services/management/elasticache_discovery.go index 4c219f59519..3b33fc91181 100644 --- a/managed/services/management/elasticache_discovery.go +++ b/managed/services/management/elasticache_discovery.go @@ -20,6 +20,7 @@ import ( "fmt" "net/http" "sort" + "sync/atomic" "time" "github.com/AlekSi/pointer" @@ -122,7 +123,7 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { } regions := listElastiCacheRegions(partitions) - discovered, err := d.discoverTaggedInstances(ctx, regions) + discovered, scanComplete, err := d.discoverTaggedInstances(ctx, regions) if err != nil { d.l.Warnf("Discovery failed: %v", err) return @@ -149,7 +150,8 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { } } - // Add missing. + // Add missing. Adds are safe even on a partial scan: any tagged cluster we + // did see is still legitimately tagged, and the operation is idempotent. var added, addFailed int for addr, inst := range expectedByAddr { if _, exists := managedByAddr[addr]; exists { @@ -163,32 +165,44 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { added++ } - // Remove stale. + // Remove stale — only when the AWS scan completed cleanly across every + // region and tag lookup. A partial scan would make legitimate services look + // "missing" (e.g. throttled ListTagsForResource → cluster appears untagged) + // and trigger false removals. var removed int - for addr, svc := range managedByAddr { - if _, exists := expectedByAddr[addr]; exists { - continue - } - if err := d.removeService(ctx, svc); err != nil { - d.l.Warnf("Failed to remove %s (%s): %v", svc.ServiceName, addr, err) - continue + if !scanComplete { + d.l.Warnf("Discovery scan was incomplete; skipping stale-removal this cycle") + } else { + for addr, svc := range managedByAddr { + if _, exists := expectedByAddr[addr]; exists { + continue + } + if err := d.removeService(ctx, svc); err != nil { + d.l.Warnf("Failed to remove %s (%s): %v", svc.ServiceName, addr, err) + continue + } + removed++ } - removed++ } unchanged := len(expectedByAddr) - added - addFailed - d.l.Infof("Reconciliation complete: +%d added, -%d removed, =%d unchanged, %d failed", added, removed, unchanged, addFailed) + d.l.Infof("Reconciliation complete: +%d added, -%d removed, =%d unchanged, %d failed (scan complete: %t)", + added, removed, unchanged, addFailed, scanComplete) } // discoverTaggedInstances discovers ElastiCache replication groups across regions // and filters to those tagged with pmm_enable=true. -func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regions []string) ([]discoveredInstance, error) { +// +// Returns (instances, scanComplete, error). scanComplete is false when any +// region scan or per-cluster tag lookup failed; callers must not use the result +// to drive destructive operations (e.g. stale-removal) in that case. +func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regions []string) ([]discoveredInstance, bool, error) { cfg, err := config.LoadDefaultConfig( ctx, config.WithHTTPClient(&http.Client{}), ) if err != nil { - return nil, fmt.Errorf("failed to load AWS config: %w", err) + return nil, false, fmt.Errorf("failed to load AWS config: %w", err) } d.l.Debugf("Scanning %d region(s)", len(regions)) @@ -198,13 +212,13 @@ func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regi var wg errgroup.Group results := make(chan discoveredInstance) + var scanFailed atomic.Bool for _, region := range regions { wg.Go(func() error { - instances, err := d.discoverRegionTagged(ctx, cfg, region) - if err != nil { - d.l.Debugf("Region %s: %v", region, err) - return nil + instances, complete := d.discoverRegionTagged(ctx, cfg, region) + if !complete { + scanFailed.Store(true) } if len(instances) > 0 { d.l.Debugf("Region %s: found %d tagged endpoint(s)", region, len(instances)) @@ -233,22 +247,29 @@ func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regi return discovered[i].Address < discovered[j].Address }) - return discovered, nil + return discovered, !scanFailed.Load(), nil } // discoverRegionTagged returns ElastiCache replication groups in a region that are tagged pmm_enable=true. -func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws.Config, region string) ([]discoveredInstance, error) { +// +// The second return value is true only when every AWS call in this region +// succeeded. A false value means the caller should not trust the absence of any +// previously-known cluster from the returned slice (e.g. throttled +// DescribeReplicationGroups or ListTagsForResource). +func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws.Config, region string) ([]discoveredInstance, bool) { client := elasticache.NewFromConfig(cfg, func(o *elasticache.Options) { o.Region = region }) var instances []discoveredInstance + complete := true paginator := elasticache.NewDescribeReplicationGroupsPaginator(client, &elasticache.DescribeReplicationGroupsInput{}) for paginator.HasMorePages() { page, err := paginator.NextPage(ctx) if err != nil { - return nil, err + d.l.Warnf("Region %s: DescribeReplicationGroups failed: %v", region, err) + return instances, false } for _, rg := range page.ReplicationGroups { @@ -274,7 +295,16 @@ func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws } // Check tags for pmm_enable=true and extract Environment. - tags := d.checkTags(ctx, client, rg) + // On error we mark the region as incomplete and skip this cluster: + // we can't tell whether it's tagged, and silently treating the + // unknown as "not tagged" would let stale-removal delete a + // legitimately-managed service. + tags, err := d.checkTags(ctx, client, rg) + if err != nil { + d.l.Warnf("Region %s cluster %s: ListTagsForResource failed: %v", region, clusterName, err) + complete = false + continue + } if !tags.enabled { continue } @@ -344,7 +374,7 @@ func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws } } - return instances, nil + return instances, complete } // tagResult holds the result of a tag check. @@ -354,17 +384,19 @@ type tagResult struct { } // checkTags checks if a replication group has the pmm_enable=true tag and extracts the Environment tag. -func (d *ElastiCacheDiscovery) checkTags(ctx context.Context, client *elasticache.Client, rg ectypes.ReplicationGroup) tagResult { +// +// A non-nil error means the AWS call failed; callers must treat the result as +// unknown (not as "not tagged") to avoid false stale-removals. +func (d *ElastiCacheDiscovery) checkTags(ctx context.Context, client *elasticache.Client, rg ectypes.ReplicationGroup) (tagResult, error) { if rg.ARN == nil { - return tagResult{} + return tagResult{}, nil } resp, err := client.ListTagsForResource(ctx, &elasticache.ListTagsForResourceInput{ ResourceName: rg.ARN, }) if err != nil { - d.l.Debugf("Failed to list tags for %s: %v", pointer.GetString(rg.ReplicationGroupId), err) - return tagResult{} + return tagResult{}, fmt.Errorf("list tags for %s: %w", pointer.GetString(rg.ReplicationGroupId), err) } result := tagResult{} @@ -378,7 +410,7 @@ func (d *ElastiCacheDiscovery) checkTags(ctx context.Context, client *elasticach result.environment = value } } - return result + return result, nil } // findManagedServices returns all Valkey services in the inventory that were added by auto-discovery. From 963e3f489767d395961de152e549a89c79764b6b Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Wed, 20 May 2026 15:45:50 +0200 Subject: [PATCH 11/15] fix: rename DiscoverElastiCacheEngine enum values for buf lint buf treats "ElastiCache" as two words, so the ENUM_VALUE_PREFIX rule expected DISCOVER_ELASTI_CACHE_ENGINE_*. Renamed the three enum values and propagated to the regenerated pb.go (including rawDesc length prefixes), swagger JSONs, json client, and Go callers. Co-Authored-By: Claude Opus 4.7 (1M context) --- api/management/v1/elasticache.pb.go | 32 +++++++++---------- api/management/v1/elasticache.proto | 6 ++-- .../add_service_responses.go | 16 +++++----- .../discover_elasti_cache_responses.go | 16 +++++----- api/management/v1/json/v1.json | 16 +++++----- api/swagger/swagger-dev.json | 16 +++++----- api/swagger/swagger.json | 16 +++++----- managed/services/management/elasticache.go | 4 +-- .../services/management/elasticache_test.go | 4 +-- 9 files changed, 63 insertions(+), 63 deletions(-) diff --git a/api/management/v1/elasticache.pb.go b/api/management/v1/elasticache.pb.go index d4a9aeb39fe..c6facd91559 100644 --- a/api/management/v1/elasticache.pb.go +++ b/api/management/v1/elasticache.pb.go @@ -30,22 +30,22 @@ const ( type DiscoverElastiCacheEngine int32 const ( - DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED DiscoverElastiCacheEngine = 0 - DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_REDIS DiscoverElastiCacheEngine = 1 - DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_VALKEY DiscoverElastiCacheEngine = 2 + DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED DiscoverElastiCacheEngine = 0 + DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_REDIS DiscoverElastiCacheEngine = 1 + DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_VALKEY DiscoverElastiCacheEngine = 2 ) // Enum value maps for DiscoverElastiCacheEngine. var ( DiscoverElastiCacheEngine_name = map[int32]string{ - 0: "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - 1: "DISCOVER_ELASTICACHE_ENGINE_REDIS", - 2: "DISCOVER_ELASTICACHE_ENGINE_VALKEY", + 0: "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + 1: "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + 2: "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY", } DiscoverElastiCacheEngine_value = map[string]int32{ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED": 0, - "DISCOVER_ELASTICACHE_ENGINE_REDIS": 1, - "DISCOVER_ELASTICACHE_ENGINE_VALKEY": 2, + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED": 0, + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS": 1, + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY": 2, } ) @@ -179,7 +179,7 @@ func (x *DiscoverElastiCacheInstance) GetEngine() DiscoverElastiCacheEngine { if x != nil { return x.Engine } - return DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED + return DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED } func (x *DiscoverElastiCacheInstance) GetEngineVersion() string { @@ -425,7 +425,7 @@ func (x *AddElastiCacheServiceParams) GetEngine() DiscoverElastiCacheEngine { if x != nil { return x.Engine } - return DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED + return DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED } func (x *AddElastiCacheServiceParams) GetPmmAgentId() string { @@ -642,11 +642,11 @@ const file_management_v1_elasticache_proto_rawDesc = "" + "\x18ElastiCacheServiceResult\x127\n" + "\x04node\x18\x01 \x01(\v2#.inventory.v1.RemoteElastiCacheNodeR\x04node\x12B\n" + "\x0evalkey_service\x18\x02 \x01(\v2\x1b.inventory.v1.ValkeyServiceR\rvalkeyService\x12E\n" + - "\x0fvalkey_exporter\x18\x03 \x01(\v2\x1c.inventory.v1.ValkeyExporterR\x0evalkeyExporter*\x97\x01\n" + - "\x19DiscoverElastiCacheEngine\x12+\n" + - "'DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED\x10\x00\x12%\n" + - "!DISCOVER_ELASTICACHE_ENGINE_REDIS\x10\x01\x12&\n" + - "\"DISCOVER_ELASTICACHE_ENGINE_VALKEY\x10\x02B\xb1\x01\n" + + "\x0fvalkey_exporter\x18\x03 \x01(\v2\x1c.inventory.v1.ValkeyExporterR\x0evalkeyExporter*\x9a\x01\n" + + "\x19DiscoverElastiCacheEngine\x12,\n" + + "(DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED\x10\x00\x12&\n" + + "\"DISCOVER_ELASTI_CACHE_ENGINE_REDIS\x10\x01\x12'\n" + + "#DISCOVER_ELASTI_CACHE_ENGINE_VALKEY\x10\x02B\xb1\x01\n" + "\x11com.management.v1B\x10ElasticacheProtoP\x01Z5github.com/percona/pmm/api/management/v1;managementv1\xa2\x02\x03MXX\xaa\x02\rManagement.V1\xca\x02\rManagement\\V1\xe2\x02\x19Management\\V1\\GPBMetadata\xea\x02\x0eManagement::V1b\x06proto3" var ( diff --git a/api/management/v1/elasticache.proto b/api/management/v1/elasticache.proto index f898fc75fbe..0e36945eb9a 100644 --- a/api/management/v1/elasticache.proto +++ b/api/management/v1/elasticache.proto @@ -11,9 +11,9 @@ import "validate/validate.proto"; // DiscoverElastiCacheEngine describes supported ElastiCache engines. enum DiscoverElastiCacheEngine { - DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED = 0; - DISCOVER_ELASTICACHE_ENGINE_REDIS = 1; - DISCOVER_ELASTICACHE_ENGINE_VALKEY = 2; + DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED = 0; + DISCOVER_ELASTI_CACHE_ENGINE_REDIS = 1; + DISCOVER_ELASTI_CACHE_ENGINE_VALKEY = 2; } // DiscoverElastiCacheInstance models an ElastiCache replication group discovered by the API. diff --git a/api/management/v1/json/client/management_service/add_service_responses.go b/api/management/v1/json/client/management_service/add_service_responses.go index c5d8f2c8bf8..32a9c608b0e 100644 --- a/api/management/v1/json/client/management_service/add_service_responses.go +++ b/api/management/v1/json/client/management_service/add_service_responses.go @@ -10078,7 +10078,7 @@ type AddServiceParamsBodyElasticache struct { Port int64 `json:"port,omitempty"` // DiscoverElastiCacheEngine describes supported ElastiCache engines. - // Enum: ["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"] + // Enum: ["DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTI_CACHE_ENGINE_REDIS","DISCOVER_ELASTI_CACHE_ENGINE_VALKEY"] Engine *string `json:"engine,omitempty"` // PMM Agent ID. @@ -10150,7 +10150,7 @@ var addServiceParamsBodyElasticacheTypeEnginePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTI_CACHE_ENGINE_REDIS","DISCOVER_ELASTI_CACHE_ENGINE_VALKEY"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -10160,14 +10160,14 @@ func init() { const ( - // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEUNSPECIFIED captures enum value "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" - AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEUNSPECIFIED string = "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" + // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEUNSPECIFIED captures enum value "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED" + AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEUNSPECIFIED string = "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED" - // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEREDIS captures enum value "DISCOVER_ELASTICACHE_ENGINE_REDIS" - AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEREDIS string = "DISCOVER_ELASTICACHE_ENGINE_REDIS" + // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEREDIS captures enum value "DISCOVER_ELASTI_CACHE_ENGINE_REDIS" + AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEREDIS string = "DISCOVER_ELASTI_CACHE_ENGINE_REDIS" - // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEVALKEY captures enum value "DISCOVER_ELASTICACHE_ENGINE_VALKEY" - AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEVALKEY string = "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + // AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEVALKEY captures enum value "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" + AddServiceParamsBodyElasticacheEngineDISCOVERELASTICACHEENGINEVALKEY string = "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ) // prop value enum diff --git a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go index de027b5be33..d59dbf4a149 100644 --- a/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go +++ b/api/management/v1/json/client/management_service/discover_elasti_cache_responses.go @@ -588,7 +588,7 @@ type DiscoverElastiCacheOKBodyElasticacheInstancesItems0 struct { Port int64 `json:"port,omitempty"` // DiscoverElastiCacheEngine describes supported ElastiCache engines. - // Enum: ["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"] + // Enum: ["DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTI_CACHE_ENGINE_REDIS","DISCOVER_ELASTI_CACHE_ENGINE_VALKEY"] Engine *string `json:"engine,omitempty"` // Engine version. @@ -619,7 +619,7 @@ var discoverElastiCacheOkBodyElasticacheInstancesItems0TypeEnginePropEnum []any func init() { var res []string - if err := json.Unmarshal([]byte(`["DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTICACHE_ENGINE_REDIS","DISCOVER_ELASTICACHE_ENGINE_VALKEY"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED","DISCOVER_ELASTI_CACHE_ENGINE_REDIS","DISCOVER_ELASTI_CACHE_ENGINE_VALKEY"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -629,14 +629,14 @@ func init() { const ( - // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEUNSPECIFIED captures enum value "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" - DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEUNSPECIFIED string = "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED" + // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEUNSPECIFIED captures enum value "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED" + DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEUNSPECIFIED string = "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED" - // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEREDIS captures enum value "DISCOVER_ELASTICACHE_ENGINE_REDIS" - DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEREDIS string = "DISCOVER_ELASTICACHE_ENGINE_REDIS" + // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEREDIS captures enum value "DISCOVER_ELASTI_CACHE_ENGINE_REDIS" + DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEREDIS string = "DISCOVER_ELASTI_CACHE_ENGINE_REDIS" - // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEVALKEY captures enum value "DISCOVER_ELASTICACHE_ENGINE_VALKEY" - DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEVALKEY string = "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + // DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEVALKEY captures enum value "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" + DiscoverElastiCacheOKBodyElasticacheInstancesItems0EngineDISCOVERELASTICACHEENGINEVALKEY string = "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ) // prop value enum diff --git a/api/management/v1/json/v1.json b/api/management/v1/json/v1.json index 700bf987f2e..051a02a8481 100644 --- a/api/management/v1/json/v1.json +++ b/api/management/v1/json/v1.json @@ -3851,11 +3851,11 @@ "engine": { "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", "type": "string", - "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "default": "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", "enum": [ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - "DISCOVER_ELASTICACHE_ENGINE_REDIS", - "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ], "x-order": 6 }, @@ -7824,11 +7824,11 @@ "engine": { "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", "type": "string", - "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "default": "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", "enum": [ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - "DISCOVER_ELASTICACHE_ENGINE_REDIS", - "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ], "x-order": 6 }, diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index eeaf0995058..f62f4e1e084 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -25435,11 +25435,11 @@ "engine": { "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", "type": "string", - "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "default": "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", "enum": [ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - "DISCOVER_ELASTICACHE_ENGINE_REDIS", - "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ], "x-order": 6 }, @@ -29408,11 +29408,11 @@ "engine": { "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", "type": "string", - "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "default": "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", "enum": [ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - "DISCOVER_ELASTICACHE_ENGINE_REDIS", - "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ], "x-order": 6 }, diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 8b11ddcd986..76bd2362e14 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -24462,11 +24462,11 @@ "engine": { "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", "type": "string", - "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "default": "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", "enum": [ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - "DISCOVER_ELASTICACHE_ENGINE_REDIS", - "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ], "x-order": 6 }, @@ -28435,11 +28435,11 @@ "engine": { "description": "DiscoverElastiCacheEngine describes supported ElastiCache engines.", "type": "string", - "default": "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", + "default": "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", "enum": [ - "DISCOVER_ELASTICACHE_ENGINE_UNSPECIFIED", - "DISCOVER_ELASTICACHE_ENGINE_REDIS", - "DISCOVER_ELASTICACHE_ENGINE_VALKEY" + "DISCOVER_ELASTI_CACHE_ENGINE_UNSPECIFIED", + "DISCOVER_ELASTI_CACHE_ENGINE_REDIS", + "DISCOVER_ELASTI_CACHE_ENGINE_VALKEY" ], "x-order": 6 }, diff --git a/managed/services/management/elasticache.go b/managed/services/management/elasticache.go index 6002fc454fb..c874bc43229 100644 --- a/managed/services/management/elasticache.go +++ b/managed/services/management/elasticache.go @@ -43,8 +43,8 @@ import ( // elasticacheEngines maps AWS engine names to our proto enum. var elasticacheEngines = map[string]managementv1.DiscoverElastiCacheEngine{ - "redis": managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_REDIS, - "valkey": managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_VALKEY, + "redis": managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_REDIS, + "valkey": managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_VALKEY, } // discoverElastiCacheRegion returns a list of ElastiCache replication groups from a single region. diff --git a/managed/services/management/elasticache_test.go b/managed/services/management/elasticache_test.go index cd7db494226..f20bdddb37a 100644 --- a/managed/services/management/elasticache_test.go +++ b/managed/services/management/elasticache_test.go @@ -60,13 +60,13 @@ func TestElastiCacheEngineMap(t *testing.T) { t.Run("Redis", func(t *testing.T) { engine, ok := elasticacheEngines["redis"] assert.True(t, ok) - assert.Equal(t, managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_REDIS, engine) + assert.Equal(t, managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_REDIS, engine) }) t.Run("Valkey", func(t *testing.T) { engine, ok := elasticacheEngines["valkey"] assert.True(t, ok) - assert.Equal(t, managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTICACHE_ENGINE_VALKEY, engine) + assert.Equal(t, managementv1.DiscoverElastiCacheEngine_DISCOVER_ELASTI_CACHE_ENGINE_VALKEY, engine) }) t.Run("UnsupportedEngine", func(t *testing.T) { From c743f8db01477836011785078904296f4ac00f5f Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Thu, 21 May 2026 12:02:28 +0200 Subject: [PATCH 12/15] fix: address golangci-lint findings on ElastiCache discovery code Resolve the 11 issues reviewdog flagged on PR-added lines in CI run 26212808525: - gocognit on DiscoverElastiCache and discoverRegionTagged (nolint, matches sibling DiscoverRDS) - gosec G115 on uint32(int32) port casts - modernize on existing pointer.To* helper calls - godot on multi-sentence comment in discoverTaggedInstances - testifylint require-error: assert.NoError -> require.NoError Co-Authored-By: Claude Opus 4.7 (1M context) --- managed/services/management/elasticache.go | 8 ++++---- managed/services/management/elasticache_discovery.go | 10 +++++----- .../services/management/elasticache_discovery_test.go | 6 +++--- managed/services/management/service_test.go | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/managed/services/management/elasticache.go b/managed/services/management/elasticache.go index c874bc43229..55ecc87f7a9 100644 --- a/managed/services/management/elasticache.go +++ b/managed/services/management/elasticache.go @@ -73,7 +73,7 @@ func listElastiCacheRegions(partitions []string) []string { } // DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). -func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { +func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { //nolint:gocognit l := logger.Get(ctx).WithField("component", "discover/elasticache") settings, err := models.GetSettings(s.db.Querier) @@ -144,7 +144,7 @@ func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *manage InstanceId: clusterName, NodeModel: nodeType, Address: pointer.GetString(rg.ConfigurationEndpoint.Address), - Port: uint32(pointer.GetInt32(rg.ConfigurationEndpoint.Port)), + Port: uint32(pointer.GetInt32(rg.ConfigurationEndpoint.Port)), //nolint:gosec Engine: engine, TransitEncryptionEnabled: transitEncryption, Cluster: clusterName, @@ -169,7 +169,7 @@ func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *manage InstanceId: clusterName, NodeModel: nodeType, Address: pointer.GetString(ng.PrimaryEndpoint.Address), - Port: uint32(pointer.GetInt32(ng.PrimaryEndpoint.Port)), + Port: uint32(pointer.GetInt32(ng.PrimaryEndpoint.Port)), //nolint:gosec Engine: engine, TransitEncryptionEnabled: transitEncryption, Cluster: clusterName, @@ -275,7 +275,7 @@ func (s *ManagementService) addElastiCache(ctx context.Context, req *managementv ReplicationSet: req.ReplicationSet, CustomLabels: req.CustomLabels, Address: &req.Address, - Port: pointer.ToUint16(uint16(req.Port)), //nolint:gosec + Port: pointer.ToUint16(uint16(req.Port)), //nolint:gosec,modernize }) if err != nil { return err diff --git a/managed/services/management/elasticache_discovery.go b/managed/services/management/elasticache_discovery.go index 3b33fc91181..efac010ab19 100644 --- a/managed/services/management/elasticache_discovery.go +++ b/managed/services/management/elasticache_discovery.go @@ -193,9 +193,9 @@ func (d *ElastiCacheDiscovery) reconcile(ctx context.Context) { // discoverTaggedInstances discovers ElastiCache replication groups across regions // and filters to those tagged with pmm_enable=true. // -// Returns (instances, scanComplete, error). scanComplete is false when any -// region scan or per-cluster tag lookup failed; callers must not use the result -// to drive destructive operations (e.g. stale-removal) in that case. +// Returns (instances, scanComplete, error). The scanComplete flag is false +// when any region scan or per-cluster tag lookup failed; callers must not use +// the result to drive destructive operations (e.g. stale-removal) in that case. func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regions []string) ([]discoveredInstance, bool, error) { cfg, err := config.LoadDefaultConfig( ctx, @@ -256,7 +256,7 @@ func (d *ElastiCacheDiscovery) discoverTaggedInstances(ctx context.Context, regi // succeeded. A false value means the caller should not trust the absence of any // previously-known cluster from the returned slice (e.g. throttled // DescribeReplicationGroups or ListTagsForResource). -func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws.Config, region string) ([]discoveredInstance, bool) { +func (d *ElastiCacheDiscovery) discoverRegionTagged(ctx context.Context, cfg aws.Config, region string) ([]discoveredInstance, bool) { //nolint:gocognit client := elasticache.NewFromConfig(cfg, func(o *elasticache.Options) { o.Region = region }) @@ -469,7 +469,7 @@ func (d *ElastiCacheDiscovery) addInstance(ctx context.Context, inst discoveredI Environment: inst.Environment, Cluster: inst.ClusterID, Address: &inst.Address, - Port: pointer.ToUint16(uint16(inst.Port)), //nolint:gosec + Port: pointer.ToUint16(uint16(inst.Port)), //nolint:gosec,modernize CustomLabels: map[string]string{ "managed_by": elasticacheManagedByLabel, "source": "elasticache", diff --git a/managed/services/management/elasticache_discovery_test.go b/managed/services/management/elasticache_discovery_test.go index e2ababde774..1a11c933d7a 100644 --- a/managed/services/management/elasticache_discovery_test.go +++ b/managed/services/management/elasticache_discovery_test.go @@ -71,7 +71,7 @@ func TestElastiCacheDiscovery(t *testing.T) { node, err := models.CreateNode(db.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ NodeName: "test-node", Address: "test-address", - Region: pointer.ToString("us-east-1"), + Region: pointer.ToString("us-east-1"), //nolint:modernize }) require.NoError(t, err) @@ -79,7 +79,7 @@ func TestElastiCacheDiscovery(t *testing.T) { _, err = models.AddNewService(db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ ServiceName: "managed-valkey", NodeID: node.NodeID, - Address: pointer.ToString("managed.cache.amazonaws.com"), + Address: pointer.ToString("managed.cache.amazonaws.com"), //nolint:modernize Port: pointer.ToUint16(6379), CustomLabels: map[string]string{ "managed_by": elasticacheManagedByLabel, @@ -92,7 +92,7 @@ func TestElastiCacheDiscovery(t *testing.T) { _, err = models.AddNewService(db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ ServiceName: "manual-valkey", NodeID: node.NodeID, - Address: pointer.ToString("manual.cache.amazonaws.com"), + Address: pointer.ToString("manual.cache.amazonaws.com"), //nolint:modernize Port: pointer.ToUint16(6380), }) require.NoError(t, err) diff --git a/managed/services/management/service_test.go b/managed/services/management/service_test.go index 3138a5df3b9..33120782628 100644 --- a/managed/services/management/service_test.go +++ b/managed/services/management/service_test.go @@ -304,7 +304,7 @@ func TestServiceService(t *testing.T) { s.state.(*mockAgentsStateUpdater).On("RequestStateUpdate", ctx, pmmAgent.AgentID) _, err = s.RemoveService(ctx, &managementv1.RemoveServiceRequest{ServiceId: service.ServiceName, ServiceType: inventoryv1.ServiceType_SERVICE_TYPE_VALKEY_SERVICE}) - assert.NoError(t, err) + require.NoError(t, err) _, err = models.FindServiceByID(s.db.Querier, service.ServiceID) tests.AssertGRPCError(t, status.New(codes.NotFound, fmt.Sprintf(`Service with ID "%s" not found.`, service.ServiceID)), err) From 068ec3ae0005222cd150065fbd69048aa461175b Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Thu, 21 May 2026 13:24:48 +0200 Subject: [PATCH 13/15] fix: address remaining golangci-lint findings on ElastiCache PR-added lines Resolve 4 new findings reviewdog flagged in CI run 26222122357: - cyclop on DiscoverElastiCache (separate from gocognit) - modernize/newexpr on three pointer.ToString() callsites in service_test.go ElastiCache test blocks Co-Authored-By: Claude Opus 4.7 (1M context) --- managed/services/management/elasticache.go | 2 +- managed/services/management/service_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/managed/services/management/elasticache.go b/managed/services/management/elasticache.go index 55ecc87f7a9..3b45affa9a2 100644 --- a/managed/services/management/elasticache.go +++ b/managed/services/management/elasticache.go @@ -73,7 +73,7 @@ func listElastiCacheRegions(partitions []string) []string { } // DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). -func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { //nolint:gocognit +func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { //nolint:gocognit,cyclop l := logger.Get(ctx).WithField("component", "discover/elasticache") settings, err := models.GetSettings(s.db.Querier) diff --git a/managed/services/management/service_test.go b/managed/services/management/service_test.go index 33120782628..78d71851c6c 100644 --- a/managed/services/management/service_test.go +++ b/managed/services/management/service_test.go @@ -281,14 +281,14 @@ func TestServiceService(t *testing.T) { node, err := models.CreateNode(s.db.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ NodeName: "test-elasticache", Address: "test-address", - Region: pointer.ToString("us-east-1"), + Region: pointer.ToString("us-east-1"), //nolint:modernize }) require.NoError(t, err) service, err := models.AddNewService(s.db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ ServiceName: "test-valkey", NodeID: node.NodeID, - Address: pointer.ToString("test-address"), + Address: pointer.ToString("test-address"), //nolint:modernize Port: pointer.ToUint16(6379), }) require.NoError(t, err) @@ -453,7 +453,7 @@ func TestServiceService(t *testing.T) { node, err := models.CreateNode(s.db.Querier, models.RemoteElastiCacheNodeType, &models.CreateNodeParams{ NodeName: "test-elasticache", Address: "test-address", - Region: pointer.ToString("us-east-1"), + Region: pointer.ToString("us-east-1"), //nolint:modernize }) require.NoError(t, err) From e2496c2ee6428c9d58393e2493f04f14466d278d Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Thu, 21 May 2026 13:38:25 +0200 Subject: [PATCH 14/15] fix: suppress lll on DiscoverElastiCache and modernize on remaining test line Resolve 2 follow-up findings from CI run 26222996254: - lll on elasticache.go:76 (function signature 192 chars, max 170) - appending ,cyclop to the nolint pushed it over the limit - modernize on service_test.go:463 - last pointer.ToString() in the ElastiCache test blocks that the previous reviewdog run had skipped Co-Authored-By: Claude Opus 4.7 (1M context) --- managed/services/management/elasticache.go | 2 +- managed/services/management/service_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/managed/services/management/elasticache.go b/managed/services/management/elasticache.go index 3b45affa9a2..e0922e39a68 100644 --- a/managed/services/management/elasticache.go +++ b/managed/services/management/elasticache.go @@ -73,7 +73,7 @@ func listElastiCacheRegions(partitions []string) []string { } // DiscoverElastiCache discovers ElastiCache replication groups (Valkey/Redis). -func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { //nolint:gocognit,cyclop +func (s *ManagementService) DiscoverElastiCache(ctx context.Context, req *managementv1.DiscoverElastiCacheRequest) (*managementv1.DiscoverElastiCacheResponse, error) { //nolint:gocognit,cyclop,lll l := logger.Get(ctx).WithField("component", "discover/elasticache") settings, err := models.GetSettings(s.db.Querier) diff --git a/managed/services/management/service_test.go b/managed/services/management/service_test.go index 78d71851c6c..7d6b6443c92 100644 --- a/managed/services/management/service_test.go +++ b/managed/services/management/service_test.go @@ -460,7 +460,7 @@ func TestServiceService(t *testing.T) { service, err := models.AddNewService(s.db.Querier, models.ValkeyServiceType, &models.AddDBMSServiceParams{ ServiceName: "test-valkey", NodeID: node.NodeID, - Address: pointer.ToString("test-address"), + Address: pointer.ToString("test-address"), //nolint:modernize Port: pointer.ToUint16(6379), }) require.NoError(t, err) From 60e367201499d72b58d7c23a0e1716fb20ed0ccf Mon Sep 17 00:00:00 2001 From: Angel Vilardell Perez Date: Thu, 21 May 2026 15:18:13 +0200 Subject: [PATCH 15/15] fix: register RemoteElastiCacheNode in NodeTypeName map TestNodeTypes iterates over all proto NodeType values and asserts each has a human-friendly name in api/inventory/v1/types.nodeTypeNames. The new NODE_TYPE_REMOTE_ELASTICACHE_NODE was missing from the map, causing the test to panic. Co-Authored-By: Claude Opus 4.7 (1M context) --- api/inventory/v1/types/node_types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/inventory/v1/types/node_types.go b/api/inventory/v1/types/node_types.go index b9ff4ef07bf..c258e7a065d 100644 --- a/api/inventory/v1/types/node_types.go +++ b/api/inventory/v1/types/node_types.go @@ -24,6 +24,7 @@ const ( NodeTypeRemoteNode = "NODE_TYPE_REMOTE_NODE" NodeTypeRemoteRDSNode = "NODE_TYPE_REMOTE_RDS_NODE" NodeTypeRemoteAzureDatabaseNode = "NODE_TYPE_REMOTE_AZURE_DATABASE_NODE" + NodeTypeRemoteElastiCacheNode = "NODE_TYPE_REMOTE_ELASTICACHE_NODE" ) var nodeTypeNames = map[string]string{ @@ -33,6 +34,7 @@ var nodeTypeNames = map[string]string{ NodeTypeRemoteNode: "Remote", NodeTypeRemoteRDSNode: "Remote RDS", NodeTypeRemoteAzureDatabaseNode: "Remote Azure database", + NodeTypeRemoteElastiCacheNode: "Remote ElastiCache", } // NodeTypeName returns human friendly node type to be used in reports.