// inventoryCreate will attempt to create the number of inventory records requested.
// The host names are generated and deterministic.
inventoryCreate will attempt to create the number of inventory records requested.
The host names are generated and deterministic.
// inventoryCreate will attempt to create the number of inventory records requested . // The host names are generated and deterministic .
func inventoryCreateByCount(startAt int, requested int) (recordCount int64, statusCode int, responseBodyMessage string, err error) {
	var ncis = []NodeConsoleInfo{}
	for i := startAt; i < startAt+requested; i++ {
		name := fmt.Sprintf("x3000c0s%db0n0", i) 
		ncis = append(ncis, nci(name, name, name, "River", 100+i, "Compute", ""))
	}
	aop := InventoryApiOp{}
	recordCount, statusCode, responseBodyMessage, err = aop.Put(ncis)
	log.Printf("inventoryCreateByCount returning %d , %d , %s , %s\n", recordCount, statusCode, responseBodyMessage, err)
	return recordCount, statusCode, responseBodyMessage, err
}
func inventoryCreateByCount ( startAt int , requested int ) ( recordCount int64 , statusCode int , responseBodyMessage string , err error ) { var ncis = [ ] NodeConsoleInfo { } for i := startAt ; i < startAt + requested ; i ++ { name := fmt . Sprintf ( " " , i ) ncis = append ( ncis , nci ( name , name , name , " " , 100 + i , " " , " " ) ) } aop := InventoryApiOp { } recordCount , statusCode , responseBodyMessage , err = aop . Put ( ncis ) log . Printf ( " \n " , recordCount , statusCode , responseBodyMessage , err ) return recordCount , statusCode , responseBodyMessage , err }
inventoryCreate will attempt to create the number of inventory records requested.
inventoryCreate will attempt to create the number of inventory records requested .
// Create some mock inventory data // sure, this looks good ... // Send the api request and return the results for evaluation by the caller.