mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Updated APIS constants
This commit is contained in:
committed by
Dan Christian Bogos
parent
468bc6b227
commit
b90c2cd5b3
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user