Updated APIS constants

This commit is contained in:
porosnicuadrian
2021-06-04 17:43:37 +03:00
committed by Dan Christian Bogos
parent 468bc6b227
commit b90c2cd5b3
4 changed files with 5 additions and 5 deletions

View File

@@ -156,12 +156,12 @@ func (rsv1 *ResourceSv1) AuthorizeResources(ctx *context.Context, args *utils.Ar
return rsv1.rls.V1AuthorizeResources(ctx, *args, reply)
}
// V1InitiateResourceUsage records usage for an event
// AllocateResources records usage for an event
func (rsv1 *ResourceSv1) AllocateResources(ctx *context.Context, args *utils.ArgRSv1ResourceUsage, reply *string) error {
return rsv1.rls.V1AllocateResources(ctx, *args, reply)
}
// V1TerminateResourceUsage releases usage for an event
// ReleaseResources releases usage for an event
func (rsv1 *ResourceSv1) ReleaseResources(ctx *context.Context, args *utils.ArgRSv1ResourceUsage, reply *string) error {
return rsv1.rls.V1ReleaseResources(ctx, *args, reply)
}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetRoute{
name: "routes_profile",
rpcMethod: utils.APIerSv1GetRouteProfile,
rpcMethod: utils.AdminSv1GetRouteProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdRouteIDs{
name: "route_profile_ids",
rpcMethod: utils.APIerSv1GetRouteProfileIDs,
rpcMethod: utils.AdminSv1GetRouteProfileIDs,
rpcParams: &utils.PaginatorWithTenant{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveRoute{
name: "routes_profile_remove",
rpcMethod: utils.APIerSv1RemoveRouteProfile,
rpcMethod: utils.AdminSv1RemoveRouteProfile,
rpcParams: &utils.TenantIDWithAPIOpts{},
}
commands[c.Name()] = c