/*
 * Copyright (c) 2022  The AdvantEDGE Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * AdvantEDGE Sandbox Controller REST API
 * This API is the main Sandbox Controller API for scenario deployment & event injection <p>**Micro-service**<br>[meep-sandbox-ctrl](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-sandbox-ctrl) <p>**Type & Usage**<br>Platform runtime interface to manage active scenarios and inject events in AdvantEDGE platform <p>**Details**<br>API details available at _your-AdvantEDGE-ip-address/api_
 *
 * OpenAPI spec version: 1.0.0
 * Contact: AdvantEDGE@InterDigital.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 *
 * Swagger Codegen version: 2.4.9
 *
 * Do not edit the class manually.
 *
 */

(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD.
    define(['expect.js', '../../src/index'], factory);
  } else if (typeof module === 'object' && module.exports) {
    // CommonJS-like environments that support module.exports, like Node.
    factory(require('expect.js'), require('../../src/index'));
  } else {
    // Browser globals (root is window)
    factory(root.expect, root.AdvantEdgeSandboxControllerRestApi);
  }
}(this, function(expect, AdvantEdgeSandboxControllerRestApi) {
  'use strict';

  var instance;

  beforeEach(function() {
    instance = new AdvantEdgeSandboxControllerRestApi.EventsApi();
  });

  describe('(package)', function() {
    describe('EventsApi', function() {
      describe('sendEvent', function() {
        it('should call sendEvent successfully', function(done) {
          // TODO: uncomment, update parameter values for sendEvent call
          /*
          var type = "type_example";
          var event = new AdvantEdgeSandboxControllerRestApi.Event();
          event.name = "";
          event.type = "MOBILITY";
          event.eventMobility = new AdvantEdgeSandboxControllerRestApi.EventMobility();
          event.eventMobility.elementName = "";
          event.eventMobility.dest = "";
          event.eventNetworkCharacteristicsUpdate = new AdvantEdgeSandboxControllerRestApi.EventNetworkCharacteristicsUpdate();
          event.eventNetworkCharacteristicsUpdate.elementName = "";
          event.eventNetworkCharacteristicsUpdate.elementType = "SCENARIO";
          event.eventNetworkCharacteristicsUpdate.netChar = new AdvantEdgeSandboxControllerRestApi.NetworkCharacteristics();
          event.eventNetworkCharacteristicsUpdate.netChar.latency = 0;
          event.eventNetworkCharacteristicsUpdate.netChar.latencyVariation = 0;
          event.eventNetworkCharacteristicsUpdate.netChar.latencyDistribution = "Normal";
          event.eventNetworkCharacteristicsUpdate.netChar.throughput = 0;
          event.eventNetworkCharacteristicsUpdate.netChar.throughputDl = 0;
          event.eventNetworkCharacteristicsUpdate.netChar.throughputUl = 0;
          event.eventNetworkCharacteristicsUpdate.netChar.packetLoss = 0.0;
          event.eventPoasInRange = new AdvantEdgeSandboxControllerRestApi.EventPoasInRange();
          event.eventPoasInRange.ue = "";
          event.eventPoasInRange.poasInRange = [""];
          event.eventScenarioUpdate = new AdvantEdgeSandboxControllerRestApi.EventScenarioUpdate();
          event.eventScenarioUpdate.action = "ADD";
          event.eventScenarioUpdate.node = new AdvantEdgeSandboxControllerRestApi.ScenarioNode();
          event.eventScenarioUpdate.node.type = "UE";
          event.eventScenarioUpdate.node.nodeDataUnion = new AdvantEdgeSandboxControllerRestApi.NodeDataUnion();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation = new AdvantEdgeSandboxControllerRestApi.PhysicalLocation();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.id = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.type = "UE";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.isExternal = false;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData = new AdvantEdgeSandboxControllerRestApi.GeoData();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.location = new AdvantEdgeSandboxControllerRestApi.Point();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.location.type = "Point";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.location.coordinates = [];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.radius = ;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.path = new AdvantEdgeSandboxControllerRestApi.LineString();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.path.type = "LineString";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.path.coordinates = [[]];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.eopMode = "LOOP";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.velocity = ;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.d2dInRange = [""];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.geoData.poaInRange = [""];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.networkLocationsInRange = [""];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.connected = false;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.wireless = false;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.wirelessType = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.dataNetwork = new AdvantEdgeSandboxControllerRestApi.DNConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.dataNetwork.dnn = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.dataNetwork.ladn = false;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.dataNetwork.ecsp = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.meta = {key: ""};
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.userMeta = {key: ""};
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes = [new AdvantEdgeSandboxControllerRestApi.Process()];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].id = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].type = "UE-APP";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].isExternal = false;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].image = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].environment = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].commandArguments = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].commandExe = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig = new AdvantEdgeSandboxControllerRestApi.ServiceConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig.name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig.meSvcName = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig.ports = [new AdvantEdgeSandboxControllerRestApi.ServicePort()];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig.ports[0].protocol = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig.ports[0].port = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].serviceConfig.ports[0].externalPort = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].gpuConfig = new AdvantEdgeSandboxControllerRestApi.GpuConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].gpuConfig.type = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].gpuConfig.count = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].memoryConfig = new AdvantEdgeSandboxControllerRestApi.MemoryConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].memoryConfig.min = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].memoryConfig.max = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].cpuConfig = new AdvantEdgeSandboxControllerRestApi.CpuConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].cpuConfig.min = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].cpuConfig.max = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig = new AdvantEdgeSandboxControllerRestApi.ExternalConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.ingressServiceMap = [new AdvantEdgeSandboxControllerRestApi.IngressService()];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.ingressServiceMap[0].name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.ingressServiceMap[0].port = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.ingressServiceMap[0].externalPort = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.ingressServiceMap[0].protocol = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.egressServiceMap = [new AdvantEdgeSandboxControllerRestApi.EgressService()];
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.egressServiceMap[0].name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.egressServiceMap[0].meSvcName = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.egressServiceMap[0].ip = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.egressServiceMap[0].port = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].externalConfig.egressServiceMap[0].protocol = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].status = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].userChartLocation = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].userChartAlternateValues = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].userChartGroup = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].meta = {key: ""};
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].userMeta = {key: ""};
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar = new AdvantEdgeSandboxControllerRestApi.NetworkCharacteristics();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.latency = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.latencyVariation = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.latencyDistribution = "Normal";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.throughput = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.throughputDl = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.throughputUl = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].netChar.packetLoss = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].appLatency = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].appLatencyVariation = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].appThroughput = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].appPacketLoss = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.processes[0].placementId = "";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar = new AdvantEdgeSandboxControllerRestApi.NetworkCharacteristics();
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.latency = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.latencyVariation = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.latencyDistribution = "Normal";
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.throughput = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.throughputDl = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.throughputUl = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.netChar.packetLoss = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.linkLatency = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.linkLatencyVariation = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.linkThroughput = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.linkPacketLoss = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.physicalLocation.macId = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process = new AdvantEdgeSandboxControllerRestApi.Process();
          event.eventScenarioUpdate.node.nodeDataUnion.process.id = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.type = "UE-APP";
          event.eventScenarioUpdate.node.nodeDataUnion.process.isExternal = false;
          event.eventScenarioUpdate.node.nodeDataUnion.process.image = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.environment = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.commandArguments = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.commandExe = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig = new AdvantEdgeSandboxControllerRestApi.ServiceConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig.name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig.meSvcName = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig.ports = [new AdvantEdgeSandboxControllerRestApi.ServicePort()];
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig.ports[0].protocol = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig.ports[0].port = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.serviceConfig.ports[0].externalPort = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.gpuConfig = new AdvantEdgeSandboxControllerRestApi.GpuConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.process.gpuConfig.type = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.gpuConfig.count = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.memoryConfig = new AdvantEdgeSandboxControllerRestApi.MemoryConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.process.memoryConfig.min = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.memoryConfig.max = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.cpuConfig = new AdvantEdgeSandboxControllerRestApi.CpuConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.process.cpuConfig.min = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.cpuConfig.max = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig = new AdvantEdgeSandboxControllerRestApi.ExternalConfig();
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.ingressServiceMap = [new AdvantEdgeSandboxControllerRestApi.IngressService()];
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.ingressServiceMap[0].name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.ingressServiceMap[0].port = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.ingressServiceMap[0].externalPort = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.ingressServiceMap[0].protocol = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.egressServiceMap = [new AdvantEdgeSandboxControllerRestApi.EgressService()];
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.egressServiceMap[0].name = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.egressServiceMap[0].meSvcName = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.egressServiceMap[0].ip = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.egressServiceMap[0].port = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.externalConfig.egressServiceMap[0].protocol = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.status = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.userChartLocation = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.userChartAlternateValues = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.userChartGroup = "";
          event.eventScenarioUpdate.node.nodeDataUnion.process.meta = {key: ""};
          event.eventScenarioUpdate.node.nodeDataUnion.process.userMeta = {key: ""};
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar = new AdvantEdgeSandboxControllerRestApi.NetworkCharacteristics();
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.latency = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.latencyVariation = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.latencyDistribution = "Normal";
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.throughput = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.throughputDl = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.throughputUl = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.netChar.packetLoss = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.appLatency = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.appLatencyVariation = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.appThroughput = 0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.appPacketLoss = 0.0;
          event.eventScenarioUpdate.node.nodeDataUnion.process.placementId = "";
          event.eventScenarioUpdate.node.parent = "";
          event.eventScenarioUpdate.node.children = [""];
          event.eventScenarioUpdate.gracePeriod = 0;
          event.eventPduSession = new AdvantEdgeSandboxControllerRestApi.EventPduSession();
          event.eventPduSession.action = "ADD";
          event.eventPduSession.pduSession = new AdvantEdgeSandboxControllerRestApi.PDUSession();
          event.eventPduSession.pduSession.ue = "";
          event.eventPduSession.pduSession.id = "";
          event.eventPduSession.pduSession.info = new AdvantEdgeSandboxControllerRestApi.PDUSessionInfo();
          event.eventPduSession.pduSession.info.dnn = "";

          instance.sendEvent(type, event, function(error, data, response) {
            if (error) {
              done(error);
              return;
            }

            done();
          });
          */
          // TODO: uncomment and complete method invocation above, then delete this line and the next:
          done();
        });
      });
    });
  });

}));
