Commit 0f884311 authored by Mubeena Ishaq's avatar Mubeena Ishaq
Browse files

Update App Support version /mec_app_support/v2 for all services

parent 064417fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ func Init() (err error) {

		// Create App Support client
		appSupportClientCfg := asc.NewConfiguration()
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v1"
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v2"
		appSupportClient = asc.NewAPIClient(appSupportClientCfg)
		if appSupportClient == nil {
			return errors.New("Failed to create App Enablement App Support REST API client")
+1 −1
Original line number Diff line number Diff line
@@ -430,7 +430,7 @@ func Init() (err error) {

		// Create App Support client
		appSupportClientCfg := asc.NewConfiguration()
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v1"
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v2"
		appSupportClient = asc.NewAPIClient(appSupportClientCfg)
		if appSupportClient == nil {
			return errors.New("Failed to create App Enablement App Support REST API client")
+1 −1
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ func Init() (err error) {

		// Create App Support client
		appSupportClientCfg := asc.NewConfiguration()
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v1"
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v2"
		appSupportClient = asc.NewAPIClient(appSupportClientCfg)
		if appSupportClient == nil {
			return errors.New("Failed to create App Enablement App Support REST API client")
+1 −1
Original line number Diff line number Diff line
@@ -409,7 +409,7 @@ func Init() (err error) {

		// Create App Support client
		appSupportClientCfg := asc.NewConfiguration()
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v1"
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v2"
		appSupportClient = asc.NewAPIClient(appSupportClientCfg)
		if appSupportClient == nil {
			return errors.New("Failed to create App Enablement App Support REST API client")
+13 −13
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ func Init(bwmCfg InitCfg) (err error) {

		// Create App Support client
		appSupportClientCfg := asc.NewConfiguration()
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v1"
		appSupportClientCfg.BasePath = appEnablementUrl + "/mec_app_support/v2"
		appSupportClient = asc.NewAPIClient(appSupportClientCfg)
		if appSupportClient == nil {
			return errors.New("Failed to create App Enablement App Support REST API client")
@@ -1972,9 +1972,9 @@ func sessionContains(sessionSlice []BwInfoSessionFilter, singleSessionFilter BwI
}

/*
	* validateQueryParams ensures that valid query parameters should be used to retrieve one of the
  - validateQueryParams ensures that valid query parameters should be used to retrieve one of the
    app_instance_id or app_name or allocation_id attributes from the user
	* @return {error} error An error will be return if occurs
  - @return {error} error An error will be return if occurs
*/
func validateQueryParams(params url.Values, validParams []string) error {
	for param := range params {
@@ -1995,9 +1995,9 @@ func validateQueryParams(params url.Values, validParams []string) error {
}

/*
	* validateBwInfoQueryParams check that either app_instance_id or app_name or allocation_id or
  - validateBwInfoQueryParams check that either app_instance_id or app_name or allocation_id or
    none should be provided in the request
	* @return {error} error An error will be return if occurs
  - @return {error} error An error will be return if occurs
*/
func validateBwInfoQueryParams(appInstanceId []string, appName []string, sessionId []string) error {
	count := 0
@@ -2052,11 +2052,11 @@ func compareSessionFilters(key string, jsonInfo string, sessionFilterList interf
}

/*
* bandwidthResourceAllocation allocate bandwidth buffer resources uplink/downlink based on new requested Allocation direction (downlink, uplink and
  - bandwidthResourceAllocation allocate bandwidth buffer resources uplink/downlink based on new requested Allocation direction (downlink, uplink and
    symmetrical) and fixedALloaction value and also assigns a unique allocation id. This function is only for bandwidthAllocationPost method.
* @param {*BwInfo} bwInfoInput	bandwidth Allocation information to be updated
* @param {http.ResponseWriter} w writes HTTP reply
* @return {error} error An error will be return if occurs
  - @param {*BwInfo} bwInfoInput	bandwidth Allocation information to be updated
  - @param {http.ResponseWriter} w writes HTTP reply
  - @return {error} error An error will be return if occurs
*/
func bandwidthResourceAllocation(bwInfo *BwInfo, w http.ResponseWriter) error {
	switch bwInfo.AllocationDirection {
Loading