@itentialopensource/adapter-netbox_v33 0.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CALLS.md +5231 -0
- package/CHANGELOG.md +16 -1
- package/adapter.js +3821 -0
- package/entities/.system/action.json +1 -1
- package/entities/Dcim/action.json +182 -0
- package/entities/Dcim/mockdatafiles/getDcimVirtualDeviceContexts-default.json +573 -0
- package/entities/Dcim/schema.json +10 -1
- package/entities/Extras/action.json +182 -0
- package/entities/Extras/mockdatafiles/getExtrasSavedFilters-default.json +177 -0
- package/entities/Extras/schema.json +10 -1
- package/entities/Plugins/action.json +550 -0
- package/entities/Plugins/mockdatafiles/getPluginsServicePoolsCandidateConfig-default.json +309 -0
- package/entities/Plugins/mockdatafiles/getPluginsServicePoolsCustomService-default.json +463 -0
- package/entities/Plugins/mockdatafiles/getPluginsServicePoolsServiceOrder-default.json +554 -0
- package/entities/Plugins/schema.json +45 -0
- package/package.json +1 -1
- package/pronghorn.json +6636 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/Netbox_v34.json +92707 -0
- package/report/adapterInfo.json +10 -0
- package/test/integration/adapterTestIntegration.js +1275 -0
- package/test/unit/adapterTestUnit.js +1305 -0
package/adapter.js
CHANGED
|
@@ -74588,6 +74588,3827 @@ via a protocol such as LLDP. Two query parameters must be included in the reques
|
|
|
74588
74588
|
return callback(null, errorObj);
|
|
74589
74589
|
}
|
|
74590
74590
|
}
|
|
74591
|
+
|
|
74592
|
+
/**
|
|
74593
|
+
* @function getDcimVirtualDeviceContexts
|
|
74594
|
+
* @pronghornType method
|
|
74595
|
+
* @name getDcimVirtualDeviceContexts
|
|
74596
|
+
* @summary dcim_virtual-device-contexts_list
|
|
74597
|
+
*
|
|
74598
|
+
* @param {string} [id] - id param
|
|
74599
|
+
* @param {string} [device] - device param
|
|
74600
|
+
* @param {string} [name] - name param
|
|
74601
|
+
* @param {string} [created] - created param
|
|
74602
|
+
* @param {string} [lastUpdated] - lastUpdated param
|
|
74603
|
+
* @param {string} [q] - q param
|
|
74604
|
+
* @param {string} [tag] - tag param
|
|
74605
|
+
* @param {string} [tenantGroupId] - tenantGroupId param
|
|
74606
|
+
* @param {string} [tenantGroup] - tenantGroup param
|
|
74607
|
+
* @param {string} [tenantId] - tenantId param
|
|
74608
|
+
* @param {string} [tenant] - tenant param
|
|
74609
|
+
* @param {string} [deviceId] - deviceId param
|
|
74610
|
+
* @param {string} [status] - status param
|
|
74611
|
+
* @param {string} [hasPrimaryIp] - hasPrimaryIp param
|
|
74612
|
+
* @param {string} [idN] - idN param
|
|
74613
|
+
* @param {string} [idLte] - idLte param
|
|
74614
|
+
* @param {string} [idLt] - idLt param
|
|
74615
|
+
* @param {string} [idGte] - idGte param
|
|
74616
|
+
* @param {string} [idGt] - idGt param
|
|
74617
|
+
* @param {string} [deviceN] - deviceN param
|
|
74618
|
+
* @param {string} [nameN] - nameN param
|
|
74619
|
+
* @param {string} [nameIc] - nameIc param
|
|
74620
|
+
* @param {string} [nameNic] - nameNic param
|
|
74621
|
+
* @param {string} [nameIew] - nameIew param
|
|
74622
|
+
* @param {string} [nameNiew] - nameNiew param
|
|
74623
|
+
* @param {string} [nameIsw] - nameIsw param
|
|
74624
|
+
* @param {string} [nameNisw] - nameNisw param
|
|
74625
|
+
* @param {string} [nameIe] - nameIe param
|
|
74626
|
+
* @param {string} [nameNie] - nameNie param
|
|
74627
|
+
* @param {string} [nameEmpty] - nameEmpty param
|
|
74628
|
+
* @param {string} [createdN] - createdN param
|
|
74629
|
+
* @param {string} [createdLte] - createdLte param
|
|
74630
|
+
* @param {string} [createdLt] - createdLt param
|
|
74631
|
+
* @param {string} [createdGte] - createdGte param
|
|
74632
|
+
* @param {string} [createdGt] - createdGt param
|
|
74633
|
+
* @param {string} [lastUpdatedN] - lastUpdatedN param
|
|
74634
|
+
* @param {string} [lastUpdatedLte] - lastUpdatedLte param
|
|
74635
|
+
* @param {string} [lastUpdatedLt] - lastUpdatedLt param
|
|
74636
|
+
* @param {string} [lastUpdatedGte] - lastUpdatedGte param
|
|
74637
|
+
* @param {string} [lastUpdatedGt] - lastUpdatedGt param
|
|
74638
|
+
* @param {string} [tagN] - tagN param
|
|
74639
|
+
* @param {string} [tenantGroupIdN] - tenantGroupIdN param
|
|
74640
|
+
* @param {string} [tenantGroupN] - tenantGroupN param
|
|
74641
|
+
* @param {string} [tenantIdN] - tenantIdN param
|
|
74642
|
+
* @param {string} [tenantN] - tenantN param
|
|
74643
|
+
* @param {string} [deviceIdN] - deviceIdN param
|
|
74644
|
+
* @param {string} [statusN] - statusN param
|
|
74645
|
+
* @param {string} [ordering] - Which field to use when ordering the results.
|
|
74646
|
+
* @param {number} [limit] - Number of results to return per page.
|
|
74647
|
+
* @param {number} [offset] - The initial index from which to return the results.
|
|
74648
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
74649
|
+
* @return {object} results - An object containing the response of the action
|
|
74650
|
+
*
|
|
74651
|
+
* @route {POST} /getDcimVirtualDeviceContexts
|
|
74652
|
+
* @roles admin
|
|
74653
|
+
* @task true
|
|
74654
|
+
*/
|
|
74655
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
74656
|
+
getDcimVirtualDeviceContexts(id, device, name, created, lastUpdated, q, tag, tenantGroupId, tenantGroup, tenantId, tenant, deviceId, status, hasPrimaryIp, idN, idLte, idLt, idGte, idGt, deviceN, nameN, nameIc, nameNic, nameIew, nameNiew, nameIsw, nameNisw, nameIe, nameNie, nameEmpty, createdN, createdLte, createdLt, createdGte, createdGt, lastUpdatedN, lastUpdatedLte, lastUpdatedLt, lastUpdatedGte, lastUpdatedGt, tagN, tenantGroupIdN, tenantGroupN, tenantIdN, tenantN, deviceIdN, statusN, ordering, limit, offset, callback) {
|
|
74657
|
+
const meth = 'adapter-getDcimVirtualDeviceContexts';
|
|
74658
|
+
const origin = `${this.id}-${meth}`;
|
|
74659
|
+
log.trace(origin);
|
|
74660
|
+
|
|
74661
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
74662
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
74663
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74664
|
+
return callback(null, errorObj);
|
|
74665
|
+
}
|
|
74666
|
+
|
|
74667
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
74668
|
+
|
|
74669
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
74670
|
+
const queryParamsAvailable = { id, device, name, created, lastUpdated, q, tag, tenantGroupId, tenantGroup, tenantId, tenant, deviceId, status, hasPrimaryIp, idN, idLte, idLt, idGte, idGt, deviceN, nameN, nameIc, nameNic, nameIew, nameNiew, nameIsw, nameNisw, nameIe, nameNie, nameEmpty, createdN, createdLte, createdLt, createdGte, createdGt, lastUpdatedN, lastUpdatedLte, lastUpdatedLt, lastUpdatedGte, lastUpdatedGt, tagN, tenantGroupIdN, tenantGroupN, tenantIdN, tenantN, deviceIdN, statusN, ordering, limit, offset };
|
|
74671
|
+
const queryParams = {};
|
|
74672
|
+
const pathVars = [];
|
|
74673
|
+
const bodyVars = {};
|
|
74674
|
+
|
|
74675
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
74676
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
74677
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
74678
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
74679
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
74680
|
+
}
|
|
74681
|
+
});
|
|
74682
|
+
|
|
74683
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
74684
|
+
// see adapter code documentation for more information on the request object's fields
|
|
74685
|
+
const reqObj = {
|
|
74686
|
+
payload: bodyVars,
|
|
74687
|
+
uriPathVars: pathVars,
|
|
74688
|
+
uriQuery: queryParams
|
|
74689
|
+
};
|
|
74690
|
+
|
|
74691
|
+
try {
|
|
74692
|
+
// Make the call -
|
|
74693
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
74694
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'getDcimVirtualDeviceContexts', reqObj, true, (irReturnData, irReturnError) => {
|
|
74695
|
+
// if we received an error or their is no response on the results
|
|
74696
|
+
// return an error
|
|
74697
|
+
if (irReturnError) {
|
|
74698
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
74699
|
+
return callback(null, irReturnError);
|
|
74700
|
+
}
|
|
74701
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
74702
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDcimVirtualDeviceContexts'], null, null, null);
|
|
74703
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74704
|
+
return callback(null, errorObj);
|
|
74705
|
+
}
|
|
74706
|
+
|
|
74707
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
74708
|
+
// return the response
|
|
74709
|
+
return callback(irReturnData, null);
|
|
74710
|
+
});
|
|
74711
|
+
} catch (ex) {
|
|
74712
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
74713
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74714
|
+
return callback(null, errorObj);
|
|
74715
|
+
}
|
|
74716
|
+
}
|
|
74717
|
+
|
|
74718
|
+
/**
|
|
74719
|
+
* @function postDcimVirtualDeviceContexts
|
|
74720
|
+
* @pronghornType method
|
|
74721
|
+
* @name postDcimVirtualDeviceContexts
|
|
74722
|
+
* @summary dcim_virtual-device-contexts_create
|
|
74723
|
+
*
|
|
74724
|
+
* @param {object} data - data param
|
|
74725
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
74726
|
+
* @return {object} results - An object containing the response of the action
|
|
74727
|
+
*
|
|
74728
|
+
* @route {POST} /postDcimVirtualDeviceContexts
|
|
74729
|
+
* @roles admin
|
|
74730
|
+
* @task true
|
|
74731
|
+
*/
|
|
74732
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
74733
|
+
postDcimVirtualDeviceContexts(data, callback) {
|
|
74734
|
+
const meth = 'adapter-postDcimVirtualDeviceContexts';
|
|
74735
|
+
const origin = `${this.id}-${meth}`;
|
|
74736
|
+
log.trace(origin);
|
|
74737
|
+
|
|
74738
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
74739
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
74740
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74741
|
+
return callback(null, errorObj);
|
|
74742
|
+
}
|
|
74743
|
+
|
|
74744
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
74745
|
+
if (data === undefined || data === null || data === '') {
|
|
74746
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
74747
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74748
|
+
return callback(null, errorObj);
|
|
74749
|
+
}
|
|
74750
|
+
|
|
74751
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
74752
|
+
const queryParamsAvailable = {};
|
|
74753
|
+
const queryParams = {};
|
|
74754
|
+
const pathVars = [];
|
|
74755
|
+
const bodyVars = data;
|
|
74756
|
+
|
|
74757
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
74758
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
74759
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
74760
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
74761
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
74762
|
+
}
|
|
74763
|
+
});
|
|
74764
|
+
|
|
74765
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
74766
|
+
// see adapter code documentation for more information on the request object's fields
|
|
74767
|
+
const reqObj = {
|
|
74768
|
+
payload: bodyVars,
|
|
74769
|
+
uriPathVars: pathVars,
|
|
74770
|
+
uriQuery: queryParams
|
|
74771
|
+
};
|
|
74772
|
+
|
|
74773
|
+
try {
|
|
74774
|
+
// Make the call -
|
|
74775
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
74776
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'postDcimVirtualDeviceContexts', reqObj, true, (irReturnData, irReturnError) => {
|
|
74777
|
+
// if we received an error or their is no response on the results
|
|
74778
|
+
// return an error
|
|
74779
|
+
if (irReturnError) {
|
|
74780
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
74781
|
+
return callback(null, irReturnError);
|
|
74782
|
+
}
|
|
74783
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
74784
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postDcimVirtualDeviceContexts'], null, null, null);
|
|
74785
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74786
|
+
return callback(null, errorObj);
|
|
74787
|
+
}
|
|
74788
|
+
|
|
74789
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
74790
|
+
// return the response
|
|
74791
|
+
return callback(irReturnData, null);
|
|
74792
|
+
});
|
|
74793
|
+
} catch (ex) {
|
|
74794
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
74795
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74796
|
+
return callback(null, errorObj);
|
|
74797
|
+
}
|
|
74798
|
+
}
|
|
74799
|
+
|
|
74800
|
+
/**
|
|
74801
|
+
* @function putDcimVirtualDeviceContexts
|
|
74802
|
+
* @pronghornType method
|
|
74803
|
+
* @name putDcimVirtualDeviceContexts
|
|
74804
|
+
* @summary dcim_virtual-device-contexts_bulk_update
|
|
74805
|
+
*
|
|
74806
|
+
* @param {object} data - data param
|
|
74807
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
74808
|
+
* @return {object} results - An object containing the response of the action
|
|
74809
|
+
*
|
|
74810
|
+
* @route {POST} /putDcimVirtualDeviceContexts
|
|
74811
|
+
* @roles admin
|
|
74812
|
+
* @task true
|
|
74813
|
+
*/
|
|
74814
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
74815
|
+
putDcimVirtualDeviceContexts(data, callback) {
|
|
74816
|
+
const meth = 'adapter-putDcimVirtualDeviceContexts';
|
|
74817
|
+
const origin = `${this.id}-${meth}`;
|
|
74818
|
+
log.trace(origin);
|
|
74819
|
+
|
|
74820
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
74821
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
74822
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74823
|
+
return callback(null, errorObj);
|
|
74824
|
+
}
|
|
74825
|
+
|
|
74826
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
74827
|
+
if (data === undefined || data === null || data === '') {
|
|
74828
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
74829
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74830
|
+
return callback(null, errorObj);
|
|
74831
|
+
}
|
|
74832
|
+
|
|
74833
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
74834
|
+
const queryParamsAvailable = {};
|
|
74835
|
+
const queryParams = {};
|
|
74836
|
+
const pathVars = [];
|
|
74837
|
+
const bodyVars = data;
|
|
74838
|
+
|
|
74839
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
74840
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
74841
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
74842
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
74843
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
74844
|
+
}
|
|
74845
|
+
});
|
|
74846
|
+
|
|
74847
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
74848
|
+
// see adapter code documentation for more information on the request object's fields
|
|
74849
|
+
const reqObj = {
|
|
74850
|
+
payload: bodyVars,
|
|
74851
|
+
uriPathVars: pathVars,
|
|
74852
|
+
uriQuery: queryParams
|
|
74853
|
+
};
|
|
74854
|
+
|
|
74855
|
+
try {
|
|
74856
|
+
// Make the call -
|
|
74857
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
74858
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'putDcimVirtualDeviceContexts', reqObj, false, (irReturnData, irReturnError) => {
|
|
74859
|
+
// if we received an error or their is no response on the results
|
|
74860
|
+
// return an error
|
|
74861
|
+
if (irReturnError) {
|
|
74862
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
74863
|
+
return callback(null, irReturnError);
|
|
74864
|
+
}
|
|
74865
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
74866
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putDcimVirtualDeviceContexts'], null, null, null);
|
|
74867
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74868
|
+
return callback(null, errorObj);
|
|
74869
|
+
}
|
|
74870
|
+
|
|
74871
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
74872
|
+
// return the response
|
|
74873
|
+
return callback(irReturnData, null);
|
|
74874
|
+
});
|
|
74875
|
+
} catch (ex) {
|
|
74876
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
74877
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74878
|
+
return callback(null, errorObj);
|
|
74879
|
+
}
|
|
74880
|
+
}
|
|
74881
|
+
|
|
74882
|
+
/**
|
|
74883
|
+
* @function patchDcimVirtualDeviceContexts
|
|
74884
|
+
* @pronghornType method
|
|
74885
|
+
* @name patchDcimVirtualDeviceContexts
|
|
74886
|
+
* @summary dcim_virtual-device-contexts_bulk_partial_update
|
|
74887
|
+
*
|
|
74888
|
+
* @param {object} data - data param
|
|
74889
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
74890
|
+
* @return {object} results - An object containing the response of the action
|
|
74891
|
+
*
|
|
74892
|
+
* @route {POST} /patchDcimVirtualDeviceContexts
|
|
74893
|
+
* @roles admin
|
|
74894
|
+
* @task true
|
|
74895
|
+
*/
|
|
74896
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
74897
|
+
patchDcimVirtualDeviceContexts(data, callback) {
|
|
74898
|
+
const meth = 'adapter-patchDcimVirtualDeviceContexts';
|
|
74899
|
+
const origin = `${this.id}-${meth}`;
|
|
74900
|
+
log.trace(origin);
|
|
74901
|
+
|
|
74902
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
74903
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
74904
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74905
|
+
return callback(null, errorObj);
|
|
74906
|
+
}
|
|
74907
|
+
|
|
74908
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
74909
|
+
if (data === undefined || data === null || data === '') {
|
|
74910
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
74911
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74912
|
+
return callback(null, errorObj);
|
|
74913
|
+
}
|
|
74914
|
+
|
|
74915
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
74916
|
+
const queryParamsAvailable = {};
|
|
74917
|
+
const queryParams = {};
|
|
74918
|
+
const pathVars = [];
|
|
74919
|
+
const bodyVars = data;
|
|
74920
|
+
|
|
74921
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
74922
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
74923
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
74924
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
74925
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
74926
|
+
}
|
|
74927
|
+
});
|
|
74928
|
+
|
|
74929
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
74930
|
+
// see adapter code documentation for more information on the request object's fields
|
|
74931
|
+
const reqObj = {
|
|
74932
|
+
payload: bodyVars,
|
|
74933
|
+
uriPathVars: pathVars,
|
|
74934
|
+
uriQuery: queryParams
|
|
74935
|
+
};
|
|
74936
|
+
|
|
74937
|
+
try {
|
|
74938
|
+
// Make the call -
|
|
74939
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
74940
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'patchDcimVirtualDeviceContexts', reqObj, false, (irReturnData, irReturnError) => {
|
|
74941
|
+
// if we received an error or their is no response on the results
|
|
74942
|
+
// return an error
|
|
74943
|
+
if (irReturnError) {
|
|
74944
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
74945
|
+
return callback(null, irReturnError);
|
|
74946
|
+
}
|
|
74947
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
74948
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchDcimVirtualDeviceContexts'], null, null, null);
|
|
74949
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74950
|
+
return callback(null, errorObj);
|
|
74951
|
+
}
|
|
74952
|
+
|
|
74953
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
74954
|
+
// return the response
|
|
74955
|
+
return callback(irReturnData, null);
|
|
74956
|
+
});
|
|
74957
|
+
} catch (ex) {
|
|
74958
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
74959
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74960
|
+
return callback(null, errorObj);
|
|
74961
|
+
}
|
|
74962
|
+
}
|
|
74963
|
+
|
|
74964
|
+
/**
|
|
74965
|
+
* @function deleteDcimVirtualDeviceContexts
|
|
74966
|
+
* @pronghornType method
|
|
74967
|
+
* @name deleteDcimVirtualDeviceContexts
|
|
74968
|
+
* @summary dcim_virtual-device-contexts_bulk_delete
|
|
74969
|
+
*
|
|
74970
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
74971
|
+
* @return {object} results - An object containing the response of the action
|
|
74972
|
+
*
|
|
74973
|
+
* @route {GET} /deleteDcimVirtualDeviceContexts
|
|
74974
|
+
* @roles admin
|
|
74975
|
+
* @task true
|
|
74976
|
+
*/
|
|
74977
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
74978
|
+
deleteDcimVirtualDeviceContexts(callback) {
|
|
74979
|
+
const meth = 'adapter-deleteDcimVirtualDeviceContexts';
|
|
74980
|
+
const origin = `${this.id}-${meth}`;
|
|
74981
|
+
log.trace(origin);
|
|
74982
|
+
|
|
74983
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
74984
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
74985
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
74986
|
+
return callback(null, errorObj);
|
|
74987
|
+
}
|
|
74988
|
+
|
|
74989
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
74990
|
+
|
|
74991
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
74992
|
+
const queryParamsAvailable = {};
|
|
74993
|
+
const queryParams = {};
|
|
74994
|
+
const pathVars = [];
|
|
74995
|
+
const bodyVars = {};
|
|
74996
|
+
|
|
74997
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
74998
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
74999
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75000
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75001
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75002
|
+
}
|
|
75003
|
+
});
|
|
75004
|
+
|
|
75005
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75006
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75007
|
+
const reqObj = {
|
|
75008
|
+
payload: bodyVars,
|
|
75009
|
+
uriPathVars: pathVars,
|
|
75010
|
+
uriQuery: queryParams
|
|
75011
|
+
};
|
|
75012
|
+
|
|
75013
|
+
try {
|
|
75014
|
+
// Make the call -
|
|
75015
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75016
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'deleteDcimVirtualDeviceContexts', reqObj, false, (irReturnData, irReturnError) => {
|
|
75017
|
+
// if we received an error or their is no response on the results
|
|
75018
|
+
// return an error
|
|
75019
|
+
if (irReturnError) {
|
|
75020
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75021
|
+
return callback(null, irReturnError);
|
|
75022
|
+
}
|
|
75023
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75024
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deleteDcimVirtualDeviceContexts'], null, null, null);
|
|
75025
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75026
|
+
return callback(null, errorObj);
|
|
75027
|
+
}
|
|
75028
|
+
|
|
75029
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75030
|
+
// return the response
|
|
75031
|
+
return callback(irReturnData, null);
|
|
75032
|
+
});
|
|
75033
|
+
} catch (ex) {
|
|
75034
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75035
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75036
|
+
return callback(null, errorObj);
|
|
75037
|
+
}
|
|
75038
|
+
}
|
|
75039
|
+
|
|
75040
|
+
/**
|
|
75041
|
+
* @function getDcimVirtualDeviceContextsId
|
|
75042
|
+
* @pronghornType method
|
|
75043
|
+
* @name getDcimVirtualDeviceContextsId
|
|
75044
|
+
* @summary dcim_virtual-device-contexts_read
|
|
75045
|
+
*
|
|
75046
|
+
* @param {number} id - A unique integer value identifying this virtual device context.
|
|
75047
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75048
|
+
* @return {object} results - An object containing the response of the action
|
|
75049
|
+
*
|
|
75050
|
+
* @route {POST} /getDcimVirtualDeviceContextsId
|
|
75051
|
+
* @roles admin
|
|
75052
|
+
* @task true
|
|
75053
|
+
*/
|
|
75054
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75055
|
+
getDcimVirtualDeviceContextsId(id, callback) {
|
|
75056
|
+
const meth = 'adapter-getDcimVirtualDeviceContextsId';
|
|
75057
|
+
const origin = `${this.id}-${meth}`;
|
|
75058
|
+
log.trace(origin);
|
|
75059
|
+
|
|
75060
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75061
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75062
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75063
|
+
return callback(null, errorObj);
|
|
75064
|
+
}
|
|
75065
|
+
|
|
75066
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75067
|
+
if (id === undefined || id === null || id === '') {
|
|
75068
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
75069
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75070
|
+
return callback(null, errorObj);
|
|
75071
|
+
}
|
|
75072
|
+
|
|
75073
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75074
|
+
const queryParamsAvailable = {};
|
|
75075
|
+
const queryParams = {};
|
|
75076
|
+
const pathVars = [id];
|
|
75077
|
+
const bodyVars = {};
|
|
75078
|
+
|
|
75079
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75080
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75081
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75082
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75083
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75084
|
+
}
|
|
75085
|
+
});
|
|
75086
|
+
|
|
75087
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75088
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75089
|
+
const reqObj = {
|
|
75090
|
+
payload: bodyVars,
|
|
75091
|
+
uriPathVars: pathVars,
|
|
75092
|
+
uriQuery: queryParams
|
|
75093
|
+
};
|
|
75094
|
+
|
|
75095
|
+
try {
|
|
75096
|
+
// Make the call -
|
|
75097
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75098
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'getDcimVirtualDeviceContextsId', reqObj, true, (irReturnData, irReturnError) => {
|
|
75099
|
+
// if we received an error or their is no response on the results
|
|
75100
|
+
// return an error
|
|
75101
|
+
if (irReturnError) {
|
|
75102
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75103
|
+
return callback(null, irReturnError);
|
|
75104
|
+
}
|
|
75105
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75106
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getDcimVirtualDeviceContextsId'], null, null, null);
|
|
75107
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75108
|
+
return callback(null, errorObj);
|
|
75109
|
+
}
|
|
75110
|
+
|
|
75111
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75112
|
+
// return the response
|
|
75113
|
+
return callback(irReturnData, null);
|
|
75114
|
+
});
|
|
75115
|
+
} catch (ex) {
|
|
75116
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75117
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75118
|
+
return callback(null, errorObj);
|
|
75119
|
+
}
|
|
75120
|
+
}
|
|
75121
|
+
|
|
75122
|
+
/**
|
|
75123
|
+
* @function putDcimVirtualDeviceContextsId
|
|
75124
|
+
* @pronghornType method
|
|
75125
|
+
* @name putDcimVirtualDeviceContextsId
|
|
75126
|
+
* @summary dcim_virtual-device-contexts_update
|
|
75127
|
+
*
|
|
75128
|
+
* @param {number} id - A unique integer value identifying this virtual device context.
|
|
75129
|
+
* @param {object} data - data param
|
|
75130
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75131
|
+
* @return {object} results - An object containing the response of the action
|
|
75132
|
+
*
|
|
75133
|
+
* @route {POST} /putDcimVirtualDeviceContextsId
|
|
75134
|
+
* @roles admin
|
|
75135
|
+
* @task true
|
|
75136
|
+
*/
|
|
75137
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75138
|
+
putDcimVirtualDeviceContextsId(id, data, callback) {
|
|
75139
|
+
const meth = 'adapter-putDcimVirtualDeviceContextsId';
|
|
75140
|
+
const origin = `${this.id}-${meth}`;
|
|
75141
|
+
log.trace(origin);
|
|
75142
|
+
|
|
75143
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75144
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75145
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75146
|
+
return callback(null, errorObj);
|
|
75147
|
+
}
|
|
75148
|
+
|
|
75149
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75150
|
+
if (id === undefined || id === null || id === '') {
|
|
75151
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
75152
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75153
|
+
return callback(null, errorObj);
|
|
75154
|
+
}
|
|
75155
|
+
if (data === undefined || data === null || data === '') {
|
|
75156
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
75157
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75158
|
+
return callback(null, errorObj);
|
|
75159
|
+
}
|
|
75160
|
+
|
|
75161
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75162
|
+
const queryParamsAvailable = {};
|
|
75163
|
+
const queryParams = {};
|
|
75164
|
+
const pathVars = [id];
|
|
75165
|
+
const bodyVars = data;
|
|
75166
|
+
|
|
75167
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75168
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75169
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75170
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75171
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75172
|
+
}
|
|
75173
|
+
});
|
|
75174
|
+
|
|
75175
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75176
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75177
|
+
const reqObj = {
|
|
75178
|
+
payload: bodyVars,
|
|
75179
|
+
uriPathVars: pathVars,
|
|
75180
|
+
uriQuery: queryParams
|
|
75181
|
+
};
|
|
75182
|
+
|
|
75183
|
+
try {
|
|
75184
|
+
// Make the call -
|
|
75185
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75186
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'putDcimVirtualDeviceContextsId', reqObj, false, (irReturnData, irReturnError) => {
|
|
75187
|
+
// if we received an error or their is no response on the results
|
|
75188
|
+
// return an error
|
|
75189
|
+
if (irReturnError) {
|
|
75190
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75191
|
+
return callback(null, irReturnError);
|
|
75192
|
+
}
|
|
75193
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75194
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putDcimVirtualDeviceContextsId'], null, null, null);
|
|
75195
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75196
|
+
return callback(null, errorObj);
|
|
75197
|
+
}
|
|
75198
|
+
|
|
75199
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75200
|
+
// return the response
|
|
75201
|
+
return callback(irReturnData, null);
|
|
75202
|
+
});
|
|
75203
|
+
} catch (ex) {
|
|
75204
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75205
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75206
|
+
return callback(null, errorObj);
|
|
75207
|
+
}
|
|
75208
|
+
}
|
|
75209
|
+
|
|
75210
|
+
/**
|
|
75211
|
+
* @function patchDcimVirtualDeviceContextsId
|
|
75212
|
+
* @pronghornType method
|
|
75213
|
+
* @name patchDcimVirtualDeviceContextsId
|
|
75214
|
+
* @summary dcim_virtual-device-contexts_partial_update
|
|
75215
|
+
*
|
|
75216
|
+
* @param {number} id - A unique integer value identifying this virtual device context.
|
|
75217
|
+
* @param {object} data - data param
|
|
75218
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75219
|
+
* @return {object} results - An object containing the response of the action
|
|
75220
|
+
*
|
|
75221
|
+
* @route {POST} /patchDcimVirtualDeviceContextsId
|
|
75222
|
+
* @roles admin
|
|
75223
|
+
* @task true
|
|
75224
|
+
*/
|
|
75225
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75226
|
+
patchDcimVirtualDeviceContextsId(id, data, callback) {
|
|
75227
|
+
const meth = 'adapter-patchDcimVirtualDeviceContextsId';
|
|
75228
|
+
const origin = `${this.id}-${meth}`;
|
|
75229
|
+
log.trace(origin);
|
|
75230
|
+
|
|
75231
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75232
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75233
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75234
|
+
return callback(null, errorObj);
|
|
75235
|
+
}
|
|
75236
|
+
|
|
75237
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75238
|
+
if (id === undefined || id === null || id === '') {
|
|
75239
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
75240
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75241
|
+
return callback(null, errorObj);
|
|
75242
|
+
}
|
|
75243
|
+
if (data === undefined || data === null || data === '') {
|
|
75244
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
75245
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75246
|
+
return callback(null, errorObj);
|
|
75247
|
+
}
|
|
75248
|
+
|
|
75249
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75250
|
+
const queryParamsAvailable = {};
|
|
75251
|
+
const queryParams = {};
|
|
75252
|
+
const pathVars = [id];
|
|
75253
|
+
const bodyVars = data;
|
|
75254
|
+
|
|
75255
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75256
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75257
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75258
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75259
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75260
|
+
}
|
|
75261
|
+
});
|
|
75262
|
+
|
|
75263
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75264
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75265
|
+
const reqObj = {
|
|
75266
|
+
payload: bodyVars,
|
|
75267
|
+
uriPathVars: pathVars,
|
|
75268
|
+
uriQuery: queryParams
|
|
75269
|
+
};
|
|
75270
|
+
|
|
75271
|
+
try {
|
|
75272
|
+
// Make the call -
|
|
75273
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75274
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'patchDcimVirtualDeviceContextsId', reqObj, false, (irReturnData, irReturnError) => {
|
|
75275
|
+
// if we received an error or their is no response on the results
|
|
75276
|
+
// return an error
|
|
75277
|
+
if (irReturnError) {
|
|
75278
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75279
|
+
return callback(null, irReturnError);
|
|
75280
|
+
}
|
|
75281
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75282
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchDcimVirtualDeviceContextsId'], null, null, null);
|
|
75283
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75284
|
+
return callback(null, errorObj);
|
|
75285
|
+
}
|
|
75286
|
+
|
|
75287
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75288
|
+
// return the response
|
|
75289
|
+
return callback(irReturnData, null);
|
|
75290
|
+
});
|
|
75291
|
+
} catch (ex) {
|
|
75292
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75293
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75294
|
+
return callback(null, errorObj);
|
|
75295
|
+
}
|
|
75296
|
+
}
|
|
75297
|
+
|
|
75298
|
+
/**
|
|
75299
|
+
* @function deleteDcimVirtualDeviceContextsId
|
|
75300
|
+
* @pronghornType method
|
|
75301
|
+
* @name deleteDcimVirtualDeviceContextsId
|
|
75302
|
+
* @summary dcim_virtual-device-contexts_delete
|
|
75303
|
+
*
|
|
75304
|
+
* @param {number} id - A unique integer value identifying this virtual device context.
|
|
75305
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75306
|
+
* @return {object} results - An object containing the response of the action
|
|
75307
|
+
*
|
|
75308
|
+
* @route {POST} /deleteDcimVirtualDeviceContextsId
|
|
75309
|
+
* @roles admin
|
|
75310
|
+
* @task true
|
|
75311
|
+
*/
|
|
75312
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75313
|
+
deleteDcimVirtualDeviceContextsId(id, callback) {
|
|
75314
|
+
const meth = 'adapter-deleteDcimVirtualDeviceContextsId';
|
|
75315
|
+
const origin = `${this.id}-${meth}`;
|
|
75316
|
+
log.trace(origin);
|
|
75317
|
+
|
|
75318
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75319
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75320
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75321
|
+
return callback(null, errorObj);
|
|
75322
|
+
}
|
|
75323
|
+
|
|
75324
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75325
|
+
if (id === undefined || id === null || id === '') {
|
|
75326
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
75327
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75328
|
+
return callback(null, errorObj);
|
|
75329
|
+
}
|
|
75330
|
+
|
|
75331
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75332
|
+
const queryParamsAvailable = {};
|
|
75333
|
+
const queryParams = {};
|
|
75334
|
+
const pathVars = [id];
|
|
75335
|
+
const bodyVars = {};
|
|
75336
|
+
|
|
75337
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75338
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75339
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75340
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75341
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75342
|
+
}
|
|
75343
|
+
});
|
|
75344
|
+
|
|
75345
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75346
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75347
|
+
const reqObj = {
|
|
75348
|
+
payload: bodyVars,
|
|
75349
|
+
uriPathVars: pathVars,
|
|
75350
|
+
uriQuery: queryParams
|
|
75351
|
+
};
|
|
75352
|
+
|
|
75353
|
+
try {
|
|
75354
|
+
// Make the call -
|
|
75355
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75356
|
+
return this.requestHandlerInst.identifyRequest('Dcim', 'deleteDcimVirtualDeviceContextsId', reqObj, false, (irReturnData, irReturnError) => {
|
|
75357
|
+
// if we received an error or their is no response on the results
|
|
75358
|
+
// return an error
|
|
75359
|
+
if (irReturnError) {
|
|
75360
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75361
|
+
return callback(null, irReturnError);
|
|
75362
|
+
}
|
|
75363
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75364
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deleteDcimVirtualDeviceContextsId'], null, null, null);
|
|
75365
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75366
|
+
return callback(null, errorObj);
|
|
75367
|
+
}
|
|
75368
|
+
|
|
75369
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75370
|
+
// return the response
|
|
75371
|
+
return callback(irReturnData, null);
|
|
75372
|
+
});
|
|
75373
|
+
} catch (ex) {
|
|
75374
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75375
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75376
|
+
return callback(null, errorObj);
|
|
75377
|
+
}
|
|
75378
|
+
}
|
|
75379
|
+
|
|
75380
|
+
/**
|
|
75381
|
+
* @function getExtrasSavedFilters
|
|
75382
|
+
* @pronghornType method
|
|
75383
|
+
* @name getExtrasSavedFilters
|
|
75384
|
+
* @summary extras_saved-filters_list
|
|
75385
|
+
*
|
|
75386
|
+
* @param {string} [id] - id param
|
|
75387
|
+
* @param {string} [contentTypes] - contentTypes param
|
|
75388
|
+
* @param {string} [name] - name param
|
|
75389
|
+
* @param {string} [slug] - slug param
|
|
75390
|
+
* @param {string} [description] - description param
|
|
75391
|
+
* @param {string} [enabled] - enabled param
|
|
75392
|
+
* @param {string} [shared] - shared param
|
|
75393
|
+
* @param {string} [weight] - weight param
|
|
75394
|
+
* @param {string} [q] - q param
|
|
75395
|
+
* @param {string} [contentTypeId] - contentTypeId param
|
|
75396
|
+
* @param {string} [userId] - userId param
|
|
75397
|
+
* @param {string} [user] - user param
|
|
75398
|
+
* @param {string} [usable] - usable param
|
|
75399
|
+
* @param {string} [idN] - idN param
|
|
75400
|
+
* @param {string} [idLte] - idLte param
|
|
75401
|
+
* @param {string} [idLt] - idLt param
|
|
75402
|
+
* @param {string} [idGte] - idGte param
|
|
75403
|
+
* @param {string} [idGt] - idGt param
|
|
75404
|
+
* @param {string} [contentTypesN] - contentTypesN param
|
|
75405
|
+
* @param {string} [contentTypesIc] - contentTypesIc param
|
|
75406
|
+
* @param {string} [contentTypesNic] - contentTypesNic param
|
|
75407
|
+
* @param {string} [contentTypesIew] - contentTypesIew param
|
|
75408
|
+
* @param {string} [contentTypesNiew] - contentTypesNiew param
|
|
75409
|
+
* @param {string} [contentTypesIsw] - contentTypesIsw param
|
|
75410
|
+
* @param {string} [contentTypesNisw] - contentTypesNisw param
|
|
75411
|
+
* @param {string} [contentTypesIe] - contentTypesIe param
|
|
75412
|
+
* @param {string} [contentTypesNie] - contentTypesNie param
|
|
75413
|
+
* @param {string} [nameN] - nameN param
|
|
75414
|
+
* @param {string} [nameIc] - nameIc param
|
|
75415
|
+
* @param {string} [nameNic] - nameNic param
|
|
75416
|
+
* @param {string} [nameIew] - nameIew param
|
|
75417
|
+
* @param {string} [nameNiew] - nameNiew param
|
|
75418
|
+
* @param {string} [nameIsw] - nameIsw param
|
|
75419
|
+
* @param {string} [nameNisw] - nameNisw param
|
|
75420
|
+
* @param {string} [nameIe] - nameIe param
|
|
75421
|
+
* @param {string} [nameNie] - nameNie param
|
|
75422
|
+
* @param {string} [nameEmpty] - nameEmpty param
|
|
75423
|
+
* @param {string} [slugN] - slugN param
|
|
75424
|
+
* @param {string} [slugIc] - slugIc param
|
|
75425
|
+
* @param {string} [slugNic] - slugNic param
|
|
75426
|
+
* @param {string} [slugIew] - slugIew param
|
|
75427
|
+
* @param {string} [slugNiew] - slugNiew param
|
|
75428
|
+
* @param {string} [slugIsw] - slugIsw param
|
|
75429
|
+
* @param {string} [slugNisw] - slugNisw param
|
|
75430
|
+
* @param {string} [slugIe] - slugIe param
|
|
75431
|
+
* @param {string} [slugNie] - slugNie param
|
|
75432
|
+
* @param {string} [slugEmpty] - slugEmpty param
|
|
75433
|
+
* @param {string} [descriptionN] - descriptionN param
|
|
75434
|
+
* @param {string} [descriptionIc] - descriptionIc param
|
|
75435
|
+
* @param {string} [descriptionNic] - descriptionNic param
|
|
75436
|
+
* @param {string} [descriptionIew] - descriptionIew param
|
|
75437
|
+
* @param {string} [descriptionNiew] - descriptionNiew param
|
|
75438
|
+
* @param {string} [descriptionIsw] - descriptionIsw param
|
|
75439
|
+
* @param {string} [descriptionNisw] - descriptionNisw param
|
|
75440
|
+
* @param {string} [descriptionIe] - descriptionIe param
|
|
75441
|
+
* @param {string} [descriptionNie] - descriptionNie param
|
|
75442
|
+
* @param {string} [descriptionEmpty] - descriptionEmpty param
|
|
75443
|
+
* @param {string} [weightN] - weightN param
|
|
75444
|
+
* @param {string} [weightLte] - weightLte param
|
|
75445
|
+
* @param {string} [weightLt] - weightLt param
|
|
75446
|
+
* @param {string} [weightGte] - weightGte param
|
|
75447
|
+
* @param {string} [weightGt] - weightGt param
|
|
75448
|
+
* @param {string} [contentTypeIdN] - contentTypeIdN param
|
|
75449
|
+
* @param {string} [contentTypeIdLte] - contentTypeIdLte param
|
|
75450
|
+
* @param {string} [contentTypeIdLt] - contentTypeIdLt param
|
|
75451
|
+
* @param {string} [contentTypeIdGte] - contentTypeIdGte param
|
|
75452
|
+
* @param {string} [contentTypeIdGt] - contentTypeIdGt param
|
|
75453
|
+
* @param {string} [userIdN] - userIdN param
|
|
75454
|
+
* @param {string} [userN] - userN param
|
|
75455
|
+
* @param {string} [ordering] - Which field to use when ordering the results.
|
|
75456
|
+
* @param {number} [limit] - Number of results to return per page.
|
|
75457
|
+
* @param {number} [offset] - The initial index from which to return the results.
|
|
75458
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75459
|
+
* @return {object} results - An object containing the response of the action
|
|
75460
|
+
*
|
|
75461
|
+
* @route {POST} /getExtrasSavedFilters
|
|
75462
|
+
* @roles admin
|
|
75463
|
+
* @task true
|
|
75464
|
+
*/
|
|
75465
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75466
|
+
getExtrasSavedFilters(id, contentTypes, name, slug, description, enabled, shared, weight, q, contentTypeId, userId, user, usable, idN, idLte, idLt, idGte, idGt, contentTypesN, contentTypesIc, contentTypesNic, contentTypesIew, contentTypesNiew, contentTypesIsw, contentTypesNisw, contentTypesIe, contentTypesNie, nameN, nameIc, nameNic, nameIew, nameNiew, nameIsw, nameNisw, nameIe, nameNie, nameEmpty, slugN, slugIc, slugNic, slugIew, slugNiew, slugIsw, slugNisw, slugIe, slugNie, slugEmpty, descriptionN, descriptionIc, descriptionNic, descriptionIew, descriptionNiew, descriptionIsw, descriptionNisw, descriptionIe, descriptionNie, descriptionEmpty, weightN, weightLte, weightLt, weightGte, weightGt, contentTypeIdN, contentTypeIdLte, contentTypeIdLt, contentTypeIdGte, contentTypeIdGt, userIdN, userN, ordering, limit, offset, callback) {
|
|
75467
|
+
const meth = 'adapter-getExtrasSavedFilters';
|
|
75468
|
+
const origin = `${this.id}-${meth}`;
|
|
75469
|
+
log.trace(origin);
|
|
75470
|
+
|
|
75471
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75472
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75473
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75474
|
+
return callback(null, errorObj);
|
|
75475
|
+
}
|
|
75476
|
+
|
|
75477
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75478
|
+
|
|
75479
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75480
|
+
const queryParamsAvailable = { id, contentTypes, name, slug, description, enabled, shared, weight, q, contentTypeId, userId, user, usable, idN, idLte, idLt, idGte, idGt, contentTypesN, contentTypesIc, contentTypesNic, contentTypesIew, contentTypesNiew, contentTypesIsw, contentTypesNisw, contentTypesIe, contentTypesNie, nameN, nameIc, nameNic, nameIew, nameNiew, nameIsw, nameNisw, nameIe, nameNie, nameEmpty, slugN, slugIc, slugNic, slugIew, slugNiew, slugIsw, slugNisw, slugIe, slugNie, slugEmpty, descriptionN, descriptionIc, descriptionNic, descriptionIew, descriptionNiew, descriptionIsw, descriptionNisw, descriptionIe, descriptionNie, descriptionEmpty, weightN, weightLte, weightLt, weightGte, weightGt, contentTypeIdN, contentTypeIdLte, contentTypeIdLt, contentTypeIdGte, contentTypeIdGt, userIdN, userN, ordering, limit, offset };
|
|
75481
|
+
const queryParams = {};
|
|
75482
|
+
const pathVars = [];
|
|
75483
|
+
const bodyVars = {};
|
|
75484
|
+
|
|
75485
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75486
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75487
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75488
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75489
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75490
|
+
}
|
|
75491
|
+
});
|
|
75492
|
+
|
|
75493
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75494
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75495
|
+
const reqObj = {
|
|
75496
|
+
payload: bodyVars,
|
|
75497
|
+
uriPathVars: pathVars,
|
|
75498
|
+
uriQuery: queryParams
|
|
75499
|
+
};
|
|
75500
|
+
|
|
75501
|
+
try {
|
|
75502
|
+
// Make the call -
|
|
75503
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75504
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'getExtrasSavedFilters', reqObj, true, (irReturnData, irReturnError) => {
|
|
75505
|
+
// if we received an error or their is no response on the results
|
|
75506
|
+
// return an error
|
|
75507
|
+
if (irReturnError) {
|
|
75508
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75509
|
+
return callback(null, irReturnError);
|
|
75510
|
+
}
|
|
75511
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75512
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getExtrasSavedFilters'], null, null, null);
|
|
75513
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75514
|
+
return callback(null, errorObj);
|
|
75515
|
+
}
|
|
75516
|
+
|
|
75517
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75518
|
+
// return the response
|
|
75519
|
+
return callback(irReturnData, null);
|
|
75520
|
+
});
|
|
75521
|
+
} catch (ex) {
|
|
75522
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75523
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75524
|
+
return callback(null, errorObj);
|
|
75525
|
+
}
|
|
75526
|
+
}
|
|
75527
|
+
|
|
75528
|
+
/**
|
|
75529
|
+
* @function postExtrasSavedFilters
|
|
75530
|
+
* @pronghornType method
|
|
75531
|
+
* @name postExtrasSavedFilters
|
|
75532
|
+
* @summary extras_saved-filters_create
|
|
75533
|
+
*
|
|
75534
|
+
* @param {object} data - data param
|
|
75535
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75536
|
+
* @return {object} results - An object containing the response of the action
|
|
75537
|
+
*
|
|
75538
|
+
* @route {POST} /postExtrasSavedFilters
|
|
75539
|
+
* @roles admin
|
|
75540
|
+
* @task true
|
|
75541
|
+
*/
|
|
75542
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75543
|
+
postExtrasSavedFilters(data, callback) {
|
|
75544
|
+
const meth = 'adapter-postExtrasSavedFilters';
|
|
75545
|
+
const origin = `${this.id}-${meth}`;
|
|
75546
|
+
log.trace(origin);
|
|
75547
|
+
|
|
75548
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75549
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75550
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75551
|
+
return callback(null, errorObj);
|
|
75552
|
+
}
|
|
75553
|
+
|
|
75554
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75555
|
+
if (data === undefined || data === null || data === '') {
|
|
75556
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
75557
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75558
|
+
return callback(null, errorObj);
|
|
75559
|
+
}
|
|
75560
|
+
|
|
75561
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75562
|
+
const queryParamsAvailable = {};
|
|
75563
|
+
const queryParams = {};
|
|
75564
|
+
const pathVars = [];
|
|
75565
|
+
const bodyVars = data;
|
|
75566
|
+
|
|
75567
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75568
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75569
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75570
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75571
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75572
|
+
}
|
|
75573
|
+
});
|
|
75574
|
+
|
|
75575
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75576
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75577
|
+
const reqObj = {
|
|
75578
|
+
payload: bodyVars,
|
|
75579
|
+
uriPathVars: pathVars,
|
|
75580
|
+
uriQuery: queryParams
|
|
75581
|
+
};
|
|
75582
|
+
|
|
75583
|
+
try {
|
|
75584
|
+
// Make the call -
|
|
75585
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75586
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'postExtrasSavedFilters', reqObj, true, (irReturnData, irReturnError) => {
|
|
75587
|
+
// if we received an error or their is no response on the results
|
|
75588
|
+
// return an error
|
|
75589
|
+
if (irReturnError) {
|
|
75590
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75591
|
+
return callback(null, irReturnError);
|
|
75592
|
+
}
|
|
75593
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75594
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postExtrasSavedFilters'], null, null, null);
|
|
75595
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75596
|
+
return callback(null, errorObj);
|
|
75597
|
+
}
|
|
75598
|
+
|
|
75599
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75600
|
+
// return the response
|
|
75601
|
+
return callback(irReturnData, null);
|
|
75602
|
+
});
|
|
75603
|
+
} catch (ex) {
|
|
75604
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75605
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75606
|
+
return callback(null, errorObj);
|
|
75607
|
+
}
|
|
75608
|
+
}
|
|
75609
|
+
|
|
75610
|
+
/**
|
|
75611
|
+
* @function putExtrasSavedFilters
|
|
75612
|
+
* @pronghornType method
|
|
75613
|
+
* @name putExtrasSavedFilters
|
|
75614
|
+
* @summary extras_saved-filters_bulk_update
|
|
75615
|
+
*
|
|
75616
|
+
* @param {object} data - data param
|
|
75617
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75618
|
+
* @return {object} results - An object containing the response of the action
|
|
75619
|
+
*
|
|
75620
|
+
* @route {POST} /putExtrasSavedFilters
|
|
75621
|
+
* @roles admin
|
|
75622
|
+
* @task true
|
|
75623
|
+
*/
|
|
75624
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75625
|
+
putExtrasSavedFilters(data, callback) {
|
|
75626
|
+
const meth = 'adapter-putExtrasSavedFilters';
|
|
75627
|
+
const origin = `${this.id}-${meth}`;
|
|
75628
|
+
log.trace(origin);
|
|
75629
|
+
|
|
75630
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75631
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75632
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75633
|
+
return callback(null, errorObj);
|
|
75634
|
+
}
|
|
75635
|
+
|
|
75636
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75637
|
+
if (data === undefined || data === null || data === '') {
|
|
75638
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
75639
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75640
|
+
return callback(null, errorObj);
|
|
75641
|
+
}
|
|
75642
|
+
|
|
75643
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75644
|
+
const queryParamsAvailable = {};
|
|
75645
|
+
const queryParams = {};
|
|
75646
|
+
const pathVars = [];
|
|
75647
|
+
const bodyVars = data;
|
|
75648
|
+
|
|
75649
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75650
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75651
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75652
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75653
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75654
|
+
}
|
|
75655
|
+
});
|
|
75656
|
+
|
|
75657
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75658
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75659
|
+
const reqObj = {
|
|
75660
|
+
payload: bodyVars,
|
|
75661
|
+
uriPathVars: pathVars,
|
|
75662
|
+
uriQuery: queryParams
|
|
75663
|
+
};
|
|
75664
|
+
|
|
75665
|
+
try {
|
|
75666
|
+
// Make the call -
|
|
75667
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75668
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'putExtrasSavedFilters', reqObj, false, (irReturnData, irReturnError) => {
|
|
75669
|
+
// if we received an error or their is no response on the results
|
|
75670
|
+
// return an error
|
|
75671
|
+
if (irReturnError) {
|
|
75672
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75673
|
+
return callback(null, irReturnError);
|
|
75674
|
+
}
|
|
75675
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75676
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putExtrasSavedFilters'], null, null, null);
|
|
75677
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75678
|
+
return callback(null, errorObj);
|
|
75679
|
+
}
|
|
75680
|
+
|
|
75681
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75682
|
+
// return the response
|
|
75683
|
+
return callback(irReturnData, null);
|
|
75684
|
+
});
|
|
75685
|
+
} catch (ex) {
|
|
75686
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75687
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75688
|
+
return callback(null, errorObj);
|
|
75689
|
+
}
|
|
75690
|
+
}
|
|
75691
|
+
|
|
75692
|
+
/**
|
|
75693
|
+
* @function patchExtrasSavedFilters
|
|
75694
|
+
* @pronghornType method
|
|
75695
|
+
* @name patchExtrasSavedFilters
|
|
75696
|
+
* @summary extras_saved-filters_bulk_partial_update
|
|
75697
|
+
*
|
|
75698
|
+
* @param {object} data - data param
|
|
75699
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75700
|
+
* @return {object} results - An object containing the response of the action
|
|
75701
|
+
*
|
|
75702
|
+
* @route {POST} /patchExtrasSavedFilters
|
|
75703
|
+
* @roles admin
|
|
75704
|
+
* @task true
|
|
75705
|
+
*/
|
|
75706
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75707
|
+
patchExtrasSavedFilters(data, callback) {
|
|
75708
|
+
const meth = 'adapter-patchExtrasSavedFilters';
|
|
75709
|
+
const origin = `${this.id}-${meth}`;
|
|
75710
|
+
log.trace(origin);
|
|
75711
|
+
|
|
75712
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75713
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75714
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75715
|
+
return callback(null, errorObj);
|
|
75716
|
+
}
|
|
75717
|
+
|
|
75718
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75719
|
+
if (data === undefined || data === null || data === '') {
|
|
75720
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
75721
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75722
|
+
return callback(null, errorObj);
|
|
75723
|
+
}
|
|
75724
|
+
|
|
75725
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75726
|
+
const queryParamsAvailable = {};
|
|
75727
|
+
const queryParams = {};
|
|
75728
|
+
const pathVars = [];
|
|
75729
|
+
const bodyVars = data;
|
|
75730
|
+
|
|
75731
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75732
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75733
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75734
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75735
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75736
|
+
}
|
|
75737
|
+
});
|
|
75738
|
+
|
|
75739
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75740
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75741
|
+
const reqObj = {
|
|
75742
|
+
payload: bodyVars,
|
|
75743
|
+
uriPathVars: pathVars,
|
|
75744
|
+
uriQuery: queryParams
|
|
75745
|
+
};
|
|
75746
|
+
|
|
75747
|
+
try {
|
|
75748
|
+
// Make the call -
|
|
75749
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75750
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'patchExtrasSavedFilters', reqObj, false, (irReturnData, irReturnError) => {
|
|
75751
|
+
// if we received an error or their is no response on the results
|
|
75752
|
+
// return an error
|
|
75753
|
+
if (irReturnError) {
|
|
75754
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75755
|
+
return callback(null, irReturnError);
|
|
75756
|
+
}
|
|
75757
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75758
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchExtrasSavedFilters'], null, null, null);
|
|
75759
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75760
|
+
return callback(null, errorObj);
|
|
75761
|
+
}
|
|
75762
|
+
|
|
75763
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75764
|
+
// return the response
|
|
75765
|
+
return callback(irReturnData, null);
|
|
75766
|
+
});
|
|
75767
|
+
} catch (ex) {
|
|
75768
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75769
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75770
|
+
return callback(null, errorObj);
|
|
75771
|
+
}
|
|
75772
|
+
}
|
|
75773
|
+
|
|
75774
|
+
/**
|
|
75775
|
+
* @function deleteExtrasSavedFilters
|
|
75776
|
+
* @pronghornType method
|
|
75777
|
+
* @name deleteExtrasSavedFilters
|
|
75778
|
+
* @summary extras_saved-filters_bulk_delete
|
|
75779
|
+
*
|
|
75780
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75781
|
+
* @return {object} results - An object containing the response of the action
|
|
75782
|
+
*
|
|
75783
|
+
* @route {GET} /deleteExtrasSavedFilters
|
|
75784
|
+
* @roles admin
|
|
75785
|
+
* @task true
|
|
75786
|
+
*/
|
|
75787
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75788
|
+
deleteExtrasSavedFilters(callback) {
|
|
75789
|
+
const meth = 'adapter-deleteExtrasSavedFilters';
|
|
75790
|
+
const origin = `${this.id}-${meth}`;
|
|
75791
|
+
log.trace(origin);
|
|
75792
|
+
|
|
75793
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75794
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75795
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75796
|
+
return callback(null, errorObj);
|
|
75797
|
+
}
|
|
75798
|
+
|
|
75799
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75800
|
+
|
|
75801
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75802
|
+
const queryParamsAvailable = {};
|
|
75803
|
+
const queryParams = {};
|
|
75804
|
+
const pathVars = [];
|
|
75805
|
+
const bodyVars = {};
|
|
75806
|
+
|
|
75807
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75808
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75809
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75810
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75811
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75812
|
+
}
|
|
75813
|
+
});
|
|
75814
|
+
|
|
75815
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75816
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75817
|
+
const reqObj = {
|
|
75818
|
+
payload: bodyVars,
|
|
75819
|
+
uriPathVars: pathVars,
|
|
75820
|
+
uriQuery: queryParams
|
|
75821
|
+
};
|
|
75822
|
+
|
|
75823
|
+
try {
|
|
75824
|
+
// Make the call -
|
|
75825
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75826
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'deleteExtrasSavedFilters', reqObj, false, (irReturnData, irReturnError) => {
|
|
75827
|
+
// if we received an error or their is no response on the results
|
|
75828
|
+
// return an error
|
|
75829
|
+
if (irReturnError) {
|
|
75830
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75831
|
+
return callback(null, irReturnError);
|
|
75832
|
+
}
|
|
75833
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75834
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deleteExtrasSavedFilters'], null, null, null);
|
|
75835
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75836
|
+
return callback(null, errorObj);
|
|
75837
|
+
}
|
|
75838
|
+
|
|
75839
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75840
|
+
// return the response
|
|
75841
|
+
return callback(irReturnData, null);
|
|
75842
|
+
});
|
|
75843
|
+
} catch (ex) {
|
|
75844
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75845
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75846
|
+
return callback(null, errorObj);
|
|
75847
|
+
}
|
|
75848
|
+
}
|
|
75849
|
+
|
|
75850
|
+
/**
|
|
75851
|
+
* @function getExtrasSavedFiltersId
|
|
75852
|
+
* @pronghornType method
|
|
75853
|
+
* @name getExtrasSavedFiltersId
|
|
75854
|
+
* @summary extras_saved-filters_read
|
|
75855
|
+
*
|
|
75856
|
+
* @param {number} id - A unique integer value identifying this saved filter.
|
|
75857
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75858
|
+
* @return {object} results - An object containing the response of the action
|
|
75859
|
+
*
|
|
75860
|
+
* @route {POST} /getExtrasSavedFiltersId
|
|
75861
|
+
* @roles admin
|
|
75862
|
+
* @task true
|
|
75863
|
+
*/
|
|
75864
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75865
|
+
getExtrasSavedFiltersId(id, callback) {
|
|
75866
|
+
const meth = 'adapter-getExtrasSavedFiltersId';
|
|
75867
|
+
const origin = `${this.id}-${meth}`;
|
|
75868
|
+
log.trace(origin);
|
|
75869
|
+
|
|
75870
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75871
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75872
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75873
|
+
return callback(null, errorObj);
|
|
75874
|
+
}
|
|
75875
|
+
|
|
75876
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75877
|
+
if (id === undefined || id === null || id === '') {
|
|
75878
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
75879
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75880
|
+
return callback(null, errorObj);
|
|
75881
|
+
}
|
|
75882
|
+
|
|
75883
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75884
|
+
const queryParamsAvailable = {};
|
|
75885
|
+
const queryParams = {};
|
|
75886
|
+
const pathVars = [id];
|
|
75887
|
+
const bodyVars = {};
|
|
75888
|
+
|
|
75889
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75890
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75891
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75892
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75893
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75894
|
+
}
|
|
75895
|
+
});
|
|
75896
|
+
|
|
75897
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75898
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75899
|
+
const reqObj = {
|
|
75900
|
+
payload: bodyVars,
|
|
75901
|
+
uriPathVars: pathVars,
|
|
75902
|
+
uriQuery: queryParams
|
|
75903
|
+
};
|
|
75904
|
+
|
|
75905
|
+
try {
|
|
75906
|
+
// Make the call -
|
|
75907
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75908
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'getExtrasSavedFiltersId', reqObj, true, (irReturnData, irReturnError) => {
|
|
75909
|
+
// if we received an error or their is no response on the results
|
|
75910
|
+
// return an error
|
|
75911
|
+
if (irReturnError) {
|
|
75912
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
75913
|
+
return callback(null, irReturnError);
|
|
75914
|
+
}
|
|
75915
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
75916
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getExtrasSavedFiltersId'], null, null, null);
|
|
75917
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75918
|
+
return callback(null, errorObj);
|
|
75919
|
+
}
|
|
75920
|
+
|
|
75921
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
75922
|
+
// return the response
|
|
75923
|
+
return callback(irReturnData, null);
|
|
75924
|
+
});
|
|
75925
|
+
} catch (ex) {
|
|
75926
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
75927
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75928
|
+
return callback(null, errorObj);
|
|
75929
|
+
}
|
|
75930
|
+
}
|
|
75931
|
+
|
|
75932
|
+
/**
|
|
75933
|
+
* @function putExtrasSavedFiltersId
|
|
75934
|
+
* @pronghornType method
|
|
75935
|
+
* @name putExtrasSavedFiltersId
|
|
75936
|
+
* @summary extras_saved-filters_update
|
|
75937
|
+
*
|
|
75938
|
+
* @param {number} id - A unique integer value identifying this saved filter.
|
|
75939
|
+
* @param {object} data - data param
|
|
75940
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
75941
|
+
* @return {object} results - An object containing the response of the action
|
|
75942
|
+
*
|
|
75943
|
+
* @route {POST} /putExtrasSavedFiltersId
|
|
75944
|
+
* @roles admin
|
|
75945
|
+
* @task true
|
|
75946
|
+
*/
|
|
75947
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
75948
|
+
putExtrasSavedFiltersId(id, data, callback) {
|
|
75949
|
+
const meth = 'adapter-putExtrasSavedFiltersId';
|
|
75950
|
+
const origin = `${this.id}-${meth}`;
|
|
75951
|
+
log.trace(origin);
|
|
75952
|
+
|
|
75953
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
75954
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
75955
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75956
|
+
return callback(null, errorObj);
|
|
75957
|
+
}
|
|
75958
|
+
|
|
75959
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
75960
|
+
if (id === undefined || id === null || id === '') {
|
|
75961
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
75962
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75963
|
+
return callback(null, errorObj);
|
|
75964
|
+
}
|
|
75965
|
+
if (data === undefined || data === null || data === '') {
|
|
75966
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
75967
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
75968
|
+
return callback(null, errorObj);
|
|
75969
|
+
}
|
|
75970
|
+
|
|
75971
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
75972
|
+
const queryParamsAvailable = {};
|
|
75973
|
+
const queryParams = {};
|
|
75974
|
+
const pathVars = [id];
|
|
75975
|
+
const bodyVars = data;
|
|
75976
|
+
|
|
75977
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
75978
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
75979
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
75980
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
75981
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
75982
|
+
}
|
|
75983
|
+
});
|
|
75984
|
+
|
|
75985
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
75986
|
+
// see adapter code documentation for more information on the request object's fields
|
|
75987
|
+
const reqObj = {
|
|
75988
|
+
payload: bodyVars,
|
|
75989
|
+
uriPathVars: pathVars,
|
|
75990
|
+
uriQuery: queryParams
|
|
75991
|
+
};
|
|
75992
|
+
|
|
75993
|
+
try {
|
|
75994
|
+
// Make the call -
|
|
75995
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
75996
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'putExtrasSavedFiltersId', reqObj, false, (irReturnData, irReturnError) => {
|
|
75997
|
+
// if we received an error or their is no response on the results
|
|
75998
|
+
// return an error
|
|
75999
|
+
if (irReturnError) {
|
|
76000
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76001
|
+
return callback(null, irReturnError);
|
|
76002
|
+
}
|
|
76003
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76004
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putExtrasSavedFiltersId'], null, null, null);
|
|
76005
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76006
|
+
return callback(null, errorObj);
|
|
76007
|
+
}
|
|
76008
|
+
|
|
76009
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76010
|
+
// return the response
|
|
76011
|
+
return callback(irReturnData, null);
|
|
76012
|
+
});
|
|
76013
|
+
} catch (ex) {
|
|
76014
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76015
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76016
|
+
return callback(null, errorObj);
|
|
76017
|
+
}
|
|
76018
|
+
}
|
|
76019
|
+
|
|
76020
|
+
/**
|
|
76021
|
+
* @function patchExtrasSavedFiltersId
|
|
76022
|
+
* @pronghornType method
|
|
76023
|
+
* @name patchExtrasSavedFiltersId
|
|
76024
|
+
* @summary extras_saved-filters_partial_update
|
|
76025
|
+
*
|
|
76026
|
+
* @param {number} id - A unique integer value identifying this saved filter.
|
|
76027
|
+
* @param {object} data - data param
|
|
76028
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76029
|
+
* @return {object} results - An object containing the response of the action
|
|
76030
|
+
*
|
|
76031
|
+
* @route {POST} /patchExtrasSavedFiltersId
|
|
76032
|
+
* @roles admin
|
|
76033
|
+
* @task true
|
|
76034
|
+
*/
|
|
76035
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76036
|
+
patchExtrasSavedFiltersId(id, data, callback) {
|
|
76037
|
+
const meth = 'adapter-patchExtrasSavedFiltersId';
|
|
76038
|
+
const origin = `${this.id}-${meth}`;
|
|
76039
|
+
log.trace(origin);
|
|
76040
|
+
|
|
76041
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76042
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76043
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76044
|
+
return callback(null, errorObj);
|
|
76045
|
+
}
|
|
76046
|
+
|
|
76047
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76048
|
+
if (id === undefined || id === null || id === '') {
|
|
76049
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
76050
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76051
|
+
return callback(null, errorObj);
|
|
76052
|
+
}
|
|
76053
|
+
if (data === undefined || data === null || data === '') {
|
|
76054
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
76055
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76056
|
+
return callback(null, errorObj);
|
|
76057
|
+
}
|
|
76058
|
+
|
|
76059
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76060
|
+
const queryParamsAvailable = {};
|
|
76061
|
+
const queryParams = {};
|
|
76062
|
+
const pathVars = [id];
|
|
76063
|
+
const bodyVars = data;
|
|
76064
|
+
|
|
76065
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76066
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76067
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76068
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76069
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76070
|
+
}
|
|
76071
|
+
});
|
|
76072
|
+
|
|
76073
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76074
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76075
|
+
const reqObj = {
|
|
76076
|
+
payload: bodyVars,
|
|
76077
|
+
uriPathVars: pathVars,
|
|
76078
|
+
uriQuery: queryParams
|
|
76079
|
+
};
|
|
76080
|
+
|
|
76081
|
+
try {
|
|
76082
|
+
// Make the call -
|
|
76083
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76084
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'patchExtrasSavedFiltersId', reqObj, false, (irReturnData, irReturnError) => {
|
|
76085
|
+
// if we received an error or their is no response on the results
|
|
76086
|
+
// return an error
|
|
76087
|
+
if (irReturnError) {
|
|
76088
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76089
|
+
return callback(null, irReturnError);
|
|
76090
|
+
}
|
|
76091
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76092
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchExtrasSavedFiltersId'], null, null, null);
|
|
76093
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76094
|
+
return callback(null, errorObj);
|
|
76095
|
+
}
|
|
76096
|
+
|
|
76097
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76098
|
+
// return the response
|
|
76099
|
+
return callback(irReturnData, null);
|
|
76100
|
+
});
|
|
76101
|
+
} catch (ex) {
|
|
76102
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76103
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76104
|
+
return callback(null, errorObj);
|
|
76105
|
+
}
|
|
76106
|
+
}
|
|
76107
|
+
|
|
76108
|
+
/**
|
|
76109
|
+
* @function deleteExtrasSavedFiltersId
|
|
76110
|
+
* @pronghornType method
|
|
76111
|
+
* @name deleteExtrasSavedFiltersId
|
|
76112
|
+
* @summary extras_saved-filters_delete
|
|
76113
|
+
*
|
|
76114
|
+
* @param {number} id - A unique integer value identifying this saved filter.
|
|
76115
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76116
|
+
* @return {object} results - An object containing the response of the action
|
|
76117
|
+
*
|
|
76118
|
+
* @route {POST} /deleteExtrasSavedFiltersId
|
|
76119
|
+
* @roles admin
|
|
76120
|
+
* @task true
|
|
76121
|
+
*/
|
|
76122
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76123
|
+
deleteExtrasSavedFiltersId(id, callback) {
|
|
76124
|
+
const meth = 'adapter-deleteExtrasSavedFiltersId';
|
|
76125
|
+
const origin = `${this.id}-${meth}`;
|
|
76126
|
+
log.trace(origin);
|
|
76127
|
+
|
|
76128
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76129
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76130
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76131
|
+
return callback(null, errorObj);
|
|
76132
|
+
}
|
|
76133
|
+
|
|
76134
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76135
|
+
if (id === undefined || id === null || id === '') {
|
|
76136
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
76137
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76138
|
+
return callback(null, errorObj);
|
|
76139
|
+
}
|
|
76140
|
+
|
|
76141
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76142
|
+
const queryParamsAvailable = {};
|
|
76143
|
+
const queryParams = {};
|
|
76144
|
+
const pathVars = [id];
|
|
76145
|
+
const bodyVars = {};
|
|
76146
|
+
|
|
76147
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76148
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76149
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76150
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76151
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76152
|
+
}
|
|
76153
|
+
});
|
|
76154
|
+
|
|
76155
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76156
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76157
|
+
const reqObj = {
|
|
76158
|
+
payload: bodyVars,
|
|
76159
|
+
uriPathVars: pathVars,
|
|
76160
|
+
uriQuery: queryParams
|
|
76161
|
+
};
|
|
76162
|
+
|
|
76163
|
+
try {
|
|
76164
|
+
// Make the call -
|
|
76165
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76166
|
+
return this.requestHandlerInst.identifyRequest('Extras', 'deleteExtrasSavedFiltersId', reqObj, false, (irReturnData, irReturnError) => {
|
|
76167
|
+
// if we received an error or their is no response on the results
|
|
76168
|
+
// return an error
|
|
76169
|
+
if (irReturnError) {
|
|
76170
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76171
|
+
return callback(null, irReturnError);
|
|
76172
|
+
}
|
|
76173
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76174
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deleteExtrasSavedFiltersId'], null, null, null);
|
|
76175
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76176
|
+
return callback(null, errorObj);
|
|
76177
|
+
}
|
|
76178
|
+
|
|
76179
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76180
|
+
// return the response
|
|
76181
|
+
return callback(irReturnData, null);
|
|
76182
|
+
});
|
|
76183
|
+
} catch (ex) {
|
|
76184
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76185
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76186
|
+
return callback(null, errorObj);
|
|
76187
|
+
}
|
|
76188
|
+
}
|
|
76189
|
+
|
|
76190
|
+
/**
|
|
76191
|
+
* @function getPluginsServicePoolsCandidateConfig
|
|
76192
|
+
* @pronghornType method
|
|
76193
|
+
* @name getPluginsServicePoolsCandidateConfig
|
|
76194
|
+
* @summary plugins_service-pools_candidate-config_list
|
|
76195
|
+
*
|
|
76196
|
+
* @param {string} [ordering] - Which field to use when ordering the results.
|
|
76197
|
+
* @param {number} [limit] - Number of results to return per page.
|
|
76198
|
+
* @param {number} [offset] - The initial index from which to return the results.
|
|
76199
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76200
|
+
* @return {object} results - An object containing the response of the action
|
|
76201
|
+
*
|
|
76202
|
+
* @route {POST} /getPluginsServicePoolsCandidateConfig
|
|
76203
|
+
* @roles admin
|
|
76204
|
+
* @task true
|
|
76205
|
+
*/
|
|
76206
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76207
|
+
getPluginsServicePoolsCandidateConfig(ordering, limit, offset, callback) {
|
|
76208
|
+
const meth = 'adapter-getPluginsServicePoolsCandidateConfig';
|
|
76209
|
+
const origin = `${this.id}-${meth}`;
|
|
76210
|
+
log.trace(origin);
|
|
76211
|
+
|
|
76212
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76213
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76214
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76215
|
+
return callback(null, errorObj);
|
|
76216
|
+
}
|
|
76217
|
+
|
|
76218
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76219
|
+
|
|
76220
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76221
|
+
const queryParamsAvailable = { ordering, limit, offset };
|
|
76222
|
+
const queryParams = {};
|
|
76223
|
+
const pathVars = [];
|
|
76224
|
+
const bodyVars = {};
|
|
76225
|
+
|
|
76226
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76227
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76228
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76229
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76230
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76231
|
+
}
|
|
76232
|
+
});
|
|
76233
|
+
|
|
76234
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76235
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76236
|
+
const reqObj = {
|
|
76237
|
+
payload: bodyVars,
|
|
76238
|
+
uriPathVars: pathVars,
|
|
76239
|
+
uriQuery: queryParams
|
|
76240
|
+
};
|
|
76241
|
+
|
|
76242
|
+
try {
|
|
76243
|
+
// Make the call -
|
|
76244
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76245
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'getPluginsServicePoolsCandidateConfig', reqObj, true, (irReturnData, irReturnError) => {
|
|
76246
|
+
// if we received an error or their is no response on the results
|
|
76247
|
+
// return an error
|
|
76248
|
+
if (irReturnError) {
|
|
76249
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76250
|
+
return callback(null, irReturnError);
|
|
76251
|
+
}
|
|
76252
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76253
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getPluginsServicePoolsCandidateConfig'], null, null, null);
|
|
76254
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76255
|
+
return callback(null, errorObj);
|
|
76256
|
+
}
|
|
76257
|
+
|
|
76258
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76259
|
+
// return the response
|
|
76260
|
+
return callback(irReturnData, null);
|
|
76261
|
+
});
|
|
76262
|
+
} catch (ex) {
|
|
76263
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76264
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76265
|
+
return callback(null, errorObj);
|
|
76266
|
+
}
|
|
76267
|
+
}
|
|
76268
|
+
|
|
76269
|
+
/**
|
|
76270
|
+
* @function postPluginsServicePoolsCandidateConfig
|
|
76271
|
+
* @pronghornType method
|
|
76272
|
+
* @name postPluginsServicePoolsCandidateConfig
|
|
76273
|
+
* @summary plugins_service-pools_candidate-config_create
|
|
76274
|
+
*
|
|
76275
|
+
* @param {object} data - data param
|
|
76276
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76277
|
+
* @return {object} results - An object containing the response of the action
|
|
76278
|
+
*
|
|
76279
|
+
* @route {POST} /postPluginsServicePoolsCandidateConfig
|
|
76280
|
+
* @roles admin
|
|
76281
|
+
* @task true
|
|
76282
|
+
*/
|
|
76283
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76284
|
+
postPluginsServicePoolsCandidateConfig(data, callback) {
|
|
76285
|
+
const meth = 'adapter-postPluginsServicePoolsCandidateConfig';
|
|
76286
|
+
const origin = `${this.id}-${meth}`;
|
|
76287
|
+
log.trace(origin);
|
|
76288
|
+
|
|
76289
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76290
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76291
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76292
|
+
return callback(null, errorObj);
|
|
76293
|
+
}
|
|
76294
|
+
|
|
76295
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76296
|
+
if (data === undefined || data === null || data === '') {
|
|
76297
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
76298
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76299
|
+
return callback(null, errorObj);
|
|
76300
|
+
}
|
|
76301
|
+
|
|
76302
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76303
|
+
const queryParamsAvailable = {};
|
|
76304
|
+
const queryParams = {};
|
|
76305
|
+
const pathVars = [];
|
|
76306
|
+
const bodyVars = data;
|
|
76307
|
+
|
|
76308
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76309
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76310
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76311
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76312
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76313
|
+
}
|
|
76314
|
+
});
|
|
76315
|
+
|
|
76316
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76317
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76318
|
+
const reqObj = {
|
|
76319
|
+
payload: bodyVars,
|
|
76320
|
+
uriPathVars: pathVars,
|
|
76321
|
+
uriQuery: queryParams
|
|
76322
|
+
};
|
|
76323
|
+
|
|
76324
|
+
try {
|
|
76325
|
+
// Make the call -
|
|
76326
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76327
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'postPluginsServicePoolsCandidateConfig', reqObj, true, (irReturnData, irReturnError) => {
|
|
76328
|
+
// if we received an error or their is no response on the results
|
|
76329
|
+
// return an error
|
|
76330
|
+
if (irReturnError) {
|
|
76331
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76332
|
+
return callback(null, irReturnError);
|
|
76333
|
+
}
|
|
76334
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76335
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postPluginsServicePoolsCandidateConfig'], null, null, null);
|
|
76336
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76337
|
+
return callback(null, errorObj);
|
|
76338
|
+
}
|
|
76339
|
+
|
|
76340
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76341
|
+
// return the response
|
|
76342
|
+
return callback(irReturnData, null);
|
|
76343
|
+
});
|
|
76344
|
+
} catch (ex) {
|
|
76345
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76346
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76347
|
+
return callback(null, errorObj);
|
|
76348
|
+
}
|
|
76349
|
+
}
|
|
76350
|
+
|
|
76351
|
+
/**
|
|
76352
|
+
* @function putPluginsServicePoolsCandidateConfig
|
|
76353
|
+
* @pronghornType method
|
|
76354
|
+
* @name putPluginsServicePoolsCandidateConfig
|
|
76355
|
+
* @summary plugins_service-pools_candidate-config_bulk_update
|
|
76356
|
+
*
|
|
76357
|
+
* @param {object} data - data param
|
|
76358
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76359
|
+
* @return {object} results - An object containing the response of the action
|
|
76360
|
+
*
|
|
76361
|
+
* @route {POST} /putPluginsServicePoolsCandidateConfig
|
|
76362
|
+
* @roles admin
|
|
76363
|
+
* @task true
|
|
76364
|
+
*/
|
|
76365
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76366
|
+
putPluginsServicePoolsCandidateConfig(data, callback) {
|
|
76367
|
+
const meth = 'adapter-putPluginsServicePoolsCandidateConfig';
|
|
76368
|
+
const origin = `${this.id}-${meth}`;
|
|
76369
|
+
log.trace(origin);
|
|
76370
|
+
|
|
76371
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76372
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76373
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76374
|
+
return callback(null, errorObj);
|
|
76375
|
+
}
|
|
76376
|
+
|
|
76377
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76378
|
+
if (data === undefined || data === null || data === '') {
|
|
76379
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
76380
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76381
|
+
return callback(null, errorObj);
|
|
76382
|
+
}
|
|
76383
|
+
|
|
76384
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76385
|
+
const queryParamsAvailable = {};
|
|
76386
|
+
const queryParams = {};
|
|
76387
|
+
const pathVars = [];
|
|
76388
|
+
const bodyVars = data;
|
|
76389
|
+
|
|
76390
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76391
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76392
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76393
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76394
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76395
|
+
}
|
|
76396
|
+
});
|
|
76397
|
+
|
|
76398
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76399
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76400
|
+
const reqObj = {
|
|
76401
|
+
payload: bodyVars,
|
|
76402
|
+
uriPathVars: pathVars,
|
|
76403
|
+
uriQuery: queryParams
|
|
76404
|
+
};
|
|
76405
|
+
|
|
76406
|
+
try {
|
|
76407
|
+
// Make the call -
|
|
76408
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76409
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'putPluginsServicePoolsCandidateConfig', reqObj, false, (irReturnData, irReturnError) => {
|
|
76410
|
+
// if we received an error or their is no response on the results
|
|
76411
|
+
// return an error
|
|
76412
|
+
if (irReturnError) {
|
|
76413
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76414
|
+
return callback(null, irReturnError);
|
|
76415
|
+
}
|
|
76416
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76417
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putPluginsServicePoolsCandidateConfig'], null, null, null);
|
|
76418
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76419
|
+
return callback(null, errorObj);
|
|
76420
|
+
}
|
|
76421
|
+
|
|
76422
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76423
|
+
// return the response
|
|
76424
|
+
return callback(irReturnData, null);
|
|
76425
|
+
});
|
|
76426
|
+
} catch (ex) {
|
|
76427
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76428
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76429
|
+
return callback(null, errorObj);
|
|
76430
|
+
}
|
|
76431
|
+
}
|
|
76432
|
+
|
|
76433
|
+
/**
|
|
76434
|
+
* @function patchPluginsServicePoolsCandidateConfig
|
|
76435
|
+
* @pronghornType method
|
|
76436
|
+
* @name patchPluginsServicePoolsCandidateConfig
|
|
76437
|
+
* @summary plugins_service-pools_candidate-config_bulk_partial_update
|
|
76438
|
+
*
|
|
76439
|
+
* @param {object} data - data param
|
|
76440
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76441
|
+
* @return {object} results - An object containing the response of the action
|
|
76442
|
+
*
|
|
76443
|
+
* @route {POST} /patchPluginsServicePoolsCandidateConfig
|
|
76444
|
+
* @roles admin
|
|
76445
|
+
* @task true
|
|
76446
|
+
*/
|
|
76447
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76448
|
+
patchPluginsServicePoolsCandidateConfig(data, callback) {
|
|
76449
|
+
const meth = 'adapter-patchPluginsServicePoolsCandidateConfig';
|
|
76450
|
+
const origin = `${this.id}-${meth}`;
|
|
76451
|
+
log.trace(origin);
|
|
76452
|
+
|
|
76453
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76454
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76455
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76456
|
+
return callback(null, errorObj);
|
|
76457
|
+
}
|
|
76458
|
+
|
|
76459
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76460
|
+
if (data === undefined || data === null || data === '') {
|
|
76461
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
76462
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76463
|
+
return callback(null, errorObj);
|
|
76464
|
+
}
|
|
76465
|
+
|
|
76466
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76467
|
+
const queryParamsAvailable = {};
|
|
76468
|
+
const queryParams = {};
|
|
76469
|
+
const pathVars = [];
|
|
76470
|
+
const bodyVars = data;
|
|
76471
|
+
|
|
76472
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76473
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76474
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76475
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76476
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76477
|
+
}
|
|
76478
|
+
});
|
|
76479
|
+
|
|
76480
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76481
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76482
|
+
const reqObj = {
|
|
76483
|
+
payload: bodyVars,
|
|
76484
|
+
uriPathVars: pathVars,
|
|
76485
|
+
uriQuery: queryParams
|
|
76486
|
+
};
|
|
76487
|
+
|
|
76488
|
+
try {
|
|
76489
|
+
// Make the call -
|
|
76490
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76491
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'patchPluginsServicePoolsCandidateConfig', reqObj, false, (irReturnData, irReturnError) => {
|
|
76492
|
+
// if we received an error or their is no response on the results
|
|
76493
|
+
// return an error
|
|
76494
|
+
if (irReturnError) {
|
|
76495
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76496
|
+
return callback(null, irReturnError);
|
|
76497
|
+
}
|
|
76498
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76499
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchPluginsServicePoolsCandidateConfig'], null, null, null);
|
|
76500
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76501
|
+
return callback(null, errorObj);
|
|
76502
|
+
}
|
|
76503
|
+
|
|
76504
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76505
|
+
// return the response
|
|
76506
|
+
return callback(irReturnData, null);
|
|
76507
|
+
});
|
|
76508
|
+
} catch (ex) {
|
|
76509
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76510
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76511
|
+
return callback(null, errorObj);
|
|
76512
|
+
}
|
|
76513
|
+
}
|
|
76514
|
+
|
|
76515
|
+
/**
|
|
76516
|
+
* @function deletePluginsServicePoolsCandidateConfig
|
|
76517
|
+
* @pronghornType method
|
|
76518
|
+
* @name deletePluginsServicePoolsCandidateConfig
|
|
76519
|
+
* @summary plugins_service-pools_candidate-config_bulk_delete
|
|
76520
|
+
*
|
|
76521
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76522
|
+
* @return {object} results - An object containing the response of the action
|
|
76523
|
+
*
|
|
76524
|
+
* @route {GET} /deletePluginsServicePoolsCandidateConfig
|
|
76525
|
+
* @roles admin
|
|
76526
|
+
* @task true
|
|
76527
|
+
*/
|
|
76528
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76529
|
+
deletePluginsServicePoolsCandidateConfig(callback) {
|
|
76530
|
+
const meth = 'adapter-deletePluginsServicePoolsCandidateConfig';
|
|
76531
|
+
const origin = `${this.id}-${meth}`;
|
|
76532
|
+
log.trace(origin);
|
|
76533
|
+
|
|
76534
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76535
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76536
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76537
|
+
return callback(null, errorObj);
|
|
76538
|
+
}
|
|
76539
|
+
|
|
76540
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76541
|
+
|
|
76542
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76543
|
+
const queryParamsAvailable = {};
|
|
76544
|
+
const queryParams = {};
|
|
76545
|
+
const pathVars = [];
|
|
76546
|
+
const bodyVars = {};
|
|
76547
|
+
|
|
76548
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76549
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76550
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76551
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76552
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76553
|
+
}
|
|
76554
|
+
});
|
|
76555
|
+
|
|
76556
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76557
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76558
|
+
const reqObj = {
|
|
76559
|
+
payload: bodyVars,
|
|
76560
|
+
uriPathVars: pathVars,
|
|
76561
|
+
uriQuery: queryParams
|
|
76562
|
+
};
|
|
76563
|
+
|
|
76564
|
+
try {
|
|
76565
|
+
// Make the call -
|
|
76566
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76567
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'deletePluginsServicePoolsCandidateConfig', reqObj, false, (irReturnData, irReturnError) => {
|
|
76568
|
+
// if we received an error or their is no response on the results
|
|
76569
|
+
// return an error
|
|
76570
|
+
if (irReturnError) {
|
|
76571
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76572
|
+
return callback(null, irReturnError);
|
|
76573
|
+
}
|
|
76574
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76575
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deletePluginsServicePoolsCandidateConfig'], null, null, null);
|
|
76576
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76577
|
+
return callback(null, errorObj);
|
|
76578
|
+
}
|
|
76579
|
+
|
|
76580
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76581
|
+
// return the response
|
|
76582
|
+
return callback(irReturnData, null);
|
|
76583
|
+
});
|
|
76584
|
+
} catch (ex) {
|
|
76585
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76586
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76587
|
+
return callback(null, errorObj);
|
|
76588
|
+
}
|
|
76589
|
+
}
|
|
76590
|
+
|
|
76591
|
+
/**
|
|
76592
|
+
* @function getPluginsServicePoolsCandidateConfigId
|
|
76593
|
+
* @pronghornType method
|
|
76594
|
+
* @name getPluginsServicePoolsCandidateConfigId
|
|
76595
|
+
* @summary plugins_service-pools_candidate-config_read
|
|
76596
|
+
*
|
|
76597
|
+
* @param {number} id - A unique integer value identifying this candidate config.
|
|
76598
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76599
|
+
* @return {object} results - An object containing the response of the action
|
|
76600
|
+
*
|
|
76601
|
+
* @route {POST} /getPluginsServicePoolsCandidateConfigId
|
|
76602
|
+
* @roles admin
|
|
76603
|
+
* @task true
|
|
76604
|
+
*/
|
|
76605
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76606
|
+
getPluginsServicePoolsCandidateConfigId(id, callback) {
|
|
76607
|
+
const meth = 'adapter-getPluginsServicePoolsCandidateConfigId';
|
|
76608
|
+
const origin = `${this.id}-${meth}`;
|
|
76609
|
+
log.trace(origin);
|
|
76610
|
+
|
|
76611
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76612
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76613
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76614
|
+
return callback(null, errorObj);
|
|
76615
|
+
}
|
|
76616
|
+
|
|
76617
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76618
|
+
if (id === undefined || id === null || id === '') {
|
|
76619
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
76620
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76621
|
+
return callback(null, errorObj);
|
|
76622
|
+
}
|
|
76623
|
+
|
|
76624
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76625
|
+
const queryParamsAvailable = {};
|
|
76626
|
+
const queryParams = {};
|
|
76627
|
+
const pathVars = [id];
|
|
76628
|
+
const bodyVars = {};
|
|
76629
|
+
|
|
76630
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76631
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76632
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76633
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76634
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76635
|
+
}
|
|
76636
|
+
});
|
|
76637
|
+
|
|
76638
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76639
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76640
|
+
const reqObj = {
|
|
76641
|
+
payload: bodyVars,
|
|
76642
|
+
uriPathVars: pathVars,
|
|
76643
|
+
uriQuery: queryParams
|
|
76644
|
+
};
|
|
76645
|
+
|
|
76646
|
+
try {
|
|
76647
|
+
// Make the call -
|
|
76648
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76649
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'getPluginsServicePoolsCandidateConfigId', reqObj, true, (irReturnData, irReturnError) => {
|
|
76650
|
+
// if we received an error or their is no response on the results
|
|
76651
|
+
// return an error
|
|
76652
|
+
if (irReturnError) {
|
|
76653
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76654
|
+
return callback(null, irReturnError);
|
|
76655
|
+
}
|
|
76656
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76657
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getPluginsServicePoolsCandidateConfigId'], null, null, null);
|
|
76658
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76659
|
+
return callback(null, errorObj);
|
|
76660
|
+
}
|
|
76661
|
+
|
|
76662
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76663
|
+
// return the response
|
|
76664
|
+
return callback(irReturnData, null);
|
|
76665
|
+
});
|
|
76666
|
+
} catch (ex) {
|
|
76667
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76668
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76669
|
+
return callback(null, errorObj);
|
|
76670
|
+
}
|
|
76671
|
+
}
|
|
76672
|
+
|
|
76673
|
+
/**
|
|
76674
|
+
* @function putPluginsServicePoolsCandidateConfigId
|
|
76675
|
+
* @pronghornType method
|
|
76676
|
+
* @name putPluginsServicePoolsCandidateConfigId
|
|
76677
|
+
* @summary plugins_service-pools_candidate-config_update
|
|
76678
|
+
*
|
|
76679
|
+
* @param {number} id - A unique integer value identifying this candidate config.
|
|
76680
|
+
* @param {object} data - data param
|
|
76681
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76682
|
+
* @return {object} results - An object containing the response of the action
|
|
76683
|
+
*
|
|
76684
|
+
* @route {POST} /putPluginsServicePoolsCandidateConfigId
|
|
76685
|
+
* @roles admin
|
|
76686
|
+
* @task true
|
|
76687
|
+
*/
|
|
76688
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76689
|
+
putPluginsServicePoolsCandidateConfigId(id, data, callback) {
|
|
76690
|
+
const meth = 'adapter-putPluginsServicePoolsCandidateConfigId';
|
|
76691
|
+
const origin = `${this.id}-${meth}`;
|
|
76692
|
+
log.trace(origin);
|
|
76693
|
+
|
|
76694
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76695
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76696
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76697
|
+
return callback(null, errorObj);
|
|
76698
|
+
}
|
|
76699
|
+
|
|
76700
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76701
|
+
if (id === undefined || id === null || id === '') {
|
|
76702
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
76703
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76704
|
+
return callback(null, errorObj);
|
|
76705
|
+
}
|
|
76706
|
+
if (data === undefined || data === null || data === '') {
|
|
76707
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
76708
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76709
|
+
return callback(null, errorObj);
|
|
76710
|
+
}
|
|
76711
|
+
|
|
76712
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76713
|
+
const queryParamsAvailable = {};
|
|
76714
|
+
const queryParams = {};
|
|
76715
|
+
const pathVars = [id];
|
|
76716
|
+
const bodyVars = data;
|
|
76717
|
+
|
|
76718
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76719
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76720
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76721
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76722
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76723
|
+
}
|
|
76724
|
+
});
|
|
76725
|
+
|
|
76726
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76727
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76728
|
+
const reqObj = {
|
|
76729
|
+
payload: bodyVars,
|
|
76730
|
+
uriPathVars: pathVars,
|
|
76731
|
+
uriQuery: queryParams
|
|
76732
|
+
};
|
|
76733
|
+
|
|
76734
|
+
try {
|
|
76735
|
+
// Make the call -
|
|
76736
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76737
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'putPluginsServicePoolsCandidateConfigId', reqObj, false, (irReturnData, irReturnError) => {
|
|
76738
|
+
// if we received an error or their is no response on the results
|
|
76739
|
+
// return an error
|
|
76740
|
+
if (irReturnError) {
|
|
76741
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76742
|
+
return callback(null, irReturnError);
|
|
76743
|
+
}
|
|
76744
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76745
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putPluginsServicePoolsCandidateConfigId'], null, null, null);
|
|
76746
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76747
|
+
return callback(null, errorObj);
|
|
76748
|
+
}
|
|
76749
|
+
|
|
76750
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76751
|
+
// return the response
|
|
76752
|
+
return callback(irReturnData, null);
|
|
76753
|
+
});
|
|
76754
|
+
} catch (ex) {
|
|
76755
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76756
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76757
|
+
return callback(null, errorObj);
|
|
76758
|
+
}
|
|
76759
|
+
}
|
|
76760
|
+
|
|
76761
|
+
/**
|
|
76762
|
+
* @function patchPluginsServicePoolsCandidateConfigId
|
|
76763
|
+
* @pronghornType method
|
|
76764
|
+
* @name patchPluginsServicePoolsCandidateConfigId
|
|
76765
|
+
* @summary plugins_service-pools_candidate-config_partial_update
|
|
76766
|
+
*
|
|
76767
|
+
* @param {number} id - A unique integer value identifying this candidate config.
|
|
76768
|
+
* @param {object} data - data param
|
|
76769
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76770
|
+
* @return {object} results - An object containing the response of the action
|
|
76771
|
+
*
|
|
76772
|
+
* @route {POST} /patchPluginsServicePoolsCandidateConfigId
|
|
76773
|
+
* @roles admin
|
|
76774
|
+
* @task true
|
|
76775
|
+
*/
|
|
76776
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76777
|
+
patchPluginsServicePoolsCandidateConfigId(id, data, callback) {
|
|
76778
|
+
const meth = 'adapter-patchPluginsServicePoolsCandidateConfigId';
|
|
76779
|
+
const origin = `${this.id}-${meth}`;
|
|
76780
|
+
log.trace(origin);
|
|
76781
|
+
|
|
76782
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76783
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76784
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76785
|
+
return callback(null, errorObj);
|
|
76786
|
+
}
|
|
76787
|
+
|
|
76788
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76789
|
+
if (id === undefined || id === null || id === '') {
|
|
76790
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
76791
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76792
|
+
return callback(null, errorObj);
|
|
76793
|
+
}
|
|
76794
|
+
if (data === undefined || data === null || data === '') {
|
|
76795
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
76796
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76797
|
+
return callback(null, errorObj);
|
|
76798
|
+
}
|
|
76799
|
+
|
|
76800
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76801
|
+
const queryParamsAvailable = {};
|
|
76802
|
+
const queryParams = {};
|
|
76803
|
+
const pathVars = [id];
|
|
76804
|
+
const bodyVars = data;
|
|
76805
|
+
|
|
76806
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76807
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76808
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76809
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76810
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76811
|
+
}
|
|
76812
|
+
});
|
|
76813
|
+
|
|
76814
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76815
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76816
|
+
const reqObj = {
|
|
76817
|
+
payload: bodyVars,
|
|
76818
|
+
uriPathVars: pathVars,
|
|
76819
|
+
uriQuery: queryParams
|
|
76820
|
+
};
|
|
76821
|
+
|
|
76822
|
+
try {
|
|
76823
|
+
// Make the call -
|
|
76824
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76825
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'patchPluginsServicePoolsCandidateConfigId', reqObj, false, (irReturnData, irReturnError) => {
|
|
76826
|
+
// if we received an error or their is no response on the results
|
|
76827
|
+
// return an error
|
|
76828
|
+
if (irReturnError) {
|
|
76829
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76830
|
+
return callback(null, irReturnError);
|
|
76831
|
+
}
|
|
76832
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76833
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchPluginsServicePoolsCandidateConfigId'], null, null, null);
|
|
76834
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76835
|
+
return callback(null, errorObj);
|
|
76836
|
+
}
|
|
76837
|
+
|
|
76838
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76839
|
+
// return the response
|
|
76840
|
+
return callback(irReturnData, null);
|
|
76841
|
+
});
|
|
76842
|
+
} catch (ex) {
|
|
76843
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76844
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76845
|
+
return callback(null, errorObj);
|
|
76846
|
+
}
|
|
76847
|
+
}
|
|
76848
|
+
|
|
76849
|
+
/**
|
|
76850
|
+
* @function deletePluginsServicePoolsCandidateConfigId
|
|
76851
|
+
* @pronghornType method
|
|
76852
|
+
* @name deletePluginsServicePoolsCandidateConfigId
|
|
76853
|
+
* @summary plugins_service-pools_candidate-config_delete
|
|
76854
|
+
*
|
|
76855
|
+
* @param {number} id - A unique integer value identifying this candidate config.
|
|
76856
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76857
|
+
* @return {object} results - An object containing the response of the action
|
|
76858
|
+
*
|
|
76859
|
+
* @route {POST} /deletePluginsServicePoolsCandidateConfigId
|
|
76860
|
+
* @roles admin
|
|
76861
|
+
* @task true
|
|
76862
|
+
*/
|
|
76863
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76864
|
+
deletePluginsServicePoolsCandidateConfigId(id, callback) {
|
|
76865
|
+
const meth = 'adapter-deletePluginsServicePoolsCandidateConfigId';
|
|
76866
|
+
const origin = `${this.id}-${meth}`;
|
|
76867
|
+
log.trace(origin);
|
|
76868
|
+
|
|
76869
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76870
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76871
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76872
|
+
return callback(null, errorObj);
|
|
76873
|
+
}
|
|
76874
|
+
|
|
76875
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76876
|
+
if (id === undefined || id === null || id === '') {
|
|
76877
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
76878
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76879
|
+
return callback(null, errorObj);
|
|
76880
|
+
}
|
|
76881
|
+
|
|
76882
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76883
|
+
const queryParamsAvailable = {};
|
|
76884
|
+
const queryParams = {};
|
|
76885
|
+
const pathVars = [id];
|
|
76886
|
+
const bodyVars = {};
|
|
76887
|
+
|
|
76888
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76889
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76890
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76891
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76892
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76893
|
+
}
|
|
76894
|
+
});
|
|
76895
|
+
|
|
76896
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76897
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76898
|
+
const reqObj = {
|
|
76899
|
+
payload: bodyVars,
|
|
76900
|
+
uriPathVars: pathVars,
|
|
76901
|
+
uriQuery: queryParams
|
|
76902
|
+
};
|
|
76903
|
+
|
|
76904
|
+
try {
|
|
76905
|
+
// Make the call -
|
|
76906
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76907
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'deletePluginsServicePoolsCandidateConfigId', reqObj, false, (irReturnData, irReturnError) => {
|
|
76908
|
+
// if we received an error or their is no response on the results
|
|
76909
|
+
// return an error
|
|
76910
|
+
if (irReturnError) {
|
|
76911
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76912
|
+
return callback(null, irReturnError);
|
|
76913
|
+
}
|
|
76914
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76915
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deletePluginsServicePoolsCandidateConfigId'], null, null, null);
|
|
76916
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76917
|
+
return callback(null, errorObj);
|
|
76918
|
+
}
|
|
76919
|
+
|
|
76920
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
76921
|
+
// return the response
|
|
76922
|
+
return callback(irReturnData, null);
|
|
76923
|
+
});
|
|
76924
|
+
} catch (ex) {
|
|
76925
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
76926
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76927
|
+
return callback(null, errorObj);
|
|
76928
|
+
}
|
|
76929
|
+
}
|
|
76930
|
+
|
|
76931
|
+
/**
|
|
76932
|
+
* @function getPluginsServicePoolsCustomService
|
|
76933
|
+
* @pronghornType method
|
|
76934
|
+
* @name getPluginsServicePoolsCustomService
|
|
76935
|
+
* @summary plugins_service-pools_custom-service_list
|
|
76936
|
+
*
|
|
76937
|
+
* @param {string} [ordering] - Which field to use when ordering the results.
|
|
76938
|
+
* @param {number} [limit] - Number of results to return per page.
|
|
76939
|
+
* @param {number} [offset] - The initial index from which to return the results.
|
|
76940
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
76941
|
+
* @return {object} results - An object containing the response of the action
|
|
76942
|
+
*
|
|
76943
|
+
* @route {POST} /getPluginsServicePoolsCustomService
|
|
76944
|
+
* @roles admin
|
|
76945
|
+
* @task true
|
|
76946
|
+
*/
|
|
76947
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
76948
|
+
getPluginsServicePoolsCustomService(ordering, limit, offset, callback) {
|
|
76949
|
+
const meth = 'adapter-getPluginsServicePoolsCustomService';
|
|
76950
|
+
const origin = `${this.id}-${meth}`;
|
|
76951
|
+
log.trace(origin);
|
|
76952
|
+
|
|
76953
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
76954
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
76955
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76956
|
+
return callback(null, errorObj);
|
|
76957
|
+
}
|
|
76958
|
+
|
|
76959
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
76960
|
+
|
|
76961
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
76962
|
+
const queryParamsAvailable = { ordering, limit, offset };
|
|
76963
|
+
const queryParams = {};
|
|
76964
|
+
const pathVars = [];
|
|
76965
|
+
const bodyVars = {};
|
|
76966
|
+
|
|
76967
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
76968
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
76969
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
76970
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
76971
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
76972
|
+
}
|
|
76973
|
+
});
|
|
76974
|
+
|
|
76975
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
76976
|
+
// see adapter code documentation for more information on the request object's fields
|
|
76977
|
+
const reqObj = {
|
|
76978
|
+
payload: bodyVars,
|
|
76979
|
+
uriPathVars: pathVars,
|
|
76980
|
+
uriQuery: queryParams
|
|
76981
|
+
};
|
|
76982
|
+
|
|
76983
|
+
try {
|
|
76984
|
+
// Make the call -
|
|
76985
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
76986
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'getPluginsServicePoolsCustomService', reqObj, true, (irReturnData, irReturnError) => {
|
|
76987
|
+
// if we received an error or their is no response on the results
|
|
76988
|
+
// return an error
|
|
76989
|
+
if (irReturnError) {
|
|
76990
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
76991
|
+
return callback(null, irReturnError);
|
|
76992
|
+
}
|
|
76993
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
76994
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getPluginsServicePoolsCustomService'], null, null, null);
|
|
76995
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
76996
|
+
return callback(null, errorObj);
|
|
76997
|
+
}
|
|
76998
|
+
|
|
76999
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77000
|
+
// return the response
|
|
77001
|
+
return callback(irReturnData, null);
|
|
77002
|
+
});
|
|
77003
|
+
} catch (ex) {
|
|
77004
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77005
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77006
|
+
return callback(null, errorObj);
|
|
77007
|
+
}
|
|
77008
|
+
}
|
|
77009
|
+
|
|
77010
|
+
/**
|
|
77011
|
+
* @function postPluginsServicePoolsCustomService
|
|
77012
|
+
* @pronghornType method
|
|
77013
|
+
* @name postPluginsServicePoolsCustomService
|
|
77014
|
+
* @summary plugins_service-pools_custom-service_create
|
|
77015
|
+
*
|
|
77016
|
+
* @param {object} data - data param
|
|
77017
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77018
|
+
* @return {object} results - An object containing the response of the action
|
|
77019
|
+
*
|
|
77020
|
+
* @route {POST} /postPluginsServicePoolsCustomService
|
|
77021
|
+
* @roles admin
|
|
77022
|
+
* @task true
|
|
77023
|
+
*/
|
|
77024
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77025
|
+
postPluginsServicePoolsCustomService(data, callback) {
|
|
77026
|
+
const meth = 'adapter-postPluginsServicePoolsCustomService';
|
|
77027
|
+
const origin = `${this.id}-${meth}`;
|
|
77028
|
+
log.trace(origin);
|
|
77029
|
+
|
|
77030
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77031
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77032
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77033
|
+
return callback(null, errorObj);
|
|
77034
|
+
}
|
|
77035
|
+
|
|
77036
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77037
|
+
if (data === undefined || data === null || data === '') {
|
|
77038
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77039
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77040
|
+
return callback(null, errorObj);
|
|
77041
|
+
}
|
|
77042
|
+
|
|
77043
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77044
|
+
const queryParamsAvailable = {};
|
|
77045
|
+
const queryParams = {};
|
|
77046
|
+
const pathVars = [];
|
|
77047
|
+
const bodyVars = data;
|
|
77048
|
+
|
|
77049
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77050
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77051
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77052
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77053
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77054
|
+
}
|
|
77055
|
+
});
|
|
77056
|
+
|
|
77057
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77058
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77059
|
+
const reqObj = {
|
|
77060
|
+
payload: bodyVars,
|
|
77061
|
+
uriPathVars: pathVars,
|
|
77062
|
+
uriQuery: queryParams
|
|
77063
|
+
};
|
|
77064
|
+
|
|
77065
|
+
try {
|
|
77066
|
+
// Make the call -
|
|
77067
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77068
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'postPluginsServicePoolsCustomService', reqObj, true, (irReturnData, irReturnError) => {
|
|
77069
|
+
// if we received an error or their is no response on the results
|
|
77070
|
+
// return an error
|
|
77071
|
+
if (irReturnError) {
|
|
77072
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77073
|
+
return callback(null, irReturnError);
|
|
77074
|
+
}
|
|
77075
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77076
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postPluginsServicePoolsCustomService'], null, null, null);
|
|
77077
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77078
|
+
return callback(null, errorObj);
|
|
77079
|
+
}
|
|
77080
|
+
|
|
77081
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77082
|
+
// return the response
|
|
77083
|
+
return callback(irReturnData, null);
|
|
77084
|
+
});
|
|
77085
|
+
} catch (ex) {
|
|
77086
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77087
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77088
|
+
return callback(null, errorObj);
|
|
77089
|
+
}
|
|
77090
|
+
}
|
|
77091
|
+
|
|
77092
|
+
/**
|
|
77093
|
+
* @function putPluginsServicePoolsCustomService
|
|
77094
|
+
* @pronghornType method
|
|
77095
|
+
* @name putPluginsServicePoolsCustomService
|
|
77096
|
+
* @summary plugins_service-pools_custom-service_bulk_update
|
|
77097
|
+
*
|
|
77098
|
+
* @param {object} data - data param
|
|
77099
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77100
|
+
* @return {object} results - An object containing the response of the action
|
|
77101
|
+
*
|
|
77102
|
+
* @route {POST} /putPluginsServicePoolsCustomService
|
|
77103
|
+
* @roles admin
|
|
77104
|
+
* @task true
|
|
77105
|
+
*/
|
|
77106
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77107
|
+
putPluginsServicePoolsCustomService(data, callback) {
|
|
77108
|
+
const meth = 'adapter-putPluginsServicePoolsCustomService';
|
|
77109
|
+
const origin = `${this.id}-${meth}`;
|
|
77110
|
+
log.trace(origin);
|
|
77111
|
+
|
|
77112
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77113
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77114
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77115
|
+
return callback(null, errorObj);
|
|
77116
|
+
}
|
|
77117
|
+
|
|
77118
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77119
|
+
if (data === undefined || data === null || data === '') {
|
|
77120
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77121
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77122
|
+
return callback(null, errorObj);
|
|
77123
|
+
}
|
|
77124
|
+
|
|
77125
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77126
|
+
const queryParamsAvailable = {};
|
|
77127
|
+
const queryParams = {};
|
|
77128
|
+
const pathVars = [];
|
|
77129
|
+
const bodyVars = data;
|
|
77130
|
+
|
|
77131
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77132
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77133
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77134
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77135
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77136
|
+
}
|
|
77137
|
+
});
|
|
77138
|
+
|
|
77139
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77140
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77141
|
+
const reqObj = {
|
|
77142
|
+
payload: bodyVars,
|
|
77143
|
+
uriPathVars: pathVars,
|
|
77144
|
+
uriQuery: queryParams
|
|
77145
|
+
};
|
|
77146
|
+
|
|
77147
|
+
try {
|
|
77148
|
+
// Make the call -
|
|
77149
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77150
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'putPluginsServicePoolsCustomService', reqObj, false, (irReturnData, irReturnError) => {
|
|
77151
|
+
// if we received an error or their is no response on the results
|
|
77152
|
+
// return an error
|
|
77153
|
+
if (irReturnError) {
|
|
77154
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77155
|
+
return callback(null, irReturnError);
|
|
77156
|
+
}
|
|
77157
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77158
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putPluginsServicePoolsCustomService'], null, null, null);
|
|
77159
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77160
|
+
return callback(null, errorObj);
|
|
77161
|
+
}
|
|
77162
|
+
|
|
77163
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77164
|
+
// return the response
|
|
77165
|
+
return callback(irReturnData, null);
|
|
77166
|
+
});
|
|
77167
|
+
} catch (ex) {
|
|
77168
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77169
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77170
|
+
return callback(null, errorObj);
|
|
77171
|
+
}
|
|
77172
|
+
}
|
|
77173
|
+
|
|
77174
|
+
/**
|
|
77175
|
+
* @function patchPluginsServicePoolsCustomService
|
|
77176
|
+
* @pronghornType method
|
|
77177
|
+
* @name patchPluginsServicePoolsCustomService
|
|
77178
|
+
* @summary plugins_service-pools_custom-service_bulk_partial_update
|
|
77179
|
+
*
|
|
77180
|
+
* @param {object} data - data param
|
|
77181
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77182
|
+
* @return {object} results - An object containing the response of the action
|
|
77183
|
+
*
|
|
77184
|
+
* @route {POST} /patchPluginsServicePoolsCustomService
|
|
77185
|
+
* @roles admin
|
|
77186
|
+
* @task true
|
|
77187
|
+
*/
|
|
77188
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77189
|
+
patchPluginsServicePoolsCustomService(data, callback) {
|
|
77190
|
+
const meth = 'adapter-patchPluginsServicePoolsCustomService';
|
|
77191
|
+
const origin = `${this.id}-${meth}`;
|
|
77192
|
+
log.trace(origin);
|
|
77193
|
+
|
|
77194
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77195
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77196
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77197
|
+
return callback(null, errorObj);
|
|
77198
|
+
}
|
|
77199
|
+
|
|
77200
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77201
|
+
if (data === undefined || data === null || data === '') {
|
|
77202
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77203
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77204
|
+
return callback(null, errorObj);
|
|
77205
|
+
}
|
|
77206
|
+
|
|
77207
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77208
|
+
const queryParamsAvailable = {};
|
|
77209
|
+
const queryParams = {};
|
|
77210
|
+
const pathVars = [];
|
|
77211
|
+
const bodyVars = data;
|
|
77212
|
+
|
|
77213
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77214
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77215
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77216
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77217
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77218
|
+
}
|
|
77219
|
+
});
|
|
77220
|
+
|
|
77221
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77222
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77223
|
+
const reqObj = {
|
|
77224
|
+
payload: bodyVars,
|
|
77225
|
+
uriPathVars: pathVars,
|
|
77226
|
+
uriQuery: queryParams
|
|
77227
|
+
};
|
|
77228
|
+
|
|
77229
|
+
try {
|
|
77230
|
+
// Make the call -
|
|
77231
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77232
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'patchPluginsServicePoolsCustomService', reqObj, false, (irReturnData, irReturnError) => {
|
|
77233
|
+
// if we received an error or their is no response on the results
|
|
77234
|
+
// return an error
|
|
77235
|
+
if (irReturnError) {
|
|
77236
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77237
|
+
return callback(null, irReturnError);
|
|
77238
|
+
}
|
|
77239
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77240
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchPluginsServicePoolsCustomService'], null, null, null);
|
|
77241
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77242
|
+
return callback(null, errorObj);
|
|
77243
|
+
}
|
|
77244
|
+
|
|
77245
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77246
|
+
// return the response
|
|
77247
|
+
return callback(irReturnData, null);
|
|
77248
|
+
});
|
|
77249
|
+
} catch (ex) {
|
|
77250
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77251
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77252
|
+
return callback(null, errorObj);
|
|
77253
|
+
}
|
|
77254
|
+
}
|
|
77255
|
+
|
|
77256
|
+
/**
|
|
77257
|
+
* @function deletePluginsServicePoolsCustomService
|
|
77258
|
+
* @pronghornType method
|
|
77259
|
+
* @name deletePluginsServicePoolsCustomService
|
|
77260
|
+
* @summary plugins_service-pools_custom-service_bulk_delete
|
|
77261
|
+
*
|
|
77262
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77263
|
+
* @return {object} results - An object containing the response of the action
|
|
77264
|
+
*
|
|
77265
|
+
* @route {GET} /deletePluginsServicePoolsCustomService
|
|
77266
|
+
* @roles admin
|
|
77267
|
+
* @task true
|
|
77268
|
+
*/
|
|
77269
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77270
|
+
deletePluginsServicePoolsCustomService(callback) {
|
|
77271
|
+
const meth = 'adapter-deletePluginsServicePoolsCustomService';
|
|
77272
|
+
const origin = `${this.id}-${meth}`;
|
|
77273
|
+
log.trace(origin);
|
|
77274
|
+
|
|
77275
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77276
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77277
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77278
|
+
return callback(null, errorObj);
|
|
77279
|
+
}
|
|
77280
|
+
|
|
77281
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77282
|
+
|
|
77283
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77284
|
+
const queryParamsAvailable = {};
|
|
77285
|
+
const queryParams = {};
|
|
77286
|
+
const pathVars = [];
|
|
77287
|
+
const bodyVars = {};
|
|
77288
|
+
|
|
77289
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77290
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77291
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77292
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77293
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77294
|
+
}
|
|
77295
|
+
});
|
|
77296
|
+
|
|
77297
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77298
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77299
|
+
const reqObj = {
|
|
77300
|
+
payload: bodyVars,
|
|
77301
|
+
uriPathVars: pathVars,
|
|
77302
|
+
uriQuery: queryParams
|
|
77303
|
+
};
|
|
77304
|
+
|
|
77305
|
+
try {
|
|
77306
|
+
// Make the call -
|
|
77307
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77308
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'deletePluginsServicePoolsCustomService', reqObj, false, (irReturnData, irReturnError) => {
|
|
77309
|
+
// if we received an error or their is no response on the results
|
|
77310
|
+
// return an error
|
|
77311
|
+
if (irReturnError) {
|
|
77312
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77313
|
+
return callback(null, irReturnError);
|
|
77314
|
+
}
|
|
77315
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77316
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deletePluginsServicePoolsCustomService'], null, null, null);
|
|
77317
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77318
|
+
return callback(null, errorObj);
|
|
77319
|
+
}
|
|
77320
|
+
|
|
77321
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77322
|
+
// return the response
|
|
77323
|
+
return callback(irReturnData, null);
|
|
77324
|
+
});
|
|
77325
|
+
} catch (ex) {
|
|
77326
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77327
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77328
|
+
return callback(null, errorObj);
|
|
77329
|
+
}
|
|
77330
|
+
}
|
|
77331
|
+
|
|
77332
|
+
/**
|
|
77333
|
+
* @function getPluginsServicePoolsCustomServiceId
|
|
77334
|
+
* @pronghornType method
|
|
77335
|
+
* @name getPluginsServicePoolsCustomServiceId
|
|
77336
|
+
* @summary plugins_service-pools_custom-service_read
|
|
77337
|
+
*
|
|
77338
|
+
* @param {number} id - A unique integer value identifying this custom service.
|
|
77339
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77340
|
+
* @return {object} results - An object containing the response of the action
|
|
77341
|
+
*
|
|
77342
|
+
* @route {POST} /getPluginsServicePoolsCustomServiceId
|
|
77343
|
+
* @roles admin
|
|
77344
|
+
* @task true
|
|
77345
|
+
*/
|
|
77346
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77347
|
+
getPluginsServicePoolsCustomServiceId(id, callback) {
|
|
77348
|
+
const meth = 'adapter-getPluginsServicePoolsCustomServiceId';
|
|
77349
|
+
const origin = `${this.id}-${meth}`;
|
|
77350
|
+
log.trace(origin);
|
|
77351
|
+
|
|
77352
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77353
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77354
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77355
|
+
return callback(null, errorObj);
|
|
77356
|
+
}
|
|
77357
|
+
|
|
77358
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77359
|
+
if (id === undefined || id === null || id === '') {
|
|
77360
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
77361
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77362
|
+
return callback(null, errorObj);
|
|
77363
|
+
}
|
|
77364
|
+
|
|
77365
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77366
|
+
const queryParamsAvailable = {};
|
|
77367
|
+
const queryParams = {};
|
|
77368
|
+
const pathVars = [id];
|
|
77369
|
+
const bodyVars = {};
|
|
77370
|
+
|
|
77371
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77372
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77373
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77374
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77375
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77376
|
+
}
|
|
77377
|
+
});
|
|
77378
|
+
|
|
77379
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77380
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77381
|
+
const reqObj = {
|
|
77382
|
+
payload: bodyVars,
|
|
77383
|
+
uriPathVars: pathVars,
|
|
77384
|
+
uriQuery: queryParams
|
|
77385
|
+
};
|
|
77386
|
+
|
|
77387
|
+
try {
|
|
77388
|
+
// Make the call -
|
|
77389
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77390
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'getPluginsServicePoolsCustomServiceId', reqObj, true, (irReturnData, irReturnError) => {
|
|
77391
|
+
// if we received an error or their is no response on the results
|
|
77392
|
+
// return an error
|
|
77393
|
+
if (irReturnError) {
|
|
77394
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77395
|
+
return callback(null, irReturnError);
|
|
77396
|
+
}
|
|
77397
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77398
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getPluginsServicePoolsCustomServiceId'], null, null, null);
|
|
77399
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77400
|
+
return callback(null, errorObj);
|
|
77401
|
+
}
|
|
77402
|
+
|
|
77403
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77404
|
+
// return the response
|
|
77405
|
+
return callback(irReturnData, null);
|
|
77406
|
+
});
|
|
77407
|
+
} catch (ex) {
|
|
77408
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77409
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77410
|
+
return callback(null, errorObj);
|
|
77411
|
+
}
|
|
77412
|
+
}
|
|
77413
|
+
|
|
77414
|
+
/**
|
|
77415
|
+
* @function putPluginsServicePoolsCustomServiceId
|
|
77416
|
+
* @pronghornType method
|
|
77417
|
+
* @name putPluginsServicePoolsCustomServiceId
|
|
77418
|
+
* @summary plugins_service-pools_custom-service_update
|
|
77419
|
+
*
|
|
77420
|
+
* @param {number} id - A unique integer value identifying this custom service.
|
|
77421
|
+
* @param {object} data - data param
|
|
77422
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77423
|
+
* @return {object} results - An object containing the response of the action
|
|
77424
|
+
*
|
|
77425
|
+
* @route {POST} /putPluginsServicePoolsCustomServiceId
|
|
77426
|
+
* @roles admin
|
|
77427
|
+
* @task true
|
|
77428
|
+
*/
|
|
77429
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77430
|
+
putPluginsServicePoolsCustomServiceId(id, data, callback) {
|
|
77431
|
+
const meth = 'adapter-putPluginsServicePoolsCustomServiceId';
|
|
77432
|
+
const origin = `${this.id}-${meth}`;
|
|
77433
|
+
log.trace(origin);
|
|
77434
|
+
|
|
77435
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77436
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77437
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77438
|
+
return callback(null, errorObj);
|
|
77439
|
+
}
|
|
77440
|
+
|
|
77441
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77442
|
+
if (id === undefined || id === null || id === '') {
|
|
77443
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
77444
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77445
|
+
return callback(null, errorObj);
|
|
77446
|
+
}
|
|
77447
|
+
if (data === undefined || data === null || data === '') {
|
|
77448
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77449
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77450
|
+
return callback(null, errorObj);
|
|
77451
|
+
}
|
|
77452
|
+
|
|
77453
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77454
|
+
const queryParamsAvailable = {};
|
|
77455
|
+
const queryParams = {};
|
|
77456
|
+
const pathVars = [id];
|
|
77457
|
+
const bodyVars = data;
|
|
77458
|
+
|
|
77459
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77460
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77461
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77462
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77463
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77464
|
+
}
|
|
77465
|
+
});
|
|
77466
|
+
|
|
77467
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77468
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77469
|
+
const reqObj = {
|
|
77470
|
+
payload: bodyVars,
|
|
77471
|
+
uriPathVars: pathVars,
|
|
77472
|
+
uriQuery: queryParams
|
|
77473
|
+
};
|
|
77474
|
+
|
|
77475
|
+
try {
|
|
77476
|
+
// Make the call -
|
|
77477
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77478
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'putPluginsServicePoolsCustomServiceId', reqObj, false, (irReturnData, irReturnError) => {
|
|
77479
|
+
// if we received an error or their is no response on the results
|
|
77480
|
+
// return an error
|
|
77481
|
+
if (irReturnError) {
|
|
77482
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77483
|
+
return callback(null, irReturnError);
|
|
77484
|
+
}
|
|
77485
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77486
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putPluginsServicePoolsCustomServiceId'], null, null, null);
|
|
77487
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77488
|
+
return callback(null, errorObj);
|
|
77489
|
+
}
|
|
77490
|
+
|
|
77491
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77492
|
+
// return the response
|
|
77493
|
+
return callback(irReturnData, null);
|
|
77494
|
+
});
|
|
77495
|
+
} catch (ex) {
|
|
77496
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77497
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77498
|
+
return callback(null, errorObj);
|
|
77499
|
+
}
|
|
77500
|
+
}
|
|
77501
|
+
|
|
77502
|
+
/**
|
|
77503
|
+
* @function patchPluginsServicePoolsCustomServiceId
|
|
77504
|
+
* @pronghornType method
|
|
77505
|
+
* @name patchPluginsServicePoolsCustomServiceId
|
|
77506
|
+
* @summary plugins_service-pools_custom-service_partial_update
|
|
77507
|
+
*
|
|
77508
|
+
* @param {number} id - A unique integer value identifying this custom service.
|
|
77509
|
+
* @param {object} data - data param
|
|
77510
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77511
|
+
* @return {object} results - An object containing the response of the action
|
|
77512
|
+
*
|
|
77513
|
+
* @route {POST} /patchPluginsServicePoolsCustomServiceId
|
|
77514
|
+
* @roles admin
|
|
77515
|
+
* @task true
|
|
77516
|
+
*/
|
|
77517
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77518
|
+
patchPluginsServicePoolsCustomServiceId(id, data, callback) {
|
|
77519
|
+
const meth = 'adapter-patchPluginsServicePoolsCustomServiceId';
|
|
77520
|
+
const origin = `${this.id}-${meth}`;
|
|
77521
|
+
log.trace(origin);
|
|
77522
|
+
|
|
77523
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77524
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77525
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77526
|
+
return callback(null, errorObj);
|
|
77527
|
+
}
|
|
77528
|
+
|
|
77529
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77530
|
+
if (id === undefined || id === null || id === '') {
|
|
77531
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
77532
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77533
|
+
return callback(null, errorObj);
|
|
77534
|
+
}
|
|
77535
|
+
if (data === undefined || data === null || data === '') {
|
|
77536
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77537
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77538
|
+
return callback(null, errorObj);
|
|
77539
|
+
}
|
|
77540
|
+
|
|
77541
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77542
|
+
const queryParamsAvailable = {};
|
|
77543
|
+
const queryParams = {};
|
|
77544
|
+
const pathVars = [id];
|
|
77545
|
+
const bodyVars = data;
|
|
77546
|
+
|
|
77547
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77548
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77549
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77550
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77551
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77552
|
+
}
|
|
77553
|
+
});
|
|
77554
|
+
|
|
77555
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77556
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77557
|
+
const reqObj = {
|
|
77558
|
+
payload: bodyVars,
|
|
77559
|
+
uriPathVars: pathVars,
|
|
77560
|
+
uriQuery: queryParams
|
|
77561
|
+
};
|
|
77562
|
+
|
|
77563
|
+
try {
|
|
77564
|
+
// Make the call -
|
|
77565
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77566
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'patchPluginsServicePoolsCustomServiceId', reqObj, false, (irReturnData, irReturnError) => {
|
|
77567
|
+
// if we received an error or their is no response on the results
|
|
77568
|
+
// return an error
|
|
77569
|
+
if (irReturnError) {
|
|
77570
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77571
|
+
return callback(null, irReturnError);
|
|
77572
|
+
}
|
|
77573
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77574
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchPluginsServicePoolsCustomServiceId'], null, null, null);
|
|
77575
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77576
|
+
return callback(null, errorObj);
|
|
77577
|
+
}
|
|
77578
|
+
|
|
77579
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77580
|
+
// return the response
|
|
77581
|
+
return callback(irReturnData, null);
|
|
77582
|
+
});
|
|
77583
|
+
} catch (ex) {
|
|
77584
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77585
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77586
|
+
return callback(null, errorObj);
|
|
77587
|
+
}
|
|
77588
|
+
}
|
|
77589
|
+
|
|
77590
|
+
/**
|
|
77591
|
+
* @function deletePluginsServicePoolsCustomServiceId
|
|
77592
|
+
* @pronghornType method
|
|
77593
|
+
* @name deletePluginsServicePoolsCustomServiceId
|
|
77594
|
+
* @summary plugins_service-pools_custom-service_delete
|
|
77595
|
+
*
|
|
77596
|
+
* @param {number} id - A unique integer value identifying this custom service.
|
|
77597
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77598
|
+
* @return {object} results - An object containing the response of the action
|
|
77599
|
+
*
|
|
77600
|
+
* @route {POST} /deletePluginsServicePoolsCustomServiceId
|
|
77601
|
+
* @roles admin
|
|
77602
|
+
* @task true
|
|
77603
|
+
*/
|
|
77604
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77605
|
+
deletePluginsServicePoolsCustomServiceId(id, callback) {
|
|
77606
|
+
const meth = 'adapter-deletePluginsServicePoolsCustomServiceId';
|
|
77607
|
+
const origin = `${this.id}-${meth}`;
|
|
77608
|
+
log.trace(origin);
|
|
77609
|
+
|
|
77610
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77611
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77612
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77613
|
+
return callback(null, errorObj);
|
|
77614
|
+
}
|
|
77615
|
+
|
|
77616
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77617
|
+
if (id === undefined || id === null || id === '') {
|
|
77618
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
77619
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77620
|
+
return callback(null, errorObj);
|
|
77621
|
+
}
|
|
77622
|
+
|
|
77623
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77624
|
+
const queryParamsAvailable = {};
|
|
77625
|
+
const queryParams = {};
|
|
77626
|
+
const pathVars = [id];
|
|
77627
|
+
const bodyVars = {};
|
|
77628
|
+
|
|
77629
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77630
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77631
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77632
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77633
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77634
|
+
}
|
|
77635
|
+
});
|
|
77636
|
+
|
|
77637
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77638
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77639
|
+
const reqObj = {
|
|
77640
|
+
payload: bodyVars,
|
|
77641
|
+
uriPathVars: pathVars,
|
|
77642
|
+
uriQuery: queryParams
|
|
77643
|
+
};
|
|
77644
|
+
|
|
77645
|
+
try {
|
|
77646
|
+
// Make the call -
|
|
77647
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77648
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'deletePluginsServicePoolsCustomServiceId', reqObj, false, (irReturnData, irReturnError) => {
|
|
77649
|
+
// if we received an error or their is no response on the results
|
|
77650
|
+
// return an error
|
|
77651
|
+
if (irReturnError) {
|
|
77652
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77653
|
+
return callback(null, irReturnError);
|
|
77654
|
+
}
|
|
77655
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77656
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deletePluginsServicePoolsCustomServiceId'], null, null, null);
|
|
77657
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77658
|
+
return callback(null, errorObj);
|
|
77659
|
+
}
|
|
77660
|
+
|
|
77661
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77662
|
+
// return the response
|
|
77663
|
+
return callback(irReturnData, null);
|
|
77664
|
+
});
|
|
77665
|
+
} catch (ex) {
|
|
77666
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77667
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77668
|
+
return callback(null, errorObj);
|
|
77669
|
+
}
|
|
77670
|
+
}
|
|
77671
|
+
|
|
77672
|
+
/**
|
|
77673
|
+
* @function getPluginsServicePoolsServiceOrder
|
|
77674
|
+
* @pronghornType method
|
|
77675
|
+
* @name getPluginsServicePoolsServiceOrder
|
|
77676
|
+
* @summary plugins_service-pools_service-order_list
|
|
77677
|
+
*
|
|
77678
|
+
* @param {string} [ordering] - Which field to use when ordering the results.
|
|
77679
|
+
* @param {number} [limit] - Number of results to return per page.
|
|
77680
|
+
* @param {number} [offset] - The initial index from which to return the results.
|
|
77681
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77682
|
+
* @return {object} results - An object containing the response of the action
|
|
77683
|
+
*
|
|
77684
|
+
* @route {POST} /getPluginsServicePoolsServiceOrder
|
|
77685
|
+
* @roles admin
|
|
77686
|
+
* @task true
|
|
77687
|
+
*/
|
|
77688
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77689
|
+
getPluginsServicePoolsServiceOrder(ordering, limit, offset, callback) {
|
|
77690
|
+
const meth = 'adapter-getPluginsServicePoolsServiceOrder';
|
|
77691
|
+
const origin = `${this.id}-${meth}`;
|
|
77692
|
+
log.trace(origin);
|
|
77693
|
+
|
|
77694
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77695
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77696
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77697
|
+
return callback(null, errorObj);
|
|
77698
|
+
}
|
|
77699
|
+
|
|
77700
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77701
|
+
|
|
77702
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77703
|
+
const queryParamsAvailable = { ordering, limit, offset };
|
|
77704
|
+
const queryParams = {};
|
|
77705
|
+
const pathVars = [];
|
|
77706
|
+
const bodyVars = {};
|
|
77707
|
+
|
|
77708
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77709
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77710
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77711
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77712
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77713
|
+
}
|
|
77714
|
+
});
|
|
77715
|
+
|
|
77716
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77717
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77718
|
+
const reqObj = {
|
|
77719
|
+
payload: bodyVars,
|
|
77720
|
+
uriPathVars: pathVars,
|
|
77721
|
+
uriQuery: queryParams
|
|
77722
|
+
};
|
|
77723
|
+
|
|
77724
|
+
try {
|
|
77725
|
+
// Make the call -
|
|
77726
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77727
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'getPluginsServicePoolsServiceOrder', reqObj, true, (irReturnData, irReturnError) => {
|
|
77728
|
+
// if we received an error or their is no response on the results
|
|
77729
|
+
// return an error
|
|
77730
|
+
if (irReturnError) {
|
|
77731
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77732
|
+
return callback(null, irReturnError);
|
|
77733
|
+
}
|
|
77734
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77735
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getPluginsServicePoolsServiceOrder'], null, null, null);
|
|
77736
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77737
|
+
return callback(null, errorObj);
|
|
77738
|
+
}
|
|
77739
|
+
|
|
77740
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77741
|
+
// return the response
|
|
77742
|
+
return callback(irReturnData, null);
|
|
77743
|
+
});
|
|
77744
|
+
} catch (ex) {
|
|
77745
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77746
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77747
|
+
return callback(null, errorObj);
|
|
77748
|
+
}
|
|
77749
|
+
}
|
|
77750
|
+
|
|
77751
|
+
/**
|
|
77752
|
+
* @function postPluginsServicePoolsServiceOrder
|
|
77753
|
+
* @pronghornType method
|
|
77754
|
+
* @name postPluginsServicePoolsServiceOrder
|
|
77755
|
+
* @summary plugins_service-pools_service-order_create
|
|
77756
|
+
*
|
|
77757
|
+
* @param {object} data - data param
|
|
77758
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77759
|
+
* @return {object} results - An object containing the response of the action
|
|
77760
|
+
*
|
|
77761
|
+
* @route {POST} /postPluginsServicePoolsServiceOrder
|
|
77762
|
+
* @roles admin
|
|
77763
|
+
* @task true
|
|
77764
|
+
*/
|
|
77765
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77766
|
+
postPluginsServicePoolsServiceOrder(data, callback) {
|
|
77767
|
+
const meth = 'adapter-postPluginsServicePoolsServiceOrder';
|
|
77768
|
+
const origin = `${this.id}-${meth}`;
|
|
77769
|
+
log.trace(origin);
|
|
77770
|
+
|
|
77771
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77772
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77773
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77774
|
+
return callback(null, errorObj);
|
|
77775
|
+
}
|
|
77776
|
+
|
|
77777
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77778
|
+
if (data === undefined || data === null || data === '') {
|
|
77779
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77780
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77781
|
+
return callback(null, errorObj);
|
|
77782
|
+
}
|
|
77783
|
+
|
|
77784
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77785
|
+
const queryParamsAvailable = {};
|
|
77786
|
+
const queryParams = {};
|
|
77787
|
+
const pathVars = [];
|
|
77788
|
+
const bodyVars = data;
|
|
77789
|
+
|
|
77790
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77791
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77792
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77793
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77794
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77795
|
+
}
|
|
77796
|
+
});
|
|
77797
|
+
|
|
77798
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77799
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77800
|
+
const reqObj = {
|
|
77801
|
+
payload: bodyVars,
|
|
77802
|
+
uriPathVars: pathVars,
|
|
77803
|
+
uriQuery: queryParams
|
|
77804
|
+
};
|
|
77805
|
+
|
|
77806
|
+
try {
|
|
77807
|
+
// Make the call -
|
|
77808
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77809
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'postPluginsServicePoolsServiceOrder', reqObj, true, (irReturnData, irReturnError) => {
|
|
77810
|
+
// if we received an error or their is no response on the results
|
|
77811
|
+
// return an error
|
|
77812
|
+
if (irReturnError) {
|
|
77813
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77814
|
+
return callback(null, irReturnError);
|
|
77815
|
+
}
|
|
77816
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77817
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['postPluginsServicePoolsServiceOrder'], null, null, null);
|
|
77818
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77819
|
+
return callback(null, errorObj);
|
|
77820
|
+
}
|
|
77821
|
+
|
|
77822
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77823
|
+
// return the response
|
|
77824
|
+
return callback(irReturnData, null);
|
|
77825
|
+
});
|
|
77826
|
+
} catch (ex) {
|
|
77827
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77828
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77829
|
+
return callback(null, errorObj);
|
|
77830
|
+
}
|
|
77831
|
+
}
|
|
77832
|
+
|
|
77833
|
+
/**
|
|
77834
|
+
* @function putPluginsServicePoolsServiceOrder
|
|
77835
|
+
* @pronghornType method
|
|
77836
|
+
* @name putPluginsServicePoolsServiceOrder
|
|
77837
|
+
* @summary plugins_service-pools_service-order_bulk_update
|
|
77838
|
+
*
|
|
77839
|
+
* @param {object} data - data param
|
|
77840
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77841
|
+
* @return {object} results - An object containing the response of the action
|
|
77842
|
+
*
|
|
77843
|
+
* @route {POST} /putPluginsServicePoolsServiceOrder
|
|
77844
|
+
* @roles admin
|
|
77845
|
+
* @task true
|
|
77846
|
+
*/
|
|
77847
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77848
|
+
putPluginsServicePoolsServiceOrder(data, callback) {
|
|
77849
|
+
const meth = 'adapter-putPluginsServicePoolsServiceOrder';
|
|
77850
|
+
const origin = `${this.id}-${meth}`;
|
|
77851
|
+
log.trace(origin);
|
|
77852
|
+
|
|
77853
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77854
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77855
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77856
|
+
return callback(null, errorObj);
|
|
77857
|
+
}
|
|
77858
|
+
|
|
77859
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77860
|
+
if (data === undefined || data === null || data === '') {
|
|
77861
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77862
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77863
|
+
return callback(null, errorObj);
|
|
77864
|
+
}
|
|
77865
|
+
|
|
77866
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77867
|
+
const queryParamsAvailable = {};
|
|
77868
|
+
const queryParams = {};
|
|
77869
|
+
const pathVars = [];
|
|
77870
|
+
const bodyVars = data;
|
|
77871
|
+
|
|
77872
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77873
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77874
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77875
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77876
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77877
|
+
}
|
|
77878
|
+
});
|
|
77879
|
+
|
|
77880
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77881
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77882
|
+
const reqObj = {
|
|
77883
|
+
payload: bodyVars,
|
|
77884
|
+
uriPathVars: pathVars,
|
|
77885
|
+
uriQuery: queryParams
|
|
77886
|
+
};
|
|
77887
|
+
|
|
77888
|
+
try {
|
|
77889
|
+
// Make the call -
|
|
77890
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77891
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'putPluginsServicePoolsServiceOrder', reqObj, false, (irReturnData, irReturnError) => {
|
|
77892
|
+
// if we received an error or their is no response on the results
|
|
77893
|
+
// return an error
|
|
77894
|
+
if (irReturnError) {
|
|
77895
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77896
|
+
return callback(null, irReturnError);
|
|
77897
|
+
}
|
|
77898
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77899
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putPluginsServicePoolsServiceOrder'], null, null, null);
|
|
77900
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77901
|
+
return callback(null, errorObj);
|
|
77902
|
+
}
|
|
77903
|
+
|
|
77904
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77905
|
+
// return the response
|
|
77906
|
+
return callback(irReturnData, null);
|
|
77907
|
+
});
|
|
77908
|
+
} catch (ex) {
|
|
77909
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77910
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77911
|
+
return callback(null, errorObj);
|
|
77912
|
+
}
|
|
77913
|
+
}
|
|
77914
|
+
|
|
77915
|
+
/**
|
|
77916
|
+
* @function patchPluginsServicePoolsServiceOrder
|
|
77917
|
+
* @pronghornType method
|
|
77918
|
+
* @name patchPluginsServicePoolsServiceOrder
|
|
77919
|
+
* @summary plugins_service-pools_service-order_bulk_partial_update
|
|
77920
|
+
*
|
|
77921
|
+
* @param {object} data - data param
|
|
77922
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
77923
|
+
* @return {object} results - An object containing the response of the action
|
|
77924
|
+
*
|
|
77925
|
+
* @route {POST} /patchPluginsServicePoolsServiceOrder
|
|
77926
|
+
* @roles admin
|
|
77927
|
+
* @task true
|
|
77928
|
+
*/
|
|
77929
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
77930
|
+
patchPluginsServicePoolsServiceOrder(data, callback) {
|
|
77931
|
+
const meth = 'adapter-patchPluginsServicePoolsServiceOrder';
|
|
77932
|
+
const origin = `${this.id}-${meth}`;
|
|
77933
|
+
log.trace(origin);
|
|
77934
|
+
|
|
77935
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
77936
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
77937
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77938
|
+
return callback(null, errorObj);
|
|
77939
|
+
}
|
|
77940
|
+
|
|
77941
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
77942
|
+
if (data === undefined || data === null || data === '') {
|
|
77943
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
77944
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77945
|
+
return callback(null, errorObj);
|
|
77946
|
+
}
|
|
77947
|
+
|
|
77948
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
77949
|
+
const queryParamsAvailable = {};
|
|
77950
|
+
const queryParams = {};
|
|
77951
|
+
const pathVars = [];
|
|
77952
|
+
const bodyVars = data;
|
|
77953
|
+
|
|
77954
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
77955
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
77956
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
77957
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
77958
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
77959
|
+
}
|
|
77960
|
+
});
|
|
77961
|
+
|
|
77962
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
77963
|
+
// see adapter code documentation for more information on the request object's fields
|
|
77964
|
+
const reqObj = {
|
|
77965
|
+
payload: bodyVars,
|
|
77966
|
+
uriPathVars: pathVars,
|
|
77967
|
+
uriQuery: queryParams
|
|
77968
|
+
};
|
|
77969
|
+
|
|
77970
|
+
try {
|
|
77971
|
+
// Make the call -
|
|
77972
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
77973
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'patchPluginsServicePoolsServiceOrder', reqObj, false, (irReturnData, irReturnError) => {
|
|
77974
|
+
// if we received an error or their is no response on the results
|
|
77975
|
+
// return an error
|
|
77976
|
+
if (irReturnError) {
|
|
77977
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
77978
|
+
return callback(null, irReturnError);
|
|
77979
|
+
}
|
|
77980
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
77981
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchPluginsServicePoolsServiceOrder'], null, null, null);
|
|
77982
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77983
|
+
return callback(null, errorObj);
|
|
77984
|
+
}
|
|
77985
|
+
|
|
77986
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
77987
|
+
// return the response
|
|
77988
|
+
return callback(irReturnData, null);
|
|
77989
|
+
});
|
|
77990
|
+
} catch (ex) {
|
|
77991
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
77992
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
77993
|
+
return callback(null, errorObj);
|
|
77994
|
+
}
|
|
77995
|
+
}
|
|
77996
|
+
|
|
77997
|
+
/**
|
|
77998
|
+
* @function deletePluginsServicePoolsServiceOrder
|
|
77999
|
+
* @pronghornType method
|
|
78000
|
+
* @name deletePluginsServicePoolsServiceOrder
|
|
78001
|
+
* @summary plugins_service-pools_service-order_bulk_delete
|
|
78002
|
+
*
|
|
78003
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
78004
|
+
* @return {object} results - An object containing the response of the action
|
|
78005
|
+
*
|
|
78006
|
+
* @route {GET} /deletePluginsServicePoolsServiceOrder
|
|
78007
|
+
* @roles admin
|
|
78008
|
+
* @task true
|
|
78009
|
+
*/
|
|
78010
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
78011
|
+
deletePluginsServicePoolsServiceOrder(callback) {
|
|
78012
|
+
const meth = 'adapter-deletePluginsServicePoolsServiceOrder';
|
|
78013
|
+
const origin = `${this.id}-${meth}`;
|
|
78014
|
+
log.trace(origin);
|
|
78015
|
+
|
|
78016
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
78017
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
78018
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78019
|
+
return callback(null, errorObj);
|
|
78020
|
+
}
|
|
78021
|
+
|
|
78022
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
78023
|
+
|
|
78024
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
78025
|
+
const queryParamsAvailable = {};
|
|
78026
|
+
const queryParams = {};
|
|
78027
|
+
const pathVars = [];
|
|
78028
|
+
const bodyVars = {};
|
|
78029
|
+
|
|
78030
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
78031
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
78032
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
78033
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
78034
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
78035
|
+
}
|
|
78036
|
+
});
|
|
78037
|
+
|
|
78038
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
78039
|
+
// see adapter code documentation for more information on the request object's fields
|
|
78040
|
+
const reqObj = {
|
|
78041
|
+
payload: bodyVars,
|
|
78042
|
+
uriPathVars: pathVars,
|
|
78043
|
+
uriQuery: queryParams
|
|
78044
|
+
};
|
|
78045
|
+
|
|
78046
|
+
try {
|
|
78047
|
+
// Make the call -
|
|
78048
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
78049
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'deletePluginsServicePoolsServiceOrder', reqObj, false, (irReturnData, irReturnError) => {
|
|
78050
|
+
// if we received an error or their is no response on the results
|
|
78051
|
+
// return an error
|
|
78052
|
+
if (irReturnError) {
|
|
78053
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
78054
|
+
return callback(null, irReturnError);
|
|
78055
|
+
}
|
|
78056
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
78057
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deletePluginsServicePoolsServiceOrder'], null, null, null);
|
|
78058
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78059
|
+
return callback(null, errorObj);
|
|
78060
|
+
}
|
|
78061
|
+
|
|
78062
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
78063
|
+
// return the response
|
|
78064
|
+
return callback(irReturnData, null);
|
|
78065
|
+
});
|
|
78066
|
+
} catch (ex) {
|
|
78067
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
78068
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78069
|
+
return callback(null, errorObj);
|
|
78070
|
+
}
|
|
78071
|
+
}
|
|
78072
|
+
|
|
78073
|
+
/**
|
|
78074
|
+
* @function getPluginsServicePoolsServiceOrderId
|
|
78075
|
+
* @pronghornType method
|
|
78076
|
+
* @name getPluginsServicePoolsServiceOrderId
|
|
78077
|
+
* @summary plugins_service-pools_service-order_read
|
|
78078
|
+
*
|
|
78079
|
+
* @param {number} id - A unique integer value identifying this service order.
|
|
78080
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
78081
|
+
* @return {object} results - An object containing the response of the action
|
|
78082
|
+
*
|
|
78083
|
+
* @route {POST} /getPluginsServicePoolsServiceOrderId
|
|
78084
|
+
* @roles admin
|
|
78085
|
+
* @task true
|
|
78086
|
+
*/
|
|
78087
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
78088
|
+
getPluginsServicePoolsServiceOrderId(id, callback) {
|
|
78089
|
+
const meth = 'adapter-getPluginsServicePoolsServiceOrderId';
|
|
78090
|
+
const origin = `${this.id}-${meth}`;
|
|
78091
|
+
log.trace(origin);
|
|
78092
|
+
|
|
78093
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
78094
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
78095
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78096
|
+
return callback(null, errorObj);
|
|
78097
|
+
}
|
|
78098
|
+
|
|
78099
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
78100
|
+
if (id === undefined || id === null || id === '') {
|
|
78101
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
78102
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78103
|
+
return callback(null, errorObj);
|
|
78104
|
+
}
|
|
78105
|
+
|
|
78106
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
78107
|
+
const queryParamsAvailable = {};
|
|
78108
|
+
const queryParams = {};
|
|
78109
|
+
const pathVars = [id];
|
|
78110
|
+
const bodyVars = {};
|
|
78111
|
+
|
|
78112
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
78113
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
78114
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
78115
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
78116
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
78117
|
+
}
|
|
78118
|
+
});
|
|
78119
|
+
|
|
78120
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
78121
|
+
// see adapter code documentation for more information on the request object's fields
|
|
78122
|
+
const reqObj = {
|
|
78123
|
+
payload: bodyVars,
|
|
78124
|
+
uriPathVars: pathVars,
|
|
78125
|
+
uriQuery: queryParams
|
|
78126
|
+
};
|
|
78127
|
+
|
|
78128
|
+
try {
|
|
78129
|
+
// Make the call -
|
|
78130
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
78131
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'getPluginsServicePoolsServiceOrderId', reqObj, true, (irReturnData, irReturnError) => {
|
|
78132
|
+
// if we received an error or their is no response on the results
|
|
78133
|
+
// return an error
|
|
78134
|
+
if (irReturnError) {
|
|
78135
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
78136
|
+
return callback(null, irReturnError);
|
|
78137
|
+
}
|
|
78138
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
78139
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['getPluginsServicePoolsServiceOrderId'], null, null, null);
|
|
78140
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78141
|
+
return callback(null, errorObj);
|
|
78142
|
+
}
|
|
78143
|
+
|
|
78144
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
78145
|
+
// return the response
|
|
78146
|
+
return callback(irReturnData, null);
|
|
78147
|
+
});
|
|
78148
|
+
} catch (ex) {
|
|
78149
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
78150
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78151
|
+
return callback(null, errorObj);
|
|
78152
|
+
}
|
|
78153
|
+
}
|
|
78154
|
+
|
|
78155
|
+
/**
|
|
78156
|
+
* @function putPluginsServicePoolsServiceOrderId
|
|
78157
|
+
* @pronghornType method
|
|
78158
|
+
* @name putPluginsServicePoolsServiceOrderId
|
|
78159
|
+
* @summary plugins_service-pools_service-order_update
|
|
78160
|
+
*
|
|
78161
|
+
* @param {number} id - A unique integer value identifying this service order.
|
|
78162
|
+
* @param {object} data - data param
|
|
78163
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
78164
|
+
* @return {object} results - An object containing the response of the action
|
|
78165
|
+
*
|
|
78166
|
+
* @route {POST} /putPluginsServicePoolsServiceOrderId
|
|
78167
|
+
* @roles admin
|
|
78168
|
+
* @task true
|
|
78169
|
+
*/
|
|
78170
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
78171
|
+
putPluginsServicePoolsServiceOrderId(id, data, callback) {
|
|
78172
|
+
const meth = 'adapter-putPluginsServicePoolsServiceOrderId';
|
|
78173
|
+
const origin = `${this.id}-${meth}`;
|
|
78174
|
+
log.trace(origin);
|
|
78175
|
+
|
|
78176
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
78177
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
78178
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78179
|
+
return callback(null, errorObj);
|
|
78180
|
+
}
|
|
78181
|
+
|
|
78182
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
78183
|
+
if (id === undefined || id === null || id === '') {
|
|
78184
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
78185
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78186
|
+
return callback(null, errorObj);
|
|
78187
|
+
}
|
|
78188
|
+
if (data === undefined || data === null || data === '') {
|
|
78189
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
78190
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78191
|
+
return callback(null, errorObj);
|
|
78192
|
+
}
|
|
78193
|
+
|
|
78194
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
78195
|
+
const queryParamsAvailable = {};
|
|
78196
|
+
const queryParams = {};
|
|
78197
|
+
const pathVars = [id];
|
|
78198
|
+
const bodyVars = data;
|
|
78199
|
+
|
|
78200
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
78201
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
78202
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
78203
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
78204
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
78205
|
+
}
|
|
78206
|
+
});
|
|
78207
|
+
|
|
78208
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
78209
|
+
// see adapter code documentation for more information on the request object's fields
|
|
78210
|
+
const reqObj = {
|
|
78211
|
+
payload: bodyVars,
|
|
78212
|
+
uriPathVars: pathVars,
|
|
78213
|
+
uriQuery: queryParams
|
|
78214
|
+
};
|
|
78215
|
+
|
|
78216
|
+
try {
|
|
78217
|
+
// Make the call -
|
|
78218
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
78219
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'putPluginsServicePoolsServiceOrderId', reqObj, false, (irReturnData, irReturnError) => {
|
|
78220
|
+
// if we received an error or their is no response on the results
|
|
78221
|
+
// return an error
|
|
78222
|
+
if (irReturnError) {
|
|
78223
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
78224
|
+
return callback(null, irReturnError);
|
|
78225
|
+
}
|
|
78226
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
78227
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['putPluginsServicePoolsServiceOrderId'], null, null, null);
|
|
78228
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78229
|
+
return callback(null, errorObj);
|
|
78230
|
+
}
|
|
78231
|
+
|
|
78232
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
78233
|
+
// return the response
|
|
78234
|
+
return callback(irReturnData, null);
|
|
78235
|
+
});
|
|
78236
|
+
} catch (ex) {
|
|
78237
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
78238
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78239
|
+
return callback(null, errorObj);
|
|
78240
|
+
}
|
|
78241
|
+
}
|
|
78242
|
+
|
|
78243
|
+
/**
|
|
78244
|
+
* @function patchPluginsServicePoolsServiceOrderId
|
|
78245
|
+
* @pronghornType method
|
|
78246
|
+
* @name patchPluginsServicePoolsServiceOrderId
|
|
78247
|
+
* @summary plugins_service-pools_service-order_partial_update
|
|
78248
|
+
*
|
|
78249
|
+
* @param {number} id - A unique integer value identifying this service order.
|
|
78250
|
+
* @param {object} data - data param
|
|
78251
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
78252
|
+
* @return {object} results - An object containing the response of the action
|
|
78253
|
+
*
|
|
78254
|
+
* @route {POST} /patchPluginsServicePoolsServiceOrderId
|
|
78255
|
+
* @roles admin
|
|
78256
|
+
* @task true
|
|
78257
|
+
*/
|
|
78258
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
78259
|
+
patchPluginsServicePoolsServiceOrderId(id, data, callback) {
|
|
78260
|
+
const meth = 'adapter-patchPluginsServicePoolsServiceOrderId';
|
|
78261
|
+
const origin = `${this.id}-${meth}`;
|
|
78262
|
+
log.trace(origin);
|
|
78263
|
+
|
|
78264
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
78265
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
78266
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78267
|
+
return callback(null, errorObj);
|
|
78268
|
+
}
|
|
78269
|
+
|
|
78270
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
78271
|
+
if (id === undefined || id === null || id === '') {
|
|
78272
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
78273
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78274
|
+
return callback(null, errorObj);
|
|
78275
|
+
}
|
|
78276
|
+
if (data === undefined || data === null || data === '') {
|
|
78277
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['data'], null, null, null);
|
|
78278
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78279
|
+
return callback(null, errorObj);
|
|
78280
|
+
}
|
|
78281
|
+
|
|
78282
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
78283
|
+
const queryParamsAvailable = {};
|
|
78284
|
+
const queryParams = {};
|
|
78285
|
+
const pathVars = [id];
|
|
78286
|
+
const bodyVars = data;
|
|
78287
|
+
|
|
78288
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
78289
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
78290
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
78291
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
78292
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
78293
|
+
}
|
|
78294
|
+
});
|
|
78295
|
+
|
|
78296
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
78297
|
+
// see adapter code documentation for more information on the request object's fields
|
|
78298
|
+
const reqObj = {
|
|
78299
|
+
payload: bodyVars,
|
|
78300
|
+
uriPathVars: pathVars,
|
|
78301
|
+
uriQuery: queryParams
|
|
78302
|
+
};
|
|
78303
|
+
|
|
78304
|
+
try {
|
|
78305
|
+
// Make the call -
|
|
78306
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
78307
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'patchPluginsServicePoolsServiceOrderId', reqObj, false, (irReturnData, irReturnError) => {
|
|
78308
|
+
// if we received an error or their is no response on the results
|
|
78309
|
+
// return an error
|
|
78310
|
+
if (irReturnError) {
|
|
78311
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
78312
|
+
return callback(null, irReturnError);
|
|
78313
|
+
}
|
|
78314
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
78315
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['patchPluginsServicePoolsServiceOrderId'], null, null, null);
|
|
78316
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78317
|
+
return callback(null, errorObj);
|
|
78318
|
+
}
|
|
78319
|
+
|
|
78320
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
78321
|
+
// return the response
|
|
78322
|
+
return callback(irReturnData, null);
|
|
78323
|
+
});
|
|
78324
|
+
} catch (ex) {
|
|
78325
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
78326
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78327
|
+
return callback(null, errorObj);
|
|
78328
|
+
}
|
|
78329
|
+
}
|
|
78330
|
+
|
|
78331
|
+
/**
|
|
78332
|
+
* @function deletePluginsServicePoolsServiceOrderId
|
|
78333
|
+
* @pronghornType method
|
|
78334
|
+
* @name deletePluginsServicePoolsServiceOrderId
|
|
78335
|
+
* @summary plugins_service-pools_service-order_delete
|
|
78336
|
+
*
|
|
78337
|
+
* @param {number} id - A unique integer value identifying this service order.
|
|
78338
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
78339
|
+
* @return {object} results - An object containing the response of the action
|
|
78340
|
+
*
|
|
78341
|
+
* @route {POST} /deletePluginsServicePoolsServiceOrderId
|
|
78342
|
+
* @roles admin
|
|
78343
|
+
* @task true
|
|
78344
|
+
*/
|
|
78345
|
+
/* YOU CAN CHANGE THE PARAMETERS YOU TAKE IN HERE AND IN THE pronghorn.json FILE */
|
|
78346
|
+
deletePluginsServicePoolsServiceOrderId(id, callback) {
|
|
78347
|
+
const meth = 'adapter-deletePluginsServicePoolsServiceOrderId';
|
|
78348
|
+
const origin = `${this.id}-${meth}`;
|
|
78349
|
+
log.trace(origin);
|
|
78350
|
+
|
|
78351
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
78352
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
78353
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78354
|
+
return callback(null, errorObj);
|
|
78355
|
+
}
|
|
78356
|
+
|
|
78357
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
78358
|
+
if (id === undefined || id === null || id === '') {
|
|
78359
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['id'], null, null, null);
|
|
78360
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78361
|
+
return callback(null, errorObj);
|
|
78362
|
+
}
|
|
78363
|
+
|
|
78364
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
78365
|
+
const queryParamsAvailable = {};
|
|
78366
|
+
const queryParams = {};
|
|
78367
|
+
const pathVars = [id];
|
|
78368
|
+
const bodyVars = {};
|
|
78369
|
+
|
|
78370
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
78371
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
78372
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
78373
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
78374
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
78375
|
+
}
|
|
78376
|
+
});
|
|
78377
|
+
|
|
78378
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
78379
|
+
// see adapter code documentation for more information on the request object's fields
|
|
78380
|
+
const reqObj = {
|
|
78381
|
+
payload: bodyVars,
|
|
78382
|
+
uriPathVars: pathVars,
|
|
78383
|
+
uriQuery: queryParams
|
|
78384
|
+
};
|
|
78385
|
+
|
|
78386
|
+
try {
|
|
78387
|
+
// Make the call -
|
|
78388
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
78389
|
+
return this.requestHandlerInst.identifyRequest('Plugins', 'deletePluginsServicePoolsServiceOrderId', reqObj, false, (irReturnData, irReturnError) => {
|
|
78390
|
+
// if we received an error or their is no response on the results
|
|
78391
|
+
// return an error
|
|
78392
|
+
if (irReturnError) {
|
|
78393
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
78394
|
+
return callback(null, irReturnError);
|
|
78395
|
+
}
|
|
78396
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
78397
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['deletePluginsServicePoolsServiceOrderId'], null, null, null);
|
|
78398
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78399
|
+
return callback(null, errorObj);
|
|
78400
|
+
}
|
|
78401
|
+
|
|
78402
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
78403
|
+
// return the response
|
|
78404
|
+
return callback(irReturnData, null);
|
|
78405
|
+
});
|
|
78406
|
+
} catch (ex) {
|
|
78407
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
78408
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
78409
|
+
return callback(null, errorObj);
|
|
78410
|
+
}
|
|
78411
|
+
}
|
|
74591
78412
|
}
|
|
74592
78413
|
|
|
74593
78414
|
module.exports = NetboxV33;
|