in source/api/lib/apiRequest.js [129:154]
getProcessor() {
switch ((this.pathParameters || {}).operation) {
case ApiOps.AttachPolicy:
return new IotOp(this);
case ApiOps.Assets:
return new AssetOp(this);
case ApiOps.Analysis:
return new AnalysisOp(this);
case ApiOps.Search:
return new SearchOp(this);
case ApiOps.Labeling:
return new LabelingOp(this);
case ApiOps.Execution:
return new StepOp(this);
case ApiOps.Workteam:
return new WorkteamOp(this);
case ApiOps.IndexFace:
case ApiOps.QueueFace:
case ApiOps.FaceColection:
return new FaceCollectionOp(this);
case ApiOps.EditLabel:
return new EditLabelOp(this);
default:
throw new Error(`operation '${(this.pathParameters || {}).operation}' not supported`);
}
}