Uniformize the commands in cgr-console between profile and subsystem

This commit is contained in:
TeoV
2020-08-18 14:49:11 +03:00
committed by Dan Christian Bogos
parent f95693795a
commit ab2f91c71d
30 changed files with 29 additions and 28 deletions

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetAttributes{
name: "attributes",
name: "attribute_profile",
rpcMethod: utils.APIerSv1GetAttributeProfile,
rpcParams: &utils.TenantID{},
}

View File

@@ -24,7 +24,7 @@ import (
func init() {
c := &CmdGetAttributeIDs{
name: "attribute_ids",
name: "attribute_profile_ids",
rpcMethod: utils.APIerSv1GetAttributeProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveAttributes{
name: "attributes_remove",
name: "attribute_profile_rem",
rpcMethod: utils.APIerSv1RemoveAttributeProfile,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetAttributes{
name: "attributes_set",
name: "attribute_profile_set",
rpcMethod: utils.APIerSv2SetAttributeProfile,
rpcParams: &v2.AttributeWithCache{},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetChargers{
name: "chargers",
name: "charger_profile",
rpcMethod: utils.APIerSv1GetChargerProfile,
rpcParams: &utils.TenantID{},
}

View File

@@ -24,7 +24,7 @@ import (
func init() {
c := &CmdGetChargerIDs{
name: "chargers_ids",
name: "charger_profile_ids",
rpcMethod: utils.APIerSv1GetChargerProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveChargers{
name: "chargers_remove",
name: "charger_profile_rem",
rpcMethod: utils.APIerSv1RemoveChargerProfile,
rpcParams: &utils.TenantID{},
}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetChargers{
name: "chargers_set",
name: "charger_profile_set",
rpcMethod: utils.APIerSv1SetChargerProfile,
rpcParams: &v1.ChargerWithCache{},
}

View File

@@ -24,7 +24,7 @@ import (
func init() {
c := &CmdRemoveDispatcherHost{
name: "dispatcher_host_remove",
name: "dispatcher_host_rem",
rpcMethod: utils.APIerSv1RemoveDispatcherHost,
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetDispatcherProfile{
name: "dispatcherprofile_get",
name: "dispatcher_profile",
rpcMethod: utils.APIerSv1GetDispatcherProfile,
}
commands[c.Name()] = c

View File

@@ -24,7 +24,7 @@ import (
func init() {
c := &CmdGetDispatcherProfileIDs{
name: "dispatcherprofile_ids",
name: "dispatcher_profile_ids",
rpcMethod: utils.APIerSv1GetDispatcherProfileIDs,
}
commands[c.Name()] = c

View File

@@ -24,7 +24,7 @@ import (
func init() {
c := &CmdRemoveDispatcherProfile{
name: "dispatcherprofile_remove",
name: "dispatcher_profile_rem",
rpcMethod: utils.APIerSv1RemoveDispatcherProfile,
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSetDispatcherProfile{
name: "dispatcherprofile_set",
name: "dispatcher_profile_set",
rpcMethod: utils.APIerSv1SetDispatcherProfile,
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdDispatcherProfile{
name: "dispatcherprofile",
name: "dispatches_for_event",
rpcMethod: utils.DispatcherSv1GetProfileForEvent,
}
commands[c.Name()] = c

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveFilter{
name: "filter_remove",
name: "filter_rem",
rpcMethod: utils.APIerSv1RemoveFilter,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetRateProfile{
name: "rateprofile",
name: "rate_profile",
rpcMethod: utils.APIerSv1GetRateProfile,
rpcParams: &utils.TenantID{},
}

View File

@@ -24,7 +24,7 @@ import (
func init() {
c := &CmdRateProfileIDs{
name: "rateprofile_ids",
name: "rate_profile_ids",
rpcMethod: utils.APIerSv1GetRateProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveRateProfile{
name: "rateprofile_remove",
name: "rate_profile_remove",
rpcMethod: utils.APIerSv1RemoveRateProfile,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetRateProfile{
name: "rateprofile_set",
name: "rate_profile_set",
rpcMethod: utils.APIerSv1SetRateProfile,
rpcParams: &v1.RateProfileWithCache{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveResource{
name: "resource_remove",
name: "resource_profile_rem",
rpcMethod: utils.APIerSv1RemoveResourceProfile,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSetResource{
name: "resource_set",
name: "resource_profile_set",
rpcMethod: utils.APIerSv1SetResourceProfile,
rpcParams: &v1.ResourceWithCache{},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetRoute{
name: "route_get",
name: "route_profile",
rpcMethod: utils.APIerSv1GetRouteProfile,
rpcParams: &utils.TenantID{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveRoute{
name: "route_remove",
name: "route_profile_rem",
rpcMethod: utils.APIerSv1RemoveRouteProfile,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetRoute{
name: "route_set",
name: "route_profile_set",
rpcMethod: utils.APIerSv1SetRouteProfile,
rpcParams: &v1.RouteWithCache{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveStatQueue{
name: "statqueue_remove",
name: "statqueue_profile_rem",
rpcMethod: utils.APIerSv1RemoveStatQueueProfile,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSetStatQueue{
name: "statqueue_set",
name: "statqueue_profile_set",
rpcMethod: utils.APIerSv1SetStatQueueProfile,
rpcParams: &engine.StatQueueWithCache{},
}

View File

@@ -22,7 +22,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveThreshold{
name: "threshold_remove",
name: "threshold_profile_rem",
rpcMethod: utils.APIerSv1RemoveThresholdProfile,
rpcParams: &utils.TenantIDWithCache{},
}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSetThreshold{
name: "threshold_set",
name: "threshold_profile_set",
rpcMethod: utils.APIerSv1SetThresholdProfile,
rpcParams: &engine.ThresholdWithCache{},
}